@devalok/shilp-sutra 0.56.0 → 0.59.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 +198 -0
- package/dist/_chunks/badge-group.js +75 -174
- package/dist/_chunks/badge-group.js.map +1 -1
- package/dist/_chunks/chat.js +270 -253
- package/dist/_chunks/chat.js.map +1 -1
- package/dist/_chunks/document-preview.js +1 -1
- package/dist/_chunks/document-preview.js.map +1 -1
- package/dist/_chunks/emoji-suggestion.js +1 -1
- package/dist/_chunks/emoji-suggestion.js.map +1 -1
- package/dist/_chunks/image-preview.js +71 -70
- package/dist/_chunks/image-preview.js.map +1 -1
- package/dist/_chunks/mention-suggestion.js +2 -2
- package/dist/_chunks/mention-suggestion.js.map +1 -1
- package/dist/_chunks/motion-preference.js +15 -0
- package/dist/_chunks/motion-preference.js.map +1 -0
- package/dist/_chunks/motion-provider.js +1 -1
- package/dist/_chunks/motion-provider.js.map +1 -1
- package/dist/_chunks/oauth-button.js +1 -1
- package/dist/_chunks/oauth-button.js.map +1 -1
- package/dist/_chunks/popover.js +50 -49
- package/dist/_chunks/popover.js.map +1 -1
- package/dist/_chunks/primitives-internal.js +29 -29
- package/dist/_chunks/primitives-internal.js.map +1 -1
- package/dist/_chunks/shared.js +48 -47
- package/dist/_chunks/shared.js.map +1 -1
- package/dist/_chunks/success.js +36 -36
- package/dist/_chunks/success.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 +4 -4
- package/dist/_chunks/use-calendar.js.map +1 -1
- package/dist/ai/block-renderer.js +8 -8
- package/dist/ai/blocks/text.js +1 -1
- package/dist/ai/blocks/text.js.map +1 -1
- package/dist/ai/command-bar.js +67 -67
- package/dist/ai/command-bar.js.map +1 -1
- package/dist/ai/conversation.js +35 -35
- package/dist/ai/conversation.js.map +1 -1
- package/dist/ai/index.js +4 -4
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +109 -108
- package/dist/composed/activity-feed.js.map +1 -1
- package/dist/composed/avatar-group.d.ts +7 -2
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +3 -3
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/command-palette.js +137 -137
- package/dist/composed/command-palette.js.map +1 -1
- package/dist/composed/content-card.js +2 -2
- package/dist/composed/content-card.js.map +1 -1
- package/dist/composed/date-picker/index.js +9 -9
- package/dist/composed/date-picker/index.js.map +1 -1
- package/dist/composed/diff.d.ts +23 -2
- package/dist/composed/diff.d.ts.map +1 -1
- package/dist/composed/diff.js +341 -260
- package/dist/composed/diff.js.map +1 -1
- package/dist/composed/emoji-picker.js +3 -3
- package/dist/composed/emoji-picker.js.map +1 -1
- package/dist/composed/empty-state.js +4 -4
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/error-boundary.js.map +1 -1
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -1
- package/dist/composed/file-preview/shared.d.ts.map +1 -1
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +152 -151
- package/dist/composed/file-preview.js.map +1 -1
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +53 -52
- package/dist/composed/filter-bar.js.map +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +38 -37
- package/dist/composed/form-section.js.map +1 -1
- package/dist/composed/inline-edit.js +1 -1
- package/dist/composed/inline-edit.js.map +1 -1
- package/dist/composed/loading-skeleton.js +3 -3
- package/dist/composed/loading-skeleton.js.map +1 -1
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +1 -1
- package/dist/composed/master-detail.js.map +1 -1
- package/dist/composed/member-picker.js +1 -1
- package/dist/composed/member-picker.js.map +1 -1
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +109 -108
- package/dist/composed/multi-select-popover.js.map +1 -1
- package/dist/composed/page-skeletons.js +4 -4
- package/dist/composed/page-skeletons.js.map +1 -1
- package/dist/composed/responsive-modal.js +1 -1
- package/dist/composed/responsive-modal.js.map +1 -1
- package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.d.ts.map +1 -1
- package/dist/composed/rich-chat-input.js +473 -472
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +6 -6
- package/dist/composed/rich-text-editor.js.map +1 -1
- package/dist/composed/schedule-view.js +5 -5
- package/dist/composed/schedule-view.js.map +1 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +29 -28
- package/dist/composed/status-badge.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -3
- package/dist/hooks/use-container-size.d.ts +18 -0
- package/dist/hooks/use-container-size.d.ts.map +1 -0
- package/dist/hooks/use-container-size.js +28 -0
- package/dist/hooks/use-container-size.js.map +1 -0
- package/dist/motion/index.d.ts +1 -0
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +2 -15
- package/dist/motion/motion-preference.d.ts +36 -0
- package/dist/motion/motion-preference.d.ts.map +1 -0
- package/dist/motion/motion-provider.d.ts +2 -1
- package/dist/motion/motion-provider.d.ts.map +1 -1
- package/dist/motion/primitives-index.js +103 -102
- package/dist/motion/primitives-index.js.map +1 -1
- package/dist/motion/primitives.d.ts.map +1 -1
- package/dist/shell/app-shell.d.ts +101 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/app-shell.js +76 -0
- package/dist/shell/app-shell.js.map +1 -0
- package/dist/shell/bottom-navbar.js +21 -21
- package/dist/shell/bottom-navbar.js.map +1 -1
- package/dist/shell/index.d.ts +2 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +6 -5
- package/dist/shell/notification-center.d.ts +17 -0
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +110 -105
- 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/top-bar.js +7 -7
- package/dist/shell/top-bar.js.map +1 -1
- package/dist/tokens/generate-scale.d.ts +49 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -1
- package/dist/tokens/index.css +1 -0
- package/dist/tokens/palettes.css +292 -0
- package/dist/tokens/primitives.css +29 -26
- package/dist/tokens/semantic.css +170 -47
- package/dist/tokens/shilp-sutra.css +1 -0
- package/dist/tokens/utilities.css +10 -7
- package/dist/tokens/variants.css +1 -1
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +27 -26
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +60 -59
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +55 -113
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/autocomplete.js +80 -80
- package/dist/ui/autocomplete.js.map +1 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +71 -70
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge-indicator.d.ts +4 -8
- package/dist/ui/badge-indicator.d.ts.map +1 -1
- package/dist/ui/badge-indicator.js +3 -8
- package/dist/ui/badge-indicator.js.map +1 -1
- package/dist/ui/badge.d.ts +55 -34
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +43 -41
- package/dist/ui/banner.js.map +1 -1
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +3 -23
- package/dist/ui/button-group.js.map +1 -1
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +79 -212
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +78 -75
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.js +1 -1
- package/dist/ui/charts/radar-chart.js.map +1 -1
- package/dist/ui/chat/date-separator.d.ts +8 -1
- package/dist/ui/chat/date-separator.d.ts.map +1 -1
- package/dist/ui/chat/message-list.d.ts.map +1 -1
- package/dist/ui/chat/message.d.ts.map +1 -1
- package/dist/ui/chat/typing-indicator.d.ts.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.d.ts.map +1 -1
- package/dist/ui/color-input.js +151 -150
- package/dist/ui/color-input.js.map +1 -1
- package/dist/ui/combobox.d.ts +14 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +156 -152
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +70 -69
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/data-table-body.d.ts +3 -1
- package/dist/ui/data-table-body.d.ts.map +1 -1
- package/dist/ui/data-table-body.js +93 -92
- package/dist/ui/data-table-body.js.map +1 -1
- package/dist/ui/data-table-bulk-actions.d.ts +7 -1
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -1
- package/dist/ui/data-table-bulk-actions.js +14 -8
- package/dist/ui/data-table-bulk-actions.js.map +1 -1
- package/dist/ui/data-table-card.d.ts.map +1 -1
- package/dist/ui/data-table-card.js +66 -47
- package/dist/ui/data-table-card.js.map +1 -1
- package/dist/ui/data-table-context.d.ts +4 -0
- package/dist/ui/data-table-context.d.ts.map +1 -1
- package/dist/ui/data-table-context.js +2 -2
- package/dist/ui/data-table-context.js.map +1 -1
- package/dist/ui/data-table-header.d.ts.map +1 -1
- package/dist/ui/data-table-header.js +50 -46
- 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.d.ts +11 -1
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +7 -7
- package/dist/ui/data-table-toolbar.js.map +1 -1
- package/dist/ui/data-table.d.ts +52 -5
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +181 -169
- package/dist/ui/data-table.js.map +1 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +62 -61
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dot.d.ts.map +1 -1
- package/dist/ui/dot.js +10 -41
- package/dist/ui/dot.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +79 -78
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +117 -116
- package/dist/ui/file-upload.js.map +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +27 -26
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +26 -25
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/icon.js +7 -7
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- 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.js +8 -8
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +73 -72
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +80 -79
- 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/popover.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +2 -2
- package/dist/ui/progress-ring.js.map +1 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +82 -74
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +32 -31
- package/dist/ui/radio.js.map +1 -1
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -27
- package/dist/ui/search-input.js.map +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +67 -66
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sheet.js.map +1 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +14 -14
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/slider.d.ts +63 -9
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +75 -33
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/split-button.d.ts +8 -2
- package/dist/ui/split-button.d.ts.map +1 -1
- package/dist/ui/split-button.js +49 -95
- package/dist/ui/split-button.js.map +1 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +89 -88
- package/dist/ui/stat-card.js.map +1 -1
- package/dist/ui/stat-flash.js +16 -16
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +63 -62
- package/dist/ui/stepper.js.map +1 -1
- package/dist/ui/surface.d.ts.map +1 -1
- package/dist/ui/surface.js +2 -2
- package/dist/ui/surface.js.map +1 -1
- package/dist/ui/switch.js +1 -1
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.js +3 -3
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +68 -67
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.js +5 -5
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +196 -195
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +26 -24
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +37 -36
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
- package/docs/components/composed/avatar-group.md +4 -4
- package/docs/components/composed/diff.md +10 -2
- package/docs/components/composed/schedule-view.md +1 -1
- package/docs/components/shell/app-shell.md +132 -0
- package/docs/components/ui/avatar.md +1 -1
- package/docs/components/ui/button.md +1 -1
- package/docs/components/ui/chat.md +7 -1
- package/docs/components/ui/color-swatch.md +1 -1
- package/docs/components/ui/data-table-toolbar.md +6 -2
- package/docs/components/ui/data-table.md +41 -7
- package/docs/components/ui/dot.md +1 -1
- package/docs/components/ui/progress.md +1 -0
- package/docs/components/ui/surface.md +3 -3
- package/docs/components/ui/table.md +2 -2
- package/docs/recipes/customize-brand.md +58 -0
- package/docs/recipes/install-astro.md +1 -0
- package/docs/recipes/install-next-app-router.md +1 -0
- package/docs/recipes/install-next-pages.md +22 -1
- package/docs/recipes/install-remix.md +1 -0
- package/docs/recipes/install-tanstack-start.md +1 -0
- package/docs/recipes/install-vite.md +2 -0
- package/docs/recipes/server-components.md +7 -4
- package/docs/recipes/troubleshoot.md +1 -0
- package/llms.txt +2 -1
- package/make-kit/Guidelines.md +2 -2
- package/make-kit/components/button.md +1 -1
- package/make-kit/components/card.md +6 -6
- package/make-kit/components/surface.md +4 -4
- package/make-kit/foundations/color.md +4 -4
- package/make-kit/foundations/dark-mode.md +1 -1
- package/make-kit/foundations/radius.md +1 -1
- package/make-kit/foundations/surfaces.md +9 -9
- package/mcp-manifest.json +358 -35
- package/package.json +8 -4
- package/skill/SKILL.md +12 -6
- package/skill/references/components.md +2 -1
- package/skill/references/customize-brand.md +58 -0
- package/skill/references/server-components.md +7 -4
- package/skill/references/setup-astro.md +1 -0
- package/skill/references/setup-next-app-router.md +1 -0
- package/skill/references/setup-next-pages.md +22 -1
- package/skill/references/setup-remix.md +1 -0
- package/skill/references/setup-tanstack-start.md +1 -0
- package/skill/references/setup-vite.md +2 -0
- package/skill/references/troubleshoot.md +1 -0
- package/dist/motion/check-motion-provider.d.ts +0 -2
- package/dist/motion/check-motion-provider.d.ts.map +0 -1
- package/dist/motion/index.js.map +0 -1
- package/dist/primitives/react-toast.d.ts +0 -120
- package/dist/ui/charts/_internal/scales.d.ts +0 -5
- package/dist/ui/charts/_internal/scales.d.ts.map +0 -1
- package/dist/ui/lib/slot.d.ts +0 -8
- package/dist/ui/lib/slot.d.ts.map +0 -1
|
@@ -4,13 +4,13 @@ import t, { useLayoutEffect as n } from "react";
|
|
|
4
4
|
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
5
5
|
import * as a from "react-dom";
|
|
6
6
|
import o from "react-dom";
|
|
7
|
-
//#region src/primitives/_internal/react-context.
|
|
7
|
+
//#region src/primitives/_internal/react-context.tsx
|
|
8
8
|
function s(t, n) {
|
|
9
9
|
let r = e.createContext(n);
|
|
10
10
|
r.displayName = t + "Context";
|
|
11
11
|
let a = (t) => {
|
|
12
12
|
let { children: n, ...a } = t, o = e.useMemo(() => a, Object.values(a));
|
|
13
|
-
return i(r.Provider, {
|
|
13
|
+
return /* @__PURE__ */ i(r.Provider, {
|
|
14
14
|
value: o,
|
|
15
15
|
children: n
|
|
16
16
|
});
|
|
@@ -33,7 +33,7 @@ function c(t, n = []) {
|
|
|
33
33
|
r = [...r, a];
|
|
34
34
|
let c = (n) => {
|
|
35
35
|
let { scope: r, children: a, ...c } = n, l = r?.[t]?.[s] || o, u = e.useMemo(() => c, Object.values(c));
|
|
36
|
-
return i(l.Provider, {
|
|
36
|
+
return /* @__PURE__ */ i(l.Provider, {
|
|
37
37
|
value: u,
|
|
38
38
|
children: a
|
|
39
39
|
});
|
|
@@ -81,7 +81,7 @@ function l(...t) {
|
|
|
81
81
|
return r.scopeName = n.scopeName, r;
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
|
-
//#region src/primitives/_internal/react-compose-refs.
|
|
84
|
+
//#region src/primitives/_internal/react-compose-refs.ts
|
|
85
85
|
function u(e, t) {
|
|
86
86
|
if (typeof e == "function") return e(t);
|
|
87
87
|
e != null && (e.current = t);
|
|
@@ -104,7 +104,7 @@ function f(...t) {
|
|
|
104
104
|
return e.useCallback(d(...t), t);
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region src/primitives/react-slot.
|
|
107
|
+
//#region src/primitives/react-slot.tsx
|
|
108
108
|
var p = Symbol.for("react.lazy"), m = e.use;
|
|
109
109
|
function h(e) {
|
|
110
110
|
return typeof e == "object" && !!e && "then" in e;
|
|
@@ -120,13 +120,13 @@ function _(t) {
|
|
|
120
120
|
let s = e.Children.toArray(a), c = s.find(C);
|
|
121
121
|
if (c) {
|
|
122
122
|
let t = c.props.children, a = s.map((n) => n === c ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
123
|
-
return i(n, {
|
|
123
|
+
return /* @__PURE__ */ i(n, {
|
|
124
124
|
...o,
|
|
125
125
|
ref: r,
|
|
126
126
|
children: e.isValidElement(t) ? e.cloneElement(t, void 0, a) : null
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
return i(n, {
|
|
129
|
+
return /* @__PURE__ */ i(n, {
|
|
130
130
|
...o,
|
|
131
131
|
ref: r,
|
|
132
132
|
children: a
|
|
@@ -150,7 +150,7 @@ function y(t) {
|
|
|
150
150
|
var b = Symbol("radix.slottable");
|
|
151
151
|
/* @__NO_SIDE_EFFECTS__ */
|
|
152
152
|
function x(e) {
|
|
153
|
-
let t = ({ children: e }) => i(r, { children: e });
|
|
153
|
+
let t = ({ children: e }) => /* @__PURE__ */ i(r, { children: e });
|
|
154
154
|
return t.displayName = `${e}.Slottable`, t.__radixId = b, t;
|
|
155
155
|
}
|
|
156
156
|
var S = /* @__PURE__ */ x("Slottable");
|
|
@@ -240,7 +240,7 @@ function D(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region src/primitives/_internal/react-use-layout-effect.
|
|
243
|
+
//#region src/primitives/_internal/react-use-layout-effect.ts
|
|
244
244
|
var O = globalThis?.document ? e.useLayoutEffect : () => {}, k = e.useInsertionEffect || O;
|
|
245
245
|
function A({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
246
246
|
let [a, o, s] = j({
|
|
@@ -275,7 +275,7 @@ function M(e) {
|
|
|
275
275
|
return typeof e == "function";
|
|
276
276
|
}
|
|
277
277
|
//#endregion
|
|
278
|
-
//#region src/primitives/_internal/react-primitive.
|
|
278
|
+
//#region src/primitives/_internal/react-primitive.tsx
|
|
279
279
|
var N = [
|
|
280
280
|
"a",
|
|
281
281
|
"button",
|
|
@@ -297,7 +297,7 @@ var N = [
|
|
|
297
297
|
].reduce((t, n) => {
|
|
298
298
|
let r = /* @__PURE__ */ _(`Primitive.${n}`), a = e.forwardRef((e, t) => {
|
|
299
299
|
let { asChild: a, ...o } = e, s = a ? r : n;
|
|
300
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), i(s, {
|
|
300
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(s, {
|
|
301
301
|
...o,
|
|
302
302
|
ref: t
|
|
303
303
|
});
|
|
@@ -389,7 +389,7 @@ function se(t) {
|
|
|
389
389
|
return t || n || "ltr";
|
|
390
390
|
}
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region src/primitives/_internal/react-use-callback-ref.
|
|
392
|
+
//#region src/primitives/_internal/react-use-callback-ref.ts
|
|
393
393
|
function L(t) {
|
|
394
394
|
let n = e.useRef(t);
|
|
395
395
|
return e.useEffect(() => {
|
|
@@ -397,7 +397,7 @@ function L(t) {
|
|
|
397
397
|
}), e.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
398
398
|
}
|
|
399
399
|
//#endregion
|
|
400
|
-
//#region src/primitives/_internal/react-use-escape-keydown.
|
|
400
|
+
//#region src/primitives/_internal/react-use-escape-keydown.ts
|
|
401
401
|
function ce(t, n = globalThis?.document) {
|
|
402
402
|
let r = L(t);
|
|
403
403
|
e.useEffect(() => {
|
|
@@ -408,7 +408,7 @@ function ce(t, n = globalThis?.document) {
|
|
|
408
408
|
}, [r, n]);
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region src/primitives/_internal/react-dismissable-layer.
|
|
411
|
+
//#region src/primitives/_internal/react-dismissable-layer.tsx
|
|
412
412
|
var le = "DismissableLayer", ue = "dismissableLayer.update", de = "dismissableLayer.pointerDownOutside", fe = "dismissableLayer.focusOutside", pe, me = e.createContext({
|
|
413
413
|
layers: /* @__PURE__ */ new Set(),
|
|
414
414
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
@@ -437,7 +437,7 @@ var le = "DismissableLayer", ue = "dismissableLayer.update", de = "dismissableLa
|
|
|
437
437
|
}, [p, d]), e.useEffect(() => {
|
|
438
438
|
let e = () => g({});
|
|
439
439
|
return document.addEventListener(ue, e), () => document.removeEventListener(ue, e);
|
|
440
|
-
}, []), i(N.div, {
|
|
440
|
+
}, []), /* @__PURE__ */ i(N.div, {
|
|
441
441
|
...u,
|
|
442
442
|
ref: _,
|
|
443
443
|
style: {
|
|
@@ -457,7 +457,7 @@ var ge = "DismissableLayerBranch", _e = e.forwardRef((t, n) => {
|
|
|
457
457
|
if (e) return r.branches.add(e), () => {
|
|
458
458
|
r.branches.delete(e);
|
|
459
459
|
};
|
|
460
|
-
}, [r.branches]), i(N.div, {
|
|
460
|
+
}, [r.branches]), /* @__PURE__ */ i(N.div, {
|
|
461
461
|
...t,
|
|
462
462
|
ref: o
|
|
463
463
|
});
|
|
@@ -646,12 +646,12 @@ function Ie(e) {
|
|
|
646
646
|
return e.filter((e) => e.tagName !== "A");
|
|
647
647
|
}
|
|
648
648
|
//#endregion
|
|
649
|
-
//#region src/primitives/_internal/react-portal.
|
|
649
|
+
//#region src/primitives/_internal/react-portal.tsx
|
|
650
650
|
var Le = "Portal", Re = e.forwardRef((t, n) => {
|
|
651
651
|
let { container: r, ...a } = t, [s, c] = e.useState(!1);
|
|
652
652
|
O(() => c(!0), []);
|
|
653
653
|
let l = r || s && globalThis?.document?.body;
|
|
654
|
-
return l ? o.createPortal(i(N.div, {
|
|
654
|
+
return l ? o.createPortal(/* @__PURE__ */ i(N.div, {
|
|
655
655
|
...a,
|
|
656
656
|
ref: n
|
|
657
657
|
}), l) : null;
|
|
@@ -1748,7 +1748,7 @@ function Vn(t) {
|
|
|
1748
1748
|
return e.useMemo(() => (n.current.value !== t && (n.current.previous = n.current.value, n.current.value = t), n.current.previous), [t]);
|
|
1749
1749
|
}
|
|
1750
1750
|
//#endregion
|
|
1751
|
-
//#region src/primitives/_internal/react-use-size.
|
|
1751
|
+
//#region src/primitives/_internal/react-use-size.ts
|
|
1752
1752
|
function Hn(t) {
|
|
1753
1753
|
let [n, r] = e.useState(void 0);
|
|
1754
1754
|
return O(() => {
|
|
@@ -1774,23 +1774,23 @@ function Hn(t) {
|
|
|
1774
1774
|
}, [t]), n;
|
|
1775
1775
|
}
|
|
1776
1776
|
//#endregion
|
|
1777
|
-
//#region src/primitives/_internal/react-arrow.
|
|
1777
|
+
//#region src/primitives/_internal/react-arrow.tsx
|
|
1778
1778
|
var Un = "Arrow", Wn = e.forwardRef((e, t) => {
|
|
1779
1779
|
let { children: n, width: r = 10, height: a = 5, ...o } = e;
|
|
1780
|
-
return i(N.svg, {
|
|
1780
|
+
return /* @__PURE__ */ i(N.svg, {
|
|
1781
1781
|
...o,
|
|
1782
1782
|
ref: t,
|
|
1783
1783
|
width: r,
|
|
1784
1784
|
height: a,
|
|
1785
1785
|
viewBox: "0 0 30 10",
|
|
1786
1786
|
preserveAspectRatio: "none",
|
|
1787
|
-
children: e.asChild ? n : i("polygon", { points: "0,0 30,0 15,10" })
|
|
1787
|
+
children: e.asChild ? n : /* @__PURE__ */ i("polygon", { points: "0,0 30,0 15,10" })
|
|
1788
1788
|
});
|
|
1789
1789
|
});
|
|
1790
1790
|
Wn.displayName = Un;
|
|
1791
1791
|
var Gn = Wn, Kn = "Popper", [qn, Jn] = c(Kn), [Yn, Xn] = qn(Kn), Zn = (t) => {
|
|
1792
1792
|
let { __scopePopper: n, children: r } = t, [a, o] = e.useState(null);
|
|
1793
|
-
return i(Yn, {
|
|
1793
|
+
return /* @__PURE__ */ i(Yn, {
|
|
1794
1794
|
scope: n,
|
|
1795
1795
|
anchor: a,
|
|
1796
1796
|
onAnchorChange: o,
|
|
@@ -1803,7 +1803,7 @@ var Qn = "PopperAnchor", $n = e.forwardRef((t, n) => {
|
|
|
1803
1803
|
return e.useEffect(() => {
|
|
1804
1804
|
let e = u.current;
|
|
1805
1805
|
u.current = a?.current || c.current, e !== u.current && s.onAnchorChange(u.current);
|
|
1806
|
-
}), a ? null : i(N.div, {
|
|
1806
|
+
}), a ? null : /* @__PURE__ */ i(N.div, {
|
|
1807
1807
|
...o,
|
|
1808
1808
|
ref: l
|
|
1809
1809
|
});
|
|
@@ -1864,7 +1864,7 @@ var er = "PopperContent", [tr, nr] = qn(er), rr = e.forwardRef((t, n) => {
|
|
|
1864
1864
|
let oe = I.arrow?.x, se = I.arrow?.y, ce = I.arrow?.centerOffset !== 0, [le, ue] = e.useState();
|
|
1865
1865
|
return O(() => {
|
|
1866
1866
|
b && ue(window.getComputedStyle(b).zIndex);
|
|
1867
|
-
}, [b]), i("div", {
|
|
1867
|
+
}, [b]), /* @__PURE__ */ i("div", {
|
|
1868
1868
|
ref: ee.setFloating,
|
|
1869
1869
|
"data-radix-popper-content-wrapper": "",
|
|
1870
1870
|
style: {
|
|
@@ -1879,14 +1879,14 @@ var er = "PopperContent", [tr, nr] = qn(er), rr = e.forwardRef((t, n) => {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
},
|
|
1881
1881
|
dir: t.dir,
|
|
1882
|
-
children: i(tr, {
|
|
1882
|
+
children: /* @__PURE__ */ i(tr, {
|
|
1883
1883
|
scope: r,
|
|
1884
1884
|
placedSide: re,
|
|
1885
1885
|
onArrowChange: w,
|
|
1886
1886
|
arrowX: oe,
|
|
1887
1887
|
arrowY: se,
|
|
1888
1888
|
shouldHideArrow: ce,
|
|
1889
|
-
children: i(N.div, {
|
|
1889
|
+
children: /* @__PURE__ */ i(N.div, {
|
|
1890
1890
|
"data-side": re,
|
|
1891
1891
|
"data-align": ie,
|
|
1892
1892
|
...v,
|
|
@@ -1907,7 +1907,7 @@ var ir = "PopperArrow", ar = {
|
|
|
1907
1907
|
left: "right"
|
|
1908
1908
|
}, or = e.forwardRef(function(e, t) {
|
|
1909
1909
|
let { __scopePopper: n, ...r } = e, a = nr(ir, n), o = ar[a.placedSide];
|
|
1910
|
-
return i("span", {
|
|
1910
|
+
return /* @__PURE__ */ i("span", {
|
|
1911
1911
|
ref: a.onArrowChange,
|
|
1912
1912
|
style: {
|
|
1913
1913
|
position: "absolute",
|
|
@@ -1928,7 +1928,7 @@ var ir = "PopperArrow", ar = {
|
|
|
1928
1928
|
}[a.placedSide],
|
|
1929
1929
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
1930
1930
|
},
|
|
1931
|
-
children: i(Gn, {
|
|
1931
|
+
children: /* @__PURE__ */ i(Gn, {
|
|
1932
1932
|
...r,
|
|
1933
1933
|
ref: t,
|
|
1934
1934
|
style: {
|