@moduix/react 2.5.0 → 2.6.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/README.md +65 -86
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +7 -8
- package/dist/components/alert/Alert.js +6 -7
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +17 -59
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +7 -50
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +10 -3
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +6 -9
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +32 -45
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +20 -29
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +34 -43
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +14 -4
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +7 -8
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- package/dist/components/lightbox/Lightbox_module.css +0 -3
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +17 -36
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +7 -8
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +12 -29
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +16 -30
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +36 -86
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +17 -46
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +18 -32
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +21 -75
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -4,7 +4,6 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { createContext, forwardRef, useContext } from "react";
|
|
6
6
|
import { ChevronLeftIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import { Input } from "../input/index.js";
|
|
9
8
|
import { Separator } from "../separator/index.js";
|
|
10
9
|
import { Splitter, useSplitterContext } from "../splitter/index.js";
|
|
@@ -67,7 +66,7 @@ const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defau
|
|
|
67
66
|
orientation: "horizontal",
|
|
68
67
|
"data-side": side,
|
|
69
68
|
"data-slot": "sidebar-root",
|
|
70
|
-
className: clsx(Sidebar_module.root,
|
|
69
|
+
className: clsx(Sidebar_module.root, className)
|
|
71
70
|
})
|
|
72
71
|
});
|
|
73
72
|
});
|
|
@@ -93,7 +92,7 @@ const Sidebar_SidebarPanel = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
93
92
|
"data-side": config.side,
|
|
94
93
|
"data-slot": "sidebar-panel",
|
|
95
94
|
"data-state": collapsed ? 'collapsed' : 'expanded',
|
|
96
|
-
className: clsx(Sidebar_module.panel,
|
|
95
|
+
className: clsx(Sidebar_module.panel, className)
|
|
97
96
|
});
|
|
98
97
|
});
|
|
99
98
|
const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -104,7 +103,7 @@ const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
104
103
|
id: "content",
|
|
105
104
|
"data-side": side,
|
|
106
105
|
"data-slot": "sidebar-inset",
|
|
107
|
-
className: clsx(Sidebar_module.inset,
|
|
106
|
+
className: clsx(Sidebar_module.inset, className)
|
|
108
107
|
});
|
|
109
108
|
});
|
|
110
109
|
const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ children, className, 'aria-label': ariaLabel = 'Resize sidebar', ...props }, ref) {
|
|
@@ -117,7 +116,7 @@ const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ childre
|
|
|
117
116
|
"aria-label": ariaLabel,
|
|
118
117
|
"data-side": side,
|
|
119
118
|
"data-slot": "sidebar-resize-trigger",
|
|
120
|
-
className: clsx(Sidebar_module.resizeTrigger,
|
|
119
|
+
className: clsx(Sidebar_module.resizeTrigger, className),
|
|
121
120
|
children: children
|
|
122
121
|
});
|
|
123
122
|
});
|
|
@@ -140,7 +139,7 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
140
139
|
"data-side": config.side,
|
|
141
140
|
"data-slot": "sidebar-trigger",
|
|
142
141
|
"data-state": collapsed ? 'collapsed' : 'expanded',
|
|
143
|
-
className: clsx(Sidebar_module.trigger,
|
|
142
|
+
className: clsx(Sidebar_module.trigger, className),
|
|
144
143
|
onClick: handleClick,
|
|
145
144
|
...props,
|
|
146
145
|
children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
@@ -152,7 +151,7 @@ const Sidebar_SidebarLabel = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
152
151
|
"data-scope": "sidebar",
|
|
153
152
|
"data-part": "label",
|
|
154
153
|
"data-slot": "sidebar-label",
|
|
155
|
-
className: clsx(Sidebar_module.label,
|
|
154
|
+
className: clsx(Sidebar_module.label, className),
|
|
156
155
|
...props
|
|
157
156
|
});
|
|
158
157
|
});
|
|
@@ -162,7 +161,7 @@ const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
162
161
|
"data-scope": "sidebar",
|
|
163
162
|
"data-part": "header",
|
|
164
163
|
"data-slot": "sidebar-header",
|
|
165
|
-
className: clsx(Sidebar_module.header,
|
|
164
|
+
className: clsx(Sidebar_module.header, className),
|
|
166
165
|
...props
|
|
167
166
|
});
|
|
168
167
|
});
|
|
@@ -172,17 +171,41 @@ const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
172
171
|
"data-scope": "sidebar",
|
|
173
172
|
"data-part": "content",
|
|
174
173
|
"data-slot": "sidebar-content",
|
|
175
|
-
className: clsx(Sidebar_module.content,
|
|
174
|
+
className: clsx(Sidebar_module.content, className),
|
|
176
175
|
...props
|
|
177
176
|
});
|
|
178
177
|
});
|
|
178
|
+
const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
179
|
+
const { collapsed } = useSidebar();
|
|
180
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
181
|
+
ref: ref,
|
|
182
|
+
"data-scope": "sidebar",
|
|
183
|
+
"data-part": "expanded-content",
|
|
184
|
+
"data-slot": "sidebar-expanded-content",
|
|
185
|
+
className: className,
|
|
186
|
+
...props,
|
|
187
|
+
hidden: collapsed
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
191
|
+
const { collapsed } = useSidebar();
|
|
192
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
193
|
+
ref: ref,
|
|
194
|
+
"data-scope": "sidebar",
|
|
195
|
+
"data-part": "collapsed-content",
|
|
196
|
+
"data-slot": "sidebar-collapsed-content",
|
|
197
|
+
className: className,
|
|
198
|
+
...props,
|
|
199
|
+
hidden: !collapsed
|
|
200
|
+
});
|
|
201
|
+
});
|
|
179
202
|
const Sidebar_SidebarFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
180
203
|
return /*#__PURE__*/ jsx(ark.footer, {
|
|
181
204
|
ref: ref,
|
|
182
205
|
"data-scope": "sidebar",
|
|
183
206
|
"data-part": "footer",
|
|
184
207
|
"data-slot": "sidebar-footer",
|
|
185
|
-
className: clsx(Sidebar_module.footer,
|
|
208
|
+
className: clsx(Sidebar_module.footer, className),
|
|
186
209
|
...props
|
|
187
210
|
});
|
|
188
211
|
});
|
|
@@ -192,7 +215,7 @@ const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
192
215
|
"data-scope": "sidebar",
|
|
193
216
|
"data-part": "group",
|
|
194
217
|
"data-slot": "sidebar-group",
|
|
195
|
-
className: clsx(Sidebar_module.group,
|
|
218
|
+
className: clsx(Sidebar_module.group, className),
|
|
196
219
|
...props
|
|
197
220
|
});
|
|
198
221
|
});
|
|
@@ -202,118 +225,107 @@ const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
202
225
|
"data-scope": "sidebar",
|
|
203
226
|
"data-part": "group-label",
|
|
204
227
|
"data-slot": "sidebar-group-label",
|
|
205
|
-
className: clsx(Sidebar_module.groupLabel,
|
|
228
|
+
className: clsx(Sidebar_module.groupLabel, className),
|
|
206
229
|
...props
|
|
207
230
|
});
|
|
208
231
|
});
|
|
209
|
-
const
|
|
210
|
-
return /*#__PURE__*/ jsx(ark.
|
|
232
|
+
const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
233
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
211
234
|
ref: ref,
|
|
212
|
-
type: type,
|
|
213
235
|
"data-scope": "sidebar",
|
|
214
|
-
"data-part": "group-
|
|
215
|
-
"data-slot": "sidebar-group-
|
|
216
|
-
className: clsx(Sidebar_module.
|
|
236
|
+
"data-part": "group-header",
|
|
237
|
+
"data-slot": "sidebar-group-header",
|
|
238
|
+
className: clsx(Sidebar_module.groupHeader, className),
|
|
217
239
|
...props
|
|
218
240
|
});
|
|
219
241
|
});
|
|
220
|
-
const
|
|
221
|
-
return /*#__PURE__*/ jsx(ark.
|
|
242
|
+
const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
|
|
243
|
+
return /*#__PURE__*/ jsx(ark.button, {
|
|
222
244
|
ref: ref,
|
|
245
|
+
type: type,
|
|
223
246
|
"data-scope": "sidebar",
|
|
224
|
-
"data-part": "group-
|
|
225
|
-
"data-slot": "sidebar-group-
|
|
226
|
-
className: clsx(Sidebar_module.
|
|
247
|
+
"data-part": "group-action",
|
|
248
|
+
"data-slot": "sidebar-group-action",
|
|
249
|
+
className: clsx(Sidebar_module.groupAction, className),
|
|
227
250
|
...props
|
|
228
251
|
});
|
|
229
252
|
});
|
|
230
|
-
const
|
|
253
|
+
const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
231
254
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
232
255
|
ref: ref,
|
|
233
256
|
"data-scope": "sidebar",
|
|
234
|
-
"data-part": "
|
|
235
|
-
"data-slot": "sidebar-
|
|
236
|
-
className: clsx(Sidebar_module.menu,
|
|
257
|
+
"data-part": "navigation-list",
|
|
258
|
+
"data-slot": "sidebar-navigation-list",
|
|
259
|
+
className: clsx(Sidebar_module.menu, className),
|
|
237
260
|
...props
|
|
238
261
|
});
|
|
239
262
|
});
|
|
240
|
-
const
|
|
263
|
+
const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
241
264
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
242
265
|
ref: ref,
|
|
243
266
|
"data-scope": "sidebar",
|
|
244
|
-
"data-part": "
|
|
245
|
-
"data-slot": "sidebar-
|
|
246
|
-
className: clsx(Sidebar_module.menuItem,
|
|
267
|
+
"data-part": "navigation-item",
|
|
268
|
+
"data-slot": "sidebar-navigation-item",
|
|
269
|
+
className: clsx(Sidebar_module.menuItem, className),
|
|
247
270
|
...props
|
|
248
271
|
});
|
|
249
272
|
});
|
|
250
|
-
const
|
|
273
|
+
const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ active = false, className, size = 'md', type = 'button', 'aria-current': ariaCurrent, ...props }, ref) {
|
|
251
274
|
return /*#__PURE__*/ jsx(ark.button, {
|
|
252
275
|
ref: ref,
|
|
253
276
|
type: type,
|
|
254
277
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
255
278
|
"data-scope": "sidebar",
|
|
256
|
-
"data-part": "
|
|
257
|
-
"data-slot": "sidebar-
|
|
279
|
+
"data-part": "navigation-button",
|
|
280
|
+
"data-slot": "sidebar-navigation-button",
|
|
258
281
|
"data-active": active ? '' : void 0,
|
|
259
282
|
"data-size": size,
|
|
260
|
-
className: clsx(Sidebar_module.menuButton,
|
|
261
|
-
...props
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
const Sidebar_SidebarMenuAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
|
|
265
|
-
return /*#__PURE__*/ jsx(ark.button, {
|
|
266
|
-
ref: ref,
|
|
267
|
-
type: type,
|
|
268
|
-
"data-scope": "sidebar",
|
|
269
|
-
"data-part": "menu-action",
|
|
270
|
-
"data-slot": "sidebar-menu-action",
|
|
271
|
-
className: clsx(Sidebar_module.menuAction, normalizeClassName(className)),
|
|
283
|
+
className: clsx(Sidebar_module.menuButton, className),
|
|
272
284
|
...props
|
|
273
285
|
});
|
|
274
286
|
});
|
|
275
|
-
const
|
|
276
|
-
return /*#__PURE__*/ jsx(ark.
|
|
287
|
+
const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
288
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
277
289
|
ref: ref,
|
|
278
290
|
"data-scope": "sidebar",
|
|
279
|
-
"data-part": "
|
|
280
|
-
"data-slot": "sidebar-
|
|
281
|
-
className: clsx(Sidebar_module.menuBadge,
|
|
291
|
+
"data-part": "navigation-badge",
|
|
292
|
+
"data-slot": "sidebar-navigation-badge",
|
|
293
|
+
className: clsx(Sidebar_module.menuBadge, className),
|
|
282
294
|
...props
|
|
283
295
|
});
|
|
284
296
|
});
|
|
285
|
-
const
|
|
297
|
+
const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
286
298
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
287
299
|
ref: ref,
|
|
288
300
|
"data-scope": "sidebar",
|
|
289
|
-
"data-part": "
|
|
290
|
-
"data-slot": "sidebar-
|
|
291
|
-
className: clsx(Sidebar_module.menuSub,
|
|
301
|
+
"data-part": "navigation-sub-list",
|
|
302
|
+
"data-slot": "sidebar-navigation-sub-list",
|
|
303
|
+
className: clsx(Sidebar_module.menuSub, className),
|
|
292
304
|
...props
|
|
293
305
|
});
|
|
294
306
|
});
|
|
295
|
-
const
|
|
307
|
+
const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
296
308
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
297
309
|
ref: ref,
|
|
298
310
|
"data-scope": "sidebar",
|
|
299
|
-
"data-part": "
|
|
300
|
-
"data-slot": "sidebar-
|
|
301
|
-
className: clsx(Sidebar_module.menuSubItem,
|
|
311
|
+
"data-part": "navigation-sub-item",
|
|
312
|
+
"data-slot": "sidebar-navigation-sub-item",
|
|
313
|
+
className: clsx(Sidebar_module.menuSubItem, className),
|
|
302
314
|
...props
|
|
303
315
|
});
|
|
304
316
|
});
|
|
305
|
-
const
|
|
317
|
+
const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ active = false, children, className, 'aria-current': ariaCurrent, ...props }, ref) {
|
|
306
318
|
return /*#__PURE__*/ jsx(ark.a, {
|
|
307
319
|
ref: ref,
|
|
308
320
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
309
321
|
"data-scope": "sidebar",
|
|
310
|
-
"data-part": "
|
|
311
|
-
"data-slot": "sidebar-
|
|
322
|
+
"data-part": "navigation-sub-button",
|
|
323
|
+
"data-slot": "sidebar-navigation-sub-button",
|
|
312
324
|
"data-active": active ? '' : void 0,
|
|
313
|
-
className: clsx(Sidebar_module.menuSubButton,
|
|
325
|
+
className: clsx(Sidebar_module.menuSubButton, className),
|
|
314
326
|
...props,
|
|
315
327
|
children: 'string' == typeof children ? /*#__PURE__*/ jsx("span", {
|
|
316
|
-
"data-slot": "sidebar-
|
|
328
|
+
"data-slot": "sidebar-navigation-sub-label",
|
|
317
329
|
children: children
|
|
318
330
|
}) : children
|
|
319
331
|
});
|
|
@@ -347,7 +359,7 @@ const Sidebar_SidebarInput = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
347
359
|
return /*#__PURE__*/ jsx(Input.Root, {
|
|
348
360
|
ref: ref,
|
|
349
361
|
"data-slot": "sidebar-input",
|
|
350
|
-
className: clsx(Sidebar_module.input,
|
|
362
|
+
className: clsx(Sidebar_module.input, className),
|
|
351
363
|
...props
|
|
352
364
|
});
|
|
353
365
|
});
|
|
@@ -355,7 +367,7 @@ const Sidebar_SidebarSeparator = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
355
367
|
return /*#__PURE__*/ jsx(Separator.Root, {
|
|
356
368
|
ref: ref,
|
|
357
369
|
"data-slot": "sidebar-separator",
|
|
358
|
-
className: clsx(Sidebar_module.separator,
|
|
370
|
+
className: clsx(Sidebar_module.separator, className),
|
|
359
371
|
...props
|
|
360
372
|
});
|
|
361
373
|
});
|
|
@@ -369,20 +381,21 @@ const Sidebar = Object.assign(Sidebar_SidebarRoot, {
|
|
|
369
381
|
Input: Sidebar_SidebarInput,
|
|
370
382
|
Header: Sidebar_SidebarHeader,
|
|
371
383
|
Content: Sidebar_SidebarContent,
|
|
384
|
+
ExpandedContent: Sidebar_SidebarExpandedContent,
|
|
385
|
+
CollapsedContent: Sidebar_SidebarCollapsedContent,
|
|
372
386
|
Footer: Sidebar_SidebarFooter,
|
|
373
387
|
Separator: Sidebar_SidebarSeparator,
|
|
374
388
|
Group: Sidebar_SidebarGroup,
|
|
389
|
+
GroupHeader: Sidebar_SidebarGroupHeader,
|
|
375
390
|
GroupLabel: Sidebar_SidebarGroupLabel,
|
|
376
391
|
GroupAction: Sidebar_SidebarGroupAction,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
MenuItem: Sidebar_SidebarMenuItem,
|
|
392
|
+
NavigationList: Sidebar_SidebarNavigationList,
|
|
393
|
+
NavigationItem: Sidebar_SidebarNavigationItem,
|
|
380
394
|
Tooltip: Sidebar_SidebarTooltip,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
MenuSubButton: Sidebar_SidebarMenuSubButton
|
|
395
|
+
NavigationButton: Sidebar_SidebarNavigationButton,
|
|
396
|
+
NavigationBadge: Sidebar_SidebarNavigationBadge,
|
|
397
|
+
NavigationSubList: Sidebar_SidebarNavigationSubList,
|
|
398
|
+
NavigationSubItem: Sidebar_SidebarNavigationSubItem,
|
|
399
|
+
NavigationSubButton: Sidebar_SidebarNavigationSubButton
|
|
387
400
|
});
|
|
388
401
|
export { Sidebar, useSidebar };
|
|
@@ -10,17 +10,16 @@ const Sidebar_module = {
|
|
|
10
10
|
groupLabel: "groupLabel-IvBtsR",
|
|
11
11
|
menuSub: "menuSub-xn2r86",
|
|
12
12
|
groupAction: "groupAction-aoQPc4",
|
|
13
|
-
menuAction: "menuAction-_BDfHY",
|
|
14
|
-
menuBadge: "menuBadge-GKf4u4",
|
|
15
13
|
input: "input-nqDU3w",
|
|
16
14
|
menuButton: "menuButton-OAl6eQ",
|
|
17
15
|
inset: "inset-FQP9mn",
|
|
18
16
|
resizeTrigger: "resizeTrigger-xFDgel",
|
|
19
17
|
trigger: "trigger-_fUcgc",
|
|
20
|
-
|
|
18
|
+
groupHeader: "groupHeader-N4qFFK",
|
|
21
19
|
menu: "menu-UwagMF",
|
|
22
20
|
menuItem: "menuItem-ktGhRk",
|
|
23
21
|
menuSubItem: "menuSubItem-NeKVH5",
|
|
22
|
+
menuBadge: "menuBadge-GKf4u4",
|
|
24
23
|
menuSubButton: "menuSubButton-MjeEfX",
|
|
25
24
|
separator: "separator-KuEG4k"
|
|
26
25
|
};
|