@devalok/shilp-sutra 0.6.0 → 0.6.2
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/composed/content-card.d.ts +1 -1
- package/dist/composed/index.d.ts +1 -0
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +31 -29
- package/dist/composed/priority-indicator.d.ts +1 -1
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +15 -15
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +17 -8
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +28 -14
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/sidebar.d.ts +1 -1
- package/dist/ui/stat-card.d.ts +4 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +12 -11
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle.d.ts +2 -2
- package/llms-full.txt +1753 -0
- package/llms.txt +180 -0
- package/package.json +528 -210
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const contentCardVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
5
5
|
padding?: "default" | "none" | "compact" | "spacious" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ContentCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof contentCardVariants> {
|
package/dist/composed/index.d.ts
CHANGED
|
@@ -44,4 +44,5 @@ export { SimpleTooltip } from './simple-tooltip';
|
|
|
44
44
|
export type { SimpleTooltipProps } from './simple-tooltip';
|
|
45
45
|
export { ScheduleView } from './schedule-view';
|
|
46
46
|
export type { ScheduleViewProps, ScheduleEvent } from './schedule-view';
|
|
47
|
+
export { getInitials } from './lib/string-utils';
|
|
47
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE9M,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE9M,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/composed/index.js
CHANGED
|
@@ -4,56 +4,58 @@ import { ContentCard as a, contentCardVariants as m } from "./content-card.js";
|
|
|
4
4
|
import { StatusBadge as i, statusBadgeVariants as x } from "./status-badge.js";
|
|
5
5
|
import { EmptyState as n } from "./empty-state.js";
|
|
6
6
|
import { AvatarGroup as d } from "./avatar-group.js";
|
|
7
|
-
import { PriorityIndicator as
|
|
7
|
+
import { PriorityIndicator as s } from "./priority-indicator.js";
|
|
8
8
|
import { RichTextEditor as P, RichTextViewer as S } from "./rich-text-editor.js";
|
|
9
|
-
import { BoardSkeleton as T, CardSkeleton as
|
|
9
|
+
import { BoardSkeleton as T, CardSkeleton as g, ListSkeleton as D, TableSkeleton as h } from "./loading-skeleton.js";
|
|
10
10
|
import { DashboardSkeleton as b, ProjectListSkeleton as V, TaskDetailSkeleton as y } from "./page-skeletons.js";
|
|
11
11
|
import { ErrorDisplay as E } from "./error-boundary.js";
|
|
12
12
|
import { GlobalLoading as L } from "./global-loading.js";
|
|
13
13
|
import { CommandPalette as w } from "./command-palette.js";
|
|
14
|
-
import { MemberPicker as
|
|
15
|
-
import { SimpleTooltip as
|
|
16
|
-
import { ScheduleView as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
14
|
+
import { MemberPicker as M } from "./member-picker.js";
|
|
15
|
+
import { SimpleTooltip as v } from "./simple-tooltip.js";
|
|
16
|
+
import { ScheduleView as H } from "./schedule-view.js";
|
|
17
|
+
import { getInitials as q } from "./lib/string-utils.js";
|
|
18
|
+
import { CalendarGrid as F } from "./date-picker/calendar-grid.js";
|
|
19
|
+
import { DatePicker as K } from "./date-picker/date-picker.js";
|
|
20
|
+
import { DateRangePicker as O } from "./date-picker/date-range-picker.js";
|
|
21
|
+
import { DateTimePicker as U } from "./date-picker/date-time-picker.js";
|
|
22
|
+
import { MonthPicker as X } from "./date-picker/month-picker.js";
|
|
23
|
+
import { Presets as _ } from "./date-picker/presets.js";
|
|
24
|
+
import { TimePicker as ee } from "./date-picker/time-picker.js";
|
|
25
|
+
import { YearPicker as oe } from "./date-picker/year-picker.js";
|
|
26
|
+
import { useCalendar as ae } from "./date-picker/use-calendar.js";
|
|
26
27
|
export {
|
|
27
28
|
d as AvatarGroup,
|
|
28
29
|
T as BoardSkeleton,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
F as CalendarGrid,
|
|
31
|
+
g as CardSkeleton,
|
|
31
32
|
w as CommandPalette,
|
|
32
33
|
a as ContentCard,
|
|
33
34
|
b as DashboardSkeleton,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
K as DatePicker,
|
|
36
|
+
O as DateRangePicker,
|
|
37
|
+
U as DateTimePicker,
|
|
37
38
|
n as EmptyState,
|
|
38
39
|
E as ErrorDisplay,
|
|
39
40
|
L as GlobalLoading,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
D as ListSkeleton,
|
|
42
|
+
M as MemberPicker,
|
|
43
|
+
X as MonthPicker,
|
|
43
44
|
o as PageHeader,
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
_ as Presets,
|
|
46
|
+
s as PriorityIndicator,
|
|
46
47
|
V as ProjectListSkeleton,
|
|
47
48
|
P as RichTextEditor,
|
|
48
49
|
S as RichTextViewer,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
H as ScheduleView,
|
|
51
|
+
v as SimpleTooltip,
|
|
51
52
|
i as StatusBadge,
|
|
52
53
|
h as TableSkeleton,
|
|
53
54
|
y as TaskDetailSkeleton,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
ee as TimePicker,
|
|
56
|
+
oe as YearPicker,
|
|
56
57
|
m as contentCardVariants,
|
|
58
|
+
q as getInitials,
|
|
57
59
|
x as statusBadgeVariants,
|
|
58
|
-
|
|
60
|
+
ae as useCalendar
|
|
59
61
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export type Priority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
|
3
|
+
export type Priority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT' | 'low' | 'medium' | 'high' | 'urgent';
|
|
4
4
|
declare const priorityVariants: (props?: ({
|
|
5
5
|
display?: "compact" | "full" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priority-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/priority-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"priority-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/priority-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAA;AAgClG,QAAA,MAAM,gBAAgB;;8EAarB,CAAA;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAC5D,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,QAAA,MAAM,iBAAiB,+FA2CtB,CAAA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { cva as
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { cva as f } from "class-variance-authority";
|
|
4
4
|
import { cn as e } from "../ui/lib/utils.js";
|
|
5
|
-
import { IconAlertTriangle as
|
|
6
|
-
const
|
|
5
|
+
import { IconAlertTriangle as g, IconArrowUp as b, IconMinus as p, IconArrowDown as x } from "@tabler/icons-react";
|
|
6
|
+
const u = {
|
|
7
7
|
LOW: {
|
|
8
8
|
icon: x,
|
|
9
9
|
color: "text-category-slate-text",
|
|
@@ -11,24 +11,24 @@ const p = {
|
|
|
11
11
|
label: "Low"
|
|
12
12
|
},
|
|
13
13
|
MEDIUM: {
|
|
14
|
-
icon:
|
|
14
|
+
icon: p,
|
|
15
15
|
color: "text-warning-text",
|
|
16
16
|
bgColor: "bg-warning-surface",
|
|
17
17
|
label: "Medium"
|
|
18
18
|
},
|
|
19
19
|
HIGH: {
|
|
20
|
-
icon:
|
|
20
|
+
icon: b,
|
|
21
21
|
color: "text-error-text",
|
|
22
22
|
bgColor: "bg-error-surface",
|
|
23
23
|
label: "High"
|
|
24
24
|
},
|
|
25
25
|
URGENT: {
|
|
26
|
-
icon:
|
|
26
|
+
icon: g,
|
|
27
27
|
color: "text-error-text",
|
|
28
28
|
bgColor: "bg-error-surface",
|
|
29
29
|
label: "Urgent"
|
|
30
30
|
}
|
|
31
|
-
},
|
|
31
|
+
}, y = f(
|
|
32
32
|
"inline-flex items-center gap-ds-02b font-body",
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
@@ -41,9 +41,9 @@ const p = {
|
|
|
41
41
|
display: "full"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
),
|
|
44
|
+
), w = d.forwardRef(
|
|
45
45
|
({ priority: s, display: t, className: i, ...c }, n) => {
|
|
46
|
-
const o =
|
|
46
|
+
const a = s.toUpperCase(), o = u[a], l = o.icon;
|
|
47
47
|
return t === "compact" ? /* @__PURE__ */ r(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
@@ -57,11 +57,11 @@ const p = {
|
|
|
57
57
|
...c,
|
|
58
58
|
children: /* @__PURE__ */ r(l, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
|
|
59
59
|
}
|
|
60
|
-
) : /* @__PURE__ */
|
|
60
|
+
) : /* @__PURE__ */ m(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
ref: n,
|
|
64
|
-
className: e(
|
|
64
|
+
className: e(y({ display: t }), i),
|
|
65
65
|
...c,
|
|
66
66
|
children: [
|
|
67
67
|
/* @__PURE__ */ r(
|
|
@@ -80,7 +80,7 @@ const p = {
|
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
|
|
83
|
+
w.displayName = "PriorityIndicator";
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
w as PriorityIndicator
|
|
86
86
|
};
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
|
-
variant?: "solid" | "outline" | "subtle" | null | undefined;
|
|
5
|
+
variant?: "solid" | "outline" | "destructive" | "subtle" | "secondary" | null | undefined;
|
|
6
6
|
color?: "accent" | "default" | "error" | "warning" | "success" | "cyan" | "indigo" | "orange" | "teal" | "info" | "brand" | "amber" | "slate" | "emerald" | null | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
package/dist/ui/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ui/badge.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;;;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ui/badge.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;;;8EA2FlB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC1D,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,oFAwBV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { IconX as
|
|
2
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { IconX as b } from "@tabler/icons-react";
|
|
4
4
|
import * as g from "react";
|
|
5
5
|
import { cva as x } from "class-variance-authority";
|
|
6
6
|
import { cn as m } from "./lib/utils.js";
|
|
@@ -10,8 +10,12 @@ const u = x(
|
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
subtle: "",
|
|
13
|
+
secondary: "",
|
|
14
|
+
// alias → subtle
|
|
13
15
|
solid: "",
|
|
14
|
-
outline: ""
|
|
16
|
+
outline: "",
|
|
17
|
+
destructive: ""
|
|
18
|
+
// alias → solid + error
|
|
15
19
|
},
|
|
16
20
|
color: {
|
|
17
21
|
default: "",
|
|
@@ -38,6 +42,11 @@ const u = x(
|
|
|
38
42
|
compoundVariants: [
|
|
39
43
|
// subtle (surface bg)
|
|
40
44
|
{ variant: "subtle", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
45
|
+
// "secondary" alias → same as subtle + default
|
|
46
|
+
{ variant: "secondary", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
47
|
+
// "destructive" alias → solid + error
|
|
48
|
+
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color border-transparent" },
|
|
49
|
+
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color border-transparent" },
|
|
41
50
|
{ variant: "subtle", color: "info", className: "bg-info-surface text-info-text border-info-border" },
|
|
42
51
|
{ variant: "subtle", color: "success", className: "bg-success-surface text-success-text border-success-border" },
|
|
43
52
|
{ variant: "subtle", color: "error", className: "bg-error-surface text-error-text border-error-border" },
|
|
@@ -88,8 +97,8 @@ const u = x(
|
|
|
88
97
|
size: "md"
|
|
89
98
|
}
|
|
90
99
|
}
|
|
91
|
-
),
|
|
92
|
-
({ className: t, variant: a, color: o, size: s, dot: n, onDismiss: e, children: c, ...l }, i) => /* @__PURE__ */
|
|
100
|
+
), v = g.forwardRef(
|
|
101
|
+
({ className: t, variant: a, color: o, size: s, dot: n, onDismiss: e, children: c, ...l }, i) => /* @__PURE__ */ d("span", { ref: i, className: m(u({ variant: a, color: o, size: s }), t), ...l, children: [
|
|
93
102
|
n && /* @__PURE__ */ r(
|
|
94
103
|
"span",
|
|
95
104
|
{
|
|
@@ -105,13 +114,13 @@ const u = x(
|
|
|
105
114
|
onClick: e,
|
|
106
115
|
className: "ml-ds-01 min-h-6 min-w-6 flex items-center justify-center rounded-ds-full text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
|
|
107
116
|
"aria-label": "Remove",
|
|
108
|
-
children: /* @__PURE__ */ r(
|
|
117
|
+
children: /* @__PURE__ */ r(b, { className: "h-ico-sm w-ico-sm" })
|
|
109
118
|
}
|
|
110
119
|
)
|
|
111
120
|
] })
|
|
112
121
|
);
|
|
113
|
-
|
|
122
|
+
v.displayName = "Badge";
|
|
114
123
|
export {
|
|
115
|
-
|
|
124
|
+
v as Badge,
|
|
116
125
|
u as badgeVariants
|
|
117
126
|
};
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "link" | "solid" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
variant?: "link" | "solid" | "default" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
6
6
|
color?: "default" | "error" | null | undefined;
|
|
7
|
-
size?: "sm" | "md" | "lg" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
7
|
+
size?: "sm" | "md" | "lg" | "icon" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Props for Button — the primary action component with a two-axis variant system,
|
package/dist/ui/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,eAAO,MAAM,cAAc;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,eAAO,MAAM,cAAc;;;;8EAoD1B,CAAA;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,EAClE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yFAAyF;IACzF,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;IAC5C,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,MAAM,uFAgHX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/ui/button.js
CHANGED
|
@@ -4,7 +4,7 @@ import { cva as B } from "class-variance-authority";
|
|
|
4
4
|
import { Root as R, Slottable as E } from "../primitives/react-slot.js";
|
|
5
5
|
import * as G from "react";
|
|
6
6
|
import { useButtonGroup as M } from "./button-group.js";
|
|
7
|
-
import { cn as
|
|
7
|
+
import { cn as t } from "./lib/utils.js";
|
|
8
8
|
import { Spinner as q } from "./spinner.js";
|
|
9
9
|
const x = B(
|
|
10
10
|
"inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent transition-[color,background-color,border-color,box-shadow] duration-fast-01 ease-productive-standard focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]",
|
|
@@ -12,8 +12,12 @@ const x = B(
|
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
14
|
solid: "",
|
|
15
|
+
default: "",
|
|
16
|
+
// alias → solid
|
|
15
17
|
outline: "",
|
|
16
18
|
ghost: "",
|
|
19
|
+
destructive: "",
|
|
20
|
+
// alias → solid + error
|
|
17
21
|
link: "text-text-link underline-offset-4 hover:underline active:opacity-[0.8]"
|
|
18
22
|
},
|
|
19
23
|
color: {
|
|
@@ -24,6 +28,8 @@ const x = B(
|
|
|
24
28
|
sm: "h-ds-sm rounded-ds-md px-ds-04 text-ds-sm",
|
|
25
29
|
md: "h-ds-md rounded-ds-md px-ds-05 text-ds-md",
|
|
26
30
|
lg: "h-ds-lg rounded-ds-lg px-ds-06 text-ds-base",
|
|
31
|
+
icon: "h-ds-md w-ds-md rounded-ds-md",
|
|
32
|
+
// alias → icon-md
|
|
27
33
|
"icon-sm": "h-ds-sm w-ds-sm rounded-ds-md",
|
|
28
34
|
"icon-md": "h-ds-md w-ds-md rounded-ds-md",
|
|
29
35
|
"icon-lg": "h-ds-lg w-ds-lg rounded-ds-lg"
|
|
@@ -32,6 +38,12 @@ const x = B(
|
|
|
32
38
|
compoundVariants: [
|
|
33
39
|
// solid + default (primary)
|
|
34
40
|
{ variant: "solid", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
41
|
+
// "default" alias → same as solid + default
|
|
42
|
+
{ variant: "default", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
43
|
+
{ variant: "default", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
44
|
+
// "destructive" alias → solid + error
|
|
45
|
+
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
46
|
+
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
35
47
|
// solid + error
|
|
36
48
|
{ variant: "solid", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
37
49
|
// outline + default (secondary)
|
|
@@ -53,6 +65,7 @@ const x = B(
|
|
|
53
65
|
sm: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
54
66
|
md: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
55
67
|
lg: "h-ico-md w-ico-md [&>svg]:h-ico-md [&>svg]:w-ico-md",
|
|
68
|
+
icon: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
56
69
|
"icon-sm": "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
57
70
|
"icon-md": "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
58
71
|
"icon-lg": "h-ico-md w-ico-md [&>svg]:h-ico-md [&>svg]:w-ico-md"
|
|
@@ -60,6 +73,7 @@ const x = B(
|
|
|
60
73
|
sm: "sm",
|
|
61
74
|
md: "sm",
|
|
62
75
|
lg: "md",
|
|
76
|
+
icon: "sm",
|
|
63
77
|
"icon-sm": "sm",
|
|
64
78
|
"icon-md": "sm",
|
|
65
79
|
"icon-lg": "md"
|
|
@@ -67,46 +81,46 @@ const x = B(
|
|
|
67
81
|
({
|
|
68
82
|
className: c,
|
|
69
83
|
variant: w,
|
|
70
|
-
color:
|
|
71
|
-
size:
|
|
84
|
+
color: N,
|
|
85
|
+
size: y,
|
|
72
86
|
asChild: z = !1,
|
|
73
87
|
startIcon: d,
|
|
74
88
|
endIcon: l,
|
|
75
89
|
loading: e = !1,
|
|
76
|
-
loadingPosition:
|
|
90
|
+
loadingPosition: s = "start",
|
|
77
91
|
fullWidth: m = !1,
|
|
78
92
|
disabled: v,
|
|
79
93
|
children: i,
|
|
80
94
|
...u
|
|
81
|
-
},
|
|
82
|
-
const
|
|
95
|
+
}, h) => {
|
|
96
|
+
const a = M(), b = w ?? a.variant, f = N ?? a.color, o = y ?? a.size ?? "md", g = A[o], S = D[o], n = e ? /* @__PURE__ */ r(q, { size: S }) : null;
|
|
83
97
|
if (z) {
|
|
84
98
|
const V = {
|
|
85
|
-
className:
|
|
86
|
-
x({ variant: b, color:
|
|
99
|
+
className: t(
|
|
100
|
+
x({ variant: b, color: f, size: o }),
|
|
87
101
|
m && "w-full",
|
|
88
102
|
c
|
|
89
103
|
),
|
|
90
|
-
ref:
|
|
104
|
+
ref: h,
|
|
91
105
|
disabled: v || e,
|
|
92
106
|
"aria-busy": e || void 0,
|
|
93
107
|
...u
|
|
94
108
|
};
|
|
95
109
|
return /* @__PURE__ */ r(R, { ...V, children: /* @__PURE__ */ r(E, { children: i }) });
|
|
96
110
|
}
|
|
97
|
-
const j = () => e &&
|
|
111
|
+
const j = () => e && s === "start" ? n : d ? /* @__PURE__ */ r("span", { className: t("inline-flex shrink-0 items-center justify-center", g), children: d }) : null, k = () => e && s === "end" ? n : l ? /* @__PURE__ */ r("span", { className: t("inline-flex shrink-0 items-center justify-center", g), children: l }) : null, C = () => e && s === "center" ? /* @__PURE__ */ p("span", { className: "relative inline-flex items-center justify-center", children: [
|
|
98
112
|
/* @__PURE__ */ r("span", { className: "invisible", children: i }),
|
|
99
|
-
/* @__PURE__ */ r("span", { className: "absolute inset-0 flex items-center justify-center", children:
|
|
113
|
+
/* @__PURE__ */ r("span", { className: "absolute inset-0 flex items-center justify-center", children: n })
|
|
100
114
|
] }) : i;
|
|
101
115
|
return /* @__PURE__ */ p(
|
|
102
116
|
"button",
|
|
103
117
|
{
|
|
104
|
-
className:
|
|
105
|
-
x({ variant: b, color:
|
|
118
|
+
className: t(
|
|
119
|
+
x({ variant: b, color: f, size: o }),
|
|
106
120
|
m && "w-full",
|
|
107
121
|
c
|
|
108
122
|
),
|
|
109
|
-
ref:
|
|
123
|
+
ref: h,
|
|
110
124
|
disabled: v || e,
|
|
111
125
|
"aria-busy": e || void 0,
|
|
112
126
|
...u,
|
package/dist/ui/card.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const cardVariants: (props?: ({
|
|
5
|
-
variant?: "flat" | "
|
|
5
|
+
variant?: "flat" | "default" | "outline" | "elevated" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
/**
|
|
8
8
|
* Props for Card — a general-purpose content container with 4 elevation/style variants and
|
package/dist/ui/sidebar.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare const SidebarMenuButton: import('react').ForwardRefExoticComponent<Omit<
|
|
|
46
46
|
isActive?: boolean;
|
|
47
47
|
tooltip?: string | ComponentProps<typeof TooltipContent>;
|
|
48
48
|
} & VariantProps<(props?: ({
|
|
49
|
-
variant?: "
|
|
49
|
+
variant?: "default" | "outline" | null | undefined;
|
|
50
50
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
51
51
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
52
52
|
declare const SidebarMenuAction: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
package/dist/ui/stat-card.d.ts
CHANGED
|
@@ -41,7 +41,10 @@ import * as React from 'react';
|
|
|
41
41
|
* // These are just a few ways — feel free to combine props creatively!
|
|
42
42
|
*/
|
|
43
43
|
export interface StatCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
44
|
-
label
|
|
44
|
+
/** Heading text for the metric. `title` is an alias for `label`. */
|
|
45
|
+
label?: string;
|
|
46
|
+
/** Alias for `label` — use whichever feels natural. */
|
|
47
|
+
title?: string;
|
|
45
48
|
value: string | number;
|
|
46
49
|
delta?: {
|
|
47
50
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/ui/stat-card.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,KAAK,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/ui/stat-card.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;KACrC,CAAA;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,QAAQ,sFAiEb,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
package/dist/ui/stat-card.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { IconTrendingUp as
|
|
3
|
+
import { IconTrendingUp as h, IconTrendingDown as f, IconMinus as g } from "@tabler/icons-react";
|
|
4
4
|
import * as m from "react";
|
|
5
5
|
import { cn as d } from "./lib/utils.js";
|
|
6
|
-
const
|
|
7
|
-
({ className: o, label: c,
|
|
8
|
-
|
|
6
|
+
const w = m.forwardRef(
|
|
7
|
+
({ className: o, label: c, title: a, value: u, delta: e, icon: r, loading: b, ...t }, i) => {
|
|
8
|
+
const l = a ?? c ?? "";
|
|
9
|
+
if (b)
|
|
9
10
|
return /* @__PURE__ */ n(
|
|
10
11
|
"div",
|
|
11
12
|
{
|
|
@@ -22,7 +23,7 @@ const f = m.forwardRef(
|
|
|
22
23
|
]
|
|
23
24
|
}
|
|
24
25
|
);
|
|
25
|
-
const
|
|
26
|
+
const p = (e == null ? void 0 : e.direction) === "up" ? h : (e == null ? void 0 : e.direction) === "down" ? f : g, x = (e == null ? void 0 : e.direction) === "up" ? "text-success" : (e == null ? void 0 : e.direction) === "down" ? "text-error" : "text-text-secondary";
|
|
26
27
|
return /* @__PURE__ */ n(
|
|
27
28
|
"div",
|
|
28
29
|
{
|
|
@@ -34,12 +35,12 @@ const f = m.forwardRef(
|
|
|
34
35
|
...t,
|
|
35
36
|
children: [
|
|
36
37
|
/* @__PURE__ */ n("div", { className: "flex items-center justify-between mb-ds-04", children: [
|
|
37
|
-
/* @__PURE__ */ s("p", { className: "text-ds-md font-medium text-text-secondary", children:
|
|
38
|
+
/* @__PURE__ */ s("p", { className: "text-ds-md font-medium text-text-secondary", children: l }),
|
|
38
39
|
r && /* @__PURE__ */ s("span", { className: "text-text-secondary", "aria-hidden": "true", children: typeof r == "function" ? m.createElement(r, { className: "h-ico-lg w-ico-lg" }) : r })
|
|
39
40
|
] }),
|
|
40
|
-
/* @__PURE__ */ s("p", { className: "text-ds-3xl font-semibold text-text-primary tabular-nums", children:
|
|
41
|
-
e && /* @__PURE__ */ n("div", { className: d("mt-ds-03 flex items-center gap-ds-02 text-ds-sm font-medium",
|
|
42
|
-
/* @__PURE__ */ s(
|
|
41
|
+
/* @__PURE__ */ s("p", { className: "text-ds-3xl font-semibold text-text-primary tabular-nums", children: u }),
|
|
42
|
+
e && /* @__PURE__ */ n("div", { className: d("mt-ds-03 flex items-center gap-ds-02 text-ds-sm font-medium", x), children: [
|
|
43
|
+
/* @__PURE__ */ s(p, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" }),
|
|
43
44
|
/* @__PURE__ */ s("span", { children: e.value })
|
|
44
45
|
] })
|
|
45
46
|
]
|
|
@@ -47,7 +48,7 @@ const f = m.forwardRef(
|
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
50
|
);
|
|
50
|
-
|
|
51
|
+
w.displayName = "StatCard";
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
w as StatCard
|
|
53
54
|
};
|
|
@@ -4,11 +4,11 @@ import { toggleVariants } from './toggle';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as ToggleGroupPrimitive from '../primitives/react-toggle-group';
|
|
6
6
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "default" | "outline" | null | undefined;
|
|
8
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "default" | "outline" | null | undefined;
|
|
12
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
export type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as TogglePrimitive from '../primitives/react-toggle';
|
|
5
5
|
declare const toggleVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "outline" | null | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "default" | "outline" | null | undefined;
|
|
11
11
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
export type ToggleProps = React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>;
|