@central-ui/react 0.1.0 → 0.1.2

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 (128) hide show
  1. package/README.md +6 -4
  2. package/dist/components/accordion/index.d.ts +3 -3
  3. package/dist/components/accordion/index.d.ts.map +1 -1
  4. package/dist/components/accordion/index.js +7 -7
  5. package/dist/components/accordion/index.js.map +1 -1
  6. package/dist/components/autocomplete/index.d.ts +8 -8
  7. package/dist/components/autocomplete/index.d.ts.map +1 -1
  8. package/dist/components/autocomplete/index.js +29 -28
  9. package/dist/components/autocomplete/index.js.map +1 -1
  10. package/dist/components/avatar/index.js +6 -5
  11. package/dist/components/avatar/index.js.map +1 -1
  12. package/dist/components/banner/index.d.ts.map +1 -1
  13. package/dist/components/banner/index.js +1 -1
  14. package/dist/components/banner/index.js.map +1 -1
  15. package/dist/components/breadcrumb/index.js +1 -1
  16. package/dist/components/breadcrumb/index.js.map +1 -1
  17. package/dist/components/button/index.d.ts +2 -2
  18. package/dist/components/button/index.d.ts.map +1 -1
  19. package/dist/components/button/index.js +1 -1
  20. package/dist/components/button/index.js.map +1 -1
  21. package/dist/components/checkbox/index.js +10 -10
  22. package/dist/components/checkbox/index.js.map +1 -1
  23. package/dist/components/combobox/index.d.ts +15 -15
  24. package/dist/components/combobox/index.d.ts.map +1 -1
  25. package/dist/components/combobox/index.js +36 -35
  26. package/dist/components/combobox/index.js.map +1 -1
  27. package/dist/components/datepicker/index.d.ts +36 -24
  28. package/dist/components/datepicker/index.d.ts.map +1 -1
  29. package/dist/components/datepicker/index.js +33 -10
  30. package/dist/components/datepicker/index.js.map +1 -1
  31. package/dist/components/dialog/index.d.ts +3 -3
  32. package/dist/components/dialog/index.d.ts.map +1 -1
  33. package/dist/components/dialog/index.js +11 -11
  34. package/dist/components/dialog/index.js.map +1 -1
  35. package/dist/components/drawer/index.d.ts +3 -3
  36. package/dist/components/drawer/index.d.ts.map +1 -1
  37. package/dist/components/drawer/index.js +14 -14
  38. package/dist/components/drawer/index.js.map +1 -1
  39. package/dist/components/fileupload/index.js +1 -1
  40. package/dist/components/fileupload/index.js.map +1 -1
  41. package/dist/components/input/index.d.ts +2 -2
  42. package/dist/components/input/index.d.ts.map +1 -1
  43. package/dist/components/input/index.js +13 -13
  44. package/dist/components/input/index.js.map +1 -1
  45. package/dist/components/menu/index.d.ts +5 -5
  46. package/dist/components/menu/index.d.ts.map +1 -1
  47. package/dist/components/menu/index.js +22 -22
  48. package/dist/components/menu/index.js.map +1 -1
  49. package/dist/components/numberinput/index.d.ts +2 -2
  50. package/dist/components/numberinput/index.d.ts.map +1 -1
  51. package/dist/components/numberinput/index.js +19 -19
  52. package/dist/components/numberinput/index.js.map +1 -1
  53. package/dist/components/otpinput/index.d.ts.map +1 -1
  54. package/dist/components/otpinput/index.js +10 -10
  55. package/dist/components/otpinput/index.js.map +1 -1
  56. package/dist/components/page/index.js +1 -1
  57. package/dist/components/page/index.js.map +1 -1
  58. package/dist/components/passwordinput/index.d.ts +2 -2
  59. package/dist/components/passwordinput/index.d.ts.map +1 -1
  60. package/dist/components/passwordinput/index.js +13 -13
  61. package/dist/components/passwordinput/index.js.map +1 -1
  62. package/dist/components/popover/index.js +8 -8
  63. package/dist/components/popover/index.js.map +1 -1
  64. package/dist/components/radio/index.js +13 -13
  65. package/dist/components/radio/index.js.map +1 -1
  66. package/dist/components/ratinginput/index.d.ts +2 -2
  67. package/dist/components/ratinginput/index.d.ts.map +1 -1
  68. package/dist/components/ratinginput/index.js +1 -1
  69. package/dist/components/ratinginput/index.js.map +1 -1
  70. package/dist/components/select/index.d.ts +4 -4
  71. package/dist/components/select/index.d.ts.map +1 -1
  72. package/dist/components/select/index.js +18 -18
  73. package/dist/components/select/index.js.map +1 -1
  74. package/dist/components/slider/index.js +13 -13
  75. package/dist/components/slider/index.js.map +1 -1
  76. package/dist/components/spinner/index.d.ts +2 -2
  77. package/dist/components/spinner/index.d.ts.map +1 -1
  78. package/dist/components/spinner/index.js.map +1 -1
  79. package/dist/components/splitter/index.js +1 -1
  80. package/dist/components/splitter/index.js.map +1 -1
  81. package/dist/components/switch/index.js +8 -8
  82. package/dist/components/switch/index.js.map +1 -1
  83. package/dist/components/table/index.js +3 -3
  84. package/dist/components/table/index.js.map +1 -1
  85. package/dist/components/tabs/index.d.ts +3 -3
  86. package/dist/components/tabs/index.d.ts.map +1 -1
  87. package/dist/components/tabs/index.js +5 -5
  88. package/dist/components/tabs/index.js.map +1 -1
  89. package/dist/components/textarea/index.d.ts +2 -2
  90. package/dist/components/textarea/index.d.ts.map +1 -1
  91. package/dist/components/textarea/index.js +12 -12
  92. package/dist/components/textarea/index.js.map +1 -1
  93. package/dist/components/toast/index.d.ts.map +1 -1
  94. package/dist/components/toast/index.js +10 -10
  95. package/dist/components/toast/index.js.map +1 -1
  96. package/dist/components/toggle/index.d.ts +5 -5
  97. package/dist/components/toggle/index.d.ts.map +1 -1
  98. package/dist/components/toggle/index.js +4 -4
  99. package/dist/components/toggle/index.js.map +1 -1
  100. package/dist/components/tooltip/index.js +3 -3
  101. package/dist/components/tooltip/index.js.map +1 -1
  102. package/dist/types/Icon.d.ts +11 -0
  103. package/dist/types/Icon.d.ts.map +1 -0
  104. package/dist/types/Icon.js +2 -0
  105. package/dist/types/Icon.js.map +1 -0
  106. package/dist/utils/ArkStateToDataAttributes.d.ts.map +1 -1
  107. package/dist/utils/ArkStateToDataAttributes.js +3 -1
  108. package/dist/utils/ArkStateToDataAttributes.js.map +1 -1
  109. package/dist/utils/Tone.js +1 -1
  110. package/dist/utils/Tone.js.map +1 -1
  111. package/dist/utils/useForwardClickToInput.d.ts.map +1 -1
  112. package/dist/utils/useForwardClickToInput.js +4 -2
  113. package/dist/utils/useForwardClickToInput.js.map +1 -1
  114. package/package.json +2 -2
  115. package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +13 -4
  116. package/src/presets/shopify-polaris/shopify-polaris-badge.css +1 -1
  117. package/src/presets/shopify-polaris/shopify-polaris-chip.css +3 -3
  118. package/src/presets/shopify-polaris/shopify-polaris-combobox.css +17 -8
  119. package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +16 -7
  120. package/src/presets/shopify-polaris/shopify-polaris-input.css +12 -3
  121. package/src/presets/shopify-polaris/shopify-polaris-menu.css +31 -6
  122. package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +14 -5
  123. package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +1 -1
  124. package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +12 -3
  125. package/src/presets/shopify-polaris/shopify-polaris-select.css +13 -4
  126. package/src/presets/shopify-polaris/shopify-polaris-textarea.css +11 -2
  127. package/src/presets/shopify-polaris/shopify-polaris-toast.css +43 -0
  128. package/src/presets/shopify-polaris/shopify-polaris.css +1 -0
@@ -22,7 +22,7 @@ import { twMerge } from 'tailwind-merge';
22
22
  * )
23
23
  * }
24
24
  */
25
- export const Root = forwardRef(function Root({ children, className, disableStyle, size = 'medium', pressed, defaultPressed = false, onPressedChange, disabled = false, ...props }, ref) {
25
+ export const Root = /* @__PURE__ */ forwardRef(function Root({ children, className, disableStyle, size = 'medium', pressed, defaultPressed = false, onPressedChange, disabled = false, ...props }, ref) {
26
26
  const [pressedInternalState, setPressedInternalState] = useState(defaultPressed);
27
27
  return (_jsx(BaseToggle, { ...props, ref: ref, pressed: pressed, defaultPressed: defaultPressed, disabled: disabled, "data-size": size, "data-component": "toggle-root", "data-style-disabled": disableStyle ? '' : undefined, onPressedChange: (next, details) => {
28
28
  onPressedChange?.(next, details);
@@ -31,7 +31,7 @@ export const Root = forwardRef(function Root({ children, className, disableStyle
31
31
  }, className: className, children: _jsx(ToggleContext.Provider, { value: { pressed: pressed ?? pressedInternalState, disabled, size }, children: children }) }));
32
32
  });
33
33
  /** Render beside InactiveIcon inside Root. It automatically appears only while pressed; supply the decorative icon without another visibility condition. */
34
- export const ActiveIcon = forwardRef(function ActiveIcon({ disableStyle, children, className, ...props }, ref) {
34
+ export const ActiveIcon = /* @__PURE__ */ forwardRef(function ActiveIcon({ disableStyle, children, className, ...props }, ref) {
35
35
  const { pressed, disabled, size } = useToggleContext();
36
36
  if (!pressed)
37
37
  return null;
@@ -50,7 +50,7 @@ export const ActiveIcon = forwardRef(function ActiveIcon({ disableStyle, childre
50
50
  });
51
51
  });
52
52
  /** Render beside ActiveIcon inside Root. It automatically appears only while unpressed; supply the decorative icon without another visibility condition. */
53
- export const InactiveIcon = forwardRef(function InactiveIcon({ disableStyle, children, className, ...props }, ref) {
53
+ export const InactiveIcon = /* @__PURE__ */ forwardRef(function InactiveIcon({ disableStyle, children, className, ...props }, ref) {
54
54
  const { pressed, disabled, size } = useToggleContext();
55
55
  if (pressed)
56
56
  return null;
@@ -68,7 +68,7 @@ export const InactiveIcon = forwardRef(function InactiveIcon({ disableStyle, chi
68
68
  className: twMerge(children.props.className, className),
69
69
  });
70
70
  });
71
- const ToggleContext = createContext(null);
71
+ const ToggleContext = /* @__PURE__ */ createContext(null);
72
72
  function useToggleContext() {
73
73
  const context = useContext(ToggleContext);
74
74
  if (!context)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toggle/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,QAAQ,GACT,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAIxC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAO5B,SAAS,IAAI,CACb,EACE,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,cAAc,GAAG,KAAK,EACtB,eAAe,EACf,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACT,EACD,GAAG;IAEH,M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AAE,IAAI;QACnB,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACxC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC1C,GAAG;YACD,gBAAgB,EAAE,qBAAqB;YACvC,qBAAqB,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;SACrD;QACD,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC;KACxC,CAAC,CAAA;AACpB,CAAC,CAAC,CAAA;AACF,MAAM,aAAa,GAAG,eAAe,CAAC,aAAa,CAIzC,IAAI,CAAC,CAAA;AACf,SAAS,gBAAgB;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IACxE,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -29,7 +29,7 @@ import { forwardRef } from 'react';
29
29
  */
30
30
  export const Root = BaseTooltip.Root;
31
31
  /** Behavior only: give your child control this action. Style the child itself; this wrapper has no preset appearance or disableStyle prop. */
32
- export const OpenHandler = forwardRef(function OpenHandler({ children, ...props }, ref) {
32
+ export const OpenHandler = /* @__PURE__ */ forwardRef(function OpenHandler({ children, ...props }, ref) {
33
33
  return _jsx(BaseTooltip.Trigger, { ...props, ref: ref, render: children });
34
34
  });
35
35
  /** Already includes the portal and positioner. Keep it in the matching Root and let the native open state control visibility. */
@@ -42,10 +42,10 @@ export function Popup({ disableStyle, container, keepMounted, anchor, positionMe
42
42
  ? (state) => ({ ...baseStyle, ...style(state) })
43
43
  : { ...baseStyle, ...style } }) }) }));
44
44
  }
45
- export const PopupText = forwardRef(function PopupText({ disableStyle, className, ...props }, ref) {
45
+ export const PopupText = /* @__PURE__ */ forwardRef(function PopupText({ disableStyle, className, ...props }, ref) {
46
46
  return (_jsx("span", { ...props, ref: ref, "data-component": "tooltip-popuptext", "data-style-disabled": disableStyle ? '' : undefined, className: className }));
47
47
  });
48
- export const Arrow = forwardRef(function Arrow({ disableStyle, className, style, ...props }, ref) {
48
+ export const Arrow = /* @__PURE__ */ forwardRef(function Arrow({ disableStyle, className, style, ...props }, ref) {
49
49
  return (_jsxs(BaseTooltip.Arrow, { style: style, render: _jsx("svg", { ...props, ref: ref, "aria-hidden": true, width: "20", height: "10", viewBox: "0 0 20 10" }), "data-component": "tooltip-arrow", "data-style-disabled": disableStyle ? '' : undefined, className: className, children: [_jsx("path", { d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z", "data-component": "tooltip-arrow-1" }), _jsx("path", { d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z", "data-component": "tooltip-arrow-2" }), _jsx("path", { d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z", "data-component": "tooltip-arrow-3" })] }));
50
50
  });
51
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tooltip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,eAAe,yBACT,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAClD,SAAS,EAAE,SAAS,aAEpB,eACE,CAAC,EAAC,iMAAiM,oBACpL,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,kSAAkS,oBACrR,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,sTAAsT,oBACzS,iBAAiB,GAChC,IACgB,CACrB,CAAA;AACH,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tooltip/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIlC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAA;AACpC,8IAA8I;AAC9I,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,UAAU,CAOnD,SAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG;IAChD,OAAO,KAAC,WAAW,CAAC,OAAO,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAA;AACvE,CAAC,CAAC,CAAA;AA0BF,iIAAiI;AACjI,MAAM,UAAU,KAAK,CAAC,EACpB,YAAY,EACZ,SAAS,EACT,WAAW,EACX,MAAM,EACN,cAAc,EACd,IAAI,GAAG,KAAK,EACZ,UAAU,GAAG,CAAC,EACd,KAAK,GAAG,OAAO,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACgB;IACxB,MAAM,SAAS,GAAG;QAChB,SAAS,EAAE,yBAAyB;QACpC,QAAQ,EAA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AAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,UAAU,CAI7C,SAAS,KAAK,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG;IAChE,OAAO,CACL,MAAC,WAAW,CAAC,KAAK,IAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EACJ,iBACM,KAAK,EACT,GAAG,EAAE,GAAG,uBAER,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,GACnB,oBAEW,eAAe,yBACT,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAClD,SAAS,EAAE,SAAS,aAEpB,eACE,CAAC,EAAC,iMAAiM,oBACpL,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,kSAAkS,oBACrR,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,sTAAsT,oBACzS,iBAAiB,GAChC,IACgB,CACrB,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { SVGProps } from 'react';
2
+ /** Props forwarded to built-in SVG icons, without importing the full icon catalog into consumer types. */
3
+ export interface SVGIconProps extends SVGProps<SVGSVGElement> {
4
+ /** Set the icon's width and height together; explicit width or height takes precedence. */
5
+ size?: string | number;
6
+ /** @deprecated Use nonScalingStroke instead. */
7
+ absoluteStrokeWidth?: boolean;
8
+ /** Keep the stroke thickness steady when changing the icon size. */
9
+ nonScalingStroke?: boolean;
10
+ }
11
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/types/Icon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,0GAA0G;AAC1G,MAAM,WAAW,YAAa,SAAQ,QAAQ,CAAC,aAAa,CAAC;IAC3D,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,gDAAgD;IAChD,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../src/types/Icon.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ArkStateToDataAttributes.d.ts","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM;;EASrD"}
1
+ {"version":3,"file":"ArkStateToDataAttributes.d.ts","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM;;EAcrD"}
@@ -1,6 +1,8 @@
1
1
  export function arkStateToDataAttributes(state) {
2
2
  return Object.fromEntries(Object.entries(state)
3
- .filter(([, value]) => typeof value === 'boolean' || typeof value === 'string' || typeof value === 'number')
3
+ .filter(([, value]) => typeof value === 'boolean' ||
4
+ typeof value === 'string' ||
5
+ typeof value === 'number')
4
6
  .map(([key, value]) => [
5
7
  `data-${key.toLowerCase()}`,
6
8
  typeof value === 'boolean' ? value || undefined : value,
@@ -1 +1 @@
1
- {"version":3,"file":"ArkStateToDataAttributes.js","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;SAC3G,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;QACrB,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE;QAC3B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK;KACxD,CAAC,CACL,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"ArkStateToDataAttributes.js","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SAClB,MAAM,CACL,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CACZ,OAAO,KAAK,KAAK,SAAS;QAC1B,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,QAAQ,CAC5B;SACA,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;QACrB,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE;QAC3B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK;KACxD,CAAC,CACL,CAAA;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from 'react';
2
- const ToneContext = createContext('neutral');
2
+ const ToneContext = /* @__PURE__ */ createContext('neutral');
3
3
  export const ToneProvider = ToneContext.Provider;
4
4
  export function useToneContext() {
5
5
  return useContext(ToneContext);
@@ -1 +1 @@
1
- {"version":3,"file":"Tone.js","sourceRoot":"","sources":["../../src/utils/Tone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAC,UAAU,EAAE,MAAM,OAAO,CAAA;AAGhD,MAAM,WAAW,GAAG,aAAa,CAAoB,SAAS,CAAC,CAAA;AAE/D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAA;AAEhD,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,WAAW,CAAC,CAAA;AAChC,CAAC"}
1
+ {"version":3,"file":"Tone.js","sourceRoot":"","sources":["../../src/utils/Tone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,WAAW,GAAG,eAAe,CAAC,aAAa,CAAoB,SAAS,CAAC,CAAA;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAA;AAEhD,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,WAAW,CAAC,CAAA;AAChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useForwardClickToInput.d.ts","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG9C,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,WAAW,EAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC7B,iBAAiB,CAAC,CAAC,CAAC,CAoBtB"}
1
+ {"version":3,"file":"useForwardClickToInput.d.ts","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG9C,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,WAAW,EAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC7B,iBAAiB,CAAC,CAAC,CAAC,CA8BtB"}
@@ -8,10 +8,12 @@ export function useForwardClickToInput(selector, onClick) {
8
8
  onClick?.(event);
9
9
  if (event.defaultPrevented)
10
10
  return;
11
- if (event.target instanceof Element && event.target.closest('button, [data-part="item"]'))
11
+ if (event.target instanceof Element &&
12
+ event.target.closest('button, [data-part="item"]'))
12
13
  return;
13
14
  const input = event.currentTarget.querySelector(selector);
14
- if (!input || (event.target instanceof Element && event.target.matches(selector)))
15
+ if (!input ||
16
+ (event.target instanceof Element && event.target.matches(selector)))
15
17
  return;
16
18
  forwardingClick.current = true;
17
19
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"useForwardClickToInput.js","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B,+FAA+F;AAC/F,MAAM,UAAU,sBAAsB,CACpC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAErC,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,IAAI,eAAe,CAAC,OAAO;YAAE,OAAM;QACnC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;QAChB,IAAI,KAAK,CAAC,gBAAgB;YAAE,OAAM;QAClC,IAAI,KAAK,CAAC,MAAM,YAAY,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAAE,OAAM;QAEjG,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAyC,QAAQ,CAAC,CAAA;QACjG,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,YAAY,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAAE,OAAM;QAEzF,eAAe,CAAC,OAAO,GAAG,IAAI,CAAA;QAC9B,IAAI,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAA;QACf,CAAC;gBAAS,CAAC;YACT,eAAe,CAAC,OAAO,GAAG,KAAK,CAAA;QACjC,CAAC;QACD,IAAI,QAAQ,CAAC,aAAa,KAAK,KAAK;YAAE,KAAK,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"useForwardClickToInput.js","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B,+FAA+F;AAC/F,MAAM,UAAU,sBAAsB,CACpC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAErC,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,IAAI,eAAe,CAAC,OAAO;YAAE,OAAM;QACnC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;QAChB,IAAI,KAAK,CAAC,gBAAgB;YAAE,OAAM;QAClC,IACE,KAAK,CAAC,MAAM,YAAY,OAAO;YAC/B,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAElD,OAAM;QAER,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAE7C,QAAQ,CAAC,CAAA;QACX,IACE,CAAC,KAAK;YACN,CAAC,KAAK,CAAC,MAAM,YAAY,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAEnE,OAAM;QAER,eAAe,CAAC,OAAO,GAAG,IAAI,CAAA;QAC9B,IAAI,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAA;QACf,CAAC;gBAAS,CAAC;YACT,eAAe,CAAC,OAAO,GAAG,KAAK,CAAA;QACjC,CAAC;QACD,IAAI,QAAQ,CAAC,aAAa,KAAK,KAAK;YAAE,KAAK,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-ui/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Accessible React components with optional Tailwind CSS style presets",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -39,7 +39,7 @@
39
39
  "peerDependencies": {
40
40
  "react": "^18.0.0 || ^19.0.0",
41
41
  "react-dom": "^18.0.0 || ^19.0.0",
42
- "tailwindcss": "^4.3.3"
42
+ "tailwindcss": "^4.2.1"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "tailwindcss": {
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &:where([data-component='autocomplete-input']) {
13
- @apply min-w-12 flex-1 h-7 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
13
+ @apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
14
14
  }
15
15
 
16
16
  &:where([data-component='autocomplete-scrollarea']) {
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  &:where([data-component='autocomplete-item']) {
33
- @apply flex h-8 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 text-sm font-normal text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100 active:bg-neutral-200;
33
+ @apply flex h-7 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-xl px-2 text-sm font-normal text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100 active:bg-neutral-200;
34
34
  }
35
35
 
36
36
  &:where([data-component='autocomplete-popup']) {
@@ -57,7 +57,7 @@
57
57
  }
58
58
 
59
59
  &:where([data-component='autocomplete-addon']) {
60
- @apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
60
+ @apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
61
61
  &[data-variant='emphasized'] {
62
62
  @apply bg-neutral-200/60;
63
63
  }
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  &:where([data-component='autocomplete-inputgroup']) {
78
- @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-200 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
78
+ @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
79
79
  &[data-tone='invalid'] {
80
80
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
81
81
  }
@@ -84,6 +84,15 @@
84
84
  }
85
85
  }
86
86
 
87
+ &:where([data-component='autocomplete-inputgroup'])
88
+ :where(
89
+ svg:not([data-style-disabled]):not(
90
+ [data-component='combobox-chipremovebuttonicon']
91
+ ):not([data-component='chip-closebuttonicon'])
92
+ ) {
93
+ @apply text-neutral-600;
94
+ }
95
+
87
96
  &:where([data-component='autocomplete-addonopenbutton']) {
88
97
  @apply flex h-4 w-auto shrink-0 cursor-pointer items-center justify-center rounded-full p-0 text-neutral-600 hover:text-neutral-700 active:text-neutral-800 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
89
98
  }
@@ -2,7 +2,7 @@
2
2
  @layer components {
3
3
  :where(:not([data-style-disabled])) {
4
4
  &:where([data-component='badge-badge']) {
5
- @apply flex h-[1.28rem] min-w-[1.425rem] w-fit shrink-0 items-center justify-center gap-1 truncate rounded-lg px-2 text-nowrap text-[0.8rem] font-semibold leading-none [&>svg]:h-3.5 [&>svg]:w-fit;
5
+ @apply flex h-[1.28rem] min-w-[1.425rem] w-fit shrink-0 items-center justify-center gap-1 truncate rounded-md px-2 text-nowrap text-[0.8rem] font-semibold leading-none [&>svg]:h-3.5 [&>svg]:w-fit;
6
6
  &[data-tone='neutral'] {
7
7
  @apply bg-[#0000000d] text-[#4a4a4a];
8
8
  }
@@ -2,15 +2,15 @@
2
2
  @layer components {
3
3
  :where(:not([data-style-disabled])) {
4
4
  &:where([data-component='chip-chip']) {
5
- @apply flex h-6 min-w-6 w-fit shrink-0 cursor-default items-center justify-between gap-1 rounded-full bg-black/5 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-600;
5
+ @apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-md bg-neutral-100 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-700 data-disabled:opacity-50;
6
6
  }
7
7
 
8
8
  &:where([data-component='chip-closebutton']) {
9
- @apply -mr-1.75 flex h-4.25 aspect-square w-auto cursor-pointer items-center justify-center rounded-full text-neutral-600 hover:bg-black/10 hover:text-neutral-950 active:bg-black/15 active:text-neutral-950 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
9
+ @apply -mr-1.75 flex h-4.25 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-md p-0 hover:bg-neutral-200 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
10
10
  }
11
11
 
12
12
  &:where([data-component='chip-closebuttonicon']) {
13
- @apply h-3.25 w-fit text-inherit;
13
+ @apply h-3.25 w-fit shrink-0 text-neutral-700;
14
14
  }
15
15
  }
16
16
  }
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &:where([data-component='combobox-input']) {
13
- @apply min-w-12 flex-1 h-7 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
13
+ @apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
14
14
  }
15
15
 
16
16
  &:where([data-component='combobox-input'])[data-in-chips] {
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &:where([data-component='combobox-chipslist']) {
21
- @apply flex min-w-0 w-full flex-wrap items-center gap-1 px-2.5 py-1 min-h-7;
21
+ @apply flex min-w-0 w-full flex-wrap items-center gap-1 px-2.5 py-1 min-h-8;
22
22
  }
23
23
 
24
24
  &:where([data-component='combobox-scrollarea']) {
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  &:where([data-component='combobox-item']) {
41
- @apply flex h-8 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-lg px-2 text-sm font-normal text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100 active:bg-neutral-200;
41
+ @apply flex h-7 w-full shrink-0 cursor-pointer items-center justify-between gap-2 rounded-xl px-2 text-sm font-normal text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-30 data-highlighted:bg-neutral-100 active:bg-neutral-200;
42
42
  }
43
43
 
44
44
  &:where([data-component='combobox-popup']) {
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  &:where([data-component='combobox-addon']) {
68
- @apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
68
+ @apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
69
69
  &[data-variant='emphasized'] {
70
70
  @apply bg-neutral-200/60;
71
71
  }
@@ -83,7 +83,7 @@
83
83
  }
84
84
 
85
85
  &:where([data-component='combobox-inputgroup']) {
86
- @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-200 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
86
+ @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
87
87
  &[data-tone='invalid'] {
88
88
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
89
89
  }
@@ -92,12 +92,21 @@
92
92
  }
93
93
  }
94
94
 
95
+ &:where([data-component='combobox-inputgroup'])
96
+ :where(
97
+ svg:not([data-style-disabled]):not(
98
+ [data-component='combobox-chipremovebuttonicon']
99
+ ):not([data-component='chip-closebuttonicon'])
100
+ ) {
101
+ @apply text-neutral-600;
102
+ }
103
+
95
104
  &:where([data-component='combobox-chip']) {
96
- @apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-full bg-neutral-200 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-950 data-disabled:opacity-50;
105
+ @apply flex h-5 min-w-6 w-fit shrink-0 items-center justify-between gap-1 rounded-md bg-neutral-100 px-2 text-[0.8rem] leading-none font-medium text-nowrap text-neutral-700 data-disabled:opacity-50;
97
106
  }
98
107
 
99
108
  &:where([data-component='combobox-chipremovebutton']) {
100
- @apply -mr-1.75 flex h-4.25 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-xl p-0 hover:bg-neutral-300 active:bg-neutral-300 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
109
+ @apply -mr-1.75 flex h-4.25 aspect-square w-auto shrink-0 cursor-pointer items-center justify-center rounded-md p-0 hover:bg-neutral-200 active:bg-neutral-200 focus-visible:outline-2 focus-visible:outline-blue-500 disabled:pointer-events-none disabled:opacity-50;
101
110
  }
102
111
 
103
112
  &:where([data-component='combobox-addonopenbutton']) {
@@ -153,7 +162,7 @@
153
162
  }
154
163
 
155
164
  &:where([data-component='combobox-chipremovebuttonicon']) {
156
- @apply h-3.25 w-fit shrink-0 text-neutral-950;
165
+ @apply h-3.25 w-fit shrink-0 text-neutral-700;
157
166
  }
158
167
 
159
168
  &:where([data-component='combobox-addonloadingicon']) {
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &:where([data-component='datepicker-inputgroup']) {
13
- @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-200 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 data-[focus-within]:border-blue-500 data-[focus-within]:ring-2 data-[focus-within]:ring-blue-500/10 data-[focus-within]:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
13
+ @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 data-[focus-within]:border-blue-500 data-[focus-within]:ring-2 data-[focus-within]:ring-blue-500/10 data-[focus-within]:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
14
14
  &[data-tone='invalid'] {
15
15
  @apply border-red-500 data-[focus-within]:border-red-500 data-[focus-within]:ring-red-500/10;
16
16
  }
@@ -19,8 +19,17 @@
19
19
  }
20
20
  }
21
21
 
22
+ &:where([data-component='datepicker-inputgroup'])
23
+ :where(
24
+ svg:not([data-style-disabled]):not(
25
+ [data-component='combobox-chipremovebuttonicon']
26
+ ):not([data-component='chip-closebuttonicon'])
27
+ ) {
28
+ @apply text-neutral-600;
29
+ }
30
+
22
31
  &:where([data-component='datepicker-addon']) {
23
- @apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
32
+ @apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
24
33
  &[data-variant='emphasized'] {
25
34
  @apply bg-neutral-200/60;
26
35
  }
@@ -54,7 +63,7 @@
54
63
  }
55
64
 
56
65
  &:where([data-component='datepicker-input']) {
57
- @apply flex h-7 min-w-0 items-center bg-transparent px-2.5 py-0 text-sm text-neutral-950 data-disabled:text-neutral-400;
66
+ @apply flex h-8 min-w-0 items-center bg-transparent px-2.5 py-0 text-sm text-neutral-950 data-disabled:text-neutral-400;
58
67
  }
59
68
 
60
69
  &:where([data-component='datepicker-input'])[data-range-input] {
@@ -66,7 +75,7 @@
66
75
  }
67
76
 
68
77
  &:where([data-component='datepicker-segment']) {
69
- @apply rounded-sm text-inherit [font:inherit] outline-none data-focused:bg-blue-100 data-placeholder:text-neutral-500;
78
+ @apply rounded-sm text-inherit [font:inherit] outline-none data-focused:bg-blue-100 data-placeholder:text-neutral-600;
70
79
  }
71
80
 
72
81
  &:where([data-component='datepicker-addonopenbutton']) {
@@ -78,7 +87,7 @@
78
87
  }
79
88
 
80
89
  &:where([data-component='datepicker-openbutton']) {
81
- @apply flex h-7.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.75 overflow-hidden rounded-xl border border-neutral-200 bg-white px-2.5 text-sm font-normal text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500/10 focus-visible:shadow-sm disabled:pointer-events-none disabled:bg-white disabled:text-neutral-400 disabled:shadow-none aria-expanded:border-blue-500 aria-expanded:ring-2 aria-expanded:ring-blue-500/10 aria-expanded:shadow-sm;
90
+ @apply flex h-8.5 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.75 overflow-hidden rounded-xl border border-neutral-300 bg-white px-2.5 text-sm font-normal text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500/10 focus-visible:shadow-sm disabled:pointer-events-none disabled:bg-white disabled:text-neutral-400 disabled:shadow-none aria-expanded:border-blue-500 aria-expanded:ring-2 aria-expanded:ring-blue-500/10 aria-expanded:shadow-sm;
82
91
  &[data-tone='invalid'] {
83
92
  @apply border-red-500 focus-visible:border-red-500 focus-visible:ring-red-500/10 aria-expanded:border-red-500 aria-expanded:ring-red-500/10;
84
93
  }
@@ -88,11 +97,11 @@
88
97
  }
89
98
 
90
99
  &:where([data-component='datepicker-openbuttonvalue']) {
91
- @apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-400;
100
+ @apply min-w-0 truncate text-left text-inherit data-disabled:text-neutral-400 data-placeholder:text-neutral-600;
92
101
  }
93
102
 
94
103
  &:where([data-component='datepicker-openbuttonicon']) {
95
- @apply h-4 w-fit shrink-0 text-inherit;
104
+ @apply h-4 w-fit shrink-0 text-neutral-600;
96
105
  }
97
106
 
98
107
  &:where([data-component='datepicker-popup']) {
@@ -2,11 +2,11 @@
2
2
  @layer components {
3
3
  :where(:not([data-style-disabled])) {
4
4
  &:where([data-component='input-input']) {
5
- @apply min-w-12 flex-1 h-7 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
5
+ @apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
6
6
  }
7
7
 
8
8
  &:where([data-component='input-inputgroup']) {
9
- @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-200 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
9
+ @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
10
10
  &[data-tone='invalid'] {
11
11
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
12
12
  }
@@ -15,6 +15,15 @@
15
15
  }
16
16
  }
17
17
 
18
+ &:where([data-component='input-inputgroup'])
19
+ :where(
20
+ svg:not([data-style-disabled]):not(
21
+ [data-component='combobox-chipremovebuttonicon']
22
+ ):not([data-component='chip-closebuttonicon'])
23
+ ) {
24
+ @apply text-neutral-600;
25
+ }
26
+
18
27
  &:where([data-component='input-container']) {
19
28
  @apply flex flex-col gap-1.5 w-full;
20
29
  }
@@ -36,7 +45,7 @@
36
45
  }
37
46
 
38
47
  &:where([data-component='input-addon']) {
39
- @apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
48
+ @apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
40
49
  &[data-variant='emphasized'] {
41
50
  @apply bg-neutral-200/60;
42
51
  }
@@ -37,14 +37,14 @@
37
37
  }
38
38
 
39
39
  &:where([data-component='menu-buttonitem']) {
40
- @apply flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
40
+ @apply flex h-7 w-full cursor-pointer items-center gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
41
41
  &[data-tone='danger'] {
42
42
  @apply text-red-600 data-highlighted:bg-neutral-100;
43
43
  }
44
44
  }
45
45
 
46
46
  &:where([data-component='menu-linkitem']) {
47
- @apply flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
47
+ @apply flex h-7 w-full cursor-pointer items-center gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 font-normal active:bg-neutral-200;
48
48
  }
49
49
 
50
50
  &:where([data-component='menu-radiogroup']) {
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  &:where([data-component='menu-submenuopenbutton']) {
55
- @apply flex h-8 w-full cursor-pointer items-center justify-between gap-2 rounded-lg px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 data-open:bg-neutral-100 font-normal active:bg-neutral-200;
55
+ @apply flex h-7 w-full cursor-pointer items-center justify-between gap-2 rounded-2xl px-2 text-sm text-nowrap text-neutral-950 outline-none data-disabled:pointer-events-none data-disabled:opacity-30 data-highlighted:bg-neutral-100 data-open:bg-neutral-100 font-normal active:bg-neutral-200;
56
56
  }
57
57
 
58
58
  &:where([data-component='menu-separator']) {
@@ -64,11 +64,11 @@
64
64
  }
65
65
 
66
66
  &:where([data-component='menu-submenuopenbuttonicon']) {
67
- @apply h-4 w-fit shrink-0 text-inherit;
67
+ @apply h-4 w-fit shrink-0 text-neutral-800;
68
68
  }
69
69
 
70
70
  &:where([data-component='menu-checkboxcontainer']) {
71
- @apply flex min-h-8 w-full items-center gap-2 rounded-lg px-2 data-highlighted:bg-neutral-100;
71
+ @apply flex min-h-7 w-full items-center gap-2 rounded-2xl px-2 data-highlighted:bg-neutral-100;
72
72
  }
73
73
 
74
74
  &:where([data-component='menu-checkboxbuttonitem']) {
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  &:where([data-component='menu-radiocontainer']) {
92
- @apply flex min-h-8 w-full items-center gap-2 rounded-lg px-2 data-highlighted:bg-neutral-100;
92
+ @apply flex min-h-7 w-full items-center gap-2 rounded-2xl px-2 data-highlighted:bg-neutral-100;
93
93
  }
94
94
 
95
95
  &:where([data-component='menu-radiobuttonitem']) {
@@ -108,5 +108,30 @@
108
108
  &:where([data-component='menu-radioitemindicator-1']) {
109
109
  @apply size-full rounded-full bg-white;
110
110
  }
111
+
112
+ &:where([data-component='menu-buttonitem'])[data-tone='neutral']
113
+ &:where([data-component='menu-icon']) {
114
+ @apply text-neutral-800;
115
+ }
116
+
117
+ &:where([data-component='menu-linkitem'])
118
+ &:where([data-component='menu-icon']) {
119
+ @apply text-neutral-800;
120
+ }
121
+
122
+ &:where([data-component='menu-submenuopenbutton'])
123
+ &:where([data-component='menu-icon']) {
124
+ @apply text-neutral-800;
125
+ }
126
+
127
+ &:where([data-component='menu-checkboxcontainer'])
128
+ &:where([data-component='menu-icon']) {
129
+ @apply text-neutral-800;
130
+ }
131
+
132
+ &:where([data-component='menu-radiocontainer'])
133
+ &:where([data-component='menu-icon']) {
134
+ @apply text-neutral-800;
135
+ }
111
136
  }
112
137
  }
@@ -2,7 +2,7 @@
2
2
  @layer components {
3
3
  :where(:not([data-style-disabled])) {
4
4
  &:where([data-component='numberinput-input']) {
5
- @apply min-w-12 flex-1 h-7 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-500 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
5
+ @apply min-w-12 flex-1 h-8 rounded-none border-0 bg-transparent px-2.5 py-0 text-sm text-neutral-950 shadow-none outline-none placeholder:text-sm placeholder:text-neutral-600 hover:bg-transparent focus:outline-none disabled:cursor-not-allowed disabled:text-neutral-400;
6
6
  }
7
7
 
8
8
  &:where([data-component='numberinput-container']) {
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &:where([data-component='numberinput-addon']) {
29
- @apply inline-flex h-7 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
29
+ @apply inline-flex h-8 shrink-0 items-center gap-2 empty:hidden px-2 py-1;
30
30
  &[data-variant='emphasized'] {
31
31
  @apply bg-neutral-200/60;
32
32
  }
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  &:where([data-component='numberinput-inputgroup']) {
55
- @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-200 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
55
+ @apply p-0 flex w-full min-w-0 items-center overflow-hidden rounded-xl border border-neutral-300 bg-white text-[0.8rem] text-neutral-950 shadow-xs outline-none hover:bg-neutral-50 focus-within:border-blue-500 focus-within:ring-2 focus-within:ring-blue-500/10 focus-within:shadow-sm data-disabled:cursor-not-allowed data-disabled:border-neutral-200 data-disabled:bg-white data-disabled:text-neutral-400 data-disabled:shadow-none data-disabled:hover:bg-white data-readonly:cursor-not-allowed data-readonly:border-neutral-200 data-readonly:bg-neutral-50 data-readonly:hover:bg-neutral-50 data-readonly:shadow-none;
56
56
  &[data-tone='invalid'] {
57
57
  @apply border-red-500 focus-within:border-red-500 focus-within:ring-red-500/10;
58
58
  }
@@ -61,6 +61,15 @@
61
61
  }
62
62
  }
63
63
 
64
+ &:where([data-component='numberinput-inputgroup'])
65
+ :where(
66
+ svg:not([data-style-disabled]):not(
67
+ [data-component='combobox-chipremovebuttonicon']
68
+ ):not([data-component='chip-closebuttonicon'])
69
+ ) {
70
+ @apply text-neutral-600;
71
+ }
72
+
64
73
  &:where([data-component='numberinput-buttonslist']) {
65
74
  @apply flex w-fit shrink-0 flex-col justify-center overflow-hidden p-0.5 h-7;
66
75
  }
@@ -70,7 +79,7 @@
70
79
  }
71
80
 
72
81
  &:where([data-component='numberinput-incrementbutton']) {
73
- @apply flex h-2.5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-t-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
82
+ @apply flex h-3 w-5 shrink-0 cursor-pointer items-center justify-center rounded-t-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
74
83
  }
75
84
 
76
85
  &:where([data-component='numberinput-incrementbuttonicon']) {
@@ -78,7 +87,7 @@
78
87
  }
79
88
 
80
89
  &:where([data-component='numberinput-decrementbutton']) {
81
- @apply flex h-2.5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-b-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
90
+ @apply flex h-3 w-5 shrink-0 cursor-pointer items-center justify-center rounded-b-xl p-0 text-neutral-600 bg-neutral-200 active:bg-neutral-300 hover:bg-neutral-300 data-disabled:pointer-events-none data-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-blue-500;
82
91
  }
83
92
 
84
93
  &:where([data-component='numberinput-decrementbuttonicon']) {