@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,84 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Avatar as e } from "@base-ui/react/avatar";
3
+ import { cn as s } from "cn";
4
+ import r from "./Avatar.module.css.js";
5
+ const n = {
6
+ sm: r.sizeSm,
7
+ default: r.sizeDefault,
8
+ lg: r.sizeLg
9
+ };
10
+ function v({ className: t, size: a = "default", ...l }) {
11
+ return /* @__PURE__ */ o(
12
+ e.Root,
13
+ {
14
+ "data-slot": "avatar",
15
+ "data-size": a,
16
+ className: s(r.root, n[a], t),
17
+ ...l
18
+ }
19
+ );
20
+ }
21
+ function f({ className: t, ...a }) {
22
+ return /* @__PURE__ */ o(
23
+ e.Image,
24
+ {
25
+ "data-slot": "avatar-image",
26
+ className: s(r.image, t),
27
+ ...a
28
+ }
29
+ );
30
+ }
31
+ function d({
32
+ className: t,
33
+ ...a
34
+ }) {
35
+ return /* @__PURE__ */ o(
36
+ e.Fallback,
37
+ {
38
+ "data-slot": "avatar-fallback",
39
+ className: s(r.fallback, t),
40
+ ...a
41
+ }
42
+ );
43
+ }
44
+ function g({ className: t, ...a }) {
45
+ return /* @__PURE__ */ o(
46
+ "span",
47
+ {
48
+ "data-slot": "avatar-badge",
49
+ className: s(r.badge, t),
50
+ ...a
51
+ }
52
+ );
53
+ }
54
+ function p({ className: t, ...a }) {
55
+ return /* @__PURE__ */ o(
56
+ "div",
57
+ {
58
+ "data-slot": "avatar-group",
59
+ className: s(r.group, t),
60
+ ...a
61
+ }
62
+ );
63
+ }
64
+ function A({
65
+ className: t,
66
+ ...a
67
+ }) {
68
+ return /* @__PURE__ */ o(
69
+ "div",
70
+ {
71
+ "data-slot": "avatar-group-count",
72
+ className: s(r.groupCount, t),
73
+ ...a
74
+ }
75
+ );
76
+ }
77
+ export {
78
+ v as Avatar,
79
+ g as AvatarBadge,
80
+ d as AvatarFallback,
81
+ p as AvatarGroup,
82
+ A as AvatarGroupCount,
83
+ f as AvatarImage
84
+ };
@@ -0,0 +1,23 @@
1
+ const s = "dsadv_root_fXu-J", a = "dsadv_sizeSm_Rs-fa", o = "dsadv_sizeDefault_2UcHX", d = "dsadv_sizeLg_LuK6q", e = "dsadv_image_ieqGp", t = "dsadv_fallback_BWBXY", _ = "dsadv_badge_Oal8V", u = "dsadv_group_LHuq2", g = "dsadv_groupCount_9Qka7", c = {
2
+ root: s,
3
+ sizeSm: a,
4
+ sizeDefault: o,
5
+ sizeLg: d,
6
+ image: e,
7
+ fallback: t,
8
+ badge: _,
9
+ group: u,
10
+ groupCount: g
11
+ };
12
+ export {
13
+ _ as badge,
14
+ c as default,
15
+ t as fallback,
16
+ u as group,
17
+ g as groupCount,
18
+ e as image,
19
+ s as root,
20
+ o as sizeDefault,
21
+ d as sizeLg,
22
+ a as sizeSm
23
+ };
@@ -0,0 +1 @@
1
+ export * from "./Avatar";
@@ -0,0 +1,17 @@
1
+ import { useRender } from "@base-ui/react/use-render";
2
+ declare const variantClass: {
3
+ readonly default: string;
4
+ readonly secondary: string;
5
+ readonly outline: string;
6
+ readonly destructive: string;
7
+ readonly success: string;
8
+ readonly warning: string;
9
+ };
10
+ type BadgeVariant = keyof typeof variantClass;
11
+ type BadgeProps = useRender.ComponentProps<"span"> & {
12
+ /** Meaning of the label: `success` / `warning` / `destructive` for statuses and risk levels. */
13
+ variant?: BadgeVariant;
14
+ };
15
+ /** Short status label. Use `render={<a href="…" />}` to make it a link. */
16
+ declare function Badge({ className, variant, render, ...props }: BadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
17
+ export { Badge, type BadgeProps, type BadgeVariant };
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { mergeProps as s } from "@base-ui/react/merge-props";
3
+ import { useRender as o } from "@base-ui/react/use-render";
4
+ import { cn as i } from "cn";
5
+ import t from "./Badge.module.css.js";
6
+ const u = {
7
+ default: t.variantDefault,
8
+ secondary: t.variantSecondary,
9
+ outline: t.variantOutline,
10
+ destructive: t.variantDestructive,
11
+ success: t.variantSuccess,
12
+ warning: t.variantWarning
13
+ };
14
+ function f({
15
+ className: e,
16
+ variant: a = "default",
17
+ render: r,
18
+ ...n
19
+ }) {
20
+ return o({
21
+ defaultTagName: "span",
22
+ props: s(
23
+ {
24
+ className: i(t.root, u[a], e)
25
+ },
26
+ n
27
+ ),
28
+ render: r,
29
+ state: {
30
+ slot: "badge",
31
+ variant: a
32
+ }
33
+ });
34
+ }
35
+ export {
36
+ f as Badge
37
+ };
@@ -0,0 +1,19 @@
1
+ const a = "dsadv_root_5osNT", t = "dsadv_variantDefault_U2Duo", n = "dsadv_variantSecondary_mWYji", r = "dsadv_variantOutline_kFcuI", i = "dsadv_variantDestructive_MxSKa", s = "dsadv_variantSuccess_iVpS2", v = "dsadv_variantWarning_pxExD", c = {
2
+ root: a,
3
+ variantDefault: t,
4
+ variantSecondary: n,
5
+ variantOutline: r,
6
+ variantDestructive: i,
7
+ variantSuccess: s,
8
+ variantWarning: v
9
+ };
10
+ export {
11
+ c as default,
12
+ a as root,
13
+ t as variantDefault,
14
+ i as variantDestructive,
15
+ r as variantOutline,
16
+ n as variantSecondary,
17
+ s as variantSuccess,
18
+ v as variantWarning
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./Badge";
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ /** Trail of links from the home page to the current page. Named "เส้นทางนำทาง" for screen readers. */
4
+ declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
5
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
6
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
7
+ /** A link to an earlier page. Use `render={<Link href="…" />}` for Next.js links. */
8
+ declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
9
+ /** The current page: plain text, marked `aria-current="page"`. */
10
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
11
+ /** Chevron between items (pass children to use another symbol). Hidden from screen readers. */
12
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
13
+ /** "…" in place of hidden middle items. */
14
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
15
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
@@ -0,0 +1,111 @@
1
+ "use client";
2
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
3
+ import { mergeProps as l } from "@base-ui/react/merge-props";
4
+ import { useRender as c } from "@base-ui/react/use-render";
5
+ import { MoreHorizontalCircle01Icon as m, ArrowRight01Icon as u } from "@hugeicons/core-free-icons";
6
+ import { HugeiconsIcon as s } from "@hugeicons/react";
7
+ import { cn as i } from "cn";
8
+ import t from "./Breadcrumb.module.css.js";
9
+ function B({ className: r, ...e }) {
10
+ return /* @__PURE__ */ a(
11
+ "nav",
12
+ {
13
+ "aria-label": "เส้นทางนำทาง",
14
+ "data-slot": "breadcrumb",
15
+ className: r,
16
+ ...e
17
+ }
18
+ );
19
+ }
20
+ function k({ className: r, ...e }) {
21
+ return /* @__PURE__ */ a(
22
+ "ol",
23
+ {
24
+ "data-slot": "breadcrumb-list",
25
+ className: i(t.list, r),
26
+ ...e
27
+ }
28
+ );
29
+ }
30
+ function I({ className: r, ...e }) {
31
+ return /* @__PURE__ */ a(
32
+ "li",
33
+ {
34
+ "data-slot": "breadcrumb-item",
35
+ className: i(t.item, r),
36
+ ...e
37
+ }
38
+ );
39
+ }
40
+ function x({
41
+ className: r,
42
+ render: e,
43
+ ...o
44
+ }) {
45
+ return c({
46
+ defaultTagName: "a",
47
+ props: l({ className: i(t.link, r) }, o),
48
+ render: e,
49
+ state: {
50
+ slot: "breadcrumb-link"
51
+ }
52
+ });
53
+ }
54
+ function j({ className: r, ...e }) {
55
+ return /* @__PURE__ */ a(
56
+ "span",
57
+ {
58
+ "data-slot": "breadcrumb-page",
59
+ role: "link",
60
+ "aria-disabled": "true",
61
+ "aria-current": "page",
62
+ className: i(t.page, r),
63
+ ...e
64
+ }
65
+ );
66
+ }
67
+ function y({
68
+ children: r,
69
+ className: e,
70
+ ...o
71
+ }) {
72
+ return /* @__PURE__ */ a(
73
+ "li",
74
+ {
75
+ "data-slot": "breadcrumb-separator",
76
+ role: "presentation",
77
+ "aria-hidden": "true",
78
+ className: i(t.separator, e),
79
+ ...o,
80
+ children: r ?? /* @__PURE__ */ a(s, { icon: u, strokeWidth: 2 })
81
+ }
82
+ );
83
+ }
84
+ function H({
85
+ className: r,
86
+ ...e
87
+ }) {
88
+ return /* @__PURE__ */ n(
89
+ "span",
90
+ {
91
+ "data-slot": "breadcrumb-ellipsis",
92
+ role: "presentation",
93
+ "aria-hidden": "true",
94
+ className: i(t.ellipsis, r),
95
+ ...e,
96
+ children: [
97
+ /* @__PURE__ */ a(s, { icon: m, strokeWidth: 2 }),
98
+ /* @__PURE__ */ a("span", { className: t.srOnly, children: "เพิ่มเติม" })
99
+ ]
100
+ }
101
+ );
102
+ }
103
+ export {
104
+ B as Breadcrumb,
105
+ H as BreadcrumbEllipsis,
106
+ I as BreadcrumbItem,
107
+ x as BreadcrumbLink,
108
+ k as BreadcrumbList,
109
+ j as BreadcrumbPage,
110
+ y as BreadcrumbSeparator
111
+ };
@@ -0,0 +1,19 @@
1
+ const s = "dsadv_list_0leIR", t = "dsadv_item_ZczhA", a = "dsadv_link_nDu8Y", l = "dsadv_page_xJmNz", e = "dsadv_separator_qrUX-", d = "dsadv_ellipsis_B03-K", i = "dsadv_srOnly_cDt-S", n = {
2
+ list: s,
3
+ item: t,
4
+ link: a,
5
+ page: l,
6
+ separator: e,
7
+ ellipsis: d,
8
+ srOnly: i
9
+ };
10
+ export {
11
+ n as default,
12
+ d as ellipsis,
13
+ t as item,
14
+ a as link,
15
+ s as list,
16
+ l as page,
17
+ e as separator,
18
+ i as srOnly
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./Breadcrumb";
@@ -0,0 +1,39 @@
1
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
2
+ declare const variantClass: {
3
+ readonly default: string;
4
+ readonly outline: string;
5
+ readonly secondary: string;
6
+ readonly ghost: string;
7
+ readonly destructive: string;
8
+ readonly link: string;
9
+ };
10
+ declare const sizeClass: {
11
+ readonly default: string;
12
+ readonly xs: string;
13
+ readonly sm: string;
14
+ readonly lg: string;
15
+ readonly icon: string;
16
+ readonly "icon-xs": string;
17
+ readonly "icon-sm": string;
18
+ readonly "icon-lg": string;
19
+ };
20
+ type ButtonVariant = keyof typeof variantClass;
21
+ type ButtonSize = keyof typeof sizeClass;
22
+ type ButtonStyleOptions = {
23
+ /** Visual emphasis. */
24
+ variant?: ButtonVariant;
25
+ /** Height and padding; `icon*` sizes are square. */
26
+ size?: ButtonSize;
27
+ /** Stretch to the container width, e.g. Login/Register submit buttons. */
28
+ fullWidth?: boolean;
29
+ };
30
+ /**
31
+ * Class names for a button look. Use on elements that aren't a `<Button>`,
32
+ * e.g. a Next.js `<Link className={buttonVariants({ variant: "outline" })}>`.
33
+ */
34
+ declare function buttonVariants({ variant, size, fullWidth, className, }?: ButtonStyleOptions & {
35
+ className?: string;
36
+ }): string;
37
+ type ButtonProps = ButtonPrimitive.Props & ButtonStyleOptions;
38
+ declare function Button({ className, variant, size, fullWidth, ...props }: ButtonProps): import("react").JSX.Element;
39
+ export { Button, buttonVariants, type ButtonProps, type ButtonSize, type ButtonVariant, };
@@ -0,0 +1,62 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { Button as c } from "@base-ui/react/button";
3
+ import { cn as l } from "cn";
4
+ import t from "./Button.module.css.js";
5
+ const f = {
6
+ default: t.variantDefault,
7
+ outline: t.variantOutline,
8
+ secondary: t.variantSecondary,
9
+ ghost: t.variantGhost,
10
+ destructive: t.variantDestructive,
11
+ link: t.variantLink
12
+ }, d = {
13
+ default: t.sizeDefault,
14
+ xs: t.sizeXs,
15
+ sm: t.sizeSm,
16
+ lg: t.sizeLg,
17
+ icon: t.sizeIcon,
18
+ "icon-xs": t.sizeIconXs,
19
+ "icon-sm": t.sizeIconSm,
20
+ "icon-lg": t.sizeIconLg
21
+ };
22
+ function s({
23
+ variant: n = "default",
24
+ size: o = "default",
25
+ fullWidth: a = !1,
26
+ className: i
27
+ } = {}) {
28
+ return l(
29
+ t.root,
30
+ f[n],
31
+ d[o],
32
+ a && t.fullWidth,
33
+ i
34
+ );
35
+ }
36
+ function g({
37
+ className: n,
38
+ variant: o,
39
+ size: a,
40
+ fullWidth: i,
41
+ ...e
42
+ }) {
43
+ return /* @__PURE__ */ u(
44
+ c,
45
+ {
46
+ "data-slot": "button",
47
+ "data-variant": o ?? "default",
48
+ "data-size": a ?? "default",
49
+ className: typeof n == "function" ? (r) => s({
50
+ variant: o,
51
+ size: a,
52
+ fullWidth: i,
53
+ className: n(r)
54
+ }) : s({ variant: o, size: a, fullWidth: i, className: n }),
55
+ ...e
56
+ }
57
+ );
58
+ }
59
+ export {
60
+ g as Button,
61
+ s as buttonVariants
62
+ };
@@ -0,0 +1,37 @@
1
+ const s = "dsadv_root_Q2R8-", a = "dsadv_variantDefault_9lG2N", t = "dsadv_variantOutline_INGdB", n = "dsadv_variantSecondary_-ltng", i = "dsadv_variantGhost_TpjI6", e = "dsadv_variantDestructive_GVWDb", o = "dsadv_variantLink_mUBqB", d = "dsadv_sizeDefault_iwWOV", v = "dsadv_sizeXs_LBvuQ", c = "dsadv_sizeSm_NLIhO", _ = "dsadv_sizeLg_O7Azz", r = "dsadv_sizeIcon_psuwO", z = "dsadv_sizeIconXs_BorMf", l = "dsadv_sizeIconSm_hmuYd", u = "dsadv_sizeIconLg_e8NaG", I = "dsadv_fullWidth_36oJT", f = {
2
+ root: s,
3
+ variantDefault: a,
4
+ variantOutline: t,
5
+ variantSecondary: n,
6
+ variantGhost: i,
7
+ variantDestructive: e,
8
+ variantLink: o,
9
+ sizeDefault: d,
10
+ sizeXs: v,
11
+ sizeSm: c,
12
+ sizeLg: _,
13
+ sizeIcon: r,
14
+ sizeIconXs: z,
15
+ sizeIconSm: l,
16
+ sizeIconLg: u,
17
+ fullWidth: I
18
+ };
19
+ export {
20
+ f as default,
21
+ I as fullWidth,
22
+ s as root,
23
+ d as sizeDefault,
24
+ r as sizeIcon,
25
+ u as sizeIconLg,
26
+ l as sizeIconSm,
27
+ z as sizeIconXs,
28
+ _ as sizeLg,
29
+ c as sizeSm,
30
+ v as sizeXs,
31
+ a as variantDefault,
32
+ e as variantDestructive,
33
+ i as variantGhost,
34
+ o as variantLink,
35
+ t as variantOutline,
36
+ n as variantSecondary
37
+ };
@@ -0,0 +1 @@
1
+ export * from "./Button";
@@ -0,0 +1,21 @@
1
+ import { useRender } from "@base-ui/react/use-render";
2
+ import { Separator } from "../Separator";
3
+ declare const orientationClass: {
4
+ readonly horizontal: string;
5
+ readonly vertical: string;
6
+ };
7
+ type ButtonGroupOrientation = keyof typeof orientationClass;
8
+ type ButtonGroupProps = React.ComponentProps<"div"> & {
9
+ /** `horizontal`: one row. `vertical`: one column. */
10
+ orientation?: ButtonGroupOrientation;
11
+ };
12
+ /**
13
+ * Joins related buttons (and inputs or selects) into one bar.
14
+ * It's a `role="group"`: name it with `aria-label`.
15
+ */
16
+ declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): import("react").JSX.Element;
17
+ /** A non-interactive label or unit inside the group, e.g. "AU$". */
18
+ declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
19
+ /** Line between buttons that have no border of their own (e.g. `default` or `secondary`). */
20
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react").JSX.Element;
21
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonGroupOrientation, type ButtonGroupProps, };
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { mergeProps as s } from "@base-ui/react/merge-props";
4
+ import { useRender as u } from "@base-ui/react/use-render";
5
+ import { cn as e } from "cn";
6
+ import a from "./ButtonGroup.module.css.js";
7
+ import { Separator as p } from "../Separator/Separator.js";
8
+ const i = {
9
+ horizontal: a.horizontal,
10
+ vertical: a.vertical
11
+ };
12
+ function v({
13
+ className: o,
14
+ orientation: t = "horizontal",
15
+ ...r
16
+ }) {
17
+ return /* @__PURE__ */ n(
18
+ "div",
19
+ {
20
+ role: "group",
21
+ "data-slot": "button-group",
22
+ "data-orientation": t,
23
+ className: e(a.root, i[t], o),
24
+ ...r
25
+ }
26
+ );
27
+ }
28
+ function x({
29
+ className: o,
30
+ render: t,
31
+ ...r
32
+ }) {
33
+ return u({
34
+ defaultTagName: "div",
35
+ props: s({ className: e(a.text, o) }, r),
36
+ render: t,
37
+ state: { slot: "button-group-text" }
38
+ });
39
+ }
40
+ function N({
41
+ className: o,
42
+ orientation: t = "vertical",
43
+ ...r
44
+ }) {
45
+ return /* @__PURE__ */ n(
46
+ p,
47
+ {
48
+ "data-slot": "button-group-separator",
49
+ orientation: t,
50
+ className: e(a.separator, o),
51
+ ...r
52
+ }
53
+ );
54
+ }
55
+ export {
56
+ v as ButtonGroup,
57
+ N as ButtonGroupSeparator,
58
+ x as ButtonGroupText
59
+ };
@@ -0,0 +1,15 @@
1
+ const t = "dsadv_root_hx3hs", o = "dsadv_horizontal_ayP77", a = "dsadv_vertical_3XLPp", s = "dsadv_text_FI5tg", r = "dsadv_separator_r9q2u", e = {
2
+ root: t,
3
+ horizontal: o,
4
+ vertical: a,
5
+ text: s,
6
+ separator: r
7
+ };
8
+ export {
9
+ e as default,
10
+ o as horizontal,
11
+ t as root,
12
+ r as separator,
13
+ s as text,
14
+ a as vertical
15
+ };
@@ -0,0 +1 @@
1
+ export * from "./ButtonGroup";
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { DayPicker, type DayButton, type Locale } from "react-day-picker";
3
+ import { Button } from "../Button";
4
+ type CalendarProps = React.ComponentProps<typeof DayPicker> & {
5
+ /** Button variant of the previous/next month arrows. */
6
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
7
+ };
8
+ /**
9
+ * Month grid for picking a date or a range (react-day-picker). Thai by
10
+ * default, with Buddhist-era years. Pass `mode="single"` or `mode="range"`
11
+ * with `selected` / `onSelect`.
12
+ */
13
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, labels, components, ...props }: CalendarProps): React.JSX.Element;
14
+ declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
15
+ locale?: Partial<Locale>;
16
+ }): React.JSX.Element;
17
+ export { Calendar, CalendarDayButton, type CalendarProps };