@designil/labdsnov 0.0.0-stage → 1.0.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.
Files changed (243) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -2
  3. package/dist/components/Accordion/Accordion.d.ts +8 -0
  4. package/dist/components/Accordion/Accordion.js +82 -0
  5. package/dist/components/Accordion/Accordion.module.css.js +23 -0
  6. package/dist/components/Accordion/index.d.ts +1 -0
  7. package/dist/components/Alert/Alert.d.ts +17 -0
  8. package/dist/components/Alert/Alert.js +58 -0
  9. package/dist/components/Alert/Alert.module.css.js +17 -0
  10. package/dist/components/Alert/index.d.ts +1 -0
  11. package/dist/components/AlertDialog/AlertDialog.d.ts +29 -0
  12. package/dist/components/AlertDialog/AlertDialog.js +150 -0
  13. package/dist/components/AlertDialog/AlertDialog.module.css.js +23 -0
  14. package/dist/components/AlertDialog/index.d.ts +1 -0
  15. package/dist/components/Avatar/Avatar.d.ts +23 -0
  16. package/dist/components/Avatar/Avatar.js +84 -0
  17. package/dist/components/Avatar/Avatar.module.css.js +23 -0
  18. package/dist/components/Avatar/index.d.ts +1 -0
  19. package/dist/components/Badge/Badge.d.ts +17 -0
  20. package/dist/components/Badge/Badge.js +37 -0
  21. package/dist/components/Badge/Badge.module.css.js +19 -0
  22. package/dist/components/Badge/index.d.ts +1 -0
  23. package/dist/components/Breadcrumb/Breadcrumb.d.ts +15 -0
  24. package/dist/components/Breadcrumb/Breadcrumb.js +111 -0
  25. package/dist/components/Breadcrumb/Breadcrumb.module.css.js +19 -0
  26. package/dist/components/Breadcrumb/index.d.ts +1 -0
  27. package/dist/components/Button/Button.d.ts +39 -0
  28. package/dist/components/Button/Button.js +62 -0
  29. package/dist/components/Button/Button.module.css.js +37 -0
  30. package/dist/components/Button/index.d.ts +1 -0
  31. package/dist/components/ButtonGroup/ButtonGroup.d.ts +21 -0
  32. package/dist/components/ButtonGroup/ButtonGroup.js +59 -0
  33. package/dist/components/ButtonGroup/ButtonGroup.module.css.js +15 -0
  34. package/dist/components/ButtonGroup/index.d.ts +1 -0
  35. package/dist/components/Calendar/Calendar.d.ts +17 -0
  36. package/dist/components/Calendar/Calendar.js +154 -0
  37. package/dist/components/Calendar/Calendar.module.css.js +67 -0
  38. package/dist/components/Calendar/index.d.ts +1 -0
  39. package/dist/components/Card/Card.d.ts +20 -0
  40. package/dist/components/Card/Card.js +87 -0
  41. package/dist/components/Card/Card.module.css.js +23 -0
  42. package/dist/components/Card/index.d.ts +1 -0
  43. package/dist/components/Chart/Chart.d.ts +59 -0
  44. package/dist/components/Chart/Chart.js +199 -0
  45. package/dist/components/Chart/Chart.module.css.js +47 -0
  46. package/dist/components/Chart/index.d.ts +1 -0
  47. package/dist/components/Checkbox/Checkbox.d.ts +4 -0
  48. package/dist/components/Checkbox/Checkbox.js +44 -0
  49. package/dist/components/Checkbox/Checkbox.module.css.js +13 -0
  50. package/dist/components/Checkbox/index.d.ts +1 -0
  51. package/dist/components/Collapsible/Collapsible.d.ts +8 -0
  52. package/dist/components/Collapsible/Collapsible.js +28 -0
  53. package/dist/components/Collapsible/Collapsible.module.css.js +7 -0
  54. package/dist/components/Collapsible/index.d.ts +1 -0
  55. package/dist/components/Combobox/Combobox.d.ts +36 -0
  56. package/dist/components/Combobox/Combobox.js +296 -0
  57. package/dist/components/Combobox/Combobox.module.css.js +39 -0
  58. package/dist/components/Combobox/index.d.ts +1 -0
  59. package/dist/components/DatePicker/DatePicker.d.ts +28 -0
  60. package/dist/components/DatePicker/DatePicker.js +73 -0
  61. package/dist/components/DatePicker/DatePicker.module.css.js +9 -0
  62. package/dist/components/DatePicker/index.d.ts +1 -0
  63. package/dist/components/Dialog/Dialog.d.ts +27 -0
  64. package/dist/components/Dialog/Dialog.js +144 -0
  65. package/dist/components/Dialog/Dialog.module.css.js +29 -0
  66. package/dist/components/Dialog/index.d.ts +1 -0
  67. package/dist/components/Drawer/Drawer.d.ts +22 -0
  68. package/dist/components/Drawer/Drawer.js +166 -0
  69. package/dist/components/Drawer/Drawer.module.css.js +23 -0
  70. package/dist/components/Drawer/index.d.ts +1 -0
  71. package/dist/components/DropdownMenu/DropdownMenu.d.ts +32 -0
  72. package/dist/components/DropdownMenu/DropdownMenu.js +245 -0
  73. package/dist/components/DropdownMenu/DropdownMenu.module.css.js +33 -0
  74. package/dist/components/DropdownMenu/index.d.ts +1 -0
  75. package/dist/components/Empty/Empty.d.ts +18 -0
  76. package/dist/components/Empty/Empty.js +76 -0
  77. package/dist/components/Empty/Empty.module.css.js +21 -0
  78. package/dist/components/Empty/index.d.ts +1 -0
  79. package/dist/components/Field/Field.d.ts +53 -0
  80. package/dist/components/Field/Field.js +172 -0
  81. package/dist/components/Field/Field.module.css.js +41 -0
  82. package/dist/components/Field/index.d.ts +1 -0
  83. package/dist/components/FundCard/FundCard.d.ts +18 -0
  84. package/dist/components/FundCard/FundCard.js +66 -0
  85. package/dist/components/FundCard/FundCard.module.css.js +25 -0
  86. package/dist/components/FundCard/index.d.ts +1 -0
  87. package/dist/components/HoverCard/HoverCard.d.ts +8 -0
  88. package/dist/components/HoverCard/HoverCard.js +42 -0
  89. package/dist/components/HoverCard/HoverCard.module.css.js +9 -0
  90. package/dist/components/HoverCard/index.d.ts +1 -0
  91. package/dist/components/Input/Input.d.ts +12 -0
  92. package/dist/components/Input/Input.js +23 -0
  93. package/dist/components/Input/Input.module.css.js +11 -0
  94. package/dist/components/Input/index.d.ts +1 -0
  95. package/dist/components/InputGroup/InputGroup.d.ts +39 -0
  96. package/dist/components/InputGroup/InputGroup.js +103 -0
  97. package/dist/components/InputGroup/InputGroup.module.css.js +31 -0
  98. package/dist/components/InputGroup/index.d.ts +1 -0
  99. package/dist/components/InputOTP/InputOTP.d.ts +18 -0
  100. package/dist/components/InputOTP/InputOTP.js +72 -0
  101. package/dist/components/InputOTP/InputOTP.module.css.js +19 -0
  102. package/dist/components/InputOTP/index.d.ts +1 -0
  103. package/dist/components/Kbd/Kbd.d.ts +5 -0
  104. package/dist/components/Kbd/Kbd.js +20 -0
  105. package/dist/components/Kbd/Kbd.module.css.js +9 -0
  106. package/dist/components/Kbd/index.d.ts +1 -0
  107. package/dist/components/Label/Label.d.ts +7 -0
  108. package/dist/components/Label/Label.js +17 -0
  109. package/dist/components/Label/Label.module.css.js +9 -0
  110. package/dist/components/Label/index.d.ts +1 -0
  111. package/dist/components/NavigationMenu/NavigationMenu.d.ts +20 -0
  112. package/dist/components/NavigationMenu/NavigationMenu.js +153 -0
  113. package/dist/components/NavigationMenu/NavigationMenu.module.css.js +29 -0
  114. package/dist/components/NavigationMenu/index.d.ts +1 -0
  115. package/dist/components/Pagination/Pagination.d.ts +29 -0
  116. package/dist/components/Pagination/Pagination.js +133 -0
  117. package/dist/components/Pagination/Pagination.module.css.js +19 -0
  118. package/dist/components/Pagination/index.d.ts +1 -0
  119. package/dist/components/Popover/Popover.d.ts +10 -0
  120. package/dist/components/Popover/Popover.js +78 -0
  121. package/dist/components/Popover/Popover.module.css.js +15 -0
  122. package/dist/components/Popover/index.d.ts +1 -0
  123. package/dist/components/Progress/Progress.d.ts +12 -0
  124. package/dist/components/Progress/Progress.js +74 -0
  125. package/dist/components/Progress/Progress.module.css.js +15 -0
  126. package/dist/components/Progress/index.d.ts +1 -0
  127. package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
  128. package/dist/components/RadioGroup/RadioGroup.js +37 -0
  129. package/dist/components/RadioGroup/RadioGroup.module.css.js +13 -0
  130. package/dist/components/RadioGroup/index.d.ts +1 -0
  131. package/dist/components/ScrollArea/ScrollArea.d.ts +9 -0
  132. package/dist/components/ScrollArea/ScrollArea.js +60 -0
  133. package/dist/components/ScrollArea/ScrollArea.module.css.js +17 -0
  134. package/dist/components/ScrollArea/index.d.ts +1 -0
  135. package/dist/components/Select/Select.d.ts +23 -0
  136. package/dist/components/Select/Select.js +188 -0
  137. package/dist/components/Select/Select.module.css.js +37 -0
  138. package/dist/components/Select/index.d.ts +1 -0
  139. package/dist/components/Separator/Separator.d.ts +4 -0
  140. package/dist/components/Separator/Separator.js +22 -0
  141. package/dist/components/Separator/Separator.module.css.js +7 -0
  142. package/dist/components/Separator/index.d.ts +1 -0
  143. package/dist/components/Skeleton/Skeleton.d.ts +4 -0
  144. package/dist/components/Skeleton/Skeleton.js +16 -0
  145. package/dist/components/Skeleton/Skeleton.module.css.js +7 -0
  146. package/dist/components/Skeleton/index.d.ts +1 -0
  147. package/dist/components/Slider/Slider.d.ts +13 -0
  148. package/dist/components/Slider/Slider.js +61 -0
  149. package/dist/components/Slider/Slider.module.css.js +15 -0
  150. package/dist/components/Slider/index.d.ts +1 -0
  151. package/dist/components/Spinner/Spinner.d.ts +6 -0
  152. package/dist/components/Spinner/Spinner.js +22 -0
  153. package/dist/components/Spinner/Spinner.module.css.js +7 -0
  154. package/dist/components/Spinner/index.d.ts +1 -0
  155. package/dist/components/Switch/Switch.d.ts +13 -0
  156. package/dist/components/Switch/Switch.js +29 -0
  157. package/dist/components/Switch/Switch.module.css.js +13 -0
  158. package/dist/components/Switch/index.d.ts +1 -0
  159. package/dist/components/Table/Table.d.ts +12 -0
  160. package/dist/components/Table/Table.js +96 -0
  161. package/dist/components/Table/Table.module.css.js +23 -0
  162. package/dist/components/Table/index.d.ts +1 -0
  163. package/dist/components/Tabs/Tabs.d.ts +16 -0
  164. package/dist/components/Tabs/Tabs.js +55 -0
  165. package/dist/components/Tabs/Tabs.module.css.js +17 -0
  166. package/dist/components/Tabs/index.d.ts +1 -0
  167. package/dist/components/Textarea/Textarea.d.ts +4 -0
  168. package/dist/components/Textarea/Textarea.js +16 -0
  169. package/dist/components/Textarea/Textarea.module.css.js +7 -0
  170. package/dist/components/Textarea/index.d.ts +1 -0
  171. package/dist/components/Toaster/Toaster.d.ts +8 -0
  172. package/dist/components/Toaster/Toaster.js +85 -0
  173. package/dist/components/Toaster/Toaster.module.css.js +11 -0
  174. package/dist/components/Toaster/index.d.ts +1 -0
  175. package/dist/components/Toggle/Toggle.d.ts +26 -0
  176. package/dist/components/Toggle/Toggle.js +35 -0
  177. package/dist/components/Toggle/Toggle.module.css.js +17 -0
  178. package/dist/components/Toggle/index.d.ts +1 -0
  179. package/dist/components/ToggleGroup/ToggleGroup.d.ts +20 -0
  180. package/dist/components/ToggleGroup/ToggleGroup.js +64 -0
  181. package/dist/components/ToggleGroup/ToggleGroup.module.css.js +11 -0
  182. package/dist/components/ToggleGroup/index.d.ts +1 -0
  183. package/dist/components/Tooltip/Tooltip.d.ts +8 -0
  184. package/dist/components/Tooltip/Tooltip.js +61 -0
  185. package/dist/components/Tooltip/Tooltip.module.css.js +11 -0
  186. package/dist/components/Tooltip/index.d.ts +1 -0
  187. package/dist/index.d.ts +47 -0
  188. package/dist/index.js +265 -0
  189. package/dist/styles.css +1 -0
  190. package/docs/Accessibility.md +129 -0
  191. package/docs/Colors.md +96 -0
  192. package/docs/ComponentTokens.md +191 -0
  193. package/docs/Contributing.md +97 -0
  194. package/docs/GettingStarted.md +106 -0
  195. package/docs/Radius.md +25 -0
  196. package/docs/Typography.md +38 -0
  197. package/package.json +79 -3
  198. package/src/components/Accordion/Accordion.md +102 -0
  199. package/src/components/Alert/Alert.md +90 -0
  200. package/src/components/AlertDialog/AlertDialog.md +131 -0
  201. package/src/components/Avatar/Avatar.md +77 -0
  202. package/src/components/Badge/Badge.md +124 -0
  203. package/src/components/Breadcrumb/Breadcrumb.md +110 -0
  204. package/src/components/Button/Button.md +165 -0
  205. package/src/components/ButtonGroup/ButtonGroup.md +96 -0
  206. package/src/components/Calendar/Calendar.md +111 -0
  207. package/src/components/Card/Card.md +99 -0
  208. package/src/components/Chart/Chart.md +112 -0
  209. package/src/components/Checkbox/Checkbox.md +105 -0
  210. package/src/components/Collapsible/Collapsible.md +86 -0
  211. package/src/components/Combobox/Combobox.md +143 -0
  212. package/src/components/DatePicker/DatePicker.md +82 -0
  213. package/src/components/Dialog/Dialog.md +193 -0
  214. package/src/components/Drawer/Drawer.md +125 -0
  215. package/src/components/DropdownMenu/DropdownMenu.md +151 -0
  216. package/src/components/Empty/Empty.md +90 -0
  217. package/src/components/Field/Field.md +139 -0
  218. package/src/components/FundCard/FundCard.md +93 -0
  219. package/src/components/HoverCard/HoverCard.md +100 -0
  220. package/src/components/Input/Input.md +115 -0
  221. package/src/components/InputGroup/InputGroup.md +115 -0
  222. package/src/components/InputOTP/InputOTP.md +105 -0
  223. package/src/components/Kbd/Kbd.md +85 -0
  224. package/src/components/Label/Label.md +75 -0
  225. package/src/components/NavigationMenu/NavigationMenu.md +128 -0
  226. package/src/components/Pagination/Pagination.md +115 -0
  227. package/src/components/Popover/Popover.md +111 -0
  228. package/src/components/Progress/Progress.md +83 -0
  229. package/src/components/RadioGroup/RadioGroup.md +123 -0
  230. package/src/components/ScrollArea/ScrollArea.md +88 -0
  231. package/src/components/Select/Select.md +170 -0
  232. package/src/components/Separator/Separator.md +68 -0
  233. package/src/components/Skeleton/Skeleton.md +68 -0
  234. package/src/components/Slider/Slider.md +107 -0
  235. package/src/components/Spinner/Spinner.md +64 -0
  236. package/src/components/Switch/Switch.md +101 -0
  237. package/src/components/Table/Table.md +117 -0
  238. package/src/components/Tabs/Tabs.md +173 -0
  239. package/src/components/Textarea/Textarea.md +89 -0
  240. package/src/components/Toaster/Toaster.md +107 -0
  241. package/src/components/Toggle/Toggle.md +103 -0
  242. package/src/components/ToggleGroup/ToggleGroup.md +95 -0
  243. package/src/components/Tooltip/Tooltip.md +104 -0
@@ -0,0 +1,103 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as u } from "cn";
3
+ import t from "./InputGroup.module.css.js";
4
+ import { Button as l } from "../Button/Button.js";
5
+ import { Input as p } from "../Input/Input.js";
6
+ import { Textarea as c } from "../Textarea/Textarea.js";
7
+ const i = {
8
+ "inline-start": t.addonInlineStart,
9
+ "inline-end": t.addonInlineEnd,
10
+ "block-start": t.addonBlockStart,
11
+ "block-end": t.addonBlockEnd
12
+ }, d = {
13
+ xs: t.buttonXs,
14
+ sm: t.buttonSm,
15
+ "icon-xs": t.buttonIconXs,
16
+ "icon-sm": t.buttonIconSm
17
+ };
18
+ function G({ className: n, ...o }) {
19
+ return /* @__PURE__ */ r(
20
+ "div",
21
+ {
22
+ "data-slot": "input-group",
23
+ role: "group",
24
+ className: u(t.root, n),
25
+ ...o
26
+ }
27
+ );
28
+ }
29
+ function N({
30
+ className: n,
31
+ align: o = "inline-start",
32
+ onClick: e,
33
+ ...s
34
+ }) {
35
+ return /* @__PURE__ */ r(
36
+ "div",
37
+ {
38
+ role: "group",
39
+ "data-slot": "input-group-addon",
40
+ "data-align": o,
41
+ className: u(t.addon, i[o], n),
42
+ onClick: (a) => {
43
+ e?.(a), !a.target.closest("button") && a.currentTarget.parentElement?.querySelector("input")?.focus();
44
+ },
45
+ ...s
46
+ }
47
+ );
48
+ }
49
+ function S({
50
+ className: n,
51
+ type: o = "button",
52
+ variant: e = "ghost",
53
+ size: s = "xs",
54
+ ...a
55
+ }) {
56
+ return /* @__PURE__ */ r(
57
+ l,
58
+ {
59
+ type: o,
60
+ "data-size": s,
61
+ variant: e,
62
+ className: u(t.button, d[s], n),
63
+ ...a
64
+ }
65
+ );
66
+ }
67
+ function k({ className: n, ...o }) {
68
+ return /* @__PURE__ */ r("span", { className: u(t.text, n), ...o });
69
+ }
70
+ function T({
71
+ className: n,
72
+ ...o
73
+ }) {
74
+ return /* @__PURE__ */ r(
75
+ p,
76
+ {
77
+ "data-slot": "input-group-control",
78
+ className: u(t.control, n),
79
+ ...o
80
+ }
81
+ );
82
+ }
83
+ function B({
84
+ className: n,
85
+ ...o
86
+ }) {
87
+ return /* @__PURE__ */ r(
88
+ c,
89
+ {
90
+ "data-slot": "input-group-control",
91
+ className: u(t.control, t.controlTextarea, n),
92
+ ...o
93
+ }
94
+ );
95
+ }
96
+ export {
97
+ G as InputGroup,
98
+ N as InputGroupAddon,
99
+ S as InputGroupButton,
100
+ T as InputGroupInput,
101
+ k as InputGroupText,
102
+ B as InputGroupTextarea
103
+ };
@@ -0,0 +1,31 @@
1
+ const o = "dsadv_root_posWH", n = "dsadv_control_Yvu6c", t = "dsadv_controlTextarea_69CON", d = "dsadv_addon_LvF7G", a = "dsadv_addonInlineStart_2BkIM", s = "dsadv_addonInlineEnd_VRal0", c = "dsadv_addonBlockStart_urNnj", _ = "dsadv_addonBlockEnd_2soY4", l = "dsadv_button_mCbqX", r = "dsadv_buttonXs_NqljX", e = "dsadv_buttonIconXs_KU4cu", u = "dsadv_buttonIconSm_NqS6Y", v = "dsadv_text_UVXkQ", b = {
2
+ root: o,
3
+ control: n,
4
+ controlTextarea: t,
5
+ addon: d,
6
+ addonInlineStart: a,
7
+ addonInlineEnd: s,
8
+ addonBlockStart: c,
9
+ addonBlockEnd: _,
10
+ button: l,
11
+ buttonXs: r,
12
+ buttonIconXs: e,
13
+ buttonIconSm: u,
14
+ text: v
15
+ };
16
+ export {
17
+ d as addon,
18
+ _ as addonBlockEnd,
19
+ c as addonBlockStart,
20
+ s as addonInlineEnd,
21
+ a as addonInlineStart,
22
+ l as button,
23
+ u as buttonIconSm,
24
+ e as buttonIconXs,
25
+ r as buttonXs,
26
+ n as control,
27
+ t as controlTextarea,
28
+ b as default,
29
+ o as root,
30
+ v as text
31
+ };
@@ -0,0 +1 @@
1
+ export * from "./InputGroup";
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { OTPInput } from "input-otp";
3
+ /**
4
+ * One-time code field (e.g. a 6-digit sign-in code), one box per character.
5
+ * Wraps the `input-otp` library: pass `maxLength` and render one
6
+ * `InputOTPSlot` per character.
7
+ */
8
+ declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
9
+ containerClassName?: string;
10
+ }): React.JSX.Element;
11
+ declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ /** One character box. `index` is its position, from 0. */
13
+ declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
14
+ index: number;
15
+ }): React.JSX.Element;
16
+ /** Dash between groups of boxes. */
17
+ declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): React.JSX.Element;
18
+ export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
@@ -0,0 +1,72 @@
1
+ "use client";
2
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
3
+ import * as l from "react";
4
+ import { MinusSignIcon as m } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as d } from "@hugeicons/react";
6
+ import { cn as n } from "cn";
7
+ import { OTPInput as f, OTPInputContext as I } from "input-otp";
8
+ import o from "./InputOTP.module.css.js";
9
+ function x({
10
+ className: t,
11
+ containerClassName: a,
12
+ ...s
13
+ }) {
14
+ return /* @__PURE__ */ r(
15
+ f,
16
+ {
17
+ "data-slot": "input-otp",
18
+ containerClassName: n(o.container, a),
19
+ spellCheck: !1,
20
+ className: n(o.input, t),
21
+ ...s
22
+ }
23
+ );
24
+ }
25
+ function C({ className: t, ...a }) {
26
+ return /* @__PURE__ */ r(
27
+ "div",
28
+ {
29
+ "data-slot": "input-otp-group",
30
+ className: n(o.group, t),
31
+ ...a
32
+ }
33
+ );
34
+ }
35
+ function g({
36
+ index: t,
37
+ className: a,
38
+ ...s
39
+ }) {
40
+ const e = l.useContext(I), { char: i, hasFakeCaret: p, isActive: c } = e?.slots[t] ?? {};
41
+ return /* @__PURE__ */ u(
42
+ "div",
43
+ {
44
+ "data-slot": "input-otp-slot",
45
+ "data-active": c,
46
+ className: n(o.slot, a),
47
+ ...s,
48
+ children: [
49
+ i,
50
+ p && /* @__PURE__ */ r("div", { className: o.caretWrap, children: /* @__PURE__ */ r("div", { className: o.caret }) })
51
+ ]
52
+ }
53
+ );
54
+ }
55
+ function k({ ...t }) {
56
+ return /* @__PURE__ */ r(
57
+ "div",
58
+ {
59
+ "data-slot": "input-otp-separator",
60
+ className: o.separator,
61
+ role: "separator",
62
+ ...t,
63
+ children: /* @__PURE__ */ r(d, { icon: m, strokeWidth: 2 })
64
+ }
65
+ );
66
+ }
67
+ export {
68
+ x as InputOTP,
69
+ C as InputOTPGroup,
70
+ k as InputOTPSeparator,
71
+ g as InputOTPSlot
72
+ };
@@ -0,0 +1,19 @@
1
+ const t = "dsadv_container_XgkoZ", a = "dsadv_input_GURRg", s = "dsadv_group_F3UGo", o = "dsadv_slot_djlMS", r = "dsadv_caretWrap_ZH1Xw", c = "dsadv_caret_tUH3q", n = "dsadv_separator_F2JVv", d = {
2
+ container: t,
3
+ input: a,
4
+ group: s,
5
+ slot: o,
6
+ caretWrap: r,
7
+ caret: c,
8
+ separator: n
9
+ };
10
+ export {
11
+ c as caret,
12
+ r as caretWrap,
13
+ t as container,
14
+ d as default,
15
+ s as group,
16
+ a as input,
17
+ n as separator,
18
+ o as slot
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./InputOTP";
@@ -0,0 +1,5 @@
1
+ /** One keyboard key, e.g. `<Kbd>⌘</Kbd>` or `<Kbd>Enter</Kbd>`. */
2
+ declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
3
+ /** Keys pressed together, e.g. ⌘ + K. Put the keys (and any "+" text) inside. */
4
+ declare function KbdGroup({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
5
+ export { Kbd, KbdGroup };
@@ -0,0 +1,20 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { cn as s } from "cn";
3
+ import a from "./Kbd.module.css.js";
4
+ function p({ className: o, ...r }) {
5
+ return /* @__PURE__ */ t("kbd", { "data-slot": "kbd", className: s(a.root, o), ...r });
6
+ }
7
+ function u({ className: o, ...r }) {
8
+ return /* @__PURE__ */ t(
9
+ "kbd",
10
+ {
11
+ "data-slot": "kbd-group",
12
+ className: s(a.group, o),
13
+ ...r
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ p as Kbd,
19
+ u as KbdGroup
20
+ };
@@ -0,0 +1,9 @@
1
+ const o = "dsadv_root_6k-NF", t = "dsadv_group_HFWZB", s = {
2
+ root: o,
3
+ group: t
4
+ };
5
+ export {
6
+ s as default,
7
+ t as group,
8
+ o as root
9
+ };
@@ -0,0 +1 @@
1
+ export * from "./Kbd";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ type LabelProps = React.ComponentProps<"label"> & {
3
+ /** Marks the field as required with a red asterisk. */
4
+ required?: boolean;
5
+ };
6
+ declare function Label({ className, required, ...props }: LabelProps): React.JSX.Element;
7
+ export { Label, type LabelProps };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import { cn as a } from "cn";
4
+ import e from "./Label.module.css.js";
5
+ function f({ className: r, required: o = !1, ...t }) {
6
+ return /* @__PURE__ */ l(
7
+ "label",
8
+ {
9
+ "data-slot": "label",
10
+ className: a(e.root, o && e.required, r),
11
+ ...t
12
+ }
13
+ );
14
+ }
15
+ export {
16
+ f as Label
17
+ };
@@ -0,0 +1,9 @@
1
+ const r = "dsadv_root_e6HXZ", e = "dsadv_required_Ggrzc", o = {
2
+ root: r,
3
+ required: e
4
+ };
5
+ export {
6
+ o as default,
7
+ e as required,
8
+ r as root
9
+ };
@@ -0,0 +1 @@
1
+ export * from "./Label";
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
3
+ /**
4
+ * Site navigation bar. Items are plain links or triggers that open a panel
5
+ * of links; panels share one popup that animates between them.
6
+ */
7
+ declare function NavigationMenu({ align, className, children, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props, "align">): React.JSX.Element;
8
+ declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): React.JSX.Element;
9
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>): React.JSX.Element;
10
+ /** Class names for a top-level link that should look like a trigger. */
11
+ declare function navigationMenuTriggerStyle(): string;
12
+ /** Opens its item's `NavigationMenuContent`. The chevron flips while open. */
13
+ declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuPrimitive.Trigger.Props): React.JSX.Element;
14
+ declare function NavigationMenuContent({ className, ...props }: NavigationMenuPrimitive.Content.Props): React.JSX.Element;
15
+ /** The shared popup that holds the open panel. Rendered by `NavigationMenu`. */
16
+ declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenuPrimitive.Positioner.Props): React.JSX.Element;
17
+ /** A link, top-level or inside a panel. `active` marks the current page. */
18
+ declare function NavigationMenuLink({ className, ...props }: NavigationMenuPrimitive.Link.Props): React.JSX.Element;
19
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Icon>): React.JSX.Element;
20
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, navigationMenuTriggerStyle, };
@@ -0,0 +1,153 @@
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { NavigationMenu as o } from "@base-ui/react/navigation-menu";
3
+ import { ArrowDown01Icon as g } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as l } from "@hugeicons/react";
5
+ import { cn as e } from "cn";
6
+ import i from "./NavigationMenu.module.css.js";
7
+ function I({
8
+ align: n = "start",
9
+ className: t,
10
+ children: r,
11
+ ...s
12
+ }) {
13
+ return /* @__PURE__ */ c(
14
+ o.Root,
15
+ {
16
+ "data-slot": "navigation-menu",
17
+ className: e(i.root, t),
18
+ ...s,
19
+ children: [
20
+ r,
21
+ /* @__PURE__ */ a(N, { align: n })
22
+ ]
23
+ }
24
+ );
25
+ }
26
+ function k({
27
+ className: n,
28
+ ...t
29
+ }) {
30
+ return /* @__PURE__ */ a(
31
+ o.List,
32
+ {
33
+ "data-slot": "navigation-menu-list",
34
+ className: e(i.list, n),
35
+ ...t
36
+ }
37
+ );
38
+ }
39
+ function w({
40
+ className: n,
41
+ ...t
42
+ }) {
43
+ return /* @__PURE__ */ a(
44
+ o.Item,
45
+ {
46
+ "data-slot": "navigation-menu-item",
47
+ className: e(i.item, n),
48
+ ...t
49
+ }
50
+ );
51
+ }
52
+ function L() {
53
+ return i.trigger;
54
+ }
55
+ function P({
56
+ className: n,
57
+ children: t,
58
+ ...r
59
+ }) {
60
+ return /* @__PURE__ */ c(
61
+ o.Trigger,
62
+ {
63
+ "data-slot": "navigation-menu-trigger",
64
+ className: e(i.trigger, n),
65
+ ...r,
66
+ children: [
67
+ t,
68
+ " ",
69
+ /* @__PURE__ */ a(
70
+ l,
71
+ {
72
+ icon: g,
73
+ strokeWidth: 2,
74
+ className: i.triggerIcon,
75
+ "aria-hidden": "true"
76
+ }
77
+ )
78
+ ]
79
+ }
80
+ );
81
+ }
82
+ function x({
83
+ className: n,
84
+ ...t
85
+ }) {
86
+ return /* @__PURE__ */ a(
87
+ o.Content,
88
+ {
89
+ "data-slot": "navigation-menu-content",
90
+ className: e(i.content, n),
91
+ ...t
92
+ }
93
+ );
94
+ }
95
+ function N({
96
+ className: n,
97
+ side: t = "bottom",
98
+ sideOffset: r = 8,
99
+ align: s = "start",
100
+ alignOffset: u = 0,
101
+ ...m
102
+ }) {
103
+ return /* @__PURE__ */ a(o.Portal, { children: /* @__PURE__ */ a(
104
+ o.Positioner,
105
+ {
106
+ side: t,
107
+ sideOffset: r,
108
+ align: s,
109
+ alignOffset: u,
110
+ className: e(i.positioner, n),
111
+ ...m,
112
+ children: /* @__PURE__ */ a(o.Popup, { className: i.popup, children: /* @__PURE__ */ a(o.Viewport, { className: i.viewport }) })
113
+ }
114
+ ) });
115
+ }
116
+ function T({
117
+ className: n,
118
+ ...t
119
+ }) {
120
+ return /* @__PURE__ */ a(
121
+ o.Link,
122
+ {
123
+ "data-slot": "navigation-menu-link",
124
+ className: e(i.link, n),
125
+ ...t
126
+ }
127
+ );
128
+ }
129
+ function j({
130
+ className: n,
131
+ ...t
132
+ }) {
133
+ return /* @__PURE__ */ a(
134
+ o.Icon,
135
+ {
136
+ "data-slot": "navigation-menu-indicator",
137
+ className: e(i.indicator, n),
138
+ ...t,
139
+ children: /* @__PURE__ */ a("div", { className: i.indicatorArrow })
140
+ }
141
+ );
142
+ }
143
+ export {
144
+ I as NavigationMenu,
145
+ x as NavigationMenuContent,
146
+ j as NavigationMenuIndicator,
147
+ w as NavigationMenuItem,
148
+ T as NavigationMenuLink,
149
+ k as NavigationMenuList,
150
+ N as NavigationMenuPositioner,
151
+ P as NavigationMenuTrigger,
152
+ L as navigationMenuTriggerStyle
153
+ };
@@ -0,0 +1,29 @@
1
+ const t = "dsadv_root_Nosqs", o = "dsadv_list_v9FNC", s = "dsadv_item_9RzZ7", i = "dsadv_trigger_2gBDu", r = "dsadv_triggerIcon_8bQez", n = "dsadv_content_Av3Es", d = "dsadv_positioner_XlwMW", c = "dsadv_popup_7glkr", _ = "dsadv_viewport_SIelp", e = "dsadv_link_67ULr", a = "dsadv_indicator_W1Z6F", p = "dsadv_indicatorArrow_bZ18Q", v = {
2
+ root: t,
3
+ list: o,
4
+ item: s,
5
+ trigger: i,
6
+ triggerIcon: r,
7
+ content: n,
8
+ positioner: d,
9
+ popup: c,
10
+ viewport: _,
11
+ link: e,
12
+ indicator: a,
13
+ indicatorArrow: p
14
+ };
15
+ export {
16
+ n as content,
17
+ v as default,
18
+ a as indicator,
19
+ p as indicatorArrow,
20
+ s as item,
21
+ e as link,
22
+ o as list,
23
+ c as popup,
24
+ d as positioner,
25
+ t as root,
26
+ i as trigger,
27
+ r as triggerIcon,
28
+ _ as viewport
29
+ };
@@ -0,0 +1 @@
1
+ export * from "./NavigationMenu";
@@ -0,0 +1,29 @@
1
+ import * as React from "react";
2
+ import { type ButtonSize } from "../Button";
3
+ /** Page links for a long list. Named "การแบ่งหน้า" for screen readers. */
4
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
5
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
6
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): React.JSX.Element;
7
+ type PaginationLinkProps = {
8
+ /** The current page: outline button with `aria-current="page"`. */
9
+ isActive?: boolean;
10
+ /** Button size; `icon` for page numbers, `default` for previous/next. */
11
+ size?: ButtonSize;
12
+ } & React.ComponentProps<"a">;
13
+ /**
14
+ * A page link, styled as a ghost icon button (outline when active). It is a
15
+ * plain `<a>` with button styles: rendering it through `Button` (as shadcn
16
+ * does) would give it `role="button"`, and screen readers would not call it a link.
17
+ */
18
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
19
+ /** "ก่อนหน้า" link. The text hides below 640px, leaving the arrow. */
20
+ declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
21
+ text?: string;
22
+ }): React.JSX.Element;
23
+ /** "ถัดไป" link. The text hides below 640px, leaving the arrow. */
24
+ declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
25
+ text?: string;
26
+ }): React.JSX.Element;
27
+ /** "…" between page numbers. */
28
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
29
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationLinkProps, };