@gerege-systems/ui 0.11.2

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 (218) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/dist-lib/__tests__/helpers/color.d.ts +9 -0
  4. package/dist-lib/__tests__/helpers/theme.d.ts +18 -0
  5. package/dist-lib/components/ui/Accordion.d.ts +21 -0
  6. package/dist-lib/components/ui/Accordion.js +71 -0
  7. package/dist-lib/components/ui/Accordion.js.map +1 -0
  8. package/dist-lib/components/ui/Alert.d.ts +51 -0
  9. package/dist-lib/components/ui/Alert.js +79 -0
  10. package/dist-lib/components/ui/Alert.js.map +1 -0
  11. package/dist-lib/components/ui/Avatar.d.ts +52 -0
  12. package/dist-lib/components/ui/Avatar.js +94 -0
  13. package/dist-lib/components/ui/Avatar.js.map +1 -0
  14. package/dist-lib/components/ui/Badge.d.ts +26 -0
  15. package/dist-lib/components/ui/Badge.js +76 -0
  16. package/dist-lib/components/ui/Badge.js.map +1 -0
  17. package/dist-lib/components/ui/Breadcrumbs.d.ts +33 -0
  18. package/dist-lib/components/ui/Breadcrumbs.js +52 -0
  19. package/dist-lib/components/ui/Breadcrumbs.js.map +1 -0
  20. package/dist-lib/components/ui/Button.d.ts +52 -0
  21. package/dist-lib/components/ui/Button.js +131 -0
  22. package/dist-lib/components/ui/Button.js.map +1 -0
  23. package/dist-lib/components/ui/Calendar.d.ts +15 -0
  24. package/dist-lib/components/ui/Calendar.js +139 -0
  25. package/dist-lib/components/ui/Calendar.js.map +1 -0
  26. package/dist-lib/components/ui/Card.d.ts +39 -0
  27. package/dist-lib/components/ui/Card.js +97 -0
  28. package/dist-lib/components/ui/Card.js.map +1 -0
  29. package/dist-lib/components/ui/Carousel.d.ts +27 -0
  30. package/dist-lib/components/ui/Carousel.js +174 -0
  31. package/dist-lib/components/ui/Carousel.js.map +1 -0
  32. package/dist-lib/components/ui/Chart.d.ts +87 -0
  33. package/dist-lib/components/ui/Chart.js +487 -0
  34. package/dist-lib/components/ui/Chart.js.map +1 -0
  35. package/dist-lib/components/ui/Checkbox.d.ts +28 -0
  36. package/dist-lib/components/ui/Checkbox.js +70 -0
  37. package/dist-lib/components/ui/Checkbox.js.map +1 -0
  38. package/dist-lib/components/ui/Combobox.d.ts +67 -0
  39. package/dist-lib/components/ui/Combobox.js +195 -0
  40. package/dist-lib/components/ui/Combobox.js.map +1 -0
  41. package/dist-lib/components/ui/CommandPalette.d.ts +112 -0
  42. package/dist-lib/components/ui/CommandPalette.js +179 -0
  43. package/dist-lib/components/ui/CommandPalette.js.map +1 -0
  44. package/dist-lib/components/ui/ContextMenu.d.ts +50 -0
  45. package/dist-lib/components/ui/ContextMenu.js +165 -0
  46. package/dist-lib/components/ui/ContextMenu.js.map +1 -0
  47. package/dist-lib/components/ui/DataGrid.d.ts +79 -0
  48. package/dist-lib/components/ui/DataGrid.js +99 -0
  49. package/dist-lib/components/ui/DataGrid.js.map +1 -0
  50. package/dist-lib/components/ui/DatePicker.d.ts +45 -0
  51. package/dist-lib/components/ui/DatePicker.js +193 -0
  52. package/dist-lib/components/ui/DatePicker.js.map +1 -0
  53. package/dist-lib/components/ui/DesignSystemProvider.d.ts +147 -0
  54. package/dist-lib/components/ui/DesignSystemProvider.js +135 -0
  55. package/dist-lib/components/ui/DesignSystemProvider.js.map +1 -0
  56. package/dist-lib/components/ui/Dialog.d.ts +77 -0
  57. package/dist-lib/components/ui/Dialog.js +165 -0
  58. package/dist-lib/components/ui/Dialog.js.map +1 -0
  59. package/dist-lib/components/ui/Drawer.d.ts +44 -0
  60. package/dist-lib/components/ui/Drawer.js +132 -0
  61. package/dist-lib/components/ui/Drawer.js.map +1 -0
  62. package/dist-lib/components/ui/DropdownMenu.d.ts +47 -0
  63. package/dist-lib/components/ui/DropdownMenu.js +169 -0
  64. package/dist-lib/components/ui/DropdownMenu.js.map +1 -0
  65. package/dist-lib/components/ui/EmptyState.d.ts +48 -0
  66. package/dist-lib/components/ui/EmptyState.js +46 -0
  67. package/dist-lib/components/ui/EmptyState.js.map +1 -0
  68. package/dist-lib/components/ui/ErrorState.d.ts +51 -0
  69. package/dist-lib/components/ui/ErrorState.js +69 -0
  70. package/dist-lib/components/ui/ErrorState.js.map +1 -0
  71. package/dist-lib/components/ui/FileUpload.d.ts +26 -0
  72. package/dist-lib/components/ui/FileUpload.js +111 -0
  73. package/dist-lib/components/ui/FileUpload.js.map +1 -0
  74. package/dist-lib/components/ui/Form.d.ts +36 -0
  75. package/dist-lib/components/ui/Form.js +131 -0
  76. package/dist-lib/components/ui/Form.js.map +1 -0
  77. package/dist-lib/components/ui/Icon.d.ts +34 -0
  78. package/dist-lib/components/ui/Icon.js +32 -0
  79. package/dist-lib/components/ui/Icon.js.map +1 -0
  80. package/dist-lib/components/ui/IconButton.d.ts +34 -0
  81. package/dist-lib/components/ui/IconButton.js +64 -0
  82. package/dist-lib/components/ui/IconButton.js.map +1 -0
  83. package/dist-lib/components/ui/Input.d.ts +54 -0
  84. package/dist-lib/components/ui/Input.js +158 -0
  85. package/dist-lib/components/ui/Input.js.map +1 -0
  86. package/dist-lib/components/ui/Kbd.d.ts +16 -0
  87. package/dist-lib/components/ui/Kbd.js +24 -0
  88. package/dist-lib/components/ui/Kbd.js.map +1 -0
  89. package/dist-lib/components/ui/MultiSelect.d.ts +64 -0
  90. package/dist-lib/components/ui/MultiSelect.js +210 -0
  91. package/dist-lib/components/ui/MultiSelect.js.map +1 -0
  92. package/dist-lib/components/ui/Pagination.d.ts +55 -0
  93. package/dist-lib/components/ui/Pagination.js +153 -0
  94. package/dist-lib/components/ui/Pagination.js.map +1 -0
  95. package/dist-lib/components/ui/Popover.d.ts +16 -0
  96. package/dist-lib/components/ui/Popover.js +35 -0
  97. package/dist-lib/components/ui/Popover.js.map +1 -0
  98. package/dist-lib/components/ui/Progress.d.ts +40 -0
  99. package/dist-lib/components/ui/Progress.js +100 -0
  100. package/dist-lib/components/ui/Progress.js.map +1 -0
  101. package/dist-lib/components/ui/RadioGroup.d.ts +27 -0
  102. package/dist-lib/components/ui/RadioGroup.js +81 -0
  103. package/dist-lib/components/ui/RadioGroup.js.map +1 -0
  104. package/dist-lib/components/ui/RelativeTime.d.ts +19 -0
  105. package/dist-lib/components/ui/RelativeTime.js +31 -0
  106. package/dist-lib/components/ui/RelativeTime.js.map +1 -0
  107. package/dist-lib/components/ui/ScrollArea.d.ts +21 -0
  108. package/dist-lib/components/ui/ScrollArea.js +60 -0
  109. package/dist-lib/components/ui/ScrollArea.js.map +1 -0
  110. package/dist-lib/components/ui/Select.d.ts +61 -0
  111. package/dist-lib/components/ui/Select.js +139 -0
  112. package/dist-lib/components/ui/Select.js.map +1 -0
  113. package/dist-lib/components/ui/Separator.d.ts +13 -0
  114. package/dist-lib/components/ui/Separator.js +26 -0
  115. package/dist-lib/components/ui/Separator.js.map +1 -0
  116. package/dist-lib/components/ui/Sheet.d.ts +55 -0
  117. package/dist-lib/components/ui/Sheet.js +136 -0
  118. package/dist-lib/components/ui/Sheet.js.map +1 -0
  119. package/dist-lib/components/ui/Sidebar.d.ts +91 -0
  120. package/dist-lib/components/ui/Sidebar.js +212 -0
  121. package/dist-lib/components/ui/Sidebar.js.map +1 -0
  122. package/dist-lib/components/ui/Skeleton.d.ts +37 -0
  123. package/dist-lib/components/ui/Skeleton.js +29 -0
  124. package/dist-lib/components/ui/Skeleton.js.map +1 -0
  125. package/dist-lib/components/ui/Slider.d.ts +33 -0
  126. package/dist-lib/components/ui/Slider.js +64 -0
  127. package/dist-lib/components/ui/Slider.js.map +1 -0
  128. package/dist-lib/components/ui/Snackbar.d.ts +21 -0
  129. package/dist-lib/components/ui/Snackbar.js +57 -0
  130. package/dist-lib/components/ui/Snackbar.js.map +1 -0
  131. package/dist-lib/components/ui/Spinner.d.ts +23 -0
  132. package/dist-lib/components/ui/Spinner.js +54 -0
  133. package/dist-lib/components/ui/Spinner.js.map +1 -0
  134. package/dist-lib/components/ui/Stepper.d.ts +40 -0
  135. package/dist-lib/components/ui/Stepper.js +111 -0
  136. package/dist-lib/components/ui/Stepper.js.map +1 -0
  137. package/dist-lib/components/ui/Switch.d.ts +33 -0
  138. package/dist-lib/components/ui/Switch.js +80 -0
  139. package/dist-lib/components/ui/Switch.js.map +1 -0
  140. package/dist-lib/components/ui/Table.d.ts +71 -0
  141. package/dist-lib/components/ui/Table.js +179 -0
  142. package/dist-lib/components/ui/Table.js.map +1 -0
  143. package/dist-lib/components/ui/Tabs.d.ts +32 -0
  144. package/dist-lib/components/ui/Tabs.js +91 -0
  145. package/dist-lib/components/ui/Tabs.js.map +1 -0
  146. package/dist-lib/components/ui/TagInput.d.ts +39 -0
  147. package/dist-lib/components/ui/TagInput.js +111 -0
  148. package/dist-lib/components/ui/TagInput.js.map +1 -0
  149. package/dist-lib/components/ui/Textarea.d.ts +34 -0
  150. package/dist-lib/components/ui/Textarea.js +88 -0
  151. package/dist-lib/components/ui/Textarea.js.map +1 -0
  152. package/dist-lib/components/ui/Timeline.d.ts +33 -0
  153. package/dist-lib/components/ui/Timeline.js +56 -0
  154. package/dist-lib/components/ui/Timeline.js.map +1 -0
  155. package/dist-lib/components/ui/Toast.d.ts +53 -0
  156. package/dist-lib/components/ui/Toast.js +158 -0
  157. package/dist-lib/components/ui/Toast.js.map +1 -0
  158. package/dist-lib/components/ui/Tooltip.d.ts +38 -0
  159. package/dist-lib/components/ui/Tooltip.js +60 -0
  160. package/dist-lib/components/ui/Tooltip.js.map +1 -0
  161. package/dist-lib/components/ui/TopNav.d.ts +37 -0
  162. package/dist-lib/components/ui/TopNav.js +69 -0
  163. package/dist-lib/components/ui/TopNav.js.map +1 -0
  164. package/dist-lib/components/ui/Tree.d.ts +51 -0
  165. package/dist-lib/components/ui/Tree.js +170 -0
  166. package/dist-lib/components/ui/Tree.js.map +1 -0
  167. package/dist-lib/hooks/use-debounce.d.ts +19 -0
  168. package/dist-lib/hooks/use-debounce.js +36 -0
  169. package/dist-lib/hooks/use-debounce.js.map +1 -0
  170. package/dist-lib/hooks/use-delayed-loading.d.ts +21 -0
  171. package/dist-lib/hooks/use-delayed-loading.js +20 -0
  172. package/dist-lib/hooks/use-delayed-loading.js.map +1 -0
  173. package/dist-lib/hooks/use-field-ids.d.ts +30 -0
  174. package/dist-lib/hooks/use-field-ids.js +18 -0
  175. package/dist-lib/hooks/use-field-ids.js.map +1 -0
  176. package/dist-lib/hooks/use-media-query.d.ts +11 -0
  177. package/dist-lib/hooks/use-media-query.js +22 -0
  178. package/dist-lib/hooks/use-media-query.js.map +1 -0
  179. package/dist-lib/hooks/use-modifier-key.d.ts +13 -0
  180. package/dist-lib/hooks/use-modifier-key.js +19 -0
  181. package/dist-lib/hooks/use-modifier-key.js.map +1 -0
  182. package/dist-lib/hooks/use-strings.d.ts +5 -0
  183. package/dist-lib/hooks/use-strings.js +12 -0
  184. package/dist-lib/hooks/use-strings.js.map +1 -0
  185. package/dist-lib/hooks/use-toast.d.ts +48 -0
  186. package/dist-lib/hooks/use-toast.js +67 -0
  187. package/dist-lib/hooks/use-toast.js.map +1 -0
  188. package/dist-lib/icon.d.ts +8 -0
  189. package/dist-lib/icon.js +7 -0
  190. package/dist-lib/icon.js.map +1 -0
  191. package/dist-lib/icons/index.d.ts +80 -0
  192. package/dist-lib/icons/index.js +163 -0
  193. package/dist-lib/icons/index.js.map +1 -0
  194. package/dist-lib/illustrations/index.d.ts +10 -0
  195. package/dist-lib/illustrations/index.js +114 -0
  196. package/dist-lib/illustrations/index.js.map +1 -0
  197. package/dist-lib/index.d.ts +68 -0
  198. package/dist-lib/index.js +291 -0
  199. package/dist-lib/index.js.map +1 -0
  200. package/dist-lib/lib/cva.d.ts +6 -0
  201. package/dist-lib/lib/format.d.ts +65 -0
  202. package/dist-lib/lib/format.js +95 -0
  203. package/dist-lib/lib/format.js.map +1 -0
  204. package/dist-lib/lib/return-focus.d.ts +11 -0
  205. package/dist-lib/lib/return-focus.js +12 -0
  206. package/dist-lib/lib/return-focus.js.map +1 -0
  207. package/dist-lib/lib/strings.d.ts +190 -0
  208. package/dist-lib/lib/strings.js +141 -0
  209. package/dist-lib/lib/strings.js.map +1 -0
  210. package/dist-lib/lib/strings.mn.d.ts +3 -0
  211. package/dist-lib/lib/strings.mn.js +115 -0
  212. package/dist-lib/lib/strings.mn.js.map +1 -0
  213. package/dist-lib/lib/utils.d.ts +11 -0
  214. package/dist-lib/lib/utils.js +10 -0
  215. package/dist-lib/lib/utils.js.map +1 -0
  216. package/dist-lib/styles.css +1 -0
  217. package/dist-lib/theme.css +840 -0
  218. package/package.json +158 -0
@@ -0,0 +1,114 @@
1
+ "use client";
2
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
3
+ import { cn as a } from "../lib/utils.js";
4
+ function c({ className: r, children: o, ...n }) {
5
+ return /* @__PURE__ */ t(
6
+ "svg",
7
+ {
8
+ viewBox: "0 0 120 120",
9
+ role: "img",
10
+ width: "120",
11
+ height: "120",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ strokeWidth: "1.5",
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ className: a("text-foreground-subtle", r),
18
+ "aria-hidden": !0,
19
+ ...n,
20
+ children: o
21
+ }
22
+ );
23
+ }
24
+ function l(r) {
25
+ return /* @__PURE__ */ e(c, { ...r, children: [
26
+ /* @__PURE__ */ t("path", { d: "M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28" }),
27
+ /* @__PURE__ */ t("path", { d: "M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56" }),
28
+ /* @__PURE__ */ t("path", { d: "M22 56h22l4 10h24l4-10h22" }),
29
+ /* @__PURE__ */ t("circle", { cx: "60", cy: "36", r: "2", className: "text-accent", stroke: "currentColor" }),
30
+ /* @__PURE__ */ t("path", { d: "M52 28l8 8M68 28l-8 8", opacity: "0.4" })
31
+ ] });
32
+ }
33
+ function d(r) {
34
+ return /* @__PURE__ */ e(c, { ...r, children: [
35
+ /* @__PURE__ */ t("circle", { cx: "52", cy: "52", r: "26" }),
36
+ /* @__PURE__ */ t("path", { d: "M72 72l20 20" }),
37
+ /* @__PURE__ */ t("path", { d: "M42 52h20", opacity: "0.5" }),
38
+ /* @__PURE__ */ t("circle", { cx: "98", cy: "22", r: "1.5", className: "text-accent", stroke: "currentColor" }),
39
+ /* @__PURE__ */ t("circle", { cx: "20", cy: "92", r: "1.5", className: "text-accent", stroke: "currentColor" })
40
+ ] });
41
+ }
42
+ function s(r) {
43
+ return /* @__PURE__ */ e(c, { ...r, children: [
44
+ /* @__PURE__ */ t("path", { d: "M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z" }),
45
+ /* @__PURE__ */ t("path", { d: "M22 44h76" }),
46
+ /* @__PURE__ */ t("circle", { cx: "32", cy: "38", r: "1.5" }),
47
+ /* @__PURE__ */ t("circle", { cx: "40", cy: "38", r: "1.5" }),
48
+ /* @__PURE__ */ t("circle", { cx: "48", cy: "38", r: "1.5" }),
49
+ /* @__PURE__ */ t("path", { d: "M44 64l32 16M76 64l-32 16", className: "text-accent", stroke: "currentColor" }),
50
+ /* @__PURE__ */ t(
51
+ "text",
52
+ {
53
+ x: "60",
54
+ y: "76",
55
+ fontFamily: "ui-monospace,monospace",
56
+ fontSize: "9",
57
+ textAnchor: "middle",
58
+ fill: "currentColor",
59
+ stroke: "none",
60
+ opacity: "0.6",
61
+ children: "404"
62
+ }
63
+ )
64
+ ] });
65
+ }
66
+ function x(r) {
67
+ return /* @__PURE__ */ e(c, { ...r, children: [
68
+ /* @__PURE__ */ t("rect", { x: "22", y: "28", width: "76", height: "20", rx: "3" }),
69
+ /* @__PURE__ */ t("rect", { x: "22", y: "54", width: "76", height: "20", rx: "3" }),
70
+ /* @__PURE__ */ t("rect", { x: "22", y: "80", width: "76", height: "20", rx: "3" }),
71
+ /* @__PURE__ */ t("circle", { cx: "32", cy: "38", r: "2", className: "text-danger", stroke: "currentColor" }),
72
+ /* @__PURE__ */ t("circle", { cx: "32", cy: "64", r: "2", className: "text-danger", stroke: "currentColor" }),
73
+ /* @__PURE__ */ t("circle", { cx: "32", cy: "90", r: "2", className: "text-warning", stroke: "currentColor" }),
74
+ /* @__PURE__ */ t("path", { d: "M44 38h44M44 64h44M44 90h28", opacity: "0.4" }),
75
+ /* @__PURE__ */ t("path", { d: "M82 84l16 16M82 100l16-16", className: "text-danger", stroke: "currentColor" })
76
+ ] });
77
+ }
78
+ function u(r) {
79
+ return /* @__PURE__ */ e(c, { ...r, children: [
80
+ /* @__PURE__ */ t("path", { d: "M22 86h76" }),
81
+ /* @__PURE__ */ t("path", { d: "M30 86V52l30-22 30 22v34" }),
82
+ /* @__PURE__ */ t("rect", { x: "40", y: "64", width: "14", height: "14", rx: "1" }),
83
+ /* @__PURE__ */ t("rect", { x: "66", y: "64", width: "14", height: "14", rx: "1" }),
84
+ /* @__PURE__ */ t("path", { d: "M30 52h60", opacity: "0.4" }),
85
+ /* @__PURE__ */ t("path", { d: "M40 40v6M50 36v10M70 36v10M80 40v6", className: "text-accent", stroke: "currentColor" })
86
+ ] });
87
+ }
88
+ function p(r) {
89
+ return /* @__PURE__ */ e(c, { ...r, children: [
90
+ /* @__PURE__ */ t("path", { d: "M22 60a40 40 0 0 1 76 0", opacity: "0.4" }),
91
+ /* @__PURE__ */ t("path", { d: "M34 70a28 28 0 0 1 52 0", opacity: "0.6" }),
92
+ /* @__PURE__ */ t("path", { d: "M46 80a16 16 0 0 1 28 0" }),
93
+ /* @__PURE__ */ t("circle", { cx: "60", cy: "92", r: "3" }),
94
+ /* @__PURE__ */ t("path", { d: "M20 20l80 80", className: "text-danger", stroke: "currentColor" })
95
+ ] });
96
+ }
97
+ function M(r) {
98
+ return /* @__PURE__ */ e(c, { ...r, children: [
99
+ /* @__PURE__ */ t("rect", { x: "34", y: "54", width: "52", height: "40", rx: "4" }),
100
+ /* @__PURE__ */ t("path", { d: "M44 54v-10a16 16 0 0 1 32 0v10" }),
101
+ /* @__PURE__ */ t("circle", { cx: "60", cy: "72", r: "4" }),
102
+ /* @__PURE__ */ t("path", { d: "M60 76v8" })
103
+ ] });
104
+ }
105
+ export {
106
+ p as ConnectionLost,
107
+ u as Construction,
108
+ l as InboxEmpty,
109
+ M as Locked,
110
+ d as NoSearchResults,
111
+ s as NotFound,
112
+ x as ServerError
113
+ };
114
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/illustrations/index.tsx"],"sourcesContent":["import { type SVGProps } from 'react';\nimport { cn } from '@/lib/utils';\n\n/* Refined-minimal line illustrations. Single accent stroke, no fills.\n * Drop into EmptyState / ErrorState / FirstRunEmpty `icon` slots. */\n\ntype Props = SVGProps<SVGSVGElement>;\n\nfunction Base({ className, children, ...props }: Props & { children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 120 120\"\n role=\"img\"\n width=\"120\"\n height=\"120\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn('text-foreground-subtle', className)}\n aria-hidden\n {...props}\n >\n {children}\n </svg>\n );\n}\n\nexport function InboxEmpty(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 56l10-28a6 6 0 0 1 6-4h44a6 6 0 0 1 6 4l10 28\" />\n <path d=\"M22 56v32a6 6 0 0 0 6 6h64a6 6 0 0 0 6-6V56\" />\n <path d=\"M22 56h22l4 10h24l4-10h22\" />\n <circle cx=\"60\" cy=\"36\" r=\"2\" className=\"text-accent\" stroke=\"currentColor\" />\n <path d=\"M52 28l8 8M68 28l-8 8\" opacity=\"0.4\" />\n </Base>\n );\n}\n\nexport function NoSearchResults(props: Props) {\n return (\n <Base {...props}>\n <circle cx=\"52\" cy=\"52\" r=\"26\" />\n <path d=\"M72 72l20 20\" />\n <path d=\"M42 52h20\" opacity=\"0.5\" />\n <circle cx=\"98\" cy=\"22\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n <circle cx=\"20\" cy=\"92\" r=\"1.5\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function NotFound(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 32h76v56a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V32z\" />\n <path d=\"M22 44h76\" />\n <circle cx=\"32\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"40\" cy=\"38\" r=\"1.5\" />\n <circle cx=\"48\" cy=\"38\" r=\"1.5\" />\n <path d=\"M44 64l32 16M76 64l-32 16\" className=\"text-accent\" stroke=\"currentColor\" />\n <text\n x=\"60\"\n y=\"76\"\n fontFamily=\"ui-monospace,monospace\"\n fontSize=\"9\"\n textAnchor=\"middle\"\n fill=\"currentColor\"\n stroke=\"none\"\n opacity=\"0.6\"\n >\n 404\n </text>\n </Base>\n );\n}\n\nexport function ServerError(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"22\" y=\"28\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"54\" width=\"76\" height=\"20\" rx=\"3\" />\n <rect x=\"22\" y=\"80\" width=\"76\" height=\"20\" rx=\"3\" />\n <circle cx=\"32\" cy=\"38\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"64\" r=\"2\" className=\"text-danger\" stroke=\"currentColor\" />\n <circle cx=\"32\" cy=\"90\" r=\"2\" className=\"text-warning\" stroke=\"currentColor\" />\n <path d=\"M44 38h44M44 64h44M44 90h28\" opacity=\"0.4\" />\n <path d=\"M82 84l16 16M82 100l16-16\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Construction(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 86h76\" />\n <path d=\"M30 86V52l30-22 30 22v34\" />\n <rect x=\"40\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <rect x=\"66\" y=\"64\" width=\"14\" height=\"14\" rx=\"1\" />\n <path d=\"M30 52h60\" opacity=\"0.4\" />\n <path d=\"M40 40v6M50 36v10M70 36v10M80 40v6\" className=\"text-accent\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function ConnectionLost(props: Props) {\n return (\n <Base {...props}>\n <path d=\"M22 60a40 40 0 0 1 76 0\" opacity=\"0.4\" />\n <path d=\"M34 70a28 28 0 0 1 52 0\" opacity=\"0.6\" />\n <path d=\"M46 80a16 16 0 0 1 28 0\" />\n <circle cx=\"60\" cy=\"92\" r=\"3\" />\n <path d=\"M20 20l80 80\" className=\"text-danger\" stroke=\"currentColor\" />\n </Base>\n );\n}\n\nexport function Locked(props: Props) {\n return (\n <Base {...props}>\n <rect x=\"34\" y=\"54\" width=\"52\" height=\"40\" rx=\"4\" />\n <path d=\"M44 54v-10a16 16 0 0 1 32 0v10\" />\n <circle cx=\"60\" cy=\"72\" r=\"4\" />\n <path d=\"M60 76v8\" />\n </Base>\n );\n}\n"],"names":["Base","className","children","props","jsx","cn","InboxEmpty","jsxs","NoSearchResults","NotFound","ServerError","Construction","ConnectionLost","Locked"],"mappings":";;;AAQA,SAASA,EAAK,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAgD;AACtF,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACN,QAAO;AAAA,MACP,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,WAAWC,EAAG,0BAA0BJ,CAAS;AAAA,MACjD,eAAW;AAAA,MACV,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASI,EAAWH,GAAc;AACvC,SACE,gBAAAI,EAACP,GAAA,EAAM,GAAGG,GACR,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,oDAAA,CAAoD;AAAA,IAC5D,gBAAAA,EAAC,QAAA,EAAK,GAA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,GAAE,WAAA,CAAW;AAAA,EAAA,GACrB;AAEJ;"}
@@ -0,0 +1,68 @@
1
+ export * from './lib/utils.js';
2
+ export * from './lib/cva.js';
3
+ export { defaultStrings, formatString, type UiStrings, type DeepPartial } from './lib/strings.js';
4
+ export { mnStrings } from './lib/strings.mn.js';
5
+ export type { ReturnFocusRef } from './lib/return-focus.js';
6
+ export * from './lib/format.js';
7
+ export * from './hooks/use-media-query.js';
8
+ export * from './hooks/use-toast.js';
9
+ export * from './hooks/use-field-ids.js';
10
+ export * from './hooks/use-modifier-key.js';
11
+ export * from './hooks/use-delayed-loading.js';
12
+ export * from './hooks/use-debounce.js';
13
+ export { useStrings } from './hooks/use-strings.js';
14
+ export * as Icons from './icons/index.js';
15
+ export * as Illustrations from './illustrations/index.js';
16
+ export * from './components/ui/Accordion.js';
17
+ export * from './components/ui/Alert.js';
18
+ export * from './components/ui/Avatar.js';
19
+ export * from './components/ui/Badge.js';
20
+ export * from './components/ui/Breadcrumbs.js';
21
+ export * from './components/ui/Button.js';
22
+ export * from './components/ui/Card.js';
23
+ export * from './components/ui/Checkbox.js';
24
+ export * from './components/ui/Combobox.js';
25
+ export * from './components/ui/CommandPalette.js';
26
+ export * from './components/ui/ContextMenu.js';
27
+ export * from './components/ui/DataGrid.js';
28
+ export * from './components/ui/DatePicker.js';
29
+ export * from './components/ui/DesignSystemProvider.js';
30
+ export * from './components/ui/Dialog.js';
31
+ export * from './components/ui/DropdownMenu.js';
32
+ export * from './components/ui/EmptyState.js';
33
+ export * from './components/ui/ErrorState.js';
34
+ export * from './components/ui/Form.js';
35
+ export * from './components/ui/IconButton.js';
36
+ export * from './components/ui/Input.js';
37
+ export * from './components/ui/Kbd.js';
38
+ export * from './components/ui/MultiSelect.js';
39
+ export * from './components/ui/Pagination.js';
40
+ export * from './components/ui/Popover.js';
41
+ export * from './components/ui/Progress.js';
42
+ export * from './components/ui/RadioGroup.js';
43
+ export * from './components/ui/ScrollArea.js';
44
+ export * from './components/ui/Select.js';
45
+ export * from './components/ui/Separator.js';
46
+ export * from './components/ui/Sheet.js';
47
+ export * from './components/ui/Sidebar.js';
48
+ export * from './components/ui/Skeleton.js';
49
+ export * from './components/ui/Slider.js';
50
+ export * from './components/ui/Spinner.js';
51
+ export * from './components/ui/Stepper.js';
52
+ export * from './components/ui/Switch.js';
53
+ export * from './components/ui/Table.js';
54
+ export * from './components/ui/Tabs.js';
55
+ export * from './components/ui/Textarea.js';
56
+ export * from './components/ui/Toast.js';
57
+ export * from './components/ui/Tooltip.js';
58
+ export * from './components/ui/TopNav.js';
59
+ export * from './components/ui/Calendar.js';
60
+ export * from './components/ui/Carousel.js';
61
+ export * from './components/ui/Chart.js';
62
+ export * from './components/ui/RelativeTime.js';
63
+ export * from './components/ui/Drawer.js';
64
+ export * from './components/ui/FileUpload.js';
65
+ export * from './components/ui/Snackbar.js';
66
+ export * from './components/ui/TagInput.js';
67
+ export * from './components/ui/Timeline.js';
68
+ export * from './components/ui/Tree.js';
@@ -0,0 +1,291 @@
1
+ "use client";
2
+ /* empty css */
3
+ import { cn as n } from "./lib/utils.js";
4
+ import { defaultStrings as p, formatString as i } from "./lib/strings.js";
5
+ import { mnStrings as x } from "./lib/strings.mn.js";
6
+ import { formatDate as d, formatMNT as f, formatNumber as s, formatPhone as C, getDateTimeFormat as T, parsePhoneMN as S } from "./lib/format.js";
7
+ import { useMediaQuery as D, usePrefersReducedMotion as g } from "./hooks/use-media-query.js";
8
+ import { TOAST_DURATIONS as M, toast as w, useToast as P } from "./hooks/use-toast.js";
9
+ import { useFieldIds as I } from "./hooks/use-field-ids.js";
10
+ import { isApplePlatform as v, useModifierKey as A } from "./hooks/use-modifier-key.js";
11
+ import { useDelayedLoading as R } from "./hooks/use-delayed-loading.js";
12
+ import { useDebounce as G, useDebouncedCallback as y } from "./hooks/use-debounce.js";
13
+ import { useStrings as H } from "./hooks/use-strings.js";
14
+ import * as o from "./icons/index.js";
15
+ import * as r from "./illustrations/index.js";
16
+ import { Accordion as O, AccordionContent as E, AccordionItem as U, AccordionTrigger as _ } from "./components/ui/Accordion.js";
17
+ import { Alert as V } from "./components/ui/Alert.js";
18
+ import { Avatar as $, AvatarGroup as j } from "./components/ui/Avatar.js";
19
+ import { Badge as z } from "./components/ui/Badge.js";
20
+ import { Breadcrumbs as W } from "./components/ui/Breadcrumbs.js";
21
+ import { Button as Y } from "./components/ui/Button.js";
22
+ import { Card as ee, CardContent as oe, CardDescription as re, CardFooter as te, CardHeader as ae, CardTitle as ne } from "./components/ui/Card.js";
23
+ import { Checkbox as pe } from "./components/ui/Checkbox.js";
24
+ import { Combobox as le } from "./components/ui/Combobox.js";
25
+ import { Command as ue, CommandDialog as de, CommandEmpty as fe, CommandGroup as se, CommandInput as Ce, CommandItem as Te, CommandList as Se, CommandSeparator as ce, CommandShortcut as De, useCommandPaletteShortcut as ge } from "./components/ui/CommandPalette.js";
26
+ import { ContextMenu as Me, ContextMenuCheckboxItem as we, ContextMenuContent as Pe, ContextMenuGroup as he, ContextMenuItem as Ie, ContextMenuLabel as Fe, ContextMenuPortal as ve, ContextMenuRadioGroup as Ae, ContextMenuRadioItem as Le, ContextMenuSeparator as Re, ContextMenuShortcut as ke, ContextMenuSub as Ge, ContextMenuSubContent as ye, ContextMenuSubTrigger as Be, ContextMenuTrigger as He } from "./components/ui/ContextMenu.js";
27
+ import { DataGrid as Oe } from "./components/ui/DataGrid.js";
28
+ import { DatePicker as Ue, DateRangePicker as _e } from "./components/ui/DatePicker.js";
29
+ import { DesignSystemProvider as Ve, brandPresets as Qe } from "./components/ui/DesignSystemProvider.js";
30
+ import { ConfirmationDialog as je, Dialog as qe, DialogClose as ze, DialogContent as Je, DialogDescription as We, DialogFooter as Xe, DialogHeader as Ye, DialogOverlay as Ze, DialogPortal as eo, DialogTitle as oo, DialogTrigger as ro } from "./components/ui/Dialog.js";
31
+ import { DropdownMenu as ao, DropdownMenuCheckboxItem as no, DropdownMenuContent as mo, DropdownMenuGroup as po, DropdownMenuItem as io, DropdownMenuLabel as lo, DropdownMenuPortal as xo, DropdownMenuRadioGroup as uo, DropdownMenuRadioItem as fo, DropdownMenuSeparator as so, DropdownMenuShortcut as Co, DropdownMenuSub as To, DropdownMenuSubContent as So, DropdownMenuSubTrigger as co, DropdownMenuTrigger as Do } from "./components/ui/DropdownMenu.js";
32
+ import { EmptyState as bo } from "./components/ui/EmptyState.js";
33
+ import { ErrorState as wo } from "./components/ui/ErrorState.js";
34
+ import { Form as ho, FormControl as Io, FormDescription as Fo, FormError as vo, FormField as Ao, FormItem as Lo, FormLabel as Ro, useFormField as ko } from "./components/ui/Form.js";
35
+ import { IconButton as yo } from "./components/ui/IconButton.js";
36
+ import { Input as Ho } from "./components/ui/Input.js";
37
+ import { Kbd as Oo } from "./components/ui/Kbd.js";
38
+ import { MultiSelect as Uo } from "./components/ui/MultiSelect.js";
39
+ import { Pagination as Ko, defaultPaginationLabels as Vo, paginationLabelsFromStrings as Qo } from "./components/ui/Pagination.js";
40
+ import { Popover as jo, PopoverAnchor as qo, PopoverClose as zo, PopoverContent as Jo, PopoverTrigger as Wo } from "./components/ui/Popover.js";
41
+ import { Progress as Yo, ProgressCircle as Zo } from "./components/ui/Progress.js";
42
+ import { RadioGroup as or, RadioItem as rr } from "./components/ui/RadioGroup.js";
43
+ import { ScrollArea as ar, ScrollBar as nr } from "./components/ui/ScrollArea.js";
44
+ import { Select as pr, SelectContent as ir, SelectGroup as lr, SelectItem as xr, SelectLabel as ur, SelectScrollDownButton as dr, SelectScrollUpButton as fr, SelectSeparator as sr, SelectTrigger as Cr, SelectValue as Tr } from "./components/ui/Select.js";
45
+ import { Separator as cr } from "./components/ui/Separator.js";
46
+ import { Sheet as gr, SheetClose as br, SheetContent as Mr, SheetDescription as wr, SheetFooter as Pr, SheetHeader as hr, SheetPortal as Ir, SheetTitle as Fr, SheetTrigger as vr } from "./components/ui/Sheet.js";
47
+ import { Sidebar as Lr, SidebarGroup as Rr, SidebarItem as kr, SidebarSection as Gr, useSidebar as yr } from "./components/ui/Sidebar.js";
48
+ import { Skeleton as Hr } from "./components/ui/Skeleton.js";
49
+ import { Slider as Or } from "./components/ui/Slider.js";
50
+ import { Spinner as Ur } from "./components/ui/Spinner.js";
51
+ import { Stepper as Kr } from "./components/ui/Stepper.js";
52
+ import { Switch as Qr } from "./components/ui/Switch.js";
53
+ import { Table as jr, TableBody as qr, TableCaption as zr, TableCell as Jr, TableFooter as Wr, TableHead as Xr, TableHeader as Yr, TableRow as Zr, TableSortHeader as et } from "./components/ui/Table.js";
54
+ import { Tabs as rt, TabsContent as tt, TabsList as at, TabsTrigger as nt } from "./components/ui/Tabs.js";
55
+ import { Textarea as pt } from "./components/ui/Textarea.js";
56
+ import { Toast as lt, ToastAction as xt, ToastClose as ut, ToastDescription as dt, ToastProvider as ft, ToastTitle as st, ToastViewport as Ct, Toaster as Tt } from "./components/ui/Toast.js";
57
+ import { Tooltip as ct, TooltipContent as Dt, TooltipProvider as gt, TooltipRoot as bt, TooltipTrigger as Mt } from "./components/ui/Tooltip.js";
58
+ import { TopNav as Pt, TopNavLink as ht } from "./components/ui/TopNav.js";
59
+ import { Calendar as Ft } from "./components/ui/Calendar.js";
60
+ import { Carousel as At, CarouselContent as Lt, CarouselItem as Rt, CarouselNext as kt, CarouselPrevious as Gt } from "./components/ui/Carousel.js";
61
+ import { AreaChart as Bt, BarChart as Ht, DEFAULT_CHART_COLORS as Nt, LineChart as Ot, abbreviateNumber as Et, defaultChartLabels as Ut, niceTicks as _t } from "./components/ui/Chart.js";
62
+ import { RelativeTime as Vt } from "./components/ui/RelativeTime.js";
63
+ import { Drawer as $t, DrawerClose as jt, DrawerContent as qt, DrawerDescription as zt, DrawerFooter as Jt, DrawerHeader as Wt, DrawerOverlay as Xt, DrawerPortal as Yt, DrawerTitle as Zt, DrawerTrigger as ea } from "./components/ui/Drawer.js";
64
+ import { FileUpload as ra } from "./components/ui/FileUpload.js";
65
+ import { Snackbar as aa } from "./components/ui/Snackbar.js";
66
+ import { TagInput as ma } from "./components/ui/TagInput.js";
67
+ import { Timeline as ia, TimelineDescription as la, TimelineItem as xa, TimelineTime as ua, TimelineTitle as da } from "./components/ui/Timeline.js";
68
+ import { Tree as sa } from "./components/ui/Tree.js";
69
+ import { cva as Ta } from "class-variance-authority";
70
+ export {
71
+ O as Accordion,
72
+ E as AccordionContent,
73
+ U as AccordionItem,
74
+ _ as AccordionTrigger,
75
+ V as Alert,
76
+ Bt as AreaChart,
77
+ $ as Avatar,
78
+ j as AvatarGroup,
79
+ z as Badge,
80
+ Ht as BarChart,
81
+ W as Breadcrumbs,
82
+ Y as Button,
83
+ Ft as Calendar,
84
+ ee as Card,
85
+ oe as CardContent,
86
+ re as CardDescription,
87
+ te as CardFooter,
88
+ ae as CardHeader,
89
+ ne as CardTitle,
90
+ At as Carousel,
91
+ Lt as CarouselContent,
92
+ Rt as CarouselItem,
93
+ kt as CarouselNext,
94
+ Gt as CarouselPrevious,
95
+ pe as Checkbox,
96
+ le as Combobox,
97
+ ue as Command,
98
+ de as CommandDialog,
99
+ fe as CommandEmpty,
100
+ se as CommandGroup,
101
+ Ce as CommandInput,
102
+ Te as CommandItem,
103
+ Se as CommandList,
104
+ ce as CommandSeparator,
105
+ De as CommandShortcut,
106
+ je as ConfirmationDialog,
107
+ Me as ContextMenu,
108
+ we as ContextMenuCheckboxItem,
109
+ Pe as ContextMenuContent,
110
+ he as ContextMenuGroup,
111
+ Ie as ContextMenuItem,
112
+ Fe as ContextMenuLabel,
113
+ ve as ContextMenuPortal,
114
+ Ae as ContextMenuRadioGroup,
115
+ Le as ContextMenuRadioItem,
116
+ Re as ContextMenuSeparator,
117
+ ke as ContextMenuShortcut,
118
+ Ge as ContextMenuSub,
119
+ ye as ContextMenuSubContent,
120
+ Be as ContextMenuSubTrigger,
121
+ He as ContextMenuTrigger,
122
+ Nt as DEFAULT_CHART_COLORS,
123
+ Oe as DataGrid,
124
+ Ue as DatePicker,
125
+ _e as DateRangePicker,
126
+ Ve as DesignSystemProvider,
127
+ qe as Dialog,
128
+ ze as DialogClose,
129
+ Je as DialogContent,
130
+ We as DialogDescription,
131
+ Xe as DialogFooter,
132
+ Ye as DialogHeader,
133
+ Ze as DialogOverlay,
134
+ eo as DialogPortal,
135
+ oo as DialogTitle,
136
+ ro as DialogTrigger,
137
+ $t as Drawer,
138
+ jt as DrawerClose,
139
+ qt as DrawerContent,
140
+ zt as DrawerDescription,
141
+ Jt as DrawerFooter,
142
+ Wt as DrawerHeader,
143
+ Xt as DrawerOverlay,
144
+ Yt as DrawerPortal,
145
+ Zt as DrawerTitle,
146
+ ea as DrawerTrigger,
147
+ ao as DropdownMenu,
148
+ no as DropdownMenuCheckboxItem,
149
+ mo as DropdownMenuContent,
150
+ po as DropdownMenuGroup,
151
+ io as DropdownMenuItem,
152
+ lo as DropdownMenuLabel,
153
+ xo as DropdownMenuPortal,
154
+ uo as DropdownMenuRadioGroup,
155
+ fo as DropdownMenuRadioItem,
156
+ so as DropdownMenuSeparator,
157
+ Co as DropdownMenuShortcut,
158
+ To as DropdownMenuSub,
159
+ So as DropdownMenuSubContent,
160
+ co as DropdownMenuSubTrigger,
161
+ Do as DropdownMenuTrigger,
162
+ bo as EmptyState,
163
+ wo as ErrorState,
164
+ ra as FileUpload,
165
+ ho as Form,
166
+ Io as FormControl,
167
+ Fo as FormDescription,
168
+ vo as FormError,
169
+ Ao as FormField,
170
+ Lo as FormItem,
171
+ Ro as FormLabel,
172
+ yo as IconButton,
173
+ o as Icons,
174
+ r as Illustrations,
175
+ Ho as Input,
176
+ Oo as Kbd,
177
+ Ot as LineChart,
178
+ Uo as MultiSelect,
179
+ Ko as Pagination,
180
+ jo as Popover,
181
+ qo as PopoverAnchor,
182
+ zo as PopoverClose,
183
+ Jo as PopoverContent,
184
+ Wo as PopoverTrigger,
185
+ Yo as Progress,
186
+ Zo as ProgressCircle,
187
+ or as RadioGroup,
188
+ rr as RadioItem,
189
+ Vt as RelativeTime,
190
+ ar as ScrollArea,
191
+ nr as ScrollBar,
192
+ pr as Select,
193
+ ir as SelectContent,
194
+ lr as SelectGroup,
195
+ xr as SelectItem,
196
+ ur as SelectLabel,
197
+ dr as SelectScrollDownButton,
198
+ fr as SelectScrollUpButton,
199
+ sr as SelectSeparator,
200
+ Cr as SelectTrigger,
201
+ Tr as SelectValue,
202
+ cr as Separator,
203
+ gr as Sheet,
204
+ br as SheetClose,
205
+ Mr as SheetContent,
206
+ wr as SheetDescription,
207
+ Pr as SheetFooter,
208
+ hr as SheetHeader,
209
+ Ir as SheetPortal,
210
+ Fr as SheetTitle,
211
+ vr as SheetTrigger,
212
+ Lr as Sidebar,
213
+ Rr as SidebarGroup,
214
+ kr as SidebarItem,
215
+ Gr as SidebarSection,
216
+ Hr as Skeleton,
217
+ Or as Slider,
218
+ aa as Snackbar,
219
+ Ur as Spinner,
220
+ Kr as Stepper,
221
+ Qr as Switch,
222
+ M as TOAST_DURATIONS,
223
+ jr as Table,
224
+ qr as TableBody,
225
+ zr as TableCaption,
226
+ Jr as TableCell,
227
+ Wr as TableFooter,
228
+ Xr as TableHead,
229
+ Yr as TableHeader,
230
+ Zr as TableRow,
231
+ et as TableSortHeader,
232
+ rt as Tabs,
233
+ tt as TabsContent,
234
+ at as TabsList,
235
+ nt as TabsTrigger,
236
+ ma as TagInput,
237
+ pt as Textarea,
238
+ ia as Timeline,
239
+ la as TimelineDescription,
240
+ xa as TimelineItem,
241
+ ua as TimelineTime,
242
+ da as TimelineTitle,
243
+ lt as Toast,
244
+ xt as ToastAction,
245
+ ut as ToastClose,
246
+ dt as ToastDescription,
247
+ ft as ToastProvider,
248
+ st as ToastTitle,
249
+ Ct as ToastViewport,
250
+ Tt as Toaster,
251
+ ct as Tooltip,
252
+ Dt as TooltipContent,
253
+ gt as TooltipProvider,
254
+ bt as TooltipRoot,
255
+ Mt as TooltipTrigger,
256
+ Pt as TopNav,
257
+ ht as TopNavLink,
258
+ sa as Tree,
259
+ Et as abbreviateNumber,
260
+ Qe as brandPresets,
261
+ n as cn,
262
+ Ta as cva,
263
+ Ut as defaultChartLabels,
264
+ Vo as defaultPaginationLabels,
265
+ p as defaultStrings,
266
+ d as formatDate,
267
+ f as formatMNT,
268
+ s as formatNumber,
269
+ C as formatPhone,
270
+ i as formatString,
271
+ T as getDateTimeFormat,
272
+ v as isApplePlatform,
273
+ x as mnStrings,
274
+ _t as niceTicks,
275
+ Qo as paginationLabelsFromStrings,
276
+ S as parsePhoneMN,
277
+ w as toast,
278
+ ge as useCommandPaletteShortcut,
279
+ G as useDebounce,
280
+ y as useDebouncedCallback,
281
+ R as useDelayedLoading,
282
+ I as useFieldIds,
283
+ ko as useFormField,
284
+ D as useMediaQuery,
285
+ A as useModifierKey,
286
+ g as usePrefersReducedMotion,
287
+ yr as useSidebar,
288
+ H as useStrings,
289
+ P as useToast
290
+ };
291
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Single import surface for `class-variance-authority` so every component
3
+ * uses identical defaults (in particular, the `compoundVariants` API and the
4
+ * `VariantProps` type).
5
+ */
6
+ export { cva, type VariantProps } from 'class-variance-authority';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Dependency-free locale helpers. Defaults target Mongolia (Asia/Ulaanbaatar,
3
+ * `₮` suffix, `,` thousands) but every option is overridable.
4
+ */
5
+ export interface FormatDateOptions {
6
+ /** IANA zone. Default `Asia/Ulaanbaatar`. */
7
+ tz?: string;
8
+ /**
9
+ * Tokens: `yyyy` `MM` `dd` `HH` `mm` `ss`, plus `M`/`d`/`H` (unpadded).
10
+ * Default `yyyy-MM-dd HH:mm`.
11
+ */
12
+ pattern?: string;
13
+ }
14
+ export declare function getDateTimeFormat(tz: string): Intl.DateTimeFormat;
15
+ /**
16
+ * Format a date in a fixed time zone with a small token pattern.
17
+ *
18
+ * @example
19
+ * formatDate(new Date('2026-08-20T02:05:00Z')) // "2026-08-20 10:05"
20
+ * formatDate(d, { pattern: 'dd.MM.yyyy', tz: 'UTC' }) // "20.08.2026"
21
+ */
22
+ export declare function formatDate(date: Date | number | string, { tz, pattern }?: FormatDateOptions): string;
23
+ export interface FormatNumberOptions {
24
+ /** Max fraction digits. Default 2. */
25
+ maximumFractionDigits?: number;
26
+ /** Min fraction digits. Default 0. */
27
+ minimumFractionDigits?: number;
28
+ /** Thousands separator. Default `,`. */
29
+ group?: string;
30
+ /** Decimal separator. Default `.`. */
31
+ decimal?: string;
32
+ }
33
+ /**
34
+ * Group thousands with a fixed separator (locale-independent, so SSR and
35
+ * client always agree).
36
+ *
37
+ * @example formatNumber(1250000) // "1,250,000"
38
+ */
39
+ export declare function formatNumber(n: number, { maximumFractionDigits, minimumFractionDigits, group, decimal, }?: FormatNumberOptions): string;
40
+ export interface FormatMNTOptions extends Omit<FormatNumberOptions, 'maximumFractionDigits'> {
41
+ /** Abbreviate ≥1,000 as `K` / `M` / `B` with one decimal: `12.4M₮`, `850K₮`. */
42
+ compact?: boolean;
43
+ }
44
+ /**
45
+ * Mongolian tögrög: grouped integer + `₮` suffix, no space.
46
+ *
47
+ * @example formatMNT(1250000) // "1,250,000₮"
48
+ * @example formatMNT(12400000, { compact: true }) // "12.4M₮"
49
+ * @example formatMNT(850000, { compact: true }) // "850K₮"
50
+ */
51
+ export declare function formatMNT(n: number, { compact, ...options }?: FormatMNTOptions): string;
52
+ /**
53
+ * Display form for Mongolian phone numbers. Accepts `XXXXXXXX`, `+976XXXXXXXX`,
54
+ * `976XXXXXXXX`, or already-spaced input; anything else is returned unchanged.
55
+ *
56
+ * @example formatPhone('99112233') // "+976 9911 2233"
57
+ * @example formatPhone('+97699112233') // "+976 9911 2233"
58
+ * @example formatPhone('+1 555 0100') // "+1 555 0100" (non-MN, untouched)
59
+ */
60
+ export declare function formatPhone(input: string): string;
61
+ /**
62
+ * Normalise a Mongolian phone number to E.164 (`+976XXXXXXXX`) for storage.
63
+ * Returns `null` when the input is not an 8-digit MN number.
64
+ */
65
+ export declare function parsePhoneMN(input: string): string | null;
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ const o = (t, r = 2) => String(t).padStart(r, "0"), u = /* @__PURE__ */ new Map();
3
+ function f(t) {
4
+ let r = u.get(t);
5
+ return r || (r = new Intl.DateTimeFormat("en-US", {
6
+ timeZone: t,
7
+ hourCycle: "h23",
8
+ year: "numeric",
9
+ month: "2-digit",
10
+ day: "2-digit",
11
+ hour: "2-digit",
12
+ minute: "2-digit",
13
+ second: "2-digit"
14
+ }), u.set(t, r)), r;
15
+ }
16
+ function g(t, r) {
17
+ const n = f(r), i = {};
18
+ for (const e of n.formatToParts(t))
19
+ e.type !== "literal" && (i[e.type] = Number(e.value));
20
+ return i;
21
+ }
22
+ function l(t, { tz: r = "Asia/Ulaanbaatar", pattern: n = "yyyy-MM-dd HH:mm" } = {}) {
23
+ const i = t instanceof Date ? t : new Date(t);
24
+ if (Number.isNaN(i.getTime())) return "";
25
+ const e = g(i, r), c = e.hour === 24 ? 0 : e.hour;
26
+ return n.replace(/yyyy|MM|dd|HH|mm|ss|M|d|H/g, (a) => {
27
+ switch (a) {
28
+ case "yyyy":
29
+ return String(e.year);
30
+ case "MM":
31
+ return o(e.month);
32
+ case "dd":
33
+ return o(e.day);
34
+ case "HH":
35
+ return o(c);
36
+ case "mm":
37
+ return o(e.minute);
38
+ case "ss":
39
+ return o(e.second);
40
+ case "M":
41
+ return String(e.month);
42
+ case "d":
43
+ return String(e.day);
44
+ case "H":
45
+ return String(c);
46
+ default:
47
+ return a;
48
+ }
49
+ });
50
+ }
51
+ function m(t, {
52
+ maximumFractionDigits: r = 2,
53
+ minimumFractionDigits: n = 0,
54
+ group: i = ",",
55
+ decimal: e = "."
56
+ } = {}) {
57
+ if (!Number.isFinite(t)) return "";
58
+ const c = Math.abs(t).toFixed(r);
59
+ let [a, s = ""] = c.split(".");
60
+ s = s.replace(/0+$/, "");
61
+ const d = t < 0 && Number(c) !== 0 ? "-" : "";
62
+ for (; s.length < n; ) s += "0";
63
+ return a = a.replace(/\B(?=(\d{3})+(?!\d))/g, i), `${d}${a}${s ? e + s : ""}`;
64
+ }
65
+ function y(t, { compact: r, ...n } = {}) {
66
+ if (r && Number.isFinite(t) && Math.abs(t) >= 1e3) {
67
+ const i = [
68
+ [1e9, "B"],
69
+ [1e6, "M"],
70
+ [1e3, "K"]
71
+ ];
72
+ let e = i.findIndex(([s]) => Math.abs(t) >= s);
73
+ e > 0 && Math.abs(t / i[e][0]).toFixed(1) === "1000.0" && (e -= 1);
74
+ const [c, a] = i[e];
75
+ return `${m(t / c, { ...n, maximumFractionDigits: 1 })}${a}₮`;
76
+ }
77
+ return `${m(t, { ...n, maximumFractionDigits: 0 })}₮`;
78
+ }
79
+ function h(t) {
80
+ const r = t.replace(/[\s\-().]/g, ""), n = /^(?:\+?976)?(\d{8})$/.exec(r);
81
+ return n ? `+976 ${n[1].slice(0, 4)} ${n[1].slice(4)}` : t;
82
+ }
83
+ function M(t) {
84
+ const r = t.replace(/[\s\-().]/g, ""), n = /^(?:\+?976)?(\d{8})$/.exec(r);
85
+ return n ? `+976${n[1]}` : null;
86
+ }
87
+ export {
88
+ l as formatDate,
89
+ y as formatMNT,
90
+ m as formatNumber,
91
+ h as formatPhone,
92
+ f as getDateTimeFormat,
93
+ M as parsePhoneMN
94
+ };
95
+ //# sourceMappingURL=format.js.map