@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/alert-dialog.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const C =
|
|
7
|
-
|
|
2
|
+
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { O as l, J as g, K as d, M as r, N as n, Q as c, U as f, V as x, W as b } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as i } from "../_chunks/utils.js";
|
|
6
|
+
const C = x, T = b, y = g, m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
7
|
+
l,
|
|
8
8
|
{
|
|
9
9
|
ref: a,
|
|
10
10
|
className: i(
|
|
@@ -14,10 +14,10 @@ const C = g, z = y, b = x, m = s.forwardRef(({ className: e, ...t }, a) => /* @_
|
|
|
14
14
|
...t
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
m.displayName =
|
|
18
|
-
const u =
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
17
|
+
m.displayName = l.displayName;
|
|
18
|
+
const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ p(y, { children: [
|
|
19
|
+
/* @__PURE__ */ s(m, {}),
|
|
20
|
+
/* @__PURE__ */ s(
|
|
21
21
|
d,
|
|
22
22
|
{
|
|
23
23
|
ref: a,
|
|
@@ -30,8 +30,8 @@ const u = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ p(b, { chi
|
|
|
30
30
|
)
|
|
31
31
|
] }));
|
|
32
32
|
u.displayName = d.displayName;
|
|
33
|
-
const v =
|
|
34
|
-
({ className: e, ...t }, a) => /* @__PURE__ */
|
|
33
|
+
const v = o.forwardRef(
|
|
34
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
ref: a,
|
|
@@ -44,8 +44,8 @@ const v = s.forwardRef(
|
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
v.displayName = "AlertDialogHeader";
|
|
47
|
-
const N =
|
|
48
|
-
({ className: e, ...t }, a) => /* @__PURE__ */
|
|
47
|
+
const N = o.forwardRef(
|
|
48
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: a,
|
|
@@ -58,8 +58,8 @@ const N = s.forwardRef(
|
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
N.displayName = "AlertDialogFooter";
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const A = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
62
|
+
r,
|
|
63
63
|
{
|
|
64
64
|
ref: a,
|
|
65
65
|
className: i(
|
|
@@ -69,8 +69,8 @@ const D = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
69
69
|
...t
|
|
70
70
|
}
|
|
71
71
|
));
|
|
72
|
-
|
|
73
|
-
const
|
|
72
|
+
A.displayName = r.displayName;
|
|
73
|
+
const D = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
74
74
|
n,
|
|
75
75
|
{
|
|
76
76
|
ref: a,
|
|
@@ -78,9 +78,9 @@ const A = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
78
78
|
...t
|
|
79
79
|
}
|
|
80
80
|
));
|
|
81
|
-
|
|
82
|
-
const w =
|
|
83
|
-
|
|
81
|
+
D.displayName = n.displayName;
|
|
82
|
+
const w = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
83
|
+
c,
|
|
84
84
|
{
|
|
85
85
|
ref: a,
|
|
86
86
|
className: i(
|
|
@@ -90,9 +90,9 @@ const w = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
90
90
|
...t
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
|
-
w.displayName =
|
|
94
|
-
const R =
|
|
95
|
-
|
|
93
|
+
w.displayName = c.displayName;
|
|
94
|
+
const R = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
95
|
+
f,
|
|
96
96
|
{
|
|
97
97
|
ref: a,
|
|
98
98
|
className: i(
|
|
@@ -102,17 +102,17 @@ const R = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
102
102
|
...t
|
|
103
103
|
}
|
|
104
104
|
));
|
|
105
|
-
R.displayName =
|
|
105
|
+
R.displayName = f.displayName;
|
|
106
106
|
export {
|
|
107
107
|
C as AlertDialog,
|
|
108
108
|
w as AlertDialogAction,
|
|
109
109
|
R as AlertDialogCancel,
|
|
110
110
|
u as AlertDialogContent,
|
|
111
|
-
|
|
111
|
+
D as AlertDialogDescription,
|
|
112
112
|
N as AlertDialogFooter,
|
|
113
113
|
v as AlertDialogHeader,
|
|
114
114
|
m as AlertDialogOverlay,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
y as AlertDialogPortal,
|
|
116
|
+
A as AlertDialogTitle,
|
|
117
|
+
T as AlertDialogTrigger
|
|
118
118
|
};
|
package/dist/ui/alert.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const alertVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
6
|
-
color?: "error" | "
|
|
5
|
+
variant?: "filled" | "subtle" | "outline" | null | undefined;
|
|
6
|
+
color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
9
9
|
* Props for Alert — an inline message block with a colored icon, optional title, optional body,
|
package/dist/ui/alert.js
CHANGED
|
@@ -2,56 +2,77 @@
|
|
|
2
2
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { IconInfoCircle as s, IconAlertCircle as x, IconAlertTriangle as m, IconCircleCheck as u, IconX as f } from "@tabler/icons-react";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const N = v(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { m as v } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as p } from "../_chunks/utils.js";
|
|
7
|
+
const N = v(
|
|
8
|
+
"relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
subtle: "",
|
|
13
|
+
filled: "",
|
|
14
|
+
outline: ""
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
info: "",
|
|
18
|
+
success: "",
|
|
19
|
+
warning: "",
|
|
20
|
+
error: "",
|
|
21
|
+
neutral: ""
|
|
22
|
+
}
|
|
13
23
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{ variant: "
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{ variant: "outline", color: "success", className: "bg-transparent border-success-border text-success-text" },
|
|
38
|
-
{ variant: "outline", color: "warning", className: "bg-transparent border-warning-border text-warning-text" },
|
|
39
|
-
{ variant: "outline", color: "error", className: "bg-transparent border-error-border text-error-text" },
|
|
40
|
-
{ variant: "outline", color: "neutral", className: "bg-transparent border-border text-text-primary [&>svg]:text-text-secondary" }
|
|
41
|
-
],
|
|
42
|
-
defaultVariants: { variant: "subtle", color: "info" }
|
|
43
|
-
}), w = {
|
|
24
|
+
compoundVariants: [
|
|
25
|
+
// subtle (surface bg) — default, matches previous behavior
|
|
26
|
+
{ variant: "subtle", color: "info", className: "bg-info-surface border-info-border text-info-text" },
|
|
27
|
+
{ variant: "subtle", color: "success", className: "bg-success-surface border-success-border text-success-text" },
|
|
28
|
+
{ variant: "subtle", color: "warning", className: "bg-warning-surface border-warning-border text-warning-text" },
|
|
29
|
+
{ variant: "subtle", color: "error", className: "bg-error-surface border-error-border text-error-text" },
|
|
30
|
+
{ variant: "subtle", color: "neutral", className: "bg-layer-02 border-border text-text-primary [&>svg]:text-text-secondary" },
|
|
31
|
+
// filled (solid bg, white text)
|
|
32
|
+
{ variant: "filled", color: "info", className: "bg-info text-text-on-color border-transparent [&>svg]:text-text-on-color" },
|
|
33
|
+
{ variant: "filled", color: "success", className: "bg-success text-text-on-color border-transparent [&>svg]:text-text-on-color" },
|
|
34
|
+
{ variant: "filled", color: "warning", className: "bg-warning text-text-on-color border-transparent [&>svg]:text-text-on-color" },
|
|
35
|
+
{ variant: "filled", color: "error", className: "bg-error text-text-on-color border-transparent [&>svg]:text-text-on-color" },
|
|
36
|
+
{ variant: "filled", color: "neutral", className: "bg-layer-03 text-text-primary border-transparent [&>svg]:text-text-secondary" },
|
|
37
|
+
// outline (transparent bg, colored border)
|
|
38
|
+
{ variant: "outline", color: "info", className: "bg-transparent border-info-border text-info-text" },
|
|
39
|
+
{ variant: "outline", color: "success", className: "bg-transparent border-success-border text-success-text" },
|
|
40
|
+
{ variant: "outline", color: "warning", className: "bg-transparent border-warning-border text-warning-text" },
|
|
41
|
+
{ variant: "outline", color: "error", className: "bg-transparent border-error-border text-error-text" },
|
|
42
|
+
{ variant: "outline", color: "neutral", className: "bg-transparent border-border text-text-primary [&>svg]:text-text-secondary" }
|
|
43
|
+
],
|
|
44
|
+
defaultVariants: { variant: "subtle", color: "info" }
|
|
45
|
+
}
|
|
46
|
+
), w = {
|
|
44
47
|
info: s,
|
|
45
48
|
success: u,
|
|
46
49
|
warning: m,
|
|
47
50
|
error: x,
|
|
48
51
|
neutral: s
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
})
|
|
53
|
-
h
|
|
52
|
+
}, y = g.forwardRef(
|
|
53
|
+
({ className: n, variant: c = "subtle", color: e = "info", title: t, onDismiss: o, children: i, ...l }, d) => {
|
|
54
|
+
const b = w[e ?? "info"];
|
|
55
|
+
return /* @__PURE__ */ a("div", { ref: d, className: p(N({ variant: c, color: e }), n), role: "alert", ...l, children: [
|
|
56
|
+
/* @__PURE__ */ r(b, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
|
|
57
|
+
/* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: [
|
|
58
|
+
t && /* @__PURE__ */ r("p", { className: "text-ds-md font-semibold mb-ds-01", children: t }),
|
|
59
|
+
/* @__PURE__ */ r("div", { className: "text-ds-md opacity-[0.9]", children: i })
|
|
60
|
+
] }),
|
|
61
|
+
o && /* @__PURE__ */ r(
|
|
62
|
+
"button",
|
|
63
|
+
{
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: o,
|
|
66
|
+
className: "shrink-0 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",
|
|
67
|
+
"aria-label": "Dismiss",
|
|
68
|
+
children: /* @__PURE__ */ r(f, { className: "h-ico-sm w-ico-sm" })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
y.displayName = "Alert";
|
|
54
75
|
export {
|
|
55
|
-
|
|
76
|
+
y as Alert,
|
|
56
77
|
N as alertVariants
|
|
57
78
|
};
|
package/dist/ui/aspect-ratio.js
CHANGED
package/dist/ui/autocomplete.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as O, jsx as p } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as b } from "../_chunks/utils.js";
|
|
5
5
|
const T = t.forwardRef(
|
|
6
6
|
({
|
|
7
7
|
options: x,
|
|
@@ -13,7 +13,7 @@ const T = t.forwardRef(
|
|
|
13
13
|
className: R,
|
|
14
14
|
id: N
|
|
15
15
|
}, i) => {
|
|
16
|
-
const E = t.useId(), w = N || E, k = `${w}-listbox`, v = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c,
|
|
16
|
+
const E = t.useId(), w = N || E, k = `${w}-listbox`, v = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c, a] = t.useState(!1), [r, l] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
|
|
17
17
|
(e) => {
|
|
18
18
|
$.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
19
19
|
},
|
|
@@ -27,27 +27,27 @@ const T = t.forwardRef(
|
|
|
27
27
|
[x, f]
|
|
28
28
|
), m = t.useCallback(
|
|
29
29
|
(e) => {
|
|
30
|
-
g(e.label),
|
|
30
|
+
g(e.label), a(!1), l(-1), u == null || u(e);
|
|
31
31
|
},
|
|
32
32
|
[u]
|
|
33
33
|
), S = t.useCallback(
|
|
34
34
|
(e) => {
|
|
35
35
|
if (!c) {
|
|
36
|
-
(e.key === "ArrowDown" || e.key === "Enter") &&
|
|
36
|
+
(e.key === "ArrowDown" || e.key === "Enter") && a(!0);
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
switch (e.key) {
|
|
40
40
|
case "ArrowDown":
|
|
41
|
-
e.preventDefault(),
|
|
41
|
+
e.preventDefault(), l((s) => Math.min(s + 1, n.length - 1));
|
|
42
42
|
break;
|
|
43
43
|
case "ArrowUp":
|
|
44
|
-
e.preventDefault(),
|
|
44
|
+
e.preventDefault(), l((s) => Math.max(s - 1, 0));
|
|
45
45
|
break;
|
|
46
46
|
case "Enter":
|
|
47
47
|
e.preventDefault(), r >= 0 && n[r] && m(n[r]);
|
|
48
48
|
break;
|
|
49
49
|
case "Escape":
|
|
50
|
-
|
|
50
|
+
a(!1), l(-1);
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
},
|
|
@@ -74,11 +74,11 @@ const T = t.forwardRef(
|
|
|
74
74
|
h && "opacity-[var(--action-disabled-opacity,0.38)] cursor-not-allowed"
|
|
75
75
|
),
|
|
76
76
|
onChange: (e) => {
|
|
77
|
-
g(e.target.value),
|
|
77
|
+
g(e.target.value), a(!0), l(-1);
|
|
78
78
|
},
|
|
79
|
-
onFocus: () =>
|
|
79
|
+
onFocus: () => a(!0),
|
|
80
80
|
onBlur: () => {
|
|
81
|
-
y.current = setTimeout(() =>
|
|
81
|
+
y.current = setTimeout(() => a(!1), 150);
|
|
82
82
|
},
|
|
83
83
|
onKeyDown: S
|
|
84
84
|
}
|
|
@@ -109,7 +109,7 @@ const T = t.forwardRef(
|
|
|
109
109
|
onKeyDown: (d) => {
|
|
110
110
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), m(e));
|
|
111
111
|
},
|
|
112
|
-
onMouseEnter: () =>
|
|
112
|
+
onMouseEnter: () => l(s),
|
|
113
113
|
children: e.label
|
|
114
114
|
},
|
|
115
115
|
e.value
|
package/dist/ui/avatar.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import * as AvatarPrimitive from "../primitives/react-avatar";
|
|
5
5
|
export declare const avatarVariants: (props?: ({
|
|
6
6
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
shape?: "
|
|
7
|
+
shape?: "circle" | "square" | "rounded" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
10
10
|
/**
|
package/dist/ui/avatar.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
import { R as n, I as o, F as t } from "../_chunks/primitives.js";
|
|
5
|
+
import { m as u } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as r } from "../_chunks/utils.js";
|
|
7
|
+
const w = u(
|
|
8
|
+
"relative flex shrink-0 overflow-hidden",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
xs: "h-ds-xs w-ds-xs",
|
|
13
|
+
sm: "h-ds-sm w-ds-sm",
|
|
14
|
+
md: "h-ds-md w-ds-md",
|
|
15
|
+
lg: "h-ds-lg w-ds-lg",
|
|
16
|
+
xl: "h-ds-xl w-ds-xl"
|
|
17
|
+
},
|
|
18
|
+
shape: {
|
|
19
|
+
circle: "rounded-ds-full",
|
|
20
|
+
square: "rounded-ds-none",
|
|
21
|
+
rounded: "rounded-ds-md"
|
|
22
|
+
}
|
|
15
23
|
},
|
|
16
|
-
shape:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
rounded: "rounded-ds-md"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: { size: "md", shape: "circle" }
|
|
23
|
-
}), w = {
|
|
24
|
+
defaultVariants: { size: "md", shape: "circle" }
|
|
25
|
+
}
|
|
26
|
+
), h = {
|
|
24
27
|
online: "bg-success",
|
|
25
28
|
offline: "bg-layer-03",
|
|
26
29
|
busy: "bg-error",
|
|
@@ -36,15 +39,54 @@ const h = u("relative flex shrink-0 overflow-hidden", {
|
|
|
36
39
|
md: "h-ds-03 w-ds-03",
|
|
37
40
|
lg: "h-[12px] w-[12px]",
|
|
38
41
|
xl: "h-ds-04 w-ds-04"
|
|
39
|
-
}, g = i.forwardRef(({ className: a, size: s, shape: e, status: d, children: m, ...
|
|
42
|
+
}, g = i.forwardRef(({ className: a, size: s, shape: e, status: d, children: m, ...c }, f) => /* @__PURE__ */ p("span", { className: "relative inline-flex shrink-0", children: [
|
|
43
|
+
/* @__PURE__ */ l(
|
|
44
|
+
n,
|
|
45
|
+
{
|
|
46
|
+
ref: f,
|
|
47
|
+
className: r(w({ size: s, shape: e }), a),
|
|
48
|
+
...c,
|
|
49
|
+
children: m
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
d && /* @__PURE__ */ l(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
className: r(
|
|
56
|
+
"absolute bottom-0 right-0 rounded-ds-full ring-2 ring-layer-01",
|
|
57
|
+
h[d],
|
|
58
|
+
b[s ?? "md"]
|
|
59
|
+
),
|
|
60
|
+
role: "img",
|
|
61
|
+
"aria-label": x[d]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] }));
|
|
40
65
|
g.displayName = n.displayName;
|
|
41
|
-
const y = i.forwardRef(({ className: a, ...s }, e) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
66
|
+
const y = i.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ l(
|
|
67
|
+
o,
|
|
68
|
+
{
|
|
69
|
+
ref: e,
|
|
70
|
+
className: r("aspect-square h-full w-full", a),
|
|
71
|
+
...s
|
|
72
|
+
}
|
|
73
|
+
));
|
|
74
|
+
y.displayName = o.displayName;
|
|
75
|
+
const v = i.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ l(
|
|
76
|
+
t,
|
|
77
|
+
{
|
|
78
|
+
ref: e,
|
|
79
|
+
className: r(
|
|
80
|
+
"flex h-full w-full items-center justify-center rounded-ds-full bg-interactive-subtle text-interactive",
|
|
81
|
+
a
|
|
82
|
+
),
|
|
83
|
+
...s
|
|
84
|
+
}
|
|
85
|
+
));
|
|
86
|
+
v.displayName = t.displayName;
|
|
45
87
|
export {
|
|
46
88
|
g as Avatar,
|
|
47
89
|
v as AvatarFallback,
|
|
48
90
|
y as AvatarImage,
|
|
49
|
-
|
|
91
|
+
w as avatarVariants
|
|
50
92
|
};
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
|
-
variant?: "solid" | "
|
|
6
|
-
color?: "accent" | "default" | "error" | "
|
|
5
|
+
variant?: "solid" | "subtle" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
6
|
+
color?: "accent" | "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "brand" | "amber" | "slate" | "emerald" | null | undefined;
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
/**
|