@acronis-platform/ui-react 0.45.0 → 0.46.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.
@@ -1,48 +1,36 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { ArrowDownIcon as a, ArrowUpIcon as d, ArrowsDownUpIcon as c, EyeCrossedIcon as l } from "@acronis-platform/icons-react/stroke-mono";
3
- import { cn as s } from "../../../lib/utils.js";
4
- import { DropdownMenu as p, DropdownMenuTrigger as g, DropdownMenuContent as m, DropdownMenuItem as n, DropdownMenuSeparator as f } from "../dropdown-menu/dropdown-menu.js";
5
- import { Button as u } from "../button/button.js";
6
- function I({
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { ArrowUpIcon as c, ArrowDownIcon as l, ArrowsDownUpIcon as v } from "@acronis-platform/icons-react/stroke-mono";
3
+ import { cn as a } from "../../../lib/utils.js";
4
+ function m({
7
5
  column: r,
8
- title: t,
9
- className: i
6
+ title: o,
7
+ className: t,
8
+ ...s
10
9
  }) {
11
- return r.getCanSort() ? /* @__PURE__ */ e("div", { className: s("flex items-center gap-2", i), children: /* @__PURE__ */ o(p, { children: [
12
- /* @__PURE__ */ o(
13
- g,
14
- {
15
- render: /* @__PURE__ */ e(
16
- u,
17
- {
18
- variant: "ghost",
19
- className: "-ml-2 h-8 gap-2 px-2 data-[popup-open]:bg-accent"
20
- }
21
- ),
22
- children: [
23
- /* @__PURE__ */ e("span", { children: t }),
24
- r.getIsSorted() === "desc" ? /* @__PURE__ */ e(a, {}) : r.getIsSorted() === "asc" ? /* @__PURE__ */ e(d, {}) : /* @__PURE__ */ e(c, {})
25
- ]
26
- }
27
- ),
28
- /* @__PURE__ */ o(m, { align: "start", children: [
29
- /* @__PURE__ */ o(n, { onClick: () => r.toggleSorting(!1), children: [
30
- /* @__PURE__ */ e(d, { className: "text-muted-foreground" }),
31
- "Asc"
32
- ] }),
33
- /* @__PURE__ */ o(n, { onClick: () => r.toggleSorting(!0), children: [
34
- /* @__PURE__ */ e(a, { className: "text-muted-foreground" }),
35
- "Desc"
36
- ] }),
37
- /* @__PURE__ */ e(f, {}),
38
- /* @__PURE__ */ o(n, { onClick: () => r.toggleVisibility(!1), children: [
39
- /* @__PURE__ */ e(l, { className: "text-muted-foreground" }),
40
- "Hide"
41
- ] })
42
- ] })
43
- ] }) }) : /* @__PURE__ */ e("div", { className: s(i), children: t });
10
+ if (!r.getCanSort())
11
+ return /* @__PURE__ */ e("div", { className: a(t), children: o });
12
+ const i = r.getIsSorted();
13
+ return /* @__PURE__ */ n(
14
+ "button",
15
+ {
16
+ type: "button",
17
+ onClick: () => r.toggleSorting(),
18
+ "aria-label": `Sort by ${o}`,
19
+ className: a(
20
+ // -ml-2 px-2 keeps the label flush at the cell padding while giving the
21
+ // toggle a comfortable click/hover target.
22
+ "-ml-2 inline-flex h-8 select-none items-center gap-2 rounded px-2 text-sm font-semibold transition-colors hover:bg-[var(--ui-table-header-cell-color-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-primary)] [&_svg]:size-[var(--ui-table-header-sort-icon-size)] [&_svg]:shrink-0",
23
+ t
24
+ ),
25
+ ...s,
26
+ children: [
27
+ /* @__PURE__ */ e("span", { children: o }),
28
+ i === "asc" ? /* @__PURE__ */ e(c, { className: "text-[var(--ui-table-header-sort-icon-color-active)]" }) : i === "desc" ? /* @__PURE__ */ e(l, { className: "text-[var(--ui-table-header-sort-icon-color-active)]" }) : /* @__PURE__ */ e(v, { className: "text-[var(--ui-table-header-sort-icon-color-inactive)]" })
29
+ ]
30
+ }
31
+ );
44
32
  }
45
33
  export {
46
- I as DataTableColumnHeader
34
+ m as DataTableColumnHeader
47
35
  };
48
36
  //# sourceMappingURL=data-table-column-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-table-column-header.js","sources":["../../../../src/components/ui/data-table/data-table-column-header.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { Column } from '@tanstack/react-table';\nimport {\n ArrowDownIcon,\n ArrowsDownUpIcon,\n ArrowUpIcon,\n EyeCrossedIcon,\n} from '@acronis-platform/icons-react/stroke-mono';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from '../button';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '../dropdown-menu';\n\ninterface DataTableColumnHeaderProps<TData, TValue>\n extends React.HTMLAttributes<HTMLDivElement> {\n column: Column<TData, TValue>;\n title: string;\n}\n\nexport function DataTableColumnHeader<TData, TValue>({\n column,\n title,\n className,\n}: DataTableColumnHeaderProps<TData, TValue>) {\n if (!column.getCanSort()) {\n return <div className={cn(className)}>{title}</div>;\n }\n\n return (\n <div className={cn('flex items-center gap-2', className)}>\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n variant=\"ghost\"\n // ui-react's ghost button has 0 horizontal padding, so add a small\n // padding for a comfortable click/hover target and negate it on the\n // left (-ml-2 px-2) so the label still sits flush at the cell's\n // padding edge aligned with the body cells below.\n className=\"-ml-2 h-8 gap-2 px-2 data-[popup-open]:bg-accent\"\n />\n }\n >\n <span>{title}</span>\n {column.getIsSorted() === 'desc' ? (\n <ArrowDownIcon />\n ) : column.getIsSorted() === 'asc' ? (\n <ArrowUpIcon />\n ) : (\n <ArrowsDownUpIcon />\n )}\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n <DropdownMenuItem onClick={() => column.toggleSorting(false)}>\n <ArrowUpIcon className=\"text-muted-foreground\" />\n Asc\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => column.toggleSorting(true)}>\n <ArrowDownIcon className=\"text-muted-foreground\" />\n Desc\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem onClick={() => column.toggleVisibility(false)}>\n <EyeCrossedIcon className=\"text-muted-foreground\" />\n Hide\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n );\n}\n"],"names":["DataTableColumnHeader","column","title","className","jsx","cn","DropdownMenu","jsxs","DropdownMenuTrigger","Button","ArrowDownIcon","ArrowUpIcon","ArrowsDownUpIcon","DropdownMenuContent","DropdownMenuItem","DropdownMenuSeparator","EyeCrossedIcon"],"mappings":";;;;;AAyBO,SAASA,EAAqC;AAAA,EACnD,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACF,GAA8C;AAC5C,SAAKF,EAAO,eAKV,gBAAAG,EAAC,SAAI,WAAWC,EAAG,2BAA2BF,CAAS,GACrD,4BAACG,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QACE,gBAAAJ;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YAKR,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAId,UAAA;AAAA,UAAA,gBAAAL,EAAC,UAAM,UAAAF,EAAA,CAAM;AAAA,UACZD,EAAO,YAAA,MAAkB,2BACvBS,GAAA,CAAA,CAAc,IACbT,EAAO,YAAA,MAAkB,QAC3B,gBAAAG,EAACO,GAAA,CAAA,CAAY,sBAEZC,GAAA,CAAA,CAAiB;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAGtB,gBAAAL,EAACM,GAAA,EAAoB,OAAM,SACzB,UAAA;AAAA,MAAA,gBAAAN,EAACO,KAAiB,SAAS,MAAMb,EAAO,cAAc,EAAK,GACzD,UAAA;AAAA,QAAA,gBAAAG,EAACO,GAAA,EAAY,WAAU,wBAAA,CAAwB;AAAA,QAAE;AAAA,MAAA,GAEnD;AAAA,wBACCG,GAAA,EAAiB,SAAS,MAAMb,EAAO,cAAc,EAAI,GACxD,UAAA;AAAA,QAAA,gBAAAG,EAACM,GAAA,EAAc,WAAU,wBAAA,CAAwB;AAAA,QAAE;AAAA,MAAA,GAErD;AAAA,wBACCK,GAAA,EAAsB;AAAA,wBACtBD,GAAA,EAAiB,SAAS,MAAMb,EAAO,iBAAiB,EAAK,GAC5D,UAAA;AAAA,QAAA,gBAAAG,EAACY,GAAA,EAAe,WAAU,wBAAA,CAAwB;AAAA,QAAE;AAAA,MAAA,EAAA,CAEtD;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF,sBA3CQ,OAAA,EAAI,WAAWX,EAAGF,CAAS,GAAI,UAAAD,GAAM;AA6CjD;"}
1
+ {"version":3,"file":"data-table-column-header.js","sources":["../../../../src/components/ui/data-table/data-table-column-header.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { Column } from '@tanstack/react-table';\nimport {\n ArrowDownIcon,\n ArrowsDownUpIcon,\n ArrowUpIcon,\n} from '@acronis-platform/icons-react/stroke-mono';\n\nimport { cn } from '@/lib/utils';\n\ninterface DataTableColumnHeaderProps<TData, TValue>\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n column: Column<TData, TValue>;\n title: string;\n}\n\n// Single-click sortable column header — matches the Table primitive's sortable\n// `TableHead`: one click toggles the sort (ascending → descending → unsorted) via\n// TanStack's `column.toggleSorting()`. The trailing icon shows the state with the\n// same `--ui-table-header-sort-icon-*` tokens — an up arrow (ascending) or down\n// arrow (descending) in the active blue, or the muted up/down arrows when\n// unsorted. (Column hiding lives in the toolbar's `DataTableViewOptions`, not a\n// per-header menu, so sorting is a single click.)\nexport function DataTableColumnHeader<TData, TValue>({\n column,\n title,\n className,\n ...props\n}: DataTableColumnHeaderProps<TData, TValue>) {\n if (!column.getCanSort()) {\n return <div className={cn(className)}>{title}</div>;\n }\n\n const sorted = column.getIsSorted();\n\n return (\n <button\n type=\"button\"\n onClick={() => column.toggleSorting()}\n aria-label={`Sort by ${title}`}\n className={cn(\n // -ml-2 px-2 keeps the label flush at the cell padding while giving the\n // toggle a comfortable click/hover target.\n '-ml-2 inline-flex h-8 select-none items-center gap-2 rounded px-2 text-sm font-semibold transition-colors hover:bg-[var(--ui-table-header-cell-color-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-primary)] [&_svg]:size-[var(--ui-table-header-sort-icon-size)] [&_svg]:shrink-0',\n className\n )}\n {...props}\n >\n <span>{title}</span>\n {sorted === 'asc' ? (\n <ArrowUpIcon className=\"text-[var(--ui-table-header-sort-icon-color-active)]\" />\n ) : sorted === 'desc' ? (\n <ArrowDownIcon className=\"text-[var(--ui-table-header-sort-icon-color-active)]\" />\n ) : (\n <ArrowsDownUpIcon className=\"text-[var(--ui-table-header-sort-icon-color-inactive)]\" />\n )}\n </button>\n );\n}\n"],"names":["DataTableColumnHeader","column","title","className","props","cn","sorted","jsxs","jsx","ArrowUpIcon","ArrowDownIcon","ArrowsDownUpIcon"],"mappings":";;;AAuBO,SAASA,EAAqC;AAAA,EACnD,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAA8C;AAC5C,MAAI,CAACH,EAAO;AACV,6BAAQ,OAAA,EAAI,WAAWI,EAAGF,CAAS,GAAI,UAAAD,GAAM;AAG/C,QAAMI,IAASL,EAAO,YAAA;AAEtB,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,SAAS,MAAMN,EAAO,cAAA;AAAA,MACtB,cAAY,WAAWC,CAAK;AAAA,MAC5B,WAAWG;AAAA;AAAA;AAAA,QAGT;AAAA,QACAF;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAI,EAAC,UAAM,UAAAN,EAAA,CAAM;AAAA,QACZI,MAAW,QACV,gBAAAE,EAACC,GAAA,EAAY,WAAU,wDAAuD,IAC5EH,MAAW,SACb,gBAAAE,EAACE,KAAc,WAAU,uDAAA,CAAuD,IAEhF,gBAAAF,EAACG,GAAA,EAAiB,WAAU,yDAAA,CAAyD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAI7F;"}
@@ -0,0 +1,115 @@
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
+ import * as I from "react";
3
+ import { Progress as M } from "@base-ui/react/progress";
4
+ import { CircleCheckIcon as R, TriangleWarningIcon as g, CircleTimesIcon as j } from "@acronis-platform/icons-react/stroke-mono";
5
+ import { cva as P } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
6
+ import { cn as c } from "../../../lib/utils.js";
7
+ const S = {
8
+ tiny: { d: 16, stroke: 2, font: "text-[10px] leading-none" },
9
+ sm: { d: 24, stroke: 3, font: "text-[10px] leading-none" },
10
+ md: { d: 40, stroke: 4, font: "text-xs font-semibold" },
11
+ lg: { d: 64, stroke: 5, font: "text-sm font-semibold" }
12
+ }, T = {
13
+ brand: "stroke-[var(--ui-background-brand-secondary)]",
14
+ danger: "stroke-[var(--ui-text-on-status-danger)]",
15
+ critical: "stroke-[var(--ui-text-on-status-critical)]",
16
+ warning: "stroke-[var(--ui-text-on-status-warning)]",
17
+ success: "stroke-[var(--ui-text-on-status-success)]"
18
+ }, _ = {
19
+ danger: /* @__PURE__ */ e(j, { className: "text-[var(--ui-text-on-status-danger)]" }),
20
+ critical: /* @__PURE__ */ e(g, { className: "text-[var(--ui-text-on-status-critical)]" }),
21
+ warning: /* @__PURE__ */ e(g, { className: "text-[var(--ui-text-on-status-warning)]" }),
22
+ success: /* @__PURE__ */ e(R, { className: "text-[var(--ui-text-on-status-success)]" })
23
+ };
24
+ function O(s) {
25
+ return s >= 0.8 ? "success" : s >= 0.6 ? "warning" : s >= 0.4 ? "critical" : "danger";
26
+ }
27
+ const W = P(
28
+ "relative inline-flex shrink-0 items-center justify-center",
29
+ {
30
+ variants: {
31
+ size: { tiny: "", sm: "", md: "", lg: "" }
32
+ },
33
+ defaultVariants: { size: "sm" }
34
+ }
35
+ ), $ = I.forwardRef(
36
+ ({
37
+ className: s,
38
+ value: l = 0,
39
+ max: n = 100,
40
+ size: u = "sm",
41
+ status: h,
42
+ showValue: k = !1,
43
+ showIcon: v = !1,
44
+ children: p,
45
+ ...N
46
+ }, y) => {
47
+ const { d: t, stroke: o, font: C } = S[u], w = n > 0 ? n : 100, a = Math.min(1, Math.max(0, l / w)), d = h ?? O(a), i = (t - o) / 2, f = 2 * Math.PI * i, r = t / 2, b = v ? _[d] : void 0, m = p ?? b ?? (k ? `${Math.round(a * 100)}%` : null);
48
+ return /* @__PURE__ */ x(
49
+ M.Root,
50
+ {
51
+ ref: y,
52
+ value: l,
53
+ max: n,
54
+ className: c(W({ size: u }), s),
55
+ style: { width: t, height: t },
56
+ ...N,
57
+ children: [
58
+ /* @__PURE__ */ x(
59
+ "svg",
60
+ {
61
+ width: t,
62
+ height: t,
63
+ viewBox: `0 0 ${t} ${t}`,
64
+ className: "-rotate-90",
65
+ "aria-hidden": "true",
66
+ children: [
67
+ /* @__PURE__ */ e(
68
+ "circle",
69
+ {
70
+ className: "stroke-[var(--ui-border-on-surface-border)]",
71
+ fill: "none",
72
+ strokeWidth: o,
73
+ cx: r,
74
+ cy: r,
75
+ r: i
76
+ }
77
+ ),
78
+ /* @__PURE__ */ e(
79
+ "circle",
80
+ {
81
+ className: c(T[d], "transition-[stroke-dashoffset]"),
82
+ fill: "none",
83
+ strokeWidth: o,
84
+ strokeLinecap: "round",
85
+ cx: r,
86
+ cy: r,
87
+ r: i,
88
+ strokeDasharray: f,
89
+ strokeDashoffset: f * (1 - a)
90
+ }
91
+ )
92
+ ]
93
+ }
94
+ ),
95
+ m != null && /* @__PURE__ */ e(
96
+ "span",
97
+ {
98
+ className: c(
99
+ "absolute inset-0 flex items-center justify-center text-foreground [&_svg]:size-[60%]",
100
+ C
101
+ ),
102
+ children: m
103
+ }
104
+ )
105
+ ]
106
+ }
107
+ );
108
+ }
109
+ );
110
+ $.displayName = "ProgressCircle";
111
+ export {
112
+ $ as ProgressCircle,
113
+ W as progressCircleVariants
114
+ };
115
+ //# sourceMappingURL=progress-circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-circle.js","sources":["../../../../src/components/ui/progress-circle/progress-circle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress';\nimport {\n CircleCheckIcon,\n CircleTimesIcon,\n TriangleWarningIcon,\n} from '@acronis-platform/icons-react/stroke-mono';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\n\n// A circular (radial) progress indicator — an SVG ring whose arc fills with the\n// value and whose color tracks the level (danger → critical → warning →\n// success). Built from the Cyber-Compliance \"Compliance %\" design (node\n// 2396-186059) and the Vue kit's `AvProgressRadial`. The ring is wrapped in the\n// Base UI Progress primitive so it carries the proper `role=\"progressbar\"` +\n// `aria-valuenow/min/max`; the visuals are a hand-drawn SVG (Base UI's Track/\n// Indicator are linear-only). No `--ui-progress-circle-*` tier — the arc uses the\n// shared status colors (`--ui-text-on-status-*`), the track the border token, and\n// the center label the surface foreground.\n\n// `brand` is the neutral single-color mode (matches the linear Progress accent);\n// the others are score levels. With no `status`, the level is derived from the\n// value (like the Vue ProgressRadial).\nexport type ProgressCircleStatus =\n | 'brand'\n | 'danger'\n | 'critical'\n | 'warning'\n | 'success';\n\n// Size → [diameter px, stroke px, center font class]. The table cell uses the\n// smaller sizes; lg suits cards/widgets.\nconst SIZES = {\n tiny: { d: 16, stroke: 2, font: 'text-[10px] leading-none' },\n sm: { d: 24, stroke: 3, font: 'text-[10px] leading-none' },\n md: { d: 40, stroke: 4, font: 'text-xs font-semibold' },\n lg: { d: 64, stroke: 5, font: 'text-sm font-semibold' },\n} as const;\n\nexport type ProgressCircleSize = keyof typeof SIZES;\n\nconst ARC_COLOR: Record<ProgressCircleStatus, string> = {\n brand: 'stroke-[var(--ui-background-brand-secondary)]',\n danger: 'stroke-[var(--ui-text-on-status-danger)]',\n critical: 'stroke-[var(--ui-text-on-status-critical)]',\n warning: 'stroke-[var(--ui-text-on-status-warning)]',\n success: 'stroke-[var(--ui-text-on-status-success)]',\n};\n\n// `brand` has no score icon — only the level statuses do.\nconst ICON_BY_STATUS: Partial<Record<ProgressCircleStatus, React.ReactNode>> = {\n danger: <CircleTimesIcon className=\"text-[var(--ui-text-on-status-danger)]\" />,\n critical: (\n <TriangleWarningIcon className=\"text-[var(--ui-text-on-status-critical)]\" />\n ),\n warning: (\n <TriangleWarningIcon className=\"text-[var(--ui-text-on-status-warning)]\" />\n ),\n success: (\n <CircleCheckIcon className=\"text-[var(--ui-text-on-status-success)]\" />\n ),\n};\n\n// Default value → status thresholds (confirm exact breakpoints with design — the\n// Figma shows ~25% danger, 50% critical, 75% warning, 80%+ success).\nfunction statusForFraction(fraction: number): ProgressCircleStatus {\n if (fraction >= 0.8) return 'success';\n if (fraction >= 0.6) return 'warning';\n if (fraction >= 0.4) return 'critical';\n return 'danger';\n}\n\nconst progressCircleVariants = cva(\n 'relative inline-flex shrink-0 items-center justify-center',\n {\n variants: {\n size: { tiny: '', sm: '', md: '', lg: '' },\n },\n defaultVariants: { size: 'sm' },\n }\n);\n\nexport interface ProgressCircleProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\n VariantProps<typeof progressCircleVariants> {\n /** Current progress; clamped to `[0, max]`. */\n value?: number;\n /** Value representing full completion. */\n max?: number;\n /** Ring diameter + stroke. Defaults to `sm`. */\n size?: ProgressCircleSize;\n /** Color level for the arc. Omit to derive from `value`/`max` by thresholds. */\n status?: ProgressCircleStatus;\n /** Show the rounded percentage in the center. */\n showValue?: boolean;\n /** Show a status icon in the center (takes priority over `showValue`). */\n showIcon?: boolean;\n /** Custom center content (takes priority over icon/value). */\n children?: React.ReactNode;\n}\n\nconst ProgressCircle = React.forwardRef<HTMLDivElement, ProgressCircleProps>(\n (\n {\n className,\n value = 0,\n max = 100,\n size = 'sm',\n status,\n showValue = false,\n showIcon = false,\n children,\n ...props\n },\n ref\n ) => {\n const { d, stroke, font } = SIZES[size];\n const safeMax = max > 0 ? max : 100;\n const fraction = Math.min(1, Math.max(0, value / safeMax));\n const level = status ?? statusForFraction(fraction);\n const radius = (d - stroke) / 2;\n const circumference = 2 * Math.PI * radius;\n const center = d / 2;\n const icon = showIcon ? ICON_BY_STATUS[level] : undefined;\n const centerContent =\n children ?? icon ?? (showValue ? `${Math.round(fraction * 100)}%` : null);\n\n return (\n <ProgressPrimitive.Root\n ref={ref}\n value={value}\n max={max}\n className={cn(progressCircleVariants({ size }), className)}\n style={{ width: d, height: d }}\n {...props}\n >\n <svg\n width={d}\n height={d}\n viewBox={`0 0 ${d} ${d}`}\n className=\"-rotate-90\"\n aria-hidden=\"true\"\n >\n <circle\n className=\"stroke-[var(--ui-border-on-surface-border)]\"\n fill=\"none\"\n strokeWidth={stroke}\n cx={center}\n cy={center}\n r={radius}\n />\n <circle\n className={cn(ARC_COLOR[level], 'transition-[stroke-dashoffset]')}\n fill=\"none\"\n strokeWidth={stroke}\n strokeLinecap=\"round\"\n cx={center}\n cy={center}\n r={radius}\n strokeDasharray={circumference}\n strokeDashoffset={circumference * (1 - fraction)}\n />\n </svg>\n {centerContent != null && (\n <span\n className={cn(\n 'absolute inset-0 flex items-center justify-center text-foreground [&_svg]:size-[60%]',\n font\n )}\n >\n {centerContent}\n </span>\n )}\n </ProgressPrimitive.Root>\n );\n }\n);\nProgressCircle.displayName = 'ProgressCircle';\n\nexport { ProgressCircle, progressCircleVariants };\n"],"names":["SIZES","ARC_COLOR","ICON_BY_STATUS","jsx","CircleTimesIcon","TriangleWarningIcon","CircleCheckIcon","statusForFraction","fraction","progressCircleVariants","cva","ProgressCircle","React","className","value","max","size","status","showValue","showIcon","children","props","ref","d","stroke","font","safeMax","level","radius","circumference","center","icon","centerContent","jsxs","ProgressPrimitive","cn"],"mappings":"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"}
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { cn as r } from "./lib/utils.js";
1
+ import { cn as t } from "./lib/utils.js";
2
2
  import { Avatar as a, AvatarFallback as n, AvatarGroup as i, AvatarImage as l, avatarVariants as p } from "./components/ui/avatar/avatar.js";
3
3
  import { Tag as d, Tag as s, tagVariants as c } from "./components/ui/tag/tag.js";
4
4
  import { Breadcrumb as m, BreadcrumbEllipsis as b, BreadcrumbItem as g, BreadcrumbLink as D, BreadcrumbList as x, BreadcrumbPage as T, BreadcrumbSeparator as I } from "./components/ui/breadcrumb/breadcrumb.js";
5
5
  import { Button as f, buttonVariants as C } from "./components/ui/button/button.js";
6
6
  import { ButtonIcon as P, buttonIconVariants as M } from "./components/ui/button-icon/button-icon.js";
7
- import { ButtonMenu as L, buttonMenuVariants as w } from "./components/ui/button-menu/button-menu.js";
7
+ import { ButtonMenu as L, buttonMenuVariants as V } from "./components/ui/button-menu/button-menu.js";
8
8
  import { Card as v, CardContent as F, CardDescription as H, CardFooter as E, CardHeader as A, CardTitle as G } from "./components/ui/card/card.js";
9
9
  import { CardFilter as R, cardFilterVariants as k } from "./components/ui/card-filter/card-filter.js";
10
10
  import { Checkbox as z } from "./components/ui/checkbox/checkbox.js";
@@ -14,34 +14,35 @@ import { DataTableColumnHeader as U } from "./components/ui/data-table/data-tabl
14
14
  import { DataTablePagination as Y } from "./components/ui/data-table/data-table-pagination.js";
15
15
  import { DataTableToolbar as _ } from "./components/ui/data-table/data-table-toolbar.js";
16
16
  import { DataTableViewOptions as ee } from "./components/ui/data-table/data-table-view-options.js";
17
- import { DescriptionList as re, DescriptionListActions as oe, DescriptionListItem as ae, DescriptionListLabel as ne, DescriptionListValue as ie, DescriptionListValueDescription as le } from "./components/ui/description-list/description-list.js";
18
- import { Sheet as Se, SheetBody as de, SheetClose as se, SheetCloseButton as ce, SheetContent as ue, SheetDescription as me, SheetFooter as be, SheetHeader as ge, SheetOverlay as De, SheetPortal as xe, SheetTitle as Te, SheetTrigger as Ie, Sheet as he, SheetBody as fe, SheetClose as Ce, SheetCloseButton as ye, SheetContent as Pe, SheetDescription as Me, SheetFooter as Be, SheetHeader as Le, SheetOverlay as we, SheetPortal as Ve, SheetTitle as ve, SheetTrigger as Fe, sheetVariants as He } from "./components/ui/sheet/sheet.js";
17
+ import { DescriptionList as te, DescriptionListActions as oe, DescriptionListItem as ae, DescriptionListLabel as ne, DescriptionListValue as ie, DescriptionListValueDescription as le } from "./components/ui/description-list/description-list.js";
18
+ import { Sheet as Se, SheetBody as de, SheetClose as se, SheetCloseButton as ce, SheetContent as ue, SheetDescription as me, SheetFooter as be, SheetHeader as ge, SheetOverlay as De, SheetPortal as xe, SheetTitle as Te, SheetTrigger as Ie, Sheet as he, SheetBody as fe, SheetClose as Ce, SheetCloseButton as ye, SheetContent as Pe, SheetDescription as Me, SheetFooter as Be, SheetHeader as Le, SheetOverlay as Ve, SheetPortal as we, SheetTitle as ve, SheetTrigger as Fe, sheetVariants as He } from "./components/ui/sheet/sheet.js";
19
19
  import { Dialog as Ae, DialogBody as Ge, DialogClose as We, DialogCloseButton as Re, DialogContent as ke, DialogDescription as Oe, DialogFooter as ze, DialogHeader as Ne, DialogOverlay as je, DialogPortal as qe, DialogTitle as Je, DialogTrigger as Ke, dialogContentVariants as Qe } from "./components/ui/dialog/dialog.js";
20
- import { DropdownMenu as Xe, DropdownMenuCheckboxItem as Ye, DropdownMenuContent as Ze, DropdownMenuGroup as _e, DropdownMenuItem as $e, DropdownMenuLabel as et, DropdownMenuPortal as tt, DropdownMenuRadioGroup as rt, DropdownMenuRadioItem as ot, DropdownMenuSeparator as at, DropdownMenuShortcut as nt, DropdownMenuSub as it, DropdownMenuSubContent as lt, DropdownMenuSubTrigger as pt, DropdownMenuTrigger as St } from "./components/ui/dropdown-menu/dropdown-menu.js";
21
- import { Empty as st, EmptyActions as ct, EmptyDescription as ut, EmptyHeader as mt, EmptyIcon as bt, EmptyLinks as gt, EmptyTitle as Dt } from "./components/ui/empty/empty.js";
22
- import { InputText as Tt, InputText as It } from "./components/ui/input-text/input-text.js";
23
- import { InputDatePicker as ft } from "./components/ui/input-date-picker/input-date-picker.js";
24
- import { InputSearch as yt, InputSearch as Pt } from "./components/ui/input-search/input-search.js";
25
- import { InputSelect as Bt, InputSelectContent as Lt, InputSelectDescription as wt, InputSelectError as Vt, InputSelectField as vt, InputSelectGroup as Ft, InputSelectItem as Ht, InputSelectLabel as Et, InputSelectSearch as At, InputSelectSection as Gt, InputSelectSectionLabel as Wt, InputSelectStatus as Rt, InputSelectTrigger as kt, InputSelectValue as Ot, InputSelect as zt, InputSelectContent as Nt, InputSelectSection as jt, InputSelectSectionLabel as qt, InputSelectItem as Jt, InputSelectTrigger as Kt, InputSelectValue as Qt } from "./components/ui/input-select/input-select.js";
26
- import { InputTextArea as Xt, InputTextArea as Yt } from "./components/ui/input-text-area/input-text-area.js";
27
- import { Label as _t, labelClassName as $t } from "./components/ui/label/label.js";
28
- import { Link as tr } from "./components/ui/link/link.js";
29
- import { Popover as or, PopoverContent as ar, PopoverPortal as nr, PopoverTrigger as ir } from "./components/ui/popover/popover.js";
30
- import { Progress as pr } from "./components/ui/progress/progress.js";
31
- import { Radio as dr, RadioGroup as sr } from "./components/ui/radio/radio.js";
32
- import { ResizableHandle as ur, ResizablePanel as mr, ResizablePanelGroup as br } from "./components/ui/resizable/resizable.js";
33
- import { SearchGlobal as Dr } from "./components/ui/search-global/search-global.js";
34
- import { Separator as Tr } from "./components/ui/separator/separator.js";
35
- import { SheetDetails as hr } from "./components/ui/sheet/sheet-details.js";
36
- import { SidebarPrimary as Cr, SidebarPrimaryCollapseTrigger as yr, SidebarPrimaryContent as Pr, SidebarPrimaryFooter as Mr, SidebarPrimaryHeader as Br, SidebarPrimaryMenu as Lr, SidebarPrimaryMenuItem as wr, SidebarPrimaryMenuItemExtras as Vr, SidebarPrimarySection as vr, sidebarPrimaryMenuItemVariants as Fr } from "./components/ui/sidebar-primary/sidebar-primary.js";
37
- import { SidebarSecondary as Er, SidebarSecondaryCollapseTrigger as Ar, SidebarSecondaryCollapsedBreadcrumb as Gr, SidebarSecondaryContent as Wr, SidebarSecondaryFooter as Rr, SidebarSecondaryHeader as kr, SidebarSecondaryMenu as Or, SidebarSecondaryMenuItem as zr, SidebarSecondaryMenuItemExtras as Nr, SidebarSecondaryMenuSub as jr, SidebarSecondaryMenuSubContent as qr, SidebarSecondaryMenuSubItem as Jr, SidebarSecondaryMenuSubTrigger as Kr, SidebarSecondarySection as Qr, SidebarSecondarySectionLabel as Ur, sidebarSecondaryMenuItemVariants as Xr } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
38
- import { Spinner as Zr, spinnerVariants as _r } from "./components/ui/spinner/spinner.js";
39
- import { Switch as eo } from "./components/ui/switch/switch.js";
40
- import { Table as ro, TableBody as oo, TableCaption as ao, TableCell as no, TableFooter as io, TableHead as lo, TableHeader as po, TableRow as So } from "./components/ui/table/table.js";
41
- import { Tabs as co, TabsContent as uo, TabsList as mo, TabsTrigger as bo } from "./components/ui/tabs/tabs.js";
42
- import { Toaster as Do, toast as xo } from "./components/ui/toast/toast.js";
43
- import { Tooltip as Io, TooltipContent as ho, TooltipProvider as fo, TooltipTrigger as Co } from "./components/ui/tooltip/tooltip.js";
44
- import { WidgetPlaceholder as Po, WidgetPlaceholderAction as Mo, WidgetPlaceholderContent as Bo, WidgetPlaceholderFooter as Lo, WidgetPlaceholderHeader as wo, WidgetPlaceholderIcon as Vo, WidgetPlaceholderImage as vo, WidgetPlaceholderText as Fo, WidgetPlaceholderTitle as Ho } from "./components/ui/widget-placeholder/widget-placeholder.js";
20
+ import { DropdownMenu as Xe, DropdownMenuCheckboxItem as Ye, DropdownMenuContent as Ze, DropdownMenuGroup as _e, DropdownMenuItem as $e, DropdownMenuLabel as er, DropdownMenuPortal as rr, DropdownMenuRadioGroup as tr, DropdownMenuRadioItem as or, DropdownMenuSeparator as ar, DropdownMenuShortcut as nr, DropdownMenuSub as ir, DropdownMenuSubContent as lr, DropdownMenuSubTrigger as pr, DropdownMenuTrigger as Sr } from "./components/ui/dropdown-menu/dropdown-menu.js";
21
+ import { Empty as sr, EmptyActions as cr, EmptyDescription as ur, EmptyHeader as mr, EmptyIcon as br, EmptyLinks as gr, EmptyTitle as Dr } from "./components/ui/empty/empty.js";
22
+ import { InputText as Tr, InputText as Ir } from "./components/ui/input-text/input-text.js";
23
+ import { InputDatePicker as fr } from "./components/ui/input-date-picker/input-date-picker.js";
24
+ import { InputSearch as yr, InputSearch as Pr } from "./components/ui/input-search/input-search.js";
25
+ import { InputSelect as Br, InputSelectContent as Lr, InputSelectDescription as Vr, InputSelectError as wr, InputSelectField as vr, InputSelectGroup as Fr, InputSelectItem as Hr, InputSelectLabel as Er, InputSelectSearch as Ar, InputSelectSection as Gr, InputSelectSectionLabel as Wr, InputSelectStatus as Rr, InputSelectTrigger as kr, InputSelectValue as Or, InputSelect as zr, InputSelectContent as Nr, InputSelectSection as jr, InputSelectSectionLabel as qr, InputSelectItem as Jr, InputSelectTrigger as Kr, InputSelectValue as Qr } from "./components/ui/input-select/input-select.js";
26
+ import { InputTextArea as Xr, InputTextArea as Yr } from "./components/ui/input-text-area/input-text-area.js";
27
+ import { Label as _r, labelClassName as $r } from "./components/ui/label/label.js";
28
+ import { Link as rt } from "./components/ui/link/link.js";
29
+ import { Popover as ot, PopoverContent as at, PopoverPortal as nt, PopoverTrigger as it } from "./components/ui/popover/popover.js";
30
+ import { Progress as pt } from "./components/ui/progress/progress.js";
31
+ import { ProgressCircle as dt, progressCircleVariants as st } from "./components/ui/progress-circle/progress-circle.js";
32
+ import { Radio as ut, RadioGroup as mt } from "./components/ui/radio/radio.js";
33
+ import { ResizableHandle as gt, ResizablePanel as Dt, ResizablePanelGroup as xt } from "./components/ui/resizable/resizable.js";
34
+ import { SearchGlobal as It } from "./components/ui/search-global/search-global.js";
35
+ import { Separator as ft } from "./components/ui/separator/separator.js";
36
+ import { SheetDetails as yt } from "./components/ui/sheet/sheet-details.js";
37
+ import { SidebarPrimary as Mt, SidebarPrimaryCollapseTrigger as Bt, SidebarPrimaryContent as Lt, SidebarPrimaryFooter as Vt, SidebarPrimaryHeader as wt, SidebarPrimaryMenu as vt, SidebarPrimaryMenuItem as Ft, SidebarPrimaryMenuItemExtras as Ht, SidebarPrimarySection as Et, sidebarPrimaryMenuItemVariants as At } from "./components/ui/sidebar-primary/sidebar-primary.js";
38
+ import { SidebarSecondary as Wt, SidebarSecondaryCollapseTrigger as Rt, SidebarSecondaryCollapsedBreadcrumb as kt, SidebarSecondaryContent as Ot, SidebarSecondaryFooter as zt, SidebarSecondaryHeader as Nt, SidebarSecondaryMenu as jt, SidebarSecondaryMenuItem as qt, SidebarSecondaryMenuItemExtras as Jt, SidebarSecondaryMenuSub as Kt, SidebarSecondaryMenuSubContent as Qt, SidebarSecondaryMenuSubItem as Ut, SidebarSecondaryMenuSubTrigger as Xt, SidebarSecondarySection as Yt, SidebarSecondarySectionLabel as Zt, sidebarSecondaryMenuItemVariants as _t } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
39
+ import { Spinner as eo, spinnerVariants as ro } from "./components/ui/spinner/spinner.js";
40
+ import { Switch as oo } from "./components/ui/switch/switch.js";
41
+ import { Table as no, TableBody as io, TableCaption as lo, TableCell as po, TableFooter as So, TableHead as so, TableHeader as co, TableRow as uo } from "./components/ui/table/table.js";
42
+ import { Tabs as bo, TabsContent as go, TabsList as Do, TabsTrigger as xo } from "./components/ui/tabs/tabs.js";
43
+ import { Toaster as Io, toast as ho } from "./components/ui/toast/toast.js";
44
+ import { Tooltip as Co, TooltipContent as yo, TooltipProvider as Po, TooltipTrigger as Mo } from "./components/ui/tooltip/tooltip.js";
45
+ import { WidgetPlaceholder as Lo, WidgetPlaceholderAction as Vo, WidgetPlaceholderContent as wo, WidgetPlaceholderFooter as vo, WidgetPlaceholderHeader as Fo, WidgetPlaceholderIcon as Ho, WidgetPlaceholderImage as Eo, WidgetPlaceholderText as Ao, WidgetPlaceholderTitle as Go } from "./components/ui/widget-placeholder/widget-placeholder.js";
45
46
  export {
46
47
  a as Avatar,
47
48
  n as AvatarFallback,
@@ -72,7 +73,7 @@ export {
72
73
  Y as DataTablePagination,
73
74
  _ as DataTableToolbar,
74
75
  ee as DataTableViewOptions,
75
- re as DescriptionList,
76
+ te as DescriptionList,
76
77
  oe as DescriptionListActions,
77
78
  ae as DescriptionListItem,
78
79
  ne as DescriptionListLabel,
@@ -107,145 +108,147 @@ export {
107
108
  Ze as DropdownMenuContent,
108
109
  _e as DropdownMenuGroup,
109
110
  $e as DropdownMenuItem,
110
- et as DropdownMenuLabel,
111
- tt as DropdownMenuPortal,
112
- rt as DropdownMenuRadioGroup,
113
- ot as DropdownMenuRadioItem,
114
- at as DropdownMenuSeparator,
115
- nt as DropdownMenuShortcut,
116
- it as DropdownMenuSub,
117
- lt as DropdownMenuSubContent,
118
- pt as DropdownMenuSubTrigger,
119
- St as DropdownMenuTrigger,
120
- st as Empty,
121
- ct as EmptyActions,
122
- ut as EmptyDescription,
123
- mt as EmptyHeader,
124
- bt as EmptyIcon,
125
- gt as EmptyLinks,
126
- Dt as EmptyTitle,
127
- Tt as Input,
128
- ft as InputDatePicker,
129
- yt as InputSearch,
130
- Bt as InputSelect,
131
- Lt as InputSelectContent,
132
- wt as InputSelectDescription,
133
- Vt as InputSelectError,
134
- vt as InputSelectField,
135
- Ft as InputSelectGroup,
136
- Ht as InputSelectItem,
137
- Et as InputSelectLabel,
138
- At as InputSelectSearch,
139
- Gt as InputSelectSection,
140
- Wt as InputSelectSectionLabel,
141
- Rt as InputSelectStatus,
142
- kt as InputSelectTrigger,
143
- Ot as InputSelectValue,
144
- It as InputText,
145
- Xt as InputTextArea,
146
- _t as Label,
147
- tr as Link,
148
- or as Popover,
149
- ar as PopoverContent,
150
- nr as PopoverPortal,
151
- ir as PopoverTrigger,
152
- pr as Progress,
153
- dr as Radio,
154
- sr as RadioGroup,
155
- ur as ResizableHandle,
156
- mr as ResizablePanel,
157
- br as ResizablePanelGroup,
158
- Pt as Search,
159
- Dr as SearchGlobal,
160
- zt as Select,
161
- Nt as SelectContent,
162
- jt as SelectGroup,
163
- qt as SelectGroupLabel,
164
- Jt as SelectItem,
165
- Kt as SelectTrigger,
166
- Qt as SelectValue,
167
- Tr as Separator,
111
+ er as DropdownMenuLabel,
112
+ rr as DropdownMenuPortal,
113
+ tr as DropdownMenuRadioGroup,
114
+ or as DropdownMenuRadioItem,
115
+ ar as DropdownMenuSeparator,
116
+ nr as DropdownMenuShortcut,
117
+ ir as DropdownMenuSub,
118
+ lr as DropdownMenuSubContent,
119
+ pr as DropdownMenuSubTrigger,
120
+ Sr as DropdownMenuTrigger,
121
+ sr as Empty,
122
+ cr as EmptyActions,
123
+ ur as EmptyDescription,
124
+ mr as EmptyHeader,
125
+ br as EmptyIcon,
126
+ gr as EmptyLinks,
127
+ Dr as EmptyTitle,
128
+ Tr as Input,
129
+ fr as InputDatePicker,
130
+ yr as InputSearch,
131
+ Br as InputSelect,
132
+ Lr as InputSelectContent,
133
+ Vr as InputSelectDescription,
134
+ wr as InputSelectError,
135
+ vr as InputSelectField,
136
+ Fr as InputSelectGroup,
137
+ Hr as InputSelectItem,
138
+ Er as InputSelectLabel,
139
+ Ar as InputSelectSearch,
140
+ Gr as InputSelectSection,
141
+ Wr as InputSelectSectionLabel,
142
+ Rr as InputSelectStatus,
143
+ kr as InputSelectTrigger,
144
+ Or as InputSelectValue,
145
+ Ir as InputText,
146
+ Xr as InputTextArea,
147
+ _r as Label,
148
+ rt as Link,
149
+ ot as Popover,
150
+ at as PopoverContent,
151
+ nt as PopoverPortal,
152
+ it as PopoverTrigger,
153
+ pt as Progress,
154
+ dt as ProgressCircle,
155
+ ut as Radio,
156
+ mt as RadioGroup,
157
+ gt as ResizableHandle,
158
+ Dt as ResizablePanel,
159
+ xt as ResizablePanelGroup,
160
+ Pr as Search,
161
+ It as SearchGlobal,
162
+ zr as Select,
163
+ Nr as SelectContent,
164
+ jr as SelectGroup,
165
+ qr as SelectGroupLabel,
166
+ Jr as SelectItem,
167
+ Kr as SelectTrigger,
168
+ Qr as SelectValue,
169
+ ft as Separator,
168
170
  he as Sheet,
169
171
  fe as SheetBody,
170
172
  Ce as SheetClose,
171
173
  ye as SheetCloseButton,
172
174
  Pe as SheetContent,
173
175
  Me as SheetDescription,
174
- hr as SheetDetails,
176
+ yt as SheetDetails,
175
177
  Be as SheetFooter,
176
178
  Le as SheetHeader,
177
- we as SheetOverlay,
178
- Ve as SheetPortal,
179
+ Ve as SheetOverlay,
180
+ we as SheetPortal,
179
181
  ve as SheetTitle,
180
182
  Fe as SheetTrigger,
181
- Cr as SidebarPrimary,
182
- yr as SidebarPrimaryCollapseTrigger,
183
- Pr as SidebarPrimaryContent,
184
- Mr as SidebarPrimaryFooter,
185
- Br as SidebarPrimaryHeader,
186
- Lr as SidebarPrimaryMenu,
187
- wr as SidebarPrimaryMenuItem,
188
- Vr as SidebarPrimaryMenuItemExtras,
189
- vr as SidebarPrimarySection,
190
- Er as SidebarSecondary,
191
- Ar as SidebarSecondaryCollapseTrigger,
192
- Gr as SidebarSecondaryCollapsedBreadcrumb,
193
- Wr as SidebarSecondaryContent,
194
- Rr as SidebarSecondaryFooter,
195
- kr as SidebarSecondaryHeader,
196
- Or as SidebarSecondaryMenu,
197
- zr as SidebarSecondaryMenuItem,
198
- Nr as SidebarSecondaryMenuItemExtras,
199
- jr as SidebarSecondaryMenuSub,
200
- qr as SidebarSecondaryMenuSubContent,
201
- Jr as SidebarSecondaryMenuSubItem,
202
- Kr as SidebarSecondaryMenuSubTrigger,
203
- Qr as SidebarSecondarySection,
204
- Ur as SidebarSecondarySectionLabel,
205
- Zr as Spinner,
206
- eo as Switch,
207
- ro as Table,
208
- oo as TableBody,
209
- ao as TableCaption,
210
- no as TableCell,
211
- io as TableFooter,
212
- lo as TableHead,
213
- po as TableHeader,
214
- So as TableRow,
215
- co as Tabs,
216
- uo as TabsContent,
217
- mo as TabsList,
218
- bo as TabsTrigger,
183
+ Mt as SidebarPrimary,
184
+ Bt as SidebarPrimaryCollapseTrigger,
185
+ Lt as SidebarPrimaryContent,
186
+ Vt as SidebarPrimaryFooter,
187
+ wt as SidebarPrimaryHeader,
188
+ vt as SidebarPrimaryMenu,
189
+ Ft as SidebarPrimaryMenuItem,
190
+ Ht as SidebarPrimaryMenuItemExtras,
191
+ Et as SidebarPrimarySection,
192
+ Wt as SidebarSecondary,
193
+ Rt as SidebarSecondaryCollapseTrigger,
194
+ kt as SidebarSecondaryCollapsedBreadcrumb,
195
+ Ot as SidebarSecondaryContent,
196
+ zt as SidebarSecondaryFooter,
197
+ Nt as SidebarSecondaryHeader,
198
+ jt as SidebarSecondaryMenu,
199
+ qt as SidebarSecondaryMenuItem,
200
+ Jt as SidebarSecondaryMenuItemExtras,
201
+ Kt as SidebarSecondaryMenuSub,
202
+ Qt as SidebarSecondaryMenuSubContent,
203
+ Ut as SidebarSecondaryMenuSubItem,
204
+ Xt as SidebarSecondaryMenuSubTrigger,
205
+ Yt as SidebarSecondarySection,
206
+ Zt as SidebarSecondarySectionLabel,
207
+ eo as Spinner,
208
+ oo as Switch,
209
+ no as Table,
210
+ io as TableBody,
211
+ lo as TableCaption,
212
+ po as TableCell,
213
+ So as TableFooter,
214
+ so as TableHead,
215
+ co as TableHeader,
216
+ uo as TableRow,
217
+ bo as Tabs,
218
+ go as TabsContent,
219
+ Do as TabsList,
220
+ xo as TabsTrigger,
219
221
  s as Tag,
220
- Yt as Textarea,
221
- Do as Toaster,
222
- Io as Tooltip,
223
- ho as TooltipContent,
224
- fo as TooltipProvider,
225
- Co as TooltipTrigger,
226
- Po as WidgetPlaceholder,
227
- Mo as WidgetPlaceholderAction,
228
- Bo as WidgetPlaceholderContent,
229
- Lo as WidgetPlaceholderFooter,
230
- wo as WidgetPlaceholderHeader,
231
- Vo as WidgetPlaceholderIcon,
232
- vo as WidgetPlaceholderImage,
233
- Fo as WidgetPlaceholderText,
234
- Ho as WidgetPlaceholderTitle,
222
+ Yr as Textarea,
223
+ Io as Toaster,
224
+ Co as Tooltip,
225
+ yo as TooltipContent,
226
+ Po as TooltipProvider,
227
+ Mo as TooltipTrigger,
228
+ Lo as WidgetPlaceholder,
229
+ Vo as WidgetPlaceholderAction,
230
+ wo as WidgetPlaceholderContent,
231
+ vo as WidgetPlaceholderFooter,
232
+ Fo as WidgetPlaceholderHeader,
233
+ Ho as WidgetPlaceholderIcon,
234
+ Eo as WidgetPlaceholderImage,
235
+ Ao as WidgetPlaceholderText,
236
+ Go as WidgetPlaceholderTitle,
235
237
  p as avatarVariants,
236
238
  M as buttonIconVariants,
237
- w as buttonMenuVariants,
239
+ V as buttonMenuVariants,
238
240
  C as buttonVariants,
239
241
  k as cardFilterVariants,
240
242
  q as chipVariants,
241
- r as cn,
243
+ t as cn,
242
244
  Qe as dialogContentVariants,
243
- $t as labelClassName,
245
+ $r as labelClassName,
246
+ st as progressCircleVariants,
244
247
  He as sheetVariants,
245
- Fr as sidebarPrimaryMenuItemVariants,
246
- Xr as sidebarSecondaryMenuItemVariants,
247
- _r as spinnerVariants,
248
+ At as sidebarPrimaryMenuItemVariants,
249
+ _t as sidebarSecondaryMenuItemVariants,
250
+ ro as spinnerVariants,
248
251
  c as tagVariants,
249
- xo as toast
252
+ ho as toast
250
253
  };
251
254
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}