@devalok/shilp-sutra 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +101 -101
- package/dist/_chunks/tree-view.js +12 -12
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/vendor-utils.js +2 -2
- package/dist/composed/activity-feed.js +21 -21
- package/dist/composed/avatar-group.js +25 -25
- package/dist/composed/command-palette.js +3 -3
- package/dist/composed/confirm-dialog.js +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/empty-state.js +2 -2
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +10 -10
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.js +1 -1
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-header.js +1 -1
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +1 -1
- package/dist/composed/schedule-view.js +15 -15
- package/dist/composed/simple-tooltip.js +8 -8
- package/dist/composed/status-badge.js +12 -12
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +8 -6
- package/dist/motion/primitives-index.js +184 -8
- package/dist/shell/app-command-palette.js +1 -1
- package/dist/shell/bottom-navbar.js +3 -3
- package/dist/shell/notification-center.js +35 -35
- package/dist/shell/notification-preferences.js +29 -28
- package/dist/shell/sidebar.js +56 -56
- package/dist/shell/top-bar.js +25 -25
- package/dist/ui/accordion.js +11 -11
- package/dist/ui/alert-dialog.js +41 -41
- package/dist/ui/alert.js +10 -10
- package/dist/ui/aspect-ratio.js +5 -5
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/avatar.js +4 -4
- package/dist/ui/badge.js +11 -11
- package/dist/ui/banner.js +3 -3
- package/dist/ui/breadcrumb.js +8 -8
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.js +25 -25
- package/dist/ui/card.js +5 -5
- package/dist/ui/charts/index.js +4 -4
- package/dist/ui/checkbox.js +4 -4
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +7 -7
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +5 -5
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +55 -55
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/dropdown-menu.js +3 -3
- package/dist/ui/file-upload.js +10 -10
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.js +12 -12
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +322 -516
- package/dist/ui/input-otp.js +4 -4
- package/dist/ui/input.js +9 -9
- package/dist/ui/label.js +9 -9
- package/dist/ui/lib/date-utils.d.ts +0 -1
- package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
- package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +66 -66
- package/dist/ui/navigation-menu.js +4 -4
- package/dist/ui/number-input.js +9 -9
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +18 -18
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.js +11 -11
- package/dist/ui/search-input.js +2 -2
- package/dist/ui/segmented-control.d.ts +2 -0
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +59 -55
- package/dist/ui/select.js +19 -19
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.js +10 -10
- package/dist/ui/sidebar.js +574 -38
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +9 -9
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +35 -35
- package/dist/ui/stepper.d.ts +1 -3
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +74 -74
- package/dist/ui/switch.js +7 -7
- package/dist/ui/table.js +28 -28
- package/dist/ui/tabs.js +10 -10
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.js +12 -12
- package/dist/ui/toaster.js +11 -11
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +8 -8
- package/dist/ui/tooltip.js +21 -21
- package/dist/ui/visually-hidden.js +3 -3
- package/docs/components/_header.md +83 -0
- package/docs/components/composed/activity-feed.md +43 -0
- package/docs/components/composed/avatar-group.md +32 -0
- package/docs/components/composed/command-palette.md +40 -0
- package/docs/components/composed/confirm-dialog.md +46 -0
- package/docs/components/composed/content-card.md +36 -0
- package/docs/components/composed/date-picker.md +130 -0
- package/docs/components/composed/empty-state.md +53 -0
- package/docs/components/composed/error-boundary.md +29 -0
- package/docs/components/composed/global-loading.md +27 -0
- package/docs/components/composed/loading-skeleton.md +51 -0
- package/docs/components/composed/member-picker.md +35 -0
- package/docs/components/composed/page-header.md +41 -0
- package/docs/components/composed/page-skeletons.md +32 -0
- package/docs/components/composed/priority-indicator.md +32 -0
- package/docs/components/composed/rich-text-editor.md +71 -0
- package/docs/components/composed/schedule-view.md +39 -0
- package/docs/components/composed/simple-tooltip.md +33 -0
- package/docs/components/composed/status-badge.md +41 -0
- package/docs/components/shell/app-command-palette.md +44 -0
- package/docs/components/shell/bottom-navbar.md +48 -0
- package/docs/components/shell/command-registry.md +48 -0
- package/docs/components/shell/link-context.md +41 -0
- package/docs/components/shell/notification-center.md +63 -0
- package/docs/components/shell/notification-preferences.md +42 -0
- package/docs/components/shell/sidebar.md +88 -0
- package/docs/components/shell/top-bar.md +63 -0
- package/docs/components/ui/accordion.md +48 -0
- package/docs/components/ui/alert-dialog.md +58 -0
- package/docs/components/ui/alert.md +43 -0
- package/docs/components/ui/aspect-ratio.md +25 -0
- package/docs/components/ui/autocomplete.md +48 -0
- package/docs/components/ui/avatar.md +34 -0
- package/docs/components/ui/badge.md +48 -0
- package/docs/components/ui/banner.md +35 -0
- package/docs/components/ui/breadcrumb.md +37 -0
- package/docs/components/ui/button-group.md +32 -0
- package/docs/components/ui/button.md +55 -0
- package/docs/components/ui/card.md +48 -0
- package/docs/components/ui/charts.md +43 -0
- package/docs/components/ui/checkbox.md +31 -0
- package/docs/components/ui/chip.md +43 -0
- package/docs/components/ui/code.md +28 -0
- package/docs/components/ui/collapsible.md +40 -0
- package/docs/components/ui/color-input.md +37 -0
- package/docs/components/ui/combobox.md +54 -0
- package/docs/components/ui/container.md +26 -0
- package/docs/components/ui/context-menu.md +43 -0
- package/docs/components/ui/data-table-toolbar.md +44 -0
- package/docs/components/ui/data-table.md +91 -0
- package/docs/components/ui/dialog.md +51 -0
- package/docs/components/ui/dropdown-menu.md +45 -0
- package/docs/components/ui/file-upload.md +41 -0
- package/docs/components/ui/form.md +51 -0
- package/docs/components/ui/hover-card.md +32 -0
- package/docs/components/ui/icon-button.md +33 -0
- package/docs/components/ui/input-otp.md +44 -0
- package/docs/components/ui/input.md +48 -0
- package/docs/components/ui/label.md +25 -0
- package/docs/components/ui/link.md +29 -0
- package/docs/components/ui/menubar.md +44 -0
- package/docs/components/ui/navigation-menu.md +46 -0
- package/docs/components/ui/number-input.md +44 -0
- package/docs/components/ui/pagination.md +48 -0
- package/docs/components/ui/popover.md +30 -0
- package/docs/components/ui/progress.md +29 -0
- package/docs/components/ui/radio.md +34 -0
- package/docs/components/ui/search-input.md +43 -0
- package/docs/components/ui/segmented-control.md +50 -0
- package/docs/components/ui/select.md +49 -0
- package/docs/components/ui/separator.md +29 -0
- package/docs/components/ui/sheet.md +47 -0
- package/docs/components/ui/sidebar.md +72 -0
- package/docs/components/ui/skeleton.md +77 -0
- package/docs/components/ui/slider.md +29 -0
- package/docs/components/ui/spinner.md +50 -0
- package/docs/components/ui/stack.md +39 -0
- package/docs/components/ui/stat-card.md +61 -0
- package/docs/components/ui/stepper.md +49 -0
- package/docs/components/ui/switch.md +34 -0
- package/docs/components/ui/table.md +47 -0
- package/docs/components/ui/tabs.md +56 -0
- package/docs/components/ui/text.md +37 -0
- package/docs/components/ui/textarea.md +39 -0
- package/docs/components/ui/toast.md +65 -0
- package/docs/components/ui/toaster.md +47 -0
- package/docs/components/ui/toggle-group.md +43 -0
- package/docs/components/ui/toggle.md +37 -0
- package/docs/components/ui/tooltip.md +33 -0
- package/docs/components/ui/tree-view.md +65 -0
- package/docs/components/ui/visually-hidden.md +21 -0
- package/llms-full.txt +3384 -1591
- package/llms.txt +4 -4
- package/package.json +28 -3
- package/dist/_chunks/avatar.js +0 -52
- package/dist/_chunks/button-group.js +0 -27
- package/dist/_chunks/button.js +0 -113
- package/dist/_chunks/card.js +0 -50
- package/dist/_chunks/checkbox.js +0 -16
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -606
- package/dist/_chunks/spinner.js +0 -64
- package/dist/_chunks/tooltip.js +0 -30
- package/dist/_chunks/utils.js +0 -17
- package/dist/motion/motion-provider.js +0 -24
- package/dist/motion/primitives.js +0 -187
- /package/dist/_chunks/{motion.js → framer.js} +0 -0
package/dist/ui/radio.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import { IconCircle as
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const m =
|
|
3
|
+
import { aj as s, ak as i, al as d } from "../_chunks/primitives.js";
|
|
4
|
+
import { IconCircle as l } from "@tabler/icons-react";
|
|
5
|
+
import * as t from "react";
|
|
6
|
+
import { cn as c } from "./lib/utils.js";
|
|
7
|
+
const n = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(s, { className: c("grid gap-ds-03", a), ...r, ref: o }));
|
|
8
|
+
n.displayName = s.displayName;
|
|
9
|
+
const m = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(
|
|
10
10
|
i,
|
|
11
11
|
{
|
|
12
|
-
ref:
|
|
13
|
-
className:
|
|
12
|
+
ref: o,
|
|
13
|
+
className: c(
|
|
14
14
|
"aspect-square h-ico-md w-ico-md rounded-ds-full",
|
|
15
15
|
"border border-surface-border-strong bg-surface-3",
|
|
16
16
|
"transition-colors duration-fast-01",
|
|
@@ -20,11 +20,11 @@ const m = c.forwardRef(({ className: a, ...r }, s) => /* @__PURE__ */ e(
|
|
|
20
20
|
a
|
|
21
21
|
),
|
|
22
22
|
...r,
|
|
23
|
-
children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
23
|
+
children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" }) })
|
|
24
24
|
}
|
|
25
25
|
));
|
|
26
26
|
m.displayName = i.displayName;
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
n as RadioGroup,
|
|
29
29
|
m as RadioGroupItem
|
|
30
30
|
};
|
package/dist/ui/search-input.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { IconSearch as l, IconX as m } from "@tabler/icons-react";
|
|
4
4
|
import * as u from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { cn as f } from "./lib/utils.js";
|
|
6
|
+
import { Spinner as p } from "./spinner.js";
|
|
7
7
|
const b = {
|
|
8
8
|
sm: "h-ds-sm text-ds-sm pl-ds-08 pr-ds-07",
|
|
9
9
|
md: "h-ds-md text-ds-md pl-[2.5rem] pr-[2.25rem]",
|
|
@@ -117,6 +117,8 @@ export interface SegmentedControlItemProps {
|
|
|
117
117
|
isFocused: boolean;
|
|
118
118
|
onFocus: () => void;
|
|
119
119
|
onBlur: () => void;
|
|
120
|
+
/** @internal Unique layout animation ID — provided by the parent SegmentedControl. */
|
|
121
|
+
layoutId?: string;
|
|
120
122
|
}
|
|
121
123
|
declare const SegmentedControlItem: React.ForwardRefExoticComponent<SegmentedControlItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
122
124
|
export { SegmentedControl, SegmentedControlItem, segmentedControlItemVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../src/ui/segmented-control.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../src/ui/segmented-control.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAQtD,QAAA,MAAM,4BAA4B;;;;;;8EAmGjC,CAAA;AAqBD,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAClF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACnG,IAAI,EAAE,oBAAoB,CAAA;IAC1B,OAAO,EAAE,uBAAuB,CAAA;IAChC,OAAO,EAAE,sBAAsB,EAAE,CAAA;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAGD,QAAA,MAAM,gBAAgB,8FA0FrB,CAAA;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,uBAAuB,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,oBAAoB,qGA6GzB,CAAA;AAGD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,CAAA"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as d, jsxs as z } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import { ag as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { L, m as
|
|
8
|
-
function
|
|
9
|
-
const [b, l] =
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import D, { useState as k, useRef as I, useEffect as S, useCallback as R, useId as E } from "react";
|
|
4
|
+
import { ag as H } from "../_chunks/vendor-utils.js";
|
|
5
|
+
import { cn as w } from "./lib/utils.js";
|
|
6
|
+
import { springs as L } from "./lib/motion.js";
|
|
7
|
+
import { L as T, m as C, A } from "../_chunks/framer.js";
|
|
8
|
+
function j(u = 600) {
|
|
9
|
+
const [b, l] = k([]), s = I(/* @__PURE__ */ new Set());
|
|
10
|
+
S(() => () => {
|
|
11
|
+
s.current.forEach(clearTimeout);
|
|
12
12
|
}, []);
|
|
13
13
|
const m = R((n) => {
|
|
14
|
-
const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2,
|
|
15
|
-
l((i) => [...i, { id: x, x:
|
|
16
|
-
|
|
14
|
+
const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2, v = n.clientX - a.left - t / 2, o = n.clientY - a.top - t / 2, x = Date.now();
|
|
15
|
+
l((i) => [...i, { id: x, x: v, y: o, size: t }]);
|
|
16
|
+
const g = setTimeout(() => {
|
|
17
|
+
l((i) => i.filter((f) => f.id !== x)), s.current.delete(g);
|
|
17
18
|
}, u);
|
|
19
|
+
s.current.add(g);
|
|
18
20
|
}, [u]);
|
|
19
21
|
return { ripples: b, createRipple: m };
|
|
20
22
|
}
|
|
21
|
-
const
|
|
23
|
+
const B = H(
|
|
22
24
|
[
|
|
23
25
|
"inline-flex items-center gap-ds-03 rounded-ds-full border-none outline-none cursor-pointer",
|
|
24
26
|
"transition-[color,background-color,border-color,box-shadow] duration-moderate-02 ease-productive-standard",
|
|
@@ -117,18 +119,18 @@ const A = S(
|
|
|
117
119
|
isDisabled: !1
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
),
|
|
122
|
+
), F = {
|
|
121
123
|
filled: "bg-surface-overlay-light",
|
|
122
124
|
tonal: "bg-surface-overlay-dark"
|
|
123
|
-
},
|
|
125
|
+
}, V = {
|
|
124
126
|
small: "sm",
|
|
125
127
|
medium: "md",
|
|
126
128
|
big: "lg"
|
|
127
129
|
};
|
|
128
|
-
function
|
|
129
|
-
return
|
|
130
|
+
function K(u) {
|
|
131
|
+
return V[u] ?? u;
|
|
130
132
|
}
|
|
131
|
-
const
|
|
133
|
+
const U = D.forwardRef(
|
|
132
134
|
function({
|
|
133
135
|
size: b,
|
|
134
136
|
variant: l,
|
|
@@ -137,11 +139,11 @@ const V = N.forwardRef(
|
|
|
137
139
|
onSelect: n,
|
|
138
140
|
disabled: a = !1,
|
|
139
141
|
className: t = "",
|
|
140
|
-
...
|
|
142
|
+
...v
|
|
141
143
|
}, o) {
|
|
142
|
-
const x =
|
|
143
|
-
|
|
144
|
-
}, [o]),
|
|
144
|
+
const x = K(b), g = E(), [i, f] = k(null), h = I(null), y = D.useCallback((e) => {
|
|
145
|
+
h.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
146
|
+
}, [o]), N = (e) => {
|
|
145
147
|
if (a) return;
|
|
146
148
|
const p = s.findIndex((r) => r.id === i);
|
|
147
149
|
let c = p;
|
|
@@ -161,25 +163,25 @@ const V = N.forwardRef(
|
|
|
161
163
|
default:
|
|
162
164
|
return;
|
|
163
165
|
}
|
|
164
|
-
const
|
|
165
|
-
f(
|
|
166
|
+
const _ = s[c];
|
|
167
|
+
f(_.id), n(_.id);
|
|
166
168
|
};
|
|
167
169
|
return /* @__PURE__ */ d(
|
|
168
170
|
"div",
|
|
169
171
|
{
|
|
170
|
-
ref:
|
|
171
|
-
className:
|
|
172
|
+
ref: y,
|
|
173
|
+
className: w(
|
|
172
174
|
"inline-flex gap-0 p-0 rounded-ds-full",
|
|
173
175
|
"bg-surface-2",
|
|
174
176
|
"border border-solid border-surface-border-strong",
|
|
175
177
|
t
|
|
176
178
|
),
|
|
177
179
|
role: "tablist",
|
|
178
|
-
onKeyDown:
|
|
180
|
+
onKeyDown: N,
|
|
179
181
|
tabIndex: -1,
|
|
180
182
|
"aria-label": "Segmented control options",
|
|
181
|
-
...
|
|
182
|
-
children: /* @__PURE__ */ d(
|
|
183
|
+
...v,
|
|
184
|
+
children: /* @__PURE__ */ d(T, { children: s.map((e) => /* @__PURE__ */ d(
|
|
183
185
|
M,
|
|
184
186
|
{
|
|
185
187
|
size: x,
|
|
@@ -191,7 +193,8 @@ const V = N.forwardRef(
|
|
|
191
193
|
disabled: a,
|
|
192
194
|
isFocused: e.id === i,
|
|
193
195
|
onFocus: () => f(e.id),
|
|
194
|
-
onBlur: () => f(null)
|
|
196
|
+
onBlur: () => f(null),
|
|
197
|
+
layoutId: `${g}-segment-indicator`
|
|
195
198
|
},
|
|
196
199
|
e.id
|
|
197
200
|
)) })
|
|
@@ -199,8 +202,8 @@ const V = N.forwardRef(
|
|
|
199
202
|
);
|
|
200
203
|
}
|
|
201
204
|
);
|
|
202
|
-
|
|
203
|
-
const M =
|
|
205
|
+
U.displayName = "SegmentedControl";
|
|
206
|
+
const M = D.forwardRef(
|
|
204
207
|
function({
|
|
205
208
|
size: b,
|
|
206
209
|
variant: l,
|
|
@@ -209,25 +212,26 @@ const M = N.forwardRef(
|
|
|
209
212
|
isSelected: n,
|
|
210
213
|
onClick: a,
|
|
211
214
|
disabled: t = !1,
|
|
212
|
-
isFocused:
|
|
215
|
+
isFocused: v,
|
|
213
216
|
onFocus: o,
|
|
214
|
-
onBlur: x
|
|
217
|
+
onBlur: x,
|
|
218
|
+
layoutId: g = "segment-indicator"
|
|
215
219
|
}, i) {
|
|
216
|
-
const [f,
|
|
217
|
-
!t && !
|
|
220
|
+
const [f, h] = k("default"), { ripples: y, createRipple: N } = j(), e = () => {
|
|
221
|
+
!t && !v && h("hover");
|
|
218
222
|
}, p = () => {
|
|
219
|
-
t ||
|
|
223
|
+
t || h("default");
|
|
220
224
|
}, c = () => {
|
|
221
|
-
t ||
|
|
222
|
-
},
|
|
223
|
-
t ||
|
|
225
|
+
t || h("pressed");
|
|
226
|
+
}, _ = () => {
|
|
227
|
+
t || h("hover");
|
|
224
228
|
};
|
|
225
229
|
return /* @__PURE__ */ z(
|
|
226
230
|
"button",
|
|
227
231
|
{
|
|
228
232
|
ref: i,
|
|
229
|
-
className:
|
|
230
|
-
|
|
233
|
+
className: w(
|
|
234
|
+
B({
|
|
231
235
|
size: b,
|
|
232
236
|
variant: l,
|
|
233
237
|
selected: n,
|
|
@@ -236,7 +240,7 @@ const M = N.forwardRef(
|
|
|
236
240
|
})
|
|
237
241
|
),
|
|
238
242
|
onClick: (r) => {
|
|
239
|
-
|
|
243
|
+
N(r), a();
|
|
240
244
|
},
|
|
241
245
|
disabled: t,
|
|
242
246
|
type: "button",
|
|
@@ -246,29 +250,29 @@ const M = N.forwardRef(
|
|
|
246
250
|
onMouseEnter: e,
|
|
247
251
|
onMouseLeave: p,
|
|
248
252
|
onMouseDown: c,
|
|
249
|
-
onMouseUp:
|
|
253
|
+
onMouseUp: _,
|
|
250
254
|
onTouchStart: c,
|
|
251
|
-
onTouchEnd:
|
|
255
|
+
onTouchEnd: _,
|
|
252
256
|
onFocus: o,
|
|
253
257
|
onBlur: x,
|
|
254
258
|
children: [
|
|
255
259
|
n && /* @__PURE__ */ d(
|
|
256
|
-
|
|
260
|
+
C.span,
|
|
257
261
|
{
|
|
258
|
-
layoutId:
|
|
259
|
-
className:
|
|
262
|
+
layoutId: g,
|
|
263
|
+
className: w(
|
|
260
264
|
"absolute inset-0 rounded-ds-full pointer-events-none",
|
|
261
265
|
l === "filled" ? "bg-accent-9 shadow-[0px_1px_3px_0.05px_var(--color-accent-10),inset_0px_8px_16px_0px_var(--color-inset-glow-strong),inset_0px_2px_0px_0px_var(--color-inset-glow-subtle)]" : "bg-surface-3"
|
|
262
266
|
),
|
|
263
|
-
transition:
|
|
267
|
+
transition: L.smooth
|
|
264
268
|
}
|
|
265
269
|
),
|
|
266
|
-
/* @__PURE__ */ d(
|
|
267
|
-
|
|
270
|
+
/* @__PURE__ */ d(A, { children: y.map((r) => /* @__PURE__ */ d(
|
|
271
|
+
C.span,
|
|
268
272
|
{
|
|
269
|
-
className:
|
|
273
|
+
className: w(
|
|
270
274
|
"absolute rounded-ds-full -translate-x-1/2 -translate-y-1/2 pointer-events-none",
|
|
271
|
-
|
|
275
|
+
F[l]
|
|
272
276
|
),
|
|
273
277
|
style: {
|
|
274
278
|
left: r.x,
|
|
@@ -291,7 +295,7 @@ const M = N.forwardRef(
|
|
|
291
295
|
);
|
|
292
296
|
M.displayName = "SegmentedControlItem";
|
|
293
297
|
export {
|
|
294
|
-
|
|
298
|
+
U as SegmentedControl,
|
|
295
299
|
M as SegmentedControlItem,
|
|
296
|
-
|
|
300
|
+
B as segmentedControlItemVariants
|
|
297
301
|
};
|
package/dist/ui/select.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronDown as y, IconChevronUp as j, IconCheck as
|
|
6
|
-
import { ag as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { m as D } from "../_chunks/
|
|
10
|
-
const O = I, Q = C, W = R, U =
|
|
4
|
+
import { ao as c, ap as w, aq as n, ar as m, as as x, at as p, au as N, av as f, aw as u, ax as v, ay as S, az as h, aA as I, aB as R, aC as C } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as y, IconChevronUp as j, IconCheck as B } from "@tabler/icons-react";
|
|
6
|
+
import { ag as V } from "../_chunks/vendor-utils.js";
|
|
7
|
+
import { cn as r } from "./lib/utils.js";
|
|
8
|
+
import { tweens as z, springs as T } from "./lib/motion.js";
|
|
9
|
+
import { m as D } from "../_chunks/framer.js";
|
|
10
|
+
const O = I, Q = C, W = R, U = V(
|
|
11
11
|
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-3 placeholder:text-surface-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7 disabled:cursor-not-allowed disabled:opacity-action-disabled [&>span]:line-clamp-1",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
@@ -19,10 +19,10 @@ const O = I, Q = C, W = R, U = z(
|
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { size: "md" }
|
|
21
21
|
}
|
|
22
|
-
), G = o.forwardRef(({ className: s, children: t, size: a, ...d },
|
|
22
|
+
), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, i) => /* @__PURE__ */ l(
|
|
23
23
|
c,
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
25
|
+
ref: i,
|
|
26
26
|
className: r(U({ size: a }), s),
|
|
27
27
|
...d,
|
|
28
28
|
children: [
|
|
@@ -58,19 +58,19 @@ const g = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
58
58
|
}
|
|
59
59
|
));
|
|
60
60
|
g.displayName = m.displayName;
|
|
61
|
-
const L = o.forwardRef(({ className: s, children: t, position: a = "popper", ...d },
|
|
61
|
+
const L = o.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, i) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
|
|
62
62
|
p,
|
|
63
63
|
{
|
|
64
|
-
ref:
|
|
64
|
+
ref: i,
|
|
65
65
|
position: a,
|
|
66
66
|
asChild: !0,
|
|
67
67
|
...d,
|
|
68
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ l(
|
|
69
69
|
D.div,
|
|
70
70
|
{
|
|
71
71
|
initial: { opacity: 0, scale: 0.95 },
|
|
72
72
|
animate: { opacity: 1, scale: 1 },
|
|
73
|
-
transition: { ...T.snappy, opacity:
|
|
73
|
+
transition: { ...T.snappy, opacity: z.fade },
|
|
74
74
|
className: r(
|
|
75
75
|
"relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-1 text-surface-fg shadow-03",
|
|
76
76
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -104,7 +104,7 @@ const k = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
104
104
|
}
|
|
105
105
|
));
|
|
106
106
|
k.displayName = f.displayName;
|
|
107
|
-
const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */
|
|
107
|
+
const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ l(
|
|
108
108
|
u,
|
|
109
109
|
{
|
|
110
110
|
ref: d,
|
|
@@ -114,13 +114,13 @@ const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__
|
|
|
114
114
|
),
|
|
115
115
|
...a,
|
|
116
116
|
children: [
|
|
117
|
-
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
117
|
+
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(B, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
118
118
|
/* @__PURE__ */ e(S, { children: t })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
));
|
|
122
122
|
q.displayName = u.displayName;
|
|
123
|
-
const
|
|
123
|
+
const A = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
124
124
|
h,
|
|
125
125
|
{
|
|
126
126
|
ref: a,
|
|
@@ -128,7 +128,7 @@ const P = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
128
128
|
...t
|
|
129
129
|
}
|
|
130
130
|
));
|
|
131
|
-
|
|
131
|
+
A.displayName = h.displayName;
|
|
132
132
|
export {
|
|
133
133
|
O as Select,
|
|
134
134
|
L as SelectContent,
|
|
@@ -137,7 +137,7 @@ export {
|
|
|
137
137
|
k as SelectLabel,
|
|
138
138
|
g as SelectScrollDownButton,
|
|
139
139
|
b as SelectScrollUpButton,
|
|
140
|
-
|
|
140
|
+
A as SelectSeparator,
|
|
141
141
|
G as SelectTrigger,
|
|
142
142
|
W as SelectValue,
|
|
143
143
|
U as selectTriggerVariants
|
package/dist/ui/separator.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ai as o } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as f } from "./lib/utils.js";
|
|
6
6
|
const l = e.forwardRef(
|
|
7
|
-
({ className: a, orientation: r = "horizontal", decorative: m = !0, ...
|
|
7
|
+
({ className: a, orientation: r = "horizontal", decorative: m = !0, ...p }, s) => /* @__PURE__ */ t(
|
|
8
8
|
o,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: s,
|
|
11
11
|
decorative: m,
|
|
12
12
|
orientation: r,
|
|
13
13
|
className: f(
|
|
@@ -15,7 +15,7 @@ const l = e.forwardRef(
|
|
|
15
15
|
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
16
16
|
a
|
|
17
17
|
),
|
|
18
|
-
...
|
|
18
|
+
...p
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
);
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as o, jsxs as
|
|
2
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { aa as h, ab as R, ac as u, ad as x, ae as b, af as y, ag as P, ah as j } from "../_chunks/primitives.js";
|
|
5
5
|
import { ag as T } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { IconX as A } from "@tabler/icons-react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { m as N, A as D } from "../_chunks/
|
|
7
|
+
import { cn as a } from "./lib/utils.js";
|
|
8
|
+
import { tweens as M, motionProps as g, springs as z } from "./lib/motion.js";
|
|
9
|
+
import { m as N, A as D } from "../_chunks/framer.js";
|
|
10
10
|
const v = r.createContext(!1), F = ({
|
|
11
11
|
open: e,
|
|
12
12
|
defaultOpen: s = !1,
|
|
@@ -14,11 +14,11 @@ const v = r.createContext(!1), F = ({
|
|
|
14
14
|
children: i,
|
|
15
15
|
...n
|
|
16
16
|
}) => {
|
|
17
|
-
const [l, S] = r.useState(s),
|
|
17
|
+
const [l, S] = r.useState(s), d = e !== void 0, m = d ? e : l, C = r.useCallback(
|
|
18
18
|
(f) => {
|
|
19
|
-
|
|
19
|
+
d || S(f), t == null || t(f);
|
|
20
20
|
},
|
|
21
|
-
[
|
|
21
|
+
[d, t]
|
|
22
22
|
);
|
|
23
23
|
return /* @__PURE__ */ o(v.Provider, { value: m, children: /* @__PURE__ */ o(P, { open: m, onOpenChange: C, ...n, children: i }) });
|
|
24
24
|
};
|
|
@@ -63,9 +63,9 @@ const p = {
|
|
|
63
63
|
}
|
|
64
64
|
), k = r.forwardRef(({ side: e = "right", className: s, children: t, ...i }, n) => {
|
|
65
65
|
const l = r.useContext(v);
|
|
66
|
-
return /* @__PURE__ */ o(D, { children: l && /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ o(D, { children: l && /* @__PURE__ */ c(H, { forceMount: !0, children: [
|
|
67
67
|
/* @__PURE__ */ o(w, {}),
|
|
68
|
-
/* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ c(
|
|
69
69
|
N.div,
|
|
70
70
|
{
|
|
71
71
|
ref: n,
|
|
@@ -76,7 +76,7 @@ const p = {
|
|
|
76
76
|
transition: z.smooth,
|
|
77
77
|
...g(i),
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ c(x, { className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
|
|
80
80
|
/* @__PURE__ */ o(A, { className: "h-ico-sm w-ico-sm" }),
|
|
81
81
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
82
82
|
] }),
|