@devalok/shilp-sutra 0.20.1 → 0.22.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/primitives.js +2 -2
- package/dist/_chunks/use-calendar.js +115 -115
- package/dist/_chunks/vendor-utils.js +1230 -1178
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +78 -78
- package/dist/composed/avatar-group.d.ts +13 -1
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +127 -50
- package/dist/composed/command-palette.js +50 -50
- package/dist/composed/content-card.js +10 -10
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +58 -48
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +11 -10
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +32 -29
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +28 -17
- package/dist/composed/page-header.js +25 -25
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +60 -36
- package/dist/composed/rich-text-editor.js +104 -104
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/composed/schedule-view.js +53 -45
- package/dist/composed/status-badge.js +16 -16
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +35 -31
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +119 -111
- package/dist/shell/sidebar.js +2 -2
- package/dist/shell/top-bar.js +9 -9
- package/dist/tailwind/index.cjs +30 -3
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +30 -3
- package/dist/tokens/semantic.css +10 -10
- package/dist/tokens/typography-semantic.css +3 -3
- package/dist/ui/accordion.js +22 -22
- package/dist/ui/alert.js +8 -8
- package/dist/ui/avatar.d.ts +23 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +124 -60
- package/dist/ui/badge.js +5 -5
- package/dist/ui/banner.js +18 -18
- package/dist/ui/breadcrumb.js +23 -23
- package/dist/ui/button.js +22 -22
- package/dist/ui/card.js +16 -16
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +72 -25
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +9 -9
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +46 -45
- package/dist/ui/dialog.js +17 -17
- package/dist/ui/dropdown-menu.js +22 -22
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +35 -29
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input.js +20 -20
- package/dist/ui/label.js +15 -15
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +2 -2
- package/dist/ui/link.js +14 -14
- package/dist/ui/number-input.js +36 -36
- package/dist/ui/pagination.js +14 -14
- package/dist/ui/progress.js +6 -6
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +24 -12
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +25 -19
- package/dist/ui/select.js +15 -15
- package/dist/ui/separator.d.ts +10 -2
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +16 -15
- package/dist/ui/sheet.js +7 -7
- package/dist/ui/sidebar.d.ts +1 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +22 -22
- package/dist/ui/skeleton.js +5 -5
- package/dist/ui/slider.js +7 -7
- package/dist/ui/stat-card.js +19 -19
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +14 -13
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +60 -51
- package/dist/ui/textarea.js +15 -15
- package/dist/ui/toast.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +49 -41
- package/docs/components/composed/avatar-group.md +29 -4
- package/docs/components/ui/avatar.md +23 -5
- package/docs/components/ui/button.md +5 -0
- package/docs/components/ui/checkbox.md +5 -0
- package/docs/components/ui/dropdown-menu.md +3 -0
- package/docs/components/ui/separator.md +3 -0
- package/docs/components/ui/tooltip.md +5 -0
- package/llms-full.txt +74 -10
- package/llms.txt +22 -2
- package/package.json +1 -1
|
@@ -3,15 +3,15 @@ import * as t from "react";
|
|
|
3
3
|
import { cn as c } from "../ui/lib/utils.js";
|
|
4
4
|
import { Skeleton as s } from "../ui/skeleton.js";
|
|
5
5
|
const b = t.forwardRef(
|
|
6
|
-
function({ className:
|
|
6
|
+
function({ className: l, ...d }, o) {
|
|
7
7
|
return /* @__PURE__ */ r(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
10
|
ref: o,
|
|
11
|
-
...
|
|
11
|
+
...d,
|
|
12
12
|
className: c(
|
|
13
13
|
"rounded-ds-lg border border-surface-border-strong bg-surface-2 p-ds-05b",
|
|
14
|
-
|
|
14
|
+
l
|
|
15
15
|
),
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between pb-ds-05", children: [
|
|
@@ -35,22 +35,22 @@ const b = t.forwardRef(
|
|
|
35
35
|
b.displayName = "CardSkeleton";
|
|
36
36
|
const g = t.forwardRef(
|
|
37
37
|
function({
|
|
38
|
-
rows:
|
|
39
|
-
columns:
|
|
38
|
+
rows: l = 5,
|
|
39
|
+
columns: d = 4,
|
|
40
40
|
className: o,
|
|
41
|
-
...
|
|
42
|
-
},
|
|
41
|
+
...m
|
|
42
|
+
}, f) {
|
|
43
43
|
return /* @__PURE__ */ r(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
ref:
|
|
47
|
-
...
|
|
46
|
+
ref: f,
|
|
47
|
+
...m,
|
|
48
48
|
className: c(
|
|
49
49
|
"overflow-hidden rounded-ds-lg border border-surface-border-strong",
|
|
50
50
|
o
|
|
51
51
|
),
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-2 px-ds-05 py-ds-04", children: Array.from({ length:
|
|
53
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-2 px-ds-05 py-ds-04", children: Array.from({ length: d }).map((p, a) => /* @__PURE__ */ e(
|
|
54
54
|
s,
|
|
55
55
|
{
|
|
56
56
|
className: c(
|
|
@@ -60,22 +60,23 @@ const g = t.forwardRef(
|
|
|
60
60
|
},
|
|
61
61
|
`head-${a}`
|
|
62
62
|
)) }),
|
|
63
|
-
Array.from({ length:
|
|
63
|
+
Array.from({ length: l }).map((p, a) => /* @__PURE__ */ e(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
66
|
className: c(
|
|
67
67
|
"flex items-center gap-ds-05 px-ds-05 py-ds-04",
|
|
68
|
-
a <
|
|
68
|
+
a < l - 1 && "border-b border-surface-border-strong"
|
|
69
69
|
),
|
|
70
|
-
|
|
70
|
+
style: { animationDelay: `${a * 50}ms` },
|
|
71
|
+
children: Array.from({ length: d }).map((u, n) => /* @__PURE__ */ e(
|
|
71
72
|
s,
|
|
72
73
|
{
|
|
73
74
|
className: c(
|
|
74
75
|
"h-[12px] bg-surface-3",
|
|
75
|
-
|
|
76
|
+
n === 0 ? "w-[160px]" : "flex-1"
|
|
76
77
|
)
|
|
77
78
|
},
|
|
78
|
-
`cell-${a}-${
|
|
79
|
+
`cell-${a}-${n}`
|
|
79
80
|
))
|
|
80
81
|
},
|
|
81
82
|
`row-${a}`
|
|
@@ -88,12 +89,12 @@ const g = t.forwardRef(
|
|
|
88
89
|
g.displayName = "TableSkeleton";
|
|
89
90
|
const h = t.forwardRef(
|
|
90
91
|
function({
|
|
91
|
-
columns:
|
|
92
|
-
cardsPerColumn:
|
|
92
|
+
columns: l = 4,
|
|
93
|
+
cardsPerColumn: d = 3,
|
|
93
94
|
className: o,
|
|
94
|
-
...
|
|
95
|
-
},
|
|
96
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
95
|
+
...m
|
|
96
|
+
}, f) {
|
|
97
|
+
return /* @__PURE__ */ e("div", { ref: f, ...m, className: c("flex gap-ds-05 overflow-x-auto", o), children: Array.from({ length: l }).map((p, a) => /* @__PURE__ */ r(
|
|
97
98
|
"div",
|
|
98
99
|
{
|
|
99
100
|
className: "flex w-[272px] shrink-0 flex-col gap-ds-03",
|
|
@@ -106,10 +107,11 @@ const h = t.forwardRef(
|
|
|
106
107
|
] }),
|
|
107
108
|
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-3" })
|
|
108
109
|
] }),
|
|
109
|
-
Array.from({ length:
|
|
110
|
+
Array.from({ length: d }).map((u, n) => /* @__PURE__ */ r(
|
|
110
111
|
"div",
|
|
111
112
|
{
|
|
112
113
|
className: "rounded-ds-lg border border-surface-border-strong bg-surface-2 p-ds-04",
|
|
114
|
+
style: { animationDelay: `${(a * d + n) * 50}ms` },
|
|
113
115
|
children: [
|
|
114
116
|
/* @__PURE__ */ r("div", { className: "space-y-ds-03", children: [
|
|
115
117
|
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-3" }),
|
|
@@ -124,7 +126,7 @@ const h = t.forwardRef(
|
|
|
124
126
|
] })
|
|
125
127
|
]
|
|
126
128
|
},
|
|
127
|
-
`card-${a}-${
|
|
129
|
+
`card-${a}-${n}`
|
|
128
130
|
))
|
|
129
131
|
]
|
|
130
132
|
},
|
|
@@ -135,20 +137,21 @@ const h = t.forwardRef(
|
|
|
135
137
|
h.displayName = "BoardSkeleton";
|
|
136
138
|
const x = t.forwardRef(
|
|
137
139
|
function({
|
|
138
|
-
rows:
|
|
139
|
-
showAvatar:
|
|
140
|
+
rows: l = 6,
|
|
141
|
+
showAvatar: d = !0,
|
|
140
142
|
className: o,
|
|
141
|
-
...
|
|
142
|
-
},
|
|
143
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
143
|
+
...m
|
|
144
|
+
}, f) {
|
|
145
|
+
return /* @__PURE__ */ e("div", { ref: f, ...m, className: c("flex flex-col", o), children: Array.from({ length: l }).map((p, a) => /* @__PURE__ */ r(
|
|
144
146
|
"div",
|
|
145
147
|
{
|
|
146
148
|
className: c(
|
|
147
149
|
"flex items-center gap-ds-04 py-ds-04",
|
|
148
|
-
a <
|
|
150
|
+
a < l - 1 && "border-b border-surface-border-strong"
|
|
149
151
|
),
|
|
152
|
+
style: { animationDelay: `${a * 50}ms` },
|
|
150
153
|
children: [
|
|
151
|
-
|
|
154
|
+
d && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-surface-3" }),
|
|
152
155
|
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
|
|
153
156
|
/* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-surface-3" }),
|
|
154
157
|
/* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-surface-3" })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAqB9B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAMD,QAAA,MAAM,YAAY,0FA6FjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as i } from "../ui/lib/utils.js";
|
|
5
5
|
import { Popover as N, PopoverTrigger as y, PopoverContent as w } from "../ui/popover.js";
|
|
6
6
|
import { Avatar as k, AvatarImage as C, AvatarFallback as S } from "../ui/avatar.js";
|
|
7
7
|
import { IconSearch as P, IconCheck as I } from "@tabler/icons-react";
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import { springs as A } from "../ui/lib/motion.js";
|
|
9
|
+
import { getInitials as O } from "./lib/string-utils.js";
|
|
10
|
+
import { m as j } from "../_chunks/framer.js";
|
|
11
|
+
const L = a.forwardRef(
|
|
10
12
|
({
|
|
11
|
-
members:
|
|
13
|
+
members: l,
|
|
12
14
|
selectedIds: d,
|
|
13
15
|
onSelect: f,
|
|
14
16
|
children: m,
|
|
15
17
|
multiple: p = !1,
|
|
16
18
|
placeholder: u = "Search members...",
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
19
|
+
className: x,
|
|
20
|
+
...h
|
|
19
21
|
}, g) => {
|
|
20
|
-
const [b, r] = a.useState(!1), [o, v] = a.useState(""), c =
|
|
22
|
+
const [b, r] = a.useState(!1), [o, v] = a.useState(""), c = l.filter(
|
|
21
23
|
(e) => e.name.toLowerCase().includes(o.toLowerCase())
|
|
22
24
|
);
|
|
23
25
|
return /* @__PURE__ */ s(N, { open: b, onOpenChange: r, children: [
|
|
@@ -26,8 +28,8 @@ const O = a.forwardRef(
|
|
|
26
28
|
w,
|
|
27
29
|
{
|
|
28
30
|
ref: g,
|
|
29
|
-
...
|
|
30
|
-
className:
|
|
31
|
+
...h,
|
|
32
|
+
className: i("w-[220px] border-surface-border-strong bg-surface-1 p-0", x),
|
|
31
33
|
align: "start",
|
|
32
34
|
sideOffset: 4,
|
|
33
35
|
children: [
|
|
@@ -41,7 +43,7 @@ const O = a.forwardRef(
|
|
|
41
43
|
value: o,
|
|
42
44
|
onChange: (e) => v(e.target.value),
|
|
43
45
|
"aria-label": "Search members",
|
|
44
|
-
className: "w-full bg-transparent text-ds-md font-body text-surface-fg placeholder:text-surface-fg-subtle outline-none"
|
|
46
|
+
className: "w-full bg-transparent text-ds-md font-body text-surface-fg placeholder:text-surface-fg-subtle outline-none focus-visible:ring-1 focus-visible:ring-accent-7"
|
|
45
47
|
}
|
|
46
48
|
)
|
|
47
49
|
] }),
|
|
@@ -55,18 +57,27 @@ const O = a.forwardRef(
|
|
|
55
57
|
onClick: () => {
|
|
56
58
|
f(e.id), p || r(!1);
|
|
57
59
|
},
|
|
58
|
-
className:
|
|
59
|
-
"flex w-full items-center gap-ds-03 px-ds-04 py-ds-02b text-left transition-colors",
|
|
60
|
+
className: i(
|
|
61
|
+
"flex w-full items-center gap-ds-03 px-ds-04 py-ds-02b text-left transition-colors duration-fast-01 ease-productive-standard",
|
|
60
62
|
"hover:bg-surface-3",
|
|
61
|
-
n && "bg-
|
|
63
|
+
n && "bg-accent-2 text-accent-11"
|
|
62
64
|
),
|
|
63
65
|
children: [
|
|
64
66
|
/* @__PURE__ */ s(k, { className: "h-ico-md w-ico-md", children: [
|
|
65
67
|
e.avatar && /* @__PURE__ */ t(C, { src: e.avatar, alt: e.name }),
|
|
66
|
-
/* @__PURE__ */ t(S, { className: "bg-surface-3 text-ds-xs font-semibold text-
|
|
68
|
+
/* @__PURE__ */ t(S, { className: "bg-surface-3 text-ds-xs font-semibold text-surface-fg", children: O(e.name) })
|
|
67
69
|
] }),
|
|
68
70
|
/* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-surface-fg", children: e.name }),
|
|
69
|
-
n && /* @__PURE__ */ t(
|
|
71
|
+
n && /* @__PURE__ */ t(
|
|
72
|
+
j.span,
|
|
73
|
+
{
|
|
74
|
+
initial: { scale: 0 },
|
|
75
|
+
animate: { scale: 1 },
|
|
76
|
+
transition: A.bouncy,
|
|
77
|
+
className: "inline-flex shrink-0",
|
|
78
|
+
children: /* @__PURE__ */ t(I, { className: "h-ico-sm w-ico-sm text-accent-11" })
|
|
79
|
+
}
|
|
80
|
+
)
|
|
70
81
|
]
|
|
71
82
|
},
|
|
72
83
|
e.id
|
|
@@ -80,7 +91,7 @@ const O = a.forwardRef(
|
|
|
80
91
|
] });
|
|
81
92
|
}
|
|
82
93
|
);
|
|
83
|
-
|
|
94
|
+
L.displayName = "MemberPicker";
|
|
84
95
|
export {
|
|
85
|
-
|
|
96
|
+
L as MemberPicker
|
|
86
97
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
3
|
import { cn as o } from "../ui/lib/utils.js";
|
|
4
4
|
import { IconChevronRight as p } from "@tabler/icons-react";
|
|
5
|
-
const
|
|
6
|
-
({ title: d, subtitle: a, actions: r, breadcrumbs: e, titleClassName:
|
|
7
|
-
var
|
|
8
|
-
const f = d ?? ((
|
|
9
|
-
return /* @__PURE__ */
|
|
5
|
+
const v = c.forwardRef(
|
|
6
|
+
({ title: d, subtitle: a, actions: r, breadcrumbs: e, titleClassName: g, className: h, ...m }, x) => {
|
|
7
|
+
var n;
|
|
8
|
+
const f = d ?? ((n = e == null ? void 0 : e[e.length - 1]) == null ? void 0 : n.label) ?? "";
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
12
|
-
ref:
|
|
12
|
+
ref: x,
|
|
13
13
|
className: o(
|
|
14
14
|
"flex flex-col gap-ds-05 border-b border-surface-border-strong pb-ds-06",
|
|
15
|
-
|
|
15
|
+
h
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...m,
|
|
18
18
|
children: [
|
|
19
|
-
e && e.length > 0 && /* @__PURE__ */ s("nav", { "aria-label": "Breadcrumb", className: "flex items-center gap-ds-02b", children: e.map((
|
|
20
|
-
|
|
19
|
+
e && e.length > 0 && /* @__PURE__ */ s("nav", { "aria-label": "Breadcrumb", className: "flex items-center gap-ds-02b", children: e.map((l, i) => /* @__PURE__ */ t(c.Fragment, { children: [
|
|
20
|
+
i > 0 && /* @__PURE__ */ s(
|
|
21
21
|
p,
|
|
22
22
|
{
|
|
23
23
|
className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
|
|
24
24
|
stroke: 1.5
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
|
|
27
|
+
l.href ? /* @__PURE__ */ s(
|
|
28
28
|
"a",
|
|
29
29
|
{
|
|
30
|
-
href:
|
|
31
|
-
className: "text-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted",
|
|
32
|
-
children:
|
|
30
|
+
href: l.href,
|
|
31
|
+
className: "text-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
32
|
+
children: l.label
|
|
33
33
|
}
|
|
34
34
|
) : /* @__PURE__ */ s(
|
|
35
35
|
"span",
|
|
36
36
|
{
|
|
37
37
|
className: o(
|
|
38
38
|
"text-ds-sm",
|
|
39
|
-
|
|
39
|
+
i === e.length - 1 ? "text-surface-fg" : "text-surface-fg-subtle"
|
|
40
40
|
),
|
|
41
|
-
children:
|
|
41
|
+
children: l.label
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
|
-
] },
|
|
45
|
-
(f || a || r) && /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
] }, i)) }),
|
|
45
|
+
(f || a || r) && /* @__PURE__ */ t("div", { className: "flex items-start justify-between gap-ds-05", children: [
|
|
46
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-ds-02b", children: [
|
|
47
47
|
f && /* @__PURE__ */ s(
|
|
48
48
|
"h1",
|
|
49
49
|
{
|
|
50
50
|
className: o(
|
|
51
|
-
"text-ds-2xl text-surface-fg",
|
|
52
|
-
|
|
51
|
+
"text-ds-2xl font-semibold text-surface-fg",
|
|
52
|
+
g
|
|
53
53
|
),
|
|
54
54
|
children: f
|
|
55
55
|
}
|
|
@@ -63,7 +63,7 @@ const N = n.forwardRef(
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
v.displayName = "PageHeader";
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
v as PageHeader
|
|
69
69
|
};
|
|
@@ -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;
|
|
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;AAWjE,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,+FAwEtB,CAAA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { ag as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { IconAlertTriangle as
|
|
6
|
-
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { ag as u } from "../_chunks/vendor-utils.js";
|
|
4
|
+
import { cn as r } from "../ui/lib/utils.js";
|
|
5
|
+
import { IconAlertTriangle as b, IconArrowUp as y, IconMinus as x, IconArrowDown as I } from "@tabler/icons-react";
|
|
6
|
+
import { m as d } from "../_chunks/framer.js";
|
|
7
|
+
const N = {
|
|
7
8
|
LOW: {
|
|
8
|
-
icon:
|
|
9
|
+
icon: I,
|
|
9
10
|
color: "text-category-slate-11",
|
|
10
11
|
bgColor: "bg-category-slate-3",
|
|
11
12
|
label: "Low"
|
|
12
13
|
},
|
|
13
14
|
MEDIUM: {
|
|
14
|
-
icon:
|
|
15
|
+
icon: x,
|
|
15
16
|
color: "text-warning-11",
|
|
16
17
|
bgColor: "bg-warning-3",
|
|
17
18
|
label: "Medium"
|
|
18
19
|
},
|
|
19
20
|
HIGH: {
|
|
20
|
-
icon:
|
|
21
|
+
icon: y,
|
|
21
22
|
color: "text-error-11",
|
|
22
23
|
bgColor: "bg-error-3",
|
|
23
24
|
label: "High"
|
|
24
25
|
},
|
|
25
26
|
URGENT: {
|
|
26
|
-
icon:
|
|
27
|
+
icon: b,
|
|
27
28
|
color: "text-error-11",
|
|
28
29
|
bgColor: "bg-error-3",
|
|
29
30
|
label: "Urgent"
|
|
30
31
|
}
|
|
31
|
-
},
|
|
32
|
+
}, h = u(
|
|
32
33
|
"inline-flex items-center gap-ds-02b font-body",
|
|
33
34
|
{
|
|
34
35
|
variants: {
|
|
@@ -41,40 +42,63 @@ const x = {
|
|
|
41
42
|
display: "full"
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
), w =
|
|
45
|
-
({ priority:
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
), w = p.forwardRef(
|
|
46
|
+
({ priority: f, display: t, className: n, ...s }, a) => {
|
|
47
|
+
const c = f.toUpperCase(), e = N[c], i = e.icon, l = c === "URGENT";
|
|
48
|
+
if (t === "compact") {
|
|
49
|
+
const m = /* @__PURE__ */ o(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
ref: a,
|
|
53
|
+
className: r(
|
|
54
|
+
"inline-flex items-center justify-center rounded-ds-md p-ds-02",
|
|
55
|
+
e.bgColor,
|
|
56
|
+
n
|
|
57
|
+
),
|
|
58
|
+
title: e.label,
|
|
59
|
+
...s,
|
|
60
|
+
children: /* @__PURE__ */ o(i, { className: r("h-ico-sm w-ico-sm", e.color), stroke: 2 })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
return l ? /* @__PURE__ */ o(
|
|
64
|
+
d.div,
|
|
65
|
+
{
|
|
66
|
+
animate: { scale: [1, 1.1, 1] },
|
|
67
|
+
transition: { repeat: 1 / 0, duration: 2, ease: "easeInOut" },
|
|
68
|
+
className: "inline-flex",
|
|
69
|
+
children: m
|
|
70
|
+
}
|
|
71
|
+
) : m;
|
|
72
|
+
}
|
|
73
|
+
return /* @__PURE__ */ g(
|
|
61
74
|
"div",
|
|
62
75
|
{
|
|
63
|
-
ref:
|
|
64
|
-
className:
|
|
65
|
-
...
|
|
76
|
+
ref: a,
|
|
77
|
+
className: r(h({ display: t }), n),
|
|
78
|
+
...s,
|
|
66
79
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
80
|
+
l ? /* @__PURE__ */ o(
|
|
81
|
+
d.div,
|
|
82
|
+
{
|
|
83
|
+
animate: { scale: [1, 1.1, 1] },
|
|
84
|
+
transition: { repeat: 1 / 0, duration: 2, ease: "easeInOut" },
|
|
85
|
+
className: r(
|
|
86
|
+
"inline-flex items-center justify-center rounded-ds-md p-ds-01",
|
|
87
|
+
e.bgColor
|
|
88
|
+
),
|
|
89
|
+
children: /* @__PURE__ */ o(i, { className: r("h-ico-sm w-ico-sm", e.color), stroke: 2 })
|
|
90
|
+
}
|
|
91
|
+
) : /* @__PURE__ */ o(
|
|
68
92
|
"div",
|
|
69
93
|
{
|
|
70
|
-
className:
|
|
94
|
+
className: r(
|
|
71
95
|
"inline-flex items-center justify-center rounded-ds-md p-ds-01",
|
|
72
|
-
|
|
96
|
+
e.bgColor
|
|
73
97
|
),
|
|
74
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ o(i, { className: r("h-ico-sm w-ico-sm", e.color), stroke: 2 })
|
|
75
99
|
}
|
|
76
100
|
),
|
|
77
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ o("span", { className: "text-ds-sm text-surface-fg-muted", children: e.label })
|
|
78
102
|
]
|
|
79
103
|
}
|
|
80
104
|
);
|