@moduix/react-tailwind 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/card/Card.js +33 -33
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +18 -18
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +48 -48
- package/dist/components/container/Container.js +5 -5
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +13 -13
- package/dist/components/field/Field.js +19 -19
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +42 -42
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +51 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +17 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +26 -26
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -26,7 +26,6 @@ const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
26
26
|
asChild: asChild,
|
|
27
27
|
"data-scope": "table",
|
|
28
28
|
"data-part": "root",
|
|
29
|
-
"data-slot": "table-root",
|
|
30
29
|
"data-interactive": interactive || void 0,
|
|
31
30
|
"data-show-column-border": showColumnBorder || void 0,
|
|
32
31
|
"data-size": size,
|
|
@@ -37,7 +36,8 @@ const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
37
36
|
size,
|
|
38
37
|
variant
|
|
39
38
|
}), className),
|
|
40
|
-
...props
|
|
39
|
+
...props,
|
|
40
|
+
"data-slot": "table-root"
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
const Table_TableScrollArea = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -46,9 +46,9 @@ const Table_TableScrollArea = /*#__PURE__*/ forwardRef(function({ asChild, class
|
|
|
46
46
|
asChild: asChild,
|
|
47
47
|
"data-scope": "table",
|
|
48
48
|
"data-part": "scroll-area",
|
|
49
|
-
"data-slot": "table-scroll-area",
|
|
50
49
|
className: cn('relative isolate w-full min-w-0 overflow-x-auto rounded-lg border border-border bg-card', className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "table-scroll-area"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const Table_TableCaption = /*#__PURE__*/ forwardRef(function({ asChild, className, side = 'bottom', ...props }, ref) {
|
|
@@ -58,9 +58,9 @@ const Table_TableCaption = /*#__PURE__*/ forwardRef(function({ asChild, classNam
|
|
|
58
58
|
"data-scope": "table",
|
|
59
59
|
"data-part": "caption",
|
|
60
60
|
"data-side": side,
|
|
61
|
-
"data-slot": "table-caption",
|
|
62
61
|
className: cn('px-4 text-left text-sm leading-5 text-pretty text-muted-foreground group-data-[size=lg]/table:px-5 group-data-[size=sm]/table:px-3 data-[side=bottom]:caption-bottom data-[side=bottom]:pt-3 data-[side=bottom]:pb-2 data-[side=top]:caption-top data-[side=top]:pt-2 data-[side=top]:pb-3', className),
|
|
63
|
-
...props
|
|
62
|
+
...props,
|
|
63
|
+
"data-slot": "table-caption"
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
const Table_TableColumnGroup = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -69,9 +69,9 @@ const Table_TableColumnGroup = /*#__PURE__*/ forwardRef(function({ asChild, clas
|
|
|
69
69
|
asChild: asChild,
|
|
70
70
|
"data-scope": "table",
|
|
71
71
|
"data-part": "column-group",
|
|
72
|
-
"data-slot": "table-column-group",
|
|
73
72
|
className: className,
|
|
74
|
-
...props
|
|
73
|
+
...props,
|
|
74
|
+
"data-slot": "table-column-group"
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
const Table_TableColumn = /*#__PURE__*/ forwardRef(function({ asChild, className, htmlWidth, width, ...props }, ref) {
|
|
@@ -80,10 +80,10 @@ const Table_TableColumn = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
80
80
|
asChild: asChild,
|
|
81
81
|
"data-scope": "table",
|
|
82
82
|
"data-part": "column",
|
|
83
|
-
"data-slot": "table-column",
|
|
84
83
|
width: htmlWidth ?? width,
|
|
85
84
|
className: className,
|
|
86
|
-
...props
|
|
85
|
+
...props,
|
|
86
|
+
"data-slot": "table-column"
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
const Table_TableHeader = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -92,9 +92,9 @@ const Table_TableHeader = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
92
92
|
asChild: asChild,
|
|
93
93
|
"data-scope": "table",
|
|
94
94
|
"data-part": "header",
|
|
95
|
-
"data-slot": "table-header",
|
|
96
95
|
className: cn('group/table-header group-data-[sticky-header]/table:sticky group-data-[sticky-header]/table:top-0 group-data-[sticky-header]/table:z-3 group-data-[sticky-header]/table:bg-card', className),
|
|
97
|
-
...props
|
|
96
|
+
...props,
|
|
97
|
+
"data-slot": "table-header"
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
const Table_TableBody = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -103,9 +103,9 @@ const Table_TableBody = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
103
103
|
asChild: asChild,
|
|
104
104
|
"data-scope": "table",
|
|
105
105
|
"data-part": "body",
|
|
106
|
-
"data-slot": "table-body",
|
|
107
106
|
className: cn('group/table-body', className),
|
|
108
|
-
...props
|
|
107
|
+
...props,
|
|
108
|
+
"data-slot": "table-body"
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
const Table_TableFooter = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -114,9 +114,9 @@ const Table_TableFooter = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
114
114
|
asChild: asChild,
|
|
115
115
|
"data-scope": "table",
|
|
116
116
|
"data-part": "footer",
|
|
117
|
-
"data-slot": "table-footer",
|
|
118
117
|
className: cn('border-t border-border bg-muted font-medium', className),
|
|
119
|
-
...props
|
|
118
|
+
...props,
|
|
119
|
+
"data-slot": "table-footer"
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
const Table_TableRow = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
@@ -125,9 +125,9 @@ const Table_TableRow = /*#__PURE__*/ forwardRef(function({ asChild, className, .
|
|
|
125
125
|
asChild: asChild,
|
|
126
126
|
"data-scope": "table",
|
|
127
127
|
"data-part": "row",
|
|
128
|
-
"data-slot": "table-row",
|
|
129
128
|
className: cn('transition-colors duration-200 ease-in-out group-data-[slot=table-body]/table-body:border-b group-data-[slot=table-body]/table-body:border-border group-data-[slot=table-header]/table-header:border-b group-data-[slot=table-header]/table-header:border-border group-data-[slot=table-body]/table-body:last:border-b-0 group-data-[interactive]/table:group-data-[slot=table-body]/table-body:[&:not([data-empty])]:focus-within:bg-muted group-data-[interactive]/table:group-data-[slot=table-body]/table-body:[&:not([data-empty])]:hover:bg-muted group-data-[striped]/table:[&:nth-child(even):not([data-empty])]:bg-muted/35', className),
|
|
130
|
-
...props
|
|
129
|
+
...props,
|
|
130
|
+
"data-slot": "table-row"
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
const Table_TableColumnHeader = /*#__PURE__*/ forwardRef(function({ asChild, className, numeric = false, ...props }, ref) {
|
|
@@ -137,9 +137,9 @@ const Table_TableColumnHeader = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
137
137
|
"data-scope": "table",
|
|
138
138
|
"data-part": "column-header",
|
|
139
139
|
"data-numeric": numeric || void 0,
|
|
140
|
-
"data-slot": "table-column-header",
|
|
141
140
|
className: cn('relative z-0 px-4 py-3 align-middle font-medium whitespace-nowrap text-muted-foreground group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 group-data-[sticky-header]/table:data-[sticky]:z-4 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', numeric && 'text-end tabular-nums', className),
|
|
142
|
-
...props
|
|
141
|
+
...props,
|
|
142
|
+
"data-slot": "table-column-header"
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
const Table_TableCell = /*#__PURE__*/ forwardRef(function({ asChild, className, numeric = false, ...props }, ref) {
|
|
@@ -149,9 +149,9 @@ const Table_TableCell = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
149
149
|
"data-scope": "table",
|
|
150
150
|
"data-part": "cell",
|
|
151
151
|
"data-numeric": numeric || void 0,
|
|
152
|
-
"data-slot": "table-cell",
|
|
153
152
|
className: cn('relative z-0 px-4 py-3 align-middle group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', numeric && 'text-end tabular-nums', className),
|
|
154
|
-
...props
|
|
153
|
+
...props,
|
|
154
|
+
"data-slot": "table-cell"
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
const Table_TableEmpty = /*#__PURE__*/ forwardRef(function({ asChild, children = 'No results.', className, colSpan, ...props }, ref) {
|
|
@@ -166,10 +166,10 @@ const Table_TableEmpty = /*#__PURE__*/ forwardRef(function({ asChild, children =
|
|
|
166
166
|
asChild: asChild,
|
|
167
167
|
"data-scope": "table",
|
|
168
168
|
"data-part": "empty",
|
|
169
|
-
"data-slot": "table-empty",
|
|
170
169
|
colSpan: colSpan,
|
|
171
170
|
className: cn('relative z-0 px-4 py-3 align-middle group-data-[size=lg]/table:px-5 group-data-[size=lg]/table:py-4 group-data-[size=sm]/table:px-3 group-data-[size=sm]/table:py-2 data-[sticky=end]:sticky data-[sticky=end]:end-0 data-[sticky=end]:z-2 data-[sticky=end]:bg-card data-[sticky=start]:sticky data-[sticky=start]:start-0 data-[sticky=start]:z-2 data-[sticky=start]:bg-card group-data-[show-column-border]/table:[&:not(:last-child)]:border-e group-data-[show-column-border]/table:[&:not(:last-child)]:border-border', 'py-6 text-center text-muted-foreground group-data-[size=lg]/table:py-8 group-data-[size=sm]/table:py-4', className),
|
|
172
171
|
...props,
|
|
172
|
+
"data-slot": "table-empty",
|
|
173
173
|
children: children
|
|
174
174
|
})
|
|
175
175
|
});
|
|
@@ -7,11 +7,11 @@ const Tabs_TabsRoot = /*#__PURE__*/ forwardRef(function({ className, orientation
|
|
|
7
7
|
const resolvedVariant = 'vertical' === orientation ? 'default' : variant;
|
|
8
8
|
return /*#__PURE__*/ jsx(Tabs.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "tabs-root",
|
|
11
10
|
"data-variant": resolvedVariant,
|
|
12
11
|
className: cn('group/tabs box-border flex w-full min-w-0 flex-col gap-3 text-foreground data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch', className),
|
|
13
12
|
orientation: orientation,
|
|
14
|
-
...props
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "tabs-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const Tabs_TabsRootProvider = /*#__PURE__*/ forwardRef(function({ className, value, variant = 'default', ...props }, ref) {
|
|
@@ -19,43 +19,43 @@ const Tabs_TabsRootProvider = /*#__PURE__*/ forwardRef(function({ className, val
|
|
|
19
19
|
const resolvedVariant = 'vertical' === orientation ? 'default' : variant;
|
|
20
20
|
return /*#__PURE__*/ jsx(Tabs.RootProvider, {
|
|
21
21
|
ref: ref,
|
|
22
|
-
"data-slot": "tabs-root-provider",
|
|
23
22
|
"data-variant": resolvedVariant,
|
|
24
23
|
className: cn('group/tabs box-border flex w-full min-w-0 flex-col gap-3 text-foreground data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch', className),
|
|
25
24
|
value: value,
|
|
26
|
-
...props
|
|
25
|
+
...props,
|
|
26
|
+
"data-slot": "tabs-root-provider"
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
const Tabs_TabsList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
30
30
|
return /*#__PURE__*/ jsx(Tabs.List, {
|
|
31
31
|
ref: ref,
|
|
32
|
-
"data-slot": "tabs-list",
|
|
33
32
|
className: cn('relative z-0 inline-flex w-fit max-w-full items-stretch gap-1 rounded-lg border border-border bg-muted p-1 group-data-[orientation=horizontal]/tabs:overflow-x-auto group-data-[orientation=vertical]/tabs:w-48 group-data-[orientation=vertical]/tabs:min-w-48 group-data-[orientation=vertical]/tabs:flex-col group-data-[variant=line]/tabs:w-full group-data-[variant=line]/tabs:rounded-none group-data-[variant=line]/tabs:border-x-0 group-data-[variant=line]/tabs:border-t-0 group-data-[variant=line]/tabs:bg-transparent group-data-[variant=line]/tabs:px-0 group-data-[orientation=vertical]/tabs:max-[30rem]:w-2/5 group-data-[orientation=vertical]/tabs:max-[30rem]:min-w-0', className),
|
|
34
|
-
...props
|
|
33
|
+
...props,
|
|
34
|
+
"data-slot": "tabs-list"
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
const Tabs_TabsTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
38
38
|
return /*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
39
39
|
ref: ref,
|
|
40
|
-
"data-slot": "tabs-trigger",
|
|
41
40
|
className: cn("relative z-1 inline-flex h-8 cursor-pointer items-center justify-center gap-2 rounded-md border-0 bg-transparent px-2.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground no-underline outline-0 transition-[color,opacity] duration-200 ease-in-out select-none focus-visible:before:pointer-events-none focus-visible:before:absolute focus-visible:before:inset-0 focus-visible:before:rounded-[inherit] focus-visible:before:outline-1 focus-visible:before:outline-ring focus-visible:before:content-[''] disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-selected:text-foreground motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0 [@media(hover:hover)]:hover:text-foreground", className),
|
|
42
|
-
...props
|
|
41
|
+
...props,
|
|
42
|
+
"data-slot": "tabs-trigger"
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
const Tabs_TabsIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
46
46
|
return /*#__PURE__*/ jsx(Tabs.Indicator, {
|
|
47
47
|
ref: ref,
|
|
48
|
-
"data-slot": "tabs-indicator",
|
|
49
48
|
className: cn('pointer-events-none absolute top-1/2 left-[var(--left,0)] z-0 h-8 w-[var(--width,0)] -translate-y-1/2 rounded-md bg-background shadow-sm transition-[var(--transition-property,translate)] duration-200 ease-in-out group-data-[orientation=vertical]/tabs:top-[var(--top,0)] group-data-[orientation=vertical]/tabs:left-1/2 group-data-[orientation=vertical]/tabs:h-[var(--height,0)] group-data-[orientation=vertical]/tabs:w-[calc(100%-0.5rem)] group-data-[orientation=vertical]/tabs:-translate-x-1/2 group-data-[orientation=vertical]/tabs:translate-y-0 group-data-[variant=line]/tabs:top-auto group-data-[variant=line]/tabs:bottom-0 group-data-[variant=line]/tabs:h-0.5 group-data-[variant=line]/tabs:[translate:none] group-data-[variant=line]/tabs:rounded-full group-data-[variant=line]/tabs:bg-foreground group-data-[variant=line]/tabs:shadow-none motion-reduce:transition-none', className),
|
|
50
|
-
...props
|
|
49
|
+
...props,
|
|
50
|
+
"data-slot": "tabs-indicator"
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
const Tabs_TabsContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
54
54
|
return /*#__PURE__*/ jsx(Tabs.Content, {
|
|
55
55
|
ref: ref,
|
|
56
|
-
"data-slot": "tabs-content",
|
|
57
56
|
className: cn("box-border min-w-0 flex-1 rounded-lg border border-border bg-background p-4 text-sm leading-5 text-foreground outline-0 focus-visible:rounded-[inherit] focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&[hidden]:not([hidden='until-found'])]:hidden", className),
|
|
58
|
-
...props
|
|
57
|
+
...props,
|
|
58
|
+
"data-slot": "tabs-content"
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
const Tabs_Tabs = Object.assign(Tabs_TabsRoot, {
|
|
@@ -7,82 +7,82 @@ import { CloseButton } from "../close-button/index.js";
|
|
|
7
7
|
const TagsInput_TagsInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(TagsInput.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "tags-input-root",
|
|
11
10
|
className: cn('flex w-full max-w-96 flex-col gap-1 text-foreground data-disabled:opacity-50', className),
|
|
12
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "tags-input-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const TagsInput_TagsInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(TagsInput.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-slot": "tags-input-root-provider",
|
|
19
18
|
className: cn('flex w-full max-w-96 flex-col gap-1 text-foreground data-disabled:opacity-50', className),
|
|
20
|
-
...props
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "tags-input-root-provider"
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
const TagsInput_TagsInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
24
24
|
return /*#__PURE__*/ jsx(TagsInput.Label, {
|
|
25
25
|
ref: ref,
|
|
26
|
-
"data-slot": "tags-input-label",
|
|
27
26
|
className: cn('inline-flex items-center gap-1 text-sm leading-5 font-medium text-foreground data-disabled:opacity-50', className),
|
|
28
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
"data-slot": "tags-input-label"
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
const TagsInput_TagsInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
32
32
|
return /*#__PURE__*/ jsx(TagsInput.Control, {
|
|
33
33
|
ref: ref,
|
|
34
|
-
"data-slot": "tags-input-control",
|
|
35
34
|
className: cn('flex min-h-control-md w-full flex-wrap items-center gap-1 rounded-md border border-border bg-background px-2 py-[0.3125rem] text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color,opacity] duration-200 ease-in-out data-disabled:pointer-events-none data-focus:outline-ring data-invalid:border-destructive data-invalid:data-focus:outline-destructive data-readonly:bg-background data-readonly:text-foreground motion-reduce:transition-none', className),
|
|
36
|
-
...props
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "tags-input-control"
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
const TagsInput_TagsInputItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
40
40
|
return /*#__PURE__*/ jsx(TagsInput.Item, {
|
|
41
41
|
ref: ref,
|
|
42
|
-
"data-slot": "tags-input-item",
|
|
43
42
|
className: cn('contents', className),
|
|
44
|
-
...props
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "tags-input-item"
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
const TagsInput_TagsInputItemPreview = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
48
48
|
return /*#__PURE__*/ jsx(TagsInput.ItemPreview, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
"data-slot": "tags-input-item-preview",
|
|
51
50
|
className: cn('inline-flex min-h-control-xs max-w-full min-w-0 items-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 text-xs leading-4 font-medium text-secondary-foreground transition-[border-color,background-color,color,box-shadow] duration-200 ease-in-out data-disabled:opacity-50 data-highlighted:ring-1 data-highlighted:ring-ring motion-reduce:transition-none', className),
|
|
52
|
-
...props
|
|
51
|
+
...props,
|
|
52
|
+
"data-slot": "tags-input-item-preview"
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
const TagsInput_TagsInputItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
56
56
|
return /*#__PURE__*/ jsx(TagsInput.ItemText, {
|
|
57
57
|
ref: ref,
|
|
58
|
-
"data-slot": "tags-input-item-text",
|
|
59
58
|
className: cn('min-w-0 truncate', className),
|
|
60
|
-
...props
|
|
59
|
+
...props,
|
|
60
|
+
"data-slot": "tags-input-item-text"
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
const TagsInput_TagsInputItemDeleteTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
64
64
|
return /*#__PURE__*/ jsx(TagsInput.ItemDeleteTrigger, {
|
|
65
65
|
ref: ref,
|
|
66
|
-
"data-slot": "tags-input-item-delete-trigger",
|
|
67
66
|
className: cn('inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full border-0 bg-transparent p-0 text-inherit outline-0 transition-[background-color,color,opacity,box-shadow] duration-200 ease-in-out focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [&>svg]:pointer-events-none [&>svg]:size-2.5 [&>svg]:shrink-0 [@media(hover:hover)]:hover:bg-current/10', className),
|
|
68
67
|
...props,
|
|
68
|
+
"data-slot": "tags-input-item-delete-trigger",
|
|
69
69
|
children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
const TagsInput_TagsInputItemInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
73
73
|
return /*#__PURE__*/ jsx(TagsInput.ItemInput, {
|
|
74
74
|
ref: ref,
|
|
75
|
-
"data-slot": "tags-input-item-input",
|
|
76
75
|
className: cn('h-control-xs min-w-28 shrink grow-0 basis-28 border-0 bg-transparent px-1 text-sm leading-5 text-inherit outline-0 placeholder:text-muted-foreground read-only:cursor-default data-readonly:cursor-default', className),
|
|
77
|
-
...props
|
|
76
|
+
...props,
|
|
77
|
+
"data-slot": "tags-input-item-input"
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
const TagsInput_TagsInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
81
81
|
return /*#__PURE__*/ jsx(TagsInput.Input, {
|
|
82
82
|
ref: ref,
|
|
83
|
-
"data-slot": "tags-input-input",
|
|
84
83
|
className: cn('h-control-xs min-w-28 shrink grow basis-28 border-0 bg-transparent px-1 text-sm leading-5 text-inherit outline-0 placeholder:text-muted-foreground read-only:cursor-default data-readonly:hidden data-readonly:cursor-default', className),
|
|
85
|
-
...props
|
|
84
|
+
...props,
|
|
85
|
+
"data-slot": "tags-input-input"
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
@@ -90,11 +90,11 @@ const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asCh
|
|
|
90
90
|
return /*#__PURE__*/ jsx(TagsInput.ClearTrigger, {
|
|
91
91
|
ref: ref,
|
|
92
92
|
asChild: true,
|
|
93
|
-
"data-slot": "tags-input-clear-trigger",
|
|
94
93
|
className: cn(asChild ? 'ms-auto shrink-0 self-center data-readonly:hidden' : 'ms-auto size-control-xs shrink-0 self-center rounded-sm bg-transparent text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-ring data-readonly:hidden motion-reduce:transition-none [&>svg]:size-3 [@media(hover:hover)]:hover:bg-muted [@media(hover:hover)]:hover:text-foreground', className),
|
|
95
94
|
"aria-label": asChild ? ariaLabel : void 0,
|
|
96
95
|
"aria-labelledby": asChild ? ariaLabelledBy : void 0,
|
|
97
96
|
...props,
|
|
97
|
+
"data-slot": "tags-input-clear-trigger",
|
|
98
98
|
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
99
99
|
"aria-label": ariaLabel ?? clearTriggerLabel,
|
|
100
100
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -6,57 +6,57 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const Timer_TimerRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Timer.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "timer-root",
|
|
10
9
|
className: cn('inline-grid w-max max-w-full place-items-center gap-3 text-foreground', className),
|
|
11
|
-
...props
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "timer-root"
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
const Timer_TimerRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
15
15
|
return /*#__PURE__*/ jsx(Timer.RootProvider, {
|
|
16
16
|
ref: ref,
|
|
17
|
-
"data-slot": "timer-root-provider",
|
|
18
17
|
className: cn('inline-grid w-max max-w-full place-items-center gap-3 text-foreground', className),
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "timer-root-provider"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const Timer_TimerArea = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(Timer.Area, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "timer-area",
|
|
26
25
|
className: cn('inline-flex max-w-full min-w-0 flex-wrap items-baseline justify-center gap-1 text-2xl leading-5 font-semibold tracking-normal tabular-nums', className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "timer-area"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const Timer_TimerItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(Timer.Item, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "timer-item",
|
|
34
33
|
className: cn('min-w-[2ch] text-center', className),
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "timer-item"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const Timer_TimerSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(Timer.Separator, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "timer-separator",
|
|
42
41
|
className: cn('text-muted-foreground', className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "timer-separator"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const Timer_TimerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(Timer.Control, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
"data-slot": "timer-control",
|
|
50
49
|
className: cn('inline-flex flex-wrap items-center gap-2', className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "timer-control"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const Timer_TimerActionTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(Timer.ActionTrigger, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-slot": "timer-action-trigger",
|
|
58
57
|
className: cn('inline-flex min-h-control-md cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 font-medium whitespace-nowrap text-foreground transition-[background-color,border-color,color,opacity,box-shadow] duration-200 ease-in-out focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', className),
|
|
59
|
-
...props
|
|
58
|
+
...props,
|
|
59
|
+
"data-slot": "timer-action-trigger"
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
const defaultTimerSegmentTypes = [
|
|
@@ -13,9 +13,9 @@ const Toast_Toaster = /*#__PURE__*/ forwardRef(function({ className, portalled,
|
|
|
13
13
|
children: /*#__PURE__*/ jsx(OverlayPortal, {
|
|
14
14
|
children: /*#__PURE__*/ jsx(toast_Toaster, {
|
|
15
15
|
ref: ref,
|
|
16
|
-
"data-slot": "toast-toaster",
|
|
17
16
|
className: cn('z-70 max-[40rem]:w-full', className),
|
|
18
17
|
...props,
|
|
18
|
+
"data-slot": "toast-toaster",
|
|
19
19
|
children: props.children ?? ((toast)=>/*#__PURE__*/ jsx(DefaultToast, {
|
|
20
20
|
toast: toast
|
|
21
21
|
}))
|
|
@@ -38,18 +38,18 @@ function DefaultToast({ toast }) {
|
|
|
38
38
|
const Toast_ToastRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(Toast.Root, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "toast-root",
|
|
42
41
|
className: cn('group/toast pointer-events-auto [z-index:var(--z-index)] box-border grid [height:var(--height)] min-h-0 w-80 max-w-[calc(100vw-2rem)] min-w-0 [translate:var(--x)_var(--y)] [scale:var(--scale)] items-start gap-1 rounded-lg border border-border bg-card bg-clip-padding p-4 pe-11 text-card-foreground [opacity:var(--opacity)] shadow-lg transition-[translate,scale,opacity,height,box-shadow] duration-350 ease-[cubic-bezier(0.21,1.02,0.73,1)] [will-change:translate,opacity,scale] data-[state=closed]:ease-[cubic-bezier(0.06,0.71,0.55,1)] data-[state=closed]:[transition:translate_350ms,scale_350ms,opacity_200ms] data-[type=error]:border-destructive/35 data-[type=error]:bg-destructive/9 data-[type=error]:text-foreground data-[type=success]:border-success/34 data-[type=success]:bg-success/10 data-[type=success]:text-foreground data-[type=warning]:border-warning/38 data-[type=warning]:bg-warning/13 data-[type=warning]:text-foreground motion-reduce:transition-none max-[40rem]:inset-x-0 max-[40rem]:w-[calc(100%_-_(var(--gap)*2))] max-[40rem]:max-w-none', className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "toast-root"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const Toast_ToastTitle = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
47
47
|
const toast = useToastContext();
|
|
48
48
|
return /*#__PURE__*/ jsx(Toast.Title, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
"data-slot": "toast-title",
|
|
51
50
|
className: cn('m-0 flex min-w-0 items-center gap-2 text-sm leading-5 font-semibold wrap-anywhere text-inherit', className),
|
|
52
51
|
...props,
|
|
52
|
+
"data-slot": "toast-title",
|
|
53
53
|
children: void 0 === children ? toast.title : children
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -57,9 +57,9 @@ const Toast_ToastDescription = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
57
57
|
const toast = useToastContext();
|
|
58
58
|
return /*#__PURE__*/ jsx(Toast.Description, {
|
|
59
59
|
ref: ref,
|
|
60
|
-
"data-slot": "toast-description",
|
|
61
60
|
className: cn('m-0 min-w-0 text-sm leading-5 wrap-anywhere text-muted-foreground', className),
|
|
62
61
|
...props,
|
|
62
|
+
"data-slot": "toast-description",
|
|
63
63
|
children: void 0 === children ? toast.description : children
|
|
64
64
|
});
|
|
65
65
|
});
|
|
@@ -67,9 +67,9 @@ const Toast_ToastActionTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cl
|
|
|
67
67
|
return /*#__PURE__*/ jsx(Toast.ActionTrigger, {
|
|
68
68
|
ref: ref,
|
|
69
69
|
asChild: asChild,
|
|
70
|
-
"data-slot": "toast-action-trigger",
|
|
71
70
|
className: cn(!asChild && 'mt-2 inline-flex min-h-control-xs w-max max-w-full min-w-0 cursor-pointer items-center justify-center gap-2 rounded-sm border border-border bg-transparent px-2 py-1 text-start text-xs leading-4 font-medium wrap-anywhere text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:outline-ring motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
|
|
72
71
|
...props,
|
|
72
|
+
"data-slot": "toast-action-trigger",
|
|
73
73
|
children: children
|
|
74
74
|
});
|
|
75
75
|
});
|
|
@@ -77,20 +77,20 @@ const Toast_ToastCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
77
77
|
if (asChild) return /*#__PURE__*/ jsx(Toast.CloseTrigger, {
|
|
78
78
|
ref: ref,
|
|
79
79
|
asChild: true,
|
|
80
|
-
"data-slot": "toast-close-trigger",
|
|
81
80
|
"aria-label": ariaLabel,
|
|
82
81
|
className: className,
|
|
83
82
|
...props,
|
|
83
|
+
"data-slot": "toast-close-trigger",
|
|
84
84
|
children: children
|
|
85
85
|
});
|
|
86
86
|
return /*#__PURE__*/ jsx(Toast.CloseTrigger, {
|
|
87
87
|
asChild: true,
|
|
88
88
|
children: /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
89
89
|
ref: ref,
|
|
90
|
-
"data-slot": "toast-close-trigger",
|
|
91
90
|
"aria-label": ariaLabel,
|
|
92
91
|
className: cn('absolute end-2 top-2', className),
|
|
93
92
|
...props,
|
|
93
|
+
"data-slot": "toast-close-trigger",
|
|
94
94
|
children: children
|
|
95
95
|
})
|
|
96
96
|
});
|
|
@@ -17,78 +17,78 @@ const Toc_TocRoot = /*#__PURE__*/ forwardRef(function({ autoScroll = false, clas
|
|
|
17
17
|
return /*#__PURE__*/ jsx(Toc.Root, {
|
|
18
18
|
ref: ref,
|
|
19
19
|
autoScroll: autoScroll,
|
|
20
|
-
"data-slot": "toc-root",
|
|
21
20
|
className: cn('group/toc box-border grid w-full min-w-0 grid-cols-[minmax(0,1fr)_minmax(12rem,16rem)] gap-6 text-foreground has-[[data-slot=toc-nav][data-placement=left]]:grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] max-md:grid-cols-[minmax(0,1fr)] max-md:has-[[data-slot=toc-nav][data-placement=left]]:grid-cols-[minmax(0,1fr)]', className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "toc-root"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Toc_TocRootProvider = /*#__PURE__*/ forwardRef(function({ className, style, value, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Toc.RootProvider, {
|
|
27
27
|
ref: ref,
|
|
28
28
|
value: value,
|
|
29
|
-
"data-slot": "toc-root-provider",
|
|
30
29
|
className: cn('group/toc box-border grid w-full min-w-0 grid-cols-[minmax(0,1fr)_minmax(12rem,16rem)] gap-6 text-foreground has-[[data-slot=toc-nav][data-placement=left]]:grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] max-md:grid-cols-[minmax(0,1fr)] max-md:has-[[data-slot=toc-nav][data-placement=left]]:grid-cols-[minmax(0,1fr)]', className),
|
|
31
30
|
style: {
|
|
32
31
|
...value.getRootProps().style,
|
|
33
32
|
...style
|
|
34
33
|
},
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "toc-root-provider"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const Toc_TocContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(Toc.Content, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "toc-content",
|
|
42
41
|
className: cn('min-w-0 scroll-smooth group-has-[[data-slot=toc-nav][data-placement=left]]/toc:col-start-2 group-has-[[data-slot=toc-nav][data-placement=left]]/toc:row-start-1 motion-reduce:scroll-auto max-md:group-has-[[data-slot=toc-nav][data-placement=left]]/toc:col-auto max-md:group-has-[[data-slot=toc-nav][data-placement=left]]/toc:row-auto', className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "toc-content"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const Toc_TocNav = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(Toc.Nav, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
"data-slot": "toc-nav",
|
|
50
49
|
className: cn('sticky top-4 max-h-[calc(100dvh-2rem)] min-w-0 self-start overflow-auto rounded-lg border border-border bg-card p-4 text-card-foreground data-[placement=left]:col-start-1 data-[placement=left]:row-start-1 max-md:data-[placement=left]:col-auto max-md:data-[placement=left]:row-auto', className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "toc-nav"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const Toc_TocTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(Toc.Title, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-slot": "toc-title",
|
|
58
57
|
className: cn('m-0 mb-2 text-sm leading-5 font-semibold text-foreground', className),
|
|
59
|
-
...props
|
|
58
|
+
...props,
|
|
59
|
+
"data-slot": "toc-title"
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
const Toc_TocList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
63
63
|
return /*#__PURE__*/ jsx(Toc.List, {
|
|
64
64
|
ref: ref,
|
|
65
|
-
"data-slot": "toc-list",
|
|
66
65
|
className: cn("relative m-0 grid list-none gap-0.5 py-0 ps-1 has-[[data-slot=toc-indicator]]:before:pointer-events-none has-[[data-slot=toc-indicator]]:before:absolute has-[[data-slot=toc-indicator]]:before:inset-y-0.5 has-[[data-slot=toc-indicator]]:before:start-0 has-[[data-slot=toc-indicator]]:before:w-0.5 has-[[data-slot=toc-indicator]]:before:rounded-full has-[[data-slot=toc-indicator]]:before:bg-border has-[[data-slot=toc-indicator]]:before:content-['']", className),
|
|
67
|
-
...props
|
|
66
|
+
...props,
|
|
67
|
+
"data-slot": "toc-list"
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
const Toc_TocItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
71
71
|
return /*#__PURE__*/ jsx(Toc.Item, {
|
|
72
72
|
ref: ref,
|
|
73
|
-
"data-slot": "toc-item",
|
|
74
73
|
className: cn('min-w-0', className),
|
|
75
|
-
...props
|
|
74
|
+
...props,
|
|
75
|
+
"data-slot": "toc-item"
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
const Toc_TocLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
79
79
|
return /*#__PURE__*/ jsx(Toc.Link, {
|
|
80
80
|
ref: ref,
|
|
81
|
-
"data-slot": "toc-link",
|
|
82
81
|
className: cn('group/toc-link relative block min-w-0 overflow-hidden rounded-sm py-1 ps-[calc(0.875rem+max(0px,((var(--depth)-2)*0.5rem)))] pe-1 text-sm leading-5 text-ellipsis whitespace-nowrap text-muted-foreground no-underline outline-0 transition-colors duration-200 ring-inset focus-visible:ring-1 focus-visible:ring-ring has-[[data-slot=toc-rail]]:overflow-visible data-active:font-medium data-active:text-foreground motion-reduce:transition-none [@media(hover:hover)]:hover:text-foreground', className),
|
|
83
|
-
...props
|
|
82
|
+
...props,
|
|
83
|
+
"data-slot": "toc-link"
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
const Toc_TocIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
87
87
|
return /*#__PURE__*/ jsx(Toc.Indicator, {
|
|
88
88
|
ref: ref,
|
|
89
|
-
"data-slot": "toc-indicator",
|
|
90
89
|
className: cn('pointer-events-none start-0 top-[calc(var(--top)+0.125rem)] z-1 h-[calc(var(--height)-0.25rem)] w-0.5 rounded-full bg-muted-foreground opacity-70 transition-[top,height] duration-200 motion-reduce:transition-none', className),
|
|
91
|
-
...props
|
|
90
|
+
...props,
|
|
91
|
+
"data-slot": "toc-indicator"
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDepth = depth, previousDepth = depth, style, ...props }, ref) {
|
|
@@ -100,7 +100,6 @@ const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDe
|
|
|
100
100
|
return /*#__PURE__*/ jsxs("svg", {
|
|
101
101
|
ref: ref,
|
|
102
102
|
"aria-hidden": "true",
|
|
103
|
-
"data-slot": "toc-rail",
|
|
104
103
|
className: cn('pointer-events-none absolute start-0 -top-1.5 overflow-visible text-border group-data-active/toc-link:translate-y-0.5 group-data-active/toc-link:text-muted-foreground group-data-active/toc-link:opacity-70', className),
|
|
105
104
|
style: {
|
|
106
105
|
width,
|
|
@@ -108,6 +107,7 @@ const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDe
|
|
|
108
107
|
...style
|
|
109
108
|
},
|
|
110
109
|
...props,
|
|
110
|
+
"data-slot": "toc-rail",
|
|
111
111
|
children: [
|
|
112
112
|
hasTurn && /*#__PURE__*/ jsx("path", {
|
|
113
113
|
d: `M ${previousLineOffset + 0.5} 0 C ${previousLineOffset + 0.5} 8 ${lineOffset + 0.5} 4 ${lineOffset + 0.5} ${2 * railBridge}`,
|
|
@@ -29,22 +29,22 @@ const toggleVariants = cva('box-border inline-flex min-h-control-md cursor-point
|
|
|
29
29
|
const Toggle_ToggleRoot = /*#__PURE__*/ forwardRef(function({ className, variant = 'default', size = 'md', ...props }, ref) {
|
|
30
30
|
return /*#__PURE__*/ jsx(Toggle.Root, {
|
|
31
31
|
ref: ref,
|
|
32
|
-
"data-slot": "toggle-root",
|
|
33
32
|
"data-variant": variant,
|
|
34
33
|
"data-size": size,
|
|
35
34
|
className: cn(toggleVariants({
|
|
36
35
|
variant,
|
|
37
36
|
size
|
|
38
37
|
}), className),
|
|
39
|
-
...props
|
|
38
|
+
...props,
|
|
39
|
+
"data-slot": "toggle-root"
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const Toggle_ToggleIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
43
|
return /*#__PURE__*/ jsx(Toggle.Indicator, {
|
|
44
44
|
ref: ref,
|
|
45
|
-
"data-slot": "toggle-indicator",
|
|
46
45
|
className: cn('inline-flex items-center justify-center text-inherit [&>svg]:block [&>svg]:size-4 [&>svg]:shrink-0', className),
|
|
47
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "toggle-indicator"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Toggle_Toggle = Object.assign(Toggle_ToggleRoot, {
|