@moduix/react 2.0.0 → 2.2.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 (108) hide show
  1. package/README.md +100 -173
  2. package/dist/components/accordion/Accordion.css +47 -47
  3. package/dist/components/alert/Alert.css +62 -46
  4. package/dist/components/angle-slider/AngleSlider.css +65 -64
  5. package/dist/components/aspect-ratio/AspectRatio.css +2 -2
  6. package/dist/components/avatar/Avatar.css +26 -26
  7. package/dist/components/badge/Badge.css +34 -33
  8. package/dist/components/bleed/Bleed.css +13 -13
  9. package/dist/components/breadcrumbs/Breadcrumbs.css +29 -28
  10. package/dist/components/button/Button.css +81 -78
  11. package/dist/components/card/Card.css +46 -46
  12. package/dist/components/carousel/Carousel.css +57 -57
  13. package/dist/components/checkbox/Checkbox.css +40 -40
  14. package/dist/components/clipboard/Clipboard.css +68 -59
  15. package/dist/components/close-button/CloseButton.css +17 -17
  16. package/dist/components/collapsible/Collapsible.css +40 -38
  17. package/dist/components/color-picker/ColorPicker.css +162 -151
  18. package/dist/components/combobox/Combobox.css +120 -130
  19. package/dist/components/command-palette/CommandPalette.css +173 -177
  20. package/dist/components/command-palette/CommandPalette.module.js +0 -1
  21. package/dist/components/container/Container.css +12 -12
  22. package/dist/components/date-input/DateInput.css +41 -39
  23. package/dist/components/date-picker/DatePicker.css +181 -186
  24. package/dist/components/dialog/Dialog.css +84 -78
  25. package/dist/components/drawer/Drawer.css +126 -107
  26. package/dist/components/editable/Editable.css +64 -60
  27. package/dist/components/empty/Empty.css +25 -25
  28. package/dist/components/field/Field.css +46 -44
  29. package/dist/components/fieldset/Fieldset.css +22 -22
  30. package/dist/components/file-upload/FileUpload.css +128 -125
  31. package/dist/components/floating-panel/FloatingPanel.css +114 -110
  32. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  33. package/dist/components/heading/Heading.css +26 -26
  34. package/dist/components/highlight/Highlight.css +8 -8
  35. package/dist/components/hover-card/HoverCard.css +49 -47
  36. package/dist/components/image/Image.css +2 -2
  37. package/dist/components/image-cropper/ImageCropper.css +63 -56
  38. package/dist/components/input/Input.css +47 -46
  39. package/dist/components/input-group/InputGroup.css +71 -70
  40. package/dist/components/kbd/Kbd.css +16 -16
  41. package/dist/components/lightbox/Lightbox.css +80 -77
  42. package/dist/components/list/List.css +32 -32
  43. package/dist/components/listbox/Listbox.css +121 -116
  44. package/dist/components/marquee/Marquee.css +16 -16
  45. package/dist/components/menu/Menu.css +122 -118
  46. package/dist/components/native-select/NativeSelect.css +48 -42
  47. package/dist/components/number-input/NumberInput.css +62 -60
  48. package/dist/components/pagination/Pagination.css +35 -34
  49. package/dist/components/password-input/PasswordInput.css +60 -59
  50. package/dist/components/pin-input/PinInput.css +35 -35
  51. package/dist/components/popover/Popover.css +81 -76
  52. package/dist/components/progress-circular/ProgressCircular.css +20 -20
  53. package/dist/components/progress-linear/ProgressLinear.css +29 -28
  54. package/dist/components/qr-code/QrCode.css +39 -35
  55. package/dist/components/radio-group/RadioGroup.css +48 -48
  56. package/dist/components/rating-group/RatingGroup.css +30 -30
  57. package/dist/components/scroll-area/ScrollArea.css +34 -34
  58. package/dist/components/segment-group/SegmentGroup.css +37 -37
  59. package/dist/components/select/Select.css +137 -128
  60. package/dist/components/select/Select.d.ts +0 -5
  61. package/dist/components/select/Select.js +1 -9
  62. package/dist/components/select/Select.module.js +0 -1
  63. package/dist/components/separator/Separator.css +13 -13
  64. package/dist/components/sidebar/Sidebar.css +143 -142
  65. package/dist/components/signature-pad/SignaturePad.css +51 -50
  66. package/dist/components/skeleton/Skeleton.css +7 -5
  67. package/dist/components/slider/Slider.css +61 -59
  68. package/dist/components/spinner/Spinner.css +12 -12
  69. package/dist/components/split-button/SplitButton.css +12 -12
  70. package/dist/components/splitter/Splitter.css +63 -62
  71. package/dist/components/splitter/Splitter.js +2 -2
  72. package/dist/components/stack/Stack.css +4 -4
  73. package/dist/components/stack/Stack.js +3 -3
  74. package/dist/components/steps/Steps.css +89 -88
  75. package/dist/components/swap/Swap.css +7 -7
  76. package/dist/components/switch/Switch.css +59 -57
  77. package/dist/components/table/Table.css +58 -56
  78. package/dist/components/tabs/Tabs.css +64 -62
  79. package/dist/components/tag/Tag.css +45 -45
  80. package/dist/components/tags-input/TagsInput.css +93 -86
  81. package/dist/components/text/Text.css +23 -23
  82. package/dist/components/text/Text.js +1 -1
  83. package/dist/components/textarea/Textarea.css +27 -25
  84. package/dist/components/timer/Timer.css +38 -37
  85. package/dist/components/toast/Toast.css +94 -78
  86. package/dist/components/toggle/Toggle.css +66 -66
  87. package/dist/components/toggle-group/ToggleGroup.css +16 -16
  88. package/dist/components/tooltip/Tooltip.css +56 -52
  89. package/dist/components/tour/Tour.css +121 -117
  90. package/dist/components/tree-view/TreeView.css +91 -86
  91. package/dist/components/typeset/Typeset.css +317 -0
  92. package/dist/components/typeset/Typeset.d.ts +7 -0
  93. package/dist/components/typeset/Typeset.js +33 -0
  94. package/dist/components/typeset/Typeset.module.js +8 -0
  95. package/dist/index.d.ts +3 -1
  96. package/dist/index.js +3 -1
  97. package/dist/lib/moduix/presets/contrast.css +64 -0
  98. package/dist/lib/moduix/presets/dense.css +77 -0
  99. package/dist/lib/moduix/presets/soft.css +76 -0
  100. package/dist/lib/moduix/styles/reset.css +34 -1
  101. package/dist/lib/moduix/styles/style.css +230 -213
  102. package/dist/presets/contrast.d.ts +1 -0
  103. package/dist/presets/contrast.js +1 -0
  104. package/dist/presets/dense.d.ts +1 -0
  105. package/dist/presets/dense.js +1 -0
  106. package/dist/presets/soft.d.ts +1 -0
  107. package/dist/presets/soft.js +1 -0
  108. package/package.json +4 -1
@@ -1,66 +1,67 @@
1
- @layer ui.components {
1
+ @layer moduix.components {
2
2
  ._4OfG0a_trigger {
3
3
  box-sizing: border-box;
4
4
  justify-content: center;
5
5
  align-items: center;
6
- gap: var(--command-palette-trigger-gap, var(--spacing-2));
7
- min-height: var(--command-palette-trigger-height, var(--size-lg));
8
- padding: var(--command-palette-trigger-padding-y, .5rem)
9
- var(--command-palette-trigger-padding-x, .875rem);
10
- border: var(--command-palette-trigger-border-width, var(--border-width-sm)) solid
11
- var(--command-palette-trigger-border-color, var(--color-border));
12
- border-radius: var(--command-palette-trigger-radius, var(--radius-md));
13
- background-color: var(--command-palette-trigger-bg, var(--color-background));
14
- color: var(--command-palette-trigger-color, var(--color-foreground));
6
+ gap: var(--moduix-command-palette-trigger-gap, var(--moduix-spacing-2));
7
+ min-height: var(--moduix-command-palette-trigger-height, var(--moduix-size-md));
8
+ padding: var(--moduix-command-palette-trigger-padding-y, var(--moduix-spacing-1))
9
+ var(--moduix-command-palette-trigger-padding-x, var(--moduix-spacing-3-5));
10
+ border: var(--moduix-command-palette-trigger-border-width, var(--moduix-border-width-sm)) solid
11
+ var(--moduix-command-palette-trigger-border-color, var(--moduix-color-border));
12
+ border-radius: var(--moduix-command-palette-trigger-radius, var(--moduix-radius-md));
13
+ background-color: var(--moduix-command-palette-trigger-bg, var(--moduix-color-background));
14
+ color: var(--moduix-command-palette-trigger-color, var(--moduix-color-foreground));
15
15
  font: inherit;
16
- font-size: var(--command-palette-trigger-font-size, var(--text-md));
17
- line-height: var(--command-palette-trigger-line-height, var(--line-height-text-md));
16
+ font-size: var(--moduix-command-palette-trigger-font-size, var(--moduix-text-md));
17
+ line-height: var(--moduix-command-palette-trigger-line-height, var(--moduix-line-height-text-md));
18
18
  cursor: pointer;
19
19
  user-select: none;
20
- transition: background-color var(--transition-default),
21
- border-color var(--transition-default),
22
- color var(--transition-default);
20
+ transition: background-color var(--moduix-transition-default),
21
+ border-color var(--moduix-transition-default),
22
+ color var(--moduix-transition-default);
23
23
  margin: 0;
24
24
  display: inline-flex;
25
25
 
26
26
  @media (hover: hover) {
27
27
  &:hover {
28
- background-color: var(--command-palette-trigger-bg-hover, var(--color-accent));
28
+ background-color: var(--moduix-command-palette-trigger-bg-hover, var(--moduix-color-accent));
29
29
  }
30
30
  }
31
31
 
32
32
  &:focus-visible {
33
- outline: var(--command-palette-focus-ring-width, var(--border-width-sm)) solid
34
- var(--command-palette-focus-ring-color, var(--color-ring));
35
- outline-offset: calc(var(--command-palette-focus-ring-width, var(--border-width-sm)) * -1);
33
+ outline: var(--moduix-command-palette-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
34
+ solid var(--moduix-command-palette-focus-ring-color, var(--moduix-color-ring));
35
+ outline-offset: calc(var(--moduix-command-palette-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))) *
36
+ -1);
36
37
  }
37
38
  }
38
39
 
39
40
  ._4OfG0a_backdrop {
40
- z-index: var(--z-backdrop);
41
- background-color: var(--command-palette-backdrop-bg, var(--backdrop-bg, var(--color-overlay)));
41
+ z-index: var(--moduix-z-backdrop);
42
+ background-color: var(--moduix-command-palette-backdrop-bg, var(--moduix-backdrop-bg, var(--moduix-color-overlay)));
42
43
  min-height: 100dvh;
43
- backdrop-filter: var(--backdrop-filter, blur(var(--command-palette-backdrop-blur, 4px)));
44
+ backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-command-palette-backdrop-blur, 4px)));
44
45
  position: fixed;
45
46
  inset: 0;
46
47
 
47
48
  &[data-state="open"] {
48
49
  animation: _4OfG0a_command-palette-backdrop-in
49
- var(--command-palette-backdrop-transition, var(--transition-default));
50
+ var(--moduix-command-palette-backdrop-transition, var(--moduix-transition-default));
50
51
  }
51
52
 
52
53
  &[data-state="closed"] {
53
54
  animation: _4OfG0a_command-palette-backdrop-out
54
- var(--command-palette-backdrop-transition, var(--transition-default));
55
+ var(--moduix-command-palette-backdrop-transition, var(--moduix-transition-default));
55
56
  animation-fill-mode: forwards;
56
57
  }
57
58
  }
58
59
 
59
60
  ._4OfG0a_positioner {
60
61
  box-sizing: border-box;
61
- z-index: var(--z-modal);
62
+ z-index: var(--moduix-z-modal);
62
63
  overscroll-behavior: contain;
63
- padding: var(--command-palette-positioner-padding, 10dvh var(--spacing-4) var(--spacing-4));
64
+ padding: var(--moduix-command-palette-positioner-padding, 10dvh var(--moduix-spacing-4) var(--moduix-spacing-4));
64
65
  place-items: start center;
65
66
  display: grid;
66
67
  position: fixed;
@@ -70,17 +71,17 @@
70
71
 
71
72
  ._4OfG0a_content {
72
73
  box-sizing: border-box;
73
- width: min(var(--command-palette-width, 37.5rem),
74
- var(--command-palette-max-width, calc(100vw - var(--spacing-8, 2rem))));
75
- max-height: min(var(--command-palette-max-height, 34rem), calc(100dvh - 5rem));
76
- border: var(--command-palette-border-width, var(--border-width-sm)) solid
77
- var(--command-palette-border-color, color-mix(in oklab, var(--color-border) 84%, transparent));
78
- border-radius: var(--command-palette-radius, var(--radius-lg));
74
+ width: min(var(--moduix-command-palette-width, 37.5rem),
75
+ var(--moduix-command-palette-max-width, calc(100vw - var(--moduix-spacing-8, 2rem))));
76
+ max-height: min(var(--moduix-command-palette-max-height, 34rem), calc(100dvh - 5rem));
77
+ border: var(--moduix-command-palette-border-width, var(--moduix-border-width-sm)) solid
78
+ var(--moduix-command-palette-border-color, color-mix(in oklab, var(--moduix-color-border) 84%, transparent));
79
+ border-radius: var(--moduix-command-palette-radius, var(--moduix-radius-lg));
79
80
  background: linear-gradient(180deg,
80
- var(--command-palette-top-bg, color-mix(in oklab, var(--color-popover) 96%, white 4%)),
81
- var(--command-palette-bg, var(--color-popover)) 7rem);
82
- color: var(--command-palette-color, var(--color-popover-foreground));
83
- box-shadow: var(--command-palette-shadow, var(--shadow-lg));
81
+ var(--moduix-command-palette-top-bg, color-mix(in oklab, var(--moduix-color-popover) 96%, white 4%)),
82
+ var(--moduix-command-palette-bg, var(--moduix-color-popover)) 7rem);
83
+ color: var(--moduix-command-palette-color, var(--moduix-color-popover-foreground));
84
+ box-shadow: var(--moduix-command-palette-shadow, var(--moduix-shadow-lg));
84
85
  transform-origin: top;
85
86
  outline: 0;
86
87
  flex-direction: column;
@@ -89,51 +90,51 @@
89
90
 
90
91
  &[data-state="open"] {
91
92
  animation: _4OfG0a_command-palette-content-in
92
- var(--command-palette-transition, var(--popup-motion-duration, var(--duration-normal))
93
- var(--popup-motion-easing, var(--ease-in-out)));
93
+ var(--moduix-command-palette-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
94
+ var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
94
95
  }
95
96
 
96
97
  &[data-state="closed"] {
97
98
  animation: _4OfG0a_command-palette-content-out
98
- var(--command-palette-transition, var(--popup-motion-duration, var(--duration-normal))
99
- var(--popup-motion-easing, var(--ease-in-out)));
99
+ var(--moduix-command-palette-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
100
+ var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
100
101
  animation-fill-mode: forwards;
101
102
  }
102
103
  }
103
104
 
104
105
  ._4OfG0a_header {
105
- gap: var(--command-palette-header-gap, var(--spacing-1));
106
- padding: var(--command-palette-header-padding-y, var(--spacing-4))
107
- var(--command-palette-header-padding-x, var(--spacing-4)) 0;
106
+ gap: var(--moduix-command-palette-header-gap, var(--moduix-spacing-1));
107
+ padding: var(--moduix-command-palette-header-padding-y, var(--moduix-spacing-4))
108
+ var(--moduix-command-palette-header-padding-x, var(--moduix-spacing-4)) 0;
108
109
  display: grid;
109
110
  }
110
111
 
111
112
  ._4OfG0a_title {
112
- color: var(--command-palette-title-color, var(--command-palette-color, var(--color-popover-foreground)));
113
- font-size: var(--command-palette-title-font-size, var(--text-md));
114
- font-weight: var(--command-palette-title-font-weight, var(--weight-semibold));
115
- line-height: var(--command-palette-title-line-height, var(--line-height-text-md));
113
+ color: var(--moduix-command-palette-title-color, var(--moduix-command-palette-color, var(--moduix-color-popover-foreground)));
114
+ font-size: var(--moduix-command-palette-title-font-size, var(--moduix-text-md));
115
+ font-weight: var(--moduix-command-palette-title-font-weight, var(--moduix-weight-semibold));
116
+ line-height: var(--moduix-command-palette-title-line-height, var(--moduix-line-height-text-md));
116
117
  margin: 0;
117
118
  }
118
119
 
119
120
  ._4OfG0a_description {
120
- color: var(--command-palette-description-color, var(--color-muted-foreground));
121
- font-size: var(--command-palette-description-font-size, var(--text-sm));
122
- line-height: var(--command-palette-description-line-height, var(--line-height-text-sm));
121
+ color: var(--moduix-command-palette-description-color, var(--moduix-color-muted-foreground));
122
+ font-size: var(--moduix-command-palette-description-font-size, var(--moduix-text-sm));
123
+ line-height: var(--moduix-command-palette-description-line-height, var(--moduix-line-height-text-sm));
123
124
  margin: 0;
124
125
  }
125
126
 
126
127
  ._4OfG0a_clearTrigger {
127
- --close-button-size: var(--command-palette-clear-size, var(--size-sm));
128
- --close-button-radius: var(--command-palette-clear-radius, var(--radius-md));
129
- --close-button-icon-size: var(--command-palette-icon-size, 1rem);
130
- --close-button-bg: transparent;
131
- --close-button-bg-hover: var(--command-palette-clear-bg-hover, var(--color-accent));
132
- --close-button-color: var(--command-palette-muted-color, var(--color-muted-foreground));
133
- --close-button-color-hover: var(--command-palette-color, var(--color-popover-foreground));
134
- --close-button-focus-ring-width: var(--command-palette-focus-ring-width, var(--border-width-sm));
135
- --close-button-focus-ring-color: var(--command-palette-focus-ring-color, var(--color-ring));
136
- --close-button-focus-ring-offset: var(--command-palette-focus-ring-offset, var(--border-width-sm));
128
+ --moduix-close-button-size: var(--moduix-command-palette-clear-size, var(--moduix-size-sm));
129
+ --moduix-close-button-radius: var(--moduix-command-palette-clear-radius, var(--moduix-radius-md));
130
+ --moduix-close-button-icon-size: var(--moduix-command-palette-icon-size, var(--moduix-spacing-4));
131
+ --moduix-close-button-bg: transparent;
132
+ --moduix-close-button-bg-hover: var(--moduix-command-palette-clear-bg-hover, var(--moduix-color-accent));
133
+ --moduix-close-button-color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
134
+ --moduix-close-button-color-hover: var(--moduix-command-palette-color, var(--moduix-color-popover-foreground));
135
+ --moduix-close-button-focus-ring-width: var(--moduix-command-palette-focus-ring-width, var(--moduix-border-width-sm));
136
+ --moduix-close-button-focus-ring-color: var(--moduix-command-palette-focus-ring-color, var(--moduix-color-ring));
137
+ --moduix-close-button-focus-ring-offset: var(--moduix-command-palette-focus-ring-offset, var(--moduix-border-width-sm));
137
138
  }
138
139
 
139
140
  ._4OfG0a_body {
@@ -143,11 +144,6 @@
143
144
  display: flex;
144
145
  }
145
146
 
146
- ._4OfG0a_iconSvg {
147
- width: var(--command-palette-icon-size, 1rem);
148
- height: var(--command-palette-icon-size, 1rem);
149
- }
150
-
151
147
  ._4OfG0a_combobox {
152
148
  flex-direction: column;
153
149
  flex: auto;
@@ -159,26 +155,26 @@
159
155
  ._4OfG0a_control {
160
156
  box-sizing: border-box;
161
157
  align-items: center;
162
- gap: var(--command-palette-input-gap, var(--spacing-2));
163
- min-height: var(--command-palette-input-height, var(--size-md));
164
- margin: var(--command-palette-control-margin-y, var(--spacing-2))
165
- var(--command-palette-control-margin-x, var(--spacing-4))
166
- var(--command-palette-control-margin-bottom, var(--spacing-2));
167
- border: var(--command-palette-input-border-width, var(--border-width-sm)) solid
168
- var(--command-palette-input-border-color, var(--color-border));
169
- border-radius: var(--command-palette-input-radius, var(--radius-md));
170
- padding: var(--command-palette-control-padding-y, var(--spacing-1))
171
- var(--command-palette-control-padding-x, var(--spacing-3));
172
- background-color: var(--command-palette-input-bg, var(--color-background));
173
- color: var(--command-palette-input-color, var(--color-foreground));
174
- transition: background-color var(--transition-default),
175
- border-color var(--transition-default);
158
+ gap: var(--moduix-command-palette-input-gap, var(--moduix-spacing-2));
159
+ min-height: var(--moduix-command-palette-input-height, var(--moduix-size-md));
160
+ margin: var(--moduix-command-palette-control-margin-y, var(--moduix-spacing-2))
161
+ var(--moduix-command-palette-control-margin-x, var(--moduix-spacing-4))
162
+ var(--moduix-command-palette-control-margin-bottom, var(--moduix-spacing-2));
163
+ border: var(--moduix-command-palette-input-border-width, var(--moduix-border-width-sm)) solid
164
+ var(--moduix-command-palette-input-border-color, var(--moduix-color-border));
165
+ border-radius: var(--moduix-command-palette-input-radius, var(--moduix-radius-md));
166
+ padding: var(--moduix-command-palette-control-padding-y, var(--moduix-spacing-1))
167
+ var(--moduix-command-palette-control-padding-x, var(--moduix-spacing-3));
168
+ background-color: var(--moduix-command-palette-input-bg, var(--moduix-color-background));
169
+ color: var(--moduix-command-palette-input-color, var(--moduix-color-foreground));
170
+ transition: background-color var(--moduix-transition-default),
171
+ border-color var(--moduix-transition-default);
176
172
  flex: none;
177
173
  display: flex;
178
174
  position: relative;
179
175
 
180
176
  &:has(._4OfG0a_input:is([data-invalid], [aria-invalid="true"])) {
181
- border-color: var(--command-palette-input-border-color-invalid, var(--color-destructive));
177
+ border-color: var(--moduix-command-palette-input-border-color-invalid, var(--moduix-color-destructive));
182
178
  }
183
179
  }
184
180
 
@@ -186,11 +182,11 @@
186
182
  box-sizing: border-box;
187
183
  width: 100%;
188
184
  min-width: 0;
189
- height: var(--command-palette-input-control-height, var(--size-sm));
185
+ height: var(--moduix-command-palette-input-control-height, auto);
190
186
  color: inherit;
191
187
  font: inherit;
192
- font-size: var(--command-palette-input-font-size, var(--text-sm));
193
- line-height: var(--command-palette-input-line-height, var(--line-height-text-sm));
188
+ font-size: var(--moduix-command-palette-input-font-size, var(--moduix-text-sm));
189
+ line-height: var(--moduix-command-palette-input-line-height, var(--moduix-line-height-text-sm));
194
190
  background: none;
195
191
  border: 0;
196
192
  outline: 0;
@@ -198,11 +194,11 @@
198
194
  padding: 0;
199
195
 
200
196
  &::placeholder {
201
- color: var(--command-palette-input-placeholder-color, var(--color-muted-foreground));
197
+ color: var(--moduix-command-palette-input-placeholder-color, var(--moduix-color-muted-foreground));
202
198
  }
203
199
 
204
200
  &[data-invalid] {
205
- color: var(--color-destructive);
201
+ color: var(--moduix-color-destructive);
206
202
  }
207
203
  }
208
204
 
@@ -211,11 +207,11 @@
211
207
  padding: 0;
212
208
 
213
209
  &:not(:empty) {
214
- padding: var(--command-palette-empty-padding-y, .75rem)
215
- var(--command-palette-empty-padding-x, var(--spacing-4));
216
- color: var(--command-palette-muted-color, var(--color-muted-foreground));
217
- font-size: var(--command-palette-empty-font-size, var(--text-sm));
218
- line-height: var(--command-palette-empty-line-height, var(--line-height-text-sm));
210
+ padding: var(--moduix-command-palette-empty-padding-y, var(--moduix-spacing-3))
211
+ var(--moduix-command-palette-empty-padding-x, var(--moduix-spacing-4));
212
+ color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
213
+ font-size: var(--moduix-command-palette-empty-font-size, var(--moduix-text-sm));
214
+ line-height: var(--moduix-command-palette-empty-line-height, var(--moduix-line-height-text-sm));
219
215
  }
220
216
  }
221
217
 
@@ -229,16 +225,16 @@
229
225
  }
230
226
 
231
227
  ._4OfG0a_scrollArea {
232
- --scroll-area-radius: 0;
233
- --scroll-area-scrollbar-margin: var(--command-palette-scrollbar-margin, var(--spacing-1));
234
- --scroll-area-scrollbar-size: var(--command-palette-scrollbar-size, .375rem);
235
- --scroll-area-thumb-bg: var(--command-palette-scrollbar-thumb-bg, var(--color-border));
236
- --scroll-area-content-padding: var(--command-palette-list-padding-y, var(--spacing-2))
237
- calc(var(--command-palette-list-padding-x, var(--spacing-2)) +
238
- var(--scroll-area-scrollbar-size) + var(--scroll-area-scrollbar-margin))
239
- var(--command-palette-list-padding-y, var(--spacing-2))
240
- var(--command-palette-list-padding-x, var(--spacing-2));
241
- --scroll-area-height: auto;
228
+ --moduix-scroll-area-radius: 0;
229
+ --moduix-scroll-area-scrollbar-margin: var(--moduix-command-palette-scrollbar-margin, var(--moduix-spacing-1));
230
+ --moduix-scroll-area-scrollbar-size: var(--moduix-command-palette-scrollbar-size, var(--moduix-spacing-1-5));
231
+ --moduix-scroll-area-thumb-bg: var(--moduix-command-palette-scrollbar-thumb-bg, var(--moduix-color-border));
232
+ --moduix-scroll-area-content-padding: var(--moduix-command-palette-list-padding-y, var(--moduix-spacing-2))
233
+ calc(var(--moduix-command-palette-list-padding-x, var(--moduix-spacing-2)) +
234
+ var(--moduix-scroll-area-scrollbar-size) + var(--moduix-scroll-area-scrollbar-margin))
235
+ var(--moduix-command-palette-list-padding-y, var(--moduix-spacing-2))
236
+ var(--moduix-command-palette-list-padding-x, var(--moduix-spacing-2));
237
+ --moduix-scroll-area-height: auto;
242
238
  width: 100%;
243
239
  min-height: 0;
244
240
  color: inherit;
@@ -246,7 +242,7 @@
246
242
  }
247
243
 
248
244
  ._4OfG0a_scrollViewport {
249
- scroll-padding-block: var(--command-palette-list-scroll-padding-y, var(--spacing-2));
245
+ scroll-padding-block: var(--moduix-command-palette-list-scroll-padding-y, var(--moduix-spacing-2));
250
246
  }
251
247
 
252
248
  ._4OfG0a_scrollContent {
@@ -258,27 +254,27 @@
258
254
  }
259
255
 
260
256
  ._4OfG0a_scrollbar {
261
- --scroll-area-scrollbar-bg: transparent;
257
+ --moduix-scroll-area-scrollbar-bg: transparent;
262
258
  }
263
259
 
264
260
  ._4OfG0a_itemGroup {
265
- gap: var(--command-palette-group-gap, var(--spacing-1));
261
+ gap: var(--moduix-command-palette-group-gap, var(--moduix-spacing-1));
266
262
  display: grid;
267
263
 
268
264
  &:not(:last-child) {
269
- padding-bottom: var(--command-palette-group-padding-bottom, var(--spacing-2));
265
+ padding-bottom: var(--moduix-command-palette-group-padding-bottom, var(--moduix-spacing-2));
270
266
  }
271
267
  }
272
268
 
273
269
  ._4OfG0a_itemGroupLabel {
274
270
  z-index: 1;
275
- padding: var(--command-palette-group-label-padding-y, var(--spacing-1))
276
- var(--command-palette-group-label-padding-x, var(--spacing-3));
277
- background-color: var(--command-palette-bg, var(--color-popover));
278
- color: var(--command-palette-muted-color, var(--color-muted-foreground));
279
- font-size: var(--command-palette-group-label-font-size, var(--text-xs));
280
- font-weight: var(--command-palette-group-label-font-weight, var(--weight-semibold));
281
- line-height: var(--command-palette-group-label-line-height, var(--line-height-text-xs));
271
+ padding: var(--moduix-command-palette-group-label-padding-y, var(--moduix-popup-group-label-padding-y, var(--moduix-spacing-1)))
272
+ var(--moduix-command-palette-group-label-padding-x, var(--moduix-spacing-3));
273
+ background-color: var(--moduix-command-palette-bg, var(--moduix-color-popover));
274
+ color: var(--moduix-command-palette-group-label-color, var(--moduix-popup-group-label-color, var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground))));
275
+ font-size: var(--moduix-command-palette-group-label-font-size, var(--moduix-popup-group-label-font-size, var(--moduix-text-xs)));
276
+ font-weight: var(--moduix-command-palette-group-label-font-weight, var(--moduix-popup-group-label-font-weight, var(--moduix-weight-regular)));
277
+ line-height: var(--moduix-command-palette-group-label-line-height, var(--moduix-popup-group-label-line-height, var(--moduix-line-height-text-xs)));
282
278
  margin: 0;
283
279
  display: block;
284
280
  position: sticky;
@@ -289,15 +285,15 @@
289
285
  box-sizing: border-box;
290
286
  z-index: 0;
291
287
  align-items: center;
292
- gap: var(--command-palette-item-gap, var(--spacing-3));
293
- min-height: var(--command-palette-item-min-height, 3rem);
294
- padding: var(--command-palette-item-padding-y, var(--spacing-2))
295
- var(--command-palette-item-padding-x, var(--spacing-3));
296
- border-radius: var(--command-palette-item-radius, var(--radius-md));
297
- color: var(--command-palette-item-color, var(--command-palette-color, var(--color-foreground)));
288
+ gap: var(--moduix-command-palette-item-gap, var(--moduix-spacing-3));
289
+ min-height: var(--moduix-command-palette-item-min-height, var(--moduix-popup-item-min-height, var(--moduix-size-sm)));
290
+ padding: var(--moduix-command-palette-item-padding-y, var(--moduix-popup-item-padding-y, var(--moduix-spacing-1)))
291
+ var(--moduix-command-palette-item-padding-x, var(--moduix-popup-item-padding-x-start, var(--moduix-spacing-3)));
292
+ border-radius: var(--moduix-command-palette-item-radius, var(--moduix-radius-md));
293
+ color: var(--moduix-command-palette-item-color, var(--moduix-command-palette-color, var(--moduix-color-foreground)));
298
294
  font: inherit;
299
- font-size: var(--command-palette-item-font-size, var(--text-sm));
300
- line-height: var(--command-palette-item-line-height, var(--line-height-text-sm));
295
+ font-size: var(--moduix-command-palette-item-font-size, var(--moduix-popup-item-font-size, var(--moduix-text-sm)));
296
+ line-height: var(--moduix-command-palette-item-line-height, var(--moduix-popup-item-line-height, var(--moduix-line-height-text-sm)));
301
297
  cursor: default;
302
298
  user-select: none;
303
299
  outline: 0;
@@ -306,43 +302,43 @@
306
302
  position: relative;
307
303
 
308
304
  &[data-highlighted] {
309
- color: var(--command-palette-highlight-color, var(--color-foreground));
305
+ color: var(--moduix-command-palette-highlight-color, var(--moduix-color-foreground));
310
306
 
311
307
  &:before {
312
308
  content: "";
313
309
  z-index: -1;
314
310
  border-radius: inherit;
315
- background-color: var(--command-palette-highlight-bg, var(--color-accent));
311
+ background-color: var(--moduix-command-palette-highlight-bg, var(--moduix-color-accent));
316
312
  position: absolute;
317
313
  inset: 0;
318
314
  }
319
315
  }
320
316
 
321
317
  &[data-state="checked"] {
322
- color: var(--command-palette-selected-color, var(--command-palette-highlight-color, inherit));
318
+ color: var(--moduix-command-palette-selected-color, var(--moduix-command-palette-highlight-color, inherit));
323
319
  }
324
320
 
325
321
  &[data-disabled] {
326
- opacity: var(--opacity-disabled);
322
+ opacity: var(--moduix-opacity-disabled);
327
323
  pointer-events: none;
328
324
  }
329
325
  }
330
326
 
331
327
  ._4OfG0a_itemIcon, ._4OfG0a_itemIndicator {
332
- width: var(--command-palette-item-icon-box-size, 2rem);
333
- height: var(--command-palette-item-icon-box-size, 2rem);
334
- border: var(--command-palette-item-icon-border-width, var(--border-width-sm)) solid
335
- var(--command-palette-item-icon-border-color, var(--color-border));
336
- border-radius: var(--command-palette-item-icon-radius, var(--radius-md));
337
- background-color: var(--command-palette-item-icon-bg, var(--color-muted));
338
- color: var(--command-palette-item-icon-color, var(--color-muted-foreground));
328
+ width: var(--moduix-command-palette-item-icon-box-size, var(--moduix-spacing-8));
329
+ height: var(--moduix-command-palette-item-icon-box-size, var(--moduix-spacing-8));
330
+ border: var(--moduix-command-palette-item-icon-border-width, var(--moduix-border-width-sm))
331
+ solid var(--moduix-command-palette-item-icon-border-color, var(--moduix-color-border));
332
+ border-radius: var(--moduix-command-palette-item-icon-radius, var(--moduix-radius-md));
333
+ background-color: var(--moduix-command-palette-item-icon-bg, var(--moduix-color-muted));
334
+ color: var(--moduix-command-palette-item-icon-color, var(--moduix-color-muted-foreground));
339
335
  justify-content: center;
340
336
  align-items: center;
341
337
  display: inline-flex;
342
338
 
343
339
  & > svg {
344
- width: var(--command-palette-item-icon-size, 1rem);
345
- height: var(--command-palette-item-icon-size, 1rem);
340
+ width: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
341
+ height: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
346
342
  }
347
343
  }
348
344
 
@@ -352,13 +348,13 @@
352
348
  justify-self: end;
353
349
 
354
350
  & > svg {
355
- width: var(--command-palette-item-icon-size, 1rem);
356
- height: var(--command-palette-item-icon-size, 1rem);
351
+ width: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
352
+ height: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
357
353
  }
358
354
  }
359
355
 
360
356
  ._4OfG0a_itemText {
361
- gap: var(--command-palette-item-text-gap, var(--spacing-1));
357
+ gap: var(--moduix-command-palette-item-text-gap, var(--moduix-spacing-1));
362
358
  min-width: 0;
363
359
  display: grid;
364
360
 
@@ -371,88 +367,88 @@
371
367
  }
372
368
 
373
369
  ._4OfG0a_itemLabel {
374
- font-weight: var(--command-palette-item-label-font-weight, var(--weight-medium));
370
+ font-weight: var(--moduix-command-palette-item-label-font-weight, var(--moduix-weight-medium));
375
371
  }
376
372
 
377
373
  ._4OfG0a_itemDescription {
378
- color: var(--command-palette-muted-color, var(--color-muted-foreground));
379
- font-size: var(--command-palette-item-description-font-size, var(--text-xs));
380
- line-height: var(--command-palette-item-description-line-height, var(--line-height-text-xs));
374
+ color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
375
+ font-size: var(--moduix-command-palette-item-description-font-size, var(--moduix-text-xs));
376
+ line-height: var(--moduix-command-palette-item-description-line-height, var(--moduix-line-height-text-xs));
381
377
  }
382
378
 
383
379
  ._4OfG0a_itemMeta {
384
- color: var(--command-palette-muted-color, var(--color-muted-foreground));
385
- font-size: var(--command-palette-item-meta-font-size, var(--text-xs));
386
- line-height: var(--command-palette-item-meta-line-height, var(--line-height-text-xs));
380
+ color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
381
+ font-size: var(--moduix-command-palette-item-meta-font-size, var(--moduix-text-xs));
382
+ line-height: var(--moduix-command-palette-item-meta-line-height, var(--moduix-line-height-text-xs));
387
383
  white-space: nowrap;
388
384
  justify-self: end;
389
385
  }
390
386
 
391
387
  ._4OfG0a_separator {
392
- height: var(--command-palette-divider-width, var(--border-width-sm));
393
- margin: var(--command-palette-separator-margin-y, var(--spacing-2))
394
- var(--command-palette-separator-margin-x, var(--spacing-2));
395
- background-color: var(--command-palette-divider-color, var(--color-border));
388
+ height: var(--moduix-command-palette-divider-width, var(--moduix-border-width-sm));
389
+ margin: var(--moduix-command-palette-separator-margin-y, var(--moduix-spacing-2))
390
+ var(--moduix-command-palette-separator-margin-x, var(--moduix-spacing-2));
391
+ background-color: var(--moduix-command-palette-divider-color, var(--moduix-color-border));
396
392
  }
397
393
 
398
394
  ._4OfG0a_footer {
399
395
  justify-content: space-between;
400
396
  align-items: center;
401
- gap: var(--command-palette-footer-gap, var(--spacing-3));
402
- padding: var(--command-palette-footer-padding-y, var(--spacing-2))
403
- var(--command-palette-footer-padding-x, var(--spacing-4));
404
- border-top: var(--command-palette-divider-width, var(--border-width-sm)) solid
405
- var(--command-palette-divider-color, var(--color-border));
406
- color: var(--command-palette-muted-color, var(--color-muted-foreground));
407
- font-size: var(--command-palette-footer-font-size, var(--text-xs));
408
- line-height: var(--command-palette-footer-line-height, var(--line-height-text-xs));
397
+ gap: var(--moduix-command-palette-footer-gap, var(--moduix-spacing-3));
398
+ padding: var(--moduix-command-palette-footer-padding-y, var(--moduix-spacing-2))
399
+ var(--moduix-command-palette-footer-padding-x, var(--moduix-spacing-4));
400
+ border-top: var(--moduix-command-palette-divider-width, var(--moduix-border-width-sm)) solid
401
+ var(--moduix-command-palette-divider-color, var(--moduix-color-border));
402
+ color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
403
+ font-size: var(--moduix-command-palette-footer-font-size, var(--moduix-text-xs));
404
+ line-height: var(--moduix-command-palette-footer-line-height, var(--moduix-line-height-text-xs));
409
405
  flex: none;
410
406
  display: flex;
411
407
  }
412
408
 
413
409
  ._4OfG0a_kbd {
414
- --kbd-bg: var(--command-palette-kbd-bg, var(--color-muted));
415
- --kbd-border-color: var(--command-palette-kbd-border-color, var(--color-border));
416
- --kbd-border-width: var(--command-palette-kbd-border-width, var(--border-width-sm));
417
- --kbd-color: var(--command-palette-kbd-color, var(--color-muted-foreground));
418
- --kbd-font-family: var(--command-palette-kbd-font-family, var(--font-mono));
419
- --kbd-font-size: var(--command-palette-kbd-font-size, var(--text-xs));
420
- --kbd-height: var(--command-palette-kbd-height, 1.25rem);
421
- --kbd-line-height: var(--command-palette-kbd-line-height, 1rem);
422
- --kbd-min-width: var(--command-palette-kbd-min-width, 1.25rem);
423
- --kbd-padding-x: var(--command-palette-kbd-padding-x, var(--spacing-1));
424
- --kbd-radius: var(--command-palette-kbd-radius, var(--radius-sm));
410
+ --moduix-kbd-bg: var(--moduix-command-palette-kbd-bg, var(--moduix-color-muted));
411
+ --moduix-kbd-border-color: var(--moduix-command-palette-kbd-border-color, var(--moduix-color-border));
412
+ --moduix-kbd-border-width: var(--moduix-command-palette-kbd-border-width, var(--moduix-border-width-sm));
413
+ --moduix-kbd-color: var(--moduix-command-palette-kbd-color, var(--moduix-color-muted-foreground));
414
+ --moduix-kbd-font-family: var(--moduix-command-palette-kbd-font-family, var(--moduix-font-mono));
415
+ --moduix-kbd-font-size: var(--moduix-command-palette-kbd-font-size, var(--moduix-text-xs));
416
+ --moduix-kbd-height: var(--moduix-command-palette-kbd-height, 1.25rem);
417
+ --moduix-kbd-line-height: var(--moduix-command-palette-kbd-line-height, 1rem);
418
+ --moduix-kbd-min-width: var(--moduix-command-palette-kbd-min-width, 1.25rem);
419
+ --moduix-kbd-padding-x: var(--moduix-command-palette-kbd-padding-x, var(--moduix-spacing-1));
420
+ --moduix-kbd-radius: var(--moduix-command-palette-kbd-radius, var(--moduix-radius-sm));
425
421
  }
426
422
 
427
423
  @keyframes _4OfG0a_command-palette-backdrop-in {
428
424
  from {
429
- opacity: var(--command-palette-backdrop-starting-opacity, 0);
430
- backdrop-filter: var(--command-palette-backdrop-starting-blur, none);
425
+ opacity: var(--moduix-command-palette-backdrop-starting-opacity, 0);
426
+ backdrop-filter: var(--moduix-command-palette-backdrop-starting-blur, none);
431
427
  }
432
428
  }
433
429
 
434
430
  @keyframes _4OfG0a_command-palette-backdrop-out {
435
431
  to {
436
- opacity: var(--command-palette-backdrop-ending-opacity, 0);
437
- backdrop-filter: var(--command-palette-backdrop-ending-blur, none);
432
+ opacity: var(--moduix-command-palette-backdrop-ending-opacity, 0);
433
+ backdrop-filter: var(--moduix-command-palette-backdrop-ending-blur, none);
438
434
  }
439
435
  }
440
436
 
441
437
  @keyframes _4OfG0a_command-palette-content-in {
442
438
  from {
443
- opacity: var(--command-palette-content-starting-opacity, var(--popup-motion-starting-opacity, 0));
444
- translate: var(--command-palette-content-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
445
- var(--command-palette-content-starting-translate-y, var(--popup-motion-starting-translate-y, -.75rem));
446
- scale: var(--command-palette-content-starting-scale, var(--popup-motion-starting-scale, var(--scale-popup)));
439
+ opacity: var(--moduix-command-palette-content-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
440
+ translate: var(--moduix-command-palette-content-starting-translate-x, var(--moduix-popup-motion-starting-translate-x, 0))
441
+ var(--moduix-command-palette-content-starting-translate-y, var(--moduix-popup-motion-starting-translate-y, -.75rem));
442
+ scale: var(--moduix-command-palette-content-starting-scale, var(--moduix-popup-motion-starting-scale, var(--moduix-scale-popup)));
447
443
  }
448
444
  }
449
445
 
450
446
  @keyframes _4OfG0a_command-palette-content-out {
451
447
  to {
452
- opacity: var(--command-palette-content-ending-opacity, var(--popup-motion-ending-opacity, 0));
453
- translate: var(--command-palette-content-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
454
- var(--command-palette-content-ending-translate-y, var(--popup-motion-ending-translate-y, -.75rem));
455
- scale: var(--command-palette-content-ending-scale, var(--popup-motion-ending-scale, var(--scale-popup)));
448
+ opacity: var(--moduix-command-palette-content-ending-opacity, var(--moduix-popup-motion-ending-opacity, 0));
449
+ translate: var(--moduix-command-palette-content-ending-translate-x, var(--moduix-popup-motion-ending-translate-x, 0))
450
+ var(--moduix-command-palette-content-ending-translate-y, var(--moduix-popup-motion-ending-translate-y, -.75rem));
451
+ scale: var(--moduix-command-palette-content-ending-scale, var(--moduix-popup-motion-ending-scale, var(--moduix-scale-popup)));
456
452
  }
457
453
  }
458
454
  }
@@ -15,7 +15,6 @@ var CommandPalette_module_default = {
15
15
  "empty": "_4OfG0a_empty",
16
16
  "footer": "_4OfG0a_footer",
17
17
  "header": "_4OfG0a_header",
18
- "iconSvg": "_4OfG0a_iconSvg",
19
18
  "input": "_4OfG0a_input",
20
19
  "item": "_4OfG0a_item",
21
20
  "itemDescription": "_4OfG0a_itemDescription",