@devalok/shilp-sutra 0.8.3 → 0.9.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 (217) hide show
  1. package/dist/_chunks/avatar.js +50 -0
  2. package/dist/_chunks/button.js +95 -0
  3. package/dist/_chunks/card.js +40 -0
  4. package/dist/_chunks/checkbox.js +14 -0
  5. package/dist/_chunks/form.js +27 -0
  6. package/dist/_chunks/primitives.js +6965 -0
  7. package/dist/_chunks/sidebar.js +592 -0
  8. package/dist/_chunks/spinner.js +34 -0
  9. package/dist/_chunks/tiptap.js +15254 -0
  10. package/dist/_chunks/tooltip.js +13 -0
  11. package/dist/_chunks/tree-view.js +304 -0
  12. package/dist/_chunks/use-calendar.js +990 -0
  13. package/dist/_chunks/utils.js +15 -0
  14. package/dist/_chunks/vendor.js +5823 -0
  15. package/dist/composed/avatar-group.js +20 -20
  16. package/dist/composed/command-palette.js +1 -1
  17. package/dist/composed/confirm-dialog.js +5 -5
  18. package/dist/composed/content-card.d.ts +1 -1
  19. package/dist/composed/content-card.js +6 -6
  20. package/dist/composed/date-picker/index.js +13 -0
  21. package/dist/composed/empty-state.js +10 -10
  22. package/dist/composed/error-boundary.js +2 -2
  23. package/dist/composed/global-loading.js +4 -4
  24. package/dist/composed/index.js +45 -53
  25. package/dist/composed/loading-skeleton.js +2 -2
  26. package/dist/composed/member-picker.js +5 -5
  27. package/dist/composed/page-header.js +4 -4
  28. package/dist/composed/page-skeletons.js +1 -1
  29. package/dist/composed/priority-indicator.js +6 -6
  30. package/dist/composed/rich-text-editor.js +422 -209
  31. package/dist/composed/schedule-view.js +1 -1
  32. package/dist/composed/simple-tooltip.js +6 -6
  33. package/dist/composed/status-badge.d.ts +1 -1
  34. package/dist/composed/status-badge.js +2 -2
  35. package/dist/shell/bottom-navbar.js +1 -1
  36. package/dist/shell/notification-center.js +2 -2
  37. package/dist/shell/notification-preferences.js +32 -33
  38. package/dist/shell/sidebar.js +24 -24
  39. package/dist/shell/top-bar.js +22 -22
  40. package/dist/ui/accordion.js +17 -17
  41. package/dist/ui/alert-dialog.js +29 -29
  42. package/dist/ui/alert.d.ts +2 -2
  43. package/dist/ui/alert.js +65 -44
  44. package/dist/ui/aspect-ratio.js +1 -1
  45. package/dist/ui/autocomplete.js +11 -11
  46. package/dist/ui/avatar.d.ts +1 -1
  47. package/dist/ui/avatar.js +67 -25
  48. package/dist/ui/badge.d.ts +2 -2
  49. package/dist/ui/badge.js +115 -91
  50. package/dist/ui/banner.d.ts +1 -1
  51. package/dist/ui/banner.js +5 -5
  52. package/dist/ui/breadcrumb.js +14 -14
  53. package/dist/ui/button-group.js +30 -15
  54. package/dist/ui/button.d.ts +2 -2
  55. package/dist/ui/button.js +114 -71
  56. package/dist/ui/card.js +66 -22
  57. package/dist/ui/charts/index.js +1221 -18
  58. package/dist/ui/checkbox.js +25 -5
  59. package/dist/ui/chip.d.ts +4 -4
  60. package/dist/ui/chip.js +2 -2
  61. package/dist/ui/code.js +1 -1
  62. package/dist/ui/collapsible.js +5 -5
  63. package/dist/ui/color-input.js +11 -11
  64. package/dist/ui/combobox.js +12 -12
  65. package/dist/ui/container.js +4 -4
  66. package/dist/ui/context-menu.js +37 -37
  67. package/dist/ui/data-table-toolbar.js +18 -18
  68. package/dist/ui/data-table.js +2 -2
  69. package/dist/ui/dialog.js +33 -33
  70. package/dist/ui/dropdown-menu.js +60 -60
  71. package/dist/ui/file-upload.js +1 -1
  72. package/dist/ui/form.js +36 -15
  73. package/dist/ui/hover-card.js +7 -7
  74. package/dist/ui/icon-button.js +9 -9
  75. package/dist/ui/index.js +523 -325
  76. package/dist/ui/input-otp.d.ts +2 -2
  77. package/dist/ui/input-otp.js +14 -14
  78. package/dist/ui/input.js +56 -28
  79. package/dist/ui/label.js +18 -4
  80. package/dist/ui/lib/utils.js +4 -5
  81. package/dist/ui/link.js +9 -9
  82. package/dist/ui/menubar.js +81 -81
  83. package/dist/ui/navigation-menu.js +42 -42
  84. package/dist/ui/number-input.js +13 -13
  85. package/dist/ui/pagination.js +5 -5
  86. package/dist/ui/popover.js +9 -9
  87. package/dist/ui/progress.d.ts +1 -1
  88. package/dist/ui/progress.js +15 -15
  89. package/dist/ui/radio.js +10 -10
  90. package/dist/ui/search-input.js +5 -5
  91. package/dist/ui/segmented-control.js +91 -83
  92. package/dist/ui/select.js +52 -52
  93. package/dist/ui/separator.js +20 -5
  94. package/dist/ui/sheet.js +28 -28
  95. package/dist/ui/sidebar.js +36 -560
  96. package/dist/ui/skeleton.d.ts +1 -1
  97. package/dist/ui/skeleton.js +9 -9
  98. package/dist/ui/slider.js +11 -11
  99. package/dist/ui/spinner.js +37 -2
  100. package/dist/ui/stack.js +1 -1
  101. package/dist/ui/stat-card.js +1 -1
  102. package/dist/ui/stepper.js +15 -15
  103. package/dist/ui/switch.js +22 -3
  104. package/dist/ui/table.js +1 -1
  105. package/dist/ui/tabs.js +59 -32
  106. package/dist/ui/text.js +2 -2
  107. package/dist/ui/textarea.js +7 -7
  108. package/dist/ui/toast.d.ts +1 -1
  109. package/dist/ui/toast.js +28 -28
  110. package/dist/ui/toggle-group.js +11 -11
  111. package/dist/ui/toggle.js +9 -9
  112. package/dist/ui/tooltip.js +17 -6
  113. package/dist/ui/transitions.js +68 -58
  114. package/dist/ui/tree-view/index.js +7 -0
  115. package/dist/ui/visually-hidden.js +3 -3
  116. package/llms-full.txt +1 -1
  117. package/llms.txt +7 -0
  118. package/package.json +656 -701
  119. package/dist/_virtual/client.js +0 -5
  120. package/dist/_virtual/index.js +0 -5
  121. package/dist/_virtual/react-dom-client.development.js +0 -5
  122. package/dist/_virtual/react-dom-client.production.js +0 -5
  123. package/dist/_virtual/scheduler.development.js +0 -5
  124. package/dist/_virtual/scheduler.production.js +0 -5
  125. package/dist/composed/date-picker/calendar-grid.js +0 -194
  126. package/dist/composed/date-picker/date-picker.js +0 -124
  127. package/dist/composed/date-picker/date-range-picker.js +0 -167
  128. package/dist/composed/date-picker/date-time-picker.js +0 -193
  129. package/dist/composed/date-picker/month-picker.js +0 -53
  130. package/dist/composed/date-picker/presets.js +0 -84
  131. package/dist/composed/date-picker/time-picker.js +0 -181
  132. package/dist/composed/date-picker/use-calendar.js +0 -17
  133. package/dist/composed/date-picker/year-picker.js +0 -45
  134. package/dist/composed/extensions/emoji-suggestion.js +0 -119
  135. package/dist/composed/extensions/file-attachment.js +0 -55
  136. package/dist/composed/extensions/mention-suggestion.js +0 -79
  137. package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
  138. package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
  139. package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
  140. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
  141. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
  142. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
  143. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
  144. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
  145. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
  146. package/dist/primitives/_internal/number.js +0 -6
  147. package/dist/primitives/_internal/primitive.js +0 -9
  148. package/dist/primitives/_internal/react-arrow.js +0 -13
  149. package/dist/primitives/_internal/react-collection.js +0 -48
  150. package/dist/primitives/_internal/react-compose-refs.js +0 -29
  151. package/dist/primitives/_internal/react-context.js +0 -76
  152. package/dist/primitives/_internal/react-direction.js +0 -10
  153. package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
  154. package/dist/primitives/_internal/react-focus-guards.js +0 -17
  155. package/dist/primitives/_internal/react-focus-scope.js +0 -137
  156. package/dist/primitives/_internal/react-id.js +0 -14
  157. package/dist/primitives/_internal/react-popper.js +0 -137
  158. package/dist/primitives/_internal/react-portal.js +0 -16
  159. package/dist/primitives/_internal/react-presence.js +0 -71
  160. package/dist/primitives/_internal/react-primitive.js +0 -36
  161. package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
  162. package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
  163. package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
  164. package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
  165. package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
  166. package/dist/primitives/_internal/react-use-previous.js +0 -8
  167. package/dist/primitives/_internal/react-use-size.js +0 -27
  168. package/dist/primitives/react-accordion.js +0 -239
  169. package/dist/primitives/react-alert-dialog.js +0 -127
  170. package/dist/primitives/react-aspect-ratio.js +0 -43
  171. package/dist/primitives/react-avatar.js +0 -75
  172. package/dist/primitives/react-checkbox.js +0 -251
  173. package/dist/primitives/react-collapsible.js +0 -120
  174. package/dist/primitives/react-context-menu.js +0 -240
  175. package/dist/primitives/react-dialog.js +0 -262
  176. package/dist/primitives/react-dropdown-menu.js +0 -227
  177. package/dist/primitives/react-hover-card.js +0 -187
  178. package/dist/primitives/react-label.js +0 -20
  179. package/dist/primitives/react-menu.js +0 -652
  180. package/dist/primitives/react-menubar.js +0 -355
  181. package/dist/primitives/react-navigation-menu.js +0 -607
  182. package/dist/primitives/react-popover.js +0 -243
  183. package/dist/primitives/react-progress.js +0 -84
  184. package/dist/primitives/react-radio-group.js +0 -238
  185. package/dist/primitives/react-roving-focus.js +0 -183
  186. package/dist/primitives/react-select.js +0 -862
  187. package/dist/primitives/react-separator.js +0 -24
  188. package/dist/primitives/react-slider.js +0 -437
  189. package/dist/primitives/react-slot.js +0 -70
  190. package/dist/primitives/react-switch.js +0 -132
  191. package/dist/primitives/react-tabs.js +0 -163
  192. package/dist/primitives/react-toast.js +0 -446
  193. package/dist/primitives/react-toggle-group.js +0 -137
  194. package/dist/primitives/react-toggle.js +0 -33
  195. package/dist/primitives/react-tooltip.js +0 -338
  196. package/dist/primitives/react-visually-hidden.js +0 -32
  197. package/dist/ui/charts/_internal/animation.js +0 -18
  198. package/dist/ui/charts/_internal/axes.js +0 -42
  199. package/dist/ui/charts/_internal/colors.js +0 -21
  200. package/dist/ui/charts/_internal/grid-lines.js +0 -43
  201. package/dist/ui/charts/_internal/legend.js +0 -29
  202. package/dist/ui/charts/_internal/tooltip.js +0 -39
  203. package/dist/ui/charts/_internal/types.js +0 -10
  204. package/dist/ui/charts/area-chart.js +0 -245
  205. package/dist/ui/charts/bar-chart.js +0 -153
  206. package/dist/ui/charts/chart-container.js +0 -27
  207. package/dist/ui/charts/gauge-chart.js +0 -72
  208. package/dist/ui/charts/line-chart.js +0 -163
  209. package/dist/ui/charts/pie-chart.js +0 -132
  210. package/dist/ui/charts/radar-chart.js +0 -223
  211. package/dist/ui/charts/sparkline.js +0 -124
  212. package/dist/ui/lib/motion.js +0 -32
  213. package/dist/ui/lib/use-reduced-motion.js +0 -15
  214. package/dist/ui/lib/use-ripple.js +0 -14
  215. package/dist/ui/tree-view/tree-item.js +0 -139
  216. package/dist/ui/tree-view/tree-view.js +0 -140
  217. package/dist/ui/tree-view/use-tree.js +0 -38
@@ -1,12 +1,32 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { Checkbox as r, CheckboxIndicator as n } from "../primitives/react-checkbox.js";
3
+ import { C as r, b as n } from "../_chunks/primitives.js";
4
4
  import { IconMinus as m, IconCheck as l } from "@tabler/icons-react";
5
5
  import * as b from "react";
6
- import { cn as f } from "./lib/utils.js";
7
- const h = b.forwardRef(({ className: o, error: i, indeterminate: a, checked: c, ...s }, d) => {
8
- const t = a ? "indeterminate" : c;
9
- return e(r, { ref: d, checked: t, className: f("peer h-ico-md w-ico-md shrink-0 rounded-ds-sm", "border border-border-strong", "bg-field", "transition-colors duration-fast-01", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-[0.38]", "data-[state=checked]:bg-interactive data-[state=checked]:border-interactive data-[state=checked]:text-text-on-color", "data-[state=indeterminate]:bg-interactive data-[state=indeterminate]:border-interactive data-[state=indeterminate]:text-text-on-color", i && "border-border-error", o), ...s, children: e(n, { className: "flex items-center justify-center text-current", children: t === "indeterminate" ? e(m, { className: "h-ico-sm w-ico-sm" }) : e(l, { className: "h-ico-sm w-ico-sm" }) }) });
6
+ import { c as f } from "../_chunks/utils.js";
7
+ const h = b.forwardRef(({ className: o, error: i, indeterminate: a, checked: s, ...c }, d) => {
8
+ const t = a ? "indeterminate" : s;
9
+ return /* @__PURE__ */ e(
10
+ r,
11
+ {
12
+ ref: d,
13
+ checked: t,
14
+ className: f(
15
+ "peer h-ico-md w-ico-md shrink-0 rounded-ds-sm",
16
+ "border border-border-strong",
17
+ "bg-field",
18
+ "transition-colors duration-fast-01",
19
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
20
+ "disabled:cursor-not-allowed disabled:opacity-[0.38]",
21
+ "data-[state=checked]:bg-interactive data-[state=checked]:border-interactive data-[state=checked]:text-text-on-color",
22
+ "data-[state=indeterminate]:bg-interactive data-[state=indeterminate]:border-interactive data-[state=indeterminate]:text-text-on-color",
23
+ i && "border-border-error",
24
+ o
25
+ ),
26
+ ...c,
27
+ children: /* @__PURE__ */ e(n, { className: "flex items-center justify-center text-current", children: t === "indeterminate" ? /* @__PURE__ */ e(m, { className: "h-ico-sm w-ico-sm" }) : /* @__PURE__ */ e(l, { className: "h-ico-sm w-ico-sm" }) })
28
+ }
29
+ );
10
30
  });
11
31
  h.displayName = r.displayName;
12
32
  export {
package/dist/ui/chip.d.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const chipVariants: (props?: ({
5
- variant?: "outline" | "subtle" | null | undefined;
5
+ variant?: "subtle" | "outline" | null | undefined;
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
- color?: "default" | "error" | "warning" | "success" | "cyan" | "indigo" | "orange" | "teal" | "info" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
7
+ color?: "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  type ChipColor = 'default' | 'primary' | 'success' | 'error' | 'warning' | 'info' | 'teal' | 'amber' | 'slate' | 'indigo' | 'cyan' | 'orange' | 'emerald';
10
10
  /**
@@ -51,9 +51,9 @@ type ChipProps = Omit<VariantProps<typeof chipVariants>, 'color'> & {
51
51
  className?: string;
52
52
  };
53
53
  declare const Chip: React.ForwardRefExoticComponent<Omit<VariantProps<(props?: ({
54
- variant?: "outline" | "subtle" | null | undefined;
54
+ variant?: "subtle" | "outline" | null | undefined;
55
55
  size?: "sm" | "md" | "lg" | null | undefined;
56
- color?: "default" | "error" | "warning" | "success" | "cyan" | "indigo" | "orange" | "teal" | "info" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
56
+ color?: "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
57
57
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "color"> & {
58
58
  label: string;
59
59
  color?: ChipColor;
package/dist/ui/chip.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import { jsxs as v, jsx as r } from "react/jsx-runtime";
3
3
  import * as f from "react";
4
4
  import { IconX as p } from "@tabler/icons-react";
5
- import { cva as N } from "class-variance-authority";
6
- import { cn as h } from "./lib/utils.js";
5
+ import { m as N } from "../_chunks/vendor.js";
6
+ import { c as h } from "../_chunks/utils.js";
7
7
  const w = N(
8
8
  "inline-flex items-center gap-ds-02 font-sans leading-ds-relaxed rounded-ds-full transition-colors duration-fast-01",
9
9
  {
package/dist/ui/code.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
- import { cn as s } from "./lib/utils.js";
3
+ import { c as s } from "../_chunks/utils.js";
4
4
  const n = a.forwardRef(
5
5
  ({ className: r, variant: m = "inline", children: o, ...d }, t) => m === "block" ? /* @__PURE__ */ e(
6
6
  "pre",
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
3
  import * as i from "react";
4
- import { Root as l, Trigger as n, Content as a } from "../primitives/react-collapsible.js";
5
- import { cn as r } from "./lib/utils.js";
6
- const c = l, C = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ s(
4
+ import { g as a, h as l, i as n } from "../_chunks/primitives.js";
5
+ import { c as r } from "../_chunks/utils.js";
6
+ const f = l, g = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ s(
7
7
  a,
8
8
  {
9
9
  ref: e,
@@ -16,7 +16,7 @@ const c = l, C = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__
16
16
  ));
17
17
  d.displayName = a.displayName;
18
18
  export {
19
- c as Collapsible,
19
+ f as Collapsible,
20
20
  d as CollapsibleContent,
21
- C as CollapsibleTrigger
21
+ g as CollapsibleTrigger
22
22
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { cn as s } from "./lib/utils.js";
4
+ import { c as s } from "../_chunks/utils.js";
5
5
  const f = m.forwardRef(
6
- ({ value: l = "#000000", onChange: n, presets: c, disabled: o = !1, className: d }, u) => {
7
- const a = (r) => {
6
+ ({ value: a = "#000000", onChange: n, presets: c, disabled: o = !1, className: d }, u) => {
7
+ const l = (r) => {
8
8
  n == null || n(r);
9
9
  };
10
10
  return /* @__PURE__ */ i("div", { className: s("flex flex-col gap-ds-03", d), children: [
@@ -23,9 +23,9 @@ const f = m.forwardRef(
23
23
  {
24
24
  ref: u,
25
25
  type: "color",
26
- value: l,
26
+ value: a,
27
27
  disabled: o,
28
- onChange: (r) => a(r.target.value),
28
+ onChange: (r) => l(r.target.value),
29
29
  className: "absolute inset-0 h-full w-full cursor-pointer opacity-0"
30
30
  }
31
31
  ),
@@ -33,7 +33,7 @@ const f = m.forwardRef(
33
33
  "span",
34
34
  {
35
35
  className: "h-full w-full rounded-[inherit]",
36
- style: { backgroundColor: l }
36
+ style: { backgroundColor: a }
37
37
  }
38
38
  )
39
39
  ]
@@ -44,15 +44,15 @@ const f = m.forwardRef(
44
44
  {
45
45
  type: "text",
46
46
  "aria-label": "Hex color value",
47
- value: l,
47
+ value: a,
48
48
  disabled: o,
49
49
  onChange: (r) => {
50
50
  const e = r.target.value;
51
- /^#[0-9a-fA-F]{0,6}$/.test(e) && a(e);
51
+ /^#[0-9a-fA-F]{0,6}$/.test(e) && l(e);
52
52
  },
53
53
  onBlur: (r) => {
54
54
  const e = r.target.value;
55
- /^#[0-9a-fA-F]{6}$/.test(e) && a(e);
55
+ /^#[0-9a-fA-F]{6}$/.test(e) && l(e);
56
56
  },
57
57
  maxLength: 7,
58
58
  className: s(
@@ -68,10 +68,10 @@ const f = m.forwardRef(
68
68
  {
69
69
  type: "button",
70
70
  disabled: o,
71
- onClick: () => a(r),
71
+ onClick: () => l(r),
72
72
  className: s(
73
73
  "h-ds-xs w-ds-xs rounded-ds-sm border transition-colors",
74
- l === r ? "border-interactive ring-1 ring-interactive" : "border-border hover:border-border-strong",
74
+ a === r ? "border-interactive ring-1 ring-interactive" : "border-border hover:border-border-strong",
75
75
  o && "cursor-not-allowed opacity-50"
76
76
  ),
77
77
  style: { backgroundColor: r },
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as d, Fragment as B } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
- import { Root as G, Trigger as U, Portal as q, Content as J } from "../primitives/react-popover.js";
4
+ import { j as G, k as U, P as q, l as J } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as Q, IconSearch as W, IconCheck as Y, IconX as Z } from "@tabler/icons-react";
6
- import { cn as x } from "./lib/utils.js";
6
+ import { c as x } from "../_chunks/utils.js";
7
7
  const P = 2, V = 36, ee = a.forwardRef(
8
8
  ({
9
9
  options: u,
10
10
  value: f,
11
11
  onValueChange: m,
12
12
  placeholder: S = "Select...",
13
- searchPlaceholder: A = "Search...",
14
- emptyMessage: L = "No results found",
13
+ searchPlaceholder: j = "Search...",
14
+ emptyMessage: A = "No results found",
15
15
  multiple: b = !1,
16
16
  disabled: p = !1,
17
- className: T,
18
- triggerClassName: $,
19
- maxVisible: j = 6,
17
+ className: L,
18
+ triggerClassName: T,
19
+ maxVisible: $ = 6,
20
20
  renderOption: E,
21
21
  ...H
22
22
  }, M) => {
@@ -168,7 +168,7 @@ const P = 2, V = 36, ee = a.forwardRef(
168
168
  }
169
169
  return /* @__PURE__ */ r("span", { className: "flex-1 truncate text-left text-text-placeholder", children: S });
170
170
  };
171
- return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */ d("div", { className: x("relative", T), ...H, children: [
171
+ return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */ d("div", { className: x("relative", L), ...H, children: [
172
172
  /* @__PURE__ */ r(U, { asChild: !0, disabled: p, children: /* @__PURE__ */ d(
173
173
  "button",
174
174
  {
@@ -185,7 +185,7 @@ const P = 2, V = 36, ee = a.forwardRef(
185
185
  "transition-colors duration-fast-01",
186
186
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive",
187
187
  "disabled:cursor-not-allowed disabled:opacity-[0.38]",
188
- $
188
+ T
189
189
  ),
190
190
  children: [
191
191
  F(),
@@ -215,7 +215,7 @@ const P = 2, V = 36, ee = a.forwardRef(
215
215
  ref: k,
216
216
  type: "text",
217
217
  className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-none placeholder:text-text-placeholder",
218
- placeholder: A,
218
+ placeholder: j,
219
219
  value: v,
220
220
  onChange: (e) => {
221
221
  y(e.target.value), c(-1);
@@ -228,7 +228,7 @@ const P = 2, V = 36, ee = a.forwardRef(
228
228
  }
229
229
  )
230
230
  ] }),
231
- o.length === 0 ? /* @__PURE__ */ r("div", { className: "px-ds-04 py-ds-05 text-center text-ds-md text-text-tertiary", children: L }) : /* @__PURE__ */ r(
231
+ o.length === 0 ? /* @__PURE__ */ r("div", { className: "px-ds-04 py-ds-05 text-center text-ds-md text-text-tertiary", children: A }) : /* @__PURE__ */ r(
232
232
  "ul",
233
233
  {
234
234
  ref: N,
@@ -236,7 +236,7 @@ const P = 2, V = 36, ee = a.forwardRef(
236
236
  role: "listbox",
237
237
  "aria-multiselectable": b || void 0,
238
238
  className: "overflow-auto p-ds-02",
239
- style: { maxHeight: `${j * V}px` },
239
+ style: { maxHeight: `${$ * V}px` },
240
240
  children: o.map((e, t) => {
241
241
  const s = O(e.value);
242
242
  return /* @__PURE__ */ d(
@@ -1,10 +1,10 @@
1
1
  import * as a from "react";
2
- import { cn as d } from "./lib/utils.js";
2
+ import { c as d } from "../_chunks/utils.js";
3
3
  const f = {
4
4
  default: "max-w-layout",
5
5
  body: "max-w-layout-body",
6
6
  full: "max-w-full"
7
- }, u = a.forwardRef(
7
+ }, s = a.forwardRef(
8
8
  ({ as: t, maxWidth: o = "default", className: e, children: l, ...m }, n) => {
9
9
  const r = t || "div";
10
10
  return a.createElement(
@@ -18,7 +18,7 @@ const f = {
18
18
  );
19
19
  }
20
20
  );
21
- u.displayName = "Container";
21
+ s.displayName = "Container";
22
22
  export {
23
- u as Container
23
+ s as Container
24
24
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { jsxs as i, jsx as s } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { Root as N, Group as C, Portal as l, RadioGroup as g, Sub as w, Trigger as R, CheckboxItem as m, ItemIndicator as c, Content as p, Item as u, Label as f, RadioItem as x, Separator as b, SubContent as y, SubTrigger as h } from "../primitives/react-context-menu.js";
5
- import { IconCheck as I, IconCircle as M, IconChevronRight as S } from "@tabler/icons-react";
6
- import { cn as d } from "./lib/utils.js";
7
- const F = N, H = R, J = C, K = l, O = w, Q = g, v = n.forwardRef(({ className: e, inset: t, children: a, ...s }, r) => /* @__PURE__ */ i(
8
- h,
4
+ import { m as l, n as m, o as c, p, q as u, r as f, s as x, t as b, L as y, u as N, v as h, G as C, w as g, x as w, y as M } from "../_chunks/primitives.js";
5
+ import { IconChevronRight as R, IconCheck as I, IconCircle as v } from "@tabler/icons-react";
6
+ import { c as d } from "../_chunks/utils.js";
7
+ const F = h, H = M, J = C, K = c, O = w, Q = g, S = n.forwardRef(({ className: e, inset: t, children: a, ...o }, r) => /* @__PURE__ */ i(
8
+ l,
9
9
  {
10
10
  ref: r,
11
11
  className: d(
@@ -13,16 +13,16 @@ const F = N, H = R, J = C, K = l, O = w, Q = g, v = n.forwardRef(({ className: e
13
13
  t && "pl-ds-07",
14
14
  e
15
15
  ),
16
- ...s,
16
+ ...o,
17
17
  children: [
18
18
  a,
19
- /* @__PURE__ */ o(S, { className: "ml-auto h-ico-sm w-ico-sm" })
19
+ /* @__PURE__ */ s(R, { className: "ml-auto h-ico-sm w-ico-sm" })
20
20
  ]
21
21
  }
22
22
  ));
23
- v.displayName = h.displayName;
24
- const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
25
- y,
23
+ S.displayName = l.displayName;
24
+ const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
25
+ m,
26
26
  {
27
27
  ref: a,
28
28
  className: d(
@@ -32,8 +32,8 @@ const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
32
32
  ...t
33
33
  }
34
34
  ));
35
- z.displayName = y.displayName;
36
- const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(
35
+ z.displayName = m.displayName;
36
+ const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(c, { children: /* @__PURE__ */ s(
37
37
  p,
38
38
  {
39
39
  ref: a,
@@ -45,10 +45,10 @@ const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l, { chi
45
45
  }
46
46
  ) }));
47
47
  G.displayName = p.displayName;
48
- const T = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */ o(
48
+ const j = n.forwardRef(({ className: e, inset: t, ...a }, o) => /* @__PURE__ */ s(
49
49
  u,
50
50
  {
51
- ref: s,
51
+ ref: o,
52
52
  className: d(
53
53
  "relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
54
54
  t && "pl-ds-07",
@@ -57,9 +57,9 @@ const T = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */
57
57
  ...a
58
58
  }
59
59
  ));
60
- T.displayName = u.displayName;
61
- const j = n.forwardRef(({ className: e, children: t, checked: a, ...s }, r) => /* @__PURE__ */ i(
62
- m,
60
+ j.displayName = u.displayName;
61
+ const T = n.forwardRef(({ className: e, children: t, checked: a, ...o }, r) => /* @__PURE__ */ i(
62
+ f,
63
63
  {
64
64
  ref: r,
65
65
  className: d(
@@ -67,34 +67,34 @@ const j = n.forwardRef(({ className: e, children: t, checked: a, ...s }, r) => /
67
67
  e
68
68
  ),
69
69
  checked: a,
70
- ...s,
70
+ ...o,
71
71
  children: [
72
- /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(I, { className: "h-ico-sm w-ico-sm" }) }) }),
72
+ /* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(I, { className: "h-ico-sm w-ico-sm" }) }) }),
73
73
  t
74
74
  ]
75
75
  }
76
76
  ));
77
- j.displayName = m.displayName;
78
- const k = n.forwardRef(({ className: e, children: t, ...a }, s) => /* @__PURE__ */ i(
79
- x,
77
+ T.displayName = f.displayName;
78
+ const k = n.forwardRef(({ className: e, children: t, ...a }, o) => /* @__PURE__ */ i(
79
+ b,
80
80
  {
81
- ref: s,
81
+ ref: o,
82
82
  className: d(
83
83
  "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
84
84
  e
85
85
  ),
86
86
  ...a,
87
87
  children: [
88
- /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(M, { className: "h-ico-sm w-ico-sm fill-current" }) }) }),
88
+ /* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(v, { className: "h-ico-sm w-ico-sm fill-current" }) }) }),
89
89
  t
90
90
  ]
91
91
  }
92
92
  ));
93
- k.displayName = x.displayName;
94
- const L = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */ o(
95
- f,
93
+ k.displayName = b.displayName;
94
+ const L = n.forwardRef(({ className: e, inset: t, ...a }, o) => /* @__PURE__ */ s(
95
+ y,
96
96
  {
97
- ref: s,
97
+ ref: o,
98
98
  className: d(
99
99
  "px-ds-03 py-ds-02b text-ds-md font-semibold text-text-primary",
100
100
  t && "pl-ds-07",
@@ -103,20 +103,20 @@ const L = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */
103
103
  ...a
104
104
  }
105
105
  ));
106
- L.displayName = f.displayName;
107
- const P = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
108
- b,
106
+ L.displayName = y.displayName;
107
+ const P = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
108
+ N,
109
109
  {
110
110
  ref: a,
111
111
  className: d("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
112
112
  ...t
113
113
  }
114
114
  ));
115
- P.displayName = b.displayName;
115
+ P.displayName = N.displayName;
116
116
  const q = ({
117
117
  className: e,
118
118
  ...t
119
- }) => /* @__PURE__ */ o(
119
+ }) => /* @__PURE__ */ s(
120
120
  "span",
121
121
  {
122
122
  className: d(
@@ -129,10 +129,10 @@ const q = ({
129
129
  q.displayName = "ContextMenuShortcut";
130
130
  export {
131
131
  F as ContextMenu,
132
- j as ContextMenuCheckboxItem,
132
+ T as ContextMenuCheckboxItem,
133
133
  G as ContextMenuContent,
134
134
  J as ContextMenuGroup,
135
- T as ContextMenuItem,
135
+ j as ContextMenuItem,
136
136
  L as ContextMenuLabel,
137
137
  K as ContextMenuPortal,
138
138
  Q as ContextMenuRadioGroup,
@@ -141,6 +141,6 @@ export {
141
141
  q as ContextMenuShortcut,
142
142
  O as ContextMenuSub,
143
143
  z as ContextMenuSubContent,
144
- v as ContextMenuSubTrigger,
144
+ S as ContextMenuSubTrigger,
145
145
  H as ContextMenuTrigger
146
146
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
3
3
  import { IconSearch as x, IconColumns3 as C, IconTextResize as y, IconDownload as v } from "@tabler/icons-react";
4
4
  import { DropdownMenu as w, DropdownMenuTrigger as D, DropdownMenuContent as N, DropdownMenuLabel as T, DropdownMenuSeparator as k, DropdownMenuCheckboxItem as I } from "./dropdown-menu.js";
5
- import { cn as g } from "./lib/utils.js";
5
+ import { c as g } from "../_chunks/utils.js";
6
6
  const b = {
7
7
  compact: "Compact",
8
8
  standard: "Standard",
@@ -43,9 +43,9 @@ function M({
43
43
  enableExport: r = !0
44
44
  }) {
45
45
  const t = l.getAllColumns().filter((e) => e.getCanHide() && e.id !== "_select");
46
- return /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03 pb-ds-04", children: [
47
- m && /* @__PURE__ */ a("div", { className: "flex flex-1 items-center gap-ds-02", children: [
48
- /* @__PURE__ */ o(
46
+ return /* @__PURE__ */ o("div", { className: "flex items-center gap-ds-03 pb-ds-04", children: [
47
+ m && /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-ds-02", children: [
48
+ /* @__PURE__ */ a(
49
49
  x,
50
50
  {
51
51
  size: 16,
@@ -53,7 +53,7 @@ function M({
53
53
  "aria-hidden": "true"
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ o(
56
+ /* @__PURE__ */ a(
57
57
  "input",
58
58
  {
59
59
  type: "text",
@@ -70,26 +70,26 @@ function M({
70
70
  }
71
71
  )
72
72
  ] }),
73
- /* @__PURE__ */ a("div", { className: "ml-auto flex items-center gap-ds-03", children: [
74
- t.length > 0 && /* @__PURE__ */ a(w, { children: [
75
- /* @__PURE__ */ o(D, { asChild: !0, children: /* @__PURE__ */ a(
73
+ /* @__PURE__ */ o("div", { className: "ml-auto flex items-center gap-ds-03", children: [
74
+ t.length > 0 && /* @__PURE__ */ o(w, { children: [
75
+ /* @__PURE__ */ a(D, { asChild: !0, children: /* @__PURE__ */ o(
76
76
  "button",
77
77
  {
78
78
  type: "button",
79
79
  className: h,
80
80
  "aria-label": "Toggle column visibility",
81
81
  children: [
82
- /* @__PURE__ */ o(C, { size: 16, className: d }),
82
+ /* @__PURE__ */ a(C, { size: 16, className: d }),
83
83
  "Columns"
84
84
  ]
85
85
  }
86
86
  ) }),
87
- /* @__PURE__ */ a(N, { align: "end", className: "w-40", children: [
88
- /* @__PURE__ */ o(T, { children: "Toggle columns" }),
89
- /* @__PURE__ */ o(k, {}),
87
+ /* @__PURE__ */ o(N, { align: "end", className: "w-40", children: [
88
+ /* @__PURE__ */ a(T, { children: "Toggle columns" }),
89
+ /* @__PURE__ */ a(k, {}),
90
90
  t.map((e) => {
91
91
  const i = e.columnDef.header, n = typeof i == "string" ? i : e.id;
92
- return /* @__PURE__ */ o(
92
+ return /* @__PURE__ */ a(
93
93
  I,
94
94
  {
95
95
  checked: e.getIsVisible(),
@@ -101,7 +101,7 @@ function M({
101
101
  })
102
102
  ] })
103
103
  ] }),
104
- /* @__PURE__ */ a(
104
+ /* @__PURE__ */ o(
105
105
  "button",
106
106
  {
107
107
  type: "button",
@@ -110,12 +110,12 @@ function M({
110
110
  "aria-label": `Table density: ${b[s]}. Click to change.`,
111
111
  title: `Density: ${b[s]}`,
112
112
  children: [
113
- /* @__PURE__ */ o(y, { size: 16, className: d }),
113
+ /* @__PURE__ */ a(y, { size: 16, className: d }),
114
114
  b[s]
115
115
  ]
116
116
  }
117
117
  ),
118
- r && /* @__PURE__ */ a(
118
+ r && /* @__PURE__ */ o(
119
119
  "button",
120
120
  {
121
121
  type: "button",
@@ -123,7 +123,7 @@ function M({
123
123
  onClick: () => j(l),
124
124
  "aria-label": "Export table as CSV",
125
125
  children: [
126
- /* @__PURE__ */ o(v, { size: 16, className: d }),
126
+ /* @__PURE__ */ a(v, { size: 16, className: d }),
127
127
  "Export"
128
128
  ]
129
129
  }
@@ -5,8 +5,8 @@ import { useReactTable as De, getExpandedRowModel as Ie, getPaginationRowModel a
5
5
  import { useVirtualizer as Ee } from "@tanstack/react-virtual";
6
6
  import { IconArrowUp as ze, IconArrowDown as Me, IconArrowsSort as Te, IconSearch as Ve, IconChevronLeft as $e, IconChevronRight as L } from "@tabler/icons-react";
7
7
  import { Table as He, TableHeader as je, TableRow as y, TableHead as U, TableBody as T, TableCell as V } from "./table.js";
8
- import { Checkbox as q } from "./checkbox.js";
9
- import { cn as i } from "./lib/utils.js";
8
+ import { C as q } from "../_chunks/checkbox.js";
9
+ import { c as i } from "../_chunks/utils.js";
10
10
  import { DataTableToolbar as _e } from "./data-table-toolbar.js";
11
11
  const Ae = {
12
12
  compact: "py-ds-02",