@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/checkbox.js
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { C as r, b as n } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconMinus as m, IconCheck as l } from "@tabler/icons-react";
|
|
5
5
|
import * as b from "react";
|
|
6
|
-
import {
|
|
7
|
-
const h = b.forwardRef(({ className: o, error: i, indeterminate: a, checked:
|
|
8
|
-
const t = a ? "indeterminate" :
|
|
9
|
-
return
|
|
6
|
+
import { c as f } from "../_chunks/utils.js";
|
|
7
|
+
const h = b.forwardRef(({ className: o, error: i, indeterminate: a, checked: s, ...c }, d) => {
|
|
8
|
+
const t = a ? "indeterminate" : s;
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
r,
|
|
11
|
+
{
|
|
12
|
+
ref: d,
|
|
13
|
+
checked: t,
|
|
14
|
+
className: f(
|
|
15
|
+
"peer h-ico-md w-ico-md shrink-0 rounded-ds-sm",
|
|
16
|
+
"border border-border-strong",
|
|
17
|
+
"bg-field",
|
|
18
|
+
"transition-colors duration-fast-01",
|
|
19
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
|
|
20
|
+
"disabled:cursor-not-allowed disabled:opacity-[0.38]",
|
|
21
|
+
"data-[state=checked]:bg-interactive data-[state=checked]:border-interactive data-[state=checked]:text-text-on-color",
|
|
22
|
+
"data-[state=indeterminate]:bg-interactive data-[state=indeterminate]:border-interactive data-[state=indeterminate]:text-text-on-color",
|
|
23
|
+
i && "border-border-error",
|
|
24
|
+
o
|
|
25
|
+
),
|
|
26
|
+
...c,
|
|
27
|
+
children: /* @__PURE__ */ e(n, { className: "flex items-center justify-center text-current", children: t === "indeterminate" ? /* @__PURE__ */ e(m, { className: "h-ico-sm w-ico-sm" }) : /* @__PURE__ */ e(l, { className: "h-ico-sm w-ico-sm" }) })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
10
30
|
});
|
|
11
31
|
h.displayName = r.displayName;
|
|
12
32
|
export {
|
package/dist/ui/chip.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const chipVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "subtle" | "outline" | null | undefined;
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
-
color?: "default" | "error" | "
|
|
7
|
+
color?: "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type ChipColor = 'default' | 'primary' | 'success' | 'error' | 'warning' | 'info' | 'teal' | 'amber' | 'slate' | 'indigo' | 'cyan' | 'orange' | 'emerald';
|
|
10
10
|
/**
|
|
@@ -51,9 +51,9 @@ type ChipProps = Omit<VariantProps<typeof chipVariants>, 'color'> & {
|
|
|
51
51
|
className?: string;
|
|
52
52
|
};
|
|
53
53
|
declare const Chip: React.ForwardRefExoticComponent<Omit<VariantProps<(props?: ({
|
|
54
|
-
variant?: "
|
|
54
|
+
variant?: "subtle" | "outline" | null | undefined;
|
|
55
55
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
|
-
color?: "default" | "error" | "
|
|
56
|
+
color?: "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "amber" | "slate" | "emerald" | "primary" | null | undefined;
|
|
57
57
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "color"> & {
|
|
58
58
|
label: string;
|
|
59
59
|
color?: ChipColor;
|
package/dist/ui/chip.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { IconX as p } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { m as N } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as h } from "../_chunks/utils.js";
|
|
7
7
|
const w = N(
|
|
8
8
|
"inline-flex items-center gap-ds-02 font-sans leading-ds-relaxed rounded-ds-full transition-colors duration-fast-01",
|
|
9
9
|
{
|
package/dist/ui/code.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { c as s } from "../_chunks/utils.js";
|
|
4
4
|
const n = a.forwardRef(
|
|
5
5
|
({ className: r, variant: m = "inline", children: o, ...d }, t) => m === "block" ? /* @__PURE__ */ e(
|
|
6
6
|
"pre",
|
package/dist/ui/collapsible.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
4
|
+
import { g as a, h as l, i as n } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as r } from "../_chunks/utils.js";
|
|
6
|
+
const f = l, g = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ s(
|
|
7
7
|
a,
|
|
8
8
|
{
|
|
9
9
|
ref: e,
|
|
@@ -16,7 +16,7 @@ const c = l, C = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__
|
|
|
16
16
|
));
|
|
17
17
|
d.displayName = a.displayName;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
f as Collapsible,
|
|
20
20
|
d as CollapsibleContent,
|
|
21
|
-
|
|
21
|
+
g as CollapsibleTrigger
|
|
22
22
|
};
|
package/dist/ui/color-input.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as s } from "../_chunks/utils.js";
|
|
5
5
|
const f = m.forwardRef(
|
|
6
|
-
({ value:
|
|
7
|
-
const
|
|
6
|
+
({ value: a = "#000000", onChange: n, presets: c, disabled: o = !1, className: d }, u) => {
|
|
7
|
+
const l = (r) => {
|
|
8
8
|
n == null || n(r);
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ i("div", { className: s("flex flex-col gap-ds-03", d), children: [
|
|
@@ -23,9 +23,9 @@ const f = m.forwardRef(
|
|
|
23
23
|
{
|
|
24
24
|
ref: u,
|
|
25
25
|
type: "color",
|
|
26
|
-
value:
|
|
26
|
+
value: a,
|
|
27
27
|
disabled: o,
|
|
28
|
-
onChange: (r) =>
|
|
28
|
+
onChange: (r) => l(r.target.value),
|
|
29
29
|
className: "absolute inset-0 h-full w-full cursor-pointer opacity-0"
|
|
30
30
|
}
|
|
31
31
|
),
|
|
@@ -33,7 +33,7 @@ const f = m.forwardRef(
|
|
|
33
33
|
"span",
|
|
34
34
|
{
|
|
35
35
|
className: "h-full w-full rounded-[inherit]",
|
|
36
|
-
style: { backgroundColor:
|
|
36
|
+
style: { backgroundColor: a }
|
|
37
37
|
}
|
|
38
38
|
)
|
|
39
39
|
]
|
|
@@ -44,15 +44,15 @@ const f = m.forwardRef(
|
|
|
44
44
|
{
|
|
45
45
|
type: "text",
|
|
46
46
|
"aria-label": "Hex color value",
|
|
47
|
-
value:
|
|
47
|
+
value: a,
|
|
48
48
|
disabled: o,
|
|
49
49
|
onChange: (r) => {
|
|
50
50
|
const e = r.target.value;
|
|
51
|
-
/^#[0-9a-fA-F]{0,6}$/.test(e) &&
|
|
51
|
+
/^#[0-9a-fA-F]{0,6}$/.test(e) && l(e);
|
|
52
52
|
},
|
|
53
53
|
onBlur: (r) => {
|
|
54
54
|
const e = r.target.value;
|
|
55
|
-
/^#[0-9a-fA-F]{6}$/.test(e) &&
|
|
55
|
+
/^#[0-9a-fA-F]{6}$/.test(e) && l(e);
|
|
56
56
|
},
|
|
57
57
|
maxLength: 7,
|
|
58
58
|
className: s(
|
|
@@ -68,10 +68,10 @@ const f = m.forwardRef(
|
|
|
68
68
|
{
|
|
69
69
|
type: "button",
|
|
70
70
|
disabled: o,
|
|
71
|
-
onClick: () =>
|
|
71
|
+
onClick: () => l(r),
|
|
72
72
|
className: s(
|
|
73
73
|
"h-ds-xs w-ds-xs rounded-ds-sm border transition-colors",
|
|
74
|
-
|
|
74
|
+
a === r ? "border-interactive ring-1 ring-interactive" : "border-border hover:border-border-strong",
|
|
75
75
|
o && "cursor-not-allowed opacity-50"
|
|
76
76
|
),
|
|
77
77
|
style: { backgroundColor: r },
|
package/dist/ui/combobox.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as d, Fragment as B } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { j as G, k as U, P as q, l as J } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as Q, IconSearch as W, IconCheck as Y, IconX as Z } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
6
|
+
import { c as x } from "../_chunks/utils.js";
|
|
7
7
|
const P = 2, V = 36, ee = a.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
options: u,
|
|
10
10
|
value: f,
|
|
11
11
|
onValueChange: m,
|
|
12
12
|
placeholder: S = "Select...",
|
|
13
|
-
searchPlaceholder:
|
|
14
|
-
emptyMessage:
|
|
13
|
+
searchPlaceholder: j = "Search...",
|
|
14
|
+
emptyMessage: A = "No results found",
|
|
15
15
|
multiple: b = !1,
|
|
16
16
|
disabled: p = !1,
|
|
17
|
-
className:
|
|
18
|
-
triggerClassName:
|
|
19
|
-
maxVisible:
|
|
17
|
+
className: L,
|
|
18
|
+
triggerClassName: T,
|
|
19
|
+
maxVisible: $ = 6,
|
|
20
20
|
renderOption: E,
|
|
21
21
|
...H
|
|
22
22
|
}, M) => {
|
|
@@ -168,7 +168,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
168
168
|
}
|
|
169
169
|
return /* @__PURE__ */ r("span", { className: "flex-1 truncate text-left text-text-placeholder", children: S });
|
|
170
170
|
};
|
|
171
|
-
return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */ d("div", { className: x("relative",
|
|
171
|
+
return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */ d("div", { className: x("relative", L), ...H, children: [
|
|
172
172
|
/* @__PURE__ */ r(U, { asChild: !0, disabled: p, children: /* @__PURE__ */ d(
|
|
173
173
|
"button",
|
|
174
174
|
{
|
|
@@ -185,7 +185,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
185
185
|
"transition-colors duration-fast-01",
|
|
186
186
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive",
|
|
187
187
|
"disabled:cursor-not-allowed disabled:opacity-[0.38]",
|
|
188
|
-
|
|
188
|
+
T
|
|
189
189
|
),
|
|
190
190
|
children: [
|
|
191
191
|
F(),
|
|
@@ -215,7 +215,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
215
215
|
ref: k,
|
|
216
216
|
type: "text",
|
|
217
217
|
className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-none placeholder:text-text-placeholder",
|
|
218
|
-
placeholder:
|
|
218
|
+
placeholder: j,
|
|
219
219
|
value: v,
|
|
220
220
|
onChange: (e) => {
|
|
221
221
|
y(e.target.value), c(-1);
|
|
@@ -228,7 +228,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
228
228
|
}
|
|
229
229
|
)
|
|
230
230
|
] }),
|
|
231
|
-
o.length === 0 ? /* @__PURE__ */ r("div", { className: "px-ds-04 py-ds-05 text-center text-ds-md text-text-tertiary", children:
|
|
231
|
+
o.length === 0 ? /* @__PURE__ */ r("div", { className: "px-ds-04 py-ds-05 text-center text-ds-md text-text-tertiary", children: A }) : /* @__PURE__ */ r(
|
|
232
232
|
"ul",
|
|
233
233
|
{
|
|
234
234
|
ref: N,
|
|
@@ -236,7 +236,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
236
236
|
role: "listbox",
|
|
237
237
|
"aria-multiselectable": b || void 0,
|
|
238
238
|
className: "overflow-auto p-ds-02",
|
|
239
|
-
style: { maxHeight: `${
|
|
239
|
+
style: { maxHeight: `${$ * V}px` },
|
|
240
240
|
children: o.map((e, t) => {
|
|
241
241
|
const s = O(e.value);
|
|
242
242
|
return /* @__PURE__ */ d(
|
package/dist/ui/container.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { c as d } from "../_chunks/utils.js";
|
|
3
3
|
const f = {
|
|
4
4
|
default: "max-w-layout",
|
|
5
5
|
body: "max-w-layout-body",
|
|
6
6
|
full: "max-w-full"
|
|
7
|
-
},
|
|
7
|
+
}, s = a.forwardRef(
|
|
8
8
|
({ as: t, maxWidth: o = "default", className: e, children: l, ...m }, n) => {
|
|
9
9
|
const r = t || "div";
|
|
10
10
|
return a.createElement(
|
|
@@ -18,7 +18,7 @@ const f = {
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
s.displayName = "Container";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
s as Container
|
|
24
24
|
};
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, jsx as
|
|
2
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const F =
|
|
8
|
-
|
|
4
|
+
import { m as l, n as m, o as c, p, q as u, r as f, s as x, t as b, L as y, u as N, v as h, G as C, w as g, x as w, y as M } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronRight as R, IconCheck as I, IconCircle as v } from "@tabler/icons-react";
|
|
6
|
+
import { c as d } from "../_chunks/utils.js";
|
|
7
|
+
const F = h, H = M, J = C, K = c, O = w, Q = g, S = n.forwardRef(({ className: e, inset: t, children: a, ...o }, r) => /* @__PURE__ */ i(
|
|
8
|
+
l,
|
|
9
9
|
{
|
|
10
10
|
ref: r,
|
|
11
11
|
className: d(
|
|
@@ -13,16 +13,16 @@ const F = N, H = R, J = C, K = l, O = w, Q = g, v = n.forwardRef(({ className: e
|
|
|
13
13
|
t && "pl-ds-07",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
|
-
...
|
|
16
|
+
...o,
|
|
17
17
|
children: [
|
|
18
18
|
a,
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ s(R, { className: "ml-auto h-ico-sm w-ico-sm" })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
|
|
24
|
-
const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
S.displayName = l.displayName;
|
|
24
|
+
const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
25
|
+
m,
|
|
26
26
|
{
|
|
27
27
|
ref: a,
|
|
28
28
|
className: d(
|
|
@@ -32,8 +32,8 @@ const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
32
32
|
...t
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
|
-
z.displayName =
|
|
36
|
-
const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
35
|
+
z.displayName = m.displayName;
|
|
36
|
+
const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(c, { children: /* @__PURE__ */ s(
|
|
37
37
|
p,
|
|
38
38
|
{
|
|
39
39
|
ref: a,
|
|
@@ -45,10 +45,10 @@ const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(l, { chi
|
|
|
45
45
|
}
|
|
46
46
|
) }));
|
|
47
47
|
G.displayName = p.displayName;
|
|
48
|
-
const
|
|
48
|
+
const j = n.forwardRef(({ className: e, inset: t, ...a }, o) => /* @__PURE__ */ s(
|
|
49
49
|
u,
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
51
|
+
ref: o,
|
|
52
52
|
className: d(
|
|
53
53
|
"relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
|
|
54
54
|
t && "pl-ds-07",
|
|
@@ -57,9 +57,9 @@ const T = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */
|
|
|
57
57
|
...a
|
|
58
58
|
}
|
|
59
59
|
));
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
60
|
+
j.displayName = u.displayName;
|
|
61
|
+
const T = n.forwardRef(({ className: e, children: t, checked: a, ...o }, r) => /* @__PURE__ */ i(
|
|
62
|
+
f,
|
|
63
63
|
{
|
|
64
64
|
ref: r,
|
|
65
65
|
className: d(
|
|
@@ -67,34 +67,34 @@ const j = n.forwardRef(({ className: e, children: t, checked: a, ...s }, r) => /
|
|
|
67
67
|
e
|
|
68
68
|
),
|
|
69
69
|
checked: a,
|
|
70
|
-
...
|
|
70
|
+
...o,
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(I, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
73
73
|
t
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
));
|
|
77
|
-
|
|
78
|
-
const k = n.forwardRef(({ className: e, children: t, ...a },
|
|
79
|
-
|
|
77
|
+
T.displayName = f.displayName;
|
|
78
|
+
const k = n.forwardRef(({ className: e, children: t, ...a }, o) => /* @__PURE__ */ i(
|
|
79
|
+
b,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
81
|
+
ref: o,
|
|
82
82
|
className: d(
|
|
83
83
|
"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 focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
|
|
84
84
|
e
|
|
85
85
|
),
|
|
86
86
|
...a,
|
|
87
87
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(v, { className: "h-ico-sm w-ico-sm fill-current" }) }) }),
|
|
89
89
|
t
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
|
-
k.displayName =
|
|
94
|
-
const L = n.forwardRef(({ className: e, inset: t, ...a },
|
|
95
|
-
|
|
93
|
+
k.displayName = b.displayName;
|
|
94
|
+
const L = n.forwardRef(({ className: e, inset: t, ...a }, o) => /* @__PURE__ */ s(
|
|
95
|
+
y,
|
|
96
96
|
{
|
|
97
|
-
ref:
|
|
97
|
+
ref: o,
|
|
98
98
|
className: d(
|
|
99
99
|
"px-ds-03 py-ds-02b text-ds-md font-semibold text-text-primary",
|
|
100
100
|
t && "pl-ds-07",
|
|
@@ -103,20 +103,20 @@ const L = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */
|
|
|
103
103
|
...a
|
|
104
104
|
}
|
|
105
105
|
));
|
|
106
|
-
L.displayName =
|
|
107
|
-
const P = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
108
|
-
|
|
106
|
+
L.displayName = y.displayName;
|
|
107
|
+
const P = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
108
|
+
N,
|
|
109
109
|
{
|
|
110
110
|
ref: a,
|
|
111
111
|
className: d("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
|
|
112
112
|
...t
|
|
113
113
|
}
|
|
114
114
|
));
|
|
115
|
-
P.displayName =
|
|
115
|
+
P.displayName = N.displayName;
|
|
116
116
|
const q = ({
|
|
117
117
|
className: e,
|
|
118
118
|
...t
|
|
119
|
-
}) => /* @__PURE__ */
|
|
119
|
+
}) => /* @__PURE__ */ s(
|
|
120
120
|
"span",
|
|
121
121
|
{
|
|
122
122
|
className: d(
|
|
@@ -129,10 +129,10 @@ const q = ({
|
|
|
129
129
|
q.displayName = "ContextMenuShortcut";
|
|
130
130
|
export {
|
|
131
131
|
F as ContextMenu,
|
|
132
|
-
|
|
132
|
+
T as ContextMenuCheckboxItem,
|
|
133
133
|
G as ContextMenuContent,
|
|
134
134
|
J as ContextMenuGroup,
|
|
135
|
-
|
|
135
|
+
j as ContextMenuItem,
|
|
136
136
|
L as ContextMenuLabel,
|
|
137
137
|
K as ContextMenuPortal,
|
|
138
138
|
Q as ContextMenuRadioGroup,
|
|
@@ -141,6 +141,6 @@ export {
|
|
|
141
141
|
q as ContextMenuShortcut,
|
|
142
142
|
O as ContextMenuSub,
|
|
143
143
|
z as ContextMenuSubContent,
|
|
144
|
-
|
|
144
|
+
S as ContextMenuSubTrigger,
|
|
145
145
|
H as ContextMenuTrigger
|
|
146
146
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { IconSearch as x, IconColumns3 as C, IconTextResize as y, IconDownload as v } from "@tabler/icons-react";
|
|
4
4
|
import { DropdownMenu as w, DropdownMenuTrigger as D, DropdownMenuContent as N, DropdownMenuLabel as T, DropdownMenuSeparator as k, DropdownMenuCheckboxItem as I } from "./dropdown-menu.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as g } from "../_chunks/utils.js";
|
|
6
6
|
const b = {
|
|
7
7
|
compact: "Compact",
|
|
8
8
|
standard: "Standard",
|
|
@@ -43,9 +43,9 @@ function M({
|
|
|
43
43
|
enableExport: r = !0
|
|
44
44
|
}) {
|
|
45
45
|
const t = l.getAllColumns().filter((e) => e.getCanHide() && e.id !== "_select");
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
m && /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ o("div", { className: "flex items-center gap-ds-03 pb-ds-04", children: [
|
|
47
|
+
m && /* @__PURE__ */ o("div", { className: "flex flex-1 items-center gap-ds-02", children: [
|
|
48
|
+
/* @__PURE__ */ a(
|
|
49
49
|
x,
|
|
50
50
|
{
|
|
51
51
|
size: 16,
|
|
@@ -53,7 +53,7 @@ function M({
|
|
|
53
53
|
"aria-hidden": "true"
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ a(
|
|
57
57
|
"input",
|
|
58
58
|
{
|
|
59
59
|
type: "text",
|
|
@@ -70,26 +70,26 @@ function M({
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] }),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
t.length > 0 && /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ o("div", { className: "ml-auto flex items-center gap-ds-03", children: [
|
|
74
|
+
t.length > 0 && /* @__PURE__ */ o(w, { children: [
|
|
75
|
+
/* @__PURE__ */ a(D, { asChild: !0, children: /* @__PURE__ */ o(
|
|
76
76
|
"button",
|
|
77
77
|
{
|
|
78
78
|
type: "button",
|
|
79
79
|
className: h,
|
|
80
80
|
"aria-label": "Toggle column visibility",
|
|
81
81
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ a(C, { size: 16, className: d }),
|
|
83
83
|
"Columns"
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
) }),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ o(N, { align: "end", className: "w-40", children: [
|
|
88
|
+
/* @__PURE__ */ a(T, { children: "Toggle columns" }),
|
|
89
|
+
/* @__PURE__ */ a(k, {}),
|
|
90
90
|
t.map((e) => {
|
|
91
91
|
const i = e.columnDef.header, n = typeof i == "string" ? i : e.id;
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ a(
|
|
93
93
|
I,
|
|
94
94
|
{
|
|
95
95
|
checked: e.getIsVisible(),
|
|
@@ -101,7 +101,7 @@ function M({
|
|
|
101
101
|
})
|
|
102
102
|
] })
|
|
103
103
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ o(
|
|
105
105
|
"button",
|
|
106
106
|
{
|
|
107
107
|
type: "button",
|
|
@@ -110,12 +110,12 @@ function M({
|
|
|
110
110
|
"aria-label": `Table density: ${b[s]}. Click to change.`,
|
|
111
111
|
title: `Density: ${b[s]}`,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ a(y, { size: 16, className: d }),
|
|
114
114
|
b[s]
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
|
-
r && /* @__PURE__ */
|
|
118
|
+
r && /* @__PURE__ */ o(
|
|
119
119
|
"button",
|
|
120
120
|
{
|
|
121
121
|
type: "button",
|
|
@@ -123,7 +123,7 @@ function M({
|
|
|
123
123
|
onClick: () => j(l),
|
|
124
124
|
"aria-label": "Export table as CSV",
|
|
125
125
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ a(v, { size: 16, className: d }),
|
|
127
127
|
"Export"
|
|
128
128
|
]
|
|
129
129
|
}
|
package/dist/ui/data-table.js
CHANGED
|
@@ -5,8 +5,8 @@ import { useReactTable as De, getExpandedRowModel as Ie, getPaginationRowModel a
|
|
|
5
5
|
import { useVirtualizer as Ee } from "@tanstack/react-virtual";
|
|
6
6
|
import { IconArrowUp as ze, IconArrowDown as Me, IconArrowsSort as Te, IconSearch as Ve, IconChevronLeft as $e, IconChevronRight as L } from "@tabler/icons-react";
|
|
7
7
|
import { Table as He, TableHeader as je, TableRow as y, TableHead as U, TableBody as T, TableCell as V } from "./table.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { C as q } from "../_chunks/checkbox.js";
|
|
9
|
+
import { c as i } from "../_chunks/utils.js";
|
|
10
10
|
import { DataTableToolbar as _e } from "./data-table-toolbar.js";
|
|
11
11
|
const Ae = {
|
|
12
12
|
compact: "py-ds-02",
|