@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.
- package/dist/_chunks/avatar.js +50 -0
- package/dist/_chunks/button.js +95 -0
- package/dist/_chunks/card.js +40 -0
- package/dist/_chunks/checkbox.js +14 -0
- package/dist/_chunks/form.js +27 -0
- package/dist/_chunks/primitives.js +6965 -0
- package/dist/_chunks/sidebar.js +592 -0
- package/dist/_chunks/spinner.js +34 -0
- package/dist/_chunks/tiptap.js +15254 -0
- package/dist/_chunks/tooltip.js +13 -0
- package/dist/_chunks/tree-view.js +304 -0
- package/dist/_chunks/use-calendar.js +990 -0
- package/dist/_chunks/utils.js +15 -0
- package/dist/_chunks/vendor.js +5823 -0
- package/dist/composed/avatar-group.js +20 -20
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/confirm-dialog.js +5 -5
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +6 -6
- package/dist/composed/date-picker/index.js +13 -0
- package/dist/composed/empty-state.js +10 -10
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +4 -4
- package/dist/composed/index.js +45 -53
- package/dist/composed/loading-skeleton.js +2 -2
- package/dist/composed/member-picker.js +5 -5
- package/dist/composed/page-header.js +4 -4
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +422 -209
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/simple-tooltip.js +6 -6
- package/dist/composed/status-badge.d.ts +1 -1
- package/dist/composed/status-badge.js +2 -2
- package/dist/shell/bottom-navbar.js +1 -1
- package/dist/shell/notification-center.js +2 -2
- package/dist/shell/notification-preferences.js +32 -33
- package/dist/shell/sidebar.js +24 -24
- package/dist/shell/top-bar.js +22 -22
- package/dist/ui/accordion.js +17 -17
- package/dist/ui/alert-dialog.js +29 -29
- package/dist/ui/alert.d.ts +2 -2
- package/dist/ui/alert.js +65 -44
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +11 -11
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +67 -25
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +115 -91
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.js +5 -5
- package/dist/ui/breadcrumb.js +14 -14
- package/dist/ui/button-group.js +30 -15
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +114 -71
- package/dist/ui/card.js +66 -22
- package/dist/ui/charts/index.js +1221 -18
- package/dist/ui/checkbox.js +25 -5
- package/dist/ui/chip.d.ts +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +5 -5
- package/dist/ui/color-input.js +11 -11
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +37 -37
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +2 -2
- package/dist/ui/dialog.js +33 -33
- package/dist/ui/dropdown-menu.js +60 -60
- package/dist/ui/file-upload.js +1 -1
- package/dist/ui/form.js +36 -15
- package/dist/ui/hover-card.js +7 -7
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +523 -325
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +14 -14
- package/dist/ui/input.js +56 -28
- package/dist/ui/label.js +18 -4
- package/dist/ui/lib/utils.js +4 -5
- package/dist/ui/link.js +9 -9
- package/dist/ui/menubar.js +81 -81
- package/dist/ui/navigation-menu.js +42 -42
- package/dist/ui/number-input.js +13 -13
- package/dist/ui/pagination.js +5 -5
- package/dist/ui/popover.js +9 -9
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.js +15 -15
- package/dist/ui/radio.js +10 -10
- package/dist/ui/search-input.js +5 -5
- package/dist/ui/segmented-control.js +91 -83
- package/dist/ui/select.js +52 -52
- package/dist/ui/separator.js +20 -5
- package/dist/ui/sheet.js +28 -28
- package/dist/ui/sidebar.js +36 -560
- package/dist/ui/skeleton.d.ts +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/slider.js +11 -11
- package/dist/ui/spinner.js +37 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stepper.js +15 -15
- package/dist/ui/switch.js +22 -3
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +59 -32
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.js +28 -28
- package/dist/ui/toggle-group.js +11 -11
- package/dist/ui/toggle.js +9 -9
- package/dist/ui/tooltip.js +17 -6
- package/dist/ui/transitions.js +68 -58
- package/dist/ui/tree-view/index.js +7 -0
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +7 -0
- package/package.json +656 -701
- package/dist/_virtual/client.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/composed/date-picker/calendar-grid.js +0 -194
- package/dist/composed/date-picker/date-picker.js +0 -124
- package/dist/composed/date-picker/date-range-picker.js +0 -167
- package/dist/composed/date-picker/date-time-picker.js +0 -193
- package/dist/composed/date-picker/month-picker.js +0 -53
- package/dist/composed/date-picker/presets.js +0 -84
- package/dist/composed/date-picker/time-picker.js +0 -181
- package/dist/composed/date-picker/use-calendar.js +0 -17
- package/dist/composed/date-picker/year-picker.js +0 -45
- package/dist/composed/extensions/emoji-suggestion.js +0 -119
- package/dist/composed/extensions/file-attachment.js +0 -55
- package/dist/composed/extensions/mention-suggestion.js +0 -79
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
- 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
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
- 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
- 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
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
- package/dist/primitives/_internal/number.js +0 -6
- package/dist/primitives/_internal/primitive.js +0 -9
- package/dist/primitives/_internal/react-arrow.js +0 -13
- package/dist/primitives/_internal/react-collection.js +0 -48
- package/dist/primitives/_internal/react-compose-refs.js +0 -29
- package/dist/primitives/_internal/react-context.js +0 -76
- package/dist/primitives/_internal/react-direction.js +0 -10
- package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
- package/dist/primitives/_internal/react-focus-guards.js +0 -17
- package/dist/primitives/_internal/react-focus-scope.js +0 -137
- package/dist/primitives/_internal/react-id.js +0 -14
- package/dist/primitives/_internal/react-popper.js +0 -137
- package/dist/primitives/_internal/react-portal.js +0 -16
- package/dist/primitives/_internal/react-presence.js +0 -71
- package/dist/primitives/_internal/react-primitive.js +0 -36
- package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
- package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
- package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
- package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
- package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
- package/dist/primitives/_internal/react-use-previous.js +0 -8
- package/dist/primitives/_internal/react-use-size.js +0 -27
- package/dist/primitives/react-accordion.js +0 -239
- package/dist/primitives/react-alert-dialog.js +0 -127
- package/dist/primitives/react-aspect-ratio.js +0 -43
- package/dist/primitives/react-avatar.js +0 -75
- package/dist/primitives/react-checkbox.js +0 -251
- package/dist/primitives/react-collapsible.js +0 -120
- package/dist/primitives/react-context-menu.js +0 -240
- package/dist/primitives/react-dialog.js +0 -262
- package/dist/primitives/react-dropdown-menu.js +0 -227
- package/dist/primitives/react-hover-card.js +0 -187
- package/dist/primitives/react-label.js +0 -20
- package/dist/primitives/react-menu.js +0 -652
- package/dist/primitives/react-menubar.js +0 -355
- package/dist/primitives/react-navigation-menu.js +0 -607
- package/dist/primitives/react-popover.js +0 -243
- package/dist/primitives/react-progress.js +0 -84
- package/dist/primitives/react-radio-group.js +0 -238
- package/dist/primitives/react-roving-focus.js +0 -183
- package/dist/primitives/react-select.js +0 -862
- package/dist/primitives/react-separator.js +0 -24
- package/dist/primitives/react-slider.js +0 -437
- package/dist/primitives/react-slot.js +0 -70
- package/dist/primitives/react-switch.js +0 -132
- package/dist/primitives/react-tabs.js +0 -163
- package/dist/primitives/react-toast.js +0 -446
- package/dist/primitives/react-toggle-group.js +0 -137
- package/dist/primitives/react-toggle.js +0 -33
- package/dist/primitives/react-tooltip.js +0 -338
- package/dist/primitives/react-visually-hidden.js +0 -32
- package/dist/ui/charts/_internal/animation.js +0 -18
- package/dist/ui/charts/_internal/axes.js +0 -42
- package/dist/ui/charts/_internal/colors.js +0 -21
- package/dist/ui/charts/_internal/grid-lines.js +0 -43
- package/dist/ui/charts/_internal/legend.js +0 -29
- package/dist/ui/charts/_internal/tooltip.js +0 -39
- package/dist/ui/charts/_internal/types.js +0 -10
- package/dist/ui/charts/area-chart.js +0 -245
- package/dist/ui/charts/bar-chart.js +0 -153
- package/dist/ui/charts/chart-container.js +0 -27
- package/dist/ui/charts/gauge-chart.js +0 -72
- package/dist/ui/charts/line-chart.js +0 -163
- package/dist/ui/charts/pie-chart.js +0 -132
- package/dist/ui/charts/radar-chart.js +0 -223
- package/dist/ui/charts/sparkline.js +0 -124
- package/dist/ui/lib/motion.js +0 -32
- package/dist/ui/lib/use-reduced-motion.js +0 -15
- package/dist/ui/lib/use-ripple.js +0 -14
- package/dist/ui/tree-view/tree-item.js +0 -139
- package/dist/ui/tree-view/tree-view.js +0 -140
- package/dist/ui/tree-view/use-tree.js +0 -38
package/dist/ui/spinner.js
CHANGED
|
@@ -1,11 +1,46 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { c } from "../_chunks/utils.js";
|
|
4
4
|
const l = {
|
|
5
5
|
sm: "h-ico-sm w-ico-sm",
|
|
6
6
|
md: "h-ico-md w-ico-md",
|
|
7
7
|
lg: "h-ico-lg w-ico-lg"
|
|
8
|
-
}, t = a.forwardRef(
|
|
8
|
+
}, t = a.forwardRef(
|
|
9
|
+
({ size: s = "md", className: e, ...i }, n) => /* @__PURE__ */ r("span", { role: "status", children: [
|
|
10
|
+
/* @__PURE__ */ r(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
ref: n,
|
|
14
|
+
className: c("animate-spin motion-reduce:animate-none", l[s], e),
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
...i,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ o(
|
|
21
|
+
"circle",
|
|
22
|
+
{
|
|
23
|
+
cx: "12",
|
|
24
|
+
cy: "12",
|
|
25
|
+
r: "10",
|
|
26
|
+
stroke: "var(--color-border-subtle)",
|
|
27
|
+
strokeWidth: "4",
|
|
28
|
+
fill: "none"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ o(
|
|
32
|
+
"path",
|
|
33
|
+
{
|
|
34
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",
|
|
35
|
+
fill: "var(--color-interactive)"
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Loading..." })
|
|
42
|
+
] })
|
|
43
|
+
);
|
|
9
44
|
t.displayName = "Spinner";
|
|
10
45
|
export {
|
|
11
46
|
t as Spinner
|
package/dist/ui/stack.js
CHANGED
package/dist/ui/stat-card.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { IconTrendingUp as h, IconTrendingDown as f, IconMinus as g } from "@tabler/icons-react";
|
|
4
4
|
import * as m from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { c as d } from "../_chunks/utils.js";
|
|
6
6
|
const w = m.forwardRef(
|
|
7
7
|
({ className: o, label: c, title: a, value: u, delta: e, icon: r, loading: b, ...t }, i) => {
|
|
8
8
|
const l = a ?? c ?? "";
|
package/dist/ui/stepper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as e, jsxs as x } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as i } from "../_chunks/utils.js";
|
|
5
5
|
const f = t.createContext({
|
|
6
6
|
activeStep: 0,
|
|
7
7
|
orientation: "horizontal"
|
|
@@ -19,36 +19,36 @@ const f = t.createContext({
|
|
|
19
19
|
),
|
|
20
20
|
role: "list",
|
|
21
21
|
...n,
|
|
22
|
-
children: d.map((s,
|
|
23
|
-
t.isValidElement(s) ? t.cloneElement(s, { _index:
|
|
24
|
-
|
|
22
|
+
children: d.map((s, a) => /* @__PURE__ */ x(t.Fragment, { children: [
|
|
23
|
+
t.isValidElement(s) ? t.cloneElement(s, { _index: a }) : s,
|
|
24
|
+
a < d.length - 1 && /* @__PURE__ */ e(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
className: i(
|
|
28
28
|
"flex-1",
|
|
29
29
|
r === "vertical" ? "ml-ds-04 w-ds-01 min-h-ds-05" : "h-ds-01 min-w-ds-05",
|
|
30
|
-
|
|
30
|
+
a < l ? "bg-interactive" : "bg-border"
|
|
31
31
|
),
|
|
32
32
|
"aria-hidden": "true"
|
|
33
33
|
}
|
|
34
34
|
)
|
|
35
|
-
] },
|
|
35
|
+
] }, a))
|
|
36
36
|
}
|
|
37
37
|
) });
|
|
38
38
|
}
|
|
39
39
|
), v = t.forwardRef(
|
|
40
40
|
({ label: l, description: r, icon: c, className: m, _index: n = 0, ...p }, d) => {
|
|
41
|
-
const { activeStep: s, orientation:
|
|
41
|
+
const { activeStep: s, orientation: a } = t.useContext(f), o = n < s ? "completed" : n === s ? "active" : "pending";
|
|
42
42
|
return /* @__PURE__ */ x(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
ref: d,
|
|
46
46
|
"data-step": "",
|
|
47
|
-
"data-state":
|
|
47
|
+
"data-state": o,
|
|
48
48
|
role: "listitem",
|
|
49
49
|
className: i(
|
|
50
50
|
"flex items-center gap-ds-03",
|
|
51
|
-
|
|
51
|
+
a === "vertical" && "py-ds-02",
|
|
52
52
|
m
|
|
53
53
|
),
|
|
54
54
|
...p,
|
|
@@ -58,11 +58,11 @@ const f = t.createContext({
|
|
|
58
58
|
{
|
|
59
59
|
className: i(
|
|
60
60
|
"flex-shrink-0 flex items-center justify-center w-ds-sm h-ds-sm rounded-ds-full text-ds-sm font-semibold transition-colors duration-fast-01",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
o === "completed" && "bg-interactive text-text-on-color",
|
|
62
|
+
o === "active" && "bg-interactive text-text-on-color",
|
|
63
|
+
o === "pending" && "bg-layer-02 text-text-tertiary border border-border"
|
|
64
64
|
),
|
|
65
|
-
children: c || (
|
|
65
|
+
children: c || (o === "completed" ? /* @__PURE__ */ e("svg", { className: "w-ico-sm h-ico-sm", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) }) : n + 1)
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
/* @__PURE__ */ x("div", { className: "flex flex-col", children: [
|
|
@@ -71,7 +71,7 @@ const f = t.createContext({
|
|
|
71
71
|
{
|
|
72
72
|
className: i(
|
|
73
73
|
"text-ds-md font-medium leading-ds-snug",
|
|
74
|
-
|
|
74
|
+
o === "pending" ? "text-text-tertiary" : "text-text-primary"
|
|
75
75
|
),
|
|
76
76
|
children: l
|
|
77
77
|
}
|
package/dist/ui/switch.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const c = n.forwardRef(({ className: t, error: a, ...s }, i) =>
|
|
4
|
+
import { bj as o, bk as d } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as r } from "../_chunks/utils.js";
|
|
6
|
+
const c = n.forwardRef(({ className: t, error: a, ...s }, i) => /* @__PURE__ */ e(
|
|
7
|
+
o,
|
|
8
|
+
{
|
|
9
|
+
className: r(
|
|
10
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong",
|
|
11
|
+
a && "border-border-error data-[state=checked]:bg-error",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
...s,
|
|
15
|
+
ref: i,
|
|
16
|
+
children: /* @__PURE__ */ e(
|
|
17
|
+
d,
|
|
18
|
+
{
|
|
19
|
+
className: r(
|
|
20
|
+
"pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
));
|
|
7
26
|
c.displayName = o.displayName;
|
|
8
27
|
export {
|
|
9
28
|
c as Switch
|
package/dist/ui/table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { c as r } from "../_chunks/utils.js";
|
|
4
4
|
const s = l.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ o(
|
|
5
5
|
"table",
|
|
6
6
|
{
|
package/dist/ui/tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { bl as d, bm as c, bn as l, bo as m } from "../_chunks/primitives.js";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
import { m as b } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as o } from "../_chunks/utils.js";
|
|
7
|
+
const C = m, f = s.createContext({ variant: "line" }), p = b("inline-flex items-center", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
line: "border-b border-border w-full gap-0",
|
|
@@ -12,36 +12,63 @@ const R = m, v = r.createContext({ variant: "line" }), p = f("inline-flex items-
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
defaultVariants: { variant: "line" }
|
|
15
|
-
}), u =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
}), u = b(
|
|
16
|
+
"inline-flex items-center justify-center whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
line: [
|
|
21
|
+
"px-ds-05 py-ds-03 -mb-px border-b-2 border-transparent",
|
|
22
|
+
"text-text-secondary hover:text-text-primary",
|
|
23
|
+
"data-[state=active]:border-interactive data-[state=active]:text-interactive"
|
|
24
|
+
],
|
|
25
|
+
contained: [
|
|
26
|
+
"px-ds-05 py-ds-02b rounded-ds-md",
|
|
27
|
+
"text-text-secondary hover:text-text-primary",
|
|
28
|
+
"data-[state=active]:bg-layer-01 data-[state=active]:shadow-01 data-[state=active]:text-text-primary"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: { variant: "line" }
|
|
33
|
+
}
|
|
34
|
+
), x = s.forwardRef(({ className: t, variant: a, ...e }, n) => {
|
|
35
|
+
const r = a ?? "line";
|
|
36
|
+
return /* @__PURE__ */ i(f.Provider, { value: { variant: r }, children: /* @__PURE__ */ i(
|
|
37
|
+
d,
|
|
38
|
+
{
|
|
39
|
+
ref: n,
|
|
40
|
+
className: o(p({ variant: r }), t),
|
|
41
|
+
...e
|
|
28
42
|
}
|
|
29
|
-
}
|
|
30
|
-
defaultVariants: { variant: "line" }
|
|
31
|
-
}), x = r.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
32
|
-
const i = e ?? "line";
|
|
33
|
-
return s(v.Provider, { value: { variant: i }, children: s(c, { ref: n, className: o(p({ variant: i }), t), ...a }) });
|
|
43
|
+
) });
|
|
34
44
|
});
|
|
35
|
-
x.displayName =
|
|
36
|
-
const g =
|
|
37
|
-
const
|
|
38
|
-
return
|
|
45
|
+
x.displayName = d.displayName;
|
|
46
|
+
const g = s.forwardRef(({ className: t, variant: a, ...e }, n) => {
|
|
47
|
+
const r = s.useContext(f), v = a ?? r.variant;
|
|
48
|
+
return /* @__PURE__ */ i(
|
|
49
|
+
c,
|
|
50
|
+
{
|
|
51
|
+
ref: n,
|
|
52
|
+
className: o(u({ variant: v }), t),
|
|
53
|
+
...e
|
|
54
|
+
}
|
|
55
|
+
);
|
|
39
56
|
});
|
|
40
|
-
g.displayName =
|
|
41
|
-
const y =
|
|
42
|
-
|
|
57
|
+
g.displayName = c.displayName;
|
|
58
|
+
const y = s.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ i(
|
|
59
|
+
l,
|
|
60
|
+
{
|
|
61
|
+
ref: e,
|
|
62
|
+
className: o(
|
|
63
|
+
"mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
|
|
64
|
+
t
|
|
65
|
+
),
|
|
66
|
+
...a
|
|
67
|
+
}
|
|
68
|
+
));
|
|
69
|
+
y.displayName = l.displayName;
|
|
43
70
|
export {
|
|
44
|
-
|
|
71
|
+
C as Tabs,
|
|
45
72
|
y as TabsContent,
|
|
46
73
|
x as TabsList,
|
|
47
74
|
g as TabsTrigger
|
package/dist/ui/text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { m as o } from "../_chunks/vendor.js";
|
|
3
|
+
import { c as d } from "../_chunks/utils.js";
|
|
4
4
|
const p = o("font-sans", {
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
package/dist/ui/textarea.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { m as b } from "../_chunks/vendor.js";
|
|
5
|
+
import { c as u } from "../_chunks/utils.js";
|
|
6
|
+
import { u as f } from "../_chunks/form.js";
|
|
7
7
|
const m = b(
|
|
8
8
|
[
|
|
9
9
|
"flex w-full font-sans resize-y",
|
|
@@ -27,8 +27,8 @@ const m = b(
|
|
|
27
27
|
defaultVariants: { size: "md" }
|
|
28
28
|
}
|
|
29
29
|
), x = c.forwardRef(
|
|
30
|
-
({ className:
|
|
31
|
-
const r = f(), e = a ?? (r.state === "helper" ? void 0 : r.state), d =
|
|
30
|
+
({ className: i, state: a, size: o, ...s }, t) => {
|
|
31
|
+
const r = f(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
|
|
32
32
|
return /* @__PURE__ */ l(
|
|
33
33
|
"textarea",
|
|
34
34
|
{
|
|
@@ -40,10 +40,10 @@ const m = b(
|
|
|
40
40
|
e === "error" && "border-border-error focus-visible:ring-error",
|
|
41
41
|
e === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
42
42
|
e === "success" && "border-border-success focus-visible:ring-success",
|
|
43
|
-
|
|
43
|
+
i
|
|
44
44
|
),
|
|
45
45
|
ref: t,
|
|
46
|
-
...
|
|
46
|
+
...s
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
package/dist/ui/toast.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as ToastPrimitives from '../primitives/react-toast';
|
|
|
5
5
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
6
6
|
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
7
7
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
8
|
-
color?: "error" | "
|
|
8
|
+
color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
10
10
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/ui/toast.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { aH as i, aI as d, aJ as n, aK as l, aL as c, aM as m, aN as p } from "../_chunks/primitives.js";
|
|
5
|
+
import { m as u } from "../_chunks/vendor.js";
|
|
6
6
|
import { IconX as x } from "@tabler/icons-react";
|
|
7
|
-
import {
|
|
8
|
-
const C = p, b =
|
|
9
|
-
|
|
7
|
+
import { c as r } from "../_chunks/utils.js";
|
|
8
|
+
const C = p, b = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
9
|
+
i,
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
|
-
className:
|
|
12
|
+
className: r(
|
|
13
13
|
"fixed top-0 z-toast flex max-h-screen w-full flex-col-reverse p-ds-05 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
16
|
...t
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
b.displayName =
|
|
19
|
+
b.displayName = i.displayName;
|
|
20
20
|
const v = u(
|
|
21
21
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-ds-03 overflow-hidden rounded-ds-md border p-ds-05 pr-ds-06 shadow-03 transition-all duration-moderate-02 data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
22
22
|
{
|
|
@@ -33,61 +33,61 @@ const v = u(
|
|
|
33
33
|
color: "neutral"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
), w =
|
|
37
|
-
|
|
36
|
+
), w = o.forwardRef(({ className: e, color: t, ...s }, f) => /* @__PURE__ */ a(
|
|
37
|
+
d,
|
|
38
38
|
{
|
|
39
39
|
ref: f,
|
|
40
40
|
role: "status",
|
|
41
41
|
"aria-live": "polite",
|
|
42
|
-
className:
|
|
42
|
+
className: r(v({ color: t }), e),
|
|
43
43
|
...s
|
|
44
44
|
}
|
|
45
45
|
));
|
|
46
|
-
w.displayName =
|
|
47
|
-
const y =
|
|
48
|
-
|
|
46
|
+
w.displayName = d.displayName;
|
|
47
|
+
const y = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
48
|
+
n,
|
|
49
49
|
{
|
|
50
50
|
ref: s,
|
|
51
|
-
className:
|
|
51
|
+
className: r(
|
|
52
52
|
"inline-flex h-ds-sm shrink-0 items-center justify-center rounded-ds-md border border-border bg-transparent px-ds-04 text-ds-md font-medium transition-colors hover:bg-layer-02 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38] group-[.destructive]:border-border-error group-[.destructive]:hover:bg-error-surface",
|
|
53
53
|
e
|
|
54
54
|
),
|
|
55
55
|
...t
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
|
-
y.displayName =
|
|
59
|
-
const g =
|
|
60
|
-
|
|
58
|
+
y.displayName = n.displayName;
|
|
59
|
+
const g = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
60
|
+
l,
|
|
61
61
|
{
|
|
62
62
|
ref: s,
|
|
63
|
-
className:
|
|
63
|
+
className: r(
|
|
64
64
|
"absolute right-ds-02 top-ds-02 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-md p-ds-02 text-text-secondary opacity-70 transition-opacity hover:text-text-primary hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
|
|
65
65
|
e
|
|
66
66
|
),
|
|
67
67
|
"toast-close": "",
|
|
68
68
|
...t,
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ a(x, { className: "h-ico-sm w-ico-sm" })
|
|
70
70
|
}
|
|
71
71
|
));
|
|
72
|
-
g.displayName =
|
|
73
|
-
const N =
|
|
72
|
+
g.displayName = l.displayName;
|
|
73
|
+
const N = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
74
74
|
c,
|
|
75
75
|
{
|
|
76
76
|
ref: s,
|
|
77
|
-
className:
|
|
77
|
+
className: r("text-ds-md font-semibold [&+div]:text-ds-sm", e),
|
|
78
78
|
...t
|
|
79
79
|
}
|
|
80
80
|
));
|
|
81
81
|
N.displayName = c.displayName;
|
|
82
|
-
const h =
|
|
83
|
-
|
|
82
|
+
const h = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
|
83
|
+
m,
|
|
84
84
|
{
|
|
85
85
|
ref: s,
|
|
86
|
-
className:
|
|
86
|
+
className: r("text-ds-md opacity-[0.9]", e),
|
|
87
87
|
...t
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
|
-
h.displayName =
|
|
90
|
+
h.displayName = m.displayName;
|
|
91
91
|
export {
|
|
92
92
|
w as Toast,
|
|
93
93
|
y as ToastAction,
|
package/dist/ui/toggle-group.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { aF as n, aG as l } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as p } from "../_chunks/utils.js";
|
|
6
6
|
import { toggleVariants as d } from "./toggle.js";
|
|
7
|
-
const c =
|
|
7
|
+
const c = a.createContext({
|
|
8
8
|
size: "md",
|
|
9
9
|
variant: "default"
|
|
10
|
-
}), f =
|
|
10
|
+
}), f = a.forwardRef(({ className: t, variant: o, size: r, children: s, ...i }, e) => /* @__PURE__ */ m(
|
|
11
11
|
n,
|
|
12
12
|
{
|
|
13
13
|
ref: e,
|
|
14
|
-
className: p("inline-flex items-center gap-ds-02",
|
|
14
|
+
className: p("inline-flex items-center gap-ds-02", t),
|
|
15
15
|
...i,
|
|
16
|
-
children: /* @__PURE__ */ m(c.Provider, { value: { variant:
|
|
16
|
+
children: /* @__PURE__ */ m(c.Provider, { value: { variant: o, size: r }, children: s })
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
19
|
f.displayName = n.displayName;
|
|
20
|
-
const g =
|
|
21
|
-
const e =
|
|
20
|
+
const g = a.forwardRef(({ className: t, variant: o, size: r, ...s }, i) => {
|
|
21
|
+
const e = a.useContext(c);
|
|
22
22
|
return /* @__PURE__ */ m(
|
|
23
23
|
l,
|
|
24
24
|
{
|
|
25
25
|
ref: i,
|
|
26
26
|
className: p(
|
|
27
27
|
d({
|
|
28
|
-
variant:
|
|
28
|
+
variant: o ?? e.variant,
|
|
29
29
|
size: r ?? e.size
|
|
30
30
|
}),
|
|
31
|
-
|
|
31
|
+
t
|
|
32
32
|
),
|
|
33
33
|
...s
|
|
34
34
|
}
|
package/dist/ui/toggle.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
4
|
+
import { aE as e } from "../_chunks/primitives.js";
|
|
5
|
+
import { m as n } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as m } from "../_chunks/utils.js";
|
|
7
|
+
const l = n(
|
|
8
8
|
"inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38] data-[state=on]:bg-interactive-subtle data-[state=on]:text-interactive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -23,16 +23,16 @@ const m = n(
|
|
|
23
23
|
size: "md"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
), f = d.forwardRef(({ className: t, variant: s, size:
|
|
26
|
+
), f = d.forwardRef(({ className: t, variant: s, size: a, ...i }, o) => /* @__PURE__ */ r(
|
|
27
27
|
e,
|
|
28
28
|
{
|
|
29
|
-
ref:
|
|
30
|
-
className: l(
|
|
31
|
-
...
|
|
29
|
+
ref: o,
|
|
30
|
+
className: m(l({ variant: s, size: a }), t),
|
|
31
|
+
...i
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
34
|
f.displayName = e.displayName;
|
|
35
35
|
export {
|
|
36
36
|
f as Toggle,
|
|
37
|
-
|
|
37
|
+
l as toggleVariants
|
|
38
38
|
};
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const u =
|
|
7
|
-
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { aR as r, aS as o, aP as n, aO as m, aQ as l } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as p } from "../_chunks/utils.js";
|
|
6
|
+
const u = m, T = n, h = l, f = d.forwardRef(({ className: a, sideOffset: e = 4, ...i }, s) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
7
|
+
o,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
sideOffset: e,
|
|
11
|
+
className: p(
|
|
12
|
+
"z-tooltip overflow-hidden rounded-ds-md bg-text-primary px-ds-04 py-ds-02b text-ds-sm text-text-inverse shadow-02 duration-fast-02 ease-productive-entrance animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
13
|
+
a
|
|
14
|
+
),
|
|
15
|
+
...i
|
|
16
|
+
}
|
|
17
|
+
) }));
|
|
18
|
+
f.displayName = o.displayName;
|
|
8
19
|
export {
|
|
9
20
|
T as Tooltip,
|
|
10
|
-
|
|
21
|
+
f as TooltipContent,
|
|
11
22
|
u as TooltipProvider,
|
|
12
23
|
h as TooltipTrigger
|
|
13
24
|
};
|