@devalok/shilp-sutra 0.49.0 → 0.49.1
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/badge-group.js +4 -4
- package/dist/_chunks/block-shell.js +1 -1
- package/dist/_chunks/chart-container.js +1 -1
- package/dist/_chunks/chat.js +3 -3
- package/dist/_chunks/colors.js +2 -2
- package/dist/_chunks/document-preview.js +4 -4
- package/dist/_chunks/emoji-suggestion.js +5 -5
- package/dist/_chunks/emoji-suggestion.js.map +1 -1
- package/dist/_chunks/emoji.js +1 -1
- package/dist/_chunks/field-state.js +1 -1
- package/dist/_chunks/grid-lines.js +1 -1
- package/dist/_chunks/image-preview.js +7 -7
- package/dist/_chunks/keybinding.js +1 -1
- package/dist/_chunks/link-context.js +1 -1
- package/dist/_chunks/mention-suggestion.js +2 -2
- package/dist/_chunks/mention.js +1 -1
- package/dist/_chunks/motion-provider.js +1 -1
- package/dist/_chunks/normalize-icon.js +1 -1
- package/dist/_chunks/oauth-button.js +2 -2
- package/dist/_chunks/popover.js +17 -17
- package/dist/_chunks/primitives.js +1 -1
- package/dist/_chunks/shared.js +5 -5
- package/dist/_chunks/success.js +4 -4
- package/dist/_chunks/tiptap.js +11 -11
- package/dist/_chunks/tooltip.js +1 -1
- package/dist/_chunks/tree-view.js +2 -2
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/use-controllable-open.js +1 -1
- package/dist/_chunks/vendor-client.js +1 -1
- package/dist/_chunks/vendor-utils.js +1 -1
- package/dist/ai/block-renderer.js +7 -7
- package/dist/ai/blocks/error.js +1 -1
- package/dist/ai/blocks/index.js +2 -2
- package/dist/ai/blocks/text.js +1 -1
- package/dist/ai/command-bar.js +6 -6
- package/dist/ai/conversation.js +2 -2
- package/dist/ai/index.js +3 -3
- package/dist/composed/avatar-group.js +1 -1
- package/dist/composed/bulk-action-bar.js +1 -1
- package/dist/composed/command-palette.js +6 -6
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/date-picker/index.js +10 -10
- package/dist/composed/emoji-picker.js +4 -4
- package/dist/composed/empty-state.js +1 -1
- package/dist/composed/extensions/emoji-node.js +1 -1
- package/dist/composed/extensions/emoji-suggestion.js +1 -1
- package/dist/composed/file-preview.js +14 -14
- package/dist/composed/filter-bar.js +1 -1
- package/dist/composed/multi-select-popover.js +3 -3
- package/dist/composed/priority-indicator.js +1 -1
- package/dist/composed/responsive-modal.js +21 -21
- package/dist/composed/rich-chat-input.js +445 -445
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +28 -28
- package/dist/composed/status-badge.js +1 -1
- package/dist/motion/index.js +2 -2
- package/dist/shell/bottom-navbar.js +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/shell/link-context.js +2 -2
- package/dist/shell/notification-center.js +3 -3
- package/dist/shell/sidebar.js +2 -2
- package/dist/shell/top-bar.js +1 -1
- package/dist/ui/accordion.js +14 -14
- package/dist/ui/alert-dialog.js +31 -31
- package/dist/ui/alert.js +1 -1
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +7 -7
- package/dist/ui/avatar.js +15 -15
- package/dist/ui/badge-group.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +1 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/button.js +5 -5
- package/dist/ui/card.js +1 -1
- package/dist/ui/charts/area-chart.js +6 -6
- package/dist/ui/charts/bar-chart.js +6 -6
- package/dist/ui/charts/chart-container.js +1 -1
- package/dist/ui/charts/gauge-chart.js +2 -2
- package/dist/ui/charts/index.js +2 -2
- package/dist/ui/charts/line-chart.js +6 -6
- package/dist/ui/charts/pie-chart.js +5 -5
- package/dist/ui/charts/radar-chart.js +5 -5
- package/dist/ui/charts/sparkline.js +2 -2
- package/dist/ui/chat/index.js +2 -2
- package/dist/ui/checkbox.js +5 -5
- package/dist/ui/collapsible.js +4 -4
- package/dist/ui/color-input.js +4 -4
- package/dist/ui/combobox.js +7 -7
- package/dist/ui/context-menu.js +41 -41
- package/dist/ui/dialog.js +25 -25
- package/dist/ui/dot.js +1 -1
- package/dist/ui/dropdown-menu.js +51 -51
- package/dist/ui/hover-card.js +9 -9
- package/dist/ui/icon-button.js +1 -1
- package/dist/ui/index.js +6 -6
- package/dist/ui/input.js +2 -2
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/utils.js +4 -4
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +53 -53
- package/dist/ui/navigation-menu.js +27 -27
- package/dist/ui/number-input.js +2 -2
- package/dist/ui/oauth-button/index.js +2 -2
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +2 -2
- package/dist/ui/progress.js +2 -2
- package/dist/ui/radio.js +2 -2
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.js +35 -35
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.js +22 -22
- package/dist/ui/sidebar.js +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +7 -7
- package/dist/ui/split-button.js +3 -3
- package/dist/ui/stat-card.js +2 -2
- package/dist/ui/stat-flash.js +1 -1
- package/dist/ui/stepper.js +1 -1
- package/dist/ui/surface.js +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/table-row-link.js +1 -1
- package/dist/ui/tabs.js +13 -13
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +2 -2
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/tooltip.js +16 -16
- package/dist/ui/tree-view/index.js +2 -2
- package/llms.txt +1 -1
- package/mcp-manifest.json +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/references/components.md +1 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { cn as e } from "../ui/lib/utils.js";
|
|
3
3
|
import { Icon as t } from "../ui/icon.js";
|
|
4
4
|
import { Button as n } from "../ui/button.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { MENTION_TOKEN_CLASS as r } from "../_chunks/mention.js";
|
|
6
|
+
import { EditorContent as i, ListKit as a, Placeholder as o, index_default as s, index_default$1 as c, index_default$2 as l, index_default$4 as u, index_default$5 as d, useEditor as f, useEditorState as p } from "../_chunks/tiptap.js";
|
|
7
7
|
import { EmojiNode as m } from "./extensions/emoji-node.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { createEmojiSuggestion as h } from "../_chunks/emoji-suggestion.js";
|
|
9
|
+
import { FileAttachment as g, createSuggestionRenderer as _ } from "../_chunks/mention-suggestion.js";
|
|
10
10
|
import * as v from "react";
|
|
11
11
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
12
12
|
import { IconAlignCenter as x, IconAlignLeft as S, IconAlignRight as C, IconArrowBackUp as w, IconArrowForwardUp as T, IconBlockquote as E, IconBold as D, IconCode as O, IconH2 as k, IconH3 as A, IconHighlight as j, IconItalic as M, IconLineDashed as N, IconLink as P, IconList as F, IconListCheck as I, IconListNumbers as L, IconMoodSmile as R, IconPaperclip as z, IconPhoto as B, IconStrikethrough as V, IconUnderline as H } from "@tabler/icons-react";
|
|
@@ -43,7 +43,7 @@ function W({ onClick: t, isActive: n = !1, disabled: r = !1, title: i, children:
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
function G({ editor: e }) {
|
|
46
|
-
let [r, i] = v.useState(!1), [a, o] = v.useState(""), s = v.useRef(null), { isLink: c } =
|
|
46
|
+
let [r, i] = v.useState(!1), [a, o] = v.useState(""), s = v.useRef(null), { isLink: c } = p({
|
|
47
47
|
editor: e,
|
|
48
48
|
selector: ({ editor: e }) => ({ isLink: e.isActive("link") })
|
|
49
49
|
});
|
|
@@ -92,7 +92,7 @@ function K() {
|
|
|
92
92
|
return /* @__PURE__ */ y("div", { className: "mx-ds-02 h-ds-05 w-px bg-surface-border" });
|
|
93
93
|
}
|
|
94
94
|
function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClick: a }) {
|
|
95
|
-
let o =
|
|
95
|
+
let o = p({
|
|
96
96
|
editor: e,
|
|
97
97
|
selector: ({ editor: e }) => ({
|
|
98
98
|
isBold: e.isActive("bold"),
|
|
@@ -114,7 +114,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
114
114
|
canUndo: e.can().undo(),
|
|
115
115
|
canRedo: e.can().redo()
|
|
116
116
|
})
|
|
117
|
-
}), s = (e) => !n || n.includes(e), c = s("bold") || s("italic") || s("underline") || s("strike") || s("highlight"),
|
|
117
|
+
}), s = (e) => !n || n.includes(e), c = s("bold") || s("italic") || s("underline") || s("strike") || s("highlight"), l = s("h2") || s("h3") || s("blockquote"), u = s("bulletList") || s("orderedList") || s("taskList") || s("codeBlock"), d = s("link") || !!r && s("image") || !!i && s("file") || s("hr"), f = s("alignLeft") || s("alignCenter") || s("alignRight"), m = !!a && s("emoji"), h = s("undo") || s("redo");
|
|
118
118
|
return /* @__PURE__ */ b("div", {
|
|
119
119
|
role: "toolbar",
|
|
120
120
|
"aria-label": "Text formatting",
|
|
@@ -170,7 +170,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
170
170
|
stroke: "bold"
|
|
171
171
|
})
|
|
172
172
|
}),
|
|
173
|
-
c &&
|
|
173
|
+
c && l && /* @__PURE__ */ y(K, {}),
|
|
174
174
|
s("h2") && /* @__PURE__ */ y(W, {
|
|
175
175
|
onClick: () => e.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
176
176
|
isActive: o.isH2,
|
|
@@ -201,7 +201,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
201
201
|
stroke: "bold"
|
|
202
202
|
})
|
|
203
203
|
}),
|
|
204
|
-
|
|
204
|
+
l && u && /* @__PURE__ */ y(K, {}),
|
|
205
205
|
s("bulletList") && /* @__PURE__ */ y(W, {
|
|
206
206
|
onClick: () => e.chain().focus().toggleBulletList().run(),
|
|
207
207
|
isActive: o.isBulletList,
|
|
@@ -242,7 +242,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
242
242
|
stroke: "bold"
|
|
243
243
|
})
|
|
244
244
|
}),
|
|
245
|
-
|
|
245
|
+
u && d && /* @__PURE__ */ y(K, {}),
|
|
246
246
|
s("link") && /* @__PURE__ */ y(G, { editor: e }),
|
|
247
247
|
r && s("image") && /* @__PURE__ */ y(W, {
|
|
248
248
|
onClick: r,
|
|
@@ -268,7 +268,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
268
268
|
size: "sm"
|
|
269
269
|
})
|
|
270
270
|
}),
|
|
271
|
-
|
|
271
|
+
d && f && /* @__PURE__ */ y(K, {}),
|
|
272
272
|
s("alignLeft") && /* @__PURE__ */ y(W, {
|
|
273
273
|
onClick: () => e.chain().focus().setTextAlign("left").run(),
|
|
274
274
|
isActive: o.isAlignLeft,
|
|
@@ -296,7 +296,7 @@ function q({ editor: e, toolbar: n, onImageClick: r, onFileClick: i, onEmojiClic
|
|
|
296
296
|
size: "sm"
|
|
297
297
|
})
|
|
298
298
|
}),
|
|
299
|
-
|
|
299
|
+
f && (m || h) && /* @__PURE__ */ y(K, {}),
|
|
300
300
|
a && s("emoji") && /* @__PURE__ */ y(W, {
|
|
301
301
|
onClick: a,
|
|
302
302
|
title: "Emoji",
|
|
@@ -340,7 +340,7 @@ function Y({ onSelect: e }) {
|
|
|
340
340
|
children: /* @__PURE__ */ y(J, { onSelect: e })
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing...", onChange: r, className:
|
|
343
|
+
var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing...", onChange: r, className: p, editable: x = !0, toolbar: S, onImageUpload: C, onFileUpload: w, mentions: T, onMentionSearch: E, onMentionSelect: D, emojiSet: O = "native", ...k }, A) {
|
|
344
344
|
let j = v.useRef(null), M = v.useRef(!1), [N, P] = v.useState(!1), F = v.useRef(null), I = v.useRef(null), L = v.useRef(null), R = async (e) => {
|
|
345
345
|
let t = j.current;
|
|
346
346
|
if (t) if (C) {
|
|
@@ -364,10 +364,10 @@ var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing
|
|
|
364
364
|
size: n.size
|
|
365
365
|
}
|
|
366
366
|
}).run();
|
|
367
|
-
}, B =
|
|
367
|
+
}, B = f({
|
|
368
368
|
immediatelyRender: !1,
|
|
369
369
|
extensions: [
|
|
370
|
-
|
|
370
|
+
c.configure({
|
|
371
371
|
heading: { levels: [2, 3] },
|
|
372
372
|
link: {
|
|
373
373
|
openOnClick: !1,
|
|
@@ -387,8 +387,8 @@ var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing
|
|
|
387
387
|
placeholder: n,
|
|
388
388
|
emptyEditorClass: "before:content-[attr(data-placeholder)] before:text-surface-fg-subtle before:float-left before:h-0 before:pointer-events-none"
|
|
389
389
|
}),
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
d.configure({ multicolor: !1 }),
|
|
391
|
+
a.configure({
|
|
392
392
|
bulletList: !1,
|
|
393
393
|
orderedList: !1,
|
|
394
394
|
listItem: !1,
|
|
@@ -396,13 +396,13 @@ var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing
|
|
|
396
396
|
taskList: {},
|
|
397
397
|
taskItem: { nested: !0 }
|
|
398
398
|
}),
|
|
399
|
-
|
|
399
|
+
s.configure({ types: ["heading", "paragraph"] }),
|
|
400
400
|
u.configure({
|
|
401
401
|
allowBase64: !0,
|
|
402
402
|
HTMLAttributes: { class: "max-w-full rounded-control" }
|
|
403
403
|
}),
|
|
404
404
|
g,
|
|
405
|
-
...T || E ? [
|
|
405
|
+
...T || E ? [l.configure({
|
|
406
406
|
HTMLAttributes: { class: "mention" },
|
|
407
407
|
suggestion: {
|
|
408
408
|
items: async ({ query: e }) => E ? await E(e) : T ? T.filter((t) => t.label.toLowerCase().includes(e.toLowerCase())).slice(0, 8) : [],
|
|
@@ -445,7 +445,7 @@ var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing
|
|
|
445
445
|
}, [B, t]), B ? /* @__PURE__ */ b("div", {
|
|
446
446
|
ref: A,
|
|
447
447
|
...k,
|
|
448
|
-
className: e("relative",
|
|
448
|
+
className: e("relative", p),
|
|
449
449
|
children: [N && /* @__PURE__ */ y("div", {
|
|
450
450
|
ref: F,
|
|
451
451
|
className: "absolute bottom-full right-0 z-popover mb-ds-02",
|
|
@@ -499,10 +499,10 @@ var X = v.forwardRef(function({ content: t = "", placeholder: n = "Start writing
|
|
|
499
499
|
});
|
|
500
500
|
X.displayName = "RichTextEditor";
|
|
501
501
|
var Z = v.forwardRef(function({ content: t, className: n, ...r }, o) {
|
|
502
|
-
let
|
|
502
|
+
let p = f({
|
|
503
503
|
immediatelyRender: !1,
|
|
504
504
|
extensions: [
|
|
505
|
-
|
|
505
|
+
c.configure({
|
|
506
506
|
heading: { levels: [2, 3] },
|
|
507
507
|
link: {
|
|
508
508
|
openOnClick: !0,
|
|
@@ -518,8 +518,8 @@ var Z = v.forwardRef(function({ content: t, className: n, ...r }, o) {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}),
|
|
521
|
-
|
|
522
|
-
|
|
521
|
+
d.configure({ multicolor: !1 }),
|
|
522
|
+
a.configure({
|
|
523
523
|
bulletList: !1,
|
|
524
524
|
orderedList: !1,
|
|
525
525
|
listItem: !1,
|
|
@@ -527,23 +527,23 @@ var Z = v.forwardRef(function({ content: t, className: n, ...r }, o) {
|
|
|
527
527
|
taskList: {},
|
|
528
528
|
taskItem: { nested: !0 }
|
|
529
529
|
}),
|
|
530
|
-
|
|
530
|
+
s.configure({ types: ["heading", "paragraph"] }),
|
|
531
531
|
u.configure({
|
|
532
532
|
allowBase64: !0,
|
|
533
533
|
HTMLAttributes: { class: "max-w-full rounded-control" }
|
|
534
534
|
}),
|
|
535
535
|
g,
|
|
536
|
-
|
|
536
|
+
l.configure({ HTMLAttributes: { class: "mention" } })
|
|
537
537
|
],
|
|
538
538
|
content: t,
|
|
539
539
|
editable: !1,
|
|
540
540
|
editorProps: { attributes: { class: e(...U) } }
|
|
541
541
|
});
|
|
542
|
-
return
|
|
542
|
+
return p ? /* @__PURE__ */ y("div", {
|
|
543
543
|
ref: o,
|
|
544
544
|
...r,
|
|
545
545
|
className: n,
|
|
546
|
-
children: /* @__PURE__ */ y(i, { editor:
|
|
546
|
+
children: /* @__PURE__ */ y(i, { editor: p })
|
|
547
547
|
}) : null;
|
|
548
548
|
});
|
|
549
549
|
Z.displayName = "RichTextViewer";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { motionProps as e } from "../ui/lib/motion.js";
|
|
3
3
|
import { Dot as t } from "../ui/dot.js";
|
|
4
|
-
import { n } from "../_chunks/badge-group.js";
|
|
4
|
+
import { BadgeCompound as n } from "../_chunks/badge-group.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { jsx as i } from "react/jsx-runtime";
|
|
7
7
|
import { IconChevronDown as a } from "@tabler/icons-react";
|
package/dist/motion/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { motionProps as e, springs as t, stagger as n, tweens as r, withReducedMotion as i } from "../ui/lib/motion.js";
|
|
3
|
-
import {
|
|
3
|
+
import { MotionProvider as a, useMotion as o } from "../_chunks/motion-provider.js";
|
|
4
4
|
//#region src/motion/check-motion-provider.ts
|
|
5
5
|
var s = !1;
|
|
6
6
|
function c() {
|
|
@@ -15,4 +15,4 @@ function c() {
|
|
|
15
15
|
//#region src/motion/index.ts
|
|
16
16
|
c();
|
|
17
17
|
//#endregion
|
|
18
|
-
export {
|
|
18
|
+
export { a as MotionProvider, e as motionProps, t as springs, n as stagger, r as tweens, o as useMotion, i as withReducedMotion };
|
|
@@ -3,8 +3,8 @@ import { IconProvider as e } from "../ui/icon-context.js";
|
|
|
3
3
|
import { springs as t } from "../ui/lib/motion.js";
|
|
4
4
|
import { cn as n } from "../ui/lib/utils.js";
|
|
5
5
|
import { Icon as r } from "../ui/icon.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { normalizeIcon as i } from "../_chunks/normalize-icon.js";
|
|
7
|
+
import { useLink as a } from "../_chunks/link-context.js";
|
|
8
8
|
import "./link-context.js";
|
|
9
9
|
import * as o from "react";
|
|
10
10
|
import { useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
|
package/dist/shell/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { LinkProvider as e, useLink as t } from "../_chunks/link-context.js";
|
|
3
3
|
import { CommandRegistryProvider as n, useCommandRegistry as r } from "./command-registry.js";
|
|
4
4
|
import { AppCommandPalette as i } from "./app-command-palette.js";
|
|
5
5
|
import "./link-context.js";
|
|
@@ -8,4 +8,4 @@ import { NotificationCenter as o } from "./notification-center.js";
|
|
|
8
8
|
import { NotificationPreferences as s } from "./notification-preferences.js";
|
|
9
9
|
import { AppSidebar as c } from "./sidebar.js";
|
|
10
10
|
import { TopBar as l } from "./top-bar.js";
|
|
11
|
-
export { i as AppCommandPalette, c as AppSidebar, a as BottomNavbar, n as CommandRegistryProvider,
|
|
11
|
+
export { i as AppCommandPalette, c as AppSidebar, a as BottomNavbar, n as CommandRegistryProvider, e as LinkProvider, o as NotificationCenter, s as NotificationPreferences, l as TopBar, r as useCommandRegistry, t as useLink };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { LinkProvider as e, useLink as t } from "../_chunks/link-context.js";
|
|
3
|
+
export { e as LinkProvider, t as useLink };
|
|
@@ -5,7 +5,7 @@ import { Spinner as n } from "../ui/spinner.js";
|
|
|
5
5
|
import { Icon as r } from "../ui/icon.js";
|
|
6
6
|
import { useIsMobile as i } from "../hooks/use-mobile.js";
|
|
7
7
|
import { Button as a } from "../ui/button.js";
|
|
8
|
-
import {
|
|
8
|
+
import { Popover as o, PopoverContent as s, PopoverTrigger as c } from "../_chunks/popover.js";
|
|
9
9
|
import { Tooltip as l, TooltipContent as u, TooltipTrigger as d } from "../ui/tooltip.js";
|
|
10
10
|
import { TruncatedText as f } from "../ui/truncated-text.js";
|
|
11
11
|
import { Sheet as p, SheetContent as ee, SheetTitle as m, SheetTrigger as h } from "../ui/sheet.js";
|
|
@@ -246,12 +246,12 @@ var M = _.forwardRef(({ notifications: a = [], unreadCount: f, open: g, onOpenCh
|
|
|
246
246
|
children: "Notifications"
|
|
247
247
|
}), Q]
|
|
248
248
|
})]
|
|
249
|
-
}) : /* @__PURE__ */ S(
|
|
249
|
+
}) : /* @__PURE__ */ S(o, {
|
|
250
250
|
open: g,
|
|
251
251
|
onOpenChange: _,
|
|
252
252
|
children: [/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
|
|
253
253
|
asChild: !0,
|
|
254
|
-
children: /* @__PURE__ */ x(
|
|
254
|
+
children: /* @__PURE__ */ x(c, {
|
|
255
255
|
asChild: !0,
|
|
256
256
|
children: $
|
|
257
257
|
})
|
package/dist/shell/sidebar.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { IconProvider as e } from "../ui/icon-context.js";
|
|
3
3
|
import { cn as t } from "../ui/lib/utils.js";
|
|
4
4
|
import { Avatar as n, AvatarFallback as r, AvatarImage as i } from "../ui/avatar.js";
|
|
5
|
-
import {
|
|
5
|
+
import { normalizeIcon as a } from "../_chunks/normalize-icon.js";
|
|
6
6
|
import { Button as o } from "../ui/button.js";
|
|
7
7
|
import { Collapsible as s, CollapsibleContent as c, CollapsibleTrigger as l } from "../ui/collapsible.js";
|
|
8
8
|
import { TruncatedText as u } from "../ui/truncated-text.js";
|
|
9
|
-
import {
|
|
9
|
+
import { useLink as d } from "../_chunks/link-context.js";
|
|
10
10
|
import { Sidebar as f, SidebarContent as p, SidebarFooter as m, SidebarGroup as h, SidebarGroupAction as g, SidebarGroupContent as _, SidebarGroupLabel as v, SidebarHeader as y, SidebarMenu as b, SidebarMenuBadge as x, SidebarMenuButton as S, SidebarMenuItem as C, SidebarMenuSub as w, SidebarMenuSubButton as T, SidebarMenuSubItem as E, SidebarSeparator as D } from "../ui/sidebar.js";
|
|
11
11
|
import "./link-context.js";
|
|
12
12
|
import * as O from "react";
|
package/dist/shell/top-bar.js
CHANGED
|
@@ -3,7 +3,7 @@ import { IconProvider as e } from "../ui/icon-context.js";
|
|
|
3
3
|
import { cn as t } from "../ui/lib/utils.js";
|
|
4
4
|
import { Icon as n } from "../ui/icon.js";
|
|
5
5
|
import { Avatar as r, AvatarFallback as i, AvatarImage as a } from "../ui/avatar.js";
|
|
6
|
-
import {
|
|
6
|
+
import { normalizeIcon as o } from "../_chunks/normalize-icon.js";
|
|
7
7
|
import { DropdownMenu as s, DropdownMenuContent as c, DropdownMenuItem as l, DropdownMenuSeparator as u, DropdownMenuTrigger as d } from "../ui/dropdown-menu.js";
|
|
8
8
|
import { Tooltip as f, TooltipContent as p, TooltipTrigger as m } from "../ui/tooltip.js";
|
|
9
9
|
import { TruncatedText as h } from "../ui/truncated-text.js";
|
package/dist/ui/accordion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Content2$8 as e, Header as t, Item$2 as n, Root2$10 as r, Trigger2$1 as i } from "../_chunks/primitives.js";
|
|
3
3
|
import { tweens as a } from "./lib/motion.js";
|
|
4
4
|
import { cn as o } from "./lib/utils.js";
|
|
5
5
|
import { Icon as s } from "./icon.js";
|
|
@@ -8,47 +8,47 @@ import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
|
8
8
|
import { IconChevronDown as d } from "@tabler/icons-react";
|
|
9
9
|
import { motion as f } from "framer-motion";
|
|
10
10
|
//#region src/ui/accordion.tsx
|
|
11
|
-
var p =
|
|
11
|
+
var p = r, m = c.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l(n, {
|
|
12
12
|
ref: r,
|
|
13
|
-
className: o("border-b border-surface-border",
|
|
14
|
-
...
|
|
13
|
+
className: o("border-b border-surface-border", e),
|
|
14
|
+
...t
|
|
15
15
|
}));
|
|
16
16
|
m.displayName = "AccordionItem";
|
|
17
|
-
var h = c.forwardRef(({ className: e, children:
|
|
17
|
+
var h = c.forwardRef(({ className: e, children: n, chevronPosition: r = "right", ...a }, c) => {
|
|
18
18
|
let f = /* @__PURE__ */ l(s, {
|
|
19
19
|
icon: d,
|
|
20
20
|
size: "sm",
|
|
21
21
|
className: "shrink-0 text-surface-fg-muted transition-transform duration-moderate-02 ease-productive-standard group-data-[state=open]:rotate-180"
|
|
22
22
|
});
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
23
|
+
return /* @__PURE__ */ l(t, {
|
|
24
24
|
className: "flex",
|
|
25
|
-
children: /* @__PURE__ */ u(
|
|
25
|
+
children: /* @__PURE__ */ u(i, {
|
|
26
26
|
ref: c,
|
|
27
27
|
className: o("group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:bg-surface-raised rounded-control data-[state=open]:bg-surface-raised focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9", e),
|
|
28
28
|
...a,
|
|
29
29
|
children: [
|
|
30
30
|
r === "left" && f,
|
|
31
|
-
|
|
31
|
+
n,
|
|
32
32
|
r === "right" && f
|
|
33
33
|
]
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
|
-
h.displayName =
|
|
38
|
-
var g = c.forwardRef(({ className:
|
|
37
|
+
h.displayName = i.displayName;
|
|
38
|
+
var g = c.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ l(e, {
|
|
39
39
|
ref: i,
|
|
40
40
|
className: "w-full overflow-hidden text-ds-md data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",
|
|
41
|
-
...
|
|
41
|
+
...r,
|
|
42
42
|
children: /* @__PURE__ */ l(f.div, {
|
|
43
43
|
initial: !1,
|
|
44
44
|
animate: { opacity: 1 },
|
|
45
45
|
transition: a.fade,
|
|
46
46
|
children: /* @__PURE__ */ l("div", {
|
|
47
|
-
className: o("pb-ds-05 pt-ds-02",
|
|
48
|
-
children:
|
|
47
|
+
className: o("pb-ds-05 pt-ds-02", t),
|
|
48
|
+
children: n
|
|
49
49
|
})
|
|
50
50
|
})
|
|
51
51
|
}));
|
|
52
|
-
g.displayName =
|
|
52
|
+
g.displayName = e.displayName;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { p as Accordion, g as AccordionContent, m as AccordionItem, h as AccordionTrigger };
|
package/dist/ui/alert-dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Action as e, Cancel as t, Content2$7 as n, Description2 as r, Overlay2 as i, Portal2$3 as a, Root2$9 as o, Title2 as s, Trigger2 as c } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as l, tweens as u } from "./lib/motion.js";
|
|
4
4
|
import { cn as d } from "./lib/utils.js";
|
|
5
5
|
import { useIsMobile as f } from "../hooks/use-mobile.js";
|
|
@@ -7,29 +7,29 @@ import * as p from "react";
|
|
|
7
7
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
8
|
import { AnimatePresence as g, motion as _ } from "framer-motion";
|
|
9
9
|
//#region src/ui/alert-dialog.tsx
|
|
10
|
-
var v = p.createContext({ open: !1 }), y = () => p.useContext(v), b = ({ open: e, defaultOpen:
|
|
11
|
-
let [
|
|
12
|
-
s ||
|
|
13
|
-
}, [s,
|
|
10
|
+
var v = p.createContext({ open: !1 }), y = () => p.useContext(v), b = ({ open: e, defaultOpen: t, onOpenChange: n, ...r }) => {
|
|
11
|
+
let [i, a] = p.useState(t ?? !1), s = e !== void 0, c = s ? e : i, l = p.useCallback((e) => {
|
|
12
|
+
s || a(e), n?.(e);
|
|
13
|
+
}, [s, n]), u = p.useMemo(() => ({ open: c }), [c]);
|
|
14
14
|
return /* @__PURE__ */ m(v.Provider, {
|
|
15
15
|
value: u,
|
|
16
|
-
children: /* @__PURE__ */ m(
|
|
16
|
+
children: /* @__PURE__ */ m(o, {
|
|
17
17
|
open: c,
|
|
18
18
|
onOpenChange: l,
|
|
19
|
-
...
|
|
19
|
+
...r
|
|
20
20
|
})
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
b.displayName = "AlertDialog";
|
|
24
|
-
var x =
|
|
24
|
+
var x = c, S = a, C = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(i, {
|
|
25
25
|
ref: n,
|
|
26
26
|
forceMount: !0,
|
|
27
27
|
className: d("fixed inset-0 z-modal bg-overlay", e),
|
|
28
28
|
...t
|
|
29
29
|
}));
|
|
30
|
-
C.displayName =
|
|
31
|
-
var w = p.forwardRef(({ className: e, children: t, responsive:
|
|
32
|
-
let { open: o } = y(), s = f(), c =
|
|
30
|
+
C.displayName = i.displayName;
|
|
31
|
+
var w = p.forwardRef(({ className: e, children: t, responsive: r, ...i }, a) => {
|
|
32
|
+
let { open: o } = y(), s = f(), c = r !== !1 && s;
|
|
33
33
|
return /* @__PURE__ */ m(g, { children: o && /* @__PURE__ */ h(S, {
|
|
34
34
|
forceMount: !0,
|
|
35
35
|
children: [/* @__PURE__ */ m(C, {
|
|
@@ -40,11 +40,11 @@ var w = p.forwardRef(({ className: e, children: t, responsive: n, ...r }, i) =>
|
|
|
40
40
|
exit: { opacity: 0 },
|
|
41
41
|
transition: u.fade
|
|
42
42
|
})
|
|
43
|
-
}), /* @__PURE__ */ m(
|
|
44
|
-
ref:
|
|
43
|
+
}), /* @__PURE__ */ m(n, {
|
|
44
|
+
ref: a,
|
|
45
45
|
forceMount: !0,
|
|
46
46
|
asChild: !0,
|
|
47
|
-
...
|
|
47
|
+
...i,
|
|
48
48
|
children: /* @__PURE__ */ m(_.div, {
|
|
49
49
|
initial: c ? { y: "100%" } : {
|
|
50
50
|
opacity: 0,
|
|
@@ -68,13 +68,13 @@ var w = p.forwardRef(({ className: e, children: t, responsive: n, ...r }, i) =>
|
|
|
68
68
|
...l.smooth,
|
|
69
69
|
opacity: u.fade
|
|
70
70
|
},
|
|
71
|
-
className: d("fixed z-modal grid w-full gap-ds-05 bg-surface-overlay p-ds-06",
|
|
71
|
+
className: d("fixed z-modal grid w-full gap-ds-05 bg-surface-overlay p-ds-06", r === !1 ? "left-[50%] top-[50%] max-w-lg rounded-overlay-lg shadow-overlay" : "inset-0 md:inset-auto md:left-[50%] md:top-[50%] md:max-w-lg md:rounded-overlay-lg md:shadow-overlay", e),
|
|
72
72
|
children: t
|
|
73
73
|
})
|
|
74
74
|
})]
|
|
75
75
|
}) });
|
|
76
76
|
});
|
|
77
|
-
w.displayName =
|
|
77
|
+
w.displayName = n.displayName;
|
|
78
78
|
var T = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("div", {
|
|
79
79
|
ref: n,
|
|
80
80
|
className: d("flex flex-col space-y-ds-02b text-center sm:text-left", e),
|
|
@@ -87,29 +87,29 @@ var E = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m("div", {
|
|
|
87
87
|
...t
|
|
88
88
|
}));
|
|
89
89
|
E.displayName = "AlertDialogFooter";
|
|
90
|
-
var D = p.forwardRef(({ className:
|
|
91
|
-
ref: r,
|
|
92
|
-
className: d("text-ds-lg font-semibold", t),
|
|
93
|
-
...n
|
|
94
|
-
}));
|
|
95
|
-
D.displayName = e.displayName;
|
|
96
|
-
var O = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(c, {
|
|
90
|
+
var D = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(s, {
|
|
97
91
|
ref: n,
|
|
98
|
-
className: d("text-ds-
|
|
92
|
+
className: d("text-ds-lg font-semibold", e),
|
|
99
93
|
...t
|
|
100
94
|
}));
|
|
101
|
-
|
|
102
|
-
var
|
|
95
|
+
D.displayName = s.displayName;
|
|
96
|
+
var O = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(r, {
|
|
103
97
|
ref: n,
|
|
104
|
-
className: d("
|
|
98
|
+
className: d("text-ds-md text-surface-fg-muted", e),
|
|
105
99
|
...t
|
|
106
100
|
}));
|
|
107
|
-
|
|
108
|
-
var
|
|
101
|
+
O.displayName = r.displayName;
|
|
102
|
+
var k = p.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ m(e, {
|
|
103
|
+
ref: r,
|
|
104
|
+
className: d("inline-flex h-ds-md items-center justify-center rounded-control px-ds-05 text-ds-md font-semibold transition-colors bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-raised focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled", t),
|
|
105
|
+
...n
|
|
106
|
+
}));
|
|
107
|
+
k.displayName = e.displayName;
|
|
108
|
+
var A = p.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ m(t, {
|
|
109
109
|
ref: r,
|
|
110
110
|
className: d("inline-flex h-ds-md items-center justify-center rounded-control px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-surface-fg-muted border border-surface-border-strong hover:bg-surface-raised hover:text-surface-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled", e),
|
|
111
|
-
...
|
|
111
|
+
...n
|
|
112
112
|
}));
|
|
113
|
-
A.displayName =
|
|
113
|
+
A.displayName = t.displayName;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { b as AlertDialog, k as AlertDialogAction, A as AlertDialogCancel, w as AlertDialogContent, O as AlertDialogDescription, E as AlertDialogFooter, T as AlertDialogHeader, C as AlertDialogOverlay, S as AlertDialogPortal, D as AlertDialogTitle, x as AlertDialogTrigger };
|
package/dist/ui/alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { motionProps as e, springs as t } from "./lib/motion.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cva as n } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { cn as r } from "./lib/utils.js";
|
|
5
5
|
import { Icon as i } from "./icon.js";
|
|
6
6
|
import * as a from "react";
|
package/dist/ui/aspect-ratio.js
CHANGED
package/dist/ui/autocomplete.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { autoUpdate as e, flip as t, offset as n, shift as r, size as i, useFloating as a } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as o, tweens as s } from "./lib/motion.js";
|
|
4
4
|
import { cn as c } from "./lib/utils.js";
|
|
5
5
|
import { useFormField as l } from "./form.js";
|
|
@@ -22,15 +22,15 @@ var g = {
|
|
|
22
22
|
transition: o.snappy
|
|
23
23
|
}
|
|
24
24
|
}, v = u.forwardRef(({ options: o, value: v, onValueChange: y, placeholder: b, emptyText: x = "No options", disabled: S, className: C, id: w, ...T }, E) => {
|
|
25
|
-
let D = u.useId(), O = w || D, k = `${O}-listbox`, A = `${O}-option`, [j, M] = u.useState(v?.label ?? ""), [N, P] = u.useState(!1), [F, I] = u.useState(-1), L = u.useRef(null), R = u.useRef(null), z = u.useRef(null), B = u.useRef(null), { refs: V, floatingStyles: H } =
|
|
25
|
+
let D = u.useId(), O = w || D, k = `${O}-listbox`, A = `${O}-option`, [j, M] = u.useState(v?.label ?? ""), [N, P] = u.useState(!1), [F, I] = u.useState(-1), L = u.useRef(null), R = u.useRef(null), z = u.useRef(null), B = u.useRef(null), { refs: V, floatingStyles: H } = a({
|
|
26
26
|
open: N,
|
|
27
27
|
placement: "bottom-start",
|
|
28
|
-
whileElementsMounted:
|
|
28
|
+
whileElementsMounted: e,
|
|
29
29
|
middleware: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
n(4),
|
|
31
|
+
t(),
|
|
32
|
+
r(),
|
|
33
|
+
i({ apply({ availableHeight: e, rects: t, elements: n }) {
|
|
34
34
|
Object.assign(n.floating.style, {
|
|
35
35
|
maxHeight: `${Math.min(e, 240)}px`,
|
|
36
36
|
width: `${t.reference.width}px`
|
package/dist/ui/avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Fallback as e, Image as t, Root$6 as n } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as r } from "./lib/motion.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cva as i } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as a } from "./lib/utils.js";
|
|
6
6
|
import { Dot as o } from "./dot.js";
|
|
7
7
|
import { Skeleton as s } from "./skeleton.js";
|
|
@@ -97,14 +97,14 @@ function C(e) {
|
|
|
97
97
|
for (let n = 0; n < e.length; n++) t = (t << 5) + t + e.charCodeAt(n) | 0;
|
|
98
98
|
return S[Math.abs(t) % S.length];
|
|
99
99
|
}
|
|
100
|
-
var w = c.forwardRef(({ className:
|
|
100
|
+
var w = c.forwardRef(({ className: e, size: t, shape: i, status: c, ring: x, badge: S, loading: C, children: w, ...T }, E) => {
|
|
101
101
|
let D = i ?? "circle", O = f(), k = x && x !== "none" ? a("ring-2 ring-offset-2 ring-offset-surface-raised", y[x], b[D]) : void 0;
|
|
102
102
|
if (C) return /* @__PURE__ */ l("span", {
|
|
103
103
|
ref: E,
|
|
104
104
|
className: a("relative inline-flex shrink-0", k),
|
|
105
105
|
children: /* @__PURE__ */ l(s, {
|
|
106
106
|
className: a(h({
|
|
107
|
-
size:
|
|
107
|
+
size: t,
|
|
108
108
|
shape: i
|
|
109
109
|
})),
|
|
110
110
|
"data-slot": "avatar-skeleton"
|
|
@@ -114,16 +114,16 @@ var w = c.forwardRef(({ className: t, size: n, shape: i, status: c, ring: x, bad
|
|
|
114
114
|
return /* @__PURE__ */ l(p.Provider, {
|
|
115
115
|
value: D,
|
|
116
116
|
children: /* @__PURE__ */ l(m.Provider, {
|
|
117
|
-
value:
|
|
117
|
+
value: t ?? "md",
|
|
118
118
|
children: /* @__PURE__ */ u("span", {
|
|
119
119
|
className: a("relative inline-flex shrink-0", k),
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */ l(
|
|
121
|
+
/* @__PURE__ */ l(n, {
|
|
122
122
|
ref: E,
|
|
123
123
|
className: a(h({
|
|
124
|
-
size:
|
|
124
|
+
size: t,
|
|
125
125
|
shape: i
|
|
126
|
-
}),
|
|
126
|
+
}), e),
|
|
127
127
|
...T,
|
|
128
128
|
children: w
|
|
129
129
|
}),
|
|
@@ -145,7 +145,7 @@ var w = c.forwardRef(({ className: t, size: n, shape: i, status: c, ring: x, bad
|
|
|
145
145
|
} : {},
|
|
146
146
|
children: /* @__PURE__ */ l(o, {
|
|
147
147
|
color: g[c],
|
|
148
|
-
size: v[
|
|
148
|
+
size: v[t ?? "md"],
|
|
149
149
|
withBorder: !0,
|
|
150
150
|
"aria-hidden": !0
|
|
151
151
|
})
|
|
@@ -173,7 +173,7 @@ var w = c.forwardRef(({ className: t, size: n, shape: i, status: c, ring: x, bad
|
|
|
173
173
|
})
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
|
-
w.displayName =
|
|
176
|
+
w.displayName = n.displayName;
|
|
177
177
|
var T = c.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ l(d.span, {
|
|
178
178
|
initial: {
|
|
179
179
|
opacity: 0,
|
|
@@ -192,16 +192,16 @@ var T = c.forwardRef(({ className: e, ...n }, i) => /* @__PURE__ */ l(d.span, {
|
|
|
192
192
|
})
|
|
193
193
|
}));
|
|
194
194
|
T.displayName = t.displayName;
|
|
195
|
-
var E = c.forwardRef(({ className:
|
|
196
|
-
let s = typeof r == "string" ? r : "", u = C(
|
|
197
|
-
return /* @__PURE__ */ l(
|
|
195
|
+
var E = c.forwardRef(({ className: t, colorSeed: n, children: r, ...i }, o) => {
|
|
196
|
+
let s = typeof r == "string" ? r : "", u = C(n ?? s), d = c.useContext(p), f = c.useContext(m), h = d === "square" ? "rounded-none" : d === "rounded" ? "rounded-control" : "rounded-pill", g = s.length === 1 ? "tracking-wide" : "tracking-normal";
|
|
197
|
+
return /* @__PURE__ */ l(e, {
|
|
198
198
|
ref: o,
|
|
199
199
|
"data-slot": "avatar-fallback",
|
|
200
|
-
className: a("flex h-full w-full items-center justify-center font-semibold", h, x[f], u.bg, u.text, g,
|
|
200
|
+
className: a("flex h-full w-full items-center justify-center font-semibold", h, x[f], u.bg, u.text, g, t),
|
|
201
201
|
...i,
|
|
202
202
|
children: r
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
E.displayName =
|
|
205
|
+
E.displayName = e.displayName;
|
|
206
206
|
//#endregion
|
|
207
207
|
export { w as Avatar, E as AvatarFallback, T as AvatarImage, h as avatarVariants };
|
package/dist/ui/badge-group.js
CHANGED
package/dist/ui/badge.js
CHANGED