@moduix/react 2.5.1 → 2.7.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 +24 -3
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +20 -21
- package/dist/components/alert/Alert.js +18 -19
- 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 +29 -71
- 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 +14 -57
- 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 -8
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +30 -31
- package/dist/components/card/Card_module.css +2 -18
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +34 -35
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +21 -22
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +20 -43
- package/dist/components/clipboard/Clipboard.js +27 -27
- 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 +17 -20
- 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 +79 -92
- 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 +51 -60
- 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 +99 -126
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +24 -54
- 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 +84 -93
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +5 -2
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +31 -32
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +63 -54
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +27 -28
- package/dist/components/empty/Empty.js +18 -19
- package/dist/components/field/Field.js +29 -30
- package/dist/components/fieldset/Fieldset.js +15 -16
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +52 -79
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
- package/dist/components/floating-panel/FloatingPanel.js +36 -37
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +24 -15
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/hover-card/index.d.ts +1 -0
- 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 +21 -22
- 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 +6 -7
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +38 -39
- package/dist/components/lightbox/Lightbox_module.css +0 -2
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +50 -56
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +18 -19
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +72 -79
- 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 +39 -58
- 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 +25 -26
- package/dist/components/pagination/Pagination.js +28 -31
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +20 -21
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +20 -61
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +41 -42
- package/dist/components/progress-circular/ProgressCircular.js +24 -25
- 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 +21 -22
- 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 +18 -19
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +25 -39
- 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 +19 -36
- 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 +28 -42
- 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 +69 -119
- 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 +16 -16
- package/dist/components/sidebar/Sidebar.js +81 -86
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +62 -158
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +28 -57
- 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 +38 -52
- 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 +7 -7
- package/dist/components/split-button/SplitButton.js +25 -17
- package/dist/components/splitter/Splitter.js +14 -15
- 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 +35 -36
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +9 -10
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +17 -40
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +35 -36
- package/dist/components/tabs/Tabs.js +18 -19
- 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 +37 -91
- 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 +21 -22
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +15 -16
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +29 -30
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +6 -7
- 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 +17 -18
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +39 -40
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +47 -48
- 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 +23 -23
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -4,146 +4,145 @@ import { TreeView, createFileTreeCollection, createTreeCollection, useTreeView,
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, ChevronRightIcon, IndeterminateIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import TreeView_module from "./TreeView.module.js";
|
|
9
8
|
const TreeView_TreeViewRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(TreeView.Root, {
|
|
11
10
|
ref: ref,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
className: clsx(TreeView_module.root, className),
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "tree-view-root"
|
|
15
14
|
});
|
|
16
15
|
});
|
|
17
16
|
const TreeView_TreeViewRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
17
|
return /*#__PURE__*/ jsx(TreeView.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
className: clsx(TreeView_module.root, className),
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "tree-view-root-provider"
|
|
23
22
|
});
|
|
24
23
|
});
|
|
25
24
|
const TreeView_TreeViewLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
25
|
return /*#__PURE__*/ jsx(TreeView.Label, {
|
|
27
26
|
ref: ref,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
className: clsx(TreeView_module.label, className),
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "tree-view-label"
|
|
31
30
|
});
|
|
32
31
|
});
|
|
33
32
|
const TreeView_TreeViewTree = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
33
|
return /*#__PURE__*/ jsx(TreeView.Tree, {
|
|
35
34
|
ref: ref,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
className: clsx(TreeView_module.tree, className),
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "tree-view-tree"
|
|
39
38
|
});
|
|
40
39
|
});
|
|
41
40
|
const TreeView_TreeViewBranch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
41
|
return /*#__PURE__*/ jsx(TreeView.Branch, {
|
|
43
42
|
ref: ref,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
className: clsx(TreeView_module.branch, className),
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "tree-view-branch"
|
|
47
46
|
});
|
|
48
47
|
});
|
|
49
48
|
const TreeView_TreeViewBranchControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
49
|
return /*#__PURE__*/ jsx(TreeView.BranchControl, {
|
|
51
50
|
ref: ref,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
className: clsx(TreeView_module.branchControl, className),
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "tree-view-branch-control"
|
|
55
54
|
});
|
|
56
55
|
});
|
|
57
56
|
const TreeView_TreeViewBranchTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
58
57
|
return /*#__PURE__*/ jsx(TreeView.BranchTrigger, {
|
|
59
58
|
ref: ref,
|
|
60
|
-
|
|
61
|
-
className: clsx(TreeView_module.branchTrigger, normalizeClassName(className)),
|
|
59
|
+
className: clsx(TreeView_module.branchTrigger, className),
|
|
62
60
|
...props,
|
|
61
|
+
"data-slot": "tree-view-branch-trigger",
|
|
63
62
|
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
64
63
|
});
|
|
65
64
|
});
|
|
66
65
|
const TreeView_TreeViewBranchIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
67
66
|
return /*#__PURE__*/ jsx(TreeView.BranchIndicator, {
|
|
68
67
|
ref: ref,
|
|
69
|
-
|
|
70
|
-
className: clsx(TreeView_module.branchIndicator, normalizeClassName(className)),
|
|
68
|
+
className: clsx(TreeView_module.branchIndicator, className),
|
|
71
69
|
...props,
|
|
70
|
+
"data-slot": "tree-view-branch-indicator",
|
|
72
71
|
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
73
72
|
});
|
|
74
73
|
});
|
|
75
74
|
const TreeView_TreeViewBranchText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
76
75
|
return /*#__PURE__*/ jsx(TreeView.BranchText, {
|
|
77
76
|
ref: ref,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
className: clsx(TreeView_module.branchText, className),
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "tree-view-branch-text"
|
|
81
80
|
});
|
|
82
81
|
});
|
|
83
82
|
const TreeView_TreeViewBranchContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
84
83
|
return /*#__PURE__*/ jsx(TreeView.BranchContent, {
|
|
85
84
|
ref: ref,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
className: clsx(TreeView_module.branchContent, className),
|
|
86
|
+
...props,
|
|
87
|
+
"data-slot": "tree-view-branch-content"
|
|
89
88
|
});
|
|
90
89
|
});
|
|
91
90
|
const TreeView_TreeViewBranchIndentGuide = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
92
91
|
return /*#__PURE__*/ jsx(TreeView.BranchIndentGuide, {
|
|
93
92
|
ref: ref,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
className: clsx(TreeView_module.branchIndentGuide, className),
|
|
94
|
+
...props,
|
|
95
|
+
"data-slot": "tree-view-branch-indent-guide"
|
|
97
96
|
});
|
|
98
97
|
});
|
|
99
98
|
const TreeView_TreeViewItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
100
99
|
return /*#__PURE__*/ jsx(TreeView.Item, {
|
|
101
100
|
ref: ref,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
className: clsx(TreeView_module.item, className),
|
|
102
|
+
...props,
|
|
103
|
+
"data-slot": "tree-view-item"
|
|
105
104
|
});
|
|
106
105
|
});
|
|
107
106
|
const TreeView_TreeViewItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
108
107
|
return /*#__PURE__*/ jsx(TreeView.ItemText, {
|
|
109
108
|
ref: ref,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
className: clsx(TreeView_module.itemText, className),
|
|
110
|
+
...props,
|
|
111
|
+
"data-slot": "tree-view-item-text"
|
|
113
112
|
});
|
|
114
113
|
});
|
|
115
114
|
const TreeView_TreeViewItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
116
115
|
return /*#__PURE__*/ jsx(TreeView.ItemIndicator, {
|
|
117
116
|
ref: ref,
|
|
118
|
-
|
|
119
|
-
className: clsx(TreeView_module.itemIndicator, normalizeClassName(className)),
|
|
117
|
+
className: clsx(TreeView_module.itemIndicator, className),
|
|
120
118
|
...props,
|
|
119
|
+
"data-slot": "tree-view-item-indicator",
|
|
121
120
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
122
121
|
});
|
|
123
122
|
});
|
|
124
123
|
const TreeView_TreeViewNodeCheckbox = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
125
124
|
return /*#__PURE__*/ jsx(TreeView.NodeCheckbox, {
|
|
126
125
|
ref: ref,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
className: clsx(TreeView_module.nodeCheckbox, className),
|
|
127
|
+
...props,
|
|
128
|
+
"data-slot": "tree-view-node-checkbox"
|
|
130
129
|
});
|
|
131
130
|
});
|
|
132
131
|
function TreeViewNodeCheckboxIndicator({ className, children, indeterminate, ...props }) {
|
|
133
132
|
return /*#__PURE__*/ jsx(TreeView.NodeCheckboxIndicator, {
|
|
134
|
-
|
|
135
|
-
className: clsx(TreeView_module.nodeCheckboxIndicator, normalizeClassName(className)),
|
|
133
|
+
className: clsx(TreeView_module.nodeCheckboxIndicator, className),
|
|
136
134
|
indeterminate: indeterminate ?? /*#__PURE__*/ jsx(IndeterminateIcon, {}),
|
|
137
135
|
...props,
|
|
136
|
+
"data-slot": "tree-view-node-checkbox-indicator",
|
|
138
137
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
139
138
|
});
|
|
140
139
|
}
|
|
141
140
|
const TreeView_TreeViewNodeRenameInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
142
141
|
return /*#__PURE__*/ jsx(TreeView.NodeRenameInput, {
|
|
143
142
|
ref: ref,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
className: clsx(TreeView_module.nodeRenameInput, className),
|
|
144
|
+
...props,
|
|
145
|
+
"data-slot": "tree-view-node-rename-input"
|
|
147
146
|
});
|
|
148
147
|
});
|
|
149
148
|
const TreeViewNodeProvider = TreeView.NodeProvider;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.branchControl-ositpp, .item-D7JZg4 {
|
|
45
|
+
z-index: 0;
|
|
45
46
|
box-sizing: border-box;
|
|
46
47
|
width: 100%;
|
|
47
48
|
min-width: 0;
|
|
@@ -52,48 +53,74 @@
|
|
|
52
53
|
var(--moduix-tree-view-item-border-color, transparent);
|
|
53
54
|
border-radius: var(--moduix-tree-view-item-radius, var(--moduix-radius-sm));
|
|
54
55
|
padding-block: var(--moduix-tree-view-item-padding-y, var(--moduix-spacing-1));
|
|
55
|
-
background-color: var(--moduix-tree-view-item-bg, transparent);
|
|
56
56
|
color: var(--moduix-tree-view-item-color, var(--moduix-tree-view-color, var(--moduix-color-foreground)));
|
|
57
57
|
cursor: pointer;
|
|
58
58
|
font: inherit;
|
|
59
|
-
outline: var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
60
|
-
solid transparent;
|
|
61
|
-
outline-offset: calc(var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))) *
|
|
62
|
-
-1);
|
|
63
59
|
text-align: start;
|
|
64
|
-
transition:
|
|
65
|
-
color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
66
|
-
outline-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
60
|
+
transition: color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
67
61
|
opacity var(--moduix-tree-view-transition, var(--moduix-transition-default));
|
|
68
62
|
-webkit-user-select: none;
|
|
69
63
|
user-select: none;
|
|
64
|
+
outline: none;
|
|
70
65
|
padding-inline-start: calc(var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2)) +
|
|
71
66
|
((var(--depth, 1) - 1) * var(--moduix-tree-view-indent, 1rem)));
|
|
72
67
|
padding-inline-end: var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2));
|
|
73
68
|
text-decoration: none;
|
|
74
69
|
display: flex;
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:is(.branchControl-ositpp, .item-D7JZg4):before {
|
|
74
|
+
z-index: -1;
|
|
75
|
+
border-radius: inherit;
|
|
76
|
+
background-color: var(--moduix-tree-view-item-bg, transparent);
|
|
77
|
+
content: "";
|
|
78
|
+
box-shadow: inset 0 0 0
|
|
79
|
+
var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
80
|
+
transparent;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
transition: background-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
83
|
+
box-shadow var(--moduix-tree-view-transition, var(--moduix-transition-default));
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset-block: 0;
|
|
86
|
+
inset-inline-start: calc(var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2)) +
|
|
87
|
+
((var(--depth, 1) - 1) * var(--moduix-tree-view-indent, 1rem)));
|
|
88
|
+
inset-inline-end: 0;
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
:is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover {
|
|
78
|
-
background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
|
|
79
92
|
color: var(--moduix-tree-view-item-hover-color, var(--moduix-color-accent-foreground));
|
|
80
93
|
}
|
|
81
94
|
|
|
82
|
-
:is(.branchControl-ositpp, .item-D7JZg4):
|
|
83
|
-
|
|
95
|
+
:is(.branchControl-ositpp, .item-D7JZg4):not([data-disabled]):hover:before {
|
|
96
|
+
background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:is(:is(.branchControl-ositpp, .item-D7JZg4):focus-visible, :is(.branchControl-ositpp, .item-D7JZg4)[data-focus]):before {
|
|
100
|
+
box-shadow: inset 0 0 0
|
|
101
|
+
var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
102
|
+
var(--moduix-tree-view-focus-ring-color, var(--moduix-color-ring));
|
|
84
103
|
}
|
|
85
104
|
|
|
86
105
|
:is(.branchControl-ositpp, .item-D7JZg4)[data-selected] {
|
|
87
|
-
background-color: var(--moduix-tree-view-item-selected-bg, var(--moduix-color-accent));
|
|
88
106
|
color: var(--moduix-tree-view-item-selected-color, var(--moduix-color-accent-foreground));
|
|
89
107
|
}
|
|
90
108
|
|
|
109
|
+
:is(.branchControl-ositpp, .item-D7JZg4)[data-selected]:before {
|
|
110
|
+
background-color: var(--moduix-tree-view-item-selected-bg, var(--moduix-color-accent));
|
|
111
|
+
}
|
|
112
|
+
|
|
91
113
|
:is(.branchControl-ositpp, .item-D7JZg4)[data-disabled] {
|
|
92
114
|
color: var(--moduix-tree-view-item-disabled-color, var(--moduix-color-muted-foreground));
|
|
93
115
|
cursor: default;
|
|
94
116
|
opacity: var(--moduix-tree-view-disabled-opacity, var(--moduix-opacity-disabled));
|
|
95
117
|
}
|
|
96
118
|
|
|
119
|
+
.item-D7JZg4 {
|
|
120
|
+
padding-inline-start: calc(var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2)) + var(--moduix-spacing-1) +
|
|
121
|
+
var(--moduix-spacing-1) + ((var(--depth, 1) - 1) * var(--moduix-tree-view-indent, 1rem)));
|
|
122
|
+
}
|
|
123
|
+
|
|
97
124
|
.branchTrigger-_j6AJ6, .branchIndicator-f3bjVW, .itemIndicator-jfNuks {
|
|
98
125
|
width: var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4));
|
|
99
126
|
height: var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4));
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Typeset_module from "./Typeset.module.js";
|
|
7
6
|
const Typeset_TypesetRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
@@ -11,7 +10,7 @@ const Typeset_TypesetRoot = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
11
10
|
"data-scope": "typeset",
|
|
12
11
|
"data-part": "root",
|
|
13
12
|
"data-slot": "typeset",
|
|
14
|
-
className: clsx(Typeset_module.root,
|
|
13
|
+
className: clsx(Typeset_module.root, className)
|
|
15
14
|
});
|
|
16
15
|
});
|
|
17
16
|
const Typeset_TypesetScroll = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className, role, tabIndex = 0, ...props }, ref) {
|
|
@@ -23,7 +22,7 @@ const Typeset_TypesetScroll = /*#__PURE__*/ forwardRef(function({ 'aria-label':
|
|
|
23
22
|
"data-scope": "typeset",
|
|
24
23
|
"data-part": "scroll",
|
|
25
24
|
"data-slot": "typeset-scroll",
|
|
26
|
-
className: clsx(Typeset_module.scroll,
|
|
25
|
+
className: clsx(Typeset_module.scroll, className),
|
|
27
26
|
role: role ?? (ariaLabel || ariaLabelledBy ? 'region' : void 0),
|
|
28
27
|
tabIndex: tabIndex
|
|
29
28
|
});
|