@moduix/react 2.2.4 → 2.3.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 (131) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/Accordion_module.css +12 -1
  3. package/dist/components/alert/Alert.d.ts +1 -1
  4. package/dist/components/alert/Alert.js +1 -1
  5. package/dist/components/alert/Alert_module.css +22 -48
  6. package/dist/components/angle-slider/AngleSlider.d.ts +9 -3
  7. package/dist/components/angle-slider/AngleSlider.js +34 -10
  8. package/dist/components/angle-slider/AngleSlider_module.css +24 -5
  9. package/dist/components/aspect-ratio/AspectRatio.js +3 -3
  10. package/dist/components/aspect-ratio/AspectRatio_module.css +9 -2
  11. package/dist/components/avatar/Avatar.d.ts +2 -2
  12. package/dist/components/avatar/Avatar.js +39 -3
  13. package/dist/components/avatar/Avatar.module.js +2 -1
  14. package/dist/components/avatar/Avatar_module.css +8 -1
  15. package/dist/components/badge/Badge.d.ts +1 -0
  16. package/dist/components/badge/Badge.js +15 -5
  17. package/dist/components/badge/Badge_module.css +45 -30
  18. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -6
  19. package/dist/components/breadcrumbs/Breadcrumbs.js +4 -3
  20. package/dist/components/breadcrumbs/Breadcrumbs_module.css +1 -1
  21. package/dist/components/button/Button.js +9 -1
  22. package/dist/components/button/Button_module.css +0 -7
  23. package/dist/components/card/Card.d.ts +1 -0
  24. package/dist/components/card/Card.js +11 -0
  25. package/dist/components/card/Card.module.js +1 -0
  26. package/dist/components/card/Card_module.css +79 -29
  27. package/dist/components/carousel/Carousel_module.css +27 -5
  28. package/dist/components/chart/Chart.d.ts +17 -0
  29. package/dist/components/chart/Chart.js +156 -0
  30. package/dist/components/chart/Chart.module.js +18 -0
  31. package/dist/components/chart/Chart_module.css +138 -0
  32. package/dist/components/chart/index.d.ts +1 -0
  33. package/dist/components/chart/index.js +1 -0
  34. package/dist/components/checkbox/Checkbox.js +9 -3
  35. package/dist/components/checkbox/Checkbox_module.css +11 -3
  36. package/dist/components/clipboard/Clipboard_module.css +13 -1
  37. package/dist/components/close-button/CloseButton.js +14 -3
  38. package/dist/components/collapsible/Collapsible_module.css +11 -0
  39. package/dist/components/color-picker/ColorPicker.js +16 -6
  40. package/dist/components/color-picker/ColorPicker.module.js +2 -0
  41. package/dist/components/color-picker/ColorPicker_module.css +84 -9
  42. package/dist/components/combobox/Combobox.d.ts +1 -1
  43. package/dist/components/combobox/Combobox.js +2 -1
  44. package/dist/components/combobox/Combobox_module.css +1 -1
  45. package/dist/components/command-palette/CommandPalette.js +10 -18
  46. package/dist/components/command-palette/CommandPalette.module.js +0 -1
  47. package/dist/components/command-palette/CommandPalette_module.css +5 -15
  48. package/dist/components/container/Container_module.css +11 -11
  49. package/dist/components/date-picker/DatePicker.js +15 -6
  50. package/dist/components/dialog/Dialog.d.ts +3 -6
  51. package/dist/components/dialog/Dialog.js +19 -15
  52. package/dist/components/dialog/Dialog_module.css +12 -1
  53. package/dist/components/drawer/Drawer.d.ts +3 -6
  54. package/dist/components/drawer/Drawer.js +19 -15
  55. package/dist/components/drawer/Drawer_module.css +17 -6
  56. package/dist/components/empty/Empty_module.css +2 -2
  57. package/dist/components/field/Field_module.css +4 -0
  58. package/dist/components/fieldset/Fieldset_module.css +3 -0
  59. package/dist/components/file-upload/FileUpload.js +1 -1
  60. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
  61. package/dist/components/floating-panel/FloatingPanel.js +7 -5
  62. package/dist/components/heading/Heading.js +2 -2
  63. package/dist/components/highlight/Highlight.js +2 -2
  64. package/dist/components/hover-card/HoverCard.js +0 -2
  65. package/dist/components/hover-card/HoverCard_module.css +19 -8
  66. package/dist/components/image/Image.d.ts +6 -2
  67. package/dist/components/image/Image.js +2 -1
  68. package/dist/components/image-cropper/ImageCropper_module.css +0 -1
  69. package/dist/components/input/Input_module.css +2 -2
  70. package/dist/components/input-group/InputGroup.js +7 -7
  71. package/dist/components/kbd/Kbd.js +1 -0
  72. package/dist/components/lightbox/Lightbox.d.ts +5 -8
  73. package/dist/components/lightbox/Lightbox.js +20 -16
  74. package/dist/components/lightbox/Lightbox_module.css +7 -0
  75. package/dist/components/list/List_module.css +3 -4
  76. package/dist/components/listbox/Listbox.d.ts +3 -6
  77. package/dist/components/listbox/Listbox.js +15 -12
  78. package/dist/components/listbox/Listbox_module.css +2 -2
  79. package/dist/components/menu/Menu.d.ts +4 -8
  80. package/dist/components/menu/Menu.js +25 -20
  81. package/dist/components/menu/Menu_module.css +10 -0
  82. package/dist/components/native-select/NativeSelect_module.css +1 -1
  83. package/dist/components/pagination/Pagination.js +2 -2
  84. package/dist/components/pagination/Pagination_module.css +1 -1
  85. package/dist/components/password-input/PasswordInput_module.css +4 -4
  86. package/dist/components/popover/Popover.d.ts +4 -7
  87. package/dist/components/popover/Popover.js +24 -18
  88. package/dist/components/popover/Popover_module.css +18 -8
  89. package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
  90. package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
  91. package/dist/components/qr-code/QrCode_module.css +2 -3
  92. package/dist/components/radio-group/RadioGroup_module.css +1 -1
  93. package/dist/components/scroll-area/ScrollArea_module.css +15 -0
  94. package/dist/components/segment-group/SegmentGroup.module.js +1 -1
  95. package/dist/components/segment-group/SegmentGroup_module.css +4 -4
  96. package/dist/components/select/Select.d.ts +3 -6
  97. package/dist/components/select/Select.js +16 -12
  98. package/dist/components/select/Select_module.css +15 -1
  99. package/dist/components/separator/Separator.js +2 -2
  100. package/dist/components/separator/Separator_module.css +3 -3
  101. package/dist/components/sidebar/Sidebar.js +1 -1
  102. package/dist/components/sidebar/Sidebar_module.css +9 -8
  103. package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
  104. package/dist/components/signature-pad/SignaturePad.js +44 -18
  105. package/dist/components/simple-grid/SimpleGrid.js +1 -0
  106. package/dist/components/slider/Slider_module.css +9 -5
  107. package/dist/components/split-button/SplitButton.d.ts +4 -0
  108. package/dist/components/split-button/SplitButton.js +4 -1
  109. package/dist/components/splitter/Splitter.js +3 -2
  110. package/dist/components/splitter/Splitter_module.css +21 -14
  111. package/dist/components/swap/Swap_module.css +22 -22
  112. package/dist/components/switch/Switch.js +9 -3
  113. package/dist/components/switch/Switch_module.css +30 -23
  114. package/dist/components/table/Table_module.css +15 -11
  115. package/dist/components/tabs/Tabs.js +5 -2
  116. package/dist/components/tag/Tag_module.css +17 -14
  117. package/dist/components/text/Text.js +1 -1
  118. package/dist/components/text/Text_module.css +2 -1
  119. package/dist/components/timer/Timer.d.ts +2 -4
  120. package/dist/components/timer/Timer.js +5 -4
  121. package/dist/components/toast/Toast_module.css +37 -43
  122. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
  123. package/dist/components/toggle-group/ToggleGroup_module.css +10 -7
  124. package/dist/components/tooltip/Tooltip_module.css +11 -1
  125. package/dist/components/tour/Tour.d.ts +1 -1
  126. package/dist/components/tour/Tour.js +2 -1
  127. package/dist/components/tour/Tour_module.css +16 -4
  128. package/dist/components/tree-view/TreeView.d.ts +2 -2
  129. package/dist/components/tree-view/TreeView_module.css +1 -1
  130. package/dist/styles/reset.css +33 -0
  131. package/package.json +27 -15
@@ -0,0 +1,156 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { ark } from "@ark-ui/react/factory";
4
+ import { motion as motion_motion } from "@tanstack/charts/motion";
5
+ import { RendererChart } from "@tanstack/charts/react/tooltip";
6
+ import { svgChartRenderer } from "@tanstack/charts/svg/renderer";
7
+ import { clsx } from "clsx";
8
+ import { forwardRef } from "react";
9
+ import { normalizeClassName } from "../../internal/normalizeClassName.js";
10
+ import Chart_module from "./Chart.module.js";
11
+ const defaultChartRenderer = motion_motion({
12
+ transition: {
13
+ type: 'spring',
14
+ stiffness: 260,
15
+ damping: 30,
16
+ mass: 0.8
17
+ }
18
+ });
19
+ const Chart_ChartRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
20
+ return /*#__PURE__*/ jsx(ark.figure, {
21
+ ref: ref,
22
+ "data-scope": "chart",
23
+ "data-part": "root",
24
+ "data-slot": "chart-root",
25
+ className: clsx(Chart_module.root, normalizeClassName(className)),
26
+ ...props
27
+ });
28
+ });
29
+ const renderDefaultTooltipBody = ({ content })=>{
30
+ if ('string' == typeof content) return /*#__PURE__*/ jsx("span", {
31
+ "data-slot": "chart-tooltip-text",
32
+ children: content
33
+ });
34
+ return /*#__PURE__*/ jsxs("div", {
35
+ "data-slot": "chart-tooltip-body",
36
+ className: Chart_module.defaultTooltipContent,
37
+ children: [
38
+ content.title ? /*#__PURE__*/ jsxs("div", {
39
+ "data-slot": "chart-tooltip-title",
40
+ className: Chart_module.tooltipTitle,
41
+ children: [
42
+ content.color ? /*#__PURE__*/ jsx("span", {
43
+ "aria-hidden": "true",
44
+ "data-slot": "chart-tooltip-swatch",
45
+ className: Chart_module.tooltipSwatch,
46
+ style: {
47
+ backgroundColor: content.color
48
+ }
49
+ }) : null,
50
+ content.title
51
+ ]
52
+ }) : null,
53
+ content.rows.length ? /*#__PURE__*/ jsx("div", {
54
+ "data-slot": "chart-tooltip-rows",
55
+ className: Chart_module.tooltipRows,
56
+ children: content.rows.map((row, index)=>/*#__PURE__*/ jsxs("div", {
57
+ "data-has-swatch": row.color ? '' : void 0,
58
+ "data-slot": "chart-tooltip-row",
59
+ className: Chart_module.tooltipRow,
60
+ children: [
61
+ row.color ? /*#__PURE__*/ jsx("span", {
62
+ "aria-hidden": "true",
63
+ "data-slot": "chart-tooltip-swatch",
64
+ className: Chart_module.tooltipSwatch,
65
+ style: {
66
+ backgroundColor: row.color
67
+ }
68
+ }) : null,
69
+ /*#__PURE__*/ jsx("span", {
70
+ "data-slot": "chart-tooltip-label",
71
+ className: Chart_module.tooltipLabel,
72
+ children: row.label
73
+ }),
74
+ /*#__PURE__*/ jsx("span", {
75
+ "data-slot": "chart-tooltip-value",
76
+ className: Chart_module.tooltipValue,
77
+ children: row.value
78
+ })
79
+ ]
80
+ }, `${row.label}-${index}`))
81
+ }) : null
82
+ ]
83
+ });
84
+ };
85
+ const Chart_ChartPlot = function({ className, motion = true, renderTooltipBody, renderer, ...props }) {
86
+ return /*#__PURE__*/ jsx(RendererChart, {
87
+ ...props,
88
+ renderer: renderer ?? (motion ? defaultChartRenderer : svgChartRenderer),
89
+ renderTooltipBody: renderTooltipBody ?? renderDefaultTooltipBody,
90
+ className: clsx(Chart_module.plot, normalizeClassName(className))
91
+ });
92
+ };
93
+ const Chart_ChartHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
94
+ return /*#__PURE__*/ jsx(ark.figcaption, {
95
+ ref: ref,
96
+ "data-scope": "chart",
97
+ "data-part": "header",
98
+ "data-slot": "chart-header",
99
+ className: clsx(Chart_module.header, normalizeClassName(className)),
100
+ ...props
101
+ });
102
+ });
103
+ const Chart_ChartTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
104
+ return /*#__PURE__*/ jsx(ark.h3, {
105
+ ref: ref,
106
+ "data-scope": "chart",
107
+ "data-part": "title",
108
+ "data-slot": "chart-title",
109
+ className: clsx(Chart_module.title, normalizeClassName(className)),
110
+ ...props
111
+ });
112
+ });
113
+ const Chart_ChartDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
114
+ return /*#__PURE__*/ jsx(ark.p, {
115
+ ref: ref,
116
+ "data-scope": "chart",
117
+ "data-part": "description",
118
+ "data-slot": "chart-description",
119
+ className: clsx(Chart_module.description, normalizeClassName(className)),
120
+ ...props
121
+ });
122
+ });
123
+ const Chart_ChartLegend = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
124
+ return /*#__PURE__*/ jsx(ark.ul, {
125
+ ref: ref,
126
+ "data-scope": "chart",
127
+ "data-part": "legend",
128
+ "data-slot": "chart-legend",
129
+ className: clsx(Chart_module.legend, normalizeClassName(className)),
130
+ ...props
131
+ });
132
+ });
133
+ const Chart_ChartLegendItem = /*#__PURE__*/ forwardRef(function({ className, color, style, ...props }, ref) {
134
+ return /*#__PURE__*/ jsx(ark.li, {
135
+ ref: ref,
136
+ "data-scope": "chart",
137
+ "data-part": "legend-item",
138
+ "data-slot": "chart-legend-item",
139
+ className: clsx(Chart_module.legendItem, normalizeClassName(className)),
140
+ style: color ? {
141
+ '--moduix-chart-legend-indicator-color': color,
142
+ ...style
143
+ } : style,
144
+ ...props
145
+ });
146
+ });
147
+ const Chart = Object.assign(Chart_ChartRoot, {
148
+ Root: Chart_ChartRoot,
149
+ Plot: Chart_ChartPlot,
150
+ Header: Chart_ChartHeader,
151
+ Title: Chart_ChartTitle,
152
+ Description: Chart_ChartDescription,
153
+ Legend: Chart_ChartLegend,
154
+ LegendItem: Chart_ChartLegendItem
155
+ });
156
+ export { Chart };
@@ -0,0 +1,18 @@
1
+ import "./Chart_module.css";
2
+ const Chart_module = {
3
+ root: "root-zPwhEi",
4
+ plot: "plot-Ww_CVs",
5
+ header: "header-_H34PS",
6
+ title: "title-zKDqX9",
7
+ description: "description-jUUbjj",
8
+ legend: "legend-iiFN8q",
9
+ legendItem: "legendItem-B4_u7q",
10
+ defaultTooltipContent: "defaultTooltipContent-EbORpR",
11
+ tooltipRows: "tooltipRows-x57rNP",
12
+ tooltipTitle: "tooltipTitle-rt8wqo",
13
+ tooltipRow: "tooltipRow-ZRjXCf",
14
+ tooltipSwatch: "tooltipSwatch-a9pNfu",
15
+ tooltipLabel: "tooltipLabel-gfLt3N",
16
+ tooltipValue: "tooltipValue-HkEHds"
17
+ };
18
+ export default Chart_module;
@@ -0,0 +1,138 @@
1
+ @layer moduix.components {
2
+ .root-zPwhEi {
3
+ box-sizing: border-box;
4
+ gap: var(--moduix-chart-gap, var(--moduix-spacing-5));
5
+ width: 100%;
6
+ min-width: 0;
7
+ padding: var(--moduix-chart-padding, var(--moduix-spacing-5));
8
+ border: var(--moduix-chart-border-width, var(--moduix-border-width-sm)) solid
9
+ var(--moduix-chart-border-color, var(--moduix-color-border));
10
+ border-radius: var(--moduix-chart-radius, var(--moduix-radius-lg));
11
+ background-color: var(--moduix-chart-bg, var(--moduix-color-card));
12
+ box-shadow: var(--moduix-chart-shadow, var(--moduix-shadow-sm));
13
+ color: var(--moduix-color-card-foreground);
14
+ margin: 0;
15
+ display: grid;
16
+ }
17
+
18
+ .plot-Ww_CVs {
19
+ border-radius: var(--moduix-chart-plot-radius, var(--moduix-radius-md));
20
+ min-width: 0;
21
+ color: var(--moduix-chart-axis-color, var(--moduix-color-muted-foreground));
22
+ --ts-chart-tooltip-background: var(--moduix-chart-tooltip-bg, var(--moduix-color-popover));
23
+ --ts-chart-tooltip-border: var(--moduix-chart-tooltip-border-width, var(--moduix-border-width-sm))
24
+ solid var(--moduix-chart-tooltip-border-color, var(--moduix-color-border));
25
+ --ts-chart-tooltip-border-radius: var(--moduix-chart-tooltip-radius, var(--moduix-radius-md));
26
+ --ts-chart-tooltip-color: var(--moduix-chart-tooltip-color, var(--moduix-color-popover-foreground));
27
+ --ts-chart-tooltip-font: var(--moduix-weight-medium)
28
+ var(--moduix-chart-tooltip-font-size, var(--moduix-text-xs)) /
29
+ var(--moduix-chart-tooltip-line-height, var(--moduix-line-height-text-xs))
30
+ var(--moduix-font-sans);
31
+ --ts-chart-tooltip-padding: var(--moduix-chart-tooltip-padding, var(--moduix-spacing-3));
32
+ --ts-chart-tooltip-shadow: var(--moduix-chart-tooltip-shadow, var(--moduix-shadow-lg));
33
+ }
34
+
35
+ .plot-Ww_CVs .ts-chart {
36
+ border-radius: var(--moduix-chart-plot-radius, var(--moduix-radius-md));
37
+ outline: none;
38
+ }
39
+
40
+ .plot-Ww_CVs .ts-chart:focus-visible {
41
+ outline: var(--moduix-chart-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
42
+ solid var(--moduix-chart-focus-ring-color, var(--moduix-color-ring));
43
+ outline-offset: var(--moduix-chart-focus-ring-offset, var(--moduix-focus-ring-offset));
44
+ }
45
+
46
+ .header-_H34PS {
47
+ gap: var(--moduix-spacing-1);
48
+ display: grid;
49
+ }
50
+
51
+ .title-zKDqX9 {
52
+ color: currentColor;
53
+ font-size: var(--moduix-text-lg);
54
+ font-weight: var(--moduix-weight-semibold);
55
+ line-height: var(--moduix-line-height-text-lg);
56
+ margin: 0;
57
+ }
58
+
59
+ .description-jUUbjj {
60
+ color: var(--moduix-color-muted-foreground);
61
+ font-size: var(--moduix-text-sm);
62
+ line-height: var(--moduix-line-height-text-sm);
63
+ margin: 0;
64
+ }
65
+
66
+ .legend-iiFN8q {
67
+ gap: var(--moduix-spacing-3);
68
+ flex-wrap: wrap;
69
+ margin: 0;
70
+ padding: 0;
71
+ list-style: none;
72
+ display: flex;
73
+ }
74
+
75
+ .legendItem-B4_u7q {
76
+ align-items: center;
77
+ gap: var(--moduix-spacing-2);
78
+ color: var(--moduix-color-muted-foreground);
79
+ font-size: var(--moduix-text-sm);
80
+ line-height: var(--moduix-line-height-text-sm);
81
+ display: inline-flex;
82
+ }
83
+
84
+ .legendItem-B4_u7q:before {
85
+ width: var(--moduix-spacing-2-5);
86
+ height: var(--moduix-spacing-2-5);
87
+ border-radius: var(--moduix-radius-full);
88
+ background-color: var(--moduix-chart-legend-indicator-color, var(--moduix-color-muted-foreground));
89
+ box-shadow: inset 0 0 0 var(--moduix-border-width-sm) #00000014;
90
+ content: "";
91
+ flex: none;
92
+ }
93
+
94
+ .defaultTooltipContent-EbORpR, .tooltipRows-x57rNP {
95
+ gap: var(--moduix-spacing-1);
96
+ display: grid;
97
+ }
98
+
99
+ .tooltipTitle-rt8wqo {
100
+ align-items: center;
101
+ gap: var(--moduix-spacing-2);
102
+ color: var(--moduix-color-popover-foreground);
103
+ font-weight: var(--moduix-weight-semibold);
104
+ display: flex;
105
+ }
106
+
107
+ .tooltipRow-ZRjXCf {
108
+ align-items: center;
109
+ column-gap: var(--moduix-spacing-2);
110
+ grid-template-columns: minmax(0, 1fr) auto;
111
+ display: grid;
112
+ }
113
+
114
+ .tooltipRow-ZRjXCf[data-has-swatch] {
115
+ grid-template-columns: var(--moduix-spacing-2-5) minmax(0, 1fr) auto;
116
+ }
117
+
118
+ .tooltipSwatch-a9pNfu {
119
+ width: var(--moduix-spacing-2-5);
120
+ height: var(--moduix-spacing-2-5);
121
+ border-radius: var(--moduix-radius-full);
122
+ box-shadow: inset 0 0 0 var(--moduix-border-width-sm) #00000014;
123
+ }
124
+
125
+ .tooltipLabel-gfLt3N {
126
+ min-width: 0;
127
+ color: var(--moduix-color-muted-foreground);
128
+ }
129
+
130
+ .tooltipValue-HkEHds {
131
+ color: var(--moduix-color-popover-foreground);
132
+ font-weight: var(--moduix-weight-semibold);
133
+ font-variant-numeric: tabular-nums;
134
+ text-align: right;
135
+ white-space: nowrap;
136
+ }
137
+ }
138
+
@@ -0,0 +1 @@
1
+ export * from './Chart.js';
@@ -0,0 +1 @@
1
+ export * from "./Chart.js";
@@ -61,9 +61,7 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
61
61
  });
62
62
  });
63
63
  function withHiddenInput(children, asChild) {
64
- const hiddenInput = /*#__PURE__*/ jsx(Checkbox.HiddenInput, {
65
- "data-slot": "checkbox-hidden-input"
66
- });
64
+ const hiddenInput = /*#__PURE__*/ jsx(CheckboxHiddenInput, {});
67
65
  if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
68
66
  children: [
69
67
  children,
@@ -73,6 +71,14 @@ function withHiddenInput(children, asChild) {
73
71
  const child = Children.only(children);
74
72
  return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
75
73
  }
74
+ function CheckboxHiddenInput() {
75
+ const checkbox = useCheckboxContext();
76
+ const readOnly = void 0 !== checkbox.getRootProps()['data-readonly'];
77
+ return /*#__PURE__*/ jsx(Checkbox.HiddenInput, {
78
+ "aria-readonly": readOnly || void 0,
79
+ "data-slot": "checkbox-hidden-input"
80
+ });
81
+ }
76
82
  const Checkbox_CheckboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
77
83
  return /*#__PURE__*/ jsx(Checkbox.Label, {
78
84
  ref: ref,
@@ -3,7 +3,7 @@
3
3
  align-items: center;
4
4
  gap: var(--moduix-checkbox-gap, var(--moduix-spacing-2));
5
5
  vertical-align: middle;
6
- color: var(--moduix-checkbox-label-color, var(--moduix-color-foreground));
6
+ color: var(--moduix-checkbox-label-color, var(--moduix-checkbox-group-color, var(--moduix-color-foreground)));
7
7
  cursor: pointer;
8
8
  display: inline-flex;
9
9
  }
@@ -62,13 +62,21 @@
62
62
  }
63
63
 
64
64
  .control-UQ7BTk[data-invalid][data-focus-visible] {
65
- outline-color: var(--moduix-checkbox-border-color-invalid, var(--moduix-color-destructive));
65
+ outline-color: var(--moduix-checkbox-focus-ring-color-invalid, var(--moduix-checkbox-border-color-invalid, var(--moduix-color-destructive)));
66
66
  }
67
67
 
68
68
  @media (hover: hover) {
69
69
  .control-UQ7BTk[data-state="unchecked"][data-hover]:not([data-readonly], [data-disabled]) {
70
70
  background-color: var(--moduix-checkbox-bg-hover, var(--moduix-color-accent));
71
71
  }
72
+
73
+ .control-UQ7BTk:is([data-state="checked"], [data-state="indeterminate"])[data-hover]:not([data-readonly], [data-disabled]) {
74
+ background-color: var(--moduix-checkbox-bg-checked-hover, var(--moduix-checkbox-bg-checked, var(--moduix-color-primary)));
75
+ }
76
+
77
+ .control-UQ7BTk:is([data-state="checked"], [data-state="indeterminate"])[data-hover]:not([data-readonly], [data-disabled])[data-invalid] {
78
+ background-color: var(--moduix-checkbox-bg-invalid-hover, var(--moduix-checkbox-bg-invalid, var(--moduix-color-destructive)));
79
+ }
72
80
  }
73
81
 
74
82
  .root-HuLdBM[data-size="xs"] .control-UQ7BTk {
@@ -121,7 +129,7 @@
121
129
  }
122
130
 
123
131
  .label-YzjPY9 {
124
- color: var(--moduix-checkbox-label-color, var(--moduix-color-foreground));
132
+ color: var(--moduix-checkbox-label-color, var(--moduix-checkbox-group-color, var(--moduix-color-foreground)));
125
133
  font-size: var(--moduix-checkbox-label-font-size, var(--moduix-text-sm));
126
134
  font-weight: var(--moduix-checkbox-label-font-weight, var(--moduix-weight-medium));
127
135
  line-height: var(--moduix-checkbox-label-line-height, var(--moduix-line-height-text-sm));
@@ -68,7 +68,7 @@
68
68
  color: var(--moduix-clipboard-input-readonly-color, var(--moduix-input-readonly-color, var(--moduix-clipboard-input-color, var(--moduix-color-foreground))));
69
69
  }
70
70
 
71
- .input-POor1w[data-disabled] {
71
+ .input-POor1w:is(:disabled, [data-disabled]) {
72
72
  pointer-events: none;
73
73
  opacity: var(--moduix-clipboard-disabled-opacity, var(--moduix-input-disabled-opacity, var(--moduix-opacity-disabled)));
74
74
  }
@@ -104,6 +104,8 @@
104
104
  opacity
105
105
  var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default))),
106
106
  box-shadow
107
+ var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default))),
108
+ transform
107
109
  var(--moduix-clipboard-transition, var(--moduix-button-transition, var(--moduix-transition-default)));
108
110
  flex-shrink: 0;
109
111
  display: inline-flex;
@@ -129,6 +131,16 @@
129
131
  -1);
130
132
  }
131
133
 
134
+ .trigger-dngdJp:active:not(:disabled, [data-disabled]) {
135
+ opacity: .94;
136
+ }
137
+
138
+ @media (prefers-reduced-motion: no-preference) {
139
+ .trigger-dngdJp:active:not(:disabled, [data-disabled]) {
140
+ transform: translateY(1px) scale(.985);
141
+ }
142
+ }
143
+
132
144
  .trigger-dngdJp:is(:disabled, [data-disabled]) {
133
145
  pointer-events: none;
134
146
  opacity: var(--moduix-clipboard-disabled-opacity, var(--moduix-button-disabled-opacity, var(--moduix-opacity-disabled)));
@@ -5,8 +5,18 @@ import { forwardRef } from "react";
5
5
  import { CloseIcon } from "../../internal/icons/ui/index.js";
6
6
  import { normalizeClassName } from "../../internal/normalizeClassName.js";
7
7
  import CloseButton_module from "./CloseButton.module.js";
8
- const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
8
+ const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, onClickCapture, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
9
9
  const isDisabled = disabled || true === ariaDisabled || 'true' === ariaDisabled || void 0 !== dataDisabled;
10
+ const nativeDisabled = asChild ? void 0 : disabled;
11
+ const resolvedAriaDisabled = asChild && disabled ? true : ariaDisabled;
12
+ const handleClickCapture = (event)=>{
13
+ if (isDisabled) {
14
+ event.preventDefault();
15
+ event.stopPropagation();
16
+ return;
17
+ }
18
+ onClickCapture?.(event);
19
+ };
10
20
  const handleClick = (event)=>{
11
21
  if (isDisabled) {
12
22
  event.preventDefault();
@@ -20,15 +30,16 @@ const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild,
20
30
  asChild: asChild,
21
31
  ...props,
22
32
  type: asChild ? type : type ?? 'button',
23
- disabled: disabled,
33
+ disabled: nativeDisabled,
24
34
  "data-scope": dataScope ?? 'close-button',
25
35
  "data-part": dataPart ?? 'root',
26
36
  "data-slot": dataSlot ?? 'close-button-root',
27
37
  "data-disabled": dataDisabled ?? (isDisabled ? '' : void 0),
28
38
  className: clsx(CloseButton_module.root, normalizeClassName(className)),
29
- "aria-disabled": ariaDisabled,
39
+ "aria-disabled": resolvedAriaDisabled,
30
40
  "aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Close' : void 0),
31
41
  "aria-labelledby": ariaLabelledBy,
42
+ onClickCapture: handleClickCapture,
32
43
  onClick: handleClick,
33
44
  children: children || /*#__PURE__*/ jsx(CloseIcon, {})
34
45
  });
@@ -145,5 +145,16 @@
145
145
  padding: var(--moduix-collapsible-body-padding, var(--moduix-spacing-2));
146
146
  display: grid;
147
147
  }
148
+
149
+ @media (prefers-reduced-motion: reduce) {
150
+ .trigger-o93fRO, .indicator-ll1vd8 {
151
+ transition: none;
152
+ }
153
+
154
+ .content-dHAw0w[data-state] {
155
+ animation-duration: 1ms;
156
+ animation-delay: 0s;
157
+ }
158
+ }
148
159
  }
149
160
 
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "@ark-ui/react/color-picker";
4
4
  import { clsx } from "clsx";
5
5
  import { Children, cloneElement, forwardRef } from "react";
6
- import { CheckIcon, PipetteIcon } from "../../internal/icons/ui/index.js";
6
+ import { CheckIcon, ChevronDownIcon, PipetteIcon } from "../../internal/icons/ui/index.js";
7
7
  import { normalizeClassName } from "../../internal/normalizeClassName.js";
8
8
  import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
9
9
  import ColorPicker_module from "./ColorPicker.module.js";
@@ -220,11 +220,21 @@ const ColorPicker_ColorPickerEyeDropperTrigger = /*#__PURE__*/ forwardRef(functi
220
220
  });
221
221
  });
222
222
  const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
223
- return /*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
224
- ref: ref,
225
- "data-slot": "color-picker-format-select",
226
- className: clsx(ColorPicker_module.formatSelect, normalizeClassName(className)),
227
- ...props
223
+ return /*#__PURE__*/ jsxs("span", {
224
+ className: ColorPicker_module.formatSelectControl,
225
+ children: [
226
+ /*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
227
+ ref: ref,
228
+ "data-slot": "color-picker-format-select",
229
+ className: clsx(ColorPicker_module.formatSelect, normalizeClassName(className)),
230
+ ...props
231
+ }),
232
+ /*#__PURE__*/ jsx("span", {
233
+ "aria-hidden": "true",
234
+ className: ColorPicker_module.formatSelectIndicator,
235
+ children: /*#__PURE__*/ jsx(ChevronDownIcon, {})
236
+ })
237
+ ]
228
238
  });
229
239
  });
230
240
  const ColorPicker_ColorPickerFormatTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -20,6 +20,8 @@ const ColorPicker_module = {
20
20
  channelSliderValueText: "channelSliderValueText-ZFMCO7",
21
21
  channelInput: "channelInput-KxngYC",
22
22
  formatSelect: "formatSelect-jD2i0e",
23
+ formatSelectControl: "formatSelectControl-S40Hse",
24
+ formatSelectIndicator: "formatSelectIndicator-VJN6PV",
23
25
  eyeDropperTrigger: "eyeDropperTrigger-jF9YiQ",
24
26
  formatTrigger: "formatTrigger-pUu2zb",
25
27
  swatchGroup: "swatchGroup-c99XUr",
@@ -93,7 +93,7 @@
93
93
  overflow: hidden;
94
94
  }
95
95
 
96
- .trigger-o5tyg7:is(:focus-visible, [data-focus]) {
96
+ .trigger-o5tyg7:is(:focus-visible, [data-state="open"]) {
97
97
  border-color: var(--moduix-color-picker-focus-ring-color, var(--moduix-color-ring));
98
98
  outline-color: var(--moduix-color-picker-focus-ring-color, var(--moduix-color-ring));
99
99
  }
@@ -161,6 +161,13 @@
161
161
  var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
162
162
  }
163
163
 
164
+ @media (prefers-reduced-motion: reduce) {
165
+ .content-z7zabu[data-state] {
166
+ animation-duration: 1ms;
167
+ animation-delay: 0s;
168
+ }
169
+ }
170
+
164
171
  .area-t8_R52 {
165
172
  box-sizing: border-box;
166
173
  width: 100%;
@@ -305,7 +312,6 @@
305
312
  -1);
306
313
  transition: border-color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
307
314
  outline-color var(--moduix-color-picker-transition, var(--moduix-transition-default));
308
- appearance: textfield;
309
315
  margin: 0;
310
316
  }
311
317
 
@@ -323,18 +329,19 @@
323
329
  opacity: var(--moduix-color-picker-disabled-opacity, var(--moduix-opacity-disabled));
324
330
  }
325
331
 
326
- :is(.channelInput-KxngYC, .formatSelect-jD2i0e)::-webkit-outer-spin-button {
327
- appearance: none;
328
- margin: 0;
332
+ .channelInput-KxngYC {
333
+ appearance: textfield;
334
+ flex: 1;
329
335
  }
330
336
 
331
- :is(.channelInput-KxngYC, .formatSelect-jD2i0e)::-webkit-inner-spin-button {
337
+ .channelInput-KxngYC::-webkit-outer-spin-button {
332
338
  appearance: none;
333
339
  margin: 0;
334
340
  }
335
341
 
336
- .channelInput-KxngYC {
337
- flex: 1;
342
+ .channelInput-KxngYC::-webkit-inner-spin-button {
343
+ appearance: none;
344
+ margin: 0;
338
345
  }
339
346
 
340
347
  .channelInput-KxngYC[data-channel="alpha"] {
@@ -342,9 +349,77 @@
342
349
  flex: 0 0 var(--moduix-color-picker-alpha-input-width, 4rem);
343
350
  }
344
351
 
352
+ .formatSelectControl-S40Hse {
353
+ flex-shrink: 0;
354
+ width: -moz-fit-content;
355
+ width: fit-content;
356
+ min-width: 0;
357
+ max-width: 100%;
358
+ display: inline-grid;
359
+ position: relative;
360
+ }
361
+
345
362
  .formatSelect-jD2i0e {
346
- cursor: pointer;
347
363
  width: auto;
364
+ appearance: none;
365
+ cursor: pointer;
366
+ text-transform: uppercase;
367
+ padding-inline-end: calc(var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3)) +
368
+ var(--moduix-color-picker-icon-size, var(--moduix-spacing-4)) + var(--moduix-spacing-1));
369
+ }
370
+
371
+ .formatSelect-jD2i0e:is([disabled], [data-disabled]) {
372
+ cursor: default;
373
+ }
374
+
375
+ @media (forced-colors: active) {
376
+ .formatSelect-jD2i0e {
377
+ appearance: auto;
378
+ padding-inline-end: var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3));
379
+ }
380
+ }
381
+
382
+ .formatSelectIndicator-VJN6PV {
383
+ top: 50%;
384
+ width: var(--moduix-color-picker-icon-size, var(--moduix-spacing-4));
385
+ height: var(--moduix-color-picker-icon-size, var(--moduix-spacing-4));
386
+ border-radius: var(--moduix-radius-sm);
387
+ background: var(--moduix-color-picker-action-bg, transparent);
388
+ color: var(--moduix-color-picker-action-color, var(--moduix-color-muted-foreground));
389
+ pointer-events: none;
390
+ transition: background-color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
391
+ color var(--moduix-color-picker-transition, var(--moduix-transition-default)),
392
+ opacity var(--moduix-color-picker-transition, var(--moduix-transition-default));
393
+ justify-content: center;
394
+ align-items: center;
395
+ line-height: 0;
396
+ display: inline-flex;
397
+ position: absolute;
398
+ inset-inline-end: var(--moduix-color-picker-input-padding-x, var(--moduix-spacing-3));
399
+ transform: translateY(-50%);
400
+ }
401
+
402
+ .formatSelectIndicator-VJN6PV > svg {
403
+ width: 100%;
404
+ height: 100%;
405
+ display: block;
406
+ }
407
+
408
+ @media (forced-colors: active) {
409
+ .formatSelectIndicator-VJN6PV {
410
+ display: none;
411
+ }
412
+ }
413
+
414
+ @media (hover: hover) {
415
+ .formatSelect-jD2i0e:not(:is([disabled], [data-disabled])):hover + .formatSelectIndicator-VJN6PV {
416
+ background-color: var(--moduix-color-picker-action-bg-hover, var(--moduix-color-muted));
417
+ color: var(--moduix-color-picker-action-color-hover, var(--moduix-color-foreground));
418
+ }
419
+ }
420
+
421
+ .formatSelect-jD2i0e:is([disabled], [data-disabled]) + .formatSelectIndicator-VJN6PV {
422
+ opacity: var(--moduix-color-picker-disabled-opacity, var(--moduix-opacity-disabled));
348
423
  }
349
424
 
350
425
  .eyeDropperTrigger-jF9YiQ, .formatTrigger-pUu2zb {
@@ -16,7 +16,7 @@ declare const Combobox: ComboboxPrimitive.RootComponent<OverlayPortalProps> & {
16
16
  Positioner: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
17
17
  Content: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
18
18
  Empty: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
19
- Status: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
19
+ Status: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
20
20
  List: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
21
21
  ItemGroup: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
22
22
  ItemGroupLabel: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;