@devalok/shilp-sutra 0.8.4 → 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 -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/input-otp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
3
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
4
4
|
value?: string;
|
|
5
5
|
onChange?: (newValue: string) => unknown;
|
|
6
6
|
maxLength: number;
|
|
@@ -13,7 +13,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
13
13
|
} & {
|
|
14
14
|
render: (props: import('input-otp').RenderProps) => React.ReactNode;
|
|
15
15
|
children?: never;
|
|
16
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
16
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
17
17
|
value?: string;
|
|
18
18
|
onChange?: (newValue: string) => unknown;
|
|
19
19
|
maxLength: number;
|
package/dist/ui/input-otp.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { OTPInput as
|
|
2
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { OTPInput as m, OTPInputContext as u } from "input-otp";
|
|
5
5
|
import { IconMinus as f } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
const x =
|
|
8
|
-
|
|
6
|
+
import { c as o } from "../_chunks/utils.js";
|
|
7
|
+
const x = a.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
|
|
8
|
+
m,
|
|
9
9
|
{
|
|
10
10
|
ref: n,
|
|
11
|
-
containerClassName:
|
|
11
|
+
containerClassName: o(
|
|
12
12
|
"flex items-center gap-ds-03 has-[:disabled]:opacity-[0.38]",
|
|
13
13
|
t
|
|
14
14
|
),
|
|
15
|
-
className:
|
|
15
|
+
className: o("disabled:cursor-not-allowed", e),
|
|
16
16
|
...s
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
19
|
x.displayName = "InputOTP";
|
|
20
|
-
const b =
|
|
20
|
+
const b = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: o("flex items-center", e), ...t }));
|
|
21
21
|
b.displayName = "InputOTPGroup";
|
|
22
|
-
const I =
|
|
23
|
-
const i =
|
|
24
|
-
return /* @__PURE__ */
|
|
22
|
+
const I = a.forwardRef(({ index: e, className: t, ...s }, n) => {
|
|
23
|
+
const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
|
|
24
|
+
return /* @__PURE__ */ c(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
ref: n,
|
|
28
|
-
className:
|
|
28
|
+
className: o(
|
|
29
29
|
"relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-border text-ds-md shadow-01 transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
|
|
30
30
|
p && "z-raised ring-2 ring-focus",
|
|
31
31
|
t
|
|
@@ -39,7 +39,7 @@ const I = o.forwardRef(({ index: e, className: t, ...s }, n) => {
|
|
|
39
39
|
);
|
|
40
40
|
});
|
|
41
41
|
I.displayName = "InputOTPSlot";
|
|
42
|
-
const O =
|
|
42
|
+
const O = a.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
|
|
43
43
|
O.displayName = "InputOTPSeparator";
|
|
44
44
|
export {
|
|
45
45
|
x as InputOTP,
|
package/dist/ui/input.js
CHANGED
|
@@ -1,32 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const h =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
3
|
+
import * as v from "react";
|
|
4
|
+
import { m as p } from "../_chunks/vendor.js";
|
|
5
|
+
import { c as x } from "../_chunks/utils.js";
|
|
6
|
+
import { u as g } from "../_chunks/form.js";
|
|
7
|
+
const h = p(
|
|
8
|
+
[
|
|
9
|
+
"flex w-full font-sans",
|
|
10
|
+
"bg-field text-text-primary",
|
|
11
|
+
"border border-border rounded-ds-md",
|
|
12
|
+
"placeholder:text-text-placeholder",
|
|
13
|
+
"hover:bg-field-hover",
|
|
14
|
+
"transition-colors duration-fast-01",
|
|
15
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:border-border-interactive",
|
|
16
|
+
"disabled:cursor-not-allowed disabled:opacity-[0.38]",
|
|
17
|
+
"read-only:bg-layer-02 read-only:cursor-default"
|
|
18
|
+
],
|
|
19
|
+
{
|
|
20
|
+
variants: {
|
|
21
|
+
size: {
|
|
22
|
+
sm: "h-ds-sm text-ds-sm px-ds-03",
|
|
23
|
+
md: "h-ds-md text-ds-base px-ds-04",
|
|
24
|
+
lg: "h-ds-lg text-ds-lg px-ds-05"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: { size: "md" }
|
|
28
|
+
}
|
|
29
|
+
), y = v.forwardRef(
|
|
30
|
+
({ className: d, type: l, state: n, size: c, startIcon: e, endIcon: r, ...t }, u) => {
|
|
31
|
+
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state), m = t["aria-describedby"] ?? s.helperTextId, b = t["aria-required"] ?? s.required, a = /* @__PURE__ */ o(
|
|
32
|
+
"input",
|
|
33
|
+
{
|
|
34
|
+
type: l,
|
|
35
|
+
className: x(
|
|
36
|
+
h({ size: c }),
|
|
37
|
+
e && "pl-ds-08",
|
|
38
|
+
r && "pr-ds-08",
|
|
39
|
+
i === "error" && "border-border-error focus-visible:ring-error",
|
|
40
|
+
i === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
41
|
+
i === "success" && "border-border-success focus-visible:ring-success",
|
|
42
|
+
d
|
|
43
|
+
),
|
|
44
|
+
"aria-invalid": i === "error" || void 0,
|
|
45
|
+
"aria-describedby": m,
|
|
46
|
+
"aria-required": b || void 0,
|
|
47
|
+
ref: u,
|
|
48
|
+
...t
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
return !e && !r ? a : /* @__PURE__ */ f("div", { className: "relative flex items-center w-full", children: [
|
|
52
|
+
e && /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }),
|
|
53
|
+
a,
|
|
54
|
+
r && /* @__PURE__ */ o("span", { className: "absolute right-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
);
|
|
30
58
|
y.displayName = "Input";
|
|
31
59
|
export {
|
|
32
60
|
y as Input,
|
package/dist/ui/label.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const p = d.forwardRef(({ className:
|
|
4
|
+
import { E as e } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as n } from "../_chunks/utils.js";
|
|
6
|
+
const p = d.forwardRef(({ className: a, required: t, children: r, ...s }, o) => /* @__PURE__ */ m(
|
|
7
|
+
e,
|
|
8
|
+
{
|
|
9
|
+
ref: o,
|
|
10
|
+
className: n(
|
|
11
|
+
"font-sans text-ds-md font-medium text-text-primary leading-none peer-disabled:opacity-[0.38]",
|
|
12
|
+
a
|
|
13
|
+
),
|
|
14
|
+
...s,
|
|
15
|
+
children: [
|
|
16
|
+
r,
|
|
17
|
+
t && /* @__PURE__ */ i("span", { className: "text-text-error ml-ds-01", "aria-hidden": "true", children: "*" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
));
|
|
7
21
|
p.displayName = e.displayName;
|
|
8
22
|
export {
|
|
9
23
|
p as Label
|
package/dist/ui/lib/utils.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const n = r({
|
|
1
|
+
import { p as s, n as t } from "../../_chunks/vendor.js";
|
|
2
|
+
const n = s({
|
|
4
3
|
extend: {
|
|
5
4
|
classGroups: {
|
|
6
5
|
"font-size": [{ "text-ds": ["xs", "sm", "md"] }]
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
8
|
});
|
|
10
|
-
function
|
|
9
|
+
function o(...e) {
|
|
11
10
|
return n(t(e));
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
o as cn
|
|
15
14
|
};
|
package/dist/ui/link.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { S as s } from "../_chunks/primitives.js";
|
|
4
4
|
import * as l from "react";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
({ className: o, inline: e = !0, asChild:
|
|
8
|
-
|
|
5
|
+
import { c as a } from "../_chunks/utils.js";
|
|
6
|
+
const f = l.forwardRef(
|
|
7
|
+
({ className: o, inline: e = !0, asChild: i = !1, ...t }, r) => /* @__PURE__ */ n(
|
|
8
|
+
i ? s : "a",
|
|
9
9
|
{
|
|
10
10
|
ref: r,
|
|
11
|
-
className:
|
|
11
|
+
className: a(
|
|
12
12
|
"text-text-link underline underline-offset-2",
|
|
13
13
|
"hover:text-text-link-hover transition-colors duration-fast-01",
|
|
14
14
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus rounded-ds-sm",
|
|
15
15
|
e ? "inline" : "block",
|
|
16
16
|
o
|
|
17
17
|
),
|
|
18
|
-
...
|
|
18
|
+
...t
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
f.displayName = "Link";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
f as Link
|
|
25
25
|
};
|
package/dist/ui/menubar.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
import { aW as l, aX as m, aY as c, aZ as p, a_ as b, a$ as u, b0 as f, b1 as y, b2 as x, b3 as g, b4 as N, b5 as h, b6 as v, b7 as M, b8 as R, b9 as I } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronRight as S, IconCheck as C, IconCircle as z } from "@tabler/icons-react";
|
|
6
|
+
import { c as o } from "../_chunks/utils.js";
|
|
7
|
+
const D = M, E = v, F = b, H = I, J = R, k = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
8
|
+
l,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
11
|
-
className:
|
|
10
|
+
ref: s,
|
|
11
|
+
className: o(
|
|
12
12
|
"flex h-ds-sm-plus items-center space-x-ds-02 rounded-ds-lg border border-border bg-layer-01 p-ds-02 shadow-01",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
15
|
...a
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
k.displayName = l.displayName;
|
|
19
|
+
const _ = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
20
|
+
m,
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
22
|
+
ref: s,
|
|
23
|
+
className: o(
|
|
24
24
|
"flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-none transition-colors hover:bg-field focus-visible:bg-field data-[state=open]:bg-field",
|
|
25
25
|
e
|
|
26
26
|
),
|
|
27
27
|
...a
|
|
28
28
|
}
|
|
29
29
|
));
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
_.displayName = m.displayName;
|
|
31
|
+
const j = r.forwardRef(({ className: e, inset: a, children: s, ...d }, n) => /* @__PURE__ */ i(
|
|
32
|
+
c,
|
|
33
33
|
{
|
|
34
34
|
ref: n,
|
|
35
|
-
className:
|
|
35
|
+
className: o(
|
|
36
36
|
"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",
|
|
37
37
|
a && "pl-ds-07",
|
|
38
38
|
e
|
|
39
39
|
),
|
|
40
|
-
...
|
|
40
|
+
...d,
|
|
41
41
|
children: [
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */
|
|
42
|
+
s,
|
|
43
|
+
/* @__PURE__ */ t(S, { className: "ml-auto" })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
));
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
j.displayName = c.displayName;
|
|
48
|
+
const G = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
49
|
+
p,
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
52
|
-
className:
|
|
51
|
+
ref: s,
|
|
52
|
+
className: o(
|
|
53
53
|
"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",
|
|
54
54
|
e
|
|
55
55
|
),
|
|
56
56
|
...a
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
({ className: e, align: a = "start", alignOffset:
|
|
59
|
+
G.displayName = p.displayName;
|
|
60
|
+
const T = r.forwardRef(
|
|
61
|
+
({ className: e, align: a = "start", alignOffset: s = -4, sideOffset: d = 8, ...n }, w) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
|
|
62
62
|
u,
|
|
63
63
|
{
|
|
64
64
|
ref: w,
|
|
65
65
|
align: a,
|
|
66
|
-
alignOffset:
|
|
67
|
-
sideOffset:
|
|
68
|
-
className:
|
|
66
|
+
alignOffset: s,
|
|
67
|
+
sideOffset: d,
|
|
68
|
+
className: o(
|
|
69
69
|
"z-dropdown min-w-[12rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03",
|
|
70
70
|
"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",
|
|
71
71
|
e
|
|
@@ -74,104 +74,104 @@ const _ = r.forwardRef(
|
|
|
74
74
|
}
|
|
75
75
|
) })
|
|
76
76
|
);
|
|
77
|
-
|
|
78
|
-
const L = r.forwardRef(({ className: e, inset: a, ...
|
|
79
|
-
|
|
77
|
+
T.displayName = u.displayName;
|
|
78
|
+
const L = r.forwardRef(({ className: e, inset: a, ...s }, d) => /* @__PURE__ */ t(
|
|
79
|
+
f,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
82
|
-
className:
|
|
81
|
+
ref: d,
|
|
82
|
+
className: o(
|
|
83
83
|
"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",
|
|
84
84
|
a && "pl-ds-07",
|
|
85
85
|
e
|
|
86
86
|
),
|
|
87
|
-
...
|
|
87
|
+
...s
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
|
-
L.displayName =
|
|
91
|
-
const P = r.forwardRef(({ className: e, children: a, checked:
|
|
92
|
-
|
|
90
|
+
L.displayName = f.displayName;
|
|
91
|
+
const P = r.forwardRef(({ className: e, children: a, checked: s, ...d }, n) => /* @__PURE__ */ i(
|
|
92
|
+
y,
|
|
93
93
|
{
|
|
94
94
|
ref: n,
|
|
95
|
-
className:
|
|
95
|
+
className: o(
|
|
96
96
|
"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]",
|
|
97
97
|
e
|
|
98
98
|
),
|
|
99
|
-
checked:
|
|
100
|
-
...
|
|
99
|
+
checked: s,
|
|
100
|
+
...d,
|
|
101
101
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(C, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
103
103
|
a
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
));
|
|
107
|
-
P.displayName =
|
|
108
|
-
const
|
|
109
|
-
|
|
107
|
+
P.displayName = y.displayName;
|
|
108
|
+
const W = r.forwardRef(({ className: e, children: a, ...s }, d) => /* @__PURE__ */ i(
|
|
109
|
+
g,
|
|
110
110
|
{
|
|
111
|
-
ref:
|
|
112
|
-
className:
|
|
111
|
+
ref: d,
|
|
112
|
+
className: o(
|
|
113
113
|
"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]",
|
|
114
114
|
e
|
|
115
115
|
),
|
|
116
|
-
...
|
|
116
|
+
...s,
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(z, { className: "h-2 w-2 fill-current" }) }) }),
|
|
119
119
|
a
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
));
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
|
|
123
|
+
W.displayName = g.displayName;
|
|
124
|
+
const X = r.forwardRef(({ className: e, inset: a, ...s }, d) => /* @__PURE__ */ t(
|
|
125
|
+
N,
|
|
126
126
|
{
|
|
127
|
-
ref:
|
|
128
|
-
className:
|
|
127
|
+
ref: d,
|
|
128
|
+
className: o(
|
|
129
129
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
130
130
|
a && "pl-ds-07",
|
|
131
131
|
e
|
|
132
132
|
),
|
|
133
|
-
...
|
|
133
|
+
...s
|
|
134
134
|
}
|
|
135
135
|
));
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
136
|
+
X.displayName = N.displayName;
|
|
137
|
+
const Y = r.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
138
|
+
h,
|
|
139
139
|
{
|
|
140
|
-
ref:
|
|
141
|
-
className:
|
|
140
|
+
ref: s,
|
|
141
|
+
className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
|
|
142
142
|
...a
|
|
143
143
|
}
|
|
144
144
|
));
|
|
145
|
-
|
|
146
|
-
const
|
|
145
|
+
Y.displayName = h.displayName;
|
|
146
|
+
const Z = ({
|
|
147
147
|
className: e,
|
|
148
148
|
...a
|
|
149
|
-
}) => /* @__PURE__ */
|
|
149
|
+
}) => /* @__PURE__ */ t(
|
|
150
150
|
"span",
|
|
151
151
|
{
|
|
152
|
-
className:
|
|
152
|
+
className: o(
|
|
153
153
|
"ml-auto text-ds-sm text-text-placeholder",
|
|
154
154
|
e
|
|
155
155
|
),
|
|
156
156
|
...a
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
|
-
|
|
159
|
+
Z.displayName = "MenubarShortcut";
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
k as Menubar,
|
|
162
162
|
P as MenubarCheckboxItem,
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
T as MenubarContent,
|
|
164
|
+
E as MenubarGroup,
|
|
165
165
|
L as MenubarItem,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
X as MenubarLabel,
|
|
167
|
+
D as MenubarMenu,
|
|
168
|
+
F as MenubarPortal,
|
|
169
|
+
J as MenubarRadioGroup,
|
|
170
|
+
W as MenubarRadioItem,
|
|
171
|
+
Y as MenubarSeparator,
|
|
172
|
+
Z as MenubarShortcut,
|
|
173
|
+
H as MenubarSub,
|
|
174
|
+
G as MenubarSubContent,
|
|
175
|
+
j as MenubarSubTrigger,
|
|
176
|
+
_ as MenubarTrigger
|
|
177
177
|
};
|