@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ButtonProps } from '
|
|
3
|
-
import { type InlineProps } from '
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
|
+
import { type InlineProps } from '../primitives/inline.js';
|
|
4
4
|
type FilterBarProps = React.PropsWithChildren & {
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filter-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAK1E,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,GAAG;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filter-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAK1E,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,GAAG;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,4BAyB7D;AAsCD,QAAA,MAAM,SAAS;;;CAGb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Filter, FilterFieldConfig, FilterGroup, FilterI18nConfig, FilterOperator } from '
|
|
1
|
+
import type { Filter, FilterFieldConfig, FilterGroup, FilterI18nConfig, FilterOperator } from './filters.js';
|
|
2
2
|
export declare const DEFAULT_I18N: FilterI18nConfig;
|
|
3
3
|
export declare const createOperatorsFromI18n: (i18n: FilterI18nConfig) => Record<string, FilterOperator[]>;
|
|
4
4
|
export declare const DEFAULT_OPERATORS: Record<string, FilterOperator[]>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FiltersProps } from './filters.js';
|
|
2
|
+
import { type ReactNode, type Ref } from 'react';
|
|
3
|
+
interface FilterSheetSurfaceProps {
|
|
4
|
+
count: number;
|
|
5
|
+
keyboardShortcut?: string;
|
|
6
|
+
chips: ReactNode[];
|
|
7
|
+
barContainer?: HTMLElement | null;
|
|
8
|
+
backButtonRef?: Ref<HTMLSpanElement>;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
onClear: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface SheetFiltersProps<T = unknown> extends Omit<FiltersProps<T>, 'inlinePicker' | 'renderPickerBack' | 'showClearButton' | 'clearButton' | 'addButton' | 'popoverContentClassName'> {
|
|
13
|
+
chips: FilterSheetSurfaceProps['chips'];
|
|
14
|
+
controls: (props: FiltersProps<T>) => ReactNode;
|
|
15
|
+
barContainer?: HTMLElement | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function SheetFilters<T = unknown>({ chips, controls: Controls, barContainer, className, inlineActions, ...props }: SheetFiltersProps<T>): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=filters-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filters-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAO9E,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAgLD,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,IAAI,CAC1D,YAAY,CAAC,CAAC,CAAC,EACb,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,aAAa,GACb,WAAW,GACX,yBAAyB,CAC5B;IACC,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;IAChD,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,EACxC,KAAK,EACL,QAAQ,EAAE,QAAQ,EAClB,YAAY,EACZ,SAAS,EACT,aAAa,EACb,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAqDtB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
export interface FilterI18nConfig {
|
|
3
3
|
addFilter: string;
|
|
4
|
+
back?: string;
|
|
5
|
+
removeFilter?: string;
|
|
4
6
|
clearFilters: string;
|
|
5
7
|
searchFields: string;
|
|
6
8
|
noFieldsFound: string;
|
|
@@ -154,6 +156,7 @@ export interface FilterFieldConfig<T = unknown> {
|
|
|
154
156
|
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
155
157
|
valueSource?: ValueSource<string>;
|
|
156
158
|
defaultOperator?: string;
|
|
159
|
+
valuelessOperators?: readonly string[];
|
|
157
160
|
defaultValue?: T;
|
|
158
161
|
hideOperatorSelect?: boolean;
|
|
159
162
|
renderOperatorInValue?: boolean;
|
|
@@ -218,17 +221,16 @@ interface FiltersContentProps<T = unknown> {
|
|
|
218
221
|
}
|
|
219
222
|
export declare const FiltersContent: <T = unknown>({ filters, fields, onChange, }: FiltersContentProps<T>) => React.JSX.Element;
|
|
220
223
|
declare const FiltersTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
221
|
-
/**
|
|
222
|
-
collapseLabel?: boolean;
|
|
223
|
-
/** Temporary appearance choices for existing screens while Admin 7 is disabled. */
|
|
224
|
+
/** Icon once filters are applied: `funnel-plus` keeps the funnel; others use the list icon. */
|
|
224
225
|
fallbackStyle?: 'list' | 'funnel' | 'funnel-plus';
|
|
225
|
-
fallbackClassName?: string;
|
|
226
226
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
227
|
-
interface FiltersProps<T = unknown> {
|
|
227
|
+
export interface FiltersProps<T = unknown> {
|
|
228
228
|
filters: Filter<T>[];
|
|
229
229
|
fields: FilterFieldsConfig<T>;
|
|
230
230
|
onChange: (filters: Filter<T>[]) => void;
|
|
231
231
|
className?: string;
|
|
232
|
+
/** Optional location for the active-filter summary outside the trigger. */
|
|
233
|
+
barContainer?: HTMLElement | null;
|
|
232
234
|
showAddButton?: boolean;
|
|
233
235
|
addButtonText?: string;
|
|
234
236
|
addButtonIcon?: React.ReactNode;
|
|
@@ -251,10 +253,15 @@ interface FiltersProps<T = unknown> {
|
|
|
251
253
|
allowMultiple?: boolean;
|
|
252
254
|
popoverContentClassName?: string;
|
|
253
255
|
popoverAlign?: 'start' | 'center' | 'end';
|
|
256
|
+
/** Keep field selection inside an enclosing panel instead of opening a popover. */
|
|
257
|
+
inlinePicker?: boolean;
|
|
258
|
+
/** Additional actions beside Add filter when using the inline picker. */
|
|
259
|
+
inlineActions?: React.ReactNode;
|
|
260
|
+
renderPickerBack?: (onBack: () => void) => React.ReactNode;
|
|
254
261
|
keyboardShortcut?: string;
|
|
255
262
|
onActiveFieldChange?: (fieldKey: string | null) => void;
|
|
256
263
|
}
|
|
257
|
-
export declare function Filters<T = unknown>(
|
|
264
|
+
export declare function Filters<T = unknown>(props: FiltersProps<T>): React.JSX.Element;
|
|
258
265
|
export declare namespace Filters {
|
|
259
266
|
export { FiltersTrigger as Trigger };
|
|
260
267
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0D/B,MAAM,WAAW,gBAAgB;IAE/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,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AG,IAAI,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC1C,mFAAmF;IACnF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yEAAyE;IACzE,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD;AAqqBD,wBAAgB,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,qBAmB1D;yBAnBe,OAAO;aAqBL,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-chart.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/gh-chart.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"gh-chart.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/gh-chart.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC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gB,CA0G3C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;AAE/C,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { imageUploadPreviewVariants } from '
|
|
4
|
-
import { type ButtonProps } from '
|
|
5
|
-
import { type DropzoneProps } from '
|
|
3
|
+
import { imageUploadPreviewVariants } from './image-upload-variants.js';
|
|
4
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
5
|
+
import { type DropzoneProps } from '../ui/dropzone.js';
|
|
6
6
|
declare const ImageUpload: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const ImageUploadDropzone: React.ForwardRefExoticComponent<DropzoneProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export interface ImageUploadPreviewProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof imageUploadPreviewVariants> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMxE,QAAA,MAAM,WAAW,6GAYhB,CAAC;AAGF,QAAA,MAAM,mBAAmB,sFAaxB,CAAC;AAGF,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElG,QAAA,MAAM,kBAAkB,gGAUvB,CAAC;AAGF,QAAA,MAAM,gBAAgB,oHAWpB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAYvB,CAAC;AAGF,QAAA,MAAM,iBAAiB,uFAatB,CAAC;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as LucideIcons from 'lucide-react';
|
|
3
|
-
import { ButtonProps } from '
|
|
4
|
-
import { TabsTrigger } from '
|
|
3
|
+
import { ButtonProps } from '../ui/button.js';
|
|
4
|
+
import { TabsTrigger } from '../ui/tabs.js';
|
|
5
5
|
interface KpiTabTriggerProps extends React.ComponentProps<typeof TabsTrigger> {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -13,6 +13,9 @@ interface KpiTabValueProps {
|
|
|
13
13
|
value: string | number;
|
|
14
14
|
diffDirection?: 'up' | 'down' | 'same' | 'hidden';
|
|
15
15
|
diffValue?: string | number;
|
|
16
|
+
/** A rise is bad for this metric, so up reads as danger */
|
|
17
|
+
diffInverted?: boolean;
|
|
18
|
+
diffTooltip?: React.ReactNode;
|
|
16
19
|
className?: string;
|
|
17
20
|
'data-testid'?: string;
|
|
18
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kpi-tabs.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/kpi-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAI5C,OAAO,EAAU,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAM/C,CAAC;AAEF,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"kpi-tabs.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/kpi-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAI5C,OAAO,EAAU,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAM/C,CAAC;AAEF,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsD3C,CAAC;AAEF,UAAU,sBAAuB,SAAQ,WAAW;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,iBAAiB,kGActB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DropdownMenuContent, DropdownMenuTrigger } from '
|
|
2
|
-
import { type ButtonProps } from '
|
|
1
|
+
import { DropdownMenuContent, DropdownMenuTrigger } from '../ui/dropdown-menu.js';
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
|
+
import { TooltipTrigger } from '../ui/tooltip.js';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
type PropsWithChildrenAndClassName = React.PropsWithChildren & {
|
|
5
6
|
className?: string;
|
|
@@ -9,38 +10,39 @@ type PageHeaderProps = PropsWithChildrenAndClassName & {
|
|
|
9
10
|
blurredBackground?: boolean;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
|
-
* Header tooltips
|
|
13
|
-
*
|
|
13
|
+
* Header tooltips never belong on primary actions. A tooltip without a label
|
|
14
|
+
* shows only the shortcut, for a control whose text already names it.
|
|
14
15
|
*/
|
|
15
16
|
declare function PageHeaderTooltip({ children, label, shortcut, }: React.PropsWithChildren<{
|
|
16
17
|
label?: string;
|
|
17
18
|
shortcut?: string;
|
|
18
19
|
}>): React.JSX.Element;
|
|
19
|
-
declare const PageHeaderTooltipTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tooltip").TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
20
|
type PageHeaderActionProps = ButtonProps & {
|
|
21
21
|
label: string;
|
|
22
22
|
iconOnly?: boolean;
|
|
23
23
|
primary?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A key the screen binds for this action. It shows in the tooltip and sets
|
|
26
|
+
* `aria-keyshortcuts`, so pass it only when the screen handles the key.
|
|
27
|
+
*/
|
|
24
28
|
shortcut?: string;
|
|
25
29
|
/** Show an explanation for a changing value; static labels need no tooltip. */
|
|
26
30
|
tooltip?: boolean;
|
|
27
|
-
/** Temporary compatibility for existing screens; new headers use the defaults. */
|
|
28
|
-
fallbackVariant?: ButtonProps['variant'];
|
|
29
|
-
fallbackSize?: ButtonProps['size'];
|
|
30
31
|
};
|
|
31
32
|
declare const PageHeaderAction: React.ForwardRefExoticComponent<ButtonProps & {
|
|
32
33
|
label: string;
|
|
33
34
|
iconOnly?: boolean;
|
|
34
35
|
primary?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* A key the screen binds for this action. It shows in the tooltip and sets
|
|
38
|
+
* `aria-keyshortcuts`, so pass it only when the screen handles the key.
|
|
39
|
+
*/
|
|
35
40
|
shortcut?: string;
|
|
36
41
|
/** Show an explanation for a changing value; static labels need no tooltip. */
|
|
37
42
|
tooltip?: boolean;
|
|
38
|
-
/** Temporary compatibility for existing screens; new headers use the defaults. */
|
|
39
|
-
fallbackVariant?: ButtonProps['variant'];
|
|
40
|
-
fallbackSize?: ButtonProps['size'];
|
|
41
43
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
42
44
|
declare const PageHeaderFilterTrigger: React.ForwardRefExoticComponent<Omit<PageHeaderActionProps, "label"> & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
-
declare const PageHeaderSelectTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
45
|
+
declare const PageHeaderSelectTrigger: React.ForwardRefExoticComponent<Omit<import("../ui/select.js").SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
44
46
|
label: string;
|
|
45
47
|
tooltip?: boolean;
|
|
46
48
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -87,7 +89,7 @@ type PageHeaderComponent = React.FC<PageHeaderProps> & {
|
|
|
87
89
|
FilterTrigger: typeof PageHeaderFilterTrigger;
|
|
88
90
|
SelectTrigger: typeof PageHeaderSelectTrigger;
|
|
89
91
|
Tooltip: typeof PageHeaderTooltip;
|
|
90
|
-
TooltipTrigger: typeof
|
|
92
|
+
TooltipTrigger: typeof TooltipTrigger;
|
|
91
93
|
};
|
|
92
94
|
/**
|
|
93
95
|
* PageHeader is the canonical page-chrome component for Ghost Admin pages.
|
|
@@ -95,7 +97,8 @@ type PageHeaderComponent = React.FC<PageHeaderProps> & {
|
|
|
95
97
|
* The main row contains `Left` (Breadcrumb + Title) and `Actions`.
|
|
96
98
|
* Compose optional ViewBar and FilterBar rows beside it in ListPage.Header.
|
|
97
99
|
* `Title` accepts an inline `Count` and stacked `Description`/`Meta` children.
|
|
98
|
-
* See
|
|
100
|
+
* See the design contract for the action ordering and interaction rules:
|
|
101
|
+
* https://shade.ghost.org/docs/components/patterns/page-header.md (generated from page-header.mdx).
|
|
99
102
|
*/
|
|
100
103
|
declare const PageHeader: PageHeaderComponent;
|
|
101
104
|
export { PageHeader, PageHeaderLeft, PageHeaderBreadcrumb, PageHeaderTitle, PageHeaderCount, PageHeaderDescription, PageHeaderMeta, PageHeaderActions, PageHeaderActionGroup, PageHeaderActionGroupPrimary, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupMobileMenuContent, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAA2B,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAMlF,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,6BAA6B,GAAG,KAAK,CAAC,iBAAiB,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG,6BAA6B,GAAG;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,GACT,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,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IAC/C,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IACrD,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IACjD,WAAW,EAAE,8BAA8B,CAAC;IAC5C,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC,aAAa,EAAE,OAAO,uBAAuB,CAAC;IAC9C,aAAa,EAAE,OAAO,uBAAuB,CAAC;IAC9C,OAAO,EAAE,OAAO,iBAAiB,CAAC;IAClC,cAAc,EAAE,OAAO,cAAc,CAAC;CACvC,CAAC;AAEF;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,EAAE,mBAuCjB,CAAC;AAEF,OAAO,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,EAC5B,+BAA+B,EAC/B,sCAAsC,EACtC,sCAAsC,GACvC,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { settingGroupVariants } from '
|
|
3
|
+
import { settingGroupVariants } from './setting-group-variants.js';
|
|
4
4
|
interface SettingGroupProps extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof settingGroupVariants> {
|
|
5
5
|
editing?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const SettingGroup: React.ForwardRefExoticComponent<SettingGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const SettingGroupHeader: React.ForwardRefExoticComponent<Omit<import("
|
|
9
|
-
declare const SettingGroupDetails: React.ForwardRefExoticComponent<Omit<import("
|
|
10
|
-
declare const SettingGroupTitle: React.ForwardRefExoticComponent<Omit<import("
|
|
11
|
-
declare const SettingGroupDescription: React.ForwardRefExoticComponent<Omit<import("
|
|
8
|
+
declare const SettingGroupHeader: React.ForwardRefExoticComponent<Omit<import("../primitives/inline.js").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
declare const SettingGroupDetails: React.ForwardRefExoticComponent<Omit<import("../primitives/stack.js").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SettingGroupTitle: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
declare const SettingGroupDescription: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
12
12
|
declare const SettingGroupActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
interface SettingGroupContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
14
14
|
columns?: 1 | 2;
|
|
15
15
|
}
|
|
16
16
|
declare const SettingGroupContent: React.ForwardRefExoticComponent<SettingGroupContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const SettingGroupValue: React.ForwardRefExoticComponent<Omit<import("
|
|
18
|
-
declare const SettingGroupValueTitle: React.ForwardRefExoticComponent<Omit<import("
|
|
19
|
-
declare const SettingGroupValueContent: React.ForwardRefExoticComponent<Omit<import("
|
|
17
|
+
declare const SettingGroupValue: React.ForwardRefExoticComponent<Omit<import("../primitives/stack.js").StackProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SettingGroupValueTitle: React.ForwardRefExoticComponent<Omit<import("../primitives/text.js").TextProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
19
|
+
declare const SettingGroupValueContent: React.ForwardRefExoticComponent<Omit<import("../primitives/inline.js").InlineProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
20
|
export { SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, };
|
|
21
21
|
export type { SettingGroupContentProps, SettingGroupProps };
|
|
22
22
|
//# sourceMappingURL=setting-group.d.ts.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Only for Admin's legacy settings modals. Use `Dialog` from `@tryghost/shade/components` for new modals.
|
|
3
|
+
*/
|
|
1
4
|
declare const settingsModalVariants: (props?: ({
|
|
2
5
|
size?: "bleed" | "full" | "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
3
6
|
align?: "center" | "left" | "right" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-modal-variants.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB;;;;;8EAiC1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"settings-modal-variants.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal-variants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,qBAAqB;;;;;8EAiC1B,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ButtonProps } from '
|
|
2
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* still render through it; new modal flows should use Shade Dialog primitives.
|
|
4
|
+
* @deprecated Only for Admin's legacy settings modals. Use `Dialog` from `@tryghost/shade/components` for new modals.
|
|
6
5
|
*/
|
|
7
6
|
export type SettingsModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'bleed';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Only for Admin's legacy settings modals. Use `Dialog` from `@tryghost/shade/components` for new modals.
|
|
9
|
+
*/
|
|
8
10
|
export interface SettingsModalProps {
|
|
9
11
|
'aria-label'?: string;
|
|
10
12
|
className?: string;
|
|
@@ -45,6 +47,13 @@ export interface SettingsModalProps {
|
|
|
45
47
|
enableCMDS?: boolean;
|
|
46
48
|
allowBackgroundInteraction?: boolean;
|
|
47
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Consumer-controlled settings modal shell. Admin's legacy full-page settings
|
|
52
|
+
* dialogs still render through it. It is not a real dialog: it doesn't trap
|
|
53
|
+
* focus or announce itself to screen readers.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated Only for Admin's legacy settings modals. Use `Dialog` from `@tryghost/shade/components` for new modals.
|
|
56
|
+
*/
|
|
48
57
|
declare const SettingsModal: React.ForwardRefExoticComponent<SettingsModalProps & React.RefAttributes<HTMLElement>>;
|
|
49
58
|
export { SettingsModal };
|
|
50
59
|
//# sourceMappingURL=settings-modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAWlE
|
|
1
|
+
{"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0C,MAAM,OAAO,CA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AS,CAAC;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA+BD;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,wFAkRlB,CAAC;AAIF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ButtonProps } from '
|
|
4
|
-
import { DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '
|
|
3
|
+
import { type ButtonProps } from '../ui/button.js';
|
|
4
|
+
import { DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '../ui/dialog.js';
|
|
5
5
|
type ShareService = 'x' | 'threads' | 'facebook' | 'linkedin' | 'bluesky';
|
|
6
6
|
export type ShareModalSocialLink = {
|
|
7
7
|
href: string;
|
|
@@ -38,7 +38,7 @@ declare function CopyURLBox({ children, className, copyURL, ...props }: CopyURLB
|
|
|
38
38
|
declare function Footer({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogFooter>): React.JSX.Element;
|
|
39
39
|
declare const ShareModal: {
|
|
40
40
|
CloseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
-
Content: React.ForwardRefExoticComponent<Omit<
|
|
41
|
+
Content: React.ForwardRefExoticComponent<Omit<import("../ui/dialog.js").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
CopyButton: typeof CopyButton;
|
|
43
43
|
CopyURLBox: typeof CopyURLBox;
|
|
44
44
|
Description: typeof Description;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/share-modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"share-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/share-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAGL,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,WAAW,EAEZ,MAAM,wBAAwB,CAAC;AAGhC,KAAK,YAAY,GAAG,GAAG,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1E,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAwBlD,iBAAS,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAE/E;AA8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,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAU9E;AAED,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,YAAY,CAAC,qBAE3F;AAED,QAAA,MAAM,UAAU;;;;;;;;;cAnVR,MAAM;;;;;;CAgWb,CAAC;eAEa,UAAU"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DirtyConfirmDialogController } from '
|
|
1
|
+
import type { DirtyConfirmDialogController } from './dirty-confirm-dialog.js';
|
|
2
2
|
export declare function useDirtyConfirmation(): DirtyConfirmDialogController;
|
|
3
3
|
//# sourceMappingURL=use-dirty-confirmation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile-filters.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/use-mobile-filters.ts"],"names":[],"mappings":"AAcA,wBAAgB,gBAAgB,YAO/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
-
import type { ButtonProps } from '
|
|
4
|
-
declare const AlertDialog: React.
|
|
3
|
+
import type { ButtonProps } from './button.js';
|
|
4
|
+
declare const AlertDialog: (props: React.ComponentProps<typeof AlertDialogPrimitive.Root>) => React.ReactNode;
|
|
5
5
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
7
7
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAUrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,WAAW,UAAW,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,oBAGjF,CAAC;AAEF,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AAExD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAGtD,QAAA,MAAM,kBAAkB,wKAatB,CAAC;AASH,QAAA,MAAM,kBAAkB;uBAHH,MAAM;wCAoCzB,CAAC;mCAGwB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;mCAK7D,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;AAQxF,QAAA,MAAM,gBAAgB,8KASpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAK1B,CAAC;AAGH,QAAA,MAAM,iBAAiB,4MAcrB,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KAkBrB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,WAAW,gKASf,CAAC;AAGH,QAAA,MAAM,cAAc,iKAYlB,CAAC;AA6BH,UAAU,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;IACvF,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,MAAM,qFAgCX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const badgeVariants: (props?: ({
|
|
2
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
2
|
+
variant?: "default" | "destructive" | "outline" | "purple" | "secondary" | "success" | "warning" | null | undefined;
|
|
3
3
|
size?: "default" | "md" | "sm" | null | undefined;
|
|
4
4
|
shape?: "pill" | "rounded" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;;;
|
|
1
|
+
{"version":3,"file":"badge-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;;;8EA6BlB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { badgeVariants } from '
|
|
3
|
+
import { badgeVariants } from './badge-variants.js';
|
|
4
4
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const bannerVariants: (props?: ({
|
|
2
|
-
variant?: "default" | "destructive" | "gradient" | "info" | "success" | "warning" | null | undefined;
|
|
2
|
+
variant?: "default" | "destructive" | "gradient" | "gradient-inline" | "info" | "success" | "warning" | null | undefined;
|
|
3
3
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
export { bannerVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;
|
|
1
|
+
{"version":3,"file":"banner-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;8EAoClB,CAAC;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { bannerVariants } from '
|
|
3
|
+
import { bannerVariants } from './banner-variants.js';
|
|
4
4
|
interface BannerBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'>, VariantProps<typeof bannerVariants> {
|
|
5
5
|
/**
|
|
6
6
|
* Semantic role of the banner
|
|
@@ -11,6 +11,8 @@ interface BannerBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'ro
|
|
|
11
11
|
* role="region" requires aria-label
|
|
12
12
|
*/
|
|
13
13
|
role?: 'status' | 'alert' | 'region';
|
|
14
|
+
/** Scroll tall content inside the card, preserving the card's outer shadow and dismiss control. */
|
|
15
|
+
scroll?: boolean;
|
|
14
16
|
}
|
|
15
17
|
export type BannerProps = BannerBaseProps & ({
|
|
16
18
|
dismissible: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC/F;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,UAAU,eACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC/F;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC,mGAAmG;IACnG,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,CAAC;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG;IAAE,WAAW,CAAC,EAAE,KAAK,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE9F,QAAA,MAAM,MAAM,oFAyDV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const buttonVariants: (props?: ({
|
|
2
2
|
variant?: "default" | "destructive" | "destructive-ghost" | "dropdown" | "ghost" | "link" | "outline" | "secondary" | "subtle" | null | undefined;
|
|
3
3
|
size?: "default" | "icon" | "icon-sm" | "lg" | "sm" | null | undefined;
|
|
4
|
-
isAdmin7?: boolean | null | undefined;
|
|
5
4
|
shape?: "pill" | "rounded" | null | undefined;
|
|
6
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
6
|
export { buttonVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"button-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;8EA+FnB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { buttonVariants } from '
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
3
|
+
import { buttonVariants } from './button-variants.js';
|
|
4
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Disables the button and shows a spinner over its label. The label stays in
|
|
8
|
+
* the layout, so the button keeps its width. Ignored with `asChild`.
|
|
9
|
+
*/
|
|
10
|
+
loading?: boolean;
|
|
6
11
|
}
|
|
7
12
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
13
|
export { Button };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFA2DX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayButton, DayPicker } from 'react-day-picker';
|
|
3
|
-
import { Button } from '
|
|
3
|
+
import { Button } from './button.js';
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
6
6
|
}): React.JSX.Element;
|