@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,563 +1,39 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as S } from "react/jsx-runtime";
3
- import { Root as h } from "../primitives/react-slot.js";
4
- import { cva as z } from "class-variance-authority";
5
- import { IconLayoutSidebarLeftCollapse as T } from "@tabler/icons-react";
6
- import { useIsMobile as A } from "../hooks/use-mobile.js";
7
- import { cn as i } from "./lib/utils.js";
8
- import { Button as D } from "./button.js";
9
- import { Input as O } from "./input.js";
10
- import { Separator as R } from "./separator.js";
11
- import { Sheet as G, SheetContent as L } from "./sheet.js";
12
- import { Skeleton as M } from "./skeleton.js";
13
- import { Tooltip as H, TooltipTrigger as K, TooltipContent as j, TooltipProvider as $ } from "./tooltip.js";
14
- import { forwardRef as s, useMemo as I, useState as _, useCallback as C, useEffect as P, useContext as V, createContext as W } from "react";
15
- const q = "sidebar:state", F = 60 * 60 * 24 * 7, U = "16rem", X = "18rem", Y = "3rem", J = "b", k = W(null);
16
- function w() {
17
- const a = V(k);
18
- if (!a)
19
- throw new Error("useSidebar must be used within a SidebarProvider.");
20
- return a;
21
- }
22
- const Q = s(
23
- ({
24
- defaultOpen: a = !0,
25
- open: e,
26
- onOpenChange: t,
27
- className: d,
28
- style: o,
29
- children: n,
30
- ...m
31
- }, f) => {
32
- const c = A(), [b, u] = _(!1), [v, B] = _(a), g = e ?? v, x = C(
33
- (l) => {
34
- const p = typeof l == "function" ? l(g) : l;
35
- t ? t(p) : B(p), document.cookie = `${q}=${p}; path=/; max-age=${F}`;
36
- },
37
- [t, g]
38
- ), y = C(() => c ? u((l) => !l) : x((l) => !l), [c, x, u]);
39
- P(() => {
40
- const l = (p) => {
41
- p.key === J && (p.metaKey || p.ctrlKey) && (p.preventDefault(), y());
42
- };
43
- return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
44
- }, [y]);
45
- const N = g ? "expanded" : "collapsed", E = I(
46
- () => ({
47
- state: N,
48
- open: g,
49
- setOpen: x,
50
- isMobile: c,
51
- openMobile: b,
52
- setOpenMobile: u,
53
- toggleSidebar: y
54
- }),
55
- [
56
- N,
57
- g,
58
- x,
59
- c,
60
- b,
61
- u,
62
- y
63
- ]
64
- );
65
- return /* @__PURE__ */ r(k.Provider, { value: E, children: /* @__PURE__ */ r($, { delayDuration: 0, children: /* @__PURE__ */ r(
66
- "div",
67
- {
68
- style: {
69
- "--sidebar-width": U,
70
- "--sidebar-width-icon": Y,
71
- ...o
72
- },
73
- className: i(
74
- "group/sidebar-wrapper flex min-h-svh has-[[data-variant=inset]]:bg-background",
75
- d
76
- ),
77
- ref: f,
78
- ...m,
79
- children: n
80
- }
81
- ) }) });
82
- }
83
- );
84
- Q.displayName = "SidebarProvider";
85
- const Z = s(
86
- ({
87
- side: a = "left",
88
- variant: e = "sidebar",
89
- collapsible: t = "offcanvas",
90
- className: d,
91
- children: o,
92
- ...n
93
- }, m) => {
94
- const { isMobile: f, state: c, openMobile: b, setOpenMobile: u } = w();
95
- return t === "none" ? /* @__PURE__ */ r(
96
- "div",
97
- {
98
- className: i(
99
- "flex h-full w-[--sidebar-width] flex-col bg-layer-01 text-text-primary",
100
- d
101
- ),
102
- ref: m,
103
- ...n,
104
- children: o
105
- }
106
- ) : f ? /* @__PURE__ */ r(G, { open: b, onOpenChange: u, ...n, children: /* @__PURE__ */ r(
107
- L,
108
- {
109
- "data-sidebar": "sidebar",
110
- "data-mobile": "true",
111
- className: "w-[--sidebar-width] bg-layer-01 p-0 text-text-primary [&>button]:hidden",
112
- style: {
113
- "--sidebar-width": X
114
- },
115
- side: a,
116
- children: /* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: o })
117
- }
118
- ) }) : /* @__PURE__ */ S(
119
- "div",
120
- {
121
- ref: m,
122
- className: "group peer hidden text-text-primary md:block",
123
- "data-state": c,
124
- "data-collapsible": c === "collapsed" ? t : "",
125
- "data-variant": e,
126
- "data-side": a,
127
- children: [
128
- /* @__PURE__ */ r(
129
- "div",
130
- {
131
- className: i(
132
- "relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-moderate-02 ease-linear",
133
- "group-data-[collapsible=offcanvas]:w-0",
134
- "group-data-[side=right]:rotate-180",
135
- e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
136
- )
137
- }
138
- ),
139
- /* @__PURE__ */ r(
140
- "div",
141
- {
142
- className: i(
143
- "fixed inset-y-0 z-raised hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-moderate-02 ease-linear md:flex",
144
- a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
145
- e === "floating" || e === "inset" ? "p-ds-03 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
146
- d
147
- ),
148
- ...n,
149
- children: /* @__PURE__ */ r(
150
- "div",
151
- {
152
- "data-sidebar": "sidebar",
153
- className: "flex h-full w-full flex-col bg-layer-01 group-data-[variant=floating]:rounded-ds-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border-subtle group-data-[variant=floating]:shadow",
154
- children: o
155
- }
156
- )
157
- }
158
- )
159
- ]
160
- }
161
- );
162
- }
163
- );
164
- Z.displayName = "Sidebar";
165
- const ee = s(({ className: a, onClick: e, ...t }, d) => {
166
- const { toggleSidebar: o } = w();
167
- return /* @__PURE__ */ S(
168
- D,
169
- {
170
- ref: d,
171
- "data-sidebar": "trigger",
172
- variant: "ghost",
173
- size: "icon-md",
174
- className: i("h-ds-xs-plus w-ds-xs-plus", a),
175
- onClick: (n) => {
176
- e == null || e(n), o();
177
- },
178
- ...t,
179
- children: [
180
- /* @__PURE__ */ r(T, {}),
181
- /* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle Sidebar" })
182
- ]
183
- }
184
- );
185
- });
186
- ee.displayName = "SidebarTrigger";
187
- const ae = s(
188
- ({ className: a, ...e }, t) => {
189
- const { toggleSidebar: d } = w();
190
- return /* @__PURE__ */ r(
191
- "button",
192
- {
193
- ref: t,
194
- "data-sidebar": "rail",
195
- "aria-label": "Toggle Sidebar",
196
- tabIndex: -1,
197
- onClick: d,
198
- title: "Toggle Sidebar",
199
- className: i(
200
- "hover:after:bg-border-strong absolute inset-y-0 z-raised hidden w-4 -translate-x-1/2 transition-colors ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
201
- "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
202
- "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
203
- "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-layer-02",
204
- "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
205
- "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
206
- a
207
- ),
208
- ...e
209
- }
210
- );
211
- }
212
- );
213
- ae.displayName = "SidebarRail";
214
- const te = s(
215
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
216
- "main",
217
- {
218
- ref: t,
219
- className: i(
220
- "relative flex min-h-svh flex-1 flex-col bg-background",
221
- "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-ds-03 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-ds-03 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-ds-xl md:peer-data-[variant=inset]:shadow",
222
- a
223
- ),
224
- ...e
225
- }
226
- )
227
- );
228
- te.displayName = "SidebarInset";
229
- const re = s(({ className: a, ...e }, t) => /* @__PURE__ */ r(
230
- O,
231
- {
232
- ref: t,
233
- "data-sidebar": "input",
234
- className: i(
235
- "h-ds-sm w-full bg-layer-01 shadow-none focus-visible:ring-2 focus-visible:ring-focus",
236
- a
237
- ),
238
- ...e
239
- }
240
- ));
241
- re.displayName = "SidebarInput";
242
- const ie = s(
243
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
244
- "div",
245
- {
246
- ref: t,
247
- "data-sidebar": "header",
248
- className: i("flex flex-col gap-ds-03 p-ds-03", a),
249
- ...e
250
- }
251
- )
252
- );
253
- ie.displayName = "SidebarHeader";
254
- const se = s(
255
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
256
- "div",
257
- {
258
- ref: t,
259
- "data-sidebar": "footer",
260
- className: i("flex flex-col gap-ds-03 p-ds-03", a),
261
- ...e
262
- }
263
- )
264
- );
265
- se.displayName = "SidebarFooter";
266
- const de = s(({ className: a, ...e }, t) => /* @__PURE__ */ r(
267
- R,
268
- {
269
- ref: t,
270
- "data-sidebar": "separator",
271
- className: i(
272
- "bg-border-subtle mx-ds-03 w-auto",
273
- a
274
- ),
275
- ...e
276
- }
277
- ));
278
- de.displayName = "SidebarSeparator";
279
- const oe = s(
280
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
281
- "div",
282
- {
283
- ref: t,
284
- "data-sidebar": "content",
285
- className: i(
286
- "flex min-h-0 flex-1 flex-col gap-ds-03 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
287
- a
288
- ),
289
- ...e
290
- }
291
- )
292
- );
293
- oe.displayName = "SidebarContent";
294
- const ne = s(
295
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
296
- "div",
297
- {
298
- ref: t,
299
- "data-sidebar": "group",
300
- className: i("relative flex w-full min-w-0 flex-col p-ds-03", a),
301
- ...e
302
- }
303
- )
304
- );
305
- ne.displayName = "SidebarGroup";
306
- const le = s(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
307
- e ? h : "div",
308
- {
309
- ref: d,
310
- "data-sidebar": "group-label",
311
- className: i(
312
- "flex h-ds-sm shrink-0 items-center rounded-ds-md px-ds-03 text-ds-sm font-medium text-text-secondary outline-none ring-focus transition-[margin,opa] duration-moderate-02 ease-linear focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
313
- "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
314
- a
315
- ),
316
- ...t
317
- }
318
- ));
319
- le.displayName = "SidebarGroupLabel";
320
- const ce = s(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
321
- e ? h : "button",
322
- {
323
- ref: d,
324
- "data-sidebar": "group-action",
325
- className: i(
326
- "hover:bg-layer-02 absolute right-ds-04 top-ds-04 flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-text-primary outline-none ring-focus transition-transform hover:text-text-primary focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
327
- "after:absolute after:-inset-2 after:md:hidden",
328
- "group-data-[collapsible=icon]:hidden",
329
- a
330
- ),
331
- ...t
332
- }
333
- ));
334
- ce.displayName = "SidebarGroupAction";
335
- const ue = s(
336
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
337
- "div",
338
- {
339
- ref: t,
340
- "data-sidebar": "group-content",
341
- className: i("w-full text-ds-md", a),
342
- ...e
343
- }
344
- )
345
- );
346
- ue.displayName = "SidebarGroupContent";
347
- const pe = s(
348
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
349
- "ul",
350
- {
351
- ref: t,
352
- "data-sidebar": "menu",
353
- className: i("flex w-full min-w-0 flex-col gap-ds-02", a),
354
- ...e
355
- }
356
- )
357
- );
358
- pe.displayName = "SidebarMenu";
359
- const me = s(
360
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
361
- "li",
362
- {
363
- ref: t,
364
- "data-sidebar": "menu-item",
365
- className: i("group/menu-item relative", a),
366
- ...e
367
- }
368
- )
369
- );
370
- me.displayName = "SidebarMenuItem";
371
- const be = z(
372
- "peer/menu-button hover:bg-layer-02 active:bg-interactive-subtle data-[active=true]:bg-interactive-subtle data-[state=open]:hover:bg-layer-02 flex w-full items-center gap-ds-03 overflow-hidden rounded-ds-md p-ds-03 text-left outline-none ring-focus transition-[width,height,padding] hover:text-text-primary focus-visible:ring-2 active:text-text-primary disabled:pointer-events-none disabled:opacity-[0.38] group-has-[[data-sidebar=menu-action]]/menu-item:pr-ds-07 aria-disabled:pointer-events-none aria-disabled:opacity-[0.38] data-[active=true]:font-medium data-[active=true]:text-text-primary data-[state=open]:hover:text-text-primary group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-ds-03 [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
373
- {
374
- variants: {
375
- variant: {
376
- default: "hover:bg-layer-02 hover:text-text-primary",
377
- outline: "hover:bg-layer-02 bg-background shadow-[0_0_0_1px_var(--color-border-subtle)] hover:text-text-primary hover:shadow-[0_0_0_1px_var(--color-border-strong)]"
378
- },
379
- size: {
380
- md: "h-ds-sm text-ds-md",
381
- sm: "h-ds-xs-plus text-ds-sm",
382
- lg: "h-ds-lg text-ds-md group-data-[collapsible=icon]:!p-0"
383
- }
384
- },
385
- defaultVariants: {
386
- variant: "default",
387
- size: "md"
388
- }
389
- }
390
- ), fe = s(
391
- ({
392
- asChild: a = !1,
393
- isActive: e = !1,
394
- variant: t = "default",
395
- size: d = "md",
396
- tooltip: o,
397
- className: n,
398
- ...m
399
- }, f) => {
400
- const c = a ? h : "button", { isMobile: b, state: u } = w(), v = /* @__PURE__ */ r(
401
- c,
402
- {
403
- ref: f,
404
- "data-sidebar": "menu-button",
405
- "data-size": d,
406
- "data-active": e,
407
- className: i(be({ variant: t, size: d }), n),
408
- ...m
409
- }
410
- );
411
- return o ? (typeof o == "string" && (o = {
412
- children: o
413
- }), /* @__PURE__ */ S(H, { children: [
414
- /* @__PURE__ */ r(K, { asChild: !0, children: v }),
415
- /* @__PURE__ */ r(
416
- j,
417
- {
418
- side: "right",
419
- align: "center",
420
- hidden: u !== "collapsed" || b,
421
- ...o
422
- }
423
- )
424
- ] })) : v;
425
- }
426
- );
427
- fe.displayName = "SidebarMenuButton";
428
- const ge = s(({ className: a, asChild: e = !1, showOnHover: t = !1, ...d }, o) => /* @__PURE__ */ r(
429
- e ? h : "button",
430
- {
431
- ref: o,
432
- "data-sidebar": "menu-action",
433
- className: i(
434
- "hover:bg-layer-02 absolute right-ds-02 top-ds-02b flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-text-primary outline-none ring-focus transition-transform hover:text-text-primary focus-visible:ring-2 peer-hover/menu-button:text-text-primary [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
435
- "after:absolute after:-inset-2 after:md:hidden",
436
- "peer-data-[size=sm]/menu-button:top-1",
437
- "peer-data-[size=md]/menu-button:top-ds-02b",
438
- "peer-data-[size=lg]/menu-button:top-ds-03",
439
- "group-data-[collapsible=icon]:hidden",
440
- t && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-text-primary md:opacity-0",
441
- a
442
- ),
443
- ...d
444
- }
445
- ));
446
- ge.displayName = "SidebarMenuAction";
447
- const he = s(
448
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
449
- "div",
450
- {
451
- ref: t,
452
- "data-sidebar": "menu-badge",
453
- className: i(
454
- "pointer-events-none absolute right-ds-02 flex h-5 min-w-5 select-none items-center justify-center rounded-ds-md px-ds-02 text-ds-sm font-medium tabular-nums text-text-primary",
455
- "peer-hover/menu-button:text-text-primary peer-data-[active=true]/menu-button:text-text-primary",
456
- "peer-data-[size=sm]/menu-button:top-1",
457
- "peer-data-[size=md]/menu-button:top-ds-02b",
458
- "peer-data-[size=lg]/menu-button:top-ds-03",
459
- "group-data-[collapsible=icon]:hidden",
460
- a
461
- ),
462
- ...e
463
- }
464
- )
465
- );
466
- he.displayName = "SidebarMenuBadge";
467
- const ve = s(({ className: a, showIcon: e = !1, ...t }, d) => {
468
- const o = I(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
469
- return /* @__PURE__ */ S(
470
- "div",
471
- {
472
- ref: d,
473
- "data-sidebar": "menu-skeleton",
474
- className: i("flex h-ds-sm items-center gap-ds-03 rounded-ds-md px-ds-03", a),
475
- ...t,
476
- children: [
477
- e && /* @__PURE__ */ r(
478
- M,
479
- {
480
- className: "h-ico-sm w-ico-sm rounded-ds-md",
481
- "data-sidebar": "menu-skeleton-icon"
482
- }
483
- ),
484
- /* @__PURE__ */ r(
485
- M,
486
- {
487
- className: "h-4 max-w-[--skeleton-width] flex-1",
488
- "data-sidebar": "menu-skeleton-text",
489
- style: {
490
- "--skeleton-width": o
491
- }
492
- }
493
- )
494
- ]
495
- }
496
- );
497
- });
498
- ve.displayName = "SidebarMenuSkeleton";
499
- const xe = s(
500
- ({ className: a, ...e }, t) => /* @__PURE__ */ r(
501
- "ul",
502
- {
503
- ref: t,
504
- "data-sidebar": "menu-sub",
505
- className: i(
506
- "mx-ds-04 flex min-w-0 translate-x-px flex-col gap-ds-02 border-l border-border-subtle px-ds-03 py-ds-01",
507
- "group-data-[collapsible=icon]:hidden",
508
- a
509
- ),
510
- ...e
511
- }
512
- )
513
- );
514
- xe.displayName = "SidebarMenuSub";
515
- const ye = s(
516
- ({ ...a }, e) => /* @__PURE__ */ r("li", { ref: e, ...a })
517
- );
518
- ye.displayName = "SidebarMenuSubItem";
519
- const Se = s(({ asChild: a = !1, size: e = "md", isActive: t, className: d, ...o }, n) => /* @__PURE__ */ r(
520
- a ? h : "a",
521
- {
522
- ref: n,
523
- "data-sidebar": "menu-sub-button",
524
- "data-size": e,
525
- "data-active": t,
526
- className: i(
527
- "hover:bg-layer-02 active:bg-interactive-subtle flex h-ds-xs-plus min-w-0 -translate-x-px items-center gap-ds-03 overflow-hidden rounded-ds-md px-ds-03 text-text-primary outline-none ring-focus hover:text-text-primary focus-visible:ring-2 active:text-text-primary disabled:pointer-events-none disabled:opacity-[0.38] aria-disabled:pointer-events-none aria-disabled:opacity-[0.38] [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0 [&>svg]:text-text-primary",
528
- "data-[active=true]:bg-interactive-subtle data-[active=true]:text-text-primary",
529
- e === "sm" && "text-ds-sm",
530
- e === "md" && "text-ds-md",
531
- "group-data-[collapsible=icon]:hidden",
532
- d
533
- ),
534
- ...o
535
- }
536
- ));
537
- Se.displayName = "SidebarMenuSubButton";
2
+ import "react/jsx-runtime";
3
+ import "../_chunks/primitives.js";
4
+ import "../_chunks/vendor.js";
5
+ import "@tabler/icons-react";
6
+ import "../hooks/use-mobile.js";
7
+ import "../_chunks/utils.js";
8
+ import "../_chunks/button.js";
9
+ import { S as m, c as M, h as g, d as G, m as I, f as c, e as l, a as B, n as f, o as k, g as v, p as A, q as C, j as h, i as j, r as q, s as w, t as x, u as y, v as F, w as H, b as L, k as P, y as R } from "../_chunks/sidebar.js";
10
+ import "./sheet.js";
11
+ import "./skeleton.js";
12
+ import "../_chunks/tooltip.js";
13
+ import "react";
538
14
  export {
539
- Z as Sidebar,
540
- oe as SidebarContent,
541
- se as SidebarFooter,
542
- ne as SidebarGroup,
543
- ce as SidebarGroupAction,
544
- ue as SidebarGroupContent,
545
- le as SidebarGroupLabel,
546
- ie as SidebarHeader,
547
- re as SidebarInput,
548
- te as SidebarInset,
549
- pe as SidebarMenu,
550
- ge as SidebarMenuAction,
551
- he as SidebarMenuBadge,
552
- fe as SidebarMenuButton,
553
- me as SidebarMenuItem,
554
- ve as SidebarMenuSkeleton,
555
- xe as SidebarMenuSub,
556
- Se as SidebarMenuSubButton,
557
- ye as SidebarMenuSubItem,
558
- Q as SidebarProvider,
559
- ae as SidebarRail,
560
- de as SidebarSeparator,
561
- ee as SidebarTrigger,
562
- w as useSidebar
15
+ m as Sidebar,
16
+ M as SidebarContent,
17
+ g as SidebarFooter,
18
+ G as SidebarGroup,
19
+ I as SidebarGroupAction,
20
+ c as SidebarGroupContent,
21
+ l as SidebarGroupLabel,
22
+ B as SidebarHeader,
23
+ f as SidebarInput,
24
+ k as SidebarInset,
25
+ v as SidebarMenu,
26
+ A as SidebarMenuAction,
27
+ C as SidebarMenuBadge,
28
+ h as SidebarMenuButton,
29
+ j as SidebarMenuItem,
30
+ q as SidebarMenuSkeleton,
31
+ w as SidebarMenuSub,
32
+ x as SidebarMenuSubButton,
33
+ y as SidebarMenuSubItem,
34
+ F as SidebarProvider,
35
+ H as SidebarRail,
36
+ L as SidebarSeparator,
37
+ P as SidebarTrigger,
38
+ R as useSidebar
563
39
  };
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const skeletonVariants: (props?: ({
4
- variant?: "text" | "circle" | "rectangle" | null | undefined;
4
+ variant?: "circle" | "text" | "rectangle" | null | undefined;
5
5
  animation?: "none" | "pulse" | "shimmer" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  /**
@@ -1,8 +1,8 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { cva as i } from "class-variance-authority";
4
- import { cn as m } from "./lib/utils.js";
5
- const l = i("bg-skeleton-base", {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import { m } from "../_chunks/vendor.js";
4
+ import { c as i } from "../_chunks/utils.js";
5
+ const l = m("bg-skeleton-base", {
6
6
  variants: {
7
7
  variant: {
8
8
  rectangle: "rounded-ds-md",
@@ -19,12 +19,12 @@ const l = i("bg-skeleton-base", {
19
19
  variant: "rectangle",
20
20
  animation: "pulse"
21
21
  }
22
- }), d = s.forwardRef(
23
- ({ className: e, variant: a, animation: t, ...n }, o) => /* @__PURE__ */ r(
22
+ }), d = r.forwardRef(
23
+ ({ className: e, variant: a, animation: t, ...n }, s) => /* @__PURE__ */ o(
24
24
  "div",
25
25
  {
26
- ref: o,
27
- className: m(l({ variant: a, animation: t }), e),
26
+ ref: s,
27
+ className: i(l({ variant: a, animation: t }), e),
28
28
  ...n
29
29
  }
30
30
  )
package/dist/ui/slider.js CHANGED
@@ -1,30 +1,30 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { Root as o, Track as t, Range as c, Thumb as d } from "../primitives/react-slider.js";
5
- import { cn as f } from "./lib/utils.js";
6
- const m = n.forwardRef(({ className: i, "aria-label": l, ...s }, r) => /* @__PURE__ */ a(
7
- o,
4
+ import { aA as s, aB as c, aC as t, aD as d } from "../_chunks/primitives.js";
5
+ import { c as f } from "../_chunks/utils.js";
6
+ const m = n.forwardRef(({ className: a, "aria-label": o, ...i }, l) => /* @__PURE__ */ r(
7
+ s,
8
8
  {
9
- ref: r,
9
+ ref: l,
10
10
  className: f(
11
11
  "relative flex w-full touch-none select-none items-center",
12
- i
12
+ a
13
13
  ),
14
- ...s,
14
+ ...i,
15
15
  children: [
16
- /* @__PURE__ */ e(t, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-field", children: /* @__PURE__ */ e(c, { className: "absolute h-full bg-interactive" }) }),
16
+ /* @__PURE__ */ e(c, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-field", children: /* @__PURE__ */ e(t, { className: "absolute h-full bg-interactive" }) }),
17
17
  /* @__PURE__ */ e(
18
18
  d,
19
19
  {
20
- "aria-label": l,
20
+ "aria-label": o,
21
21
  className: "block h-ico-sm w-ico-sm rounded-ds-full border-2 border-interactive bg-layer-01 shadow-01 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]"
22
22
  }
23
23
  )
24
24
  ]
25
25
  }
26
26
  ));
27
- m.displayName = o.displayName;
27
+ m.displayName = s.displayName;
28
28
  export {
29
29
  m as Slider
30
30
  };