@moduix/react 1.1.1 → 2.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/README.md +105 -177
- package/dist/components/accordion/Accordion.css +12 -5
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +1 -0
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +1 -0
- package/dist/components/angle-slider/AngleSlider.css +9 -9
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +3 -1
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +52 -8
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/breadcrumbs/Breadcrumbs.css +13 -6
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +2 -1
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +45 -25
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/card/Card.css +21 -5
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/carousel/Carousel.css +19 -17
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/checkbox/Checkbox.css +13 -13
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +11 -11
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/close-button/CloseButton.css +7 -7
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/collapsible/Collapsible.css +13 -6
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +1 -0
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -27
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +1 -0
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +69 -53
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +67 -100
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +0 -2
- package/dist/components/container/Container.js +1 -1
- package/dist/components/date-input/DateInput.css +8 -5
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +78 -57
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +19 -14
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +6 -5
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +12 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +2 -2
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/field/Field.css +6 -8
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +0 -1
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +96 -23
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +3 -0
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +44 -40
- package/dist/components/floating-panel/FloatingPanel.d.ts +10 -2
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/hover-card/HoverCard.css +19 -15
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +15 -11
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +9 -9
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input-group/InputGroup.css +29 -29
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/lightbox/Lightbox.css +19 -17
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.js +1 -1
- package/dist/components/listbox/Listbox.css +87 -26
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +3 -0
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +54 -45
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +17 -12
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/number-input/NumberInput.css +17 -24
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +11 -11
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/password-input/PasswordInput.css +4 -4
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/pin-input/PinInput.css +6 -6
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/popover/Popover.css +29 -19
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/progress-circular/ProgressCircular.css +2 -2
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-linear/ProgressLinear.css +1 -1
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/qr-code/QrCode.css +10 -9
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +12 -12
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +10 -10
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +12 -7
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/segment-group/SegmentGroup.css +4 -4
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +81 -55
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/separator/Separator.css +6 -6
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/sidebar/Sidebar.css +161 -20
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +6 -0
- package/dist/components/signature-pad/SignaturePad.css +17 -45
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/slider/Slider.css +17 -13
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +5 -5
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/split-button/SplitButton.css +10 -10
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/splitter/Splitter.css +19 -18
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/steps/Steps.css +20 -19
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +17 -17
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +3 -3
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +0 -1
- package/dist/components/tabs/Tabs.css +22 -20
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +23 -53
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tags-input/TagsInput.css +19 -55
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.css +4 -3
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/timer/Timer.css +7 -7
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +16 -15
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toggle/Toggle.css +23 -23
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +23 -18
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +37 -32
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tree-view/TreeView.css +24 -21
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/typeset/Typeset.css +317 -0
- package/dist/components/typeset/Typeset.d.ts +7 -0
- package/dist/components/typeset/Typeset.js +33 -0
- package/dist/components/typeset/Typeset.module.js +8 -0
- package/dist/index.d.ts +42 -39
- package/dist/index.js +42 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/dist/lib/moduix/presets/contrast.css +65 -0
- package/dist/lib/moduix/presets/dense.css +78 -0
- package/dist/lib/moduix/presets/soft.css +77 -0
- package/dist/lib/moduix/styles/reset.css +33 -0
- package/dist/lib/moduix/styles/style.css +17 -4
- package/dist/presets/contrast.d.ts +1 -0
- package/dist/presets/contrast.js +1 -0
- package/dist/presets/dense.d.ts +1 -0
- package/dist/presets/dense.js +1 -0
- package/dist/presets/soft.d.ts +1 -0
- package/dist/presets/soft.js +1 -0
- package/package.json +7 -3
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
width: 100%;
|
|
42
42
|
min-width: 0;
|
|
43
|
-
min-height: var(--tree-view-item-min-height,
|
|
43
|
+
min-height: var(--tree-view-item-min-height, var(--size-sm));
|
|
44
44
|
align-items: center;
|
|
45
45
|
gap: var(--tree-view-item-gap, var(--spacing-2));
|
|
46
46
|
border: var(--tree-view-item-border-width, 0) solid
|
|
@@ -51,8 +51,9 @@
|
|
|
51
51
|
color: var(--tree-view-item-color, var(--tree-view-color, var(--color-foreground)));
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
font: inherit;
|
|
54
|
-
outline: var(--tree-view-focus-ring-width, var(--border-width-sm))
|
|
55
|
-
|
|
54
|
+
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
55
|
+
solid transparent;
|
|
56
|
+
outline-offset: calc(var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm))) * -1);
|
|
56
57
|
text-align: start;
|
|
57
58
|
transition: background-color var(--tree-view-transition, var(--transition-default)),
|
|
58
59
|
color var(--tree-view-transition, var(--transition-default)),
|
|
@@ -87,17 +88,17 @@
|
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
.-ZBX5W_branchTrigger, .-ZBX5W_branchIndicator, .-ZBX5W_itemIndicator {
|
|
90
|
-
width: var(--tree-view-indicator-size,
|
|
91
|
-
height: var(--tree-view-indicator-size,
|
|
92
|
-
flex: 0 0 var(--tree-view-indicator-size,
|
|
91
|
+
width: var(--tree-view-indicator-size, var(--spacing-4));
|
|
92
|
+
height: var(--tree-view-indicator-size, var(--spacing-4));
|
|
93
|
+
flex: 0 0 var(--tree-view-indicator-size, var(--spacing-4));
|
|
93
94
|
color: var(--tree-view-indicator-color, currentColor);
|
|
94
95
|
justify-content: center;
|
|
95
96
|
align-items: center;
|
|
96
97
|
display: inline-flex;
|
|
97
98
|
|
|
98
99
|
& svg {
|
|
99
|
-
width: var(--tree-view-indicator-icon-size,
|
|
100
|
-
height: var(--tree-view-indicator-icon-size,
|
|
100
|
+
width: var(--tree-view-indicator-icon-size, var(--spacing-3-5));
|
|
101
|
+
height: var(--tree-view-indicator-icon-size, var(--spacing-3-5));
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
@@ -120,9 +121,9 @@
|
|
|
120
121
|
overflow: hidden;
|
|
121
122
|
|
|
122
123
|
& svg {
|
|
123
|
-
width: var(--tree-view-node-icon-size,
|
|
124
|
-
height: var(--tree-view-node-icon-size,
|
|
125
|
-
flex: 0 0 var(--tree-view-node-icon-size,
|
|
124
|
+
width: var(--tree-view-node-icon-size, var(--spacing-4));
|
|
125
|
+
height: var(--tree-view-node-icon-size, var(--spacing-4));
|
|
126
|
+
flex: 0 0 var(--tree-view-node-icon-size, var(--spacing-4));
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -150,21 +151,22 @@
|
|
|
150
151
|
bottom: 0;
|
|
151
152
|
position: absolute;
|
|
152
153
|
inset-inline-start: calc(var(--tree-view-item-padding-x, var(--spacing-2)) +
|
|
153
|
-
((
|
|
154
|
-
(var(--tree-view-indicator-size,
|
|
154
|
+
((var(--depth, 1) - 1) * var(--tree-view-indent, 1rem)) +
|
|
155
|
+
(var(--tree-view-indicator-size, var(--spacing-4)) / 2));
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.-ZBX5W_nodeCheckbox {
|
|
158
159
|
box-sizing: border-box;
|
|
159
|
-
width: var(--tree-view-checkbox-size,
|
|
160
|
-
height: var(--tree-view-checkbox-size,
|
|
161
|
-
flex: 0 0 var(--tree-view-checkbox-size,
|
|
160
|
+
width: var(--tree-view-checkbox-size, var(--spacing-4));
|
|
161
|
+
height: var(--tree-view-checkbox-size, var(--spacing-4));
|
|
162
|
+
flex: 0 0 var(--tree-view-checkbox-size, var(--spacing-4));
|
|
162
163
|
border: var(--tree-view-checkbox-border-width, var(--border-width-sm)) solid
|
|
163
164
|
var(--tree-view-checkbox-border-color, var(--color-border));
|
|
164
165
|
border-radius: var(--tree-view-checkbox-radius, var(--radius-xs));
|
|
165
166
|
background-color: var(--tree-view-checkbox-bg, var(--color-background));
|
|
166
167
|
color: var(--tree-view-checkbox-color, var(--color-primary-foreground));
|
|
167
|
-
outline: var(--tree-view-focus-ring-width, var(--border-width-sm))
|
|
168
|
+
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
169
|
+
solid transparent;
|
|
168
170
|
outline-offset: var(--tree-view-checkbox-focus-ring-offset, var(--border-width-sm));
|
|
169
171
|
transition: background-color var(--tree-view-transition, var(--transition-default)),
|
|
170
172
|
border-color var(--tree-view-transition, var(--transition-default)),
|
|
@@ -188,8 +190,8 @@
|
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
& svg {
|
|
191
|
-
width: var(--tree-view-checkbox-icon-size,
|
|
192
|
-
height: var(--tree-view-checkbox-icon-size,
|
|
193
|
+
width: var(--tree-view-checkbox-icon-size, var(--spacing-3));
|
|
194
|
+
height: var(--tree-view-checkbox-icon-size, var(--spacing-3));
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
197
|
|
|
@@ -210,8 +212,9 @@
|
|
|
210
212
|
background-color: var(--tree-view-rename-input-bg, var(--color-background));
|
|
211
213
|
color: var(--tree-view-rename-input-color, var(--color-foreground));
|
|
212
214
|
font: inherit;
|
|
213
|
-
outline: var(--tree-view-focus-ring-width, var(--border-width-sm))
|
|
214
|
-
|
|
215
|
+
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
216
|
+
solid transparent;
|
|
217
|
+
outline-offset: calc(var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm))) * -1);
|
|
215
218
|
flex: 1;
|
|
216
219
|
|
|
217
220
|
&:focus-visible {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import { TreeView, createFileTreeCollection, createTreeCollection } from "@ark-ui/react/tree-view";
|
|
2
|
+
import { TreeView, TreeViewLoadChildrenDetails, TreeViewNodeProviderProps, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext } from "@ark-ui/react/tree-view";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tree-view/TreeView.d.ts
|
|
5
5
|
declare function TreeViewNodeCheckboxIndicator({
|
|
@@ -29,4 +29,4 @@ declare const TreeView$1: TreeView.RootComponent & {
|
|
|
29
29
|
NodeRenameInput: import("react").ForwardRefExoticComponent<Omit<TreeView.NodeRenameInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
|
-
export { TreeView$1 as TreeView, createFileTreeCollection, createTreeCollection };
|
|
32
|
+
export { TreeView$1 as TreeView, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CheckIcon, ChevronRightIcon, IndeterminateIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { CheckIcon, ChevronRightIcon, IndeterminateIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import TreeView_module_default from "./TreeView.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext } from "@ark-ui/react/tree-view";
|
|
8
8
|
//#region src/components/tree-view/TreeView.tsx
|
|
9
9
|
const TreeViewRoot = forwardRef(function TreeViewRoot({ className, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(TreeView.Root, {
|
|
@@ -168,4 +168,4 @@ const TreeView$1 = Object.assign(TreeViewRoot, {
|
|
|
168
168
|
NodeRenameInput: TreeViewNodeRenameInput
|
|
169
169
|
});
|
|
170
170
|
//#endregion
|
|
171
|
-
export { TreeView$1 as TreeView, createFileTreeCollection, createTreeCollection };
|
|
171
|
+
export { TreeView$1 as TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TreeView, createFileTreeCollection, createTreeCollection } from "./TreeView.js";
|
|
2
|
-
export { TreeView, createFileTreeCollection, createTreeCollection };
|
|
1
|
+
import { TreeView, TreeViewLoadChildrenDetails, TreeViewNodeProviderProps, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext } from "./TreeView.js";
|
|
2
|
+
export { TreeView, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext };
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._3-ErqG_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
color: var(--color-foreground);
|
|
5
|
+
font-family: var(--typeset-font-body, inherit);
|
|
6
|
+
font-size: calc(var(--typeset-size, 1em) * 1.125);
|
|
7
|
+
line-height: var(--typeset-leading, 1.75);
|
|
8
|
+
overflow-wrap: break-word;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (width >= 48rem), print {
|
|
12
|
+
._3-ErqG_root {
|
|
13
|
+
font-size: var(--typeset-size, 1em);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
._3-ErqG_root {
|
|
18
|
+
& :not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
|
|
19
|
+
&:where(p) {
|
|
20
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:where(h1, h2, h3, h4, h5, h6) {
|
|
24
|
+
color: var(--color-foreground);
|
|
25
|
+
font-family: var(--typeset-font-heading, var(--font-sans));
|
|
26
|
+
font-weight: var(--weight-semibold);
|
|
27
|
+
letter-spacing: -.02em;
|
|
28
|
+
margin-block-end: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where(h1) {
|
|
32
|
+
margin-block-start: var(--typeset-flow, 1.25em);
|
|
33
|
+
font-size: 1.75em;
|
|
34
|
+
line-height: 1.3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:where(h2) {
|
|
38
|
+
margin-block-start: calc(var(--typeset-flow, 1.25em) * 1.4);
|
|
39
|
+
font-size: 1.25em;
|
|
40
|
+
line-height: 1.4;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:where(h3) {
|
|
44
|
+
margin-block-start: var(--typeset-flow, 1.25em);
|
|
45
|
+
font-size: 1.125em;
|
|
46
|
+
line-height: 1.45;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:where(h4) {
|
|
50
|
+
margin-block-start: var(--typeset-flow, 1.25em);
|
|
51
|
+
font-size: 1em;
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:where(h5) {
|
|
56
|
+
color: var(--color-muted-foreground);
|
|
57
|
+
font-size: .875em;
|
|
58
|
+
font-weight: var(--weight-medium);
|
|
59
|
+
margin-block-start: calc(var(--typeset-flow, 1.25em) / .875);
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:where(h6) {
|
|
64
|
+
color: var(--color-muted-foreground);
|
|
65
|
+
font-size: .8125em;
|
|
66
|
+
font-weight: var(--weight-medium);
|
|
67
|
+
letter-spacing: .08em;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
margin-block-start: calc(var(--typeset-flow, 1.25em) / .8125);
|
|
70
|
+
line-height: 1.5;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:where([id]) {
|
|
74
|
+
scroll-margin-block-start: var(--typeset-flow, 1.25em);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
|
|
78
|
+
margin-block-start: 1em;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:where(a) {
|
|
82
|
+
color: var(--color-primary);
|
|
83
|
+
text-underline-offset: .15em;
|
|
84
|
+
text-decoration: underline .08em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:where(ul, ol) {
|
|
88
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
89
|
+
padding-inline-start: 1.5em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:where(ul) {
|
|
93
|
+
list-style: outside;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:where(ol) {
|
|
97
|
+
list-style: decimal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:where(ul ul) {
|
|
101
|
+
list-style: circle;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:where(ul ul ul) {
|
|
105
|
+
list-style: square;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:where(ol ol) {
|
|
109
|
+
list-style: lower-alpha;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:where(ol ol ol) {
|
|
113
|
+
list-style: lower-roman;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:where(li)::marker {
|
|
117
|
+
color: var(--color-muted-foreground);
|
|
118
|
+
font-weight: var(--weight-semibold);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:where(li + li) {
|
|
122
|
+
margin-block-start: .25em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:where(li > ul, li > ol) {
|
|
126
|
+
margin-block-start: .5em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:where(ul.contains-task-list) {
|
|
130
|
+
padding-inline-start: .25em;
|
|
131
|
+
list-style: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:where(li.task-list-item > input[type="checkbox"]) {
|
|
135
|
+
vertical-align: -.1em;
|
|
136
|
+
accent-color: var(--color-primary);
|
|
137
|
+
margin-inline-end: .5em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:where(blockquote) {
|
|
141
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
142
|
+
border-inline-start: var(--border-width-md) solid var(--color-border);
|
|
143
|
+
color: var(--color-muted-foreground);
|
|
144
|
+
margin-inline: 0;
|
|
145
|
+
padding-inline-start: 1em;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:where(:not(pre) > code) {
|
|
149
|
+
border-radius: var(--radius-sm);
|
|
150
|
+
background: var(--color-muted);
|
|
151
|
+
color: var(--color-foreground);
|
|
152
|
+
font-family: var(--typeset-font-mono, var(--font-mono));
|
|
153
|
+
padding: .1em .3em;
|
|
154
|
+
font-size: .875em;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:where(pre) {
|
|
158
|
+
max-width: 100%;
|
|
159
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
160
|
+
border: var(--border-width-sm) solid var(--color-border);
|
|
161
|
+
border-radius: var(--radius-md);
|
|
162
|
+
background: var(--color-muted);
|
|
163
|
+
color: var(--color-foreground);
|
|
164
|
+
font-family: var(--typeset-font-mono, var(--font-mono));
|
|
165
|
+
padding: 1em;
|
|
166
|
+
font-size: .875em;
|
|
167
|
+
line-height: 1.6;
|
|
168
|
+
overflow-x: auto;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:where(pre > code) {
|
|
172
|
+
color: inherit;
|
|
173
|
+
font: inherit;
|
|
174
|
+
background: none;
|
|
175
|
+
border-radius: 0;
|
|
176
|
+
padding: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:where(hr) {
|
|
180
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
181
|
+
border: 0;
|
|
182
|
+
border-block-start: var(--border-width-sm) solid var(--color-border);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&:where(table) {
|
|
186
|
+
width: 100%;
|
|
187
|
+
max-width: 100%;
|
|
188
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
189
|
+
border-collapse: separate;
|
|
190
|
+
border-spacing: 0;
|
|
191
|
+
border-block-end: var(--border-width-sm) solid var(--color-border);
|
|
192
|
+
font-variant-numeric: tabular-nums;
|
|
193
|
+
font-size: 1em;
|
|
194
|
+
line-height: 1.5;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&:where(thead th) {
|
|
198
|
+
font-weight: var(--weight-medium);
|
|
199
|
+
text-align: start;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
padding: .65em 1em;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
205
|
+
border-block-start: var(--border-width-sm) solid var(--color-border);
|
|
206
|
+
text-align: start;
|
|
207
|
+
vertical-align: top;
|
|
208
|
+
padding: .75em 1em;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:where(tbody th, tfoot th) {
|
|
212
|
+
font-weight: var(--weight-medium);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:where(th:first-child, td:first-child) {
|
|
216
|
+
padding-inline-start: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:where(th[align="center"], td[align="center"]) {
|
|
220
|
+
text-align: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&:where(th[align="right"], td[align="right"]) {
|
|
224
|
+
text-align: end;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:where(img, video) {
|
|
228
|
+
max-width: 100%;
|
|
229
|
+
height: auto;
|
|
230
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
231
|
+
border-radius: var(--radius-md);
|
|
232
|
+
display: block;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&:where(p img) {
|
|
236
|
+
margin-block-start: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:where(figure) {
|
|
240
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
241
|
+
margin-inline: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&:where(figcaption, caption) {
|
|
245
|
+
color: var(--color-muted-foreground);
|
|
246
|
+
text-align: center;
|
|
247
|
+
margin-block-start: .75em;
|
|
248
|
+
font-size: .875em;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:where(caption) {
|
|
252
|
+
caption-side: bottom;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&:where(details) {
|
|
256
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&:where(summary) {
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
font-weight: var(--weight-medium);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&:where(summary)::marker {
|
|
265
|
+
color: var(--color-muted-foreground);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:where(dl) {
|
|
269
|
+
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&:where(dt) {
|
|
273
|
+
font-weight: var(--weight-medium);
|
|
274
|
+
margin-block-start: 1em;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&:where(dt + dt) {
|
|
278
|
+
margin-block-start: .25em;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:where(dd) {
|
|
282
|
+
color: var(--color-muted-foreground);
|
|
283
|
+
margin-block-start: .25em;
|
|
284
|
+
margin-inline-start: 0;
|
|
285
|
+
padding-inline-start: 1em;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&:where(.footnotes, [data-footnotes]) {
|
|
289
|
+
margin-block: calc(var(--typeset-flow, 1.25em) * 2) 0;
|
|
290
|
+
border-block-start: var(--border-width-sm) solid var(--color-border);
|
|
291
|
+
color: var(--color-muted-foreground);
|
|
292
|
+
padding-block-start: var(--typeset-flow, 1.25em);
|
|
293
|
+
font-size: .875em;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
._3-ErqG_root > :where(:first-child):not(:where(.not-typeset, [data-not-typeset])), ._3-ErqG_root :where(li > :first-child, blockquote > :first-child, td > :first-child, th > :first-child, dd > :first-child, figure > :first-child, figure > picture > img):not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
|
|
299
|
+
margin-block-start: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
._3-ErqG_scroll {
|
|
303
|
+
max-width: 100%;
|
|
304
|
+
overscroll-behavior-inline: contain;
|
|
305
|
+
margin-block-start: var(--typeset-flow, 1.25em);
|
|
306
|
+
overflow-x: auto;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
._3-ErqG_root > ._3-ErqG_scroll:first-child, ._3-ErqG_root ._3-ErqG_scroll > * {
|
|
310
|
+
margin-block-start: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
._3-ErqG_root ._3-ErqG_scroll table {
|
|
314
|
+
width: max-content;
|
|
315
|
+
max-width: none;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/components/typeset/Typeset.d.ts
|
|
2
|
+
declare const Typeset: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
Scroll: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Typeset };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Typeset_module_default from "./Typeset.module.js";
|
|
3
|
+
import { ark } from "@ark-ui/react/factory";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/typeset/Typeset.tsx
|
|
8
|
+
const TypesetRoot = forwardRef(function TypesetRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-scope": "typeset",
|
|
12
|
+
"data-part": "root",
|
|
13
|
+
"data-slot": "typeset",
|
|
14
|
+
className: clsx(Typeset_module_default.root, normalizeClassName(className)),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
const TypesetScroll = forwardRef(function TypesetScroll({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
20
|
+
ref,
|
|
21
|
+
"data-scope": "typeset",
|
|
22
|
+
"data-part": "scroll",
|
|
23
|
+
"data-slot": "typeset-scroll",
|
|
24
|
+
className: clsx(Typeset_module_default.scroll, normalizeClassName(className)),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const Typeset = Object.assign(TypesetRoot, {
|
|
29
|
+
Root: TypesetRoot,
|
|
30
|
+
Scroll: TypesetScroll
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Typeset };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpDownIcon, ChevronUpIcon, CloseIcon, CopyIcon, EyeClosedIcon, EyeIcon, FileIcon, FlipHorizontalIcon, FolderIcon, FolderOpenIcon, GripIcon, IndeterminateIcon, MaximizeIcon, MinusIcon, PauseIcon, PencilIcon, PipetteIcon, PlayIcon, PlusIcon, PopupArrowIcon, RatingStarIcon, RestartIcon, RotateCcwIcon, RotateCwIcon, ScrubCursorIcon, SeparatorMarkIcon, TrashIcon, UploadIcon, ZoomInIcon, ZoomOutIcon } from "./lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { AspectRatio } from "./components/aspect-ratio/AspectRatio.js";
|
|
3
|
-
import { Accordion } from "./components/accordion/Accordion.js";
|
|
4
|
-
import { AngleSlider } from "./components/angle-slider/AngleSlider.js";
|
|
2
|
+
import { Accordion, useAccordion } from "./components/accordion/Accordion.js";
|
|
3
|
+
import { AngleSlider, useAngleSlider } from "./components/angle-slider/AngleSlider.js";
|
|
5
4
|
import { Alert } from "./components/alert/Alert.js";
|
|
6
|
-
import { Avatar } from "./components/avatar/Avatar.js";
|
|
5
|
+
import { Avatar, useAvatar, useAvatarContext } from "./components/avatar/Avatar.js";
|
|
7
6
|
import { Badge } from "./components/badge/Badge.js";
|
|
8
7
|
import { Bleed } from "./components/bleed/Bleed.js";
|
|
9
8
|
import { Breadcrumbs } from "./components/breadcrumbs/Breadcrumbs.js";
|
|
10
9
|
import { Button } from "./components/button/Button.js";
|
|
11
10
|
import { Card } from "./components/card/Card.js";
|
|
12
|
-
import { Checkbox } from "./components/checkbox/Checkbox.js";
|
|
11
|
+
import { Checkbox, useCheckbox, useCheckboxGroup } from "./components/checkbox/Checkbox.js";
|
|
13
12
|
import { Clipboard } from "./components/clipboard/Clipboard.js";
|
|
14
13
|
import { CloseButton } from "./components/close-button/CloseButton.js";
|
|
15
|
-
import { Collapsible } from "./components/collapsible/Collapsible.js";
|
|
16
|
-
import { ColorPicker, parseColor } from "./components/color-picker/ColorPicker.js";
|
|
17
|
-
import { Combobox } from "./components/combobox/Combobox.js";
|
|
14
|
+
import { Collapsible, useCollapsible } from "./components/collapsible/Collapsible.js";
|
|
15
|
+
import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "./components/color-picker/ColorPicker.js";
|
|
16
|
+
import { Combobox, useCombobox, useComboboxContext } from "./components/combobox/Combobox.js";
|
|
18
17
|
import { Kbd } from "./components/kbd/Kbd.js";
|
|
19
18
|
import { CommandPalette } from "./components/command-palette/CommandPalette.js";
|
|
20
19
|
import { Container } from "./components/container/Container.js";
|
|
21
|
-
import { DateInput } from "./components/date-input/DateInput.js";
|
|
22
|
-
import { DatePicker, DatePickerRootProps, DatePickerRootProviderProps } from "./components/date-picker/DatePicker.js";
|
|
23
|
-
import { Dialog, DialogRootProps, DialogRootProviderProps } from "./components/dialog/Dialog.js";
|
|
24
|
-
import { Drawer } from "./components/drawer/Drawer.js";
|
|
25
|
-
import { Editable } from "./components/editable/Editable.js";
|
|
20
|
+
import { DateInput, DateInputDateValue, useDateInput, useDateInputContext } from "./components/date-input/DateInput.js";
|
|
21
|
+
import { DatePicker, DatePickerDayTableProps, DatePickerFieldProps, DatePickerRangeFieldProps, DatePickerRootProps, DatePickerRootProviderProps, useDatePicker, useDatePickerContext } from "./components/date-picker/DatePicker.js";
|
|
22
|
+
import { Dialog, DialogRootProps, DialogRootProviderProps, useDialog, useDialogContext } from "./components/dialog/Dialog.js";
|
|
23
|
+
import { Drawer, useDrawer } from "./components/drawer/Drawer.js";
|
|
24
|
+
import { Editable, useEditable, useEditableContext } from "./components/editable/Editable.js";
|
|
26
25
|
import { Empty } from "./components/empty/Empty.js";
|
|
27
|
-
import { Field } from "./components/field/Field.js";
|
|
28
|
-
import { FileUpload } from "./components/file-upload/FileUpload.js";
|
|
29
|
-
import { Fieldset } from "./components/fieldset/Fieldset.js";
|
|
26
|
+
import { Field, useField, useFieldContext } from "./components/field/Field.js";
|
|
27
|
+
import { FileUpload, useFileUpload, useFileUploadContext } from "./components/file-upload/FileUpload.js";
|
|
28
|
+
import { Fieldset, useFieldset } from "./components/fieldset/Fieldset.js";
|
|
30
29
|
import { FloatingPanel, resizeTriggerAxes } from "./components/floating-panel/FloatingPanel.js";
|
|
31
30
|
import { Heading } from "./components/heading/Heading.js";
|
|
32
31
|
import { Highlight } from "./components/highlight/Highlight.js";
|
|
33
|
-
import {
|
|
32
|
+
import { Image } from "./components/image/Image.js";
|
|
33
|
+
import { ImageCropper, useImageCropper } from "./components/image-cropper/ImageCropper.js";
|
|
34
34
|
import { Input } from "./components/input/Input.js";
|
|
35
35
|
import { InputGroup } from "./components/input-group/InputGroup.js";
|
|
36
|
-
import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails } from "./components/lightbox/Lightbox.js";
|
|
36
|
+
import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails, useLightbox as useDialog$1, useLightboxContext as useDialogContext$1 } from "./components/lightbox/Lightbox.js";
|
|
37
37
|
import { List } from "./components/list/List.js";
|
|
38
|
-
import { Listbox } from "./components/listbox/Listbox.js";
|
|
39
|
-
import { Marquee } from "./components/marquee/Marquee.js";
|
|
40
|
-
import { Menu } from "./components/menu/Menu.js";
|
|
38
|
+
import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "./components/listbox/Listbox.js";
|
|
39
|
+
import { Marquee, useMarquee } from "./components/marquee/Marquee.js";
|
|
40
|
+
import { Menu, useMenu } from "./components/menu/Menu.js";
|
|
41
41
|
import { NativeSelect } from "./components/native-select/NativeSelect.js";
|
|
42
|
-
import { NumberInput } from "./components/number-input/NumberInput.js";
|
|
42
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "./components/number-input/NumberInput.js";
|
|
43
43
|
import { PinInput, usePinInput } from "./components/pin-input/PinInput.js";
|
|
44
44
|
import { Pagination } from "./components/pagination/Pagination.js";
|
|
45
45
|
import { PasswordInput, usePasswordInput } from "./components/password-input/PasswordInput.js";
|
|
46
46
|
import { Popover, usePopover } from "./components/popover/Popover.js";
|
|
47
|
-
import { HoverCard } from "./components/hover-card/HoverCard.js";
|
|
47
|
+
import { HoverCard, useHoverCard, useHoverCardContext } from "./components/hover-card/HoverCard.js";
|
|
48
48
|
import { ProgressCircular } from "./components/progress-circular/ProgressCircular.js";
|
|
49
49
|
import { ProgressLinear } from "./components/progress-linear/ProgressLinear.js";
|
|
50
|
-
import { QrCode } from "./components/qr-code/QrCode.js";
|
|
51
|
-
import { RadioGroup, RadioGroupItemControlProps, RadioGroupItemControlSize } from "./components/radio-group/RadioGroup.js";
|
|
52
|
-
import { RatingGroup, RatingGroupItemIndicatorProps, RatingGroupRootProps, RatingGroupRootProviderProps, RatingGroupSize } from "./components/rating-group/RatingGroup.js";
|
|
50
|
+
import { QrCode, useQrCode } from "./components/qr-code/QrCode.js";
|
|
51
|
+
import { RadioGroup, RadioGroupItemControlProps, RadioGroupItemControlSize, RadioGroupOptionProps, useRadioGroup } from "./components/radio-group/RadioGroup.js";
|
|
52
|
+
import { RatingGroup, RatingGroupItemIndicatorProps, RatingGroupRootProps, RatingGroupRootProviderProps, RatingGroupSize, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext } from "./components/rating-group/RatingGroup.js";
|
|
53
53
|
import { ModuixScrollAreaRootProps, ModuixScrollAreaRootProviderProps, ScrollArea } from "./components/scroll-area/ScrollArea.js";
|
|
54
54
|
import { Separator } from "./components/separator/Separator.js";
|
|
55
|
-
import { SegmentGroup } from "./components/segment-group/SegmentGroup.js";
|
|
55
|
+
import { SegmentGroup, useSegmentGroup } from "./components/segment-group/SegmentGroup.js";
|
|
56
56
|
import { Select } from "./components/select/Select.js";
|
|
57
|
-
import { SignaturePad, useSignaturePad } from "./components/signature-pad/SignaturePad.js";
|
|
57
|
+
import { SignaturePad, useSignaturePad, useSignaturePadContext } from "./components/signature-pad/SignaturePad.js";
|
|
58
58
|
import { SimpleGrid } from "./components/simple-grid/SimpleGrid.js";
|
|
59
|
-
import { Slider } from "./components/slider/Slider.js";
|
|
60
|
-
import { Splitter } from "./components/splitter/Splitter.js";
|
|
59
|
+
import { Slider, useSlider, useSliderContext } from "./components/slider/Slider.js";
|
|
60
|
+
import { Splitter, SplitterPanelData, createSplitterRegistry, useSplitter, useSplitterContext } from "./components/splitter/Splitter.js";
|
|
61
|
+
import { Tooltip, useTooltip, useTooltipContext } from "./components/tooltip/Tooltip.js";
|
|
61
62
|
import { Sidebar, useSidebar } from "./components/sidebar/Sidebar.js";
|
|
62
63
|
import { Carousel } from "./components/carousel/Carousel.js";
|
|
63
64
|
import { Skeleton } from "./components/skeleton/Skeleton.js";
|
|
@@ -65,19 +66,21 @@ import { Spinner } from "./components/spinner/Spinner.js";
|
|
|
65
66
|
import { SplitButton } from "./components/split-button/SplitButton.js";
|
|
66
67
|
import { Stack } from "./components/stack/Stack.js";
|
|
67
68
|
import { Steps } from "./components/steps/Steps.js";
|
|
68
|
-
import {
|
|
69
|
+
import { Swap, useSwapContext } from "./components/swap/Swap.js";
|
|
70
|
+
import { Switch, SwitchRootProps, SwitchRootProviderProps, SwitchSize, useSwitch, useSwitchContext } from "./components/switch/Switch.js";
|
|
69
71
|
import { Tag } from "./components/tag/Tag.js";
|
|
70
|
-
import { TagsInput } from "./components/tags-input/TagsInput.js";
|
|
72
|
+
import { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext } from "./components/tags-input/TagsInput.js";
|
|
71
73
|
import { Table } from "./components/table/Table.js";
|
|
72
|
-
import { Tabs } from "./components/tabs/Tabs.js";
|
|
74
|
+
import { Tabs, useTabs } from "./components/tabs/Tabs.js";
|
|
73
75
|
import { Text } from "./components/text/Text.js";
|
|
74
76
|
import { Textarea } from "./components/textarea/Textarea.js";
|
|
75
|
-
import { Timer } from "./components/timer/Timer.js";
|
|
77
|
+
import { Timer, useTimer, useTimerContext } from "./components/timer/Timer.js";
|
|
78
|
+
import { Typeset } from "./components/typeset/Typeset.js";
|
|
76
79
|
import { Toast, Toaster, createToaster } from "./components/toast/Toast.js";
|
|
77
|
-
import { Tooltip } from "./components/tooltip/Tooltip.js";
|
|
78
80
|
import { Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "./components/tour/Tour.js";
|
|
79
|
-
import { TreeView, createFileTreeCollection, createTreeCollection } from "./components/tree-view/TreeView.js";
|
|
80
|
-
import { Toggle } from "./components/toggle/Toggle.js";
|
|
81
|
-
import { ToggleGroup } from "./components/toggle-group/ToggleGroup.js";
|
|
81
|
+
import { TreeView, TreeViewLoadChildrenDetails, TreeViewNodeProviderProps, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext } from "./components/tree-view/TreeView.js";
|
|
82
|
+
import { Toggle, useToggleContext } from "./components/toggle/Toggle.js";
|
|
83
|
+
import { ToggleGroup, useToggleGroup, useToggleGroupContext } from "./components/toggle-group/ToggleGroup.js";
|
|
82
84
|
import { Portal } from "@ark-ui/react/portal";
|
|
83
|
-
|
|
85
|
+
import { LocaleProvider, useLocaleContext } from "@ark-ui/react/locale";
|
|
86
|
+
export { Accordion, Alert, AngleSlider, AspectRatio, Avatar, Badge, Bleed, Breadcrumbs, Button, Card, Carousel, Checkbox, Clipboard, CloseButton, Collapsible, ColorPicker, Combobox, CommandPalette, Container, DateInput, type DateInputDateValue, DatePicker, type DatePickerDayTableProps, type DatePickerFieldProps, type DatePickerRangeFieldProps, type DatePickerRootProps, type DatePickerRootProviderProps, Dialog, type DialogRootProps, type DialogRootProviderProps, Drawer, Editable, Empty, Field, Fieldset, FileUpload, FloatingPanel, Heading, Highlight, HoverCard, Image, ImageCropper, Input, InputGroup, Kbd, Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails, List, Listbox, LocaleProvider, Marquee, Menu, type ModuixScrollAreaRootProps, type ModuixScrollAreaRootProviderProps, NativeSelect, NumberInput, Pagination, PasswordInput, PinInput, Popover, Portal, ProgressCircular, ProgressLinear, QrCode, RadioGroup, type RadioGroupItemControlProps, type RadioGroupItemControlSize, type RadioGroupOptionProps, RatingGroup, type RatingGroupItemIndicatorProps, type RatingGroupRootProps, type RatingGroupRootProviderProps, type RatingGroupSize, ScrollArea, SegmentGroup, Select, Separator, Sidebar, SignaturePad, SimpleGrid, Skeleton, Slider, Spinner, SplitButton, Splitter, type SplitterPanelData, Stack, Steps, Swap, Switch, type SwitchRootProps, type SwitchRootProviderProps, type SwitchSize, Table, Tabs, Tag, TagsInput, Text, Textarea, Timer, Toast, Toaster, Toggle, ToggleGroup, Tooltip, Tour, TreeView, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, Typeset, createFileTreeCollection, createSplitterRegistry, createToaster, createTreeCollection, parseColor, resizeTriggerAxes, useAccordion, useAngleSlider, useAvatar, useAvatarContext, useCheckbox, useCheckboxGroup, useCollapsible, useColorPicker, useColorPickerContext, useCombobox, useComboboxContext, useDateInput, useDateInputContext, useDatePicker, useDatePickerContext, useDialog, useDialogContext, useDrawer, useEditable, useEditableContext, useField, useFieldContext, useFieldset, useFileUpload, useFileUploadContext, useHoverCard, useHoverCardContext, useImageCropper, useDialog$1 as useLightbox, useDialogContext$1 as useLightboxContext, useListbox, useListboxContext, useListboxItemContext, useLocaleContext, useMarquee, useMenu, useNumberInput, useNumberInputContext, usePasswordInput, usePinInput, usePopover, useQrCode, useRadioGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext, useSegmentGroup, useSidebar, useSignaturePad, useSignaturePadContext, useSlider, useSliderContext, useSplitter, useSplitterContext, useSwapContext, useSwitch, useSwitchContext, useTabs, useTagsInput, useTagsInputContext, useTagsInputItemContext, useTimer, useTimerContext, useToggleContext, useToggleGroup, useToggleGroupContext, useTooltip, useTooltipContext, useTour, useTreeView, useTreeViewNodeContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|