@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,11 +1,46 @@
1
1
  import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
- import { cn as c } from "./lib/utils.js";
3
+ import { c } from "../_chunks/utils.js";
4
4
  const l = {
5
5
  sm: "h-ico-sm w-ico-sm",
6
6
  md: "h-ico-md w-ico-md",
7
7
  lg: "h-ico-lg w-ico-lg"
8
- }, t = a.forwardRef(({ size: e = "md", className: s, ...i }, n) => r("span", { role: "status", children: [r("svg", { ref: n, className: c("animate-spin motion-reduce:animate-none", l[e], s), viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i, children: [o("circle", { cx: "12", cy: "12", r: "10", stroke: "var(--color-border-subtle)", strokeWidth: "4", fill: "none" }), o("path", { d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z", fill: "var(--color-interactive)" })] }), o("span", { className: "sr-only", children: "Loading..." })] }));
8
+ }, t = a.forwardRef(
9
+ ({ size: s = "md", className: e, ...i }, n) => /* @__PURE__ */ r("span", { role: "status", children: [
10
+ /* @__PURE__ */ r(
11
+ "svg",
12
+ {
13
+ ref: n,
14
+ className: c("animate-spin motion-reduce:animate-none", l[s], e),
15
+ viewBox: "0 0 24 24",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ ...i,
19
+ children: [
20
+ /* @__PURE__ */ o(
21
+ "circle",
22
+ {
23
+ cx: "12",
24
+ cy: "12",
25
+ r: "10",
26
+ stroke: "var(--color-border-subtle)",
27
+ strokeWidth: "4",
28
+ fill: "none"
29
+ }
30
+ ),
31
+ /* @__PURE__ */ o(
32
+ "path",
33
+ {
34
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
35
+ fill: "var(--color-interactive)"
36
+ }
37
+ )
38
+ ]
39
+ }
40
+ ),
41
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
42
+ ] })
43
+ );
9
44
  t.displayName = "Spinner";
10
45
  export {
11
46
  t as Spinner
package/dist/ui/stack.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as t from "react";
2
- import { cn as o } from "./lib/utils.js";
2
+ import { c as o } from "../_chunks/utils.js";
3
3
  const f = {
4
4
  start: "items-start",
5
5
  center: "items-center",
@@ -2,7 +2,7 @@
2
2
  import { jsxs as n, jsx as s } from "react/jsx-runtime";
3
3
  import { IconTrendingUp as h, IconTrendingDown as f, IconMinus as g } from "@tabler/icons-react";
4
4
  import * as m from "react";
5
- import { cn as d } from "./lib/utils.js";
5
+ import { c as d } from "../_chunks/utils.js";
6
6
  const w = m.forwardRef(
7
7
  ({ className: o, label: c, title: a, value: u, delta: e, icon: r, loading: b, ...t }, i) => {
8
8
  const l = a ?? c ?? "";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as x } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { cn as i } from "./lib/utils.js";
4
+ import { c as i } from "../_chunks/utils.js";
5
5
  const f = t.createContext({
6
6
  activeStep: 0,
7
7
  orientation: "horizontal"
@@ -19,36 +19,36 @@ const f = t.createContext({
19
19
  ),
20
20
  role: "list",
21
21
  ...n,
22
- children: d.map((s, o) => /* @__PURE__ */ x(t.Fragment, { children: [
23
- t.isValidElement(s) ? t.cloneElement(s, { _index: o }) : s,
24
- o < d.length - 1 && /* @__PURE__ */ e(
22
+ children: d.map((s, a) => /* @__PURE__ */ x(t.Fragment, { children: [
23
+ t.isValidElement(s) ? t.cloneElement(s, { _index: a }) : s,
24
+ a < d.length - 1 && /* @__PURE__ */ e(
25
25
  "div",
26
26
  {
27
27
  className: i(
28
28
  "flex-1",
29
29
  r === "vertical" ? "ml-ds-04 w-ds-01 min-h-ds-05" : "h-ds-01 min-w-ds-05",
30
- o < l ? "bg-interactive" : "bg-border"
30
+ a < l ? "bg-interactive" : "bg-border"
31
31
  ),
32
32
  "aria-hidden": "true"
33
33
  }
34
34
  )
35
- ] }, o))
35
+ ] }, a))
36
36
  }
37
37
  ) });
38
38
  }
39
39
  ), v = t.forwardRef(
40
40
  ({ label: l, description: r, icon: c, className: m, _index: n = 0, ...p }, d) => {
41
- const { activeStep: s, orientation: o } = t.useContext(f), a = n < s ? "completed" : n === s ? "active" : "pending";
41
+ const { activeStep: s, orientation: a } = t.useContext(f), o = n < s ? "completed" : n === s ? "active" : "pending";
42
42
  return /* @__PURE__ */ x(
43
43
  "div",
44
44
  {
45
45
  ref: d,
46
46
  "data-step": "",
47
- "data-state": a,
47
+ "data-state": o,
48
48
  role: "listitem",
49
49
  className: i(
50
50
  "flex items-center gap-ds-03",
51
- o === "vertical" && "py-ds-02",
51
+ a === "vertical" && "py-ds-02",
52
52
  m
53
53
  ),
54
54
  ...p,
@@ -58,11 +58,11 @@ const f = t.createContext({
58
58
  {
59
59
  className: i(
60
60
  "flex-shrink-0 flex items-center justify-center w-ds-sm h-ds-sm rounded-ds-full text-ds-sm font-semibold transition-colors duration-fast-01",
61
- a === "completed" && "bg-interactive text-text-on-color",
62
- a === "active" && "bg-interactive text-text-on-color",
63
- a === "pending" && "bg-layer-02 text-text-tertiary border border-border"
61
+ o === "completed" && "bg-interactive text-text-on-color",
62
+ o === "active" && "bg-interactive text-text-on-color",
63
+ o === "pending" && "bg-layer-02 text-text-tertiary border border-border"
64
64
  ),
65
- children: c || (a === "completed" ? /* @__PURE__ */ e("svg", { className: "w-ico-sm h-ico-sm", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) }) : n + 1)
65
+ children: c || (o === "completed" ? /* @__PURE__ */ e("svg", { className: "w-ico-sm h-ico-sm", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) }) : n + 1)
66
66
  }
67
67
  ),
68
68
  /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
@@ -71,7 +71,7 @@ const f = t.createContext({
71
71
  {
72
72
  className: i(
73
73
  "text-ds-md font-medium leading-ds-snug",
74
- a === "pending" ? "text-text-tertiary" : "text-text-primary"
74
+ o === "pending" ? "text-text-tertiary" : "text-text-primary"
75
75
  ),
76
76
  children: l
77
77
  }
package/dist/ui/switch.js CHANGED
@@ -1,9 +1,28 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { Root as o, Thumb as d } from "../primitives/react-switch.js";
5
- import { cn as r } from "./lib/utils.js";
6
- const c = n.forwardRef(({ className: t, error: a, ...s }, i) => e(o, { className: r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 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=unchecked]:bg-border-strong", a && "border-border-error data-[state=checked]:bg-error", t), ...s, ref: i, children: e(d, { className: r("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
4
+ import { bj as o, bk as d } from "../_chunks/primitives.js";
5
+ import { c as r } from "../_chunks/utils.js";
6
+ const c = n.forwardRef(({ className: t, error: a, ...s }, i) => /* @__PURE__ */ e(
7
+ o,
8
+ {
9
+ className: r(
10
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 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=unchecked]:bg-border-strong",
11
+ a && "border-border-error data-[state=checked]:bg-error",
12
+ t
13
+ ),
14
+ ...s,
15
+ ref: i,
16
+ children: /* @__PURE__ */ e(
17
+ d,
18
+ {
19
+ className: r(
20
+ "pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
21
+ )
22
+ }
23
+ )
24
+ }
25
+ ));
7
26
  c.displayName = o.displayName;
8
27
  export {
9
28
  c as Switch
package/dist/ui/table.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { cn as r } from "./lib/utils.js";
3
+ import { c as r } from "../_chunks/utils.js";
4
4
  const s = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ o(
5
5
  "table",
6
6
  {
package/dist/ui/tabs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as s } from "react/jsx-runtime";
3
- import { Root as m, Content as d, List as c, Trigger as l } from "../primitives/react-tabs.js";
4
- import * as r from "react";
5
- import { cva as f } from "class-variance-authority";
6
- import { cn as o } from "./lib/utils.js";
7
- const R = m, v = r.createContext({ variant: "line" }), p = f("inline-flex items-center", {
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { bl as d, bm as c, bn as l, bo as m } from "../_chunks/primitives.js";
4
+ import * as s from "react";
5
+ import { m as b } from "../_chunks/vendor.js";
6
+ import { c as o } from "../_chunks/utils.js";
7
+ const C = m, f = s.createContext({ variant: "line" }), p = b("inline-flex items-center", {
8
8
  variants: {
9
9
  variant: {
10
10
  line: "border-b border-border w-full gap-0",
@@ -12,36 +12,63 @@ const R = m, v = r.createContext({ variant: "line" }), p = f("inline-flex items-
12
12
  }
13
13
  },
14
14
  defaultVariants: { variant: "line" }
15
- }), u = f("inline-flex items-center justify-center whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]", {
16
- variants: {
17
- variant: {
18
- line: [
19
- "px-ds-05 py-ds-03 -mb-px border-b-2 border-transparent",
20
- "text-text-secondary hover:text-text-primary",
21
- "data-[state=active]:border-interactive data-[state=active]:text-interactive"
22
- ],
23
- contained: [
24
- "px-ds-05 py-ds-02b rounded-ds-md",
25
- "text-text-secondary hover:text-text-primary",
26
- "data-[state=active]:bg-layer-01 data-[state=active]:shadow-01 data-[state=active]:text-text-primary"
27
- ]
15
+ }), u = b(
16
+ "inline-flex items-center justify-center whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]",
17
+ {
18
+ variants: {
19
+ variant: {
20
+ line: [
21
+ "px-ds-05 py-ds-03 -mb-px border-b-2 border-transparent",
22
+ "text-text-secondary hover:text-text-primary",
23
+ "data-[state=active]:border-interactive data-[state=active]:text-interactive"
24
+ ],
25
+ contained: [
26
+ "px-ds-05 py-ds-02b rounded-ds-md",
27
+ "text-text-secondary hover:text-text-primary",
28
+ "data-[state=active]:bg-layer-01 data-[state=active]:shadow-01 data-[state=active]:text-text-primary"
29
+ ]
30
+ }
31
+ },
32
+ defaultVariants: { variant: "line" }
33
+ }
34
+ ), x = s.forwardRef(({ className: t, variant: a, ...e }, n) => {
35
+ const r = a ?? "line";
36
+ return /* @__PURE__ */ i(f.Provider, { value: { variant: r }, children: /* @__PURE__ */ i(
37
+ d,
38
+ {
39
+ ref: n,
40
+ className: o(p({ variant: r }), t),
41
+ ...e
28
42
  }
29
- },
30
- defaultVariants: { variant: "line" }
31
- }), x = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
32
- const i = e ?? "line";
33
- return s(v.Provider, { value: { variant: i }, children: s(c, { ref: n, className: o(p({ variant: i }), t), ...a }) });
43
+ ) });
34
44
  });
35
- x.displayName = c.displayName;
36
- const g = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
37
- const i = r.useContext(v), b = e ?? i.variant;
38
- return s(l, { ref: n, className: o(u({ variant: b }), t), ...a });
45
+ x.displayName = d.displayName;
46
+ const g = s.forwardRef(({ className: t, variant: a, ...e }, n) => {
47
+ const r = s.useContext(f), v = a ?? r.variant;
48
+ return /* @__PURE__ */ i(
49
+ c,
50
+ {
51
+ ref: n,
52
+ className: o(u({ variant: v }), t),
53
+ ...e
54
+ }
55
+ );
39
56
  });
40
- g.displayName = l.displayName;
41
- const y = r.forwardRef(({ className: t, ...e }, a) => s(d, { ref: a, className: o("mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2", t), ...e }));
42
- y.displayName = d.displayName;
57
+ g.displayName = c.displayName;
58
+ const y = s.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ i(
59
+ l,
60
+ {
61
+ ref: e,
62
+ className: o(
63
+ "mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
64
+ t
65
+ ),
66
+ ...a
67
+ }
68
+ ));
69
+ y.displayName = l.displayName;
43
70
  export {
44
- R as Tabs,
71
+ C as Tabs,
45
72
  y as TabsContent,
46
73
  x as TabsList,
47
74
  g as TabsTrigger
package/dist/ui/text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
- import { cva as o } from "class-variance-authority";
3
- import { cn as d } from "./lib/utils.js";
2
+ import { m as o } from "../_chunks/vendor.js";
3
+ import { c as d } from "../_chunks/utils.js";
4
4
  const p = o("font-sans", {
5
5
  variants: {
6
6
  variant: {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
3
  import * as c from "react";
4
- import { cva as b } from "class-variance-authority";
5
- import { cn as u } from "./lib/utils.js";
6
- import { useFormField as f } from "./form.js";
4
+ import { m as b } from "../_chunks/vendor.js";
5
+ import { c as u } from "../_chunks/utils.js";
6
+ import { u as f } from "../_chunks/form.js";
7
7
  const m = b(
8
8
  [
9
9
  "flex w-full font-sans resize-y",
@@ -27,8 +27,8 @@ const m = b(
27
27
  defaultVariants: { size: "md" }
28
28
  }
29
29
  ), x = c.forwardRef(
30
- ({ className: s, state: a, size: o, ...i }, t) => {
31
- const r = f(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = i["aria-describedby"] ?? r.helperTextId, n = i["aria-required"] ?? r.required;
30
+ ({ className: i, state: a, size: o, ...s }, t) => {
31
+ const r = f(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
32
32
  return /* @__PURE__ */ l(
33
33
  "textarea",
34
34
  {
@@ -40,10 +40,10 @@ const m = b(
40
40
  e === "error" && "border-border-error focus-visible:ring-error",
41
41
  e === "warning" && "border-border-warning focus-visible:ring-warning",
42
42
  e === "success" && "border-border-success focus-visible:ring-success",
43
- s
43
+ i
44
44
  ),
45
45
  ref: t,
46
- ...i
46
+ ...s
47
47
  }
48
48
  );
49
49
  }
@@ -5,7 +5,7 @@ import * as ToastPrimitives from '../primitives/react-toast';
5
5
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
6
6
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
7
7
  declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
8
- color?: "error" | "warning" | "success" | "neutral" | "info" | null | undefined;
8
+ color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
10
10
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
11
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
package/dist/ui/toast.js CHANGED
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { Provider as p, Root as i, Action as d, Close as n, Description as l, Title as c, Viewport as m } from "../primitives/react-toast.js";
5
- import { cva as u } from "class-variance-authority";
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { aH as i, aI as d, aJ as n, aK as l, aL as c, aM as m, aN as p } from "../_chunks/primitives.js";
5
+ import { m as u } from "../_chunks/vendor.js";
6
6
  import { IconX as x } from "@tabler/icons-react";
7
- import { cn as a } from "./lib/utils.js";
8
- const C = p, b = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
9
- m,
7
+ import { c as r } from "../_chunks/utils.js";
8
+ const C = p, b = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
9
+ i,
10
10
  {
11
11
  ref: s,
12
- className: a(
12
+ className: r(
13
13
  "fixed top-0 z-toast flex max-h-screen w-full flex-col-reverse p-ds-05 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
14
14
  e
15
15
  ),
16
16
  ...t
17
17
  }
18
18
  ));
19
- b.displayName = m.displayName;
19
+ b.displayName = i.displayName;
20
20
  const v = u(
21
21
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-ds-03 overflow-hidden rounded-ds-md border p-ds-05 pr-ds-06 shadow-03 transition-all duration-moderate-02 data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
22
22
  {
@@ -33,61 +33,61 @@ const v = u(
33
33
  color: "neutral"
34
34
  }
35
35
  }
36
- ), w = r.forwardRef(({ className: e, color: t, ...s }, f) => /* @__PURE__ */ o(
37
- i,
36
+ ), w = o.forwardRef(({ className: e, color: t, ...s }, f) => /* @__PURE__ */ a(
37
+ d,
38
38
  {
39
39
  ref: f,
40
40
  role: "status",
41
41
  "aria-live": "polite",
42
- className: a(v({ color: t }), e),
42
+ className: r(v({ color: t }), e),
43
43
  ...s
44
44
  }
45
45
  ));
46
- w.displayName = i.displayName;
47
- const y = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
48
- d,
46
+ w.displayName = d.displayName;
47
+ const y = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
48
+ n,
49
49
  {
50
50
  ref: s,
51
- className: a(
51
+ className: r(
52
52
  "inline-flex h-ds-sm shrink-0 items-center justify-center rounded-ds-md border border-border bg-transparent px-ds-04 text-ds-md font-medium transition-colors hover:bg-layer-02 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38] group-[.destructive]:border-border-error group-[.destructive]:hover:bg-error-surface",
53
53
  e
54
54
  ),
55
55
  ...t
56
56
  }
57
57
  ));
58
- y.displayName = d.displayName;
59
- const g = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
60
- n,
58
+ y.displayName = n.displayName;
59
+ const g = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
60
+ l,
61
61
  {
62
62
  ref: s,
63
- className: a(
63
+ className: r(
64
64
  "absolute right-ds-02 top-ds-02 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-md p-ds-02 text-text-secondary opacity-70 transition-opacity hover:text-text-primary hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
65
65
  e
66
66
  ),
67
67
  "toast-close": "",
68
68
  ...t,
69
- children: /* @__PURE__ */ o(x, { className: "h-ico-sm w-ico-sm" })
69
+ children: /* @__PURE__ */ a(x, { className: "h-ico-sm w-ico-sm" })
70
70
  }
71
71
  ));
72
- g.displayName = n.displayName;
73
- const N = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
72
+ g.displayName = l.displayName;
73
+ const N = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
74
74
  c,
75
75
  {
76
76
  ref: s,
77
- className: a("text-ds-md font-semibold [&+div]:text-ds-sm", e),
77
+ className: r("text-ds-md font-semibold [&+div]:text-ds-sm", e),
78
78
  ...t
79
79
  }
80
80
  ));
81
81
  N.displayName = c.displayName;
82
- const h = r.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
83
- l,
82
+ const h = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
83
+ m,
84
84
  {
85
85
  ref: s,
86
- className: a("text-ds-md opacity-[0.9]", e),
86
+ className: r("text-ds-md opacity-[0.9]", e),
87
87
  ...t
88
88
  }
89
89
  ));
90
- h.displayName = l.displayName;
90
+ h.displayName = m.displayName;
91
91
  export {
92
92
  w as Toast,
93
93
  y as ToastAction,
@@ -1,34 +1,34 @@
1
1
  "use client";
2
2
  import { jsx as m } from "react/jsx-runtime";
3
- import * as t from "react";
4
- import { Root as n, Item as l } from "../primitives/react-toggle-group.js";
5
- import { cn as p } from "./lib/utils.js";
3
+ import * as a from "react";
4
+ import { aF as n, aG as l } from "../_chunks/primitives.js";
5
+ import { c as p } from "../_chunks/utils.js";
6
6
  import { toggleVariants as d } from "./toggle.js";
7
- const c = t.createContext({
7
+ const c = a.createContext({
8
8
  size: "md",
9
9
  variant: "default"
10
- }), f = t.forwardRef(({ className: o, variant: a, size: r, children: s, ...i }, e) => /* @__PURE__ */ m(
10
+ }), f = a.forwardRef(({ className: t, variant: o, size: r, children: s, ...i }, e) => /* @__PURE__ */ m(
11
11
  n,
12
12
  {
13
13
  ref: e,
14
- className: p("inline-flex items-center gap-ds-02", o),
14
+ className: p("inline-flex items-center gap-ds-02", t),
15
15
  ...i,
16
- children: /* @__PURE__ */ m(c.Provider, { value: { variant: a, size: r }, children: s })
16
+ children: /* @__PURE__ */ m(c.Provider, { value: { variant: o, size: r }, children: s })
17
17
  }
18
18
  ));
19
19
  f.displayName = n.displayName;
20
- const g = t.forwardRef(({ className: o, variant: a, size: r, ...s }, i) => {
21
- const e = t.useContext(c);
20
+ const g = a.forwardRef(({ className: t, variant: o, size: r, ...s }, i) => {
21
+ const e = a.useContext(c);
22
22
  return /* @__PURE__ */ m(
23
23
  l,
24
24
  {
25
25
  ref: i,
26
26
  className: p(
27
27
  d({
28
- variant: a ?? e.variant,
28
+ variant: o ?? e.variant,
29
29
  size: r ?? e.size
30
30
  }),
31
- o
31
+ t
32
32
  ),
33
33
  ...s
34
34
  }
package/dist/ui/toggle.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
- import { Root as e } from "../primitives/react-toggle.js";
5
- import { cva as n } from "class-variance-authority";
6
- import { cn as l } from "./lib/utils.js";
7
- const m = n(
4
+ import { aE as e } from "../_chunks/primitives.js";
5
+ import { m as n } from "../_chunks/vendor.js";
6
+ import { c as m } from "../_chunks/utils.js";
7
+ const l = n(
8
8
  "inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38] data-[state=on]:bg-interactive-subtle data-[state=on]:text-interactive",
9
9
  {
10
10
  variants: {
@@ -23,16 +23,16 @@ const m = n(
23
23
  size: "md"
24
24
  }
25
25
  }
26
- ), f = d.forwardRef(({ className: t, variant: s, size: i, ...o }, a) => /* @__PURE__ */ r(
26
+ ), f = d.forwardRef(({ className: t, variant: s, size: a, ...i }, o) => /* @__PURE__ */ r(
27
27
  e,
28
28
  {
29
- ref: a,
30
- className: l(m({ variant: s, size: i }), t),
31
- ...o
29
+ ref: o,
30
+ className: m(l({ variant: s, size: a }), t),
31
+ ...i
32
32
  }
33
33
  ));
34
34
  f.displayName = e.displayName;
35
35
  export {
36
36
  f as Toggle,
37
- m as toggleVariants
37
+ l as toggleVariants
38
38
  };
@@ -1,13 +1,24 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { Root as r, Provider as n, Trigger as m, Portal as l, Content as o } from "../primitives/react-tooltip.js";
5
- import { cn as f } from "./lib/utils.js";
6
- const u = n, T = r, h = m, p = s.forwardRef(({ className: e, sideOffset: a = 4, ...i }, d) => t(l, { children: t(o, { ref: d, sideOffset: a, className: f("z-tooltip overflow-hidden rounded-ds-md bg-text-primary px-ds-04 py-ds-02b text-ds-sm text-text-inverse shadow-02 duration-fast-02 ease-productive-entrance animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e), ...i }) }));
7
- p.displayName = o.displayName;
3
+ import * as d from "react";
4
+ import { aR as r, aS as o, aP as n, aO as m, aQ as l } from "../_chunks/primitives.js";
5
+ import { c as p } from "../_chunks/utils.js";
6
+ const u = m, T = n, h = l, f = d.forwardRef(({ className: a, sideOffset: e = 4, ...i }, s) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
7
+ o,
8
+ {
9
+ ref: s,
10
+ sideOffset: e,
11
+ className: p(
12
+ "z-tooltip overflow-hidden rounded-ds-md bg-text-primary px-ds-04 py-ds-02b text-ds-sm text-text-inverse shadow-02 duration-fast-02 ease-productive-entrance animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
+ a
14
+ ),
15
+ ...i
16
+ }
17
+ ) }));
18
+ f.displayName = o.displayName;
8
19
  export {
9
20
  T as Tooltip,
10
- p as TooltipContent,
21
+ f as TooltipContent,
11
22
  u as TooltipProvider,
12
23
  h as TooltipTrigger
13
24
  };