@central-ui/react 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/components/accordion/index.d.ts +14 -14
  2. package/dist/components/accordion/index.js +19 -19
  3. package/dist/components/autocomplete/index.d.ts +51 -47
  4. package/dist/components/autocomplete/index.js +57 -57
  5. package/dist/components/avatar/index.d.ts +7 -6
  6. package/dist/components/avatar/index.js +9 -9
  7. package/dist/components/banner/index.js +1 -1
  8. package/dist/components/carousel/index.d.ts +31 -11
  9. package/dist/components/carousel/index.js +25 -21
  10. package/dist/components/checkbox/index.d.ts +12 -11
  11. package/dist/components/checkbox/index.js +21 -21
  12. package/dist/components/combobox/index.d.ts +56 -56
  13. package/dist/components/combobox/index.js +67 -68
  14. package/dist/components/datepicker/index.d.ts +8 -9
  15. package/dist/components/datepicker/index.js +13 -13
  16. package/dist/components/dialog/index.d.ts +18 -18
  17. package/dist/components/dialog/index.js +22 -21
  18. package/dist/components/drawer/index.d.ts +24 -24
  19. package/dist/components/drawer/index.js +28 -27
  20. package/dist/components/exception/index.d.ts +23 -11
  21. package/dist/components/exception/index.js +17 -17
  22. package/dist/components/fileupload/index.d.ts +8 -8
  23. package/dist/components/input/index.d.ts +14 -14
  24. package/dist/components/input/index.js +27 -27
  25. package/dist/components/menu/index.d.ts +37 -37
  26. package/dist/components/menu/index.js +47 -47
  27. package/dist/components/numberinput/index.d.ts +22 -22
  28. package/dist/components/numberinput/index.js +35 -35
  29. package/dist/components/otpinput/index.d.ts +12 -12
  30. package/dist/components/otpinput/index.js +21 -21
  31. package/dist/components/passwordinput/index.d.ts +15 -15
  32. package/dist/components/passwordinput/index.js +27 -27
  33. package/dist/components/popover/index.d.ts +16 -16
  34. package/dist/components/popover/index.js +20 -19
  35. package/dist/components/radio/index.d.ts +12 -12
  36. package/dist/components/radio/index.js +25 -25
  37. package/dist/components/ratinginput/index.d.ts +1 -1
  38. package/dist/components/ratinginput/index.js +3 -3
  39. package/dist/components/select/index.d.ts +29 -29
  40. package/dist/components/select/index.js +33 -33
  41. package/dist/components/slider/index.d.ts +20 -20
  42. package/dist/components/slider/index.js +27 -27
  43. package/dist/components/stepper/index.d.ts +8 -7
  44. package/dist/components/stepper/index.js +4 -2
  45. package/dist/components/switch/index.d.ts +9 -9
  46. package/dist/components/switch/index.js +17 -17
  47. package/dist/components/table/index.d.ts +2 -2
  48. package/dist/components/table/index.js +16 -16
  49. package/dist/components/tabs/index.d.ts +10 -10
  50. package/dist/components/tabs/index.js +11 -11
  51. package/dist/components/textarea/index.d.ts +13 -13
  52. package/dist/components/textarea/index.js +25 -25
  53. package/dist/components/toast/index.d.ts +11 -11
  54. package/dist/components/toast/index.js +11 -11
  55. package/dist/components/toggle/index.d.ts +7 -7
  56. package/dist/components/toggle/index.js +9 -9
  57. package/dist/components/tooltip/index.d.ts +6 -6
  58. package/dist/components/tooltip/index.js +6 -7
  59. package/dist/components/tour/index.d.ts +2 -2
  60. package/dist/components/tour/index.js +5 -4
  61. package/dist/utils/icons.d.ts +92 -23
  62. package/dist/utils/icons.js +3 -3
  63. package/package.json +69 -69
  64. package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -28
  65. package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -28
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
- {
2
- "name": "@central-ui/react",
3
- "version": "0.3.0",
4
- "description": "Accessible React components with optional Tailwind CSS style presets",
5
- "license": "MIT",
6
- "keywords": [
7
- "react",
8
- "ui",
9
- "components",
10
- "ark-ui",
11
- "unstyled"
12
- ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "type": "module",
17
- "sideEffects": [
18
- "./src/presets/**/*.css"
19
- ],
20
- "files": [
21
- "dist",
22
- "src/presets",
23
- "README.md",
24
- "LICENSE"
25
- ],
26
- "exports": {
27
- ".": {
28
- "types": "./dist/index.d.ts",
29
- "import": "./dist/index.js"
30
- },
31
- "./presets/shopify-polaris-legacy.css": "./src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css",
32
- "./presets/shopify-polaris.css": "./src/presets/shopify-polaris/shopify-polaris.css"
33
- },
34
- "scripts": {
35
- "build": "tsc --project tsconfig.json",
36
- "prepack": "npm run build",
37
- "typecheck": "tsc --project tsconfig.json --noEmit"
38
- },
39
- "peerDependencies": {
40
- "react": "^18.0.0 || ^19.0.0",
41
- "react-dom": "^18.0.0 || ^19.0.0",
42
- "tailwindcss": "^4.2.1"
43
- },
44
- "peerDependenciesMeta": {
45
- "tailwindcss": {
46
- "optional": true
47
- }
48
- },
49
- "devDependencies": {
50
- "@types/react": "19.3.0",
51
- "@types/react-dom": "19.3.0",
52
- "typescript": "6.0.3"
53
- },
54
- "dependencies": {
55
- "@ark-ui/react": "^5.39.3",
56
- "@base-ui/react": "^1.9.0",
57
- "@internationalized/date": "^3.12.4",
58
- "@radix-ui/react-password-toggle-field": "^0.2.1",
59
- "@tanstack/react-virtual": "^3.14.20",
60
- "embla-carousel-autoplay": "8.6.0",
61
- "embla-carousel-react": "8.6.0",
62
- "react-aria": "^3.53.1",
63
- "react-aria-components": "^1.22.1",
64
- "react-joyride": "^3.2.0",
65
- "react-resizable-panels": "^4.14.5",
66
- "recharts": "^3.10.1",
67
- "tailwind-merge": "^3.7.0"
68
- }
69
- }
1
+ {
2
+ "name": "@central-ui/react",
3
+ "version": "0.4.0",
4
+ "description": "Accessible React components with optional Tailwind CSS style presets",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "react",
8
+ "ui",
9
+ "components",
10
+ "ark-ui",
11
+ "unstyled"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "type": "module",
17
+ "sideEffects": [
18
+ "./src/presets/**/*.css"
19
+ ],
20
+ "files": [
21
+ "dist",
22
+ "src/presets",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js"
30
+ },
31
+ "./presets/shopify-polaris-legacy.css": "./src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css",
32
+ "./presets/shopify-polaris.css": "./src/presets/shopify-polaris/shopify-polaris.css"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc --project tsconfig.json",
36
+ "prepack": "npm run build",
37
+ "typecheck": "tsc --project tsconfig.json --noEmit"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^19.0.0",
41
+ "react-dom": "^19.0.0",
42
+ "tailwindcss": "^4.2.1"
43
+ },
44
+ "peerDependenciesMeta": {
45
+ "tailwindcss": {
46
+ "optional": true
47
+ }
48
+ },
49
+ "devDependencies": {
50
+ "@types/react": "19.3.0",
51
+ "@types/react-dom": "19.3.0",
52
+ "typescript": "6.0.3"
53
+ },
54
+ "dependencies": {
55
+ "@ark-ui/react": "^5.39.3",
56
+ "@base-ui/react": "^1.9.0",
57
+ "@internationalized/date": "^3.12.4",
58
+ "@radix-ui/react-password-toggle-field": "^0.2.1",
59
+ "@tanstack/react-virtual": "^3.14.20",
60
+ "embla-carousel-autoplay": "8.6.0",
61
+ "embla-carousel-react": "8.6.0",
62
+ "react-aria": "^3.53.1",
63
+ "react-aria-components": "^1.22.1",
64
+ "react-joyride": "^3.2.0",
65
+ "react-resizable-panels": "^4.14.5",
66
+ "recharts": "^3.10.1",
67
+ "tailwind-merge": "^3.7.0"
68
+ }
69
+ }
@@ -1,28 +1,28 @@
1
- /* accordion */
2
- @layer components {
3
- :where(:not([data-style-disabled])) {
4
- &:where([data-component='accordion-list']) {
5
- @apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white;
6
- }
7
-
8
- &:where([data-component='accordion-item']) {
9
- @apply w-full border-b border-neutral-200 last:border-b-0;
10
- }
11
-
12
- &:where([data-component='accordion-openbutton']) {
13
- @apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-medium text-neutral-950 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
14
- }
15
-
16
- &:where([data-component='accordion-openertitle']) {
17
- @apply min-w-0 flex-1;
18
- }
19
-
20
- &:where([data-component='accordion-openerindicator']) {
21
- @apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
22
- }
23
-
24
- &:where([data-component='accordion-content']) {
25
- @apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
26
- }
27
- }
28
- }
1
+ /* accordion */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='accordion-list']) {
5
+ @apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white;
6
+ }
7
+
8
+ &:where([data-component='accordion-item']) {
9
+ @apply w-full border-b border-neutral-200 last:border-b-0;
10
+ }
11
+
12
+ &:where([data-component='accordion-openbutton']) {
13
+ @apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-medium text-neutral-950 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
14
+ }
15
+
16
+ &:where([data-component='accordion-openbuttontitle']) {
17
+ @apply min-w-0 flex-1;
18
+ }
19
+
20
+ &:where([data-component='accordion-openbuttonicon']) {
21
+ @apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
22
+ }
23
+
24
+ &:where([data-component='accordion-content']) {
25
+ @apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
26
+ }
27
+ }
28
+ }
@@ -1,28 +1,28 @@
1
- /* accordion */
2
- @layer components {
3
- :where(:not([data-style-disabled])) {
4
- &:where([data-component='accordion-list']) {
5
- @apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-300 bg-white;
6
- }
7
-
8
- &:where([data-component='accordion-item']) {
9
- @apply w-full border-b border-neutral-300 last:border-b-0;
10
- }
11
-
12
- &:where([data-component='accordion-openbutton']) {
13
- @apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-semibold text-neutral-900 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
14
- }
15
-
16
- &:where([data-component='accordion-openertitle']) {
17
- @apply min-w-0 flex-1;
18
- }
19
-
20
- &:where([data-component='accordion-openerindicator']) {
21
- @apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
22
- }
23
-
24
- &:where([data-component='accordion-content']) {
25
- @apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
26
- }
27
- }
28
- }
1
+ /* accordion */
2
+ @layer components {
3
+ :where(:not([data-style-disabled])) {
4
+ &:where([data-component='accordion-list']) {
5
+ @apply flex w-full flex-col overflow-hidden rounded-xl border border-neutral-300 bg-white;
6
+ }
7
+
8
+ &:where([data-component='accordion-item']) {
9
+ @apply w-full border-b border-neutral-300 last:border-b-0;
10
+ }
11
+
12
+ &:where([data-component='accordion-openbutton']) {
13
+ @apply flex min-h-10 w-full cursor-pointer items-center justify-between gap-4 bg-white px-3 py-2 text-left text-sm font-semibold text-neutral-900 outline-none hover:bg-neutral-50 focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:outline-blue-600 disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-500 disabled:opacity-50;
14
+ }
15
+
16
+ &:where([data-component='accordion-openbuttontitle']) {
17
+ @apply min-w-0 flex-1;
18
+ }
19
+
20
+ &:where([data-component='accordion-openbuttonicon']) {
21
+ @apply h-4 w-fit shrink-0 text-inherit transition-transform data-panel-open:rotate-180;
22
+ }
23
+
24
+ &:where([data-component='accordion-content']) {
25
+ @apply h-(--accordion-panel-height) overflow-hidden text-sm text-neutral-700 transition-[height] duration-200 data-starting-style:h-0 data-ending-style:h-0;
26
+ }
27
+ }
28
+ }