@devalok/shilp-sutra 0.6.2 → 0.8.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.
- package/dist/_virtual/client.js +5 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/react-dom-client.development.js +5 -0
- package/dist/_virtual/react-dom-client.production.js +5 -0
- package/dist/_virtual/scheduler.development.js +5 -0
- package/dist/_virtual/scheduler.production.js +5 -0
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +84 -73
- package/dist/composed/confirm-dialog.d.ts +27 -0
- package/dist/composed/confirm-dialog.d.ts.map +1 -0
- package/dist/composed/confirm-dialog.js +45 -0
- package/dist/composed/extensions/emoji-suggestion.d.ts +9 -0
- package/dist/composed/extensions/emoji-suggestion.d.ts.map +1 -0
- package/dist/composed/extensions/emoji-suggestion.js +119 -0
- package/dist/composed/extensions/file-attachment.d.ts +4 -0
- package/dist/composed/extensions/file-attachment.d.ts.map +1 -0
- package/dist/composed/extensions/file-attachment.js +55 -0
- package/dist/composed/extensions/mention-suggestion.d.ts +10 -0
- package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -0
- package/dist/composed/extensions/mention-suggestion.js +79 -0
- package/dist/composed/index.d.ts +3 -1
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +28 -26
- package/dist/composed/rich-text-editor.d.ts +19 -0
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +347 -176
- package/dist/composed/status-badge.d.ts +11 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +48 -20
- package/dist/hooks/use-color-mode.d.ts.map +1 -1
- package/dist/hooks/use-color-mode.js +8 -4
- package/dist/hooks/use-mobile.d.ts +5 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +40141 -0
- 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 +17 -0
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +2958 -0
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +17062 -0
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +9790 -0
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +20 -0
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +237 -0
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +234 -0
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +11 -0
- package/dist/primitives/_internal/react-arrow.js +8 -19
- package/dist/primitives/_internal/react-compose-refs.js +14 -14
- package/dist/primitives/_internal/react-context.js +41 -39
- package/dist/primitives/_internal/react-dismissable-layer.js +62 -90
- package/dist/primitives/_internal/react-popper.js +107 -169
- package/dist/primitives/_internal/react-portal.js +1 -1
- package/dist/primitives/_internal/react-primitive.js +1 -1
- package/dist/primitives/_internal/react-use-size.js +8 -8
- package/dist/primitives/react-slot.js +12 -12
- package/dist/shell/app-command-palette.d.ts +3 -1
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +35 -34
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +31 -31
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts +10 -0
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +129 -117
- package/dist/shell/top-bar.d.ts +20 -0
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +100 -70
- package/dist/tailwind/index.cjs +3 -0
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +3 -0
- package/dist/tokens/semantic.css +10 -1
- package/dist/ui/alert.js +42 -63
- package/dist/ui/avatar.js +20 -62
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +89 -112
- package/dist/ui/banner.js +12 -12
- package/dist/ui/button-group.js +14 -29
- package/dist/ui/button.js +64 -108
- package/dist/ui/card.js +18 -62
- package/dist/ui/checkbox.js +1 -21
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +1 -1
- package/dist/ui/color-input.d.ts +17 -0
- package/dist/ui/color-input.d.ts.map +1 -0
- package/dist/ui/color-input.js +88 -0
- package/dist/ui/combobox.d.ts +20 -11
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/dialog.js +9 -9
- package/dist/ui/form.js +14 -35
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +314 -312
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +31 -56
- package/dist/ui/label.js +1 -15
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +39 -35
- package/dist/ui/popover.js +6 -6
- package/dist/ui/separator.js +4 -19
- package/dist/ui/sheet.js +21 -21
- package/dist/ui/spinner.js +1 -36
- package/dist/ui/switch.js +1 -20
- package/dist/ui/tabs.js +20 -47
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +30 -24
- package/dist/ui/toast.js +18 -18
- package/dist/ui/tooltip.js +6 -17
- package/llms-full.txt +123 -13
- package/llms.txt +9 -6
- package/package.json +80 -11
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;AAEpE,QAAA,MAAM,aAAa;;8EAsBlB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAC/D,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,QAAA,MAAM,KAAK,qFA6CV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/input.js
CHANGED
|
@@ -1,59 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"input",
|
|
32
|
-
{
|
|
33
|
-
type: d,
|
|
34
|
-
className: m(
|
|
35
|
-
b({ size: l }),
|
|
36
|
-
r && "pl-ds-08",
|
|
37
|
-
s && "pr-ds-08",
|
|
38
|
-
e === "error" && "border-border-error focus-visible:ring-error",
|
|
39
|
-
e === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
40
|
-
e === "success" && "border-border-success focus-visible:ring-success",
|
|
41
|
-
t
|
|
42
|
-
),
|
|
43
|
-
"aria-invalid": e === "error" || void 0,
|
|
44
|
-
ref: a,
|
|
45
|
-
...n
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
return !r && !s ? o : /* @__PURE__ */ c("div", { className: "relative flex items-center w-full", children: [
|
|
49
|
-
r && /* @__PURE__ */ i("span", { className: "absolute left-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r }),
|
|
50
|
-
o,
|
|
51
|
-
s && /* @__PURE__ */ i("span", { className: "absolute right-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: s })
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
p.displayName = "Input";
|
|
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
|
+
});
|
|
30
|
+
y.displayName = "Input";
|
|
56
31
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
32
|
+
y as Input,
|
|
33
|
+
h as inputVariants
|
|
59
34
|
};
|
package/dist/ui/label.js
CHANGED
|
@@ -3,21 +3,7 @@ import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { Root as e } from "../primitives/react-label.js";
|
|
5
5
|
import { cn as n } from "./lib/utils.js";
|
|
6
|
-
const p = d.forwardRef(({ className:
|
|
7
|
-
e,
|
|
8
|
-
{
|
|
9
|
-
ref: m,
|
|
10
|
-
className: n(
|
|
11
|
-
"font-sans text-ds-md font-medium text-text-primary leading-none peer-disabled:opacity-[0.38]",
|
|
12
|
-
t
|
|
13
|
-
),
|
|
14
|
-
...o,
|
|
15
|
-
children: [
|
|
16
|
-
a,
|
|
17
|
-
r && /* @__PURE__ */ i("span", { className: "text-text-error ml-ds-01", "aria-hidden": "true", children: "*" })
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
));
|
|
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: "*" })] }));
|
|
21
7
|
p.displayName = e.displayName;
|
|
22
8
|
export {
|
|
23
9
|
p as Label
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IACjI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,QAAA,MAAM,WAAW,2FAuFhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/ui/number-input.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { IconMinus as
|
|
5
|
-
import { cn as
|
|
6
|
-
|
|
2
|
+
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import { IconMinus as y, IconPlus as v } from "@tabler/icons-react";
|
|
5
|
+
import { cn as E } from "./lib/utils.js";
|
|
6
|
+
import { useFormField as j } from "./form.js";
|
|
7
|
+
const h = w.forwardRef(
|
|
7
8
|
({
|
|
8
9
|
value: r = 0,
|
|
9
10
|
onValueChange: e,
|
|
10
|
-
min:
|
|
11
|
-
max:
|
|
12
|
-
step:
|
|
11
|
+
min: i = Number.MIN_SAFE_INTEGER,
|
|
12
|
+
max: o = Number.MAX_SAFE_INTEGER,
|
|
13
|
+
step: n = 1,
|
|
13
14
|
disabled: d = !1,
|
|
14
15
|
className: m,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
"aria-label": b,
|
|
17
|
+
...a
|
|
18
|
+
}, p) => {
|
|
19
|
+
const l = j(), f = b ?? (a.id || l.helperTextId ? void 0 : "Numeric value"), x = (s) => {
|
|
20
|
+
const t = parseInt(s.target.value, 10) || 0;
|
|
21
|
+
t >= i && t <= o && (e == null || e(t));
|
|
22
|
+
}, u = (s) => {
|
|
21
23
|
s.preventDefault();
|
|
22
|
-
const t = r +
|
|
23
|
-
t <=
|
|
24
|
-
},
|
|
24
|
+
const t = r + n;
|
|
25
|
+
t <= o && (e == null || e(t));
|
|
26
|
+
}, N = (s) => {
|
|
25
27
|
s.preventDefault();
|
|
26
|
-
const t = r -
|
|
27
|
-
t >=
|
|
28
|
+
const t = r - n;
|
|
29
|
+
t >= i && (e == null || e(t));
|
|
28
30
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ I(
|
|
30
32
|
"div",
|
|
31
33
|
{
|
|
32
|
-
className:
|
|
34
|
+
className: E(
|
|
33
35
|
"flex items-center justify-between rounded-ds-full border border-border",
|
|
34
36
|
m
|
|
35
37
|
),
|
|
@@ -38,37 +40,39 @@ const y = u.forwardRef(
|
|
|
38
40
|
"button",
|
|
39
41
|
{
|
|
40
42
|
type: "button",
|
|
41
|
-
onClick:
|
|
42
|
-
disabled: d || r <=
|
|
43
|
+
onClick: N,
|
|
44
|
+
disabled: d || r <= i,
|
|
43
45
|
"aria-label": "Decrease value",
|
|
44
46
|
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
|
|
45
|
-
children: /* @__PURE__ */ c(
|
|
47
|
+
children: /* @__PURE__ */ c(y, { className: "h-ico-sm w-ico-sm" })
|
|
46
48
|
}
|
|
47
49
|
),
|
|
48
50
|
/* @__PURE__ */ c(
|
|
49
51
|
"input",
|
|
50
52
|
{
|
|
51
|
-
ref:
|
|
53
|
+
ref: p,
|
|
52
54
|
type: "number",
|
|
53
55
|
value: r,
|
|
54
|
-
onChange:
|
|
55
|
-
min:
|
|
56
|
-
max:
|
|
57
|
-
step:
|
|
56
|
+
onChange: x,
|
|
57
|
+
min: i,
|
|
58
|
+
max: o,
|
|
59
|
+
step: n,
|
|
58
60
|
disabled: d,
|
|
61
|
+
"aria-label": f,
|
|
62
|
+
"aria-describedby": a["aria-describedby"] ?? l.helperTextId,
|
|
59
63
|
className: "bg-transparent text-ds-base font-semibold w-ds-sm-plus border-0 text-center text-text-secondary [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
60
|
-
...
|
|
64
|
+
...a
|
|
61
65
|
}
|
|
62
66
|
),
|
|
63
67
|
/* @__PURE__ */ c(
|
|
64
68
|
"button",
|
|
65
69
|
{
|
|
66
70
|
type: "button",
|
|
67
|
-
onClick:
|
|
68
|
-
disabled: d || r >=
|
|
71
|
+
onClick: u,
|
|
72
|
+
disabled: d || r >= o,
|
|
69
73
|
"aria-label": "Increase value",
|
|
70
74
|
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
|
|
71
|
-
children: /* @__PURE__ */ c(
|
|
75
|
+
children: /* @__PURE__ */ c(v, { className: "h-ico-sm w-ico-sm" })
|
|
72
76
|
}
|
|
73
77
|
)
|
|
74
78
|
]
|
|
@@ -76,7 +80,7 @@ const y = u.forwardRef(
|
|
|
76
80
|
);
|
|
77
81
|
}
|
|
78
82
|
);
|
|
79
|
-
|
|
83
|
+
h.displayName = "NumberInput";
|
|
80
84
|
export {
|
|
81
|
-
|
|
85
|
+
h as NumberInput
|
|
82
86
|
};
|
package/dist/ui/popover.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as n from "react";
|
|
4
4
|
import { Root as i, Anchor as m, Trigger as p, Portal as l, Content as t } from "../primitives/react-popover.js";
|
|
5
5
|
import { cn as c } from "./lib/utils.js";
|
|
6
|
-
const u = i,
|
|
6
|
+
const u = i, v = p, P = m, f = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, s) => /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(
|
|
7
7
|
t,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: s,
|
|
10
10
|
align: a,
|
|
11
11
|
sideOffset: r,
|
|
12
12
|
className: c(
|
|
13
|
-
"z-
|
|
13
|
+
"z-popover w-72 rounded-ds-lg border border-border bg-layer-01 p-ds-05 text-text-primary shadow-03 outline-none 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",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
16
|
...d
|
|
@@ -19,7 +19,7 @@ const u = i, P = p, v = m, f = s.forwardRef(({ className: e, align: a = "center"
|
|
|
19
19
|
f.displayName = t.displayName;
|
|
20
20
|
export {
|
|
21
21
|
u as Popover,
|
|
22
|
-
|
|
22
|
+
P as PopoverAnchor,
|
|
23
23
|
f as PopoverContent,
|
|
24
|
-
|
|
24
|
+
v as PopoverTrigger
|
|
25
25
|
};
|
package/dist/ui/separator.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import * as l from "react";
|
|
4
4
|
import { Root as o } from "../primitives/react-separator.js";
|
|
5
|
-
import { cn as
|
|
6
|
-
const f =
|
|
7
|
-
({ className: a, orientation: r = "horizontal", decorative: m = !0, ...t }, l) => /* @__PURE__ */ p(
|
|
8
|
-
o,
|
|
9
|
-
{
|
|
10
|
-
ref: l,
|
|
11
|
-
decorative: m,
|
|
12
|
-
orientation: r,
|
|
13
|
-
className: s(
|
|
14
|
-
"shrink-0 bg-border-subtle",
|
|
15
|
-
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
16
|
-
a
|
|
17
|
-
),
|
|
18
|
-
...t
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
);
|
|
5
|
+
import { cn as p } from "./lib/utils.js";
|
|
6
|
+
const f = l.forwardRef(({ className: a, orientation: r = "horizontal", decorative: t = !0, ...e }, m) => i(o, { ref: m, decorative: t, orientation: r, className: p("shrink-0 bg-border-subtle", r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a), ...e }));
|
|
22
7
|
f.displayName = o.displayName;
|
|
23
8
|
export {
|
|
24
9
|
f as Separator
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as d, jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { Root as
|
|
2
|
+
import { jsxs as d, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { Root as x, Close as i, Portal as b, Trigger as y, Content as l, Description as n, Overlay as m, Title as c } from "../primitives/react-dialog.js";
|
|
5
5
|
import { cva as u } from "class-variance-authority";
|
|
6
6
|
import { IconX as N } from "@tabler/icons-react";
|
|
7
7
|
import { cn as r } from "./lib/utils.js";
|
|
8
|
-
const O =
|
|
8
|
+
const O = x, P = y, V = i, g = b, f = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
9
9
|
m,
|
|
10
10
|
{
|
|
11
11
|
className: r(
|
|
@@ -13,7 +13,7 @@ const O = b, P = y, V = i, g = x, f = s.forwardRef(({ className: e, ...t }, a) =
|
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
15
|
...t,
|
|
16
|
-
ref:
|
|
16
|
+
ref: s
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
19
|
f.displayName = m.displayName;
|
|
@@ -32,8 +32,8 @@ const v = u(
|
|
|
32
32
|
side: "right"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
), w =
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
), w = o.forwardRef(({ side: e = "right", className: t, children: s, ...p }, h) => /* @__PURE__ */ d(g, { children: [
|
|
36
|
+
/* @__PURE__ */ a(f, {}),
|
|
37
37
|
/* @__PURE__ */ d(
|
|
38
38
|
l,
|
|
39
39
|
{
|
|
@@ -41,21 +41,21 @@ const v = u(
|
|
|
41
41
|
className: r(v({ side: e }), t),
|
|
42
42
|
...p,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ d(i, { className: "absolute right-ds-05 top-ds-05 min-h-
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ d(i, { 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-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:pointer-events-none", children: [
|
|
45
|
+
/* @__PURE__ */ a(N, { className: "h-ico-sm w-ico-sm" }),
|
|
46
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
47
47
|
] }),
|
|
48
|
-
|
|
48
|
+
s
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
] }));
|
|
53
53
|
w.displayName = l.displayName;
|
|
54
|
-
const S =
|
|
55
|
-
({ className: e, ...t },
|
|
54
|
+
const S = o.forwardRef(
|
|
55
|
+
({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
|
-
ref:
|
|
58
|
+
ref: s,
|
|
59
59
|
className: r(
|
|
60
60
|
"flex flex-col space-y-ds-03 text-center sm:text-left",
|
|
61
61
|
e
|
|
@@ -65,11 +65,11 @@ const S = s.forwardRef(
|
|
|
65
65
|
)
|
|
66
66
|
);
|
|
67
67
|
S.displayName = "SheetHeader";
|
|
68
|
-
const R =
|
|
69
|
-
({ className: e, ...t },
|
|
68
|
+
const R = o.forwardRef(
|
|
69
|
+
({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
ref:
|
|
72
|
+
ref: s,
|
|
73
73
|
className: r(
|
|
74
74
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
|
|
75
75
|
e
|
|
@@ -79,19 +79,19 @@ const R = s.forwardRef(
|
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
81
|
R.displayName = "SheetFooter";
|
|
82
|
-
const C =
|
|
82
|
+
const C = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
83
83
|
c,
|
|
84
84
|
{
|
|
85
|
-
ref:
|
|
85
|
+
ref: s,
|
|
86
86
|
className: r("text-ds-lg font-semibold text-text-primary", e),
|
|
87
87
|
...t
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
90
|
C.displayName = c.displayName;
|
|
91
|
-
const j =
|
|
91
|
+
const j = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
92
92
|
n,
|
|
93
93
|
{
|
|
94
|
-
ref:
|
|
94
|
+
ref: s,
|
|
95
95
|
className: r("text-ds-md text-text-secondary", e),
|
|
96
96
|
...t
|
|
97
97
|
}
|
package/dist/ui/spinner.js
CHANGED
|
@@ -5,42 +5,7 @@ const l = {
|
|
|
5
5
|
sm: "h-ico-sm w-ico-sm",
|
|
6
6
|
md: "h-ico-md w-ico-md",
|
|
7
7
|
lg: "h-ico-lg w-ico-lg"
|
|
8
|
-
}, t = a.forwardRef(
|
|
9
|
-
({ size: e = "md", className: s, ...i }, n) => /* @__PURE__ */ r("span", { role: "status", children: [
|
|
10
|
-
/* @__PURE__ */ r(
|
|
11
|
-
"svg",
|
|
12
|
-
{
|
|
13
|
-
ref: n,
|
|
14
|
-
className: c("animate-spin motion-reduce:animate-none", l[e], s),
|
|
15
|
-
viewBox: "0 0 24 24",
|
|
16
|
-
fill: "none",
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
...i,
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ o(
|
|
21
|
-
"circle",
|
|
22
|
-
{
|
|
23
|
-
cx: "12",
|
|
24
|
-
cy: "12",
|
|
25
|
-
r: "10",
|
|
26
|
-
stroke: "var(--color-border-subtle)",
|
|
27
|
-
strokeWidth: "4",
|
|
28
|
-
fill: "none"
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ o(
|
|
32
|
-
"path",
|
|
33
|
-
{
|
|
34
|
-
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
|
|
35
|
-
fill: "var(--color-interactive)"
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
42
|
-
] })
|
|
43
|
-
);
|
|
8
|
+
}, t = a.forwardRef(({ size: e = "md", className: s, ...i }, n) => r("span", { role: "status", children: [r("svg", { ref: n, className: c("animate-spin motion-reduce:animate-none", l[e], s), viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...i, children: [o("circle", { cx: "12", cy: "12", r: "10", stroke: "var(--color-border-subtle)", strokeWidth: "4", fill: "none" }), o("path", { d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z", fill: "var(--color-interactive)" })] }), o("span", { className: "sr-only", children: "Loading..." })] }));
|
|
44
9
|
t.displayName = "Spinner";
|
|
45
10
|
export {
|
|
46
11
|
t as Spinner
|
package/dist/ui/switch.js
CHANGED
|
@@ -3,26 +3,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { Root as o, Thumb as d } from "../primitives/react-switch.js";
|
|
5
5
|
import { cn as r } from "./lib/utils.js";
|
|
6
|
-
const c = n.forwardRef(({ className: t, error: a, ...s }, i) =>
|
|
7
|
-
o,
|
|
8
|
-
{
|
|
9
|
-
className: r(
|
|
10
|
-
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong",
|
|
11
|
-
a && "border-border-error data-[state=checked]:bg-error",
|
|
12
|
-
t
|
|
13
|
-
),
|
|
14
|
-
...s,
|
|
15
|
-
ref: i,
|
|
16
|
-
children: /* @__PURE__ */ e(
|
|
17
|
-
d,
|
|
18
|
-
{
|
|
19
|
-
className: r(
|
|
20
|
-
"pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
21
|
-
)
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
));
|
|
6
|
+
const c = n.forwardRef(({ className: t, error: a, ...s }, i) => e(o, { className: r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong", a && "border-border-error data-[state=checked]:bg-error", t), ...s, ref: i, children: e(d, { className: r("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
|
|
26
7
|
c.displayName = o.displayName;
|
|
27
8
|
export {
|
|
28
9
|
c as Switch
|
package/dist/ui/tabs.js
CHANGED
|
@@ -12,60 +12,33 @@ const R = m, v = r.createContext({ variant: "line" }), p = f("inline-flex items-
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
defaultVariants: { variant: "line" }
|
|
15
|
-
}), u = f(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"data-[state=active]:bg-layer-01 data-[state=active]:shadow-01 data-[state=active]:text-text-primary"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: { variant: "line" }
|
|
33
|
-
}
|
|
34
|
-
), x = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
35
|
-
const i = e ?? "line";
|
|
36
|
-
return /* @__PURE__ */ s(v.Provider, { value: { variant: i }, children: /* @__PURE__ */ s(
|
|
37
|
-
c,
|
|
38
|
-
{
|
|
39
|
-
ref: n,
|
|
40
|
-
className: o(p({ variant: i }), t),
|
|
41
|
-
...a
|
|
15
|
+
}), u = f("inline-flex items-center justify-center whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
line: [
|
|
19
|
+
"px-ds-05 py-ds-03 -mb-px border-b-2 border-transparent",
|
|
20
|
+
"text-text-secondary hover:text-text-primary",
|
|
21
|
+
"data-[state=active]:border-interactive data-[state=active]:text-interactive"
|
|
22
|
+
],
|
|
23
|
+
contained: [
|
|
24
|
+
"px-ds-05 py-ds-02b rounded-ds-md",
|
|
25
|
+
"text-text-secondary hover:text-text-primary",
|
|
26
|
+
"data-[state=active]:bg-layer-01 data-[state=active]:shadow-01 data-[state=active]:text-text-primary"
|
|
27
|
+
]
|
|
42
28
|
}
|
|
43
|
-
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: { variant: "line" }
|
|
31
|
+
}), x = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
32
|
+
const i = e ?? "line";
|
|
33
|
+
return s(v.Provider, { value: { variant: i }, children: s(c, { ref: n, className: o(p({ variant: i }), t), ...a }) });
|
|
44
34
|
});
|
|
45
35
|
x.displayName = c.displayName;
|
|
46
36
|
const g = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
47
37
|
const i = r.useContext(v), b = e ?? i.variant;
|
|
48
|
-
return
|
|
49
|
-
l,
|
|
50
|
-
{
|
|
51
|
-
ref: n,
|
|
52
|
-
className: o(u({ variant: b }), t),
|
|
53
|
-
...a
|
|
54
|
-
}
|
|
55
|
-
);
|
|
38
|
+
return s(l, { ref: n, className: o(u({ variant: b }), t), ...a });
|
|
56
39
|
});
|
|
57
40
|
g.displayName = l.displayName;
|
|
58
|
-
const y = r.forwardRef(({ className: t, ...e }, a) =>
|
|
59
|
-
d,
|
|
60
|
-
{
|
|
61
|
-
ref: a,
|
|
62
|
-
className: o(
|
|
63
|
-
"mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
|
|
64
|
-
t
|
|
65
|
-
),
|
|
66
|
-
...e
|
|
67
|
-
}
|
|
68
|
-
));
|
|
41
|
+
const y = r.forwardRef(({ className: t, ...e }, a) => s(d, { ref: a, className: o("mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2", t), ...e }));
|
|
69
42
|
y.displayName = d.displayName;
|
|
70
43
|
export {
|
|
71
44
|
R as Tabs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,QAAA,MAAM,gBAAgB;;8EAsBrB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC,EACrE,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,KAAK,CAAC,EAAE,UAAU,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,2FAyBb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA"}
|
package/dist/ui/textarea.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { cva as b } from "class-variance-authority";
|
|
5
|
+
import { cn as u } from "./lib/utils.js";
|
|
6
|
+
import { useFormField as f } from "./form.js";
|
|
7
|
+
const m = b(
|
|
7
8
|
[
|
|
8
9
|
"flex w-full font-sans resize-y",
|
|
9
10
|
"bg-field text-text-primary",
|
|
@@ -25,25 +26,30 @@ const l = t(
|
|
|
25
26
|
},
|
|
26
27
|
defaultVariants: { size: "md" }
|
|
27
28
|
}
|
|
28
|
-
),
|
|
29
|
-
({ className:
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
), x = c.forwardRef(
|
|
30
|
+
({ className: s, state: a, size: o, ...i }, t) => {
|
|
31
|
+
const r = f(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = i["aria-describedby"] ?? r.helperTextId, n = i["aria-required"] ?? r.required;
|
|
32
|
+
return /* @__PURE__ */ l(
|
|
33
|
+
"textarea",
|
|
34
|
+
{
|
|
35
|
+
"aria-invalid": e === "error" || void 0,
|
|
36
|
+
"aria-describedby": d,
|
|
37
|
+
"aria-required": n || void 0,
|
|
38
|
+
className: u(
|
|
39
|
+
m({ size: o }),
|
|
40
|
+
e === "error" && "border-border-error focus-visible:ring-error",
|
|
41
|
+
e === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
42
|
+
e === "success" && "border-border-success focus-visible:ring-success",
|
|
43
|
+
s
|
|
44
|
+
),
|
|
45
|
+
ref: t,
|
|
46
|
+
...i
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
44
50
|
);
|
|
45
|
-
|
|
51
|
+
x.displayName = "Textarea";
|
|
46
52
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
x as Textarea,
|
|
54
|
+
m as textareaVariants
|
|
49
55
|
};
|