@mdigital_ui/ui 0.2.2 → 0.2.4
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/accordion/index.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cascader/index.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/{chunk-W7BQYIXF.js → chunk-267WNY3E.js} +6 -6
- package/dist/chunk-267WNY3E.js.map +1 -0
- package/dist/{chunk-CWHFK7ZC.js → chunk-2EKAF6EJ.js} +10 -10
- package/dist/chunk-2EKAF6EJ.js.map +1 -0
- package/dist/{chunk-E2CYDDYC.js → chunk-6V5I5HJ2.js} +3 -3
- package/dist/{chunk-E2CYDDYC.js.map → chunk-6V5I5HJ2.js.map} +1 -1
- package/dist/{chunk-JZCHZ4B3.js → chunk-ASW7TEAN.js} +3 -3
- package/dist/chunk-ASW7TEAN.js.map +1 -0
- package/dist/{chunk-FTJOSVTY.js → chunk-BFO3ARVJ.js} +6 -6
- package/dist/{chunk-FTJOSVTY.js.map → chunk-BFO3ARVJ.js.map} +1 -1
- package/dist/{chunk-EYTOKUBM.js → chunk-FCMVKFVV.js} +3 -3
- package/dist/{chunk-EYTOKUBM.js.map → chunk-FCMVKFVV.js.map} +1 -1
- package/dist/{chunk-SERJ3TZE.js → chunk-G6TAVRTJ.js} +3 -3
- package/dist/chunk-G6TAVRTJ.js.map +1 -0
- package/dist/{chunk-KTBPIEP2.js → chunk-GEWR5ROK.js} +3 -3
- package/dist/chunk-GEWR5ROK.js.map +1 -0
- package/dist/{chunk-RQBXZKTH.js → chunk-JLTDJ3VZ.js} +6 -6
- package/dist/{chunk-RQBXZKTH.js.map → chunk-JLTDJ3VZ.js.map} +1 -1
- package/dist/{chunk-LBJG2UWT.js → chunk-KTAIRCOL.js} +3 -3
- package/dist/{chunk-LBJG2UWT.js.map → chunk-KTAIRCOL.js.map} +1 -1
- package/dist/{chunk-4P5EMRFI.js → chunk-LEKLQR4I.js} +3 -3
- package/dist/{chunk-4P5EMRFI.js.map → chunk-LEKLQR4I.js.map} +1 -1
- package/dist/{chunk-H2HIBD5Y.js → chunk-OALOWWO7.js} +13 -10
- package/dist/chunk-OALOWWO7.js.map +1 -0
- package/dist/{chunk-XOBGEMQY.js → chunk-OOS3B7YZ.js} +7 -7
- package/dist/chunk-OOS3B7YZ.js.map +1 -0
- package/dist/{chunk-52M2PO3O.js → chunk-QPJL66S7.js} +3 -3
- package/dist/chunk-QPJL66S7.js.map +1 -0
- package/dist/{chunk-CLLQDCDR.js → chunk-UAMFKX6L.js} +6 -6
- package/dist/chunk-UAMFKX6L.js.map +1 -0
- package/dist/{chunk-2JGAYDZR.js → chunk-XMKNYG7I.js} +6 -6
- package/dist/{chunk-2JGAYDZR.js.map → chunk-XMKNYG7I.js.map} +1 -1
- package/dist/{chunk-5VCGW53O.js → chunk-Y5A26EGR.js} +6 -6
- package/dist/{chunk-5VCGW53O.js.map → chunk-Y5A26EGR.js.map} +1 -1
- package/dist/{chunk-AOITJRSV.js → chunk-YZ6V6BQ7.js} +3 -3
- package/dist/chunk-YZ6V6BQ7.js.map +1 -0
- package/dist/{chunk-L3SP7GHC.js → chunk-ZNJ7M5QK.js} +5 -5
- package/dist/{chunk-L3SP7GHC.js.map → chunk-ZNJ7M5QK.js.map} +1 -1
- package/dist/command/index.js +2 -2
- package/dist/date-picker/index.js +1 -1
- package/dist/index.d.ts +84 -1
- package/dist/index.js +157 -24
- package/dist/index.js.map +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-password/index.js +2 -2
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/styles/base.css +2134 -167
- package/dist/styles/global.css +571 -188
- package/dist/styles/themes/dark.css +47 -40
- package/dist/styles/themes/light.css +12 -9
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +4 -4
- package/dist/transfer/index.js +2 -2
- package/dist/tree-select/index.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-52M2PO3O.js.map +0 -1
- package/dist/chunk-AOITJRSV.js.map +0 -1
- package/dist/chunk-CLLQDCDR.js.map +0 -1
- package/dist/chunk-CWHFK7ZC.js.map +0 -1
- package/dist/chunk-H2HIBD5Y.js.map +0 -1
- package/dist/chunk-JZCHZ4B3.js.map +0 -1
- package/dist/chunk-KTBPIEP2.js.map +0 -1
- package/dist/chunk-SERJ3TZE.js.map +0 -1
- package/dist/chunk-W7BQYIXF.js.map +0 -1
- package/dist/chunk-XOBGEMQY.js.map +0 -1
- package/examples/README.md +0 -166
- package/examples/custom-theme.css +0 -189
package/dist/index.js
CHANGED
|
@@ -1,57 +1,190 @@
|
|
|
1
1
|
export { tooltip_default as Tooltip } from './chunk-D3JWPGCA.js';
|
|
2
|
-
export { Transfer } from './chunk-
|
|
3
|
-
export { tree_select_default as TreeSelect } from './chunk-
|
|
2
|
+
export { Transfer } from './chunk-FCMVKFVV.js';
|
|
3
|
+
export { tree_select_default as TreeSelect } from './chunk-ASW7TEAN.js';
|
|
4
4
|
export { tree_default as Tree } from './chunk-SAVE5ACL.js';
|
|
5
5
|
export { upload_default as Upload } from './chunk-I5ANSIDK.js';
|
|
6
|
-
export {
|
|
6
|
+
export { slider_default as Slider } from './chunk-NNSS366W.js';
|
|
7
7
|
export { stepper_default as Stepper } from './chunk-MLDX3Z67.js';
|
|
8
|
-
export { switch_default as Switch } from './chunk-
|
|
9
|
-
export {
|
|
10
|
-
export { table_default as Table } from './chunk-L3SP7GHC.js';
|
|
8
|
+
export { switch_default as Switch } from './chunk-YZ6V6BQ7.js';
|
|
9
|
+
export { table_default as Table } from './chunk-ZNJ7M5QK.js';
|
|
11
10
|
export { toggle_group_default as ToggleGroup } from './chunk-SK5ECBBK.js';
|
|
11
|
+
export { tabs_default as Tabs } from './chunk-OW5A5IIF.js';
|
|
12
12
|
export { textarea_default as Textarea } from './chunk-FPOXTCYV.js';
|
|
13
13
|
export { toggle_default as Toggle } from './chunk-DPOSWW22.js';
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
14
|
+
export { progress_default as Progress } from './chunk-JLTDJ3VZ.js';
|
|
15
|
+
export { radio_default as Radio } from './chunk-GEWR5ROK.js';
|
|
16
16
|
export { radio_group_default as RadioGroup } from './chunk-DOKTHDG3.js';
|
|
17
17
|
export { rating_default as Rating } from './chunk-FYHQDFKE.js';
|
|
18
18
|
export { ribbon_default as Ribbon } from './chunk-C7SXY3ZV.js';
|
|
19
|
+
export { select_default as Select } from './chunk-UAMFKX6L.js';
|
|
19
20
|
export { skeleton_default as Skeleton } from './chunk-75XESYGN.js';
|
|
20
|
-
export { slider_default as Slider } from './chunk-NNSS366W.js';
|
|
21
21
|
export { input_group_default as InputGroup } from './chunk-KBCBVH7B.js';
|
|
22
|
-
export { input_password_default as InputPassword } from './chunk-E2CYDDYC.js';
|
|
23
22
|
export { input_otp_default as InputOTP } from './chunk-R225A5II.js';
|
|
23
|
+
export { input_password_default as InputPassword } from './chunk-6V5I5HJ2.js';
|
|
24
24
|
export { kbd_default as Kbd } from './chunk-OQANRZPV.js';
|
|
25
|
-
export { multi_select_default as MultiSelect } from './chunk-
|
|
25
|
+
export { multi_select_default as MultiSelect } from './chunk-267WNY3E.js';
|
|
26
26
|
export { notification_default as Notification } from './chunk-YZVSDRJD.js';
|
|
27
27
|
export { pagination_default as Pagination } from './chunk-FGWSUPVW.js';
|
|
28
28
|
export { descriptions_default as Descriptions } from './chunk-S5XJXU52.js';
|
|
29
29
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-AWPKZYHT.js';
|
|
30
|
-
export { empty_default as Empty } from './chunk-ROR4E6IE.js';
|
|
31
|
-
export { fetching_overlay_default as FetchingOverlay } from './chunk-BNILRB4T.js';
|
|
32
30
|
export { grid_default as Grid } from './chunk-7PKVBUGL.js';
|
|
33
|
-
export { input_default as Input } from './chunk-2JGAYDZR.js';
|
|
34
31
|
export { image_default as Image } from './chunk-XMAH5PDW.js';
|
|
35
|
-
export {
|
|
32
|
+
export { empty_default as Empty } from './chunk-ROR4E6IE.js';
|
|
33
|
+
export { fetching_overlay_default as FetchingOverlay } from './chunk-BNILRB4T.js';
|
|
34
|
+
export { input_default as Input } from './chunk-XMKNYG7I.js';
|
|
35
|
+
export { cascader_default as Cascader } from './chunk-G6TAVRTJ.js';
|
|
36
36
|
export { AreaChart, BarChart, ComposedChart, LineChart, PieChart } from './chunk-BP434VYV.js';
|
|
37
|
-
export { checkbox_default as Checkbox } from './chunk-
|
|
37
|
+
export { checkbox_default as Checkbox } from './chunk-OALOWWO7.js';
|
|
38
38
|
export { checkbox_group_default as CheckboxGroup } from './chunk-RPAQAZTI.js';
|
|
39
39
|
export { clipboard_default as Clipboard } from './chunk-RMGIO27V.js';
|
|
40
40
|
export { collapse_default as Collapse } from './chunk-SOV4PE3P.js';
|
|
41
|
-
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandModal, CommandSeparator, CommandShortcut } from './chunk-
|
|
42
|
-
export { modal_default as Modal } from './chunk-
|
|
43
|
-
export { DatePicker, RangePickerComponent as RangePicker, TimePickerComponent as TimePicker } from './chunk-
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
41
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandModal, CommandSeparator, CommandShortcut } from './chunk-LEKLQR4I.js';
|
|
42
|
+
export { modal_default as Modal } from './chunk-Y5A26EGR.js';
|
|
43
|
+
export { DatePicker, RangePickerComponent as RangePicker, TimePickerComponent as TimePicker } from './chunk-QPJL66S7.js';
|
|
44
|
+
export { accordion_default as Accordion } from './chunk-2EKAF6EJ.js';
|
|
45
|
+
export { badge_default as Badge } from './chunk-BFO3ARVJ.js';
|
|
46
46
|
export { breadcrumbs_default as Breadcrumbs } from './chunk-HUVXKOJC.js';
|
|
47
47
|
export { dropdown_default as Dropdown } from './chunk-KNQ7UQ2W.js';
|
|
48
48
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './chunk-3PFA3YG6.js';
|
|
49
|
-
export {
|
|
50
|
-
export { card_default as Card } from './chunk-XOBGEMQY.js';
|
|
51
|
-
export { button_default as Button } from './chunk-LBJG2UWT.js';
|
|
49
|
+
export { button_default as Button } from './chunk-KTAIRCOL.js';
|
|
52
50
|
export { spinner_default as Spinner } from './chunk-J3G5WWGR.js';
|
|
53
51
|
export { buttonColors, commonSpacing, componentColors, componentSizeVariants, createAllColorVariants, createDashedColorVariants, createDefaultColorVariants, createGhostColorVariants, createLinkColorVariants, createOutlineColorVariants, createSoftColorVariants, createSolidColorVariants, extendedComponentSizeVariants, getAccordionColorClass, getCheckboxColorClass, getIconColorClass, iconColorClasses, textColorVariants } from './chunk-5UEWVFF6.js';
|
|
52
|
+
export { button_group_default as ButtonGroup } from './chunk-56IXGP5C.js';
|
|
53
|
+
export { card_default as Card } from './chunk-OOS3B7YZ.js';
|
|
54
|
+
import { cn } from './chunk-YNNAOXU5.js';
|
|
54
55
|
export { cn, getValidationStatus, iconSizes } from './chunk-YNNAOXU5.js';
|
|
55
56
|
export { carousel_default as Carousel } from './chunk-C3MX5EXL.js';
|
|
57
|
+
import { cva } from 'class-variance-authority';
|
|
58
|
+
import React from 'react';
|
|
59
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
60
|
+
|
|
61
|
+
var dividerVariants = cva("", {
|
|
62
|
+
variants: {
|
|
63
|
+
orientation: {
|
|
64
|
+
horizontal: "w-full",
|
|
65
|
+
vertical: "h-full"
|
|
66
|
+
},
|
|
67
|
+
variant: {
|
|
68
|
+
solid: "border-solid",
|
|
69
|
+
dashed: "border-dashed",
|
|
70
|
+
dotted: "border-dotted"
|
|
71
|
+
},
|
|
72
|
+
color: {
|
|
73
|
+
default: "border-border",
|
|
74
|
+
primary: "border-primary",
|
|
75
|
+
secondary: "border-secondary",
|
|
76
|
+
accent: "border-accent",
|
|
77
|
+
success: "border-success",
|
|
78
|
+
error: "border-error",
|
|
79
|
+
warning: "border-warning",
|
|
80
|
+
info: "border-info"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
orientation: "horizontal",
|
|
85
|
+
variant: "solid",
|
|
86
|
+
color: "default"
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
var textAlignClasses = {
|
|
90
|
+
left: {
|
|
91
|
+
before: "w-[var(--divider-left-before-width)]",
|
|
92
|
+
after: "w-[var(--divider-left-after-width)]"
|
|
93
|
+
},
|
|
94
|
+
center: {
|
|
95
|
+
before: "w-[var(--divider-center-before-width)]",
|
|
96
|
+
after: "w-[var(--divider-center-after-width)]"
|
|
97
|
+
},
|
|
98
|
+
right: {
|
|
99
|
+
before: "w-[var(--divider-right-before-width)]",
|
|
100
|
+
after: "w-[var(--divider-right-after-width)]"
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var Divider = React.memo(
|
|
104
|
+
({
|
|
105
|
+
orientation = "horizontal",
|
|
106
|
+
variant = "solid",
|
|
107
|
+
color = "default",
|
|
108
|
+
children,
|
|
109
|
+
textAlign = "center",
|
|
110
|
+
spacing,
|
|
111
|
+
className,
|
|
112
|
+
...props
|
|
113
|
+
}) => {
|
|
114
|
+
const hasText = Boolean(children);
|
|
115
|
+
if (orientation === "horizontal") {
|
|
116
|
+
if (hasText) {
|
|
117
|
+
return /* @__PURE__ */ jsxs(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
role: "separator",
|
|
121
|
+
"aria-orientation": "horizontal",
|
|
122
|
+
className: cn(
|
|
123
|
+
"flex items-center gap-[var(--divider-gap)] text-sm text-text-secondary",
|
|
124
|
+
className
|
|
125
|
+
),
|
|
126
|
+
style: spacing ? { margin: spacing } : void 0,
|
|
127
|
+
...props,
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ jsx(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
className: cn(
|
|
133
|
+
"border-t",
|
|
134
|
+
dividerVariants({ variant, color }),
|
|
135
|
+
textAlignClasses[textAlign].before
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ jsx("span", { className: "whitespace-nowrap flex-shrink-0", children }),
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
className: cn(
|
|
144
|
+
"border-t",
|
|
145
|
+
dividerVariants({ variant, color }),
|
|
146
|
+
textAlignClasses[textAlign].after
|
|
147
|
+
)
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
return /* @__PURE__ */ jsx(
|
|
155
|
+
"hr",
|
|
156
|
+
{
|
|
157
|
+
role: "separator",
|
|
158
|
+
"aria-orientation": "horizontal",
|
|
159
|
+
className: cn(
|
|
160
|
+
"border-t",
|
|
161
|
+
dividerVariants({ orientation, variant, color }),
|
|
162
|
+
className
|
|
163
|
+
),
|
|
164
|
+
style: spacing ? { margin: spacing } : void 0,
|
|
165
|
+
...props
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
return /* @__PURE__ */ jsx(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
role: "separator",
|
|
173
|
+
"aria-orientation": "vertical",
|
|
174
|
+
className: cn(
|
|
175
|
+
"inline-block w-px border-l self-stretch",
|
|
176
|
+
dividerVariants({ variant, color }),
|
|
177
|
+
className
|
|
178
|
+
),
|
|
179
|
+
style: spacing ? { margin: spacing } : void 0,
|
|
180
|
+
...props
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
Divider.displayName = "Divider";
|
|
186
|
+
var divider_default = Divider;
|
|
187
|
+
|
|
188
|
+
export { divider_default as Divider };
|
|
56
189
|
//# sourceMappingURL=index.js.map
|
|
57
190
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../src/divider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAM,eAAA,GAAkB,IAAI,EAAA,EAAI;AAAA,EAC9B,QAAA,EAAU;AAAA,IACR,WAAA,EAAa;AAAA,MACX,UAAA,EAAY,QAAA;AAAA,MACZ,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,OAAA,EAAS;AAAA,MACP,KAAA,EAAO,cAAA;AAAA,MACP,MAAA,EAAQ,eAAA;AAAA,MACR,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,eAAA;AAAA,MACT,OAAA,EAAS,gBAAA;AAAA,MACT,SAAA,EAAW,kBAAA;AAAA,MACX,MAAA,EAAQ,eAAA;AAAA,MACR,OAAA,EAAS,gBAAA;AAAA,MACT,KAAA,EAAO,cAAA;AAAA,MACP,OAAA,EAAS,gBAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,WAAA,EAAa,YAAA;AAAA,IACb,OAAA,EAAS,OAAA;AAAA,IACT,KAAA,EAAO;AAAA;AAEX,CAAC,CAAA;AAOD,IAAM,gBAAA,GAAmB;AAAA,EACvB,IAAA,EAAM;AAAA,IACJ,MAAA,EAAQ,sCAAA;AAAA,IACR,KAAA,EAAO;AAAA,GACT;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ,wCAAA;AAAA,IACR,KAAA,EAAO;AAAA,GACT;AAAA,EACA,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ,uCAAA;AAAA,IACR,KAAA,EAAO;AAAA;AAEX,CAAA;AAmCA,IAAM,UAAU,KAAA,CAAM,IAAA;AAAA,EACpB,CAAC;AAAA,IACC,WAAA,GAAc,YAAA;AAAA,IACd,OAAA,GAAU,OAAA;AAAA,IACV,KAAA,GAAQ,SAAA;AAAA,IACR,QAAA;AAAA,IACA,SAAA,GAAY,QAAA;AAAA,IACZ,OAAA;AAAA,IACA,SAAA;AAAA,IACA,GAAG;AAAA,GACL,KAAM;AACJ,IAAA,MAAM,OAAA,GAAU,QAAQ,QAAQ,CAAA;AAMhC,IAAA,IAAI,gBAAgB,YAAA,EAAc;AAChC,MAAA,IAAI,OAAA,EAAS;AACX,QAAA,uBACE,IAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAK,WAAA;AAAA,YACL,kBAAA,EAAiB,YAAA;AAAA,YACjB,SAAA,EAAW,EAAA;AAAA,cACT,wEAAA;AAAA,cACA;AAAA,aACF;AAAA,YACA,KAAA,EAAO,OAAA,GAAU,EAAE,MAAA,EAAQ,SAAQ,GAAI,MAAA;AAAA,YACtC,GAAG,KAAA;AAAA,YAEJ,QAAA,EAAA;AAAA,8BAAA,GAAA;AAAA,gBAAC,KAAA;AAAA,gBAAA;AAAA,kBACC,SAAA,EAAW,EAAA;AAAA,oBACT,UAAA;AAAA,oBACA,eAAA,CAAgB,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AAAA,oBAClC,gBAAA,CAAiB,SAAS,CAAA,CAAE;AAAA;AAC9B;AAAA,eACF;AAAA,8BACA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,iCAAA,EAAmC,QAAA,EAAS,CAAA;AAAA,8BAC5D,GAAA;AAAA,gBAAC,KAAA;AAAA,gBAAA;AAAA,kBACC,SAAA,EAAW,EAAA;AAAA,oBACT,UAAA;AAAA,oBACA,eAAA,CAAgB,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AAAA,oBAClC,gBAAA,CAAiB,SAAS,CAAA,CAAE;AAAA;AAC9B;AAAA;AACF;AAAA;AAAA,SACF;AAAA,MAEJ;AAEA,MAAA,uBACE,GAAA;AAAA,QAAC,IAAA;AAAA,QAAA;AAAA,UACC,IAAA,EAAK,WAAA;AAAA,UACL,kBAAA,EAAiB,YAAA;AAAA,UACjB,SAAA,EAAW,EAAA;AAAA,YACT,UAAA;AAAA,YACA,eAAA,CAAgB,EAAE,WAAA,EAAa,OAAA,EAAS,OAAO,CAAA;AAAA,YAC/C;AAAA,WACF;AAAA,UACA,KAAA,EAAO,OAAA,GAAU,EAAE,MAAA,EAAQ,SAAQ,GAAI,MAAA;AAAA,UACtC,GAAG;AAAA;AAAA,OACN;AAAA,IAEJ;AAOA,IAAA,uBACE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,WAAA;AAAA,QACL,kBAAA,EAAiB,UAAA;AAAA,QACjB,SAAA,EAAW,EAAA;AAAA,UACT,yCAAA;AAAA,UACA,eAAA,CAAgB,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AAAA,UAClC;AAAA,SACF;AAAA,QACA,KAAA,EAAO,OAAA,GAAU,EAAE,MAAA,EAAQ,SAAQ,GAAI,MAAA;AAAA,QACtC,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ;AACF,CAAA;AAEA,OAAA,CAAQ,WAAA,GAAc,SAAA;AAGtB,IAAO,eAAA,GAAQ","file":"index.js","sourcesContent":["import { cva } from 'class-variance-authority'\nimport React from 'react'\n\nimport { cn } from '../utils'\nimport type { DividerProps } from './types'\n\n/**\n * Class variance authority configuration for the Divider component\n * Defines style variants for orientation, line style, color, and text alignment\n */\nconst dividerVariants = cva('', {\n variants: {\n orientation: {\n horizontal: 'w-full',\n vertical: 'h-full',\n },\n variant: {\n solid: 'border-solid',\n dashed: 'border-dashed',\n dotted: 'border-dotted',\n },\n color: {\n default: 'border-border',\n primary: 'border-primary',\n secondary: 'border-secondary',\n accent: 'border-accent',\n success: 'border-success',\n error: 'border-error',\n warning: 'border-warning',\n info: 'border-info',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n variant: 'solid',\n color: 'default',\n },\n})\n\n/**\n * Text alignment styles for the label within the divider\n * Defines the width distribution of divider lines before and after the label\n * Uses design tokens for customizability\n */\nconst textAlignClasses = {\n left: {\n before: 'w-[var(--divider-left-before-width)]',\n after: 'w-[var(--divider-left-after-width)]',\n },\n center: {\n before: 'w-[var(--divider-center-before-width)]',\n after: 'w-[var(--divider-center-after-width)]',\n },\n right: {\n before: 'w-[var(--divider-right-before-width)]',\n after: 'w-[var(--divider-right-after-width)]',\n },\n}\n\n/**\n * Divider Component\n *\n * A visual separator that can be used to divide content sections.\n * Supports horizontal and vertical orientations, different line styles,\n * color variants, and optional label text.\n *\n * @component\n * @example\n * // Basic horizontal divider\n * <Divider />\n *\n * @example\n * // Divider with text label\n * <Divider>Section Title</Divider>\n *\n * @example\n * // Colored divider\n * <Divider color=\"primary\" />\n *\n * @example\n * // Vertical divider\n * <Divider orientation=\"vertical\" />\n *\n * @example\n * // Dashed divider with left-aligned text\n * <Divider variant=\"dashed\" textAlign=\"left\" color=\"accent\">\n * Options\n * </Divider>\n *\n * @param {DividerProps} props - Component props\n * @returns {JSX.Element} Rendered divider component\n */\nconst Divider = React.memo<DividerProps>(\n ({\n orientation = 'horizontal',\n variant = 'solid',\n color = 'default',\n children,\n textAlign = 'center',\n spacing,\n className,\n ...props\n }) => {\n const hasText = Boolean(children)\n\n /**\n * Render horizontal divider\n * Supports optional text label with configurable alignment\n */\n if (orientation === 'horizontal') {\n if (hasText) {\n return (\n <div\n role=\"separator\"\n aria-orientation=\"horizontal\"\n className={cn(\n 'flex items-center gap-[var(--divider-gap)] text-sm text-text-secondary',\n className,\n )}\n style={spacing ? { margin: spacing } : undefined}\n {...props}\n >\n <div\n className={cn(\n 'border-t',\n dividerVariants({ variant, color }),\n textAlignClasses[textAlign].before,\n )}\n />\n <span className=\"whitespace-nowrap flex-shrink-0\">{children}</span>\n <div\n className={cn(\n 'border-t',\n dividerVariants({ variant, color }),\n textAlignClasses[textAlign].after,\n )}\n />\n </div>\n )\n }\n\n return (\n <hr\n role=\"separator\"\n aria-orientation=\"horizontal\"\n className={cn(\n 'border-t',\n dividerVariants({ orientation, variant, color }),\n className,\n )}\n style={spacing ? { margin: spacing } : undefined}\n {...props}\n />\n )\n }\n\n /**\n * Render vertical divider\n * Text labels are not supported in vertical orientation\n */\n\n return (\n <div\n role=\"separator\"\n aria-orientation=\"vertical\"\n className={cn(\n 'inline-block w-px border-l self-stretch',\n dividerVariants({ variant, color }),\n className,\n )}\n style={spacing ? { margin: spacing } : undefined}\n {...props}\n />\n )\n },\n)\n\nDivider.displayName = 'Divider'\n\nexport type * from './types'\nexport default Divider\n"]}
|
package/dist/input/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PasswordInput, input_password_default as default } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PasswordInput, input_password_default as default } from '../chunk-6V5I5HJ2.js';
|
|
2
|
+
import '../chunk-XMKNYG7I.js';
|
|
3
3
|
import '../chunk-J3G5WWGR.js';
|
|
4
4
|
import '../chunk-YNNAOXU5.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/modal/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, modal_default as default } from '../chunk-
|
|
1
|
+
export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, modal_default as default } from '../chunk-Y5A26EGR.js';
|
|
2
2
|
import '../chunk-YNNAOXU5.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/progress/index.js
CHANGED
package/dist/radio/index.js
CHANGED
package/dist/select/index.js
CHANGED