@moduix/react-tailwind 1.0.0 → 1.1.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.
- package/dist/components/accordion/Accordion.js +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/card/Card.js +33 -33
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +18 -18
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +48 -48
- package/dist/components/container/Container.js +5 -5
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +13 -13
- package/dist/components/field/Field.js +19 -19
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +42 -42
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +51 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +17 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +26 -26
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -53,55 +53,55 @@ function MenuRootProvider({ lazyMount = true, portalled, portalRef, unmountOnExi
|
|
|
53
53
|
const Menu_MenuTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
54
54
|
return /*#__PURE__*/ jsx(Menu.Trigger, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
"data-slot": "menu-trigger",
|
|
57
56
|
asChild: asChild,
|
|
58
57
|
className: cn(!asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-4 py-1 text-sm font-medium text-foreground outline-0 transition-colors duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50 data-[current]:data-[state=open]:bg-muted motion-reduce:transition-none [@media(hover:hover)]:hover:bg-muted', className),
|
|
59
|
-
...props
|
|
58
|
+
...props,
|
|
59
|
+
"data-slot": "menu-trigger"
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
function MenuTriggerIcon({ className, children, ...props }) {
|
|
63
63
|
return /*#__PURE__*/ jsx("span", {
|
|
64
|
-
"data-slot": "menu-trigger-icon",
|
|
65
64
|
className: cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-full', className),
|
|
66
65
|
...props,
|
|
66
|
+
"data-slot": "menu-trigger-icon",
|
|
67
67
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
const Menu_MenuIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
71
71
|
return /*#__PURE__*/ jsx(Menu.Indicator, {
|
|
72
72
|
ref: ref,
|
|
73
|
-
"data-slot": "menu-indicator",
|
|
74
73
|
className: cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-full', className),
|
|
75
74
|
...props,
|
|
75
|
+
"data-slot": "menu-indicator",
|
|
76
76
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
const Menu_MenuContextTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(Menu.ContextTrigger, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
"data-slot": "menu-context-trigger",
|
|
83
82
|
asChild: asChild,
|
|
84
83
|
className: cn(!asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-4 py-1 text-sm font-medium text-foreground outline-0 transition-colors duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-muted data-disabled:pointer-events-none data-disabled:opacity-50 data-[current]:data-[state=open]:bg-muted motion-reduce:transition-none [@media(hover:hover)]:hover:bg-muted', className),
|
|
85
|
-
...props
|
|
84
|
+
...props,
|
|
85
|
+
"data-slot": "menu-context-trigger"
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const Menu_MenuPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
89
89
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
90
90
|
children: /*#__PURE__*/ jsx(Menu.Positioner, {
|
|
91
91
|
ref: ref,
|
|
92
|
-
"data-slot": "menu-positioner",
|
|
93
92
|
className: cn('z-[var(--z-index)] w-[var(--positioner-width,auto)] max-w-[var(--available-width)] outline-0', className),
|
|
94
|
-
...props
|
|
93
|
+
...props,
|
|
94
|
+
"data-slot": "menu-positioner"
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
const Menu_MenuContent = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
|
|
99
99
|
return /*#__PURE__*/ jsx(Menu.Content, {
|
|
100
100
|
ref: ref,
|
|
101
|
-
"data-slot": "menu-content",
|
|
102
101
|
asChild: asChild,
|
|
103
102
|
className: cn('relative z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] flex max-w-[min(20rem,var(--available-width,100vw))] min-w-[min(max(var(--reference-width,0px),12rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col overflow-visible rounded-md bg-popover py-1 text-popover-foreground shadow-lg outline-1 outline-border [--arrow-background:var(--color-popover)] [--arrow-size:0.625rem] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
|
|
104
103
|
...props,
|
|
104
|
+
"data-slot": "menu-content",
|
|
105
105
|
children: children
|
|
106
106
|
});
|
|
107
107
|
});
|
|
@@ -110,161 +110,161 @@ const Menu_MenuViewport = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
110
110
|
ref: ref,
|
|
111
111
|
"data-scope": "menu",
|
|
112
112
|
"data-part": "viewport",
|
|
113
|
-
"data-slot": "menu-viewport",
|
|
114
113
|
className: cn('flex max-h-[min(24rem,var(--available-height,100dvh))] flex-col overflow-auto', className),
|
|
115
|
-
...props
|
|
114
|
+
...props,
|
|
115
|
+
"data-slot": "menu-viewport"
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
const Menu_MenuArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
119
119
|
return /*#__PURE__*/ jsx(Menu.Arrow, {
|
|
120
120
|
ref: ref,
|
|
121
|
-
"data-slot": "menu-arrow",
|
|
122
121
|
className: cn('[--arrow-background:var(--color-popover)]', className),
|
|
123
122
|
...props,
|
|
123
|
+
"data-slot": "menu-arrow",
|
|
124
124
|
children: children ?? /*#__PURE__*/ jsx(Menu_MenuArrowTip, {})
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
const Menu_MenuArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
128
128
|
return /*#__PURE__*/ jsx(Menu.ArrowTip, {
|
|
129
129
|
ref: ref,
|
|
130
|
-
"data-slot": "menu-arrow-tip",
|
|
131
130
|
className: cn('[border-block-start:1px_solid_var(--color-border)] [border-inline-start:1px_solid_var(--color-border)]', className),
|
|
132
|
-
...props
|
|
131
|
+
...props,
|
|
132
|
+
"data-slot": "menu-arrow-tip"
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
const Menu_MenuItem = /*#__PURE__*/ forwardRef(function({ className, tone = 'default', ...props }, ref) {
|
|
136
136
|
return /*#__PURE__*/ jsx(Menu.Item, {
|
|
137
137
|
ref: ref,
|
|
138
|
-
"data-slot": "menu-item",
|
|
139
138
|
"data-tone": tone,
|
|
140
139
|
className: cn(menuItemStyles({
|
|
141
140
|
layout: 'item',
|
|
142
141
|
tone
|
|
143
142
|
}), className),
|
|
144
|
-
...props
|
|
143
|
+
...props,
|
|
144
|
+
"data-slot": "menu-item"
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
const Menu_MenuTriggerItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
148
148
|
return /*#__PURE__*/ jsx(Menu.TriggerItem, {
|
|
149
149
|
ref: ref,
|
|
150
|
-
"data-slot": "menu-trigger-item",
|
|
151
150
|
className: cn(menuItemStyles({
|
|
152
151
|
layout: 'triggerItem'
|
|
153
152
|
}), className),
|
|
154
|
-
...props
|
|
153
|
+
...props,
|
|
154
|
+
"data-slot": "menu-trigger-item"
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
function MenuTriggerItemIcon({ className, children, ...props }) {
|
|
158
158
|
return /*#__PURE__*/ jsx("span", {
|
|
159
|
-
"data-slot": "menu-trigger-item-icon",
|
|
160
159
|
className: cn('inline-flex size-3.5 shrink-0 rtl:-scale-x-100 [&_svg]:size-full', className),
|
|
161
160
|
...props,
|
|
161
|
+
"data-slot": "menu-trigger-item-icon",
|
|
162
162
|
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
const Menu_MenuSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
166
166
|
return /*#__PURE__*/ jsx(Menu.Separator, {
|
|
167
167
|
ref: ref,
|
|
168
|
-
"data-slot": "menu-separator",
|
|
169
168
|
className: cn('mx-3 my-1.5 h-px border-0 bg-border', className),
|
|
170
|
-
...props
|
|
169
|
+
...props,
|
|
170
|
+
"data-slot": "menu-separator"
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
173
|
const Menu_MenuItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
174
174
|
return /*#__PURE__*/ jsx(Menu.ItemGroup, {
|
|
175
175
|
ref: ref,
|
|
176
|
-
"data-slot": "menu-item-group",
|
|
177
176
|
className: cn('grid', className),
|
|
178
|
-
...props
|
|
177
|
+
...props,
|
|
178
|
+
"data-slot": "menu-item-group"
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
const Menu_MenuItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
182
182
|
return /*#__PURE__*/ jsx(Menu.ItemGroupLabel, {
|
|
183
183
|
ref: ref,
|
|
184
|
-
"data-slot": "menu-item-group-label",
|
|
185
184
|
className: cn('cursor-default px-2.5 py-1 text-xs font-normal text-muted-foreground select-none', className),
|
|
186
|
-
...props
|
|
185
|
+
...props,
|
|
186
|
+
"data-slot": "menu-item-group-label"
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
189
|
const Menu_MenuRadioItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
190
190
|
return /*#__PURE__*/ jsx(Menu.RadioItemGroup, {
|
|
191
191
|
ref: ref,
|
|
192
|
-
"data-slot": "menu-radio-item-group",
|
|
193
192
|
className: cn('grid', className),
|
|
194
|
-
...props
|
|
193
|
+
...props,
|
|
194
|
+
"data-slot": "menu-radio-item-group"
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
197
|
const Menu_MenuRadioItem = /*#__PURE__*/ forwardRef(function({ className, indicator = 'start', ...props }, ref) {
|
|
198
198
|
return /*#__PURE__*/ jsx(Menu.RadioItem, {
|
|
199
199
|
ref: ref,
|
|
200
|
-
"data-slot": "menu-radio-item",
|
|
201
200
|
"data-indicator-position": indicator,
|
|
202
201
|
className: cn(menuItemStyles({
|
|
203
202
|
layout: 'indicatorItem',
|
|
204
203
|
indicator
|
|
205
204
|
}), className),
|
|
206
|
-
...props
|
|
205
|
+
...props,
|
|
206
|
+
"data-slot": "menu-radio-item"
|
|
207
207
|
});
|
|
208
208
|
});
|
|
209
209
|
const Menu_MenuCheckboxItem = /*#__PURE__*/ forwardRef(function({ className, indicator = 'start', ...props }, ref) {
|
|
210
210
|
return /*#__PURE__*/ jsx(Menu.CheckboxItem, {
|
|
211
211
|
ref: ref,
|
|
212
|
-
"data-slot": "menu-checkbox-item",
|
|
213
212
|
"data-indicator-position": indicator,
|
|
214
213
|
className: cn(menuItemStyles({
|
|
215
214
|
layout: 'indicatorItem',
|
|
216
215
|
indicator
|
|
217
216
|
}), className),
|
|
218
|
-
...props
|
|
217
|
+
...props,
|
|
218
|
+
"data-slot": "menu-checkbox-item"
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
221
|
const Menu_MenuItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
222
222
|
return /*#__PURE__*/ jsx(Menu.ItemIndicator, {
|
|
223
223
|
ref: ref,
|
|
224
|
-
"data-slot": "menu-item-indicator",
|
|
225
224
|
className: cn('inline-flex size-3 items-center justify-center rounded-xs [&_svg]:size-full', className),
|
|
226
225
|
...props,
|
|
226
|
+
"data-slot": "menu-item-indicator",
|
|
227
227
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
const Menu_MenuItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
231
231
|
return /*#__PURE__*/ jsx(Menu.ItemText, {
|
|
232
232
|
ref: ref,
|
|
233
|
-
"data-slot": "menu-item-text",
|
|
234
233
|
className: cn('min-w-0 overflow-hidden', className),
|
|
235
|
-
...props
|
|
234
|
+
...props,
|
|
235
|
+
"data-slot": "menu-item-text"
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
238
|
const Menu_MenuItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
239
239
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
240
240
|
ref: ref,
|
|
241
|
-
"data-slot": "menu-item-text-content",
|
|
242
241
|
className: cn('inline-flex max-w-full min-w-0 items-center gap-2 align-top', className),
|
|
243
|
-
...props
|
|
242
|
+
...props,
|
|
243
|
+
"data-slot": "menu-item-text-content"
|
|
244
244
|
});
|
|
245
245
|
});
|
|
246
246
|
const Menu_MenuItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
247
247
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
248
248
|
ref: ref,
|
|
249
|
-
"data-slot": "menu-item-text-icon",
|
|
250
249
|
className: cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-full', className),
|
|
251
|
-
...props
|
|
250
|
+
...props,
|
|
251
|
+
"data-slot": "menu-item-text-icon"
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
const Menu_MenuItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
255
255
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
256
256
|
ref: ref,
|
|
257
|
-
"data-slot": "menu-item-text-label",
|
|
258
257
|
className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
|
|
259
|
-
...props
|
|
258
|
+
...props,
|
|
259
|
+
"data-slot": "menu-item-text-label"
|
|
260
260
|
});
|
|
261
261
|
});
|
|
262
262
|
const Menu_MenuItemShortcut = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
263
263
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
264
264
|
ref: ref,
|
|
265
|
-
"data-slot": "menu-item-shortcut",
|
|
266
265
|
className: cn('ms-auto ps-4 text-xs whitespace-nowrap text-muted-foreground', className),
|
|
267
|
-
...props
|
|
266
|
+
...props,
|
|
267
|
+
"data-slot": "menu-item-shortcut"
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
const Menu_Menu = Object.assign(MenuRoot, {
|
|
@@ -6,98 +6,98 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const NavigationMenu_NavigationMenuRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(NavigationMenu.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "navigation-menu-root",
|
|
10
9
|
className: cn('group/navigation-menu relative box-border flex w-fit max-w-full min-w-0 justify-center text-foreground', className),
|
|
11
|
-
...props
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "navigation-menu-root"
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
const NavigationMenu_NavigationMenuRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
15
15
|
return /*#__PURE__*/ jsx(NavigationMenu.RootProvider, {
|
|
16
16
|
ref: ref,
|
|
17
|
-
"data-slot": "navigation-menu-root-provider",
|
|
18
17
|
className: cn('group/navigation-menu relative box-border flex w-fit max-w-full min-w-0 justify-center text-foreground', className),
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "navigation-menu-root-provider"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const NavigationMenu_NavigationMenuList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(NavigationMenu.List, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "navigation-menu-list",
|
|
26
25
|
className: cn('group/navigation-menu-list relative m-0 box-border flex max-w-full list-none items-center gap-1 p-0 data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch [&>[data-slot=navigation-menu-indicator]]:top-auto [&>[data-slot=navigation-menu-indicator]]:-bottom-2.5 [&>[data-slot=navigation-menu-indicator]]:z-[61]', className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "navigation-menu-list"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const NavigationMenu_NavigationMenuItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(NavigationMenu.Item, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "navigation-menu-item",
|
|
34
33
|
className: cn('relative group-has-[>[data-slot=navigation-menu-indicator]]/navigation-menu-list:static group-has-[>[data-slot=navigation-menu-viewport-positioner]>[data-slot=navigation-menu-viewport]]/navigation-menu:static', className),
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "navigation-menu-item"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const NavigationMenu_NavigationMenuTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(NavigationMenu.Trigger, {
|
|
40
40
|
ref: ref,
|
|
41
41
|
asChild: asChild,
|
|
42
|
-
"data-slot": "navigation-menu-trigger",
|
|
43
42
|
className: cn(!asChild && 'box-border inline-flex min-h-control-md items-center justify-center gap-2 rounded-md bg-transparent px-3 py-1 text-sm leading-5 font-medium whitespace-nowrap text-inherit no-underline outline-0 transition-[background-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:outline-offset-0 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-[state=open]:bg-muted motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:transition-[rotate] [&>svg]:duration-200 [&>svg]:ease-in-out data-[state=open]:[&>svg]:rotate-180 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-muted', className),
|
|
44
|
-
...props
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "navigation-menu-trigger"
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
const NavigationMenu_NavigationMenuContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
48
48
|
return /*#__PURE__*/ jsx(NavigationMenu.Content, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
"data-slot": "navigation-menu-content",
|
|
51
50
|
className: cn('group/navigation-menu-content absolute start-0 top-[calc(100%+0.5rem)] z-60 box-border flex max-h-[min(24rem,calc(100dvh-1.5rem))] w-max max-w-[min(20rem,calc(100vw-1.5rem))] min-w-[min(max(var(--trigger-width,0px),12rem),calc(100vw-1.5rem))] origin-top-left flex-col overflow-auto overscroll-contain rounded-md bg-popover py-1 text-popover-foreground shadow-lg outline-1 outline-border data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed group-has-[>[data-slot=navigation-menu-indicator]]/navigation-menu-list:data-[state=closed]:animate-none data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none rtl:origin-top-right [&_[data-slot=navigation-menu-link]]:mx-1 [&_[data-slot=navigation-menu-link]]:justify-start [&_[data-slot=navigation-menu-link]]:rounded-sm [&_[data-slot=navigation-menu-link]]:px-2', className),
|
|
52
|
-
...props
|
|
51
|
+
...props,
|
|
52
|
+
"data-slot": "navigation-menu-content"
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
const NavigationMenu_NavigationMenuLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
56
56
|
return /*#__PURE__*/ jsx(NavigationMenu.Link, {
|
|
57
57
|
ref: ref,
|
|
58
|
-
"data-slot": "navigation-menu-link",
|
|
59
58
|
className: cn('box-border inline-flex min-h-control-md items-center justify-center gap-2 rounded-md bg-transparent px-3 py-1 text-sm leading-5 font-medium whitespace-nowrap text-inherit no-underline outline-0 transition-[background-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:outline-offset-0 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-current:bg-transparent data-current:text-primary data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:transition-[rotate] [&>svg]:duration-200 [&>svg]:ease-in-out [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-muted', className),
|
|
60
|
-
...props
|
|
59
|
+
...props,
|
|
60
|
+
"data-slot": "navigation-menu-link"
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
const NavigationMenu_NavigationMenuIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
64
64
|
return /*#__PURE__*/ jsx(NavigationMenu.Indicator, {
|
|
65
65
|
ref: ref,
|
|
66
|
-
"data-slot": "navigation-menu-indicator",
|
|
67
66
|
className: cn('pointer-events-none absolute start-0 -top-2.5 flex h-2.5 w-[var(--trigger-width,0px)] [translate:var(--trigger-x,0px)_0] justify-center transition-[translate,inline-size] duration-200 ease-in-out data-[state=closed]:opacity-0 data-[state=open]:opacity-100 motion-reduce:transition-none', className),
|
|
68
|
-
...props
|
|
67
|
+
...props,
|
|
68
|
+
"data-slot": "navigation-menu-indicator"
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
const NavigationMenu_NavigationMenuItemIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
72
72
|
return /*#__PURE__*/ jsx(NavigationMenu.ItemIndicator, {
|
|
73
73
|
ref: ref,
|
|
74
|
-
"data-slot": "navigation-menu-item-indicator",
|
|
75
74
|
className: cn('absolute inset-x-2 bottom-0 h-0.5 rounded-full bg-current', className),
|
|
76
|
-
...props
|
|
75
|
+
...props,
|
|
76
|
+
"data-slot": "navigation-menu-item-indicator"
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
const NavigationMenu_NavigationMenuArrow = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(NavigationMenu.Arrow, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
"data-slot": "navigation-menu-arrow",
|
|
83
82
|
className: cn('relative top-1 size-2.5 rotate-45 border-s border-t border-border bg-popover', className),
|
|
84
|
-
...props
|
|
83
|
+
...props,
|
|
84
|
+
"data-slot": "navigation-menu-arrow"
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
const NavigationMenu_NavigationMenuViewportPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
88
|
return /*#__PURE__*/ jsx(NavigationMenu.ViewportPositioner, {
|
|
89
89
|
ref: ref,
|
|
90
|
-
"data-slot": "navigation-menu-viewport-positioner",
|
|
91
90
|
className: cn('absolute start-0 top-full z-60 flex [translate:var(--viewport-x,0px)_0] data-[orientation=vertical]:start-full data-[orientation=vertical]:top-[var(--viewport-y,0px)] data-[orientation=vertical]:[translate:0_0] data-[orientation=vertical]:[&>[data-slot=navigation-menu-viewport]]:ms-2 data-[orientation=vertical]:[&>[data-slot=navigation-menu-viewport]]:mt-0', className),
|
|
92
|
-
...props
|
|
91
|
+
...props,
|
|
92
|
+
"data-slot": "navigation-menu-viewport-positioner"
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
const NavigationMenu_NavigationMenuViewport = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
96
96
|
return /*#__PURE__*/ jsx(NavigationMenu.Viewport, {
|
|
97
97
|
ref: ref,
|
|
98
|
-
"data-slot": "navigation-menu-viewport",
|
|
99
98
|
className: cn('relative mt-2.5 box-border h-[var(--viewport-height)] max-h-[min(32rem,calc(100dvh-1.5rem))] w-[var(--viewport-width)] max-w-[min(40rem,calc(100vw-1.5rem))] origin-top overflow-hidden rounded-md bg-popover text-popover-foreground shadow-lg outline-1 outline-border transition-[inline-size,block-size] duration-200 ease-in-out data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none motion-reduce:transition-none [&_[data-slot=navigation-menu-content]]:absolute [&_[data-slot=navigation-menu-content]]:top-0 [&_[data-slot=navigation-menu-content]]:right-auto [&_[data-slot=navigation-menu-content]]:bottom-auto [&_[data-slot=navigation-menu-content]]:left-0 [&_[data-slot=navigation-menu-content]]:m-0 [&_[data-slot=navigation-menu-content]]:max-h-none [&_[data-slot=navigation-menu-content]]:origin-center [&_[data-slot=navigation-menu-content]]:overflow-visible [&_[data-slot=navigation-menu-content]]:rounded-none [&_[data-slot=navigation-menu-content]]:bg-transparent [&_[data-slot=navigation-menu-content]]:shadow-none [&_[data-slot=navigation-menu-content]]:outline-0 [&_[data-slot=navigation-menu-content]]:will-change-[translate,opacity] [&_[data-slot=navigation-menu-content][data-motion=from-end][data-state=open]]:animate-moduix-navigation-menu-content-from-end [&_[data-slot=navigation-menu-content][data-motion=from-start][data-state=open]]:animate-moduix-navigation-menu-content-from-start [&_[data-slot=navigation-menu-content][data-motion=to-end][data-state=closed]]:animate-moduix-navigation-menu-content-to-end [&_[data-slot=navigation-menu-content][data-motion=to-start][data-state=closed]]:animate-moduix-navigation-menu-content-to-start [&_[data-slot=navigation-menu-content][data-state]]:animate-none', className),
|
|
100
|
-
...props
|
|
99
|
+
...props,
|
|
100
|
+
"data-slot": "navigation-menu-viewport"
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
const NavigationMenu_NavigationMenu = Object.assign(NavigationMenu_NavigationMenuRoot, {
|
|
@@ -7,75 +7,75 @@ import { MinusIcon, PlusIcon } from "../../internal/icons/ui/index.js";
|
|
|
7
7
|
const NumberInput_NumberInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(NumberInput.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "number-input-root",
|
|
11
10
|
className: cn('group/number-input flex w-auto max-w-none flex-col items-start gap-1 data-disabled:opacity-50', className),
|
|
12
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "number-input-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const NumberInput_NumberInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(NumberInput.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-slot": "number-input-root-provider",
|
|
19
18
|
className: cn('group/number-input flex w-auto max-w-none flex-col items-start gap-1 data-disabled:opacity-50', className),
|
|
20
|
-
...props
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "number-input-root-provider"
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
const NumberInput_NumberInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
24
24
|
return /*#__PURE__*/ jsx(NumberInput.Label, {
|
|
25
25
|
ref: ref,
|
|
26
|
-
"data-slot": "number-input-label",
|
|
27
26
|
className: cn('text-sm leading-5 font-medium text-foreground', className),
|
|
28
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
"data-slot": "number-input-label"
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
const NumberInput_NumberInputScrubber = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
32
32
|
return /*#__PURE__*/ jsx(NumberInput.Scrubber, {
|
|
33
33
|
ref: ref,
|
|
34
|
-
"data-slot": "number-input-scrubber",
|
|
35
34
|
className: cn('inline-flex cursor-ew-resize items-center gap-2 text-foreground select-none data-disabled:cursor-default', className),
|
|
36
|
-
...props
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "number-input-scrubber"
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
const NumberInput_NumberInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
40
40
|
return /*#__PURE__*/ jsx(NumberInput.Control, {
|
|
41
41
|
ref: ref,
|
|
42
|
-
"data-slot": "number-input-control",
|
|
43
42
|
className: cn('inline-flex items-stretch', className),
|
|
44
|
-
...props
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "number-input-control"
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
const NumberInput_NumberInputDecrementTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
48
48
|
return /*#__PURE__*/ jsx(NumberInput.DecrementTrigger, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
"data-slot": "number-input-decrement-trigger",
|
|
51
50
|
className: cn('box-border inline-flex size-control-md min-w-control-md cursor-pointer items-center justify-center rounded-s-md border border-e-0 border-border bg-background p-0 text-foreground outline-0 transition-[background-color,border-color,color,opacity] duration-200 ease-in-out select-none group-data-invalid/number-input:border-destructive focus-visible:z-1 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring group-data-invalid/number-input:focus-visible:outline-destructive active:bg-accent disabled:pointer-events-none data-disabled:pointer-events-none data-focus:z-1 data-focus:outline-1 data-focus:-outline-offset-1 data-focus:outline-ring group-data-invalid/number-input:data-focus:outline-destructive data-invalid:border-destructive data-invalid:focus-visible:outline-destructive data-invalid:data-focus:outline-destructive motion-reduce:transition-none [&>svg]:size-3.5 [&>svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', className),
|
|
52
51
|
...props,
|
|
52
|
+
"data-slot": "number-input-decrement-trigger",
|
|
53
53
|
children: children ?? /*#__PURE__*/ jsx(MinusIcon, {})
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
const NumberInput_NumberInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
57
57
|
return /*#__PURE__*/ jsx(NumberInput.Input, {
|
|
58
58
|
ref: ref,
|
|
59
|
-
"data-slot": "number-input-input",
|
|
60
59
|
className: cn('h-control-md w-24 rounded-none border-x-0 border-y border-border border-x-current bg-background px-3 py-1 text-center text-md leading-6 text-foreground tabular-nums outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out group-data-invalid/number-input:border-t-destructive group-data-invalid/number-input:border-b-destructive focus-visible:z-1 focus-visible:outline-ring group-data-invalid/number-input:focus-visible:outline-destructive data-focus:z-1 data-focus:outline-ring group-data-invalid/number-input:data-focus:outline-destructive data-invalid:border-t-destructive data-invalid:border-b-destructive data-invalid:focus-visible:outline-destructive data-invalid:data-focus:outline-destructive motion-reduce:transition-none', className),
|
|
61
|
-
...props
|
|
60
|
+
...props,
|
|
61
|
+
"data-slot": "number-input-input"
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
const NumberInput_NumberInputIncrementTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
65
65
|
return /*#__PURE__*/ jsx(NumberInput.IncrementTrigger, {
|
|
66
66
|
ref: ref,
|
|
67
|
-
"data-slot": "number-input-increment-trigger",
|
|
68
67
|
className: cn('box-border inline-flex size-control-md min-w-control-md cursor-pointer items-center justify-center rounded-e-md border border-s-0 border-border bg-background p-0 text-foreground outline-0 transition-[background-color,border-color,color,opacity] duration-200 ease-in-out select-none group-data-invalid/number-input:border-destructive focus-visible:z-1 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring group-data-invalid/number-input:focus-visible:outline-destructive active:bg-accent disabled:pointer-events-none data-disabled:pointer-events-none data-focus:z-1 data-focus:outline-1 data-focus:-outline-offset-1 data-focus:outline-ring group-data-invalid/number-input:data-focus:outline-destructive data-invalid:border-destructive data-invalid:focus-visible:outline-destructive data-invalid:data-focus:outline-destructive motion-reduce:transition-none [&>svg]:size-3.5 [&>svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', className),
|
|
69
68
|
...props,
|
|
69
|
+
"data-slot": "number-input-increment-trigger",
|
|
70
70
|
children: children ?? /*#__PURE__*/ jsx(PlusIcon, {})
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
const NumberInput_NumberInputValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
74
74
|
return /*#__PURE__*/ jsx(NumberInput.ValueText, {
|
|
75
75
|
ref: ref,
|
|
76
|
-
"data-slot": "number-input-value-text",
|
|
77
76
|
className: cn('text-sm leading-5 text-muted-foreground tabular-nums', className),
|
|
78
|
-
...props
|
|
77
|
+
...props,
|
|
78
|
+
"data-slot": "number-input-value-text"
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
const NumberInput_NumberInputField = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
@@ -6,33 +6,33 @@ import { ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/index
|
|
|
6
6
|
const Pagination_PaginationRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Pagination.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "pagination-root",
|
|
10
9
|
className: cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', className),
|
|
11
|
-
...props
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "pagination-root"
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
const Pagination_PaginationRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
15
15
|
return /*#__PURE__*/ jsx(Pagination.RootProvider, {
|
|
16
16
|
ref: ref,
|
|
17
|
-
"data-slot": "pagination-root-provider",
|
|
18
17
|
className: cn('inline-flex max-w-full items-center gap-1 overflow-x-auto text-foreground', className),
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "pagination-root-provider"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const Pagination_PaginationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(Pagination.Item, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "pagination-item",
|
|
26
25
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-2 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', 'data-selected:border-foreground data-selected:bg-foreground data-selected:text-background [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:data-selected:hover:bg-foreground', '[&_svg]:size-4 [&_svg]:shrink-0', className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "pagination-item"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const Pagination_PaginationEllipsis = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(Pagination.Ellipsis, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "pagination-ellipsis",
|
|
34
33
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium text-muted-foreground tabular-nums select-none', className),
|
|
35
34
|
...props,
|
|
35
|
+
"data-slot": "pagination-ellipsis",
|
|
36
36
|
children: children ?? (!props.asChild && '...')
|
|
37
37
|
});
|
|
38
38
|
});
|
|
@@ -50,27 +50,27 @@ function EdgeIcon({ side }) {
|
|
|
50
50
|
const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
51
51
|
return /*#__PURE__*/ jsx(Pagination.PrevTrigger, {
|
|
52
52
|
ref: ref,
|
|
53
|
-
"data-slot": "pagination-prev-trigger",
|
|
54
53
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
55
54
|
...props,
|
|
55
|
+
"data-slot": "pagination-prev-trigger",
|
|
56
56
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronLeftIcon, {}))
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
60
60
|
return /*#__PURE__*/ jsx(Pagination.NextTrigger, {
|
|
61
61
|
ref: ref,
|
|
62
|
-
"data-slot": "pagination-next-trigger",
|
|
63
62
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
64
63
|
...props,
|
|
64
|
+
"data-slot": "pagination-next-trigger",
|
|
65
65
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronRightIcon, {}))
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
69
69
|
return /*#__PURE__*/ jsx(Pagination.FirstTrigger, {
|
|
70
70
|
ref: ref,
|
|
71
|
-
"data-slot": "pagination-first-trigger",
|
|
72
71
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
73
72
|
...props,
|
|
73
|
+
"data-slot": "pagination-first-trigger",
|
|
74
74
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
75
75
|
side: "left"
|
|
76
76
|
}))
|
|
@@ -79,9 +79,9 @@ const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
79
79
|
const Pagination_PaginationLastTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(Pagination.LastTrigger, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
"data-slot": "pagination-last-trigger",
|
|
83
82
|
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm leading-5 font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', null == children && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
84
83
|
...props,
|
|
84
|
+
"data-slot": "pagination-last-trigger",
|
|
85
85
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
86
86
|
side: "right"
|
|
87
87
|
}))
|
|
@@ -6,58 +6,58 @@ import { EyeClosedIcon, EyeIcon } from "../../internal/icons/ui/index.js";
|
|
|
6
6
|
const PasswordInput_PasswordInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(PasswordInput.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "password-input-root",
|
|
10
9
|
className: cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', className),
|
|
11
|
-
...props
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "password-input-root"
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
const PasswordInput_PasswordInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
15
15
|
return /*#__PURE__*/ jsx(PasswordInput.RootProvider, {
|
|
16
16
|
ref: ref,
|
|
17
|
-
"data-slot": "password-input-root-provider",
|
|
18
17
|
className: cn('flex w-full max-w-none flex-col gap-1 text-foreground data-disabled:opacity-50', className),
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "password-input-root-provider"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const PasswordInput_PasswordInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(PasswordInput.Label, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "password-input-label",
|
|
26
25
|
className: cn('inline-flex items-center gap-1 text-sm leading-5 font-medium text-foreground', className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "password-input-label"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const PasswordInput_PasswordInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(PasswordInput.Control, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "password-input-control",
|
|
34
33
|
className: cn('flex min-h-control-md w-full items-center rounded-md border border-border bg-background pr-2 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out focus-within:outline-ring data-invalid:border-destructive data-invalid:focus-within:outline-destructive data-readonly:bg-background data-readonly:text-foreground motion-reduce:transition-none', className),
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "password-input-control"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const PasswordInput_PasswordInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(PasswordInput.Input, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "password-input-input",
|
|
42
41
|
className: cn('min-h-0 min-w-0 flex-auto bg-transparent px-3 py-1 text-md leading-6 text-foreground outline-0 transition-opacity duration-200 ease-in-out placeholder:text-muted-foreground disabled:pointer-events-none data-disabled:pointer-events-none motion-reduce:transition-none', className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "password-input-input"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const PasswordInput_PasswordInputVisibilityTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(PasswordInput.VisibilityTrigger, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
"data-slot": "password-input-visibility-trigger",
|
|
50
49
|
className: cn('group/password-input-trigger inline-flex size-control-sm min-w-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-readonly]):hover]:text-foreground', className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "password-input-visibility-trigger"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const PasswordInput_PasswordInputIndicator = /*#__PURE__*/ forwardRef(function({ className, children, fallback, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(PasswordInput.Indicator, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-slot": "password-input-indicator",
|
|
58
57
|
className: cn("inline-flex items-center justify-center rounded-sm p-1 transition-[background-color,color] duration-200 ease-in-out group-hover/password-input-trigger:bg-muted group-focus-visible/password-input-trigger:bg-muted group-data-[disabled]/password-input-trigger:bg-transparent group-data-[readonly]/password-input-trigger:bg-transparent motion-reduce:transition-none [&>svg:not([class*='size-'])]:size-4", className),
|
|
59
58
|
fallback: fallback ?? /*#__PURE__*/ jsx(EyeClosedIcon, {}),
|
|
60
59
|
...props,
|
|
60
|
+
"data-slot": "password-input-indicator",
|
|
61
61
|
children: children ?? /*#__PURE__*/ jsx(EyeIcon, {})
|
|
62
62
|
});
|
|
63
63
|
});
|