@devalok/shilp-sutra 0.37.1 → 0.39.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/MIGRATION.md +185 -0
- package/dist/_chunks/badge-group.js +4 -4
- package/dist/_chunks/badge-group.js.map +1 -1
- package/dist/_chunks/chat.js +14 -14
- package/dist/_chunks/chat.js.map +1 -1
- package/dist/_chunks/date-picker.js +9 -9
- package/dist/_chunks/date-picker.js.map +1 -1
- package/dist/_chunks/document-preview.js +2 -2
- package/dist/_chunks/document-preview.js.map +1 -1
- package/dist/_chunks/file-preview.js +11 -11
- package/dist/_chunks/file-preview.js.map +1 -1
- package/dist/_chunks/image-preview.js +2 -2
- package/dist/_chunks/image-preview.js.map +1 -1
- package/dist/_chunks/mention-suggestion.js +5 -5
- package/dist/_chunks/mention-suggestion.js.map +1 -1
- package/dist/_chunks/popover.js +3 -3
- package/dist/_chunks/popover.js.map +1 -1
- package/dist/_chunks/rich-chat-input.js +33 -33
- package/dist/_chunks/rich-chat-input.js.map +1 -1
- package/dist/_chunks/shared.js +5 -5
- package/dist/_chunks/shared.js.map +1 -1
- package/dist/_chunks/text.js +2 -2
- package/dist/_chunks/text.js.map +1 -1
- package/dist/_chunks/tiptap.js +977 -968
- package/dist/_chunks/tiptap.js.map +1 -1
- package/dist/_chunks/tree-view.js +1 -1
- package/dist/_chunks/tree-view.js.map +1 -1
- package/dist/_chunks/use-calendar.js +5 -5
- package/dist/_chunks/use-calendar.js.map +1 -1
- package/dist/ai/command-bar.js +10 -10
- package/dist/ai/command-bar.js.map +1 -1
- package/dist/ai/conversation.js +4 -4
- package/dist/ai/conversation.js.map +1 -1
- package/dist/composed/activity-feed.js +5 -5
- package/dist/composed/activity-feed.js.map +1 -1
- package/dist/composed/avatar-group.js +4 -4
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/bulk-action-bar.js +1 -1
- package/dist/composed/bulk-action-bar.js.map +1 -1
- package/dist/composed/command-palette.js +5 -5
- package/dist/composed/command-palette.js.map +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/content-card.js.map +1 -1
- package/dist/composed/emoji-picker.js +4 -4
- package/dist/composed/emoji-picker.js.map +1 -1
- package/dist/composed/empty-state.js +1 -1
- package/dist/composed/empty-state.js.map +1 -1
- package/dist/composed/error-boundary.js +3 -3
- package/dist/composed/error-boundary.js.map +1 -1
- package/dist/composed/filter-bar.js +1 -1
- package/dist/composed/filter-bar.js.map +1 -1
- package/dist/composed/index.d.ts +0 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +5 -6
- package/dist/composed/inline-edit.js +1 -1
- package/dist/composed/inline-edit.js.map +1 -1
- package/dist/composed/loading-skeleton.js +9 -9
- package/dist/composed/loading-skeleton.js.map +1 -1
- package/dist/composed/markdown-viewer.js +3 -3
- package/dist/composed/markdown-viewer.js.map +1 -1
- package/dist/composed/multi-select-popover.js +1 -1
- package/dist/composed/multi-select-popover.js.map +1 -1
- package/dist/composed/page-header.js +1 -1
- package/dist/composed/page-header.js.map +1 -1
- package/dist/composed/page-skeletons.js +15 -15
- package/dist/composed/page-skeletons.js.map +1 -1
- package/dist/composed/priority-indicator.js +3 -3
- package/dist/composed/priority-indicator.js.map +1 -1
- package/dist/composed/rich-text-editor.js +11 -11
- package/dist/composed/rich-text-editor.js.map +1 -1
- package/dist/composed/schedule-view.js +3 -3
- package/dist/composed/schedule-view.js.map +1 -1
- package/dist/composed/status-badge.js +3 -3
- package/dist/composed/status-badge.js.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/shell/bottom-navbar.js +6 -6
- package/dist/shell/bottom-navbar.js.map +1 -1
- package/dist/shell/notification-center.js +8 -8
- package/dist/shell/notification-center.js.map +1 -1
- package/dist/shell/notification-preferences.js +1 -1
- package/dist/shell/notification-preferences.js.map +1 -1
- package/dist/shell/sidebar.js +6 -6
- package/dist/shell/sidebar.js.map +1 -1
- package/dist/shell/top-bar.js +4 -4
- package/dist/shell/top-bar.js.map +1 -1
- package/dist/tokens/semantic.css +82 -9
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.js +3 -3
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +1 -2
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -29
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/autocomplete.js +2 -2
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.js +11 -11
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge-indicator.js +1 -1
- package/dist/ui/badge-indicator.js.map +1 -1
- package/dist/ui/banner.d.ts +3 -5
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +14 -14
- package/dist/ui/banner.js.map +1 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +14 -14
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +5 -5
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/charts/index.js +5 -5
- package/dist/ui/charts/index.js.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/code.js +2 -2
- package/dist/ui/code.js.map +1 -1
- package/dist/ui/color-input.js +10 -10
- package/dist/ui/color-input.js.map +1 -1
- package/dist/ui/color-swatch.js +3 -3
- package/dist/ui/color-swatch.js.map +1 -1
- package/dist/ui/combobox.js +5 -5
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.js +6 -6
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/data-table-body.js +1 -1
- package/dist/ui/data-table-body.js.map +1 -1
- package/dist/ui/data-table-bulk-actions.js +2 -2
- package/dist/ui/data-table-bulk-actions.js.map +1 -1
- package/dist/ui/data-table-card.js +2 -2
- package/dist/ui/data-table-card.js.map +1 -1
- package/dist/ui/data-table-header.js +2 -2
- package/dist/ui/data-table-header.js.map +1 -1
- package/dist/ui/data-table-pagination.js +3 -3
- package/dist/ui/data-table-pagination.js.map +1 -1
- package/dist/ui/data-table-toolbar.js +1 -1
- package/dist/ui/data-table-toolbar.js.map +1 -1
- package/dist/ui/data-table.js +1 -1
- package/dist/ui/data-table.js.map +1 -1
- package/dist/ui/devalok-grain.d.ts +1 -1
- package/dist/ui/devalok-grain.js.map +1 -1
- package/dist/ui/dialog.js +2 -2
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.js +6 -6
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/file-upload.js +4 -4
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/icon-button.js +1 -1
- package/dist/ui/icon-button.js.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.ts +1 -9
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +28 -29
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/menubar.js +8 -8
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/navigation-menu.js +3 -3
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/number-input.js +3 -3
- package/dist/ui/number-input.js.map +1 -1
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio.js +1 -1
- package/dist/ui/radio.js.map +1 -1
- package/dist/ui/segmented-control.d.ts +1 -1
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +5 -7
- package/dist/ui/segmented-control.js.map +1 -1
- package/dist/ui/select.js +3 -3
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/sheet.js.map +1 -1
- package/dist/ui/sidebar.js +11 -11
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/slider.js +2 -2
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/split-button.js +7 -7
- package/dist/ui/split-button.js.map +1 -1
- package/dist/ui/stat-card.js +7 -7
- package/dist/ui/stat-card.js.map +1 -1
- package/dist/ui/status-dot.js +2 -2
- package/dist/ui/status-dot.js.map +1 -1
- package/dist/ui/stepper.js +2 -2
- package/dist/ui/stepper.js.map +1 -1
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/toast.js +8 -8
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/tooltip.js.map +1 -1
- package/docs/components/_header.md +91 -2
- package/docs/components/ui/alert.md +4 -1
- package/docs/components/ui/banner.md +3 -1
- package/docs/components/ui/input.md +4 -2
- package/docs/components/ui/segmented-control.md +13 -6
- package/docs/recipes/customize-brand.md +297 -0
- package/docs/recipes/index.md +51 -0
- package/docs/recipes/install-astro.md +178 -0
- package/docs/recipes/install-next-app-router.md +230 -0
- package/docs/recipes/install-next-pages.md +123 -0
- package/docs/recipes/install-remix.md +171 -0
- package/docs/recipes/install-tanstack-start.md +143 -0
- package/docs/recipes/install-vite.md +170 -0
- package/docs/recipes/server-components.md +209 -0
- package/docs/recipes/troubleshoot.md +217 -0
- package/llms-full.txt +116 -54
- package/llms.txt +42 -17
- package/package.json +46 -35
- package/skill/README.md +99 -0
- package/skill/SKILL.md +144 -0
- package/skill/install.sh +59 -0
- package/skill/references/components-full.md +6997 -0
- package/skill/references/components.md +673 -0
- package/skill/references/customize-brand.md +299 -0
- package/skill/references/server-components.md +211 -0
- package/skill/references/setup-astro.md +180 -0
- package/skill/references/setup-next-app-router.md +232 -0
- package/skill/references/setup-next-pages.md +125 -0
- package/skill/references/setup-remix.md +173 -0
- package/skill/references/setup-tanstack-start.md +145 -0
- package/skill/references/setup-vite.md +172 -0
- package/skill/references/troubleshoot.md +219 -0
- package/dist/composed/responsive-overlay.d.ts +0 -23
- package/dist/composed/responsive-overlay.d.ts.map +0 -1
- package/dist/composed/responsive-overlay.js +0 -40
- package/dist/composed/responsive-overlay.js.map +0 -1
- package/dist/hooks/use-toast.d.ts +0 -17
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/use-toast.js +0 -3
- package/dist/tailwind/index.cjs +0 -41
- package/dist/tailwind/index.d.ts +0 -2
- package/dist/tailwind/index.d.ts.map +0 -1
- package/dist/tailwind/index.js +0 -2
- package/dist/tailwind/preset.d.ts +0 -25
- package/dist/tailwind/preset.d.ts.map +0 -1
- package/dist/tailwind/preset.js +0 -17
- package/dist/tailwind/preset.js.map +0 -1
- package/docs/components/composed/responsive-overlay.md +0 -41
- /package/{LICENSE → skill/LICENSE} +0 -0
|
@@ -48,7 +48,7 @@ var B = T.forwardRef(({ groups: e, query: t, command: n }, r) => {
|
|
|
48
48
|
return /* @__PURE__ */ k("div", {
|
|
49
49
|
role: "listbox",
|
|
50
50
|
"aria-label": "Slash commands",
|
|
51
|
-
className: "z-popover max-h-[320px] min-w-[220px] overflow-x-hidden overflow-y-auto rounded-
|
|
51
|
+
className: "z-popover max-h-[320px] min-w-[220px] overflow-x-hidden overflow-y-auto rounded-surface border border-surface-border-strong bg-surface-overlay p-ds-02 shadow-floating",
|
|
52
52
|
children: c.map((e, t) => /* @__PURE__ */ A("div", {
|
|
53
53
|
role: "group",
|
|
54
54
|
"aria-label": e.label,
|
|
@@ -65,7 +65,7 @@ var B = T.forwardRef(({ groups: e, query: t, command: n }, r) => {
|
|
|
65
65
|
role: "option",
|
|
66
66
|
"aria-selected": t === i,
|
|
67
67
|
onClick: () => n(e),
|
|
68
|
-
className: a("flex w-full items-center gap-ds-03 rounded-
|
|
68
|
+
className: a("flex w-full items-center gap-ds-03 rounded-control px-ds-03 py-ds-02 text-left cursor-pointer", t === i ? "bg-surface-raised-hover" : "hover:bg-surface-raised-hover"),
|
|
69
69
|
children: [r && /* @__PURE__ */ k("span", {
|
|
70
70
|
className: "flex h-4 w-4 shrink-0 items-center justify-center text-surface-fg-muted",
|
|
71
71
|
children: /* @__PURE__ */ k(r, { className: "h-4 w-4" })
|
|
@@ -214,11 +214,11 @@ function He({ attachments: e, onRemoveAttachment: t }) {
|
|
|
214
214
|
/* @__PURE__ */ k("img", {
|
|
215
215
|
src: e.url,
|
|
216
216
|
alt: e.name,
|
|
217
|
-
className: "h-full w-full rounded-
|
|
217
|
+
className: "h-full w-full rounded-control object-cover"
|
|
218
218
|
}),
|
|
219
219
|
/* @__PURE__ */ k("button", {
|
|
220
220
|
onClick: () => t(e.id),
|
|
221
|
-
className: "absolute -top-1 -right-1 h-ico-sm w-ico-sm rounded-
|
|
221
|
+
className: "absolute -top-1 -right-1 h-ico-sm w-ico-sm rounded-pill bg-error-9 text-error-fg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-fast-02",
|
|
222
222
|
"aria-label": `Remove ${e.name}`,
|
|
223
223
|
title: "Remove",
|
|
224
224
|
children: /* @__PURE__ */ k(s, {
|
|
@@ -227,7 +227,7 @@ function He({ attachments: e, onRemoveAttachment: t }) {
|
|
|
227
227
|
})
|
|
228
228
|
}),
|
|
229
229
|
e.uploading && /* @__PURE__ */ k("div", {
|
|
230
|
-
className: "absolute inset-0 rounded-
|
|
230
|
+
className: "absolute inset-0 rounded-control bg-surface-overlay/50 flex items-center justify-center",
|
|
231
231
|
children: /* @__PURE__ */ k(o, { size: "sm" })
|
|
232
232
|
})
|
|
233
233
|
]
|
|
@@ -260,7 +260,7 @@ function He({ attachments: e, onRemoveAttachment: t }) {
|
|
|
260
260
|
},
|
|
261
261
|
opacity: { duration: i.fast02 }
|
|
262
262
|
},
|
|
263
|
-
className: "flex items-center gap-ds-02 shrink-0 rounded-
|
|
263
|
+
className: "flex items-center gap-ds-02 shrink-0 rounded-control bg-surface-raised px-ds-03 py-ds-01 group",
|
|
264
264
|
children: [
|
|
265
265
|
/* @__PURE__ */ k(s, {
|
|
266
266
|
icon: Ce,
|
|
@@ -418,7 +418,7 @@ var Ge = T.forwardRef(function({ src: e, duration: t, waveformData: n, className
|
|
|
418
418
|
onClick: v,
|
|
419
419
|
onKeyDown: y,
|
|
420
420
|
"aria-label": l ? "Pause voice message" : "Play voice message",
|
|
421
|
-
className: "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-
|
|
421
|
+
className: "inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-pill bg-accent-9 text-accent-fg hover:bg-accent-10 active:scale-95 transition-colors duration-fast-01 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
422
422
|
children: k(l ? Ae : je, {
|
|
423
423
|
size: 16,
|
|
424
424
|
stroke: 2,
|
|
@@ -445,7 +445,7 @@ var Ge = T.forwardRef(function({ src: e, duration: t, waveformData: n, className
|
|
|
445
445
|
type: "button",
|
|
446
446
|
onClick: x,
|
|
447
447
|
"aria-label": `Playback speed ${C}x`,
|
|
448
|
-
className: "shrink-0 text-ds-xs bg-surface-raised rounded-
|
|
448
|
+
className: "shrink-0 text-ds-xs bg-surface-raised rounded-pill px-ds-02 py-[1px] hover:bg-surface-raised-hover tabular-nums transition-colors duration-fast-01 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
449
449
|
children: [C, "x"]
|
|
450
450
|
})
|
|
451
451
|
]
|
|
@@ -469,7 +469,7 @@ function U({ onClick: e, isActive: t, disabled: n, title: r, children: i, classN
|
|
|
469
469
|
title: r,
|
|
470
470
|
"aria-label": r,
|
|
471
471
|
"aria-pressed": t,
|
|
472
|
-
className: a("inline-flex h-ds-xs-plus items-center justify-center rounded-
|
|
472
|
+
className: a("inline-flex h-ds-xs-plus items-center justify-center rounded-control touch-target", !o?.includes("w-") && "w-ds-xs-plus", "transition-[color,background-color,transform] duration-fast-01 ease-productive-standard", "hover:bg-surface-raised-hover hover:text-surface-fg", "active:scale-95", "disabled:pointer-events-none disabled:opacity-action-disabled", t ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle", o),
|
|
473
473
|
children: i
|
|
474
474
|
});
|
|
475
475
|
}
|
|
@@ -738,10 +738,10 @@ function at({ duration: e, analyserNode: t, maxDuration: n, onCancel: r }) {
|
|
|
738
738
|
role: "status",
|
|
739
739
|
"aria-live": "polite",
|
|
740
740
|
"aria-label": "Recording voice message",
|
|
741
|
-
className: "absolute inset-0 flex items-center gap-ds-03 px-ds-04 py-ds-03 bg-surface-raised-hover rounded-
|
|
741
|
+
className: "absolute inset-0 flex items-center gap-ds-03 px-ds-04 py-ds-03 bg-surface-raised-hover rounded-surface z-10",
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ k("span", {
|
|
744
|
-
className: a("w-ds-02b h-ds-02b shrink-0 rounded-
|
|
744
|
+
className: a("w-ds-02b h-ds-02b shrink-0 rounded-pill bg-error-9", i ? "opacity-100" : c),
|
|
745
745
|
"aria-hidden": "true"
|
|
746
746
|
}),
|
|
747
747
|
/* @__PURE__ */ A("span", {
|
|
@@ -820,7 +820,7 @@ function ot({ author: e, preview: t, onDismiss: n }) {
|
|
|
820
820
|
}), /* @__PURE__ */ k("button", {
|
|
821
821
|
type: "button",
|
|
822
822
|
onClick: n,
|
|
823
|
-
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-
|
|
823
|
+
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-control touch-target", "text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-raised-hover", "transition-colors duration-fast-01 ease-productive-standard", "active:scale-95"),
|
|
824
824
|
"aria-label": "Cancel reply",
|
|
825
825
|
title: "Cancel reply",
|
|
826
826
|
children: /* @__PURE__ */ k(s, {
|
|
@@ -898,7 +898,7 @@ function ct({ value: e, onChange: t }) {
|
|
|
898
898
|
/* @__PURE__ */ k("select", {
|
|
899
899
|
value: n,
|
|
900
900
|
onChange: (e) => o(Number(e.target.value)),
|
|
901
|
-
className: "h-ds-sm rounded-
|
|
901
|
+
className: "h-ds-sm rounded-control border border-surface-border-strong bg-surface-raised px-ds-02 text-ds-sm text-surface-fg focus:outline-hidden focus:ring-2 focus:ring-accent-9",
|
|
902
902
|
"aria-label": "Hour",
|
|
903
903
|
children: Array.from({ length: 12 }, (e, t) => t + 1).map((e) => /* @__PURE__ */ k("option", {
|
|
904
904
|
value: e,
|
|
@@ -912,7 +912,7 @@ function ct({ value: e, onChange: t }) {
|
|
|
912
912
|
/* @__PURE__ */ k("select", {
|
|
913
913
|
value: r - r % 5,
|
|
914
914
|
onChange: (e) => s(Number(e.target.value)),
|
|
915
|
-
className: "h-ds-sm rounded-
|
|
915
|
+
className: "h-ds-sm rounded-control border border-surface-border-strong bg-surface-raised px-ds-02 text-ds-sm text-surface-fg focus:outline-hidden focus:ring-2 focus:ring-accent-9",
|
|
916
916
|
"aria-label": "Minute",
|
|
917
917
|
children: Array.from({ length: 12 }, (e, t) => t * 5).map((e) => /* @__PURE__ */ k("option", {
|
|
918
918
|
value: e,
|
|
@@ -920,7 +920,7 @@ function ct({ value: e, onChange: t }) {
|
|
|
920
920
|
}, e))
|
|
921
921
|
}),
|
|
922
922
|
/* @__PURE__ */ A("div", {
|
|
923
|
-
className: "inline-flex rounded-
|
|
923
|
+
className: "inline-flex rounded-control border border-surface-border-strong overflow-hidden",
|
|
924
924
|
children: [/* @__PURE__ */ k("button", {
|
|
925
925
|
type: "button",
|
|
926
926
|
onClick: () => c(!1),
|
|
@@ -958,7 +958,7 @@ function X({ value: e, onChange: t, minDate: n }) {
|
|
|
958
958
|
value: a,
|
|
959
959
|
min: s,
|
|
960
960
|
onChange: o,
|
|
961
|
-
className: "h-ds-sm rounded-
|
|
961
|
+
className: "h-ds-sm rounded-control border border-surface-border-strong bg-surface-raised px-ds-03 text-ds-sm text-surface-fg focus:outline-hidden focus:ring-2 focus:ring-accent-9"
|
|
962
962
|
})]
|
|
963
963
|
}), /* @__PURE__ */ A("div", {
|
|
964
964
|
className: "flex items-center justify-between",
|
|
@@ -1019,7 +1019,7 @@ function ut({ onSchedule: e, onClose: t, onOpenDialog: n }) {
|
|
|
1019
1019
|
}), /* @__PURE__ */ k("button", {
|
|
1020
1020
|
type: "button",
|
|
1021
1021
|
onClick: () => i(!1),
|
|
1022
|
-
className: "inline-flex items-center justify-center rounded-
|
|
1022
|
+
className: "inline-flex items-center justify-center rounded-control p-ds-01 text-surface-fg-subtle hover:bg-surface-raised-hover hover:text-surface-fg transition-colors",
|
|
1023
1023
|
"aria-label": "Back to presets",
|
|
1024
1024
|
children: /* @__PURE__ */ k(s, {
|
|
1025
1025
|
icon: L,
|
|
@@ -1056,7 +1056,7 @@ function ut({ onSchedule: e, onClose: t, onOpenDialog: n }) {
|
|
|
1056
1056
|
c.map((e, t) => /* @__PURE__ */ A("button", {
|
|
1057
1057
|
type: "button",
|
|
1058
1058
|
onClick: () => u(e.date),
|
|
1059
|
-
className: "flex w-full items-center gap-ds-03 rounded-
|
|
1059
|
+
className: "flex w-full items-center gap-ds-03 rounded-control px-ds-03 py-ds-02b text-ds-sm text-surface-fg hover:bg-surface-raised-hover transition-colors duration-fast-01",
|
|
1060
1060
|
children: [/* @__PURE__ */ k(s, {
|
|
1061
1061
|
icon: xe,
|
|
1062
1062
|
size: "sm",
|
|
@@ -1067,7 +1067,7 @@ function ut({ onSchedule: e, onClose: t, onOpenDialog: n }) {
|
|
|
1067
1067
|
/* @__PURE__ */ A("button", {
|
|
1068
1068
|
type: "button",
|
|
1069
1069
|
onClick: () => i(!0),
|
|
1070
|
-
className: "flex w-full items-center gap-ds-03 rounded-
|
|
1070
|
+
className: "flex w-full items-center gap-ds-03 rounded-control px-ds-03 py-ds-02b text-ds-sm text-surface-fg hover:bg-surface-raised-hover transition-colors duration-fast-01",
|
|
1071
1071
|
children: [/* @__PURE__ */ k(s, {
|
|
1072
1072
|
icon: ye,
|
|
1073
1073
|
size: "sm",
|
|
@@ -1079,7 +1079,7 @@ function ut({ onSchedule: e, onClose: t, onOpenDialog: n }) {
|
|
|
1079
1079
|
onClick: () => {
|
|
1080
1080
|
n(), t();
|
|
1081
1081
|
},
|
|
1082
|
-
className: "flex w-full items-center gap-ds-03 rounded-
|
|
1082
|
+
className: "flex w-full items-center gap-ds-03 rounded-control px-ds-03 py-ds-02b text-ds-sm text-surface-fg hover:bg-surface-raised-hover transition-colors duration-fast-01",
|
|
1083
1083
|
children: [/* @__PURE__ */ k(s, {
|
|
1084
1084
|
icon: ye,
|
|
1085
1085
|
size: "sm",
|
|
@@ -1168,7 +1168,7 @@ function ft({ date: e, onClear: t, onEdit: n }) {
|
|
|
1168
1168
|
n && /* @__PURE__ */ k("button", {
|
|
1169
1169
|
type: "button",
|
|
1170
1170
|
onClick: n,
|
|
1171
|
-
className: "inline-flex shrink-0 items-center justify-center rounded-
|
|
1171
|
+
className: "inline-flex shrink-0 items-center justify-center rounded-control-inner p-ds-01 hover:bg-accent-3 transition-colors",
|
|
1172
1172
|
"aria-label": "Edit schedule",
|
|
1173
1173
|
children: /* @__PURE__ */ k(s, {
|
|
1174
1174
|
icon: ke,
|
|
@@ -1178,7 +1178,7 @@ function ft({ date: e, onClear: t, onEdit: n }) {
|
|
|
1178
1178
|
/* @__PURE__ */ k("button", {
|
|
1179
1179
|
type: "button",
|
|
1180
1180
|
onClick: t,
|
|
1181
|
-
className: "inline-flex shrink-0 items-center justify-center rounded-
|
|
1181
|
+
className: "inline-flex shrink-0 items-center justify-center rounded-control-inner p-ds-01 hover:bg-accent-3 transition-colors",
|
|
1182
1182
|
"aria-label": "Cancel schedule",
|
|
1183
1183
|
children: /* @__PURE__ */ k(s, {
|
|
1184
1184
|
icon: L,
|
|
@@ -1308,7 +1308,7 @@ var ht = {
|
|
|
1308
1308
|
"[&_strong]:font-semibold [&_strong]:text-surface-fg",
|
|
1309
1309
|
"[&_mark]:rounded-xs [&_mark]:bg-warning-3 [&_mark]:px-[2px]",
|
|
1310
1310
|
"[&_a]:text-accent-11 [&_a]:underline",
|
|
1311
|
-
"[&_.mention]:rounded-
|
|
1311
|
+
"[&_.mention]:rounded-control-inner [&_.mention]:bg-accent-2 [&_.mention]:px-ds-02 [&_.mention]:py-[1px] [&_.mention]:font-medium [&_.mention]:text-accent-11"
|
|
1312
1312
|
].join(" ");
|
|
1313
1313
|
function _t({ options: e }) {
|
|
1314
1314
|
let [t, n] = T.useState(!1), r = T.useRef(null);
|
|
@@ -1327,13 +1327,13 @@ function _t({ options: e }) {
|
|
|
1327
1327
|
title: "More send options",
|
|
1328
1328
|
"aria-label": "More send options",
|
|
1329
1329
|
"aria-expanded": t,
|
|
1330
|
-
className: a("inline-flex h-ds-xs-plus w-5 items-center justify-center rounded-
|
|
1330
|
+
className: a("inline-flex h-ds-xs-plus w-5 items-center justify-center rounded-control touch-target", "text-surface-fg-subtle hover:bg-surface-raised-hover hover:text-surface-fg", "transition-colors duration-fast-01 ease-productive-standard", t && "bg-surface-raised-hover text-surface-fg"),
|
|
1331
1331
|
children: /* @__PURE__ */ k(s, {
|
|
1332
1332
|
icon: be,
|
|
1333
1333
|
size: "xs"
|
|
1334
1334
|
})
|
|
1335
1335
|
}), t && /* @__PURE__ */ A("div", {
|
|
1336
|
-
className: "absolute bottom-full right-0 mb-ds-02 min-w-[200px] rounded-
|
|
1336
|
+
className: "absolute bottom-full right-0 mb-ds-02 min-w-[200px] rounded-surface border border-surface-border-strong bg-surface-overlay p-ds-02 shadow-floating z-popover",
|
|
1337
1337
|
children: [/* @__PURE__ */ k("p", {
|
|
1338
1338
|
className: "px-ds-03 py-ds-01 text-ds-xs font-medium text-surface-fg-subtle",
|
|
1339
1339
|
children: "Send options"
|
|
@@ -1342,7 +1342,7 @@ function _t({ options: e }) {
|
|
|
1342
1342
|
onClick: () => {
|
|
1343
1343
|
e.onSelect(), n(!1);
|
|
1344
1344
|
},
|
|
1345
|
-
className: "flex w-full items-center gap-ds-03 rounded-
|
|
1345
|
+
className: "flex w-full items-center gap-ds-03 rounded-control px-ds-03 py-ds-02 text-ds-sm text-surface-fg hover:bg-surface-raised-hover transition-colors duration-fast-01",
|
|
1346
1346
|
children: [e.icon && /* @__PURE__ */ k(e.icon, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }), e.label]
|
|
1347
1347
|
}, t))]
|
|
1348
1348
|
})]
|
|
@@ -1365,7 +1365,7 @@ function yt({ set: e = "native", onSelect: t, onClose: n }) {
|
|
|
1365
1365
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
1366
1366
|
}, [n]);
|
|
1367
1367
|
let s = /* @__PURE__ */ k("div", {
|
|
1368
|
-
className: "flex h-[350px] w-[352px] items-center justify-center rounded-
|
|
1368
|
+
className: "flex h-[350px] w-[352px] items-center justify-center rounded-surface border border-surface-border-strong bg-surface-overlay shadow-floating",
|
|
1369
1369
|
children: /* @__PURE__ */ k("span", {
|
|
1370
1370
|
className: "text-ds-sm text-surface-fg-subtle",
|
|
1371
1371
|
children: "Loading..."
|
|
@@ -1373,7 +1373,7 @@ function yt({ set: e = "native", onSelect: t, onClose: n }) {
|
|
|
1373
1373
|
});
|
|
1374
1374
|
return /* @__PURE__ */ k("div", {
|
|
1375
1375
|
ref: o,
|
|
1376
|
-
className: "rounded-
|
|
1376
|
+
className: "rounded-surface border border-surface-border-strong bg-surface-overlay shadow-floating overflow-hidden",
|
|
1377
1377
|
children: r ? /* @__PURE__ */ k(T.Suspense, {
|
|
1378
1378
|
fallback: s,
|
|
1379
1379
|
children: /* @__PURE__ */ k(vt, {
|
|
@@ -1397,7 +1397,7 @@ function Q({ onClick: e, isActive: t = !1, title: n, children: r }) {
|
|
|
1397
1397
|
title: n,
|
|
1398
1398
|
"aria-label": n,
|
|
1399
1399
|
"aria-pressed": t,
|
|
1400
|
-
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-
|
|
1400
|
+
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-control touch-target", "transition-colors duration-fast-01 ease-productive-standard", "hover:bg-surface-raised-hover", t ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle"),
|
|
1401
1401
|
children: r
|
|
1402
1402
|
});
|
|
1403
1403
|
}
|
|
@@ -1415,7 +1415,7 @@ function bt({ editor: e }) {
|
|
|
1415
1415
|
});
|
|
1416
1416
|
return /* @__PURE__ */ A(w, {
|
|
1417
1417
|
editor: e,
|
|
1418
|
-
className: "flex gap-ds-01 rounded-
|
|
1418
|
+
className: "flex gap-ds-01 rounded-surface border border-surface-border-strong bg-surface-overlay p-ds-02 shadow-floating",
|
|
1419
1419
|
children: [
|
|
1420
1420
|
/* @__PURE__ */ k(Q, {
|
|
1421
1421
|
onClick: () => e.chain().focus().toggleBold().run(),
|
|
@@ -1699,7 +1699,7 @@ var xt = T.forwardRef(function({ onSubmit: o, placeholder: u = "Type a message..
|
|
|
1699
1699
|
/* @__PURE__ */ A("div", {
|
|
1700
1700
|
role: "region",
|
|
1701
1701
|
"aria-label": "Message composer",
|
|
1702
|
-
className: a("flex-1 min-w-0 overflow-hidden rounded-
|
|
1702
|
+
className: a("flex-1 min-w-0 overflow-hidden rounded-surface border border-surface-border-strong bg-surface-raised-hover", "transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard", "hover:bg-surface-raised-active", "focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-accent-9", P === "recording" && "border-error-7/30", Je && "border-dashed border-accent-7 bg-accent-2", d && "opacity-action-disabled cursor-not-allowed"),
|
|
1703
1703
|
onFocus: () => We(!0),
|
|
1704
1704
|
onBlur: (e) => {
|
|
1705
1705
|
e.currentTarget.contains(e.relatedTarget) || We(!1);
|
|
@@ -1766,7 +1766,7 @@ var xt = T.forwardRef(function({ onSubmit: o, placeholder: u = "Type a message..
|
|
|
1766
1766
|
title: I ? "Hide formatting" : "Show formatting",
|
|
1767
1767
|
"aria-label": I ? "Hide formatting" : "Show formatting",
|
|
1768
1768
|
"aria-pressed": I,
|
|
1769
|
-
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-
|
|
1769
|
+
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-control touch-target", "transition-colors duration-fast-01 ease-productive-standard", "hover:bg-surface-raised-hover", I ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle"),
|
|
1770
1770
|
children: /* @__PURE__ */ k(s, {
|
|
1771
1771
|
icon: Fe,
|
|
1772
1772
|
size: "xs"
|
|
@@ -1779,7 +1779,7 @@ var xt = T.forwardRef(function({ onSubmit: o, placeholder: u = "Type a message..
|
|
|
1779
1779
|
onClick: () => Re((e) => !e),
|
|
1780
1780
|
title: "Emoji",
|
|
1781
1781
|
"aria-label": "Emoji",
|
|
1782
|
-
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-
|
|
1782
|
+
className: a("inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-control touch-target transition-colors duration-fast-01", Le ? "bg-surface-raised-hover text-accent-11" : "text-surface-fg-subtle hover:bg-surface-raised-hover hover:text-surface-fg"),
|
|
1783
1783
|
children: /* @__PURE__ */ k(s, {
|
|
1784
1784
|
icon: Oe,
|
|
1785
1785
|
size: "xs"
|