@devalok/shilp-sutra 0.8.4 → 0.9.1
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-client.js +1835 -0
- package/dist/_chunks/vendor-utils.js +3995 -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 +2 -2
- 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 +2 -2
- 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 +7 -7
- 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 +7 -7
- 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 -706
- 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/dialog.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aa as r, ab as g, ac as i, ad as n, ae as c, af as m, ag as x, ah as y } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconX as N } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
const F =
|
|
8
|
-
|
|
6
|
+
import { c as l } from "../_chunks/utils.js";
|
|
7
|
+
const F = x, H = y, u = g, O = n, f = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
8
|
+
r,
|
|
9
9
|
{
|
|
10
10
|
ref: t,
|
|
11
11
|
className: l(
|
|
12
12
|
"fixed inset-0 z-overlay bg-overlay duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
13
|
-
|
|
13
|
+
a
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...e
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
|
-
f.displayName =
|
|
19
|
-
const D = s.forwardRef(({ className:
|
|
18
|
+
f.displayName = r.displayName;
|
|
19
|
+
const D = s.forwardRef(({ className: a, children: e, ...t }, p) => /* @__PURE__ */ d(u, { children: [
|
|
20
20
|
/* @__PURE__ */ o(f, {}),
|
|
21
21
|
/* @__PURE__ */ d(
|
|
22
22
|
i,
|
|
@@ -24,12 +24,12 @@ const D = s.forwardRef(({ className: e, children: a, ...t }, p) => /* @__PURE__
|
|
|
24
24
|
ref: p,
|
|
25
25
|
className: l(
|
|
26
26
|
"fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-ds-05 border border-border bg-layer-01 p-ds-06 shadow-04 rounded-ds-xl duration-moderate-02 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
27
|
-
|
|
27
|
+
a
|
|
28
28
|
),
|
|
29
29
|
...t,
|
|
30
30
|
children: [
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */ d(
|
|
31
|
+
e,
|
|
32
|
+
/* @__PURE__ */ d(n, { 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: [
|
|
33
33
|
/* @__PURE__ */ o(N, { className: "h-ico-lg w-ico-lg" }),
|
|
34
34
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
35
35
|
] })
|
|
@@ -38,74 +38,74 @@ const D = s.forwardRef(({ className: e, children: a, ...t }, p) => /* @__PURE__
|
|
|
38
38
|
)
|
|
39
39
|
] }));
|
|
40
40
|
D.displayName = i.displayName;
|
|
41
|
-
const w = s.forwardRef(({ className:
|
|
41
|
+
const w = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
42
42
|
i,
|
|
43
43
|
{
|
|
44
44
|
ref: t,
|
|
45
|
-
className: l(
|
|
46
|
-
...
|
|
45
|
+
className: l(a),
|
|
46
|
+
...e
|
|
47
47
|
}
|
|
48
48
|
));
|
|
49
49
|
w.displayName = "DialogContentRaw";
|
|
50
50
|
const b = s.forwardRef(
|
|
51
|
-
({ className:
|
|
51
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
ref: t,
|
|
55
55
|
className: l(
|
|
56
56
|
"flex flex-col space-y-ds-02b text-center sm:text-left",
|
|
57
|
-
|
|
57
|
+
a
|
|
58
58
|
),
|
|
59
|
-
...
|
|
59
|
+
...e
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
);
|
|
63
63
|
b.displayName = "DialogHeader";
|
|
64
64
|
const v = s.forwardRef(
|
|
65
|
-
({ className:
|
|
65
|
+
({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
68
|
ref: t,
|
|
69
69
|
className: l(
|
|
70
70
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
|
|
71
|
-
|
|
71
|
+
a
|
|
72
72
|
),
|
|
73
|
-
...
|
|
73
|
+
...e
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
);
|
|
77
77
|
v.displayName = "DialogFooter";
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const h = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
79
|
+
c,
|
|
80
80
|
{
|
|
81
81
|
ref: t,
|
|
82
82
|
className: l(
|
|
83
83
|
"text-ds-lg font-semibold",
|
|
84
|
-
|
|
84
|
+
a
|
|
85
85
|
),
|
|
86
|
-
...
|
|
86
|
+
...e
|
|
87
87
|
}
|
|
88
88
|
));
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
89
|
+
h.displayName = c.displayName;
|
|
90
|
+
const R = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
91
|
+
m,
|
|
92
92
|
{
|
|
93
93
|
ref: t,
|
|
94
|
-
className: l("text-ds-md text-text-secondary",
|
|
95
|
-
...
|
|
94
|
+
className: l("text-ds-md text-text-secondary", a),
|
|
95
|
+
...e
|
|
96
96
|
}
|
|
97
97
|
));
|
|
98
|
-
|
|
98
|
+
R.displayName = m.displayName;
|
|
99
99
|
export {
|
|
100
100
|
F as Dialog,
|
|
101
101
|
O as DialogClose,
|
|
102
102
|
D as DialogContent,
|
|
103
103
|
w as DialogContentRaw,
|
|
104
|
-
|
|
104
|
+
R as DialogDescription,
|
|
105
105
|
v as DialogFooter,
|
|
106
106
|
b as DialogHeader,
|
|
107
107
|
f as DialogOverlay,
|
|
108
108
|
u as DialogPortal,
|
|
109
|
-
|
|
109
|
+
h as DialogTitle,
|
|
110
110
|
H as DialogTrigger
|
|
111
111
|
};
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, jsx as
|
|
2
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
import { X as l, Y as m, Z as c, _ as p, $ as u, a0 as f, a1 as b, a2 as y, a3 as w, a4 as x, a5 as h, a6 as g, a7 as N, a8 as v, a9 as D } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronRight as M, IconCheck as R, IconCircle as I } from "@tabler/icons-react";
|
|
6
|
+
import { c as d } from "../_chunks/utils.js";
|
|
7
|
+
const $ = h, q = g, A = N, B = c, E = D, F = v, S = r.forwardRef(({ className: e, inset: a, children: t, ...s }, n) => /* @__PURE__ */ i(
|
|
8
|
+
l,
|
|
9
9
|
{
|
|
10
10
|
ref: n,
|
|
11
11
|
className: d(
|
|
12
12
|
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-layer-02 data-[state=open]:bg-layer-02 [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
|
|
13
|
-
|
|
13
|
+
a && "pl-ds-07",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
16
|
...s,
|
|
17
17
|
children: [
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
18
|
+
t,
|
|
19
|
+
/* @__PURE__ */ o(M, { className: "ml-auto" })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
S.displayName =
|
|
24
|
-
const C = r.forwardRef(({ className: e, ...
|
|
25
|
-
|
|
23
|
+
S.displayName = l.displayName;
|
|
24
|
+
const C = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
25
|
+
m,
|
|
26
26
|
{
|
|
27
|
-
ref:
|
|
27
|
+
ref: t,
|
|
28
28
|
className: d(
|
|
29
29
|
"z-dropdown min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 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",
|
|
30
30
|
e
|
|
31
31
|
),
|
|
32
|
-
...
|
|
32
|
+
...a
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
|
-
C.displayName =
|
|
36
|
-
const
|
|
35
|
+
C.displayName = m.displayName;
|
|
36
|
+
const z = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, s) => /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
|
|
37
37
|
p,
|
|
38
38
|
{
|
|
39
39
|
ref: s,
|
|
40
|
-
sideOffset:
|
|
40
|
+
sideOffset: a,
|
|
41
41
|
className: d(
|
|
42
42
|
"z-dropdown min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03",
|
|
43
43
|
"duration-moderate-01 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",
|
|
44
44
|
e
|
|
45
45
|
),
|
|
46
|
-
...
|
|
46
|
+
...t
|
|
47
47
|
}
|
|
48
48
|
) }));
|
|
49
|
-
|
|
50
|
-
const
|
|
49
|
+
z.displayName = p.displayName;
|
|
50
|
+
const k = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */ o(
|
|
51
51
|
u,
|
|
52
52
|
{
|
|
53
53
|
ref: s,
|
|
54
54
|
className: d(
|
|
55
55
|
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38] [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
56
|
-
|
|
56
|
+
a && "pl-ds-07",
|
|
57
57
|
e
|
|
58
58
|
),
|
|
59
|
-
...
|
|
59
|
+
...t
|
|
60
60
|
}
|
|
61
61
|
));
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
k.displayName = u.displayName;
|
|
63
|
+
const _ = r.forwardRef(({ className: e, children: a, checked: t, ...s }, n) => /* @__PURE__ */ i(
|
|
64
|
+
f,
|
|
65
65
|
{
|
|
66
66
|
ref: n,
|
|
67
67
|
className: d(
|
|
68
68
|
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
|
|
69
69
|
e
|
|
70
70
|
),
|
|
71
|
-
checked:
|
|
71
|
+
checked: t,
|
|
72
72
|
...s,
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
74
|
+
/* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(R, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
75
|
+
a
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
));
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
79
|
+
_.displayName = f.displayName;
|
|
80
|
+
const j = r.forwardRef(({ className: e, children: a, ...t }, s) => /* @__PURE__ */ i(
|
|
81
|
+
y,
|
|
82
82
|
{
|
|
83
83
|
ref: s,
|
|
84
84
|
className: d(
|
|
85
85
|
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
|
|
86
86
|
e
|
|
87
87
|
),
|
|
88
|
-
...
|
|
88
|
+
...t,
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
90
|
+
/* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(I, { className: "h-2 w-2 fill-current" }) }) }),
|
|
91
|
+
a
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
));
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
j.displayName = y.displayName;
|
|
96
|
+
const G = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */ o(
|
|
97
|
+
w,
|
|
98
98
|
{
|
|
99
99
|
ref: s,
|
|
100
100
|
className: d(
|
|
101
101
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
102
|
-
|
|
102
|
+
a && "pl-ds-07",
|
|
103
103
|
e
|
|
104
104
|
),
|
|
105
|
-
...
|
|
105
|
+
...t
|
|
106
106
|
}
|
|
107
107
|
));
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
108
|
+
G.displayName = w.displayName;
|
|
109
|
+
const T = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
110
|
+
x,
|
|
111
111
|
{
|
|
112
|
-
ref:
|
|
112
|
+
ref: t,
|
|
113
113
|
className: d("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
|
|
114
|
-
...
|
|
114
|
+
...a
|
|
115
115
|
}
|
|
116
116
|
));
|
|
117
|
-
|
|
117
|
+
T.displayName = x.displayName;
|
|
118
118
|
const L = ({
|
|
119
119
|
className: e,
|
|
120
|
-
...
|
|
121
|
-
}) => /* @__PURE__ */
|
|
120
|
+
...a
|
|
121
|
+
}) => /* @__PURE__ */ o(
|
|
122
122
|
"span",
|
|
123
123
|
{
|
|
124
124
|
className: d("ml-auto text-ds-sm text-text-placeholder", e),
|
|
125
|
-
...
|
|
125
|
+
...a
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
128
|
L.displayName = "DropdownMenuShortcut";
|
|
129
129
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
$ as DropdownMenu,
|
|
131
|
+
_ as DropdownMenuCheckboxItem,
|
|
132
|
+
z as DropdownMenuContent,
|
|
133
|
+
A as DropdownMenuGroup,
|
|
134
|
+
k as DropdownMenuItem,
|
|
135
|
+
G as DropdownMenuLabel,
|
|
136
|
+
B as DropdownMenuPortal,
|
|
137
|
+
F as DropdownMenuRadioGroup,
|
|
138
|
+
j as DropdownMenuRadioItem,
|
|
139
|
+
T as DropdownMenuSeparator,
|
|
140
140
|
L as DropdownMenuShortcut,
|
|
141
|
-
|
|
141
|
+
E as DropdownMenuSub,
|
|
142
142
|
C as DropdownMenuSubContent,
|
|
143
143
|
S as DropdownMenuSubTrigger,
|
|
144
|
-
|
|
144
|
+
q as DropdownMenuTrigger
|
|
145
145
|
};
|
package/dist/ui/file-upload.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { IconLoader2 as R, IconPaperclip as _, IconUpload as S } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
5
|
+
import { c as h } from "../_chunks/utils.js";
|
|
6
6
|
const V = 10 * 1024 * 1024;
|
|
7
7
|
function X(t, l) {
|
|
8
8
|
return l.split(",").map((o) => o.trim()).some((o) => o.startsWith(".") ? t.name.toLowerCase().endsWith(o.toLowerCase()) : o.endsWith("/*") ? t.type.startsWith(o.slice(0, o.indexOf("/") + 1)) : t.type === o);
|
package/dist/ui/form.js
CHANGED
|
@@ -1,28 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import {
|
|
5
|
-
const x = e.createContext({}), m = e.forwardRef(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
4
|
+
import { c as i } from "../_chunks/utils.js";
|
|
5
|
+
const x = e.createContext({}), m = e.forwardRef(
|
|
6
|
+
({ className: o, helperTextId: s, state: l = "helper", required: a, children: n, ...t }, r) => {
|
|
7
|
+
const c = e.useId(), p = s || `${c}-helper`;
|
|
8
|
+
return /* @__PURE__ */ d(x.Provider, { value: { state: l, helperTextId: p, required: a }, children: /* @__PURE__ */ d(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
ref: r,
|
|
12
|
+
className: i("flex flex-col gap-ds-02", o),
|
|
13
|
+
...t,
|
|
14
|
+
children: n
|
|
15
|
+
}
|
|
16
|
+
) });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
9
19
|
m.displayName = "FormField";
|
|
10
|
-
const
|
|
20
|
+
const u = {
|
|
11
21
|
helper: "text-text-helper",
|
|
12
22
|
error: "text-text-error",
|
|
13
23
|
warning: "text-text-warning",
|
|
14
24
|
success: "text-text-success"
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
}, f = e.forwardRef(
|
|
26
|
+
({ className: o, id: s, state: l, ...a }, n) => {
|
|
27
|
+
const t = e.useContext(x), r = l ?? t.state ?? "helper", c = s ?? t.helperTextId;
|
|
28
|
+
return /* @__PURE__ */ d(
|
|
29
|
+
"p",
|
|
30
|
+
{
|
|
31
|
+
ref: n,
|
|
32
|
+
id: c,
|
|
33
|
+
role: r === "error" ? "alert" : void 0,
|
|
34
|
+
className: i("text-ds-sm", u[r], o),
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
f.displayName = "FormHelperText";
|
|
41
|
+
function v() {
|
|
21
42
|
return e.useContext(x);
|
|
22
43
|
}
|
|
23
44
|
export {
|
|
24
45
|
m as FormField,
|
|
25
46
|
x as FormFieldContext,
|
|
26
|
-
|
|
27
|
-
|
|
47
|
+
f as FormHelperText,
|
|
48
|
+
v as useFormField
|
|
28
49
|
};
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
4
|
+
import { z as n, A as o, B as m, D as l } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as f } from "../_chunks/utils.js";
|
|
6
|
+
const u = m, C = l, p = i.forwardRef(({ className: a, align: e = "center", sideOffset: d = 4, ...r }, s) => /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
7
7
|
o,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
10
|
-
align:
|
|
10
|
+
align: e,
|
|
11
11
|
sideOffset: d,
|
|
12
12
|
className: f(
|
|
13
13
|
"z-dropdown w-64 rounded-ds-lg border border-border bg-layer-01 p-ds-05 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
|
+
a
|
|
15
15
|
),
|
|
16
16
|
...r
|
|
17
17
|
}
|
|
18
18
|
) }));
|
|
19
19
|
p.displayName = o.displayName;
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
u as HoverCard,
|
|
22
22
|
p as HoverCardContent,
|
|
23
|
-
|
|
23
|
+
C as HoverCardTrigger
|
|
24
24
|
};
|
package/dist/ui/icon-button.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 m } from "react/jsx-runtime";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { B as a } from "../_chunks/button.js";
|
|
5
|
+
import { c as d } from "../_chunks/utils.js";
|
|
6
6
|
const l = {
|
|
7
7
|
sm: "icon-sm",
|
|
8
8
|
md: "icon-md",
|
|
9
9
|
lg: "icon-lg"
|
|
10
|
-
}, f =
|
|
11
|
-
({ icon: o, shape: r = "square", size: n = "md", className: t, loading:
|
|
10
|
+
}, f = e.forwardRef(
|
|
11
|
+
({ icon: o, shape: r = "square", size: n = "md", className: t, loading: s, ...c }, i) => /* @__PURE__ */ m(
|
|
12
12
|
a,
|
|
13
13
|
{
|
|
14
|
-
ref:
|
|
14
|
+
ref: i,
|
|
15
15
|
size: l[n],
|
|
16
16
|
className: d(r === "circle" && "rounded-ds-full", t),
|
|
17
|
-
loading:
|
|
17
|
+
loading: s,
|
|
18
18
|
loadingPosition: "center",
|
|
19
|
-
...
|
|
19
|
+
...c,
|
|
20
20
|
children: o
|
|
21
21
|
}
|
|
22
22
|
)
|