@devalok/shilp-sutra 0.8.4 → 0.9.1

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/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-client.js +1835 -0
  15. package/dist/_chunks/vendor-utils.js +3995 -0
  16. package/dist/composed/avatar-group.js +20 -20
  17. package/dist/composed/command-palette.js +1 -1
  18. package/dist/composed/confirm-dialog.js +5 -5
  19. package/dist/composed/content-card.d.ts +1 -1
  20. package/dist/composed/content-card.js +2 -2
  21. package/dist/composed/date-picker/index.js +13 -0
  22. package/dist/composed/empty-state.js +10 -10
  23. package/dist/composed/error-boundary.js +2 -2
  24. package/dist/composed/global-loading.js +4 -4
  25. package/dist/composed/index.js +45 -53
  26. package/dist/composed/loading-skeleton.js +2 -2
  27. package/dist/composed/member-picker.js +5 -5
  28. package/dist/composed/page-header.js +4 -4
  29. package/dist/composed/page-skeletons.js +1 -1
  30. package/dist/composed/priority-indicator.js +6 -6
  31. package/dist/composed/rich-text-editor.js +422 -209
  32. package/dist/composed/schedule-view.js +1 -1
  33. package/dist/composed/simple-tooltip.js +6 -6
  34. package/dist/composed/status-badge.d.ts +1 -1
  35. package/dist/composed/status-badge.js +2 -2
  36. package/dist/shell/bottom-navbar.js +1 -1
  37. package/dist/shell/notification-center.js +2 -2
  38. package/dist/shell/notification-preferences.js +32 -33
  39. package/dist/shell/sidebar.js +24 -24
  40. package/dist/shell/top-bar.js +22 -22
  41. package/dist/ui/accordion.js +17 -17
  42. package/dist/ui/alert-dialog.js +29 -29
  43. package/dist/ui/alert.d.ts +2 -2
  44. package/dist/ui/alert.js +65 -44
  45. package/dist/ui/aspect-ratio.js +1 -1
  46. package/dist/ui/autocomplete.js +11 -11
  47. package/dist/ui/avatar.d.ts +1 -1
  48. package/dist/ui/avatar.js +67 -25
  49. package/dist/ui/badge.d.ts +2 -2
  50. package/dist/ui/badge.js +115 -91
  51. package/dist/ui/banner.d.ts +1 -1
  52. package/dist/ui/banner.js +2 -2
  53. package/dist/ui/breadcrumb.js +14 -14
  54. package/dist/ui/button-group.js +30 -15
  55. package/dist/ui/button.d.ts +2 -2
  56. package/dist/ui/button.js +114 -71
  57. package/dist/ui/card.js +66 -22
  58. package/dist/ui/charts/index.js +1221 -18
  59. package/dist/ui/checkbox.js +25 -5
  60. package/dist/ui/chip.d.ts +4 -4
  61. package/dist/ui/chip.js +2 -2
  62. package/dist/ui/code.js +1 -1
  63. package/dist/ui/collapsible.js +5 -5
  64. package/dist/ui/color-input.js +11 -11
  65. package/dist/ui/combobox.js +12 -12
  66. package/dist/ui/container.js +4 -4
  67. package/dist/ui/context-menu.js +37 -37
  68. package/dist/ui/data-table-toolbar.js +18 -18
  69. package/dist/ui/data-table.js +2 -2
  70. package/dist/ui/dialog.js +33 -33
  71. package/dist/ui/dropdown-menu.js +60 -60
  72. package/dist/ui/file-upload.js +1 -1
  73. package/dist/ui/form.js +36 -15
  74. package/dist/ui/hover-card.js +7 -7
  75. package/dist/ui/icon-button.js +9 -9
  76. package/dist/ui/index.js +523 -325
  77. package/dist/ui/input-otp.d.ts +2 -2
  78. package/dist/ui/input-otp.js +14 -14
  79. package/dist/ui/input.js +56 -28
  80. package/dist/ui/label.js +18 -4
  81. package/dist/ui/lib/utils.js +4 -5
  82. package/dist/ui/link.js +9 -9
  83. package/dist/ui/menubar.js +81 -81
  84. package/dist/ui/navigation-menu.js +42 -42
  85. package/dist/ui/number-input.js +13 -13
  86. package/dist/ui/pagination.js +5 -5
  87. package/dist/ui/popover.js +9 -9
  88. package/dist/ui/progress.d.ts +1 -1
  89. package/dist/ui/progress.js +15 -15
  90. package/dist/ui/radio.js +10 -10
  91. package/dist/ui/search-input.js +5 -5
  92. package/dist/ui/segmented-control.js +91 -83
  93. package/dist/ui/select.js +52 -52
  94. package/dist/ui/separator.js +20 -5
  95. package/dist/ui/sheet.js +28 -28
  96. package/dist/ui/sidebar.js +36 -560
  97. package/dist/ui/skeleton.d.ts +1 -1
  98. package/dist/ui/skeleton.js +7 -7
  99. package/dist/ui/slider.js +11 -11
  100. package/dist/ui/spinner.js +37 -2
  101. package/dist/ui/stack.js +1 -1
  102. package/dist/ui/stat-card.js +1 -1
  103. package/dist/ui/stepper.js +15 -15
  104. package/dist/ui/switch.js +22 -3
  105. package/dist/ui/table.js +1 -1
  106. package/dist/ui/tabs.js +59 -32
  107. package/dist/ui/text.js +2 -2
  108. package/dist/ui/textarea.js +7 -7
  109. package/dist/ui/toast.d.ts +1 -1
  110. package/dist/ui/toast.js +28 -28
  111. package/dist/ui/toggle-group.js +11 -11
  112. package/dist/ui/toggle.js +7 -7
  113. package/dist/ui/tooltip.js +17 -6
  114. package/dist/ui/transitions.js +68 -58
  115. package/dist/ui/tree-view/index.js +7 -0
  116. package/dist/ui/visually-hidden.js +3 -3
  117. package/llms-full.txt +1 -1
  118. package/llms.txt +7 -0
  119. package/package.json +656 -706
  120. package/dist/_virtual/client.js +0 -5
  121. package/dist/_virtual/index.js +0 -5
  122. package/dist/_virtual/react-dom-client.development.js +0 -5
  123. package/dist/_virtual/react-dom-client.production.js +0 -5
  124. package/dist/_virtual/scheduler.development.js +0 -5
  125. package/dist/_virtual/scheduler.production.js +0 -5
  126. package/dist/composed/date-picker/calendar-grid.js +0 -194
  127. package/dist/composed/date-picker/date-picker.js +0 -124
  128. package/dist/composed/date-picker/date-range-picker.js +0 -167
  129. package/dist/composed/date-picker/date-time-picker.js +0 -193
  130. package/dist/composed/date-picker/month-picker.js +0 -53
  131. package/dist/composed/date-picker/presets.js +0 -84
  132. package/dist/composed/date-picker/time-picker.js +0 -181
  133. package/dist/composed/date-picker/use-calendar.js +0 -17
  134. package/dist/composed/date-picker/year-picker.js +0 -45
  135. package/dist/composed/extensions/emoji-suggestion.js +0 -119
  136. package/dist/composed/extensions/file-attachment.js +0 -55
  137. package/dist/composed/extensions/mention-suggestion.js +0 -79
  138. package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
  139. 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
  140. package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
  141. 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
  142. 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
  143. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
  144. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
  145. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
  146. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
  147. package/dist/primitives/_internal/number.js +0 -6
  148. package/dist/primitives/_internal/primitive.js +0 -9
  149. package/dist/primitives/_internal/react-arrow.js +0 -13
  150. package/dist/primitives/_internal/react-collection.js +0 -48
  151. package/dist/primitives/_internal/react-compose-refs.js +0 -29
  152. package/dist/primitives/_internal/react-context.js +0 -76
  153. package/dist/primitives/_internal/react-direction.js +0 -10
  154. package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
  155. package/dist/primitives/_internal/react-focus-guards.js +0 -17
  156. package/dist/primitives/_internal/react-focus-scope.js +0 -137
  157. package/dist/primitives/_internal/react-id.js +0 -14
  158. package/dist/primitives/_internal/react-popper.js +0 -137
  159. package/dist/primitives/_internal/react-portal.js +0 -16
  160. package/dist/primitives/_internal/react-presence.js +0 -71
  161. package/dist/primitives/_internal/react-primitive.js +0 -36
  162. package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
  163. package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
  164. package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
  165. package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
  166. package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
  167. package/dist/primitives/_internal/react-use-previous.js +0 -8
  168. package/dist/primitives/_internal/react-use-size.js +0 -27
  169. package/dist/primitives/react-accordion.js +0 -239
  170. package/dist/primitives/react-alert-dialog.js +0 -127
  171. package/dist/primitives/react-aspect-ratio.js +0 -43
  172. package/dist/primitives/react-avatar.js +0 -75
  173. package/dist/primitives/react-checkbox.js +0 -251
  174. package/dist/primitives/react-collapsible.js +0 -120
  175. package/dist/primitives/react-context-menu.js +0 -240
  176. package/dist/primitives/react-dialog.js +0 -262
  177. package/dist/primitives/react-dropdown-menu.js +0 -227
  178. package/dist/primitives/react-hover-card.js +0 -187
  179. package/dist/primitives/react-label.js +0 -20
  180. package/dist/primitives/react-menu.js +0 -652
  181. package/dist/primitives/react-menubar.js +0 -355
  182. package/dist/primitives/react-navigation-menu.js +0 -607
  183. package/dist/primitives/react-popover.js +0 -243
  184. package/dist/primitives/react-progress.js +0 -84
  185. package/dist/primitives/react-radio-group.js +0 -238
  186. package/dist/primitives/react-roving-focus.js +0 -183
  187. package/dist/primitives/react-select.js +0 -862
  188. package/dist/primitives/react-separator.js +0 -24
  189. package/dist/primitives/react-slider.js +0 -437
  190. package/dist/primitives/react-slot.js +0 -70
  191. package/dist/primitives/react-switch.js +0 -132
  192. package/dist/primitives/react-tabs.js +0 -163
  193. package/dist/primitives/react-toast.js +0 -446
  194. package/dist/primitives/react-toggle-group.js +0 -137
  195. package/dist/primitives/react-toggle.js +0 -33
  196. package/dist/primitives/react-tooltip.js +0 -338
  197. package/dist/primitives/react-visually-hidden.js +0 -32
  198. package/dist/ui/charts/_internal/animation.js +0 -18
  199. package/dist/ui/charts/_internal/axes.js +0 -42
  200. package/dist/ui/charts/_internal/colors.js +0 -21
  201. package/dist/ui/charts/_internal/grid-lines.js +0 -43
  202. package/dist/ui/charts/_internal/legend.js +0 -29
  203. package/dist/ui/charts/_internal/tooltip.js +0 -39
  204. package/dist/ui/charts/_internal/types.js +0 -10
  205. package/dist/ui/charts/area-chart.js +0 -245
  206. package/dist/ui/charts/bar-chart.js +0 -153
  207. package/dist/ui/charts/chart-container.js +0 -27
  208. package/dist/ui/charts/gauge-chart.js +0 -72
  209. package/dist/ui/charts/line-chart.js +0 -163
  210. package/dist/ui/charts/pie-chart.js +0 -132
  211. package/dist/ui/charts/radar-chart.js +0 -223
  212. package/dist/ui/charts/sparkline.js +0 -124
  213. package/dist/ui/lib/motion.js +0 -32
  214. package/dist/ui/lib/use-reduced-motion.js +0 -15
  215. package/dist/ui/lib/use-ripple.js +0 -14
  216. package/dist/ui/tree-view/tree-item.js +0 -139
  217. package/dist/ui/tree-view/tree-view.js +0 -140
  218. package/dist/ui/tree-view/use-tree.js +0 -38
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React from 'react';
3
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
3
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
4
  value?: string;
5
5
  onChange?: (newValue: string) => unknown;
6
6
  maxLength: number;
@@ -13,7 +13,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
13
13
  } & {
14
14
  render: (props: import('input-otp').RenderProps) => React.ReactNode;
15
15
  children?: never;
16
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
16
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
17
  value?: string;
18
18
  onChange?: (newValue: string) => unknown;
19
19
  maxLength: number;
@@ -1,31 +1,31 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { OTPInput as c, OTPInputContext as u } from "input-otp";
2
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
3
+ import * as a from "react";
4
+ import { OTPInput as m, OTPInputContext as u } from "input-otp";
5
5
  import { IconMinus as f } from "@tabler/icons-react";
6
- import { cn as a } from "./lib/utils.js";
7
- const x = o.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
8
- c,
6
+ import { c as o } from "../_chunks/utils.js";
7
+ const x = a.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
8
+ m,
9
9
  {
10
10
  ref: n,
11
- containerClassName: a(
11
+ containerClassName: o(
12
12
  "flex items-center gap-ds-03 has-[:disabled]:opacity-[0.38]",
13
13
  t
14
14
  ),
15
- className: a("disabled:cursor-not-allowed", e),
15
+ className: o("disabled:cursor-not-allowed", e),
16
16
  ...s
17
17
  }
18
18
  ));
19
19
  x.displayName = "InputOTP";
20
- const b = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: a("flex items-center", e), ...t }));
20
+ const b = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: o("flex items-center", e), ...t }));
21
21
  b.displayName = "InputOTPGroup";
22
- const I = o.forwardRef(({ index: e, className: t, ...s }, n) => {
23
- const i = o.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
24
- return /* @__PURE__ */ m(
22
+ const I = a.forwardRef(({ index: e, className: t, ...s }, n) => {
23
+ const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
24
+ return /* @__PURE__ */ c(
25
25
  "div",
26
26
  {
27
27
  ref: n,
28
- className: a(
28
+ className: o(
29
29
  "relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-border text-ds-md shadow-01 transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
30
30
  p && "z-raised ring-2 ring-focus",
31
31
  t
@@ -39,7 +39,7 @@ const I = o.forwardRef(({ index: e, className: t, ...s }, n) => {
39
39
  );
40
40
  });
41
41
  I.displayName = "InputOTPSlot";
42
- const O = o.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
42
+ const O = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
43
43
  O.displayName = "InputOTPSeparator";
44
44
  export {
45
45
  x as InputOTP,
package/dist/ui/input.js CHANGED
@@ -1,32 +1,60 @@
1
1
  "use client";
2
- import { jsx as d, jsxs as m } from "react/jsx-runtime";
3
- import * as p from "react";
4
- import { cva as x } from "class-variance-authority";
5
- import { cn as v } from "./lib/utils.js";
6
- import { useFormField as g } from "./form.js";
7
- const h = x([
8
- "flex w-full font-sans",
9
- "bg-field text-text-primary",
10
- "border border-border rounded-ds-md",
11
- "placeholder:text-text-placeholder",
12
- "hover:bg-field-hover",
13
- "transition-colors duration-fast-01",
14
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:border-border-interactive",
15
- "disabled:cursor-not-allowed disabled:opacity-[0.38]",
16
- "read-only:bg-layer-02 read-only:cursor-default"
17
- ], {
18
- variants: {
19
- size: {
20
- sm: "h-ds-sm text-ds-sm px-ds-03",
21
- md: "h-ds-md text-ds-base px-ds-04",
22
- lg: "h-ds-lg text-ds-lg px-ds-05"
23
- }
24
- },
25
- defaultVariants: { size: "md" }
26
- }), y = p.forwardRef(({ className: a, type: n, state: l, size: c, startIcon: e, endIcon: r, ...t }, u) => {
27
- const s = g(), i = l ?? (s.state === "helper" ? void 0 : s.state), f = t["aria-describedby"] ?? s.helperTextId, b = t["aria-required"] ?? s.required, o = d("input", { type: n, className: v(h({ size: c }), e && "pl-ds-08", r && "pr-ds-08", i === "error" && "border-border-error focus-visible:ring-error", i === "warning" && "border-border-warning focus-visible:ring-warning", i === "success" && "border-border-success focus-visible:ring-success", a), "aria-invalid": i === "error" || void 0, "aria-describedby": f, "aria-required": b || void 0, ref: u, ...t });
28
- return !e && !r ? o : m("div", { className: "relative flex items-center w-full", children: [e && d("span", { className: "absolute left-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }), o, r && d("span", { className: "absolute right-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })] });
29
- });
2
+ import { jsx as o, jsxs as f } from "react/jsx-runtime";
3
+ import * as v from "react";
4
+ import { e as p } from "../_chunks/vendor-utils.js";
5
+ import { c as x } from "../_chunks/utils.js";
6
+ import { u as g } from "../_chunks/form.js";
7
+ const h = p(
8
+ [
9
+ "flex w-full font-sans",
10
+ "bg-field text-text-primary",
11
+ "border border-border rounded-ds-md",
12
+ "placeholder:text-text-placeholder",
13
+ "hover:bg-field-hover",
14
+ "transition-colors duration-fast-01",
15
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:border-border-interactive",
16
+ "disabled:cursor-not-allowed disabled:opacity-[0.38]",
17
+ "read-only:bg-layer-02 read-only:cursor-default"
18
+ ],
19
+ {
20
+ variants: {
21
+ size: {
22
+ sm: "h-ds-sm text-ds-sm px-ds-03",
23
+ md: "h-ds-md text-ds-base px-ds-04",
24
+ lg: "h-ds-lg text-ds-lg px-ds-05"
25
+ }
26
+ },
27
+ defaultVariants: { size: "md" }
28
+ }
29
+ ), y = v.forwardRef(
30
+ ({ className: d, type: l, state: n, size: c, startIcon: e, endIcon: r, ...t }, u) => {
31
+ const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state), b = t["aria-describedby"] ?? s.helperTextId, m = t["aria-required"] ?? s.required, a = /* @__PURE__ */ o(
32
+ "input",
33
+ {
34
+ type: l,
35
+ className: x(
36
+ h({ size: c }),
37
+ e && "pl-ds-08",
38
+ r && "pr-ds-08",
39
+ i === "error" && "border-border-error focus-visible:ring-error",
40
+ i === "warning" && "border-border-warning focus-visible:ring-warning",
41
+ i === "success" && "border-border-success focus-visible:ring-success",
42
+ d
43
+ ),
44
+ "aria-invalid": i === "error" || void 0,
45
+ "aria-describedby": b,
46
+ "aria-required": m || void 0,
47
+ ref: u,
48
+ ...t
49
+ }
50
+ );
51
+ return !e && !r ? a : /* @__PURE__ */ f("div", { className: "relative flex items-center w-full", children: [
52
+ e && /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }),
53
+ a,
54
+ r && /* @__PURE__ */ o("span", { className: "absolute right-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })
55
+ ] });
56
+ }
57
+ );
30
58
  y.displayName = "Input";
31
59
  export {
32
60
  y as Input,
package/dist/ui/label.js CHANGED
@@ -1,9 +1,23 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
+ import { jsxs as m, jsx as i } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
- import { Root as e } from "../primitives/react-label.js";
5
- import { cn as n } from "./lib/utils.js";
6
- const p = d.forwardRef(({ className: r, required: t, children: a, ...o }, m) => s(e, { ref: m, className: n("font-sans text-ds-md font-medium text-text-primary leading-none peer-disabled:opacity-[0.38]", r), ...o, children: [a, t && i("span", { className: "text-text-error ml-ds-01", "aria-hidden": "true", children: "*" })] }));
4
+ import { E as e } from "../_chunks/primitives.js";
5
+ import { c as n } from "../_chunks/utils.js";
6
+ const p = d.forwardRef(({ className: a, required: t, children: r, ...s }, o) => /* @__PURE__ */ m(
7
+ e,
8
+ {
9
+ ref: o,
10
+ className: n(
11
+ "font-sans text-ds-md font-medium text-text-primary leading-none peer-disabled:opacity-[0.38]",
12
+ a
13
+ ),
14
+ ...s,
15
+ children: [
16
+ r,
17
+ t && /* @__PURE__ */ i("span", { className: "text-text-error ml-ds-01", "aria-hidden": "true", children: "*" })
18
+ ]
19
+ }
20
+ ));
7
21
  p.displayName = e.displayName;
8
22
  export {
9
23
  p as Label
@@ -1,15 +1,14 @@
1
- import { clsx as t } from "clsx";
2
- import { extendTailwindMerge as r } from "tailwind-merge";
3
- const n = r({
1
+ import { h as s, g as t } from "../../_chunks/vendor-utils.js";
2
+ const n = s({
4
3
  extend: {
5
4
  classGroups: {
6
5
  "font-size": [{ "text-ds": ["xs", "sm", "md"] }]
7
6
  }
8
7
  }
9
8
  });
10
- function i(...e) {
9
+ function o(...e) {
11
10
  return n(t(e));
12
11
  }
13
12
  export {
14
- i as cn
13
+ o as cn
15
14
  };
package/dist/ui/link.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
- import { Root as s } from "../primitives/react-slot.js";
3
+ import { S as s } from "../_chunks/primitives.js";
4
4
  import * as l from "react";
5
- import { cn as f } from "./lib/utils.js";
6
- const a = l.forwardRef(
7
- ({ className: o, inline: e = !0, asChild: t = !1, ...i }, r) => /* @__PURE__ */ n(
8
- t ? s : "a",
5
+ import { c as a } from "../_chunks/utils.js";
6
+ const f = l.forwardRef(
7
+ ({ className: o, inline: e = !0, asChild: i = !1, ...t }, r) => /* @__PURE__ */ n(
8
+ i ? s : "a",
9
9
  {
10
10
  ref: r,
11
- className: f(
11
+ className: a(
12
12
  "text-text-link underline underline-offset-2",
13
13
  "hover:text-text-link-hover transition-colors duration-fast-01",
14
14
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus rounded-ds-sm",
15
15
  e ? "inline" : "block",
16
16
  o
17
17
  ),
18
- ...i
18
+ ...t
19
19
  }
20
20
  )
21
21
  );
22
- a.displayName = "Link";
22
+ f.displayName = "Link";
23
23
  export {
24
- a as Link
24
+ f as Link
25
25
  };
@@ -1,71 +1,71 @@
1
1
  "use client";
2
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
- import { Group as R, Menu as v, Portal as l, RadioGroup as M, Sub as I, Root as m, CheckboxItem as c, ItemIndicator as p, Content as u, Item as b, Label as f, RadioItem as y, Separator as x, SubContent as g, SubTrigger as h, Trigger as N } from "../primitives/react-menubar.js";
5
- import { IconCheck as S, IconCircle as C, IconChevronRight as k } from "@tabler/icons-react";
6
- import { cn as d } from "./lib/utils.js";
7
- const K = v, O = R, Q = l, U = I, V = M, z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s(
8
- m,
4
+ import { aW as l, aX as m, aY as c, aZ as p, a_ as b, a$ as u, b0 as f, b1 as y, b2 as x, b3 as g, b4 as N, b5 as h, b6 as v, b7 as M, b8 as R, b9 as I } from "../_chunks/primitives.js";
5
+ import { IconChevronRight as S, IconCheck as C, IconCircle as z } from "@tabler/icons-react";
6
+ import { c as o } from "../_chunks/utils.js";
7
+ const D = M, E = v, F = b, H = I, J = R, k = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
8
+ l,
9
9
  {
10
- ref: t,
11
- className: d(
10
+ ref: s,
11
+ className: o(
12
12
  "flex h-ds-sm-plus items-center space-x-ds-02 rounded-ds-lg border border-border bg-layer-01 p-ds-02 shadow-01",
13
13
  e
14
14
  ),
15
15
  ...a
16
16
  }
17
17
  ));
18
- z.displayName = m.displayName;
19
- const G = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s(
20
- N,
18
+ k.displayName = l.displayName;
19
+ const _ = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
20
+ m,
21
21
  {
22
- ref: t,
23
- className: d(
22
+ ref: s,
23
+ className: o(
24
24
  "flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-none transition-colors hover:bg-field focus-visible:bg-field data-[state=open]:bg-field",
25
25
  e
26
26
  ),
27
27
  ...a
28
28
  }
29
29
  ));
30
- G.displayName = N.displayName;
31
- const T = r.forwardRef(({ className: e, inset: a, children: t, ...o }, n) => /* @__PURE__ */ i(
32
- h,
30
+ _.displayName = m.displayName;
31
+ const j = r.forwardRef(({ className: e, inset: a, children: s, ...d }, n) => /* @__PURE__ */ i(
32
+ c,
33
33
  {
34
34
  ref: n,
35
- className: d(
35
+ className: o(
36
36
  "flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-layer-02 data-[state=open]:bg-layer-02 [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
37
37
  a && "pl-ds-07",
38
38
  e
39
39
  ),
40
- ...o,
40
+ ...d,
41
41
  children: [
42
- t,
43
- /* @__PURE__ */ s(k, { className: "ml-auto" })
42
+ s,
43
+ /* @__PURE__ */ t(S, { className: "ml-auto" })
44
44
  ]
45
45
  }
46
46
  ));
47
- T.displayName = h.displayName;
48
- const j = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s(
49
- g,
47
+ j.displayName = c.displayName;
48
+ const G = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
49
+ p,
50
50
  {
51
- ref: t,
52
- className: d(
51
+ ref: s,
52
+ className: o(
53
53
  "z-dropdown min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
54
54
  e
55
55
  ),
56
56
  ...a
57
57
  }
58
58
  ));
59
- j.displayName = g.displayName;
60
- const _ = r.forwardRef(
61
- ({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: o = 8, ...n }, w) => /* @__PURE__ */ s(l, { children: /* @__PURE__ */ s(
59
+ G.displayName = p.displayName;
60
+ const T = r.forwardRef(
61
+ ({ className: e, align: a = "start", alignOffset: s = -4, sideOffset: d = 8, ...n }, w) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
62
62
  u,
63
63
  {
64
64
  ref: w,
65
65
  align: a,
66
- alignOffset: t,
67
- sideOffset: o,
68
- className: d(
66
+ alignOffset: s,
67
+ sideOffset: d,
68
+ className: o(
69
69
  "z-dropdown min-w-[12rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03",
70
70
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
71
71
  e
@@ -74,104 +74,104 @@ const _ = r.forwardRef(
74
74
  }
75
75
  ) })
76
76
  );
77
- _.displayName = u.displayName;
78
- const L = r.forwardRef(({ className: e, inset: a, ...t }, o) => /* @__PURE__ */ s(
79
- b,
77
+ T.displayName = u.displayName;
78
+ const L = r.forwardRef(({ className: e, inset: a, ...s }, d) => /* @__PURE__ */ t(
79
+ f,
80
80
  {
81
- ref: o,
82
- className: d(
81
+ ref: d,
82
+ className: o(
83
83
  "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38] [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
84
84
  a && "pl-ds-07",
85
85
  e
86
86
  ),
87
- ...t
87
+ ...s
88
88
  }
89
89
  ));
90
- L.displayName = b.displayName;
91
- const P = r.forwardRef(({ className: e, children: a, checked: t, ...o }, n) => /* @__PURE__ */ i(
92
- c,
90
+ L.displayName = f.displayName;
91
+ const P = r.forwardRef(({ className: e, children: a, checked: s, ...d }, n) => /* @__PURE__ */ i(
92
+ y,
93
93
  {
94
94
  ref: n,
95
- className: d(
95
+ className: o(
96
96
  "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 transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
97
97
  e
98
98
  ),
99
- checked: t,
100
- ...o,
99
+ checked: s,
100
+ ...d,
101
101
  children: [
102
- /* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(p, { children: /* @__PURE__ */ s(S, { className: "h-ico-sm w-ico-sm" }) }) }),
102
+ /* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(C, { className: "h-ico-sm w-ico-sm" }) }) }),
103
103
  a
104
104
  ]
105
105
  }
106
106
  ));
107
- P.displayName = c.displayName;
108
- const q = r.forwardRef(({ className: e, children: a, ...t }, o) => /* @__PURE__ */ i(
109
- y,
107
+ P.displayName = y.displayName;
108
+ const W = r.forwardRef(({ className: e, children: a, ...s }, d) => /* @__PURE__ */ i(
109
+ g,
110
110
  {
111
- ref: o,
112
- className: d(
111
+ ref: d,
112
+ className: o(
113
113
  "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 transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
114
114
  e
115
115
  ),
116
- ...t,
116
+ ...s,
117
117
  children: [
118
- /* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(p, { children: /* @__PURE__ */ s(C, { className: "h-2 w-2 fill-current" }) }) }),
118
+ /* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(z, { className: "h-2 w-2 fill-current" }) }) }),
119
119
  a
120
120
  ]
121
121
  }
122
122
  ));
123
- q.displayName = y.displayName;
124
- const A = r.forwardRef(({ className: e, inset: a, ...t }, o) => /* @__PURE__ */ s(
125
- f,
123
+ W.displayName = g.displayName;
124
+ const X = r.forwardRef(({ className: e, inset: a, ...s }, d) => /* @__PURE__ */ t(
125
+ N,
126
126
  {
127
- ref: o,
128
- className: d(
127
+ ref: d,
128
+ className: o(
129
129
  "px-ds-03 py-ds-02b text-ds-md font-semibold",
130
130
  a && "pl-ds-07",
131
131
  e
132
132
  ),
133
- ...t
133
+ ...s
134
134
  }
135
135
  ));
136
- A.displayName = f.displayName;
137
- const B = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s(
138
- x,
136
+ X.displayName = N.displayName;
137
+ const Y = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
138
+ h,
139
139
  {
140
- ref: t,
141
- className: d("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
140
+ ref: s,
141
+ className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
142
142
  ...a
143
143
  }
144
144
  ));
145
- B.displayName = x.displayName;
146
- const D = ({
145
+ Y.displayName = h.displayName;
146
+ const Z = ({
147
147
  className: e,
148
148
  ...a
149
- }) => /* @__PURE__ */ s(
149
+ }) => /* @__PURE__ */ t(
150
150
  "span",
151
151
  {
152
- className: d(
152
+ className: o(
153
153
  "ml-auto text-ds-sm text-text-placeholder",
154
154
  e
155
155
  ),
156
156
  ...a
157
157
  }
158
158
  );
159
- D.displayName = "MenubarShortcut";
159
+ Z.displayName = "MenubarShortcut";
160
160
  export {
161
- z as Menubar,
161
+ k as Menubar,
162
162
  P as MenubarCheckboxItem,
163
- _ as MenubarContent,
164
- O as MenubarGroup,
163
+ T as MenubarContent,
164
+ E as MenubarGroup,
165
165
  L as MenubarItem,
166
- A as MenubarLabel,
167
- K as MenubarMenu,
168
- Q as MenubarPortal,
169
- V as MenubarRadioGroup,
170
- q as MenubarRadioItem,
171
- B as MenubarSeparator,
172
- D as MenubarShortcut,
173
- U as MenubarSub,
174
- j as MenubarSubContent,
175
- T as MenubarSubTrigger,
176
- G as MenubarTrigger
166
+ X as MenubarLabel,
167
+ D as MenubarMenu,
168
+ F as MenubarPortal,
169
+ J as MenubarRadioGroup,
170
+ W as MenubarRadioItem,
171
+ Y as MenubarSeparator,
172
+ Z as MenubarShortcut,
173
+ H as MenubarSub,
174
+ G as MenubarSubContent,
175
+ j as MenubarSubTrigger,
176
+ _ as MenubarTrigger
177
177
  };