-
Notifications
You must be signed in to change notification settings - Fork 9
Feat/settings components #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fdb2a4e
Init Settings component
mrabbani b298fb2
refactor: enhance settings components with applyFilters support and i…
mrabbani 171db6c
settings: fix select fields
mrabbani 669aeb3
Settings: addrress subsection
mrabbani b2aebbd
refactor: unify label handling in settings components
mrabbani 37e0ab6
feat: enhance settings context and components with page-specific func…
mrabbani 080bfa3
feat: add customizable save button functionality to settings components
mrabbani 940d22b
feat: improve save button functionality in settings components
mrabbani 6a81a16
Add docs for settings
mrabbani 4137cce
Cleanup pacakge.json
mrabbani 541f85d
Add tab accessibility, async onSave, bump React
kzamanbd 9eb16fb
Remove asChild from TooltipTrigger
kzamanbd bf7ce8d
Bump React peer to >=18; regenerate lockfile
kzamanbd 8af34af
Merge branch 'main' into feat/settings-components
kzamanbd bd10b37
feat: add PopoverClose and PopoverArrow components to Popover module
kzamanbd 484b36f
Disable no-explicit-any lint and remove unused prop
kzamanbd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,106 +1,113 @@ | ||
| { | ||
| "name": "@wedevs/plugin-ui", | ||
| "version": "2.0.0", | ||
| "description": "Scoped, themeable UI components for WordPress plugins - ShadCN style", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "sideEffects": [ | ||
| "**/*.css" | ||
| ], | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| }, | ||
| "./components/ui": { | ||
| "import": "./dist/components/ui/index.js", | ||
| "require": "./dist/components/ui/index.js", | ||
| "types": "./dist/components/ui/index.d.ts" | ||
| }, | ||
| "./providers": { | ||
| "import": "./dist/providers/index.js", | ||
| "require": "./dist/providers/index.js", | ||
| "types": "./dist/providers/index.d.ts" | ||
| }, | ||
| "./themes": { | ||
| "import": "./dist/themes/index.js", | ||
| "require": "./dist/themes/index.js", | ||
| "types": "./dist/themes/index.d.ts" | ||
| }, | ||
| "./utils": { | ||
| "import": "./dist/utils/index.js", | ||
| "require": "./dist/utils/index.js", | ||
| "types": "./dist/utils/index.d.ts" | ||
| }, | ||
| "./styles.css": "./dist/styles.css" | ||
| "name": "@wedevs/plugin-ui", | ||
| "version": "2.0.0", | ||
| "description": "Scoped, themeable UI components for WordPress plugins - ShadCN style", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "sideEffects": [ | ||
| "**/*.css" | ||
| ], | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "src" | ||
| ], | ||
| "scripts": { | ||
| "build": "npm run build:wp && npm run build:types", | ||
| "build:wp": "wp-scripts build --config webpack.config.js", | ||
| "build:types": "tsc --emitDeclarationOnly", | ||
| "start": "wp-scripts start --config webpack.config.js", | ||
| "storybook": "storybook dev -p 6006", | ||
| "build-storybook": "storybook build", | ||
| "lint": "eslint src --ext .ts,.tsx", | ||
| "typecheck": "tsc --noEmit", | ||
| "prepare": "npm run build" | ||
| "./components/ui": { | ||
| "import": "./dist/components/ui/index.js", | ||
| "require": "./dist/components/ui/index.js", | ||
| "types": "./dist/components/ui/index.d.ts" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=17.0.0", | ||
| "react-dom": ">=17.0.0" | ||
| "./providers": { | ||
| "import": "./dist/providers/index.js", | ||
| "require": "./dist/providers/index.js", | ||
| "types": "./dist/providers/index.d.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@base-ui/react": "^1.1.0", | ||
| "@wordpress/dataviews": "^11.3.0", | ||
| "class-variance-authority": "^0.7.1", | ||
| "clsx": "^2.1.1", | ||
| "input-otp": "^1.4.2", | ||
| "lucide-react": "^0.563.0", | ||
| "tailwind-merge": "^2.6.1", | ||
| "tw-animate-css": "^1.4.0" | ||
| "./themes": { | ||
| "import": "./dist/themes/index.js", | ||
| "require": "./dist/themes/index.js", | ||
| "types": "./dist/themes/index.d.ts" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/preset-react": "^7.26.0", | ||
| "@babel/preset-typescript": "^7.26.0", | ||
| "@chromatic-com/storybook": "^5.0.0", | ||
| "@storybook/addon-a11y": "^10.2.7", | ||
| "@storybook/addon-docs": "^10.2.7", | ||
| "@storybook/addon-themes": "^10.2.7", | ||
| "@storybook/react": "^10.2.0", | ||
| "@storybook/react-webpack5": "^10.2.0", | ||
| "@tailwindcss/postcss": "^4.1.18", | ||
| "@types/react": "^18.0.0", | ||
| "@types/react-dom": "^18.0.0", | ||
| "@wordpress/scripts": "^30.25.0", | ||
| "autoprefixer": "^10.4.23", | ||
| "babel-loader": "^9.2.0", | ||
| "postcss": "^8.5.6", | ||
| "postcss-cli": "^11.0.1", | ||
| "postcss-loader": "^8.1.1", | ||
| "storybook": "^10.2.0", | ||
| "tailwindcss": "^4.1.18", | ||
| "typescript": "^5.0.0" | ||
| "./utils": { | ||
| "import": "./dist/utils/index.js", | ||
| "require": "./dist/utils/index.js", | ||
| "types": "./dist/utils/index.d.ts" | ||
| }, | ||
| "keywords": [ | ||
| "wordpress", | ||
| "ui", | ||
| "components", | ||
| "react", | ||
| "shadcn", | ||
| "tailwind", | ||
| "wedevs", | ||
| "theming" | ||
| ], | ||
| "author": "weDevs", | ||
| "license": "GPL-2.0-or-later", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/getdokan/plugin-ui.git" | ||
| } | ||
| } | ||
| "./settings": { | ||
| "import": "./dist/components/settings/index.js", | ||
| "require": "./dist/components/settings/index.js", | ||
| "types": "./dist/components/settings/index.d.ts" | ||
| }, | ||
| "./styles.css": "./dist/styles.css" | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "src" | ||
| ], | ||
| "scripts": { | ||
| "build": "npm run build:wp && npm run build:types", | ||
| "build:wp": "wp-scripts build --config webpack.config.js", | ||
| "build:types": "tsc --emitDeclarationOnly", | ||
| "start": "wp-scripts start --config webpack.config.js", | ||
| "storybook": "storybook dev -p 6006", | ||
| "build-storybook": "storybook build", | ||
| "lint": "eslint src --ext .ts,.tsx", | ||
| "typecheck": "tsc --noEmit", | ||
| "prepare": "npm run build" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=18.0.0", | ||
| "react-dom": ">=18.0.0" | ||
| }, | ||
| "dependencies": { | ||
| "@base-ui/react": "^1.1.0", | ||
| "@wordpress/dataviews": "^11.3.0", | ||
| "class-variance-authority": "^0.7.1", | ||
| "clsx": "^2.1.1", | ||
| "input-otp": "^1.4.2", | ||
| "lucide-react": "^0.563.0", | ||
| "tailwind-merge": "^2.6.1", | ||
| "tw-animate-css": "^1.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/preset-react": "^7.26.0", | ||
| "@babel/preset-typescript": "^7.26.0", | ||
| "@chromatic-com/storybook": "^5.0.0", | ||
| "@storybook/addon-a11y": "^10.2.7", | ||
| "@storybook/addon-docs": "^10.2.7", | ||
| "@storybook/addon-themes": "^10.2.7", | ||
| "@storybook/react": "^10.2.0", | ||
| "@storybook/react-webpack5": "^10.2.0", | ||
| "@tailwindcss/postcss": "^4.1.18", | ||
| "@types/react": "^18.0.0", | ||
| "@types/react-dom": "^18.0.0", | ||
| "@wordpress/scripts": "^30.25.0", | ||
| "babel-loader": "^9.2.0", | ||
| "postcss": "^8.5.6", | ||
| "postcss-cli": "^11.0.1", | ||
| "postcss-loader": "^8.1.1", | ||
| "storybook": "^10.2.0", | ||
| "tailwindcss": "^4.1.18", | ||
| "typescript": "^5.0.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">=22" | ||
| }, | ||
| "keywords": [ | ||
| "wordpress", | ||
| "ui", | ||
| "components", | ||
| "react", | ||
| "shadcn", | ||
| "tailwind", | ||
| "wedevs", | ||
| "theming" | ||
| ], | ||
| "author": "weDevs", | ||
| "license": "GPL-2.0-or-later", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/getdokan/plugin-ui.git" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
engines.node >= 22may be unnecessarily restrictive for consumers.Node 20 LTS is still in its maintenance window (until April 2026). Since consumers install this package via npm, the engine constraint will block installation on Node 20 unless
--ignore-enginesis used. If the requirement is only for local development (e.g., workspace features), consider either relaxing to>=18or>=20, or documenting that this constraint applies to contributors only.🤖 Prompt for AI Agents