@tryghost/shade 0.1.0-alpha.5 → 0.1.0-alpha.50
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/README.md +38 -67
- package/es/app.js +2 -1
- package/es/assets/images/index.js +2 -2
- package/es/components/page-templates/list-page.js +3 -2
- package/es/components/page-templates/list-page.js.map +1 -1
- package/es/components/patterns/color-picker.js +79 -56
- package/es/components/patterns/color-picker.js.map +1 -1
- package/es/components/patterns/filter-bar.js +4 -6
- package/es/components/patterns/filter-bar.js.map +1 -1
- package/es/components/patterns/filters-sheet.js +178 -0
- package/es/components/patterns/filters-sheet.js.map +1 -0
- package/es/components/patterns/filters.js +195 -80
- package/es/components/patterns/filters.js.map +1 -1
- package/es/components/patterns/gh-chart.js +6 -3
- package/es/components/patterns/gh-chart.js.map +1 -1
- package/es/components/patterns/image-upload.js +21 -16
- package/es/components/patterns/image-upload.js.map +1 -1
- package/es/components/patterns/kpi-tabs.js +4 -1
- package/es/components/patterns/kpi-tabs.js.map +1 -1
- package/es/components/patterns/page-header.js +21 -45
- package/es/components/patterns/page-header.js.map +1 -1
- package/es/components/patterns/setting-group-variants.js +1 -1
- package/es/components/patterns/setting-group-variants.js.map +1 -1
- package/es/components/patterns/setting-group.js +2 -2
- package/es/components/patterns/setting-group.js.map +1 -1
- package/es/components/patterns/settings-modal-variants.js +3 -0
- package/es/components/patterns/settings-modal-variants.js.map +1 -1
- package/es/components/patterns/settings-modal.js +10 -3
- package/es/components/patterns/settings-modal.js.map +1 -1
- package/es/components/patterns/share-modal.js +5 -17
- package/es/components/patterns/share-modal.js.map +1 -1
- package/es/components/patterns/use-mobile-filters.js +20 -0
- package/es/components/patterns/use-mobile-filters.js.map +1 -0
- package/es/components/ui/alert-dialog.js +25 -15
- package/es/components/ui/alert-dialog.js.map +1 -1
- package/es/components/ui/avatar.js +8 -4
- package/es/components/ui/avatar.js.map +1 -1
- package/es/components/ui/badge-variants.js +2 -1
- package/es/components/ui/badge-variants.js.map +1 -1
- package/es/components/ui/banner-variants.js +13 -5
- package/es/components/ui/banner-variants.js.map +1 -1
- package/es/components/ui/banner.js +9 -3
- package/es/components/ui/banner.js.map +1 -1
- package/es/components/ui/button-variants.js +2 -33
- package/es/components/ui/button-variants.js.map +1 -1
- package/es/components/ui/button.js +17 -5
- package/es/components/ui/button.js.map +1 -1
- package/es/components/ui/calendar.js +5 -6
- package/es/components/ui/calendar.js.map +1 -1
- package/es/components/ui/card-variants.js +3 -2
- package/es/components/ui/card-variants.js.map +1 -1
- package/es/components/ui/card.js +7 -4
- package/es/components/ui/card.js.map +1 -1
- package/es/components/ui/chart.js +2 -29
- package/es/components/ui/chart.js.map +1 -1
- package/es/components/ui/checkbox.js +1 -1
- package/es/components/ui/checkbox.js.map +1 -1
- package/es/components/ui/code-editor-view.js +1 -1
- package/es/components/ui/code-editor-view.js.map +1 -1
- package/es/components/ui/combobox.js +1 -1
- package/es/components/ui/combobox.js.map +1 -1
- package/es/components/ui/command.js +1 -14
- package/es/components/ui/command.js.map +1 -1
- package/es/components/ui/context-menu.js +18 -8
- package/es/components/ui/context-menu.js.map +1 -1
- package/es/components/ui/copy-field.js +2 -4
- package/es/components/ui/copy-field.js.map +1 -1
- package/es/components/ui/data-list.js +2 -4
- package/es/components/ui/data-list.js.map +1 -1
- package/es/components/ui/dialog.js +53 -11
- package/es/components/ui/dialog.js.map +1 -1
- package/es/components/ui/dropdown-menu.js +20 -10
- package/es/components/ui/dropdown-menu.js.map +1 -1
- package/es/components/ui/dropzone-variants.js +26 -10
- package/es/components/ui/dropzone-variants.js.map +1 -1
- package/es/components/ui/dropzone.js +2 -2
- package/es/components/ui/dropzone.js.map +1 -1
- package/es/components/ui/field.js +4 -4
- package/es/components/ui/field.js.map +1 -1
- package/es/components/ui/floating-sidebar.js +69 -18
- package/es/components/ui/floating-sidebar.js.map +1 -1
- package/es/components/ui/hover-card.js +13 -7
- package/es/components/ui/hover-card.js.map +1 -1
- package/es/components/ui/icon.js +1 -1
- package/es/components/ui/image-overlay-button.js +2 -2
- package/es/components/ui/image-overlay-button.js.map +1 -1
- package/es/components/ui/indicator-variants.js +2 -2
- package/es/components/ui/indicator-variants.js.map +1 -1
- package/es/components/ui/input-group-variants.js +5 -5
- package/es/components/ui/input-group-variants.js.map +1 -1
- package/es/components/ui/input-group.js +4 -7
- package/es/components/ui/input-group.js.map +1 -1
- package/es/components/ui/input-surface.js +5 -4
- package/es/components/ui/input-surface.js.map +1 -1
- package/es/components/ui/input.js +1 -1
- package/es/components/ui/input.js.map +1 -1
- package/es/components/ui/list.js +94 -0
- package/es/components/ui/list.js.map +1 -0
- package/es/components/ui/navbar.js +1 -3
- package/es/components/ui/navbar.js.map +1 -1
- package/es/components/ui/pagemenu.js +51 -15
- package/es/components/ui/pagemenu.js.map +1 -1
- package/es/components/ui/popover.js +14 -8
- package/es/components/ui/popover.js.map +1 -1
- package/es/components/ui/radio-group-variants.js +1 -1
- package/es/components/ui/radio-group-variants.js.map +1 -1
- package/es/components/ui/row-primary-action.js +48 -0
- package/es/components/ui/row-primary-action.js.map +1 -0
- package/es/components/ui/row-surface.js +18 -0
- package/es/components/ui/row-surface.js.map +1 -0
- package/es/components/ui/select-variants.js +6 -14
- package/es/components/ui/select-variants.js.map +1 -1
- package/es/components/ui/select.js +26 -19
- package/es/components/ui/select.js.map +1 -1
- package/es/components/ui/sheet.js +32 -19
- package/es/components/ui/sheet.js.map +1 -1
- package/es/components/ui/sidebar.js +2 -2
- package/es/components/ui/simple-pagination.js +4 -7
- package/es/components/ui/simple-pagination.js.map +1 -1
- package/es/components/ui/sortable-list.js +110 -11
- package/es/components/ui/sortable-list.js.map +1 -1
- package/es/components/ui/sticky-footer.js +62 -22
- package/es/components/ui/sticky-footer.js.map +1 -1
- package/es/components/ui/table.js +20 -9
- package/es/components/ui/table.js.map +1 -1
- package/es/components/ui/tabs-variants.js +23 -1
- package/es/components/ui/tabs-variants.js.map +1 -1
- package/es/components/ui/tabs.js +102 -21
- package/es/components/ui/tabs.js.map +1 -1
- package/es/components/ui/textarea.js +1 -1
- package/es/components/ui/textarea.js.map +1 -1
- package/es/components/ui/toast.js +2 -0
- package/es/components/ui/toggle-group.js +1 -3
- package/es/components/ui/toggle-group.js.map +1 -1
- package/es/components/ui/toggle-variants.js +1 -7
- package/es/components/ui/toggle-variants.js.map +1 -1
- package/es/components/ui/toggle.js +1 -2
- package/es/components/ui/toggle.js.map +1 -1
- package/es/components/ui/token-field.js +3 -3
- package/es/components/ui/token-field.js.map +1 -1
- package/es/components/ui/tooltip.js +81 -40
- package/es/components/ui/tooltip.js.map +1 -1
- package/es/components/ui/trend-badge.js +46 -12
- package/es/components/ui/trend-badge.js.map +1 -1
- package/es/components.js +24 -21
- package/es/hooks/use-row-behavior.js +94 -0
- package/es/hooks/use-row-behavior.js.map +1 -0
- package/es/hooks/use-row-press.js +63 -0
- package/es/hooks/use-row-press.js.map +1 -0
- package/es/{icon-BJcGsQ4b.js → icon--CakqPdG.js} +15 -19
- package/es/icon--CakqPdG.js.map +1 -0
- package/es/{images-CUcakpOD.js → images-F6slcZrB.js} +16 -42
- package/es/images-F6slcZrB.js.map +1 -0
- package/es/index.js +43 -39
- package/es/lib/app-overlay.js +184 -0
- package/es/lib/app-overlay.js.map +1 -0
- package/es/lib/date-utils.js +151 -0
- package/es/lib/date-utils.js.map +1 -0
- package/es/lib/ds-utils.js +16 -72
- package/es/lib/ds-utils.js.map +1 -1
- package/es/lib/safe-area.js +168 -0
- package/es/lib/safe-area.js.map +1 -0
- package/es/lib/svg-graphic.js +32 -0
- package/es/lib/svg-graphic.js.map +1 -0
- package/es/lib/toast-press.js +11 -0
- package/es/lib/toast-press.js.map +1 -0
- package/es/lib/utils.js +3 -2
- package/es/patterns.js +2 -1
- package/es/providers/header-tooltip-provider.js +1 -4
- package/es/providers/header-tooltip-provider.js.map +1 -1
- package/es/providers/shade-context.js +2 -1
- package/es/providers/shade-context.js.map +1 -1
- package/es/providers/shade-provider.js +28 -13
- package/es/providers/shade-provider.js.map +1 -1
- package/es/shade-app.js +22 -6
- package/es/shade-app.js.map +1 -1
- package/es/shade-scope.js +3 -2
- package/es/shade-scope.js.map +1 -1
- package/es/tokens.js +56 -8
- package/es/tokens.js.map +1 -1
- package/es/utils.js +3 -2
- package/package.json +6 -6
- package/preflight.css +0 -10
- package/styles.css +469 -12
- package/tailwind.theme.css +237 -187
- package/theme-variables.css +412 -44
- package/types/app.d.ts +7 -5
- package/types/app.d.ts.map +1 -1
- package/types/assets/images/index.d.ts +3 -3
- package/types/assets/images/index.d.ts.map +1 -1
- package/types/components/page-templates/list-page.d.ts +2 -1
- package/types/components/page-templates/list-page.d.ts.map +1 -1
- package/types/components/page-templates/modal-page.d.ts +1 -1
- package/types/components/patterns/color-picker.d.ts +7 -2
- package/types/components/patterns/color-picker.d.ts.map +1 -1
- package/types/components/patterns/filter-bar.d.ts +2 -2
- package/types/components/patterns/filter-bar.d.ts.map +1 -1
- package/types/components/patterns/filters-helpers.d.ts +1 -1
- package/types/components/patterns/filters-sheet.d.ts +19 -0
- package/types/components/patterns/filters-sheet.d.ts.map +1 -0
- package/types/components/patterns/filters.d.ts +13 -6
- package/types/components/patterns/filters.d.ts.map +1 -1
- package/types/components/patterns/gh-chart.d.ts.map +1 -1
- package/types/components/patterns/image-upload.d.ts +3 -3
- package/types/components/patterns/image-upload.d.ts.map +1 -1
- package/types/components/patterns/kpi-tabs.d.ts +5 -2
- package/types/components/patterns/kpi-tabs.d.ts.map +1 -1
- package/types/components/patterns/page-header.d.ts +17 -14
- package/types/components/patterns/page-header.d.ts.map +1 -1
- package/types/components/patterns/setting-group.d.ts +8 -8
- package/types/components/patterns/settings-modal-variants.d.ts +3 -0
- package/types/components/patterns/settings-modal-variants.d.ts.map +1 -1
- package/types/components/patterns/settings-modal.d.ts +12 -3
- package/types/components/patterns/settings-modal.d.ts.map +1 -1
- package/types/components/patterns/share-modal.d.ts +3 -3
- package/types/components/patterns/share-modal.d.ts.map +1 -1
- package/types/components/patterns/use-dirty-confirmation.d.ts +1 -1
- package/types/components/patterns/use-mobile-filters.d.ts +2 -0
- package/types/components/patterns/use-mobile-filters.d.ts.map +1 -0
- package/types/components/ui/alert-dialog.d.ts +2 -2
- package/types/components/ui/alert-dialog.d.ts.map +1 -1
- package/types/components/ui/avatar.d.ts.map +1 -1
- package/types/components/ui/badge-variants.d.ts +1 -1
- package/types/components/ui/badge-variants.d.ts.map +1 -1
- package/types/components/ui/badge.d.ts +1 -1
- package/types/components/ui/banner-variants.d.ts +1 -1
- package/types/components/ui/banner-variants.d.ts.map +1 -1
- package/types/components/ui/banner.d.ts +3 -1
- package/types/components/ui/banner.d.ts.map +1 -1
- package/types/components/ui/button-variants.d.ts +0 -1
- package/types/components/ui/button-variants.d.ts.map +1 -1
- package/types/components/ui/button.d.ts +7 -2
- package/types/components/ui/button.d.ts.map +1 -1
- package/types/components/ui/calendar.d.ts +1 -1
- package/types/components/ui/calendar.d.ts.map +1 -1
- package/types/components/ui/card-variants.d.ts +1 -1
- package/types/components/ui/card-variants.d.ts.map +1 -1
- package/types/components/ui/card.d.ts +1 -1
- package/types/components/ui/card.d.ts.map +1 -1
- package/types/components/ui/chart.d.ts +1 -17
- package/types/components/ui/chart.d.ts.map +1 -1
- package/types/components/ui/code-editor.d.ts +1 -1
- package/types/components/ui/command.d.ts +1 -6
- package/types/components/ui/command.d.ts.map +1 -1
- package/types/components/ui/context-menu.d.ts +1 -1
- package/types/components/ui/context-menu.d.ts.map +1 -1
- package/types/components/ui/copy-field.d.ts +1 -1
- package/types/components/ui/copy-field.d.ts.map +1 -1
- package/types/components/ui/data-list.d.ts.map +1 -1
- package/types/components/ui/dialog.d.ts +11 -2
- package/types/components/ui/dialog.d.ts.map +1 -1
- package/types/components/ui/dropdown-menu.d.ts +1 -1
- package/types/components/ui/dropdown-menu.d.ts.map +1 -1
- package/types/components/ui/dropzone-variants.d.ts +3 -2
- package/types/components/ui/dropzone-variants.d.ts.map +1 -1
- package/types/components/ui/dropzone.d.ts +1 -1
- package/types/components/ui/field.d.ts +1 -1
- package/types/components/ui/field.d.ts.map +1 -1
- package/types/components/ui/floating-sidebar.d.ts +12 -3
- package/types/components/ui/floating-sidebar.d.ts.map +1 -1
- package/types/components/ui/hover-card.d.ts.map +1 -1
- package/types/components/ui/icon.d.ts +2 -1
- package/types/components/ui/icon.d.ts.map +1 -1
- package/types/components/ui/image-overlay-button.d.ts +1 -1
- package/types/components/ui/image-overlay-button.d.ts.map +1 -1
- package/types/components/ui/indicator.d.ts +1 -1
- package/types/components/ui/input-group-variants.d.ts.map +1 -1
- package/types/components/ui/input-group.d.ts +2 -2
- package/types/components/ui/input-group.d.ts.map +1 -1
- package/types/components/ui/input-surface.d.ts +4 -3
- package/types/components/ui/input-surface.d.ts.map +1 -1
- package/types/components/ui/list.d.ts +28 -0
- package/types/components/ui/list.d.ts.map +1 -0
- package/types/components/ui/multi-select-combobox.d.ts +1 -1
- package/types/components/ui/navbar.d.ts.map +1 -1
- package/types/components/ui/pagemenu.d.ts +3 -0
- package/types/components/ui/pagemenu.d.ts.map +1 -1
- package/types/components/ui/popover.d.ts.map +1 -1
- package/types/components/ui/preview-chrome.d.ts +1 -1
- package/types/components/ui/row-primary-action.d.ts +8 -0
- package/types/components/ui/row-primary-action.d.ts.map +1 -0
- package/types/components/ui/row-surface.d.ts +11 -0
- package/types/components/ui/row-surface.d.ts.map +1 -0
- package/types/components/ui/select-variants.d.ts +0 -1
- package/types/components/ui/select-variants.d.ts.map +1 -1
- package/types/components/ui/select.d.ts +2 -2
- package/types/components/ui/select.d.ts.map +1 -1
- package/types/components/ui/sheet.d.ts +1 -1
- package/types/components/ui/sheet.d.ts.map +1 -1
- package/types/components/ui/sidebar.d.ts +2 -2
- package/types/components/ui/simple-pagination.d.ts.map +1 -1
- package/types/components/ui/sortable-list.d.ts +4 -1
- package/types/components/ui/sortable-list.d.ts.map +1 -1
- package/types/components/ui/sticky-footer.d.ts +9 -2
- package/types/components/ui/sticky-footer.d.ts.map +1 -1
- package/types/components/ui/table.d.ts +4 -1
- package/types/components/ui/table.d.ts.map +1 -1
- package/types/components/ui/tabs-variants.d.ts +5 -1
- package/types/components/ui/tabs-variants.d.ts.map +1 -1
- package/types/components/ui/tabs.d.ts.map +1 -1
- package/types/components/ui/toast.d.ts +2 -0
- package/types/components/ui/toast.d.ts.map +1 -0
- package/types/components/ui/toggle-group.d.ts +4 -6
- package/types/components/ui/toggle-group.d.ts.map +1 -1
- package/types/components/ui/toggle-variants.d.ts +0 -1
- package/types/components/ui/toggle-variants.d.ts.map +1 -1
- package/types/components/ui/toggle.d.ts +2 -3
- package/types/components/ui/toggle.d.ts.map +1 -1
- package/types/components/ui/token-field.d.ts +2 -2
- package/types/components/ui/token-field.d.ts.map +1 -1
- package/types/components/ui/tooltip.d.ts.map +1 -1
- package/types/components/ui/trend-badge.d.ts +1 -0
- package/types/components/ui/trend-badge.d.ts.map +1 -1
- package/types/components.d.ts +5 -2
- package/types/components.d.ts.map +1 -1
- package/types/hooks/use-row-behavior.d.ts +24 -0
- package/types/hooks/use-row-behavior.d.ts.map +1 -0
- package/types/hooks/use-row-press.d.ts +11 -0
- package/types/hooks/use-row-press.d.ts.map +1 -0
- package/types/lib/app-overlay.d.ts +63 -0
- package/types/lib/app-overlay.d.ts.map +1 -0
- package/types/lib/date-utils.d.ts +17 -0
- package/types/lib/date-utils.d.ts.map +1 -0
- package/types/lib/ds-utils.d.ts +2 -16
- package/types/lib/ds-utils.d.ts.map +1 -1
- package/types/lib/safe-area.d.ts +27 -0
- package/types/lib/safe-area.d.ts.map +1 -0
- package/types/lib/svg-graphic.d.ts +22 -0
- package/types/lib/svg-graphic.d.ts.map +1 -0
- package/types/lib/toast-press.d.ts +4 -0
- package/types/lib/toast-press.d.ts.map +1 -0
- package/types/lib/utils.d.ts +1 -0
- package/types/lib/utils.d.ts.map +1 -1
- package/types/patterns.d.ts +1 -0
- package/types/patterns.d.ts.map +1 -1
- package/types/providers/header-tooltip-provider.d.ts.map +1 -1
- package/types/providers/shade-context.d.ts +4 -1
- package/types/providers/shade-context.d.ts.map +1 -1
- package/types/providers/shade-provider.d.ts +5 -2
- package/types/providers/shade-provider.d.ts.map +1 -1
- package/types/shade-app.d.ts +11 -3
- package/types/shade-app.d.ts.map +1 -1
- package/types/shade-scope.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
- package/types/utils.d.ts +2 -1
- package/types/utils.d.ts.map +1 -1
- package/es/components/ui/action-list.js +0 -56
- package/es/components/ui/action-list.js.map +0 -1
- package/es/icon-BJcGsQ4b.js.map +0 -1
- package/es/images-CUcakpOD.js.map +0 -1
- package/types/components/ui/action-list.d.ts +0 -21
- package/types/components/ui/action-list.d.ts.map +0 -1
|
@@ -7,25 +7,19 @@ var toggleVariants = cva("inline-flex items-center justify-center gap-2 text-con
|
|
|
7
7
|
default: "h-[calc(var(--control-height)-2px)] min-w-[26px] px-2",
|
|
8
8
|
button: "h-[calc(var(--control-height)-2px)] min-w-[32px] px-3"
|
|
9
9
|
},
|
|
10
|
-
isAdmin7: {
|
|
11
|
-
true: "",
|
|
12
|
-
false: ""
|
|
13
|
-
},
|
|
14
10
|
shape: {
|
|
15
11
|
rounded: "rounded-control",
|
|
16
12
|
pill: "rounded-full"
|
|
17
13
|
}
|
|
18
14
|
},
|
|
19
15
|
compoundVariants: [{
|
|
20
|
-
isAdmin7: true,
|
|
21
16
|
size: ["default", "button"],
|
|
22
17
|
className: "h-[calc(var(--control-height)-4px)] data-[state=off]:hover:bg-transparent"
|
|
23
18
|
}],
|
|
24
19
|
defaultVariants: {
|
|
25
20
|
variant: "default",
|
|
26
21
|
size: "default",
|
|
27
|
-
shape: "pill"
|
|
28
|
-
isAdmin7: true
|
|
22
|
+
shape: "pill"
|
|
29
23
|
}
|
|
30
24
|
});
|
|
31
25
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-variants.js","names":[],"sources":["../../../src/components/ui/toggle-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst toggleVariants = cva(\n 'inline-flex items-center justify-center gap-2 text-control font-medium text-text-secondary transition-colors hover:bg-surface-elevated hover:text-foreground focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm dark:data-[state=on]:bg-tab-active [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:stroke-[1.5px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n },\n size: {\n default: 'h-[calc(var(--control-height)-2px)] min-w-[26px] px-2',\n button: 'h-[calc(var(--control-height)-2px)] min-w-[32px] px-3',\n },\n
|
|
1
|
+
{"version":3,"file":"toggle-variants.js","names":[],"sources":["../../../src/components/ui/toggle-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst toggleVariants = cva(\n 'inline-flex items-center justify-center gap-2 text-control font-medium text-text-secondary transition-colors hover:bg-surface-elevated hover:text-foreground focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm dark:data-[state=on]:bg-tab-active [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:stroke-[1.5px]',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n },\n size: {\n default: 'h-[calc(var(--control-height)-2px)] min-w-[26px] px-2',\n button: 'h-[calc(var(--control-height)-2px)] min-w-[32px] px-3',\n },\n shape: {\n rounded: 'rounded-control',\n pill: 'rounded-full',\n },\n },\n compoundVariants: [\n {\n size: ['default', 'button'],\n className: 'h-[calc(var(--control-height)-4px)] data-[state=off]:hover:bg-transparent',\n },\n ],\n defaultVariants: {\n variant: 'default',\n size: 'default',\n shape: 'pill',\n },\n },\n);\n\nexport { toggleVariants };\n"],"mappings":";;AAEA,IAAM,iBAAiB,IACrB,+eACA;CACE,UAAU;EACR,SAAS,EACP,SAAS,iBACX;EACA,MAAM;GACJ,SAAS;GACT,QAAQ;EACV;EACA,OAAO;GACL,SAAS;GACT,MAAM;EACR;CACF;CACA,kBAAkB,CAChB;EACE,MAAM,CAAC,WAAW,QAAQ;EAC1B,WAAW;CACb,CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;EACN,OAAO;CACT;AACF,CACF"}
|
|
@@ -7,14 +7,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
8
8
|
//#region src/components/ui/toggle.tsx
|
|
9
9
|
var Toggle = React$1.forwardRef(({ className, variant, size, shape, ...props }, ref) => {
|
|
10
|
-
const { controlShape
|
|
10
|
+
const { controlShape } = useShade();
|
|
11
11
|
const resolvedShape = shape ?? controlShape;
|
|
12
12
|
return /* @__PURE__ */ jsx(TogglePrimitive.Root, {
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(toggleVariants({
|
|
15
15
|
variant,
|
|
16
16
|
size,
|
|
17
|
-
isAdmin7,
|
|
18
17
|
shape: resolvedShape,
|
|
19
18
|
className
|
|
20
19
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { toggleVariants } from '@/components/ui/toggle-variants';\nimport { cn } from '@/lib/utils';\nimport { useShade } from '@/providers/shade-context';\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>
|
|
1
|
+
{"version":3,"file":"toggle.js","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { toggleVariants } from '@/components/ui/toggle-variants';\nimport { cn } from '@/lib/utils';\nimport { useShade } from '@/providers/shade-context';\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>\n>(({ className, variant, size, shape, ...props }, ref) => {\n const { controlShape } = useShade();\n const resolvedShape = shape ?? controlShape;\n\n return (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, shape: resolvedShape, className }))}\n data-control-shape={resolvedShape}\n {...props}\n />\n );\n});\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle };\n"],"mappings":";;;;;;;;AAUA,IAAM,SAAS,QAAM,YAGlB,EAAE,WAAW,SAAS,MAAM,OAAO,GAAG,SAAS,QAAQ;CACxD,MAAM,EAAE,iBAAiB,SAAS;CAClC,MAAM,gBAAgB,SAAS;CAE/B,OACE,oBAAC,gBAAgB,MAAjB;EACO;EACL,WAAW,GAAG,eAAe;GAAE;GAAS;GAAM,OAAO;GAAe;EAAU,CAAC,CAAC;EAChF,sBAAoB;EACpB,GAAI;CACL,CAAA;AAEL,CAAC;AAED,OAAO,cAAc,gBAAgB,KAAK"}
|
|
@@ -3,9 +3,9 @@ import { inputSurface } from "./input-surface.js";
|
|
|
3
3
|
//#region src/components/ui/token-field.ts
|
|
4
4
|
/** Shared chip density for token inputs such as labels, tags and authors. */
|
|
5
5
|
var tokenFieldClasses = {
|
|
6
|
-
field: cn(inputSurface("within"), "relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-
|
|
7
|
-
input: "min-w-20 flex-1 bg-transparent px-2 text-
|
|
8
|
-
chip: "h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal",
|
|
6
|
+
field: cn(inputSurface("within"), "relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-(length:--text-field)"),
|
|
7
|
+
input: "min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground",
|
|
8
|
+
chip: "h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent bg-field-chip-surface px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal disabled:cursor-not-allowed disabled:text-muted-foreground",
|
|
9
9
|
chevron: "pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-field.js","names":[],"sources":["../../../src/components/ui/token-field.ts"],"sourcesContent":["import { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\n/** Shared chip density for token inputs such as labels, tags and authors. */\nexport const tokenFieldClasses = {\n field: cn(\n inputSurface('within'),\n 'relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-
|
|
1
|
+
{"version":3,"file":"token-field.js","names":[],"sources":["../../../src/components/ui/token-field.ts"],"sourcesContent":["import { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\n\n/** Shared chip density for token inputs such as labels, tags and authors. */\nexport const tokenFieldClasses = {\n field: cn(\n inputSurface('within'),\n 'relative flex min-h-(--control-height) w-full cursor-text flex-wrap items-center gap-1 p-0.75 text-(length:--text-field)',\n ),\n input:\n 'min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground',\n // 24px on one line; long names wrap.\n chip: 'h-auto min-h-6 max-w-full cursor-pointer gap-1 rounded-xl border-transparent bg-field-chip-surface px-2 py-0.75 pr-1.5 text-left text-sm leading-4 whitespace-normal disabled:cursor-not-allowed disabled:text-muted-foreground',\n // Matches Select's chevron; offsets start inside the 1px border.\n chevron:\n 'pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground',\n} as const;\n"],"mappings":";;;;AAIA,IAAa,oBAAoB;CAC/B,OAAO,GACL,aAAa,QAAQ,GACrB,0HACF;CACA,OACE;CAEF,MAAM;CAEN,SACE;AACJ"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { cn } from "../../lib/ds-utils.js";
|
|
2
|
-
import { useShade } from "../../providers/shade-context.js";
|
|
3
2
|
import { ShadeScope } from "../../shade-scope.js";
|
|
3
|
+
import { safeAreaCollision } from "../../lib/safe-area.js";
|
|
4
|
+
import { usePortalContainer } from "../../lib/app-overlay.js";
|
|
4
5
|
import * as React$1 from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { cva } from "class-variance-authority";
|
|
7
8
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
8
9
|
//#region src/components/ui/tooltip.tsx
|
|
9
10
|
var TooltipInputContext = React$1.createContext(null);
|
|
11
|
+
var TooltipCloseContext = React$1.createContext(void 0);
|
|
10
12
|
/**
|
|
11
13
|
* Shared hover timing: `delayDuration` (ms) waits before the first tooltip;
|
|
12
14
|
* `skipDelayDuration` (ms) lets nearby triggers open immediately after it.
|
|
@@ -17,16 +19,12 @@ function TooltipProvider({ children, ...props }) {
|
|
|
17
19
|
suppressFocus: false,
|
|
18
20
|
windowBlurred: false
|
|
19
21
|
});
|
|
20
|
-
const
|
|
21
|
-
React$1.
|
|
22
|
-
if (
|
|
22
|
+
const watching = React$1.useRef(/* @__PURE__ */ new Map());
|
|
23
|
+
const watch = React$1.useCallback((target) => {
|
|
24
|
+
if (watching.current.has(target)) return;
|
|
23
25
|
const suppressFocus = () => {
|
|
24
26
|
inputState.current.suppressFocus = true;
|
|
25
27
|
};
|
|
26
|
-
const onWindowBlur = () => {
|
|
27
|
-
suppressFocus();
|
|
28
|
-
inputState.current.windowBlurred = true;
|
|
29
|
-
};
|
|
30
28
|
const onKeyDown = () => {
|
|
31
29
|
inputState.current.suppressFocus = false;
|
|
32
30
|
inputState.current.windowBlurred = false;
|
|
@@ -34,29 +32,44 @@ function TooltipProvider({ children, ...props }) {
|
|
|
34
32
|
const onPointerMove = () => {
|
|
35
33
|
inputState.current.windowBlurred = false;
|
|
36
34
|
};
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
target.addEventListener("pointerdown", suppressFocus, true);
|
|
36
|
+
target.addEventListener("pointermove", onPointerMove, true);
|
|
37
|
+
target.addEventListener("keydown", onKeyDown, true);
|
|
38
|
+
watching.current.set(target, () => {
|
|
39
|
+
target.removeEventListener("pointerdown", suppressFocus, true);
|
|
40
|
+
target.removeEventListener("pointermove", onPointerMove, true);
|
|
41
|
+
target.removeEventListener("keydown", onKeyDown, true);
|
|
42
|
+
});
|
|
43
|
+
}, []);
|
|
44
|
+
React$1.useEffect(() => {
|
|
45
|
+
const documents = watching.current;
|
|
46
|
+
watch(document);
|
|
47
|
+
const onWindowBlur = () => {
|
|
48
|
+
inputState.current.suppressFocus = true;
|
|
49
|
+
inputState.current.windowBlurred = true;
|
|
50
|
+
};
|
|
39
51
|
window.addEventListener("blur", onWindowBlur);
|
|
40
|
-
document.addEventListener("keydown", onKeyDown, true);
|
|
41
52
|
return () => {
|
|
42
|
-
document.removeEventListener("pointerdown", suppressFocus, true);
|
|
43
|
-
document.removeEventListener("pointermove", onPointerMove, true);
|
|
44
53
|
window.removeEventListener("blur", onWindowBlur);
|
|
45
|
-
|
|
54
|
+
for (const stop of documents.values()) stop();
|
|
55
|
+
documents.clear();
|
|
46
56
|
};
|
|
47
|
-
}, [
|
|
57
|
+
}, [watch]);
|
|
58
|
+
const input = React$1.useMemo(() => ({
|
|
59
|
+
state: inputState,
|
|
60
|
+
watch
|
|
61
|
+
}), [watch]);
|
|
48
62
|
return /* @__PURE__ */ jsx(TooltipInputContext.Provider, {
|
|
49
|
-
value:
|
|
63
|
+
value: input,
|
|
50
64
|
children: /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
|
|
51
|
-
delayDuration:
|
|
65
|
+
delayDuration: 1e3,
|
|
52
66
|
...props,
|
|
53
67
|
children
|
|
54
68
|
})
|
|
55
69
|
});
|
|
56
70
|
}
|
|
57
71
|
function Tooltip({ open: controlledOpen, defaultOpen = false, onOpenChange, ...props }) {
|
|
58
|
-
const
|
|
59
|
-
const inputState = React$1.useContext(TooltipInputContext);
|
|
72
|
+
const inputState = React$1.useContext(TooltipInputContext)?.state;
|
|
60
73
|
const [uncontrolledOpen, setUncontrolledOpen] = React$1.useState(defaultOpen);
|
|
61
74
|
const open = controlledOpen ?? uncontrolledOpen;
|
|
62
75
|
const handleOpenChange = React$1.useCallback((nextOpen) => {
|
|
@@ -64,27 +77,52 @@ function Tooltip({ open: controlledOpen, defaultOpen = false, onOpenChange, ...p
|
|
|
64
77
|
setUncontrolledOpen(nextOpen);
|
|
65
78
|
onOpenChange?.(nextOpen);
|
|
66
79
|
}, [inputState, onOpenChange]);
|
|
80
|
+
const close = React$1.useCallback(() => handleOpenChange(false), [handleOpenChange]);
|
|
81
|
+
const view = usePortalContainer()?.ownerDocument.defaultView ?? window;
|
|
67
82
|
React$1.useEffect(() => {
|
|
68
|
-
if (!
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return () => window.removeEventListener("blur", close);
|
|
83
|
+
if (!open) return;
|
|
84
|
+
view.addEventListener("blur", close);
|
|
85
|
+
return () => view.removeEventListener("blur", close);
|
|
72
86
|
}, [
|
|
73
|
-
isAdmin7,
|
|
74
87
|
open,
|
|
75
|
-
|
|
88
|
+
close,
|
|
89
|
+
view
|
|
76
90
|
]);
|
|
77
|
-
return /* @__PURE__ */ jsx(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
91
|
+
return /* @__PURE__ */ jsx(TooltipCloseContext.Provider, {
|
|
92
|
+
value: open ? close : void 0,
|
|
93
|
+
children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
|
|
94
|
+
...props,
|
|
95
|
+
defaultOpen,
|
|
96
|
+
open,
|
|
97
|
+
onOpenChange: handleOpenChange
|
|
98
|
+
})
|
|
82
99
|
});
|
|
83
100
|
}
|
|
84
101
|
var TooltipTrigger = React$1.forwardRef(({ onFocus, ...props }, ref) => {
|
|
85
|
-
const
|
|
102
|
+
const input = React$1.useContext(TooltipInputContext);
|
|
103
|
+
const inputState = input?.state;
|
|
104
|
+
const container = usePortalContainer();
|
|
105
|
+
React$1.useEffect(() => {
|
|
106
|
+
if (container && container.ownerDocument !== document) input?.watch(container.ownerDocument);
|
|
107
|
+
}, [container, input]);
|
|
108
|
+
const close = React$1.useContext(TooltipCloseContext);
|
|
109
|
+
const trigger = React$1.useRef(null);
|
|
110
|
+
React$1.useEffect(() => {
|
|
111
|
+
const view = container?.ownerDocument.defaultView;
|
|
112
|
+
if (!close || !view || view === window) return;
|
|
113
|
+
const onScroll = (event) => {
|
|
114
|
+
if (event.target instanceof view.Node && event.target.contains(trigger.current)) close();
|
|
115
|
+
};
|
|
116
|
+
view.addEventListener("scroll", onScroll, true);
|
|
117
|
+
return () => view.removeEventListener("scroll", onScroll, true);
|
|
118
|
+
}, [close, container]);
|
|
119
|
+
const triggerRef = React$1.useCallback((element) => {
|
|
120
|
+
trigger.current = element;
|
|
121
|
+
if (typeof ref === "function") ref(element);
|
|
122
|
+
else if (ref) ref.current = element;
|
|
123
|
+
}, [ref]);
|
|
86
124
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
|
|
87
|
-
ref,
|
|
125
|
+
ref: triggerRef,
|
|
88
126
|
...props,
|
|
89
127
|
onFocus: (event) => {
|
|
90
128
|
onFocus?.(event);
|
|
@@ -100,14 +138,17 @@ var tooltipContentVariants = cva("z-50 animate-in overflow-hidden rounded-menu p
|
|
|
100
138
|
} },
|
|
101
139
|
defaultVariants: { variant: "default" }
|
|
102
140
|
});
|
|
103
|
-
var TooltipContent = React$1.forwardRef(({ className, sideOffset = 4, variant, ...props }, ref) => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
141
|
+
var TooltipContent = React$1.forwardRef(({ className, sideOffset = 4, variant, collisionBoundary, ...props }, ref) => {
|
|
142
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, {
|
|
143
|
+
container: usePortalContainer(),
|
|
144
|
+
children: /* @__PURE__ */ jsx(ShadeScope, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Content, {
|
|
145
|
+
ref,
|
|
146
|
+
className: cn(tooltipContentVariants({ variant: variant ?? "white" }), "data-[safe-area]:max-w-(--radix-tooltip-content-available-width)", className),
|
|
147
|
+
...safeAreaCollision(collisionBoundary, usePortalContainer()),
|
|
148
|
+
sideOffset,
|
|
149
|
+
...props
|
|
150
|
+
}) })
|
|
151
|
+
});
|
|
111
152
|
});
|
|
112
153
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
113
154
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import { useShade } from '@/providers/shade-context';\nimport * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\nconst TooltipInputContext = React.createContext<React.RefObject<{\n suppressFocus: boolean;\n windowBlurred: boolean;\n}> | null>(null);\n\n/**\n * Shared hover timing: `delayDuration` (ms) waits before the first tooltip;\n * `skipDelayDuration` (ms) lets nearby triggers open immediately after it.\n * Individual Tooltip roots can override delayDuration. Keyboard focus opens immediately.\n */\nfunction TooltipProvider({\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n const inputState = React.useRef({ suppressFocus: false, windowBlurred: false });\n const { isAdmin7 } = useShade();\n\n React.useEffect(() => {\n if (!isAdmin7) {\n return;\n }\n const suppressFocus = () => {\n inputState.current.suppressFocus = true;\n };\n const onWindowBlur = () => {\n suppressFocus();\n inputState.current.windowBlurred = true;\n };\n const onKeyDown = () => {\n inputState.current.suppressFocus = false;\n inputState.current.windowBlurred = false;\n };\n const onPointerMove = () => {\n inputState.current.windowBlurred = false;\n };\n document.addEventListener('pointerdown', suppressFocus, true);\n document.addEventListener('pointermove', onPointerMove, true);\n window.addEventListener('blur', onWindowBlur);\n document.addEventListener('keydown', onKeyDown, true);\n return () => {\n document.removeEventListener('pointerdown', suppressFocus, true);\n document.removeEventListener('pointermove', onPointerMove, true);\n window.removeEventListener('blur', onWindowBlur);\n document.removeEventListener('keydown', onKeyDown, true);\n };\n }, [isAdmin7]);\n\n return (\n <TooltipInputContext.Provider value={isAdmin7 ? inputState : null}>\n <TooltipPrimitive.Provider delayDuration={isAdmin7 ? 1000 : 700} {...props}>\n {children}\n </TooltipPrimitive.Provider>\n </TooltipInputContext.Provider>\n );\n}\n\nfunction Tooltip({\n open: controlledOpen,\n defaultOpen = false,\n onOpenChange,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n const { isAdmin7 } = useShade();\n const inputState = React.useContext(TooltipInputContext);\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const handleOpenChange = React.useCallback(\n (nextOpen: boolean) => {\n // Radix may finish a hover timer after window blur. Wait for fresh input.\n if (nextOpen && inputState?.current?.windowBlurred) {\n return;\n }\n setUncontrolledOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [inputState, onOpenChange],\n );\n\n React.useEffect(() => {\n if (!isAdmin7 || !open) {\n return;\n }\n const close = () => handleOpenChange(false);\n window.addEventListener('blur', close);\n return () => window.removeEventListener('blur', close);\n }, [isAdmin7, open, handleOpenChange]);\n\n return (\n <TooltipPrimitive.Root\n {...props}\n defaultOpen={defaultOpen}\n open={isAdmin7 ? open : controlledOpen}\n onOpenChange={isAdmin7 ? handleOpenChange : onOpenChange}\n />\n );\n}\n\nconst TooltipTrigger = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>\n>(({ onFocus, ...props }, ref) => {\n const inputState = React.useContext(TooltipInputContext);\n\n return (\n <TooltipPrimitive.Trigger\n ref={ref}\n {...props}\n onFocus={(event) => {\n onFocus?.(event);\n // Menus and browser windows restore focus without a new interaction.\n // Only deliberate keyboard focus or normal hover should show a tooltip.\n if (inputState?.current?.suppressFocus) {\n event.preventDefault();\n }\n }}\n />\n );\n});\nTooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;\n\nconst tooltipContentVariants = cva(\n 'z-50 animate-in overflow-hidden rounded-menu px-3 py-1.5 text-xs fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground dark:bg-popover dark:text-popover-foreground',\n white: 'bg-surface-elevated-2 text-foreground shadow-md',\n },\n },\n defaultVariants: { variant: 'default' },\n },\n);\n\nexport interface TooltipContentProps\n extends\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>,\n VariantProps<typeof tooltipContentVariants> {}\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipContentProps\n>(({ className, sideOffset = 4, variant, ...props }, ref) => {\n const { isAdmin7 } = useShade();\n return (\n <TooltipPrimitive.Portal>\n <ShadeScope>\n <TooltipPrimitive.Content\n ref={ref}\n className={cn(\n tooltipContentVariants({ variant: variant ?? (isAdmin7 ? 'white' : 'default') }),\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </ShadeScope>\n </TooltipPrimitive.Portal>\n );\n});\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { usePortalContainer } from '@/lib/app-overlay';\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\nimport { safeAreaCollision } from '@/lib/safe-area';\n\ninterface TooltipInput {\n state: React.RefObject<{ suppressFocus: boolean; windowBlurred: boolean }>;\n watch: (target: Document) => void;\n}\n\nconst TooltipInputContext = React.createContext<TooltipInput | null>(null);\n\nconst TooltipCloseContext = React.createContext<(() => void) | undefined>(undefined);\n\n/**\n * Shared hover timing: `delayDuration` (ms) waits before the first tooltip;\n * `skipDelayDuration` (ms) lets nearby triggers open immediately after it.\n * Individual Tooltip roots can override delayDuration. Keyboard focus opens immediately.\n */\nfunction TooltipProvider({\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n const inputState = React.useRef({ suppressFocus: false, windowBlurred: false });\n const watching = React.useRef(new Map<Document, () => void>());\n\n const watch = React.useCallback((target: Document) => {\n if (watching.current.has(target)) {\n return;\n }\n const suppressFocus = () => {\n inputState.current.suppressFocus = true;\n };\n const onKeyDown = () => {\n inputState.current.suppressFocus = false;\n inputState.current.windowBlurred = false;\n };\n const onPointerMove = () => {\n inputState.current.windowBlurred = false;\n };\n target.addEventListener('pointerdown', suppressFocus, true);\n target.addEventListener('pointermove', onPointerMove, true);\n target.addEventListener('keydown', onKeyDown, true);\n watching.current.set(target, () => {\n target.removeEventListener('pointerdown', suppressFocus, true);\n target.removeEventListener('pointermove', onPointerMove, true);\n target.removeEventListener('keydown', onKeyDown, true);\n });\n }, []);\n\n React.useEffect(() => {\n const documents = watching.current;\n watch(document);\n const onWindowBlur = () => {\n inputState.current.suppressFocus = true;\n inputState.current.windowBlurred = true;\n };\n window.addEventListener('blur', onWindowBlur);\n return () => {\n window.removeEventListener('blur', onWindowBlur);\n for (const stop of documents.values()) {\n stop();\n }\n documents.clear();\n };\n }, [watch]);\n\n const input = React.useMemo(() => ({ state: inputState, watch }), [watch]);\n\n return (\n <TooltipInputContext.Provider value={input}>\n <TooltipPrimitive.Provider delayDuration={1000} {...props}>\n {children}\n </TooltipPrimitive.Provider>\n </TooltipInputContext.Provider>\n );\n}\n\nfunction Tooltip({\n open: controlledOpen,\n defaultOpen = false,\n onOpenChange,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n const inputState = React.useContext(TooltipInputContext)?.state;\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);\n const open = controlledOpen ?? uncontrolledOpen;\n const handleOpenChange = React.useCallback(\n (nextOpen: boolean) => {\n // Radix may finish a hover timer after window blur. Wait for fresh input.\n if (nextOpen && inputState?.current?.windowBlurred) {\n return;\n }\n setUncontrolledOpen(nextOpen);\n onOpenChange?.(nextOpen);\n },\n [inputState, onOpenChange],\n );\n\n const close = React.useCallback(() => handleOpenChange(false), [handleOpenChange]);\n const view = usePortalContainer()?.ownerDocument.defaultView ?? window;\n React.useEffect(() => {\n if (!open) {\n return;\n }\n view.addEventListener('blur', close);\n return () => view.removeEventListener('blur', close);\n }, [open, close, view]);\n\n return (\n <TooltipCloseContext.Provider value={open ? close : undefined}>\n <TooltipPrimitive.Root\n {...props}\n defaultOpen={defaultOpen}\n open={open}\n onOpenChange={handleOpenChange}\n />\n </TooltipCloseContext.Provider>\n );\n}\n\nconst TooltipTrigger = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>\n>(({ onFocus, ...props }, ref) => {\n const input = React.useContext(TooltipInputContext);\n const inputState = input?.state;\n // In the overlay, input arrives in the overlay's document, and the page's window has lost focus.\n const container = usePortalContainer();\n React.useEffect(() => {\n if (container && container.ownerDocument !== document) {\n input?.watch(container.ownerDocument);\n }\n }, [container, input]);\n\n // Radix closes the tooltip as what its trigger is in scrolls, but only in the page's window.\n const close = React.useContext(TooltipCloseContext);\n const trigger = React.useRef<HTMLButtonElement | null>(null);\n React.useEffect(() => {\n const view = container?.ownerDocument.defaultView;\n if (!close || !view || view === window) {\n return;\n }\n const onScroll = (event: Event) => {\n if (event.target instanceof view.Node && event.target.contains(trigger.current)) {\n close();\n }\n };\n view.addEventListener('scroll', onScroll, true);\n return () => view.removeEventListener('scroll', onScroll, true);\n }, [close, container]);\n const triggerRef = React.useCallback(\n (element: HTMLButtonElement | null) => {\n trigger.current = element;\n if (typeof ref === 'function') {\n ref(element);\n } else if (ref) {\n ref.current = element;\n }\n },\n [ref],\n );\n\n return (\n <TooltipPrimitive.Trigger\n ref={triggerRef}\n {...props}\n onFocus={(event) => {\n onFocus?.(event);\n // Menus and browser windows restore focus without a new interaction.\n // Only deliberate keyboard focus or normal hover should show a tooltip.\n if (inputState?.current?.suppressFocus) {\n event.preventDefault();\n }\n }}\n />\n );\n});\nTooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;\n\nconst tooltipContentVariants = cva(\n 'z-50 animate-in overflow-hidden rounded-menu px-3 py-1.5 text-xs fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground dark:bg-popover dark:text-popover-foreground',\n white: 'bg-surface-elevated-2 text-foreground shadow-md',\n },\n },\n defaultVariants: { variant: 'default' },\n },\n);\n\nexport interface TooltipContentProps\n extends\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>,\n VariantProps<typeof tooltipContentVariants> {}\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n TooltipContentProps\n>(({ className, sideOffset = 4, variant, collisionBoundary, ...props }, ref) => {\n return (\n <TooltipPrimitive.Portal container={usePortalContainer()}>\n <ShadeScope>\n <TooltipPrimitive.Content\n ref={ref}\n className={cn(\n tooltipContentVariants({ variant: variant ?? 'white' }),\n 'data-[safe-area]:max-w-(--radix-tooltip-content-available-width)',\n className,\n )}\n {...safeAreaCollision(collisionBoundary, usePortalContainer())}\n sideOffset={sideOffset}\n {...props}\n />\n </ShadeScope>\n </TooltipPrimitive.Portal>\n );\n});\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"],"mappings":"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"}
|
|
@@ -16,37 +16,71 @@ var trendBadgeVariants = cva("group/trend-badge inline-flex h-[22px] cursor-defa
|
|
|
16
16
|
interactive: {
|
|
17
17
|
true: "focus-visible:ring-2 focus-visible:ring-focus-ring/25 focus-visible:outline-hidden",
|
|
18
18
|
false: ""
|
|
19
|
+
},
|
|
20
|
+
inverted: {
|
|
21
|
+
true: "",
|
|
22
|
+
false: ""
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
compoundVariants: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
compoundVariants: [
|
|
26
|
+
{
|
|
27
|
+
direction: "up",
|
|
28
|
+
interactive: true,
|
|
29
|
+
className: "hover:bg-state-success/20"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
direction: "down",
|
|
33
|
+
interactive: true,
|
|
34
|
+
className: "hover:bg-state-danger/20"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
direction: "up",
|
|
38
|
+
inverted: true,
|
|
39
|
+
className: "bg-state-danger/10 text-state-danger"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
direction: "down",
|
|
43
|
+
inverted: true,
|
|
44
|
+
className: "bg-state-success/10 text-state-success"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
direction: "up",
|
|
48
|
+
inverted: true,
|
|
49
|
+
interactive: true,
|
|
50
|
+
className: "hover:bg-state-danger/20"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
direction: "down",
|
|
54
|
+
inverted: true,
|
|
55
|
+
interactive: true,
|
|
56
|
+
className: "hover:bg-state-success/20"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
30
59
|
defaultVariants: {
|
|
31
60
|
direction: "same",
|
|
32
|
-
interactive: false
|
|
61
|
+
interactive: false,
|
|
62
|
+
inverted: false
|
|
33
63
|
}
|
|
34
64
|
});
|
|
35
|
-
var TrendBadge = React$1.forwardRef(({ className, direction = "same", value, tooltip, ...props }, ref) => {
|
|
65
|
+
var TrendBadge = React$1.forwardRef(({ className, direction = "same", inverted, value, tooltip, ...props }, ref) => {
|
|
36
66
|
if (direction === "hidden") return null;
|
|
37
67
|
const interactive = Boolean(tooltip);
|
|
38
68
|
const badge = /* @__PURE__ */ jsxs("div", {
|
|
39
69
|
ref,
|
|
40
70
|
className: cn(trendBadgeVariants({
|
|
41
71
|
direction,
|
|
72
|
+
inverted,
|
|
42
73
|
interactive
|
|
43
74
|
}), className),
|
|
44
75
|
tabIndex: interactive ? 0 : void 0,
|
|
45
76
|
...props,
|
|
46
77
|
children: [
|
|
47
|
-
/* @__PURE__ */ jsx("span", {
|
|
78
|
+
value !== "" ? /* @__PURE__ */ jsx("span", {
|
|
48
79
|
className: "leading-none font-medium",
|
|
49
80
|
children: value
|
|
81
|
+
}) : tooltip && /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: "sr-only",
|
|
83
|
+
children: tooltip
|
|
50
84
|
}),
|
|
51
85
|
direction === "up" && /* @__PURE__ */ jsx(TrendingUp, {
|
|
52
86
|
className: "size-3!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trend-badge.js","names":[],"sources":["../../../src/components/ui/trend-badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { TrendingDown, TrendingUp } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';\n\nconst trendBadgeVariants = cva(\n 'group/trend-badge inline-flex h-[22px] cursor-default items-center gap-1 rounded-trend-badge px-1.5 text-xs',\n {\n variants: {\n direction: {\n up: 'bg-state-success/10 text-state-success',\n down: 'bg-state-danger/10 text-state-danger',\n same: 'bg-muted text-text-secondary',\n hidden: 'hidden',\n },\n interactive: {\n true: 'focus-visible:ring-2 focus-visible:ring-focus-ring/25 focus-visible:outline-hidden',\n false: '',\n },\n },\n compoundVariants: [\n { direction: 'up', interactive: true, className: 'hover:bg-state-success/20' },\n { direction: 'down', interactive: true, className: 'hover:bg-state-danger/20' },\n ],\n defaultVariants: {\n direction: 'same',\n interactive: false,\n },\n },\n);\n\nexport interface TrendBadgeProps\n extends\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\n VariantProps<typeof trendBadgeVariants> {\n value: string | number;\n tooltip?: React.ReactNode;\n}\n\nconst TrendBadge = React.forwardRef<HTMLDivElement, TrendBadgeProps>(\n ({ className, direction = 'same', value, tooltip, ...props }, ref) => {\n if (direction === 'hidden') {\n return null;\n }\n\n const interactive = Boolean(tooltip);\n\n const badge = (\n <div\n ref={ref}\n className={cn(trendBadgeVariants({ direction, interactive }), className)}\n tabIndex={interactive ? 0 : undefined}\n {...props}\n >\n <span className=\"leading-none font-medium\">{value}</span>\n {direction === 'up' && <TrendingUp className=\"size-3!\" strokeWidth={2} />}\n {direction === 'down' && <TrendingDown className=\"size-3!\" strokeWidth={2} />}\n </div>\n );\n\n if (!tooltip) {\n return badge;\n }\n\n return (\n <TooltipProvider delayDuration={0}>\n <Tooltip>\n <TooltipTrigger asChild>{badge}</TooltipTrigger>\n <TooltipContent className=\"max-w-[240px] bg-background text-sm text-pretty text-foreground shadow-md dark:bg-popover\">\n {tooltip}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n },\n);\nTrendBadge.displayName = 'TrendBadge';\n\nexport { TrendBadge };\n"],"mappings":";;;;;;;AAOA,IAAM,qBAAqB,IACzB,+GACA;CACE,UAAU;EACR,WAAW;GACT,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;EACV;EACA,aAAa;GACX,MAAM;GACN,OAAO;EACT;CACF;CACA,kBAAkB,
|
|
1
|
+
{"version":3,"file":"trend-badge.js","names":[],"sources":["../../../src/components/ui/trend-badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { TrendingDown, TrendingUp } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';\n\nconst trendBadgeVariants = cva(\n 'group/trend-badge inline-flex h-[22px] cursor-default items-center gap-1 rounded-trend-badge px-1.5 text-xs',\n {\n variants: {\n direction: {\n up: 'bg-state-success/10 text-state-success',\n down: 'bg-state-danger/10 text-state-danger',\n same: 'bg-muted text-text-secondary',\n hidden: 'hidden',\n },\n interactive: {\n true: 'focus-visible:ring-2 focus-visible:ring-focus-ring/25 focus-visible:outline-hidden',\n false: '',\n },\n // For metrics where a rise is bad, such as reports: up reads as danger\n inverted: {\n true: '',\n false: '',\n },\n },\n compoundVariants: [\n { direction: 'up', interactive: true, className: 'hover:bg-state-success/20' },\n { direction: 'down', interactive: true, className: 'hover:bg-state-danger/20' },\n { direction: 'up', inverted: true, className: 'bg-state-danger/10 text-state-danger' },\n { direction: 'down', inverted: true, className: 'bg-state-success/10 text-state-success' },\n {\n direction: 'up',\n inverted: true,\n interactive: true,\n className: 'hover:bg-state-danger/20',\n },\n {\n direction: 'down',\n inverted: true,\n interactive: true,\n className: 'hover:bg-state-success/20',\n },\n ],\n defaultVariants: {\n direction: 'same',\n interactive: false,\n inverted: false,\n },\n },\n);\n\nexport interface TrendBadgeProps\n extends\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\n VariantProps<typeof trendBadgeVariants> {\n value: string | number;\n tooltip?: React.ReactNode;\n}\n\nconst TrendBadge = React.forwardRef<HTMLDivElement, TrendBadgeProps>(\n ({ className, direction = 'same', inverted, value, tooltip, ...props }, ref) => {\n if (direction === 'hidden') {\n return null;\n }\n\n const interactive = Boolean(tooltip);\n\n const badge = (\n <div\n ref={ref}\n className={cn(trendBadgeVariants({ direction, inverted, interactive }), className)}\n tabIndex={interactive ? 0 : undefined}\n {...props}\n >\n {value !== '' ? (\n <span className=\"leading-none font-medium\">{value}</span>\n ) : (\n tooltip && <span className=\"sr-only\">{tooltip}</span>\n )}\n {direction === 'up' && <TrendingUp className=\"size-3!\" strokeWidth={2} />}\n {direction === 'down' && <TrendingDown className=\"size-3!\" strokeWidth={2} />}\n </div>\n );\n\n if (!tooltip) {\n return badge;\n }\n\n return (\n <TooltipProvider delayDuration={0}>\n <Tooltip>\n <TooltipTrigger asChild>{badge}</TooltipTrigger>\n <TooltipContent className=\"max-w-[240px] bg-background text-sm text-pretty text-foreground shadow-md dark:bg-popover\">\n {tooltip}\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n },\n);\nTrendBadge.displayName = 'TrendBadge';\n\nexport { TrendBadge };\n"],"mappings":";;;;;;;AAOA,IAAM,qBAAqB,IACzB,+GACA;CACE,UAAU;EACR,WAAW;GACT,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;EACV;EACA,aAAa;GACX,MAAM;GACN,OAAO;EACT;EAEA,UAAU;GACR,MAAM;GACN,OAAO;EACT;CACF;CACA,kBAAkB;EAChB;GAAE,WAAW;GAAM,aAAa;GAAM,WAAW;EAA4B;EAC7E;GAAE,WAAW;GAAQ,aAAa;GAAM,WAAW;EAA2B;EAC9E;GAAE,WAAW;GAAM,UAAU;GAAM,WAAW;EAAuC;EACrF;GAAE,WAAW;GAAQ,UAAU;GAAM,WAAW;EAAyC;EACzF;GACE,WAAW;GACX,UAAU;GACV,aAAa;GACb,WAAW;EACb;EACA;GACE,WAAW;GACX,UAAU;GACV,aAAa;GACb,WAAW;EACb;CACF;CACA,iBAAiB;EACf,WAAW;EACX,aAAa;EACb,UAAU;CACZ;AACF,CACF;AAUA,IAAM,aAAa,QAAM,YACtB,EAAE,WAAW,YAAY,QAAQ,UAAU,OAAO,SAAS,GAAG,SAAS,QAAQ;CAC9E,IAAI,cAAc,UAChB,OAAO;CAGT,MAAM,cAAc,QAAQ,OAAO;CAEnC,MAAM,QACJ,qBAAC,OAAD;EACO;EACL,WAAW,GAAG,mBAAmB;GAAE;GAAW;GAAU;EAAY,CAAC,GAAG,SAAS;EACjF,UAAU,cAAc,IAAI,KAAA;EAC5B,GAAI;YAJN;GAMG,UAAU,KACT,oBAAC,QAAD;IAAM,WAAU;cAA4B;GAAY,CAAA,IAExD,WAAW,oBAAC,QAAD;IAAM,WAAU;cAAW;GAAc,CAAA;GAErD,cAAc,QAAQ,oBAAC,YAAD;IAAY,WAAU;IAAU,aAAa;GAAI,CAAA;GACvE,cAAc,UAAU,oBAAC,cAAD;IAAc,WAAU;IAAU,aAAa;GAAI,CAAA;EACzE;;CAGP,IAAI,CAAC,SACH,OAAO;CAGT,OACE,oBAAC,iBAAD;EAAiB,eAAe;YAC9B,qBAAC,SAAD,EAAA,UAAA,CACE,oBAAC,gBAAD;GAAgB,SAAA;aAAS;EAAsB,CAAA,GAC/C,oBAAC,gBAAD;GAAgB,WAAU;aACvB;EACa,CAAA,CACT,EAAA,CAAA;CACM,CAAA;AAErB,CACF;AACA,WAAW,cAAc"}
|
package/es/components.js
CHANGED
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
import { n as IconComponents } from "./icon
|
|
1
|
+
import { n as IconComponents } from "./icon--CakqPdG.js";
|
|
2
|
+
import { FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, getFloatingSidebarGapWidth, getFloatingSidebarTiming } from "./components/ui/floating-sidebar-metrics.js";
|
|
2
3
|
import { Toaster } from "./components/ui/sonner.js";
|
|
3
4
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/ui/tooltip.js";
|
|
4
5
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
5
6
|
import { buttonVariants } from "./components/ui/button-variants.js";
|
|
7
|
+
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
8
|
+
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
6
9
|
import { Button } from "./components/ui/button.js";
|
|
7
10
|
import { selectTriggerVariants } from "./components/ui/select-variants.js";
|
|
8
11
|
import { inputSurface, inputSurfaceClasses } from "./components/ui/input-surface.js";
|
|
9
12
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
|
|
10
13
|
import { Kbd, KbdGroup } from "./components/ui/kbd.js";
|
|
11
|
-
import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent
|
|
14
|
+
import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
|
|
15
|
+
import { tabSurfaceVariants, tabsVariants } from "./components/ui/tabs-variants.js";
|
|
12
16
|
import { Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount } from "./components/ui/tabs.js";
|
|
13
|
-
import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
|
|
14
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.js";
|
|
15
|
-
import { Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.js";
|
|
16
|
-
import { MultiSelectCombobox } from "./components/ui/multi-select-combobox.js";
|
|
17
|
-
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
|
|
18
|
-
import { Switch } from "./components/ui/switch.js";
|
|
19
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/ui/alert-dialog.js";
|
|
20
|
-
import { dropzoneVariants } from "./components/ui/dropzone-variants.js";
|
|
21
|
-
import { Dropzone } from "./components/ui/dropzone.js";
|
|
22
|
-
import { imageOverlayButton, imageOverlayButtonClasses } from "./components/ui/image-overlay-button.js";
|
|
23
|
-
import { Input } from "./components/ui/input.js";
|
|
24
|
-
import { Skeleton, SkeletonTable } from "./components/ui/skeleton.js";
|
|
25
|
-
import { BarChartLoadingIndicator, LoadingIndicator } from "./components/ui/loading-indicator.js";
|
|
26
|
-
import { StickyFooter } from "./components/ui/sticky-footer.js";
|
|
27
17
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/ui/accordion.js";
|
|
28
|
-
import {
|
|
18
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/ui/alert-dialog.js";
|
|
29
19
|
import { AnimatedNumber } from "./components/ui/animated-number.js";
|
|
30
20
|
import { Avatar, AvatarFallback, AvatarImage } from "./components/ui/avatar.js";
|
|
31
21
|
import { badgeVariants } from "./components/ui/badge-variants.js";
|
|
@@ -33,29 +23,39 @@ import { Badge } from "./components/ui/badge.js";
|
|
|
33
23
|
import { bannerVariants } from "./components/ui/banner-variants.js";
|
|
34
24
|
import { Banner } from "./components/ui/banner.js";
|
|
35
25
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/ui/breadcrumb.js";
|
|
26
|
+
import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
|
|
36
27
|
import { cardVariants } from "./components/ui/card-variants.js";
|
|
37
28
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, EmptyCard } from "./components/ui/card.js";
|
|
38
29
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
39
30
|
import { CodeEditor } from "./components/ui/code-editor.js";
|
|
31
|
+
import { Command, CommandCheck, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./components/ui/command.js";
|
|
32
|
+
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
|
|
40
33
|
import { Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue } from "./components/ui/combobox.js";
|
|
41
34
|
import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "./components/ui/context-menu.js";
|
|
42
35
|
import { CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue } from "./components/ui/copy-field.js";
|
|
43
36
|
import { DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow } from "./components/ui/data-list.js";
|
|
37
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.js";
|
|
38
|
+
import { dropzoneVariants } from "./components/ui/dropzone-variants.js";
|
|
39
|
+
import { Dropzone } from "./components/ui/dropzone.js";
|
|
44
40
|
import { EmptyBadge, EmptyIndicator } from "./components/ui/empty-indicator.js";
|
|
45
41
|
import { Label } from "./components/ui/label.js";
|
|
46
42
|
import { Separator } from "./components/ui/separator.js";
|
|
47
43
|
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./components/ui/field.js";
|
|
48
44
|
import { Flag } from "./components/ui/flag.js";
|
|
49
|
-
import { FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, getFloatingSidebarGapWidth, getFloatingSidebarTiming } from "./components/ui/floating-sidebar-metrics.js";
|
|
50
45
|
import { FloatingSidebar } from "./components/ui/floating-sidebar.js";
|
|
51
46
|
import { useFormField } from "./components/ui/form-context.js";
|
|
52
47
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "./components/ui/form.js";
|
|
53
48
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/ui/hover-card.js";
|
|
54
49
|
import { indicatorVariants } from "./components/ui/indicator-variants.js";
|
|
55
50
|
import { Indicator } from "./components/ui/indicator.js";
|
|
51
|
+
import { imageOverlayButton, imageOverlayButtonClasses } from "./components/ui/image-overlay-button.js";
|
|
52
|
+
import { Input } from "./components/ui/input.js";
|
|
56
53
|
import { inputGroupVariants } from "./components/ui/input-group-variants.js";
|
|
57
54
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.js";
|
|
55
|
+
import { rowSurface, rowSurfaceClasses } from "./components/ui/row-surface.js";
|
|
56
|
+
import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, List, ListItem, ListItemActions, ListItemContent } from "./components/ui/list.js";
|
|
58
57
|
import { Link } from "./components/ui/link.js";
|
|
58
|
+
import { MultiSelectCombobox } from "./components/ui/multi-select-combobox.js";
|
|
59
59
|
import { Navbar, NavbarActions, NavbarNavigation } from "./components/ui/navbar.js";
|
|
60
60
|
import { NoValueLabel, NoValueLabelIcon } from "./components/ui/no-value-label.js";
|
|
61
61
|
import { PageMenu, PageMenuItem } from "./components/ui/pagemenu.js";
|
|
@@ -68,12 +68,15 @@ import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHe
|
|
|
68
68
|
import { useSidebar } from "./components/ui/sidebar-context.js";
|
|
69
69
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger } from "./components/ui/sidebar.js";
|
|
70
70
|
import { DragIndicator, SortableList } from "./components/ui/sortable-list.js";
|
|
71
|
+
import { StickyFooter } from "./components/ui/sticky-footer.js";
|
|
72
|
+
import { Switch } from "./components/ui/switch.js";
|
|
71
73
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow } from "./components/ui/table.js";
|
|
72
|
-
import { tabsVariants } from "./components/ui/tabs-variants.js";
|
|
73
74
|
import { Textarea } from "./components/ui/textarea.js";
|
|
75
|
+
import { toast } from "./components/ui/toast.js";
|
|
74
76
|
import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
|
|
75
|
-
import { a as
|
|
77
|
+
import { a as XLogo, i as GoogleLogo, n as GhostLogo, r as GhostOrb, t as FacebookLogo } from "./images-F6slcZrB.js";
|
|
76
78
|
import { TimePicker } from "./components/ui/time-picker.js";
|
|
77
79
|
import { tokenFieldClasses } from "./components/ui/token-field.js";
|
|
80
|
+
import { RowPrimaryAction } from "./components/ui/row-primary-action.js";
|
|
78
81
|
import { defaultFilter as commandDefaultFilter } from "cmdk";
|
|
79
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck,
|
|
82
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhostLogo, GhostOrb, GoogleLogo, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, Indicator, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Link, List, ListItem, ListItemActions, ListItemContent, LoadingIndicator, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, RowPrimaryAction, RowPrimaryAction as TableRowAction, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, rowSurface, rowSurfaceClasses, selectTriggerVariants, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useFormField, useSidebar };
|