@moduix/react 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -14
- package/dist/components/accordion/Accordion.css +47 -47
- package/dist/components/alert/Alert.css +62 -46
- package/dist/components/angle-slider/AngleSlider.css +65 -64
- package/dist/components/aspect-ratio/AspectRatio.css +2 -2
- package/dist/components/avatar/Avatar.css +26 -26
- package/dist/components/badge/Badge.css +34 -34
- package/dist/components/bleed/Bleed.css +13 -13
- package/dist/components/breadcrumbs/Breadcrumbs.css +28 -28
- package/dist/components/button/Button.css +81 -78
- package/dist/components/card/Card.css +46 -46
- package/dist/components/carousel/Carousel.css +57 -57
- package/dist/components/checkbox/Checkbox.css +40 -40
- package/dist/components/clipboard/Clipboard.css +68 -59
- package/dist/components/close-button/CloseButton.css +17 -17
- package/dist/components/collapsible/Collapsible.css +40 -38
- package/dist/components/color-picker/ColorPicker.css +155 -151
- package/dist/components/combobox/Combobox.css +118 -115
- package/dist/components/command-palette/CommandPalette.css +172 -177
- package/dist/components/command-palette/CommandPalette.module.js +0 -1
- package/dist/components/container/Container.css +12 -12
- package/dist/components/date-input/DateInput.css +41 -40
- package/dist/components/date-picker/DatePicker.css +174 -172
- package/dist/components/dialog/Dialog.css +84 -79
- package/dist/components/drawer/Drawer.css +126 -108
- package/dist/components/editable/Editable.css +63 -61
- package/dist/components/empty/Empty.css +25 -25
- package/dist/components/field/Field.css +45 -45
- package/dist/components/fieldset/Fieldset.css +22 -22
- package/dist/components/file-upload/FileUpload.css +128 -125
- package/dist/components/floating-panel/FloatingPanel.css +114 -110
- package/dist/components/heading/Heading.css +26 -26
- package/dist/components/highlight/Highlight.css +8 -8
- package/dist/components/hover-card/HoverCard.css +49 -47
- package/dist/components/image/Image.css +2 -2
- package/dist/components/image-cropper/ImageCropper.css +63 -60
- package/dist/components/input/Input.css +46 -45
- package/dist/components/input-group/InputGroup.css +71 -70
- package/dist/components/kbd/Kbd.css +16 -16
- package/dist/components/lightbox/Lightbox.css +80 -77
- package/dist/components/list/List.css +32 -32
- package/dist/components/listbox/Listbox.css +120 -117
- package/dist/components/marquee/Marquee.css +16 -16
- package/dist/components/menu/Menu.css +121 -120
- package/dist/components/native-select/NativeSelect.css +42 -41
- package/dist/components/number-input/NumberInput.css +59 -56
- package/dist/components/pagination/Pagination.css +35 -34
- package/dist/components/password-input/PasswordInput.css +60 -59
- package/dist/components/pin-input/PinInput.css +35 -35
- package/dist/components/popover/Popover.css +81 -77
- package/dist/components/progress-circular/ProgressCircular.css +20 -20
- package/dist/components/progress-linear/ProgressLinear.css +29 -28
- package/dist/components/qr-code/QrCode.css +39 -35
- package/dist/components/radio-group/RadioGroup.css +48 -48
- package/dist/components/rating-group/RatingGroup.css +30 -30
- package/dist/components/scroll-area/ScrollArea.css +34 -34
- package/dist/components/segment-group/SegmentGroup.css +37 -37
- package/dist/components/select/Select.css +118 -126
- package/dist/components/select/Select.d.ts +0 -5
- package/dist/components/select/Select.js +0 -8
- package/dist/components/select/Select.module.js +0 -1
- package/dist/components/separator/Separator.css +13 -13
- package/dist/components/sidebar/Sidebar.css +142 -142
- package/dist/components/signature-pad/SignaturePad.css +50 -50
- package/dist/components/skeleton/Skeleton.css +7 -5
- package/dist/components/slider/Slider.css +61 -61
- package/dist/components/spinner/Spinner.css +12 -12
- package/dist/components/split-button/SplitButton.css +12 -12
- package/dist/components/splitter/Splitter.css +63 -62
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/stack/Stack.css +4 -4
- package/dist/components/stack/Stack.js +3 -3
- package/dist/components/steps/Steps.css +89 -89
- package/dist/components/swap/Swap.css +7 -7
- package/dist/components/switch/Switch.css +59 -57
- package/dist/components/table/Table.css +58 -56
- package/dist/components/tabs/Tabs.css +64 -62
- package/dist/components/tag/Tag.css +45 -45
- package/dist/components/tags-input/TagsInput.css +92 -86
- package/dist/components/text/Text.css +23 -23
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.css +27 -26
- package/dist/components/timer/Timer.css +38 -37
- package/dist/components/toast/Toast.css +94 -79
- package/dist/components/toggle/Toggle.css +66 -66
- package/dist/components/toggle-group/ToggleGroup.css +16 -16
- package/dist/components/tooltip/Tooltip.css +56 -53
- package/dist/components/tour/Tour.css +121 -117
- package/dist/components/tree-view/TreeView.css +88 -86
- package/dist/components/typeset/Typeset.css +61 -61
- package/dist/lib/moduix/presets/contrast.css +59 -60
- package/dist/lib/moduix/presets/dense.css +72 -73
- package/dist/lib/moduix/presets/soft.css +71 -72
- package/dist/lib/moduix/styles/reset.css +1 -1
- package/dist/lib/moduix/styles/style.css +230 -226
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer moduix.components {
|
|
2
2
|
.-ZBX5W_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
|
-
width: var(--tree-view-width, 20rem);
|
|
5
|
-
max-width: var(--tree-view-max-width, 100%);
|
|
6
|
-
gap: var(--tree-view-root-gap, var(--spacing-2));
|
|
4
|
+
width: var(--moduix-tree-view-width, 20rem);
|
|
5
|
+
max-width: var(--moduix-tree-view-max-width, 100%);
|
|
6
|
+
gap: var(--moduix-tree-view-root-gap, var(--moduix-spacing-2));
|
|
7
7
|
min-width: 0;
|
|
8
|
-
color: var(--tree-view-color, var(--color-foreground));
|
|
8
|
+
color: var(--moduix-tree-view-color, var(--moduix-color-foreground));
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
display: flex;
|
|
11
11
|
|
|
12
12
|
&[data-disabled] {
|
|
13
|
-
opacity: var(--tree-view-disabled-opacity, var(--opacity-disabled));
|
|
13
|
+
opacity: var(--moduix-tree-view-disabled-opacity, var(--moduix-opacity-disabled));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.-ZBX5W_label {
|
|
18
|
-
color: var(--tree-view-label-color, var(--tree-view-color, var(--color-foreground)));
|
|
19
|
-
font-size: var(--tree-view-label-font-size, var(--text-sm));
|
|
20
|
-
font-weight: var(--tree-view-label-font-weight, var(--weight-medium));
|
|
21
|
-
line-height: var(--tree-view-label-line-height, var(--line-height-text-sm));
|
|
18
|
+
color: var(--moduix-tree-view-label-color, var(--moduix-tree-view-color, var(--moduix-color-foreground)));
|
|
19
|
+
font-size: var(--moduix-tree-view-label-font-size, var(--moduix-text-sm));
|
|
20
|
+
font-weight: var(--moduix-tree-view-label-font-weight, var(--moduix-weight-medium));
|
|
21
|
+
line-height: var(--moduix-tree-view-label-line-height, var(--moduix-line-height-text-sm));
|
|
22
22
|
user-select: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.-ZBX5W_tree {
|
|
26
26
|
min-width: 0;
|
|
27
|
-
color: var(--tree-view-color, var(--color-foreground));
|
|
28
|
-
font-size: var(--tree-view-item-font-size, var(--text-sm));
|
|
29
|
-
line-height: var(--tree-view-item-line-height, var(--line-height-text-sm));
|
|
27
|
+
color: var(--moduix-tree-view-color, var(--moduix-color-foreground));
|
|
28
|
+
font-size: var(--moduix-tree-view-item-font-size, var(--moduix-text-sm));
|
|
29
|
+
line-height: var(--moduix-tree-view-item-line-height, var(--moduix-line-height-text-sm));
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
display: flex;
|
|
32
32
|
}
|
|
@@ -40,70 +40,71 @@
|
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
width: 100%;
|
|
42
42
|
min-width: 0;
|
|
43
|
-
min-height: var(--tree-view-item-min-height, var(--size-sm));
|
|
43
|
+
min-height: var(--moduix-tree-view-item-min-height, var(--moduix-size-sm));
|
|
44
44
|
align-items: center;
|
|
45
|
-
gap: var(--tree-view-item-gap, var(--spacing-2));
|
|
46
|
-
border: var(--tree-view-item-border-width, 0) solid
|
|
47
|
-
var(--tree-view-item-border-color, transparent);
|
|
48
|
-
border-radius: var(--tree-view-item-radius, var(--radius-sm));
|
|
49
|
-
padding-block: var(--tree-view-item-padding-y, var(--spacing-1));
|
|
50
|
-
background-color: var(--tree-view-item-bg, transparent);
|
|
51
|
-
color: var(--tree-view-item-color, var(--tree-view-color, var(--color-foreground)));
|
|
45
|
+
gap: var(--moduix-tree-view-item-gap, var(--moduix-spacing-2));
|
|
46
|
+
border: var(--moduix-tree-view-item-border-width, 0) solid
|
|
47
|
+
var(--moduix-tree-view-item-border-color, transparent);
|
|
48
|
+
border-radius: var(--moduix-tree-view-item-radius, var(--moduix-radius-sm));
|
|
49
|
+
padding-block: var(--moduix-tree-view-item-padding-y, var(--moduix-spacing-1));
|
|
50
|
+
background-color: var(--moduix-tree-view-item-bg, transparent);
|
|
51
|
+
color: var(--moduix-tree-view-item-color, var(--moduix-tree-view-color, var(--moduix-color-foreground)));
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
font: inherit;
|
|
54
|
-
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
54
|
+
outline: var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
55
55
|
solid transparent;
|
|
56
|
-
outline-offset: calc(var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm))) *
|
|
56
|
+
outline-offset: calc(var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))) *
|
|
57
|
+
-1);
|
|
57
58
|
text-align: start;
|
|
58
|
-
transition: background-color var(--tree-view-transition, var(--transition-default)),
|
|
59
|
-
color var(--tree-view-transition, var(--transition-default)),
|
|
60
|
-
outline-color var(--tree-view-transition, var(--transition-default)),
|
|
61
|
-
opacity var(--tree-view-transition, var(--transition-default));
|
|
59
|
+
transition: background-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
60
|
+
color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
61
|
+
outline-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
62
|
+
opacity var(--moduix-tree-view-transition, var(--moduix-transition-default));
|
|
62
63
|
user-select: none;
|
|
63
|
-
padding-inline-start: calc(var(--tree-view-item-padding-x, var(--spacing-2)) +
|
|
64
|
-
((var(--depth, 1) - 1) * var(--tree-view-indent, 1rem)));
|
|
65
|
-
padding-inline-end: var(--tree-view-item-padding-x, var(--spacing-2));
|
|
64
|
+
padding-inline-start: calc(var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2)) +
|
|
65
|
+
((var(--depth, 1) - 1) * var(--moduix-tree-view-indent, 1rem)));
|
|
66
|
+
padding-inline-end: var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2));
|
|
66
67
|
text-decoration: none;
|
|
67
68
|
display: flex;
|
|
68
69
|
|
|
69
70
|
&:hover {
|
|
70
|
-
background-color: var(--tree-view-item-hover-bg, var(--color-accent));
|
|
71
|
-
color: var(--tree-view-item-hover-color, var(--color-accent-foreground));
|
|
71
|
+
background-color: var(--moduix-tree-view-item-hover-bg, var(--moduix-color-accent));
|
|
72
|
+
color: var(--moduix-tree-view-item-hover-color, var(--moduix-color-accent-foreground));
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
&:focus-visible, &[data-focus] {
|
|
75
|
-
outline-color: var(--tree-view-focus-ring-color, var(--color-ring));
|
|
76
|
+
outline-color: var(--moduix-tree-view-focus-ring-color, var(--moduix-color-ring));
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
&[data-selected] {
|
|
79
|
-
background-color: var(--tree-view-item-selected-bg, var(--color-accent));
|
|
80
|
-
color: var(--tree-view-item-selected-color, var(--color-accent-foreground));
|
|
80
|
+
background-color: var(--moduix-tree-view-item-selected-bg, var(--moduix-color-accent));
|
|
81
|
+
color: var(--moduix-tree-view-item-selected-color, var(--moduix-color-accent-foreground));
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
&[data-disabled] {
|
|
84
|
-
color: var(--tree-view-item-disabled-color, var(--color-muted-foreground));
|
|
85
|
+
color: var(--moduix-tree-view-item-disabled-color, var(--moduix-color-muted-foreground));
|
|
85
86
|
cursor: default;
|
|
86
|
-
opacity: var(--tree-view-disabled-opacity, var(--opacity-disabled));
|
|
87
|
+
opacity: var(--moduix-tree-view-disabled-opacity, var(--moduix-opacity-disabled));
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.-ZBX5W_branchTrigger, .-ZBX5W_branchIndicator, .-ZBX5W_itemIndicator {
|
|
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));
|
|
94
|
-
color: var(--tree-view-indicator-color, currentColor);
|
|
92
|
+
width: var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4));
|
|
93
|
+
height: var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4));
|
|
94
|
+
flex: 0 0 var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4));
|
|
95
|
+
color: var(--moduix-tree-view-indicator-color, currentColor);
|
|
95
96
|
justify-content: center;
|
|
96
97
|
align-items: center;
|
|
97
98
|
display: inline-flex;
|
|
98
99
|
|
|
99
100
|
& svg {
|
|
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
|
+
width: var(--moduix-tree-view-indicator-icon-size, var(--moduix-spacing-3-5));
|
|
102
|
+
height: var(--moduix-tree-view-indicator-icon-size, var(--moduix-spacing-3-5));
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.-ZBX5W_branchTrigger, .-ZBX5W_branchIndicator {
|
|
106
|
-
transition: transform var(--tree-view-transition, var(--transition-default));
|
|
107
|
+
transition: transform var(--moduix-tree-view-transition, var(--moduix-transition-default));
|
|
107
108
|
|
|
108
109
|
&[data-state="open"] {
|
|
109
110
|
transform: rotate(90deg);
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
|
|
113
114
|
.-ZBX5W_branchText, .-ZBX5W_itemText {
|
|
114
115
|
align-items: center;
|
|
115
|
-
gap: var(--tree-view-item-text-gap, var(--spacing-2));
|
|
116
|
+
gap: var(--moduix-tree-view-item-text-gap, var(--moduix-spacing-2));
|
|
116
117
|
text-overflow: ellipsis;
|
|
117
118
|
white-space: nowrap;
|
|
118
119
|
flex: 1;
|
|
@@ -121,9 +122,9 @@
|
|
|
121
122
|
overflow: hidden;
|
|
122
123
|
|
|
123
124
|
& svg {
|
|
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));
|
|
125
|
+
width: var(--moduix-tree-view-node-icon-size, var(--moduix-spacing-4));
|
|
126
|
+
height: var(--moduix-tree-view-node-icon-size, var(--moduix-spacing-4));
|
|
127
|
+
flex: 0 0 var(--moduix-tree-view-node-icon-size, var(--moduix-spacing-4));
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
|
|
@@ -133,65 +134,65 @@
|
|
|
133
134
|
overflow: hidden;
|
|
134
135
|
|
|
135
136
|
&[data-state="open"] {
|
|
136
|
-
animation: -ZBX5W_tree-view-slide-down var(--tree-view-content-transition-duration, .15s) ease-out,
|
|
137
|
-
-ZBX5W_tree-view-fade-in var(--tree-view-content-transition-duration, .15s) ease-out;
|
|
137
|
+
animation: -ZBX5W_tree-view-slide-down var(--moduix-tree-view-content-transition-duration, .15s) ease-out,
|
|
138
|
+
-ZBX5W_tree-view-fade-in var(--moduix-tree-view-content-transition-duration, .15s) ease-out;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
&[data-state="closed"] {
|
|
141
|
-
animation: -ZBX5W_tree-view-slide-up var(--tree-view-content-transition-duration, .15s) ease-out,
|
|
142
|
-
-ZBX5W_tree-view-fade-out var(--tree-view-content-transition-duration, .15s) ease-out;
|
|
142
|
+
animation: -ZBX5W_tree-view-slide-up var(--moduix-tree-view-content-transition-duration, .15s) ease-out,
|
|
143
|
+
-ZBX5W_tree-view-fade-out var(--moduix-tree-view-content-transition-duration, .15s) ease-out;
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
.-ZBX5W_branchIndentGuide {
|
|
147
148
|
z-index: 1;
|
|
148
|
-
width: var(--tree-view-indent-guide-width, var(--border-width-sm));
|
|
149
|
-
background-color: var(--tree-view-indent-guide-color, var(--color-border));
|
|
149
|
+
width: var(--moduix-tree-view-indent-guide-width, var(--moduix-border-width-sm));
|
|
150
|
+
background-color: var(--moduix-tree-view-indent-guide-color, var(--moduix-color-border));
|
|
150
151
|
top: 0;
|
|
151
152
|
bottom: 0;
|
|
152
153
|
position: absolute;
|
|
153
|
-
inset-inline-start: calc(var(--tree-view-item-padding-x, var(--spacing-2)) +
|
|
154
|
-
((var(--depth, 1) - 1) * var(--tree-view-indent, 1rem)) +
|
|
155
|
-
(var(--tree-view-indicator-size, var(--spacing-4)) / 2));
|
|
154
|
+
inset-inline-start: calc(var(--moduix-tree-view-item-padding-x, var(--moduix-spacing-2)) +
|
|
155
|
+
((var(--depth, 1) - 1) * var(--moduix-tree-view-indent, 1rem)) +
|
|
156
|
+
(var(--moduix-tree-view-indicator-size, var(--moduix-spacing-4)) / 2));
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
.-ZBX5W_nodeCheckbox {
|
|
159
160
|
box-sizing: border-box;
|
|
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));
|
|
163
|
-
border: var(--tree-view-checkbox-border-width, var(--border-width-sm)) solid
|
|
164
|
-
var(--tree-view-checkbox-border-color, var(--color-border));
|
|
165
|
-
border-radius: var(--tree-view-checkbox-radius, var(--radius-xs));
|
|
166
|
-
background-color: var(--tree-view-checkbox-bg, var(--color-background));
|
|
167
|
-
color: var(--tree-view-checkbox-color, var(--color-primary-foreground));
|
|
168
|
-
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
161
|
+
width: var(--moduix-tree-view-checkbox-size, var(--moduix-spacing-4));
|
|
162
|
+
height: var(--moduix-tree-view-checkbox-size, var(--moduix-spacing-4));
|
|
163
|
+
flex: 0 0 var(--moduix-tree-view-checkbox-size, var(--moduix-spacing-4));
|
|
164
|
+
border: var(--moduix-tree-view-checkbox-border-width, var(--moduix-border-width-sm)) solid
|
|
165
|
+
var(--moduix-tree-view-checkbox-border-color, var(--moduix-color-border));
|
|
166
|
+
border-radius: var(--moduix-tree-view-checkbox-radius, var(--moduix-radius-xs));
|
|
167
|
+
background-color: var(--moduix-tree-view-checkbox-bg, var(--moduix-color-background));
|
|
168
|
+
color: var(--moduix-tree-view-checkbox-color, var(--moduix-color-primary-foreground));
|
|
169
|
+
outline: var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
169
170
|
solid transparent;
|
|
170
|
-
outline-offset: var(--tree-view-checkbox-focus-ring-offset, var(--border-width-sm));
|
|
171
|
-
transition: background-color var(--tree-view-transition, var(--transition-default)),
|
|
172
|
-
border-color var(--tree-view-transition, var(--transition-default)),
|
|
173
|
-
outline-color var(--tree-view-transition, var(--transition-default));
|
|
171
|
+
outline-offset: var(--moduix-tree-view-checkbox-focus-ring-offset, var(--moduix-border-width-sm));
|
|
172
|
+
transition: background-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
173
|
+
border-color var(--moduix-tree-view-transition, var(--moduix-transition-default)),
|
|
174
|
+
outline-color var(--moduix-tree-view-transition, var(--moduix-transition-default));
|
|
174
175
|
justify-content: center;
|
|
175
176
|
align-items: center;
|
|
176
177
|
display: inline-flex;
|
|
177
178
|
|
|
178
179
|
&[data-state="checked"], &[data-state="indeterminate"] {
|
|
179
|
-
border-color: var(--tree-view-checkbox-checked-bg, var(--color-primary));
|
|
180
|
-
background-color: var(--tree-view-checkbox-checked-bg, var(--color-primary));
|
|
180
|
+
border-color: var(--moduix-tree-view-checkbox-checked-bg, var(--moduix-color-primary));
|
|
181
|
+
background-color: var(--moduix-tree-view-checkbox-checked-bg, var(--moduix-color-primary));
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
&:focus-visible {
|
|
184
|
-
outline-color: var(--tree-view-focus-ring-color, var(--color-ring));
|
|
185
|
+
outline-color: var(--moduix-tree-view-focus-ring-color, var(--moduix-color-ring));
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
&[data-disabled] {
|
|
188
189
|
cursor: default;
|
|
189
|
-
opacity: var(--tree-view-disabled-opacity, var(--opacity-disabled));
|
|
190
|
+
opacity: var(--moduix-tree-view-disabled-opacity, var(--moduix-opacity-disabled));
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
& svg {
|
|
193
|
-
width: var(--tree-view-checkbox-icon-size, var(--spacing-3));
|
|
194
|
-
height: var(--tree-view-checkbox-icon-size, var(--spacing-3));
|
|
194
|
+
width: var(--moduix-tree-view-checkbox-icon-size, var(--moduix-spacing-3));
|
|
195
|
+
height: var(--moduix-tree-view-checkbox-icon-size, var(--moduix-spacing-3));
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
198
|
|
|
@@ -203,22 +204,23 @@
|
|
|
203
204
|
|
|
204
205
|
.-ZBX5W_nodeRenameInput {
|
|
205
206
|
box-sizing: border-box;
|
|
206
|
-
border: var(--tree-view-rename-input-border-width, var(--border-width-sm)) solid
|
|
207
|
-
var(--tree-view-rename-input-border-color, var(--color-ring));
|
|
208
|
-
border-radius: var(--tree-view-rename-input-radius, var(--radius-xs));
|
|
207
|
+
border: var(--moduix-tree-view-rename-input-border-width, var(--moduix-border-width-sm)) solid
|
|
208
|
+
var(--moduix-tree-view-rename-input-border-color, var(--moduix-color-ring));
|
|
209
|
+
border-radius: var(--moduix-tree-view-rename-input-radius, var(--moduix-radius-xs));
|
|
209
210
|
min-width: 0;
|
|
210
|
-
padding-block: var(--tree-view-rename-input-padding-y, 0);
|
|
211
|
-
padding-inline: var(--tree-view-rename-input-padding-x, var(--spacing-1));
|
|
212
|
-
background-color: var(--tree-view-rename-input-bg, var(--color-background));
|
|
213
|
-
color: var(--tree-view-rename-input-color, var(--color-foreground));
|
|
211
|
+
padding-block: var(--moduix-tree-view-rename-input-padding-y, 0);
|
|
212
|
+
padding-inline: var(--moduix-tree-view-rename-input-padding-x, var(--moduix-spacing-1));
|
|
213
|
+
background-color: var(--moduix-tree-view-rename-input-bg, var(--moduix-color-background));
|
|
214
|
+
color: var(--moduix-tree-view-rename-input-color, var(--moduix-color-foreground));
|
|
214
215
|
font: inherit;
|
|
215
|
-
outline: var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm)))
|
|
216
|
+
outline: var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
216
217
|
solid transparent;
|
|
217
|
-
outline-offset: calc(var(--tree-view-focus-ring-width, var(--focus-ring-inset-width, var(--border-width-sm))) *
|
|
218
|
+
outline-offset: calc(var(--moduix-tree-view-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm))) *
|
|
219
|
+
-1);
|
|
218
220
|
flex: 1;
|
|
219
221
|
|
|
220
222
|
&:focus-visible {
|
|
221
|
-
outline-color: var(--tree-view-focus-ring-color, var(--color-ring));
|
|
223
|
+
outline-color: var(--moduix-tree-view-focus-ring-color, var(--moduix-color-ring));
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
226
|
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer moduix.components {
|
|
2
2
|
._3-ErqG_root {
|
|
3
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);
|
|
4
|
+
color: var(--moduix-color-foreground);
|
|
5
|
+
font-family: var(--moduix-typeset-font-body, inherit);
|
|
6
|
+
font-size: calc(var(--moduix-typeset-size, 1em) * 1.125);
|
|
7
|
+
line-height: var(--moduix-typeset-leading, 1.75);
|
|
8
8
|
overflow-wrap: break-word;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@media (width >= 48rem), print {
|
|
12
12
|
._3-ErqG_root {
|
|
13
|
-
font-size: var(--typeset-size, 1em);
|
|
13
|
+
font-size: var(--moduix-typeset-size, 1em);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
._3-ErqG_root {
|
|
18
18
|
& :not(:where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)) {
|
|
19
19
|
&:where(p) {
|
|
20
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
20
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
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);
|
|
24
|
+
color: var(--moduix-color-foreground);
|
|
25
|
+
font-family: var(--moduix-typeset-font-heading, var(--moduix-font-sans));
|
|
26
|
+
font-weight: var(--moduix-weight-semibold);
|
|
27
27
|
letter-spacing: -.02em;
|
|
28
28
|
margin-block-end: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&:where(h1) {
|
|
32
|
-
margin-block-start: var(--typeset-flow, 1.25em);
|
|
32
|
+
margin-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
33
33
|
font-size: 1.75em;
|
|
34
34
|
line-height: 1.3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&:where(h2) {
|
|
38
|
-
margin-block-start: calc(var(--typeset-flow, 1.25em) * 1.4);
|
|
38
|
+
margin-block-start: calc(var(--moduix-typeset-flow, 1.25em) * 1.4);
|
|
39
39
|
font-size: 1.25em;
|
|
40
40
|
line-height: 1.4;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&:where(h3) {
|
|
44
|
-
margin-block-start: var(--typeset-flow, 1.25em);
|
|
44
|
+
margin-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
45
45
|
font-size: 1.125em;
|
|
46
46
|
line-height: 1.45;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&:where(h4) {
|
|
50
|
-
margin-block-start: var(--typeset-flow, 1.25em);
|
|
50
|
+
margin-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
51
51
|
font-size: 1em;
|
|
52
52
|
line-height: 1.5;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:where(h5) {
|
|
56
|
-
color: var(--color-muted-foreground);
|
|
56
|
+
color: var(--moduix-color-muted-foreground);
|
|
57
57
|
font-size: .875em;
|
|
58
|
-
font-weight: var(--weight-medium);
|
|
59
|
-
margin-block-start: calc(var(--typeset-flow, 1.25em) / .875);
|
|
58
|
+
font-weight: var(--moduix-weight-medium);
|
|
59
|
+
margin-block-start: calc(var(--moduix-typeset-flow, 1.25em) / .875);
|
|
60
60
|
line-height: 1.5;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:where(h6) {
|
|
64
|
-
color: var(--color-muted-foreground);
|
|
64
|
+
color: var(--moduix-color-muted-foreground);
|
|
65
65
|
font-size: .8125em;
|
|
66
|
-
font-weight: var(--weight-medium);
|
|
66
|
+
font-weight: var(--moduix-weight-medium);
|
|
67
67
|
letter-spacing: .08em;
|
|
68
68
|
text-transform: uppercase;
|
|
69
|
-
margin-block-start: calc(var(--typeset-flow, 1.25em) / .8125);
|
|
69
|
+
margin-block-start: calc(var(--moduix-typeset-flow, 1.25em) / .8125);
|
|
70
70
|
line-height: 1.5;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&:where([id]) {
|
|
74
|
-
scroll-margin-block-start: var(--typeset-flow, 1.25em);
|
|
74
|
+
scroll-margin-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&:where(a) {
|
|
82
|
-
color: var(--color-primary);
|
|
82
|
+
color: var(--moduix-color-primary);
|
|
83
83
|
text-underline-offset: .15em;
|
|
84
84
|
text-decoration: underline .08em;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&:where(ul, ol) {
|
|
88
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
88
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
89
89
|
padding-inline-start: 1.5em;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&:where(li)::marker {
|
|
117
|
-
color: var(--color-muted-foreground);
|
|
118
|
-
font-weight: var(--weight-semibold);
|
|
117
|
+
color: var(--moduix-color-muted-foreground);
|
|
118
|
+
font-weight: var(--moduix-weight-semibold);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&:where(li + li) {
|
|
@@ -133,35 +133,35 @@
|
|
|
133
133
|
|
|
134
134
|
&:where(li.task-list-item > input[type="checkbox"]) {
|
|
135
135
|
vertical-align: -.1em;
|
|
136
|
-
accent-color: var(--color-primary);
|
|
136
|
+
accent-color: var(--moduix-color-primary);
|
|
137
137
|
margin-inline-end: .5em;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
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);
|
|
141
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
142
|
+
border-inline-start: var(--moduix-border-width-md) solid var(--moduix-color-border);
|
|
143
|
+
color: var(--moduix-color-muted-foreground);
|
|
144
144
|
margin-inline: 0;
|
|
145
145
|
padding-inline-start: 1em;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
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));
|
|
149
|
+
border-radius: var(--moduix-radius-sm);
|
|
150
|
+
background: var(--moduix-color-muted);
|
|
151
|
+
color: var(--moduix-color-foreground);
|
|
152
|
+
font-family: var(--moduix-typeset-font-mono, var(--moduix-font-mono));
|
|
153
153
|
padding: .1em .3em;
|
|
154
154
|
font-size: .875em;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
&:where(pre) {
|
|
158
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));
|
|
159
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
160
|
+
border: var(--moduix-border-width-sm) solid var(--moduix-color-border);
|
|
161
|
+
border-radius: var(--moduix-radius-md);
|
|
162
|
+
background: var(--moduix-color-muted);
|
|
163
|
+
color: var(--moduix-color-foreground);
|
|
164
|
+
font-family: var(--moduix-typeset-font-mono, var(--moduix-font-mono));
|
|
165
165
|
padding: 1em;
|
|
166
166
|
font-size: .875em;
|
|
167
167
|
line-height: 1.6;
|
|
@@ -177,39 +177,39 @@
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
&:where(hr) {
|
|
180
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
180
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
181
181
|
border: 0;
|
|
182
|
-
border-block-start: var(--border-width-sm) solid var(--color-border);
|
|
182
|
+
border-block-start: var(--moduix-border-width-sm) solid var(--moduix-color-border);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
&:where(table) {
|
|
186
186
|
width: 100%;
|
|
187
187
|
max-width: 100%;
|
|
188
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
188
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
189
189
|
border-collapse: separate;
|
|
190
190
|
border-spacing: 0;
|
|
191
|
-
border-block-end: var(--border-width-sm) solid var(--color-border);
|
|
191
|
+
border-block-end: var(--moduix-border-width-sm) solid var(--moduix-color-border);
|
|
192
192
|
font-variant-numeric: tabular-nums;
|
|
193
193
|
font-size: 1em;
|
|
194
194
|
line-height: 1.5;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&:where(thead th) {
|
|
198
|
-
font-weight: var(--weight-medium);
|
|
198
|
+
font-weight: var(--moduix-weight-medium);
|
|
199
199
|
text-align: start;
|
|
200
200
|
white-space: nowrap;
|
|
201
201
|
padding: .65em 1em;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
205
|
-
border-block-start: var(--border-width-sm) solid var(--color-border);
|
|
205
|
+
border-block-start: var(--moduix-border-width-sm) solid var(--moduix-color-border);
|
|
206
206
|
text-align: start;
|
|
207
207
|
vertical-align: top;
|
|
208
208
|
padding: .75em 1em;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
&:where(tbody th, tfoot th) {
|
|
212
|
-
font-weight: var(--weight-medium);
|
|
212
|
+
font-weight: var(--moduix-weight-medium);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
&:where(th:first-child, td:first-child) {
|
|
@@ -227,8 +227,8 @@
|
|
|
227
227
|
&:where(img, video) {
|
|
228
228
|
max-width: 100%;
|
|
229
229
|
height: auto;
|
|
230
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
231
|
-
border-radius: var(--radius-md);
|
|
230
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
231
|
+
border-radius: var(--moduix-radius-md);
|
|
232
232
|
display: block;
|
|
233
233
|
}
|
|
234
234
|
|
|
@@ -237,12 +237,12 @@
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
&:where(figure) {
|
|
240
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
240
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
241
241
|
margin-inline: 0;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
&:where(figcaption, caption) {
|
|
245
|
-
color: var(--color-muted-foreground);
|
|
245
|
+
color: var(--moduix-color-muted-foreground);
|
|
246
246
|
text-align: center;
|
|
247
247
|
margin-block-start: .75em;
|
|
248
248
|
font-size: .875em;
|
|
@@ -253,24 +253,24 @@
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
&:where(details) {
|
|
256
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
256
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
&:where(summary) {
|
|
260
260
|
cursor: pointer;
|
|
261
|
-
font-weight: var(--weight-medium);
|
|
261
|
+
font-weight: var(--moduix-weight-medium);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
&:where(summary)::marker {
|
|
265
|
-
color: var(--color-muted-foreground);
|
|
265
|
+
color: var(--moduix-color-muted-foreground);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
&:where(dl) {
|
|
269
|
-
margin-block: var(--typeset-flow, 1.25em) 0;
|
|
269
|
+
margin-block: var(--moduix-typeset-flow, 1.25em) 0;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
&:where(dt) {
|
|
273
|
-
font-weight: var(--weight-medium);
|
|
273
|
+
font-weight: var(--moduix-weight-medium);
|
|
274
274
|
margin-block-start: 1em;
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -279,17 +279,17 @@
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
&:where(dd) {
|
|
282
|
-
color: var(--color-muted-foreground);
|
|
282
|
+
color: var(--moduix-color-muted-foreground);
|
|
283
283
|
margin-block-start: .25em;
|
|
284
284
|
margin-inline-start: 0;
|
|
285
285
|
padding-inline-start: 1em;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
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);
|
|
289
|
+
margin-block: calc(var(--moduix-typeset-flow, 1.25em) * 2) 0;
|
|
290
|
+
border-block-start: var(--moduix-border-width-sm) solid var(--moduix-color-border);
|
|
291
|
+
color: var(--moduix-color-muted-foreground);
|
|
292
|
+
padding-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
293
293
|
font-size: .875em;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
._3-ErqG_scroll {
|
|
303
303
|
max-width: 100%;
|
|
304
304
|
overscroll-behavior-inline: contain;
|
|
305
|
-
margin-block-start: var(--typeset-flow, 1.25em);
|
|
305
|
+
margin-block-start: var(--moduix-typeset-flow, 1.25em);
|
|
306
306
|
overflow-x: auto;
|
|
307
307
|
}
|
|
308
308
|
|