@tryghost/shade 0.1.0-alpha.6 → 0.1.0-alpha.61
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 +16 -11
- package/es/app.js +2 -1
- package/es/assets/images/index.js +2 -2
- package/es/components/page-templates/list-page.js +1 -1
- 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 +180 -0
- package/es/components/patterns/filters-sheet.js.map +1 -0
- package/es/components/patterns/filters.js +200 -84
- package/es/components/patterns/filters.js.map +1 -1
- package/es/components/patterns/gh-chart.js +4 -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 +62 -60
- 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 +5 -5
- 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 +12 -5
- 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 +3 -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/breadcrumb.js +2 -0
- package/es/components/ui/breadcrumb.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 +18 -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/flag.js.map +1 -1
- package/es/components/ui/floating-sidebar.js +83 -21
- 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 +145 -27
- 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 +66 -8
- package/es/tokens.js.map +1 -1
- package/es/utils.js +3 -2
- package/package.json +7 -7
- package/preflight.css +0 -10
- package/styles.css +485 -12
- package/tailwind.theme.css +241 -187
- package/theme-variables.css +215 -69
- 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/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 +21 -0
- package/types/components/patterns/filters-sheet.d.ts.map +1 -0
- package/types/components/patterns/filters.d.ts +21 -7
- 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 +26 -17
- 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/setting-group.d.ts.map +1 -1
- 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/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/breadcrumb.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sortable-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sortable-list.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sortable-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sortable-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EASjC,MAAM,eAAe,CAAC;AASvB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,CAAC,EAAE,mBAAmB,CAAC;IAC3C,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAA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,EAAE,MAAM,CAAA;CAAE,sMAgBrD,iBAAiB,CAAC,IAAI,CAAC,uCAuIzB,CAAC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export interface StickyFooterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
3
|
shiftY?: string;
|
|
4
4
|
height?: number;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
contentClassName?: string;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Keeps actions visible at the bottom of a scrolling surface.
|
|
10
|
+
*
|
|
11
|
+
* The footer takes its background from `--sticky-footer-background`, which
|
|
12
|
+
* Shade's Dialog sets to its own surface; anywhere else it falls back to
|
|
13
|
+
* `--background`. When the scroll container has bottom padding, the footer
|
|
14
|
+
* fills it so content doesn't show beneath the footer.
|
|
15
|
+
*/
|
|
9
16
|
export declare const StickyFooter: ({ shiftY, height, children, className, contentClassName, style, ...props }: StickyFooterProps) => import("react").JSX.Element;
|
|
10
17
|
//# sourceMappingURL=sticky-footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sticky-footer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sticky-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sticky-footer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sticky-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrF,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AASD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,+EAQtB,iBAAiB,gCAkFnB,CAAC"}
|
|
@@ -5,7 +5,10 @@ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTa
|
|
|
5
5
|
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
6
|
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
7
|
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
|
|
8
|
+
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
12
|
declare const headVariants: (props?: ({
|
|
10
13
|
variant?: "cardhead" | "default" | null | undefined;
|
|
11
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,KAAK,iHAMV,CAAC;AAGF,QAAA,MAAM,WAAW,+HAGwE,CAAC;AAG1F,QAAA,MAAM,SAAS,+HAGkF,CAAC;AAGlG,QAAA,MAAM,WAAW,+HASf,CAAC;AAGH,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,QAAQ,2FAkBb,CAAC;AAGF,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IACvF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS,6FAId,CAAC;AAGF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAUnD,CAAC;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAKhB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,eAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
declare const tabSurfaceVariants: (props?: ({
|
|
2
|
+
admin7Design?: boolean | null | undefined;
|
|
3
|
+
size?: "compact" | "default" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1
5
|
declare const tabsVariants: (props?: ({
|
|
2
6
|
variant?: "button" | "button-sm" | "kpis" | "navbar" | "pill" | "segmented" | "segmented-sm" | "underline" | null | undefined;
|
|
3
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
-
export { tabsVariants };
|
|
8
|
+
export { tabsVariants, tabSurfaceVariants };
|
|
5
9
|
//# sourceMappingURL=tabs-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB;;;8EAgBtB,CAAC;AAEH,QAAA,MAAM,YAAY;;8EAgBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAStD,KAAK,WAAW,GACZ,WAAW,GACX,cAAc,GACd,QAAQ,GACR,WAAW,GACX,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,CAAC;AAYX,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC;IAC1F,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,QAAA,MAAM,IAAI,kFAWT,CAAC;AAwCF,QAAA,MAAM,QAAQ,uJA6EZ,CAAC;AAiIH,QAAA,MAAM,WAAW,gKAmCf,CAAC;AAGH,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAWrD,CAAC;AAwBF,QAAA,MAAM,WAAW,0JAYf,CAAC;AAGH,UAAU,wBAAyB,SAAQ,IAAI,CAC7C,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,EAClD,SAAS,CACV;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,mBAAmB,iHAwCxB,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref">) &
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5
5
|
variant?: "default" | null | undefined;
|
|
6
6
|
size?: "button" | "default" | null | undefined;
|
|
7
|
-
isAdmin7?: boolean | null | undefined;
|
|
8
7
|
shape?: "pill" | "rounded" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string
|
|
10
|
-
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
10
|
variant?: "default" | null | undefined;
|
|
12
11
|
size?: "button" | "default" | null | undefined;
|
|
13
|
-
isAdmin7?: boolean | null | undefined;
|
|
14
12
|
shape?: "pill" | "rounded" | null | undefined;
|
|
15
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
14
|
export { ToggleGroup, ToggleGroupItem };
|
|
17
15
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAW7D,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAW7D,QAAA,MAAM,WAAW;;;;uHAwBf,CAAC;AAIH,QAAA,MAAM,eAAe;;;;yHAyBnB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const toggleVariants: (props?: ({
|
|
2
2
|
variant?: "default" | null | undefined;
|
|
3
3
|
size?: "button" | "default" | 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 { toggleVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"toggle-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;8EA4BnB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> &
|
|
4
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
5
5
|
variant?: "default" | null | undefined;
|
|
6
6
|
size?: "button" | "default" | null | undefined;
|
|
7
|
-
isAdmin7?: boolean | null | undefined;
|
|
8
7
|
shape?: "pill" | "rounded" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
9
|
export { Toggle };
|
|
11
10
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,MAAM;;;;yHAeV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Shared chip density for token inputs such as labels, tags and authors. */
|
|
2
2
|
export declare const tokenFieldClasses: {
|
|
3
3
|
readonly field: string;
|
|
4
|
-
readonly input: 'min-w-20 flex-1 bg-transparent px-2 text-
|
|
5
|
-
readonly 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';
|
|
4
|
+
readonly input: 'min-w-20 flex-1 bg-transparent px-2 text-(length:--text-field) outline-hidden placeholder:text-muted-foreground';
|
|
5
|
+
readonly 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';
|
|
6
6
|
readonly chevron: 'pointer-events-none absolute top-[calc((var(--control-height)-var(--spacing)*4)/2-1px)] right-1.5 size-4 text-muted-foreground';
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=token-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/token-field.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;aAC5B,KAAK;aAIL,KAAK,EACH,
|
|
1
|
+
{"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../src/components/ui/token-field.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;aAC5B,KAAK;aAIL,KAAK,EACH,iHAAiH;aAEnH,IAAI,EAAE,iOAAiO;aAEvO,OAAO,EACL,gIAAgI;CAC1H,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAgB5D;;;;GAIG;AACH,iBAAS,eAAe,CAAC,EACvB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,qBAsDxD;AAED,iBAAS,OAAO,CAAC,EACf,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAoCpD;AAED,QAAA,MAAM,cAAc,sKAwDlB,CAAC;AAGH,QAAA,MAAM,sBAAsB;;8EAW3B,CAAC;AAEF,MAAM,WAAW,mBACf,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,EAC/D,YAAY,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAElD,QAAA,MAAM,cAAc,4FAqBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
declare const trendBadgeVariants: (props?: ({
|
|
4
4
|
direction?: "down" | "hidden" | "same" | "up" | null | undefined;
|
|
5
5
|
interactive?: boolean | null | undefined;
|
|
6
|
+
inverted?: boolean | null | undefined;
|
|
6
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
8
|
export interface TrendBadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof trendBadgeVariants> {
|
|
8
9
|
value: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trend-badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/trend-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"trend-badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/trend-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,QAAA,MAAM,kBAAkB;;;;8EA4CvB,CAAC;AAEF,MAAM,WAAW,eACf,SACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,UAAU,wFAwCf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/types/components.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './components/ui/accordion';
|
|
2
2
|
export * from './components/ui/alert-dialog';
|
|
3
|
-
export * from './components/ui/action-list';
|
|
4
3
|
export * from './components/ui/animated-number';
|
|
5
4
|
export * from './components/ui/avatar';
|
|
6
5
|
export * from './components/ui/badge';
|
|
@@ -42,6 +41,7 @@ export * from './components/ui/input-group';
|
|
|
42
41
|
export * from './components/ui/input-group-variants';
|
|
43
42
|
export * from './components/ui/kbd';
|
|
44
43
|
export * from './components/ui/label';
|
|
44
|
+
export * from './components/ui/list';
|
|
45
45
|
export * from './components/ui/link';
|
|
46
46
|
export * from './components/ui/loading-indicator';
|
|
47
47
|
export * from './components/ui/multi-select-combobox';
|
|
@@ -67,15 +67,18 @@ export * from './components/ui/input-surface';
|
|
|
67
67
|
export * from './components/ui/sticky-footer';
|
|
68
68
|
export * from './components/ui/switch';
|
|
69
69
|
export * from './components/ui/table';
|
|
70
|
+
export { rowSurface, rowSurfaceClasses } from './components/ui/row-surface';
|
|
70
71
|
export * from './components/ui/tabs';
|
|
71
72
|
export * from './components/ui/tabs-variants';
|
|
72
73
|
export * from './components/ui/textarea';
|
|
74
|
+
export * from './components/ui/toast';
|
|
73
75
|
export * from './components/ui/toggle-group';
|
|
74
76
|
export * from './components/ui/tooltip';
|
|
75
77
|
export type { DropdownMenuCheckboxItemProps as DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
76
78
|
export type { ContextMenuCheckboxItemProps as ContextMenuCheckboxItemProps } from '@radix-ui/react-context-menu';
|
|
77
79
|
export { IconComponents as Icon } from './components/ui/icon';
|
|
78
|
-
export { FacebookLogo, GhostLogo, GhostOrb, GoogleLogo,
|
|
80
|
+
export { FacebookLogo, GhostLogo, GhostOrb, GoogleLogo, XLogo } from './assets/images';
|
|
79
81
|
export { TimePicker, type TimePickerProps } from './components/ui/time-picker';
|
|
80
82
|
export { tokenFieldClasses } from './components/ui/token-field';
|
|
83
|
+
export { RowPrimaryAction, TableRowAction } from './components/ui/row-primary-action';
|
|
81
84
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAExC,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,MAAM,CAAC;AAC7D,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7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AAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AAExC,YAAY,EAAE,6BAA6B,IAAI,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACpH,YAAY,EAAE,4BAA4B,IAAI,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAAO,EAAE,cAAc,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEvF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type HTMLAttributes, type MouseEvent } from 'react';
|
|
2
|
+
/** Sends clicks on empty row space to its main link or button. */
|
|
3
|
+
export declare function useRowBehavior<Element extends HTMLElement>(props: HTMLAttributes<Element>, interactive?: boolean): {
|
|
4
|
+
'data-row-pressed'?: undefined;
|
|
5
|
+
onPointerDown?: undefined;
|
|
6
|
+
onPointerMove?: undefined;
|
|
7
|
+
onPointerUp?: undefined;
|
|
8
|
+
onPointerCancel?: undefined;
|
|
9
|
+
onPointerLeave?: undefined;
|
|
10
|
+
onClickCapture?: undefined;
|
|
11
|
+
onClick?: undefined;
|
|
12
|
+
onAuxClick?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
'data-row-pressed': string | undefined;
|
|
15
|
+
onPointerDown(event: React.PointerEvent<Element>): void;
|
|
16
|
+
onPointerMove(event: React.PointerEvent<Element>): void;
|
|
17
|
+
onPointerUp(event: React.PointerEvent<Element>): void;
|
|
18
|
+
onPointerCancel(event: React.PointerEvent<Element>): void;
|
|
19
|
+
onPointerLeave(event: React.PointerEvent<Element>): void;
|
|
20
|
+
onClickCapture(event: MouseEvent<Element>): void;
|
|
21
|
+
onClick(event: MouseEvent<Element>): void;
|
|
22
|
+
onAuxClick(event: MouseEvent<Element>): void;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=use-row-behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-row-behavior.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAYrE,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,OAAO,SAAS,WAAW,EACxD,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9B,WAAW,CAAC,EAAE,OAAO;;;;;;;;;;;;yBAwBE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;yBAU3B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;uBAI7B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;2BAIvB,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI5B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI3B,UAAU,CAAC,OAAO,CAAC;mBAK1B,UAAU,CAAC,OAAO,CAAC;sBAsChB,UAAU,CAAC,OAAO,CAAC;EA6BxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type HTMLAttributes, type PointerEvent } from 'react';
|
|
2
|
+
/** Touch feedback for a row, without capturing pointers or blocking scrolling. */
|
|
3
|
+
export declare function useRowPress<Element extends HTMLElement>(props?: HTMLAttributes<Element>, enabled?: boolean): {
|
|
4
|
+
'data-row-pressed': string | undefined;
|
|
5
|
+
onPointerDown(event: PointerEvent<Element>): void;
|
|
6
|
+
onPointerMove(event: PointerEvent<Element>): void;
|
|
7
|
+
onPointerUp(event: PointerEvent<Element>): void;
|
|
8
|
+
onPointerCancel(event: PointerEvent<Element>): void;
|
|
9
|
+
onPointerLeave(event: PointerEvent<Element>): void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=use-row-press.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-row-press.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-press.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5F,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,OAAO,SAAS,WAAW,EACrD,KAAK,GAAE,cAAc,CAAC,OAAO,CAAM,EACnC,OAAO,UAAO;;yBA4BS,YAAY,CAAC,OAAO,CAAC;yBAarB,YAAY,CAAC,OAAO,CAAC;uBAUvB,YAAY,CAAC,OAAO,CAAC;2BAIjB,YAAY,CAAC,OAAO,CAAC;0BAItB,YAAY,CAAC,OAAO,CAAC;EAK9C"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type AppOverlayTint = 'dialog' | 'sheet';
|
|
3
|
+
/** A modal's tint classes. Admin draws the same tint behind an app's dialogs and sheets. */
|
|
4
|
+
export declare const overlayTint: (tint: AppOverlayTint) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Centres a dialog on the window, moved only as far as it must to stay inside the safe area.
|
|
7
|
+
* One wider than the safe area is centred on it instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SAFE_AREA_DIALOG_X = "w-[calc(100%_-_var(--ghost-safe-area-inset-left,0px)_-_var(--ghost-safe-area-inset-right,0px))] translate-x-[calc(-50%_+_clamp(min(var(--ghost-safe-area-inset-left,0px)_-_50vw_+_50%,(var(--ghost-safe-area-inset-left,0px)_-_var(--ghost-safe-area-inset-right,0px))/2),0px,max(50vw_-_var(--ghost-safe-area-inset-right,0px)_-_50%,(var(--ghost-safe-area-inset-left,0px)_-_var(--ghost-safe-area-inset-right,0px))/2)))]";
|
|
10
|
+
export declare const SAFE_AREA_DIALOG_HEIGHT = "max-h-[calc(100dvh_-_var(--ghost-safe-area-inset-top,0px)_-_var(--ghost-safe-area-inset-bottom,0px)_-_1rem)] overflow-y-auto";
|
|
11
|
+
/** A dialog or sheet's hold on the overlay, from when it mounts until it unmounts. */
|
|
12
|
+
export interface AppOverlayHold {
|
|
13
|
+
/** True once the dialog opens, false as soon as it starts to close. */
|
|
14
|
+
setOpen(open: boolean): void;
|
|
15
|
+
/** Called after the dialog's closing animation, once it has unmounted. */
|
|
16
|
+
release(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Where an app's dialogs and sheets render, so they cover all of Admin rather than only the
|
|
20
|
+
* app's frame. Pass the app SDK's `ghost.overlay` to `ShadeApp` as `overlay`.
|
|
21
|
+
*/
|
|
22
|
+
export interface AppOverlay {
|
|
23
|
+
/** The element to render into, or undefined to render in the page. */
|
|
24
|
+
container(): HTMLElement | undefined;
|
|
25
|
+
/** Called with the dialog's content element as it mounts. */
|
|
26
|
+
hold(tint: AppOverlayTint, element: HTMLElement): AppOverlayHold;
|
|
27
|
+
}
|
|
28
|
+
export declare const AppOverlayContext: React.Context<AppOverlay | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Tracks the dialogs open in the overlay so toasts can show above them. Returns the overlay to
|
|
31
|
+
* give the dialogs, and the toasts' container: the overlay's while a dialog is open there.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useOverlayToasts(overlay: AppOverlay | undefined): [AppOverlay | undefined, HTMLElement | undefined];
|
|
34
|
+
interface OpenProps {
|
|
35
|
+
open?: boolean;
|
|
36
|
+
defaultOpen?: boolean;
|
|
37
|
+
onOpenChange?: (open: boolean) => void;
|
|
38
|
+
modal?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Wraps a Radix dialog `Root`'s props so its content re-renders when it opens, even from its own
|
|
42
|
+
* trigger, and can then decide whether to render in the overlay. Radix re-renders only its
|
|
43
|
+
* portal, and doesn't expose `modal` to the content.
|
|
44
|
+
*/
|
|
45
|
+
export declare function useModalOpen<P extends OpenProps>(props: P): [P, (children: React.ReactNode) => React.ReactNode];
|
|
46
|
+
/** The container for a Radix `Portal`: the overlay inside a hosted dialog, else the default. */
|
|
47
|
+
export declare const usePortalContainer: () => HTMLElement | undefined;
|
|
48
|
+
interface HostedModal<T extends HTMLElement> {
|
|
49
|
+
/** The overlay when the dialog renders there, or a non-modal one opens from a dialog there. */
|
|
50
|
+
container: HTMLElement | undefined;
|
|
51
|
+
inApp: boolean;
|
|
52
|
+
modal: boolean;
|
|
53
|
+
overlayStyle: React.CSSProperties | undefined;
|
|
54
|
+
ref: React.RefCallback<T>;
|
|
55
|
+
wrap: (children: React.ReactNode) => React.ReactNode;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Renders a dialog, alert dialog or sheet in the app's overlay when there is one, holding the
|
|
59
|
+
* overlay while its content is mounted.
|
|
60
|
+
*/
|
|
61
|
+
export declare function useHostedModal<T extends HTMLElement>(tint: AppOverlayTint, forwardedRef: React.Ref<T>): HostedModal<T>;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=app-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-overlay.d.ts","sourceRoot":"","sources":["../../src/lib/app-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAOhD,4FAA4F;AAC5F,e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,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;IAC9C,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;CACtD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAClD,IAAI,EAAE,cAAc,EACpB,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GACzB,WAAW,CAAC,CAAC,CAAC,CAqFhB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const formatDisplayDate: (dateString: string, timezone?: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Format a plain time in a given time zone.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* formatDisplayTime('2020-04-20T18:09:12.345Z', 'Africa/Lagos')
|
|
7
|
+
* // 7:09pm
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatDisplayTime: (dateString: string, timezone: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Formats a date based on the range, in the browser's time zone
|
|
12
|
+
* - For ranges of 365 days or more: shows month and year (e.g. "Apr 2025")
|
|
13
|
+
* - For ranges of 90 days or more: shows "Week of [date]"
|
|
14
|
+
* - For other ranges: shows the date in the same format as formatDisplayDate
|
|
15
|
+
*/
|
|
16
|
+
export declare const formatDisplayDateWithRange: (date: string, range: number, showHours?: boolean, hoursOnly?: boolean) => string;
|
|
17
|
+
//# sourceMappingURL=date-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../src/lib/date-utils.ts"],"names":[],"mappings":"AAiLA,eAAO,MAAM,iBAAiB,eAAgB,MAAM,aAAa,MAAM,KAAG,MAczE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,eAAgB,MAAM,YAAY,MAAM,KAAG,MAQxE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,SAC/B,MAAM,SACL,MAAM,cACF,OAAO,cACP,OAAO,KACjB,MAqBF,CAAC"}
|
package/types/lib/ds-utils.d.ts
CHANGED
|
@@ -3,15 +3,6 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
3
3
|
export declare function debounce<T extends unknown[]>(func: (...args: T) => void, wait: number, immediate?: boolean): (...args: T) => void;
|
|
4
4
|
export declare function getScrollParent(node: Node | null): HTMLElement | null;
|
|
5
5
|
export declare const kebabToPascalCase: (str: string) => string;
|
|
6
|
-
export declare const formatDisplayDate: (dateString: string, timezone?: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Format a plain time in a given time zone.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* formatDisplayTime('2020-04-20T18:09:12.345Z', 'Africa/Lagos')
|
|
12
|
-
* // 7:09pm
|
|
13
|
-
*/
|
|
14
|
-
export declare const formatDisplayTime: (dateString: string, timezone: string) => string;
|
|
15
6
|
export declare const formatTimestamp: (timestamp: string) => string;
|
|
16
7
|
export declare const formatNumber: (value: number, options?: Pick<Intl.NumberFormatOptions, 'minimumFractionDigits' | 'maximumFractionDigits'>) => string;
|
|
17
8
|
export declare function abbreviateNumber(number: number): string;
|
|
@@ -19,13 +10,8 @@ export declare const formatDuration: (seconds: number) => string;
|
|
|
19
10
|
export declare const formatPercentage: (value: number) => string;
|
|
20
11
|
export declare function getCountryFlag(countryCode: string): string;
|
|
21
12
|
export declare const stringToHslColor: (str: string, saturation: string, lightness: string) => string;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
* - For ranges above 365 days: shows month and year (e.g. "Apr 2025")
|
|
25
|
-
* - For ranges above 91 days: shows "Week of [date]"
|
|
26
|
-
* - For other ranges: uses the default formatDisplayDate
|
|
27
|
-
*/
|
|
28
|
-
export declare const formatDisplayDateWithRange: (date: string, range: number, showHours?: boolean, hoursOnly?: boolean) => string;
|
|
13
|
+
/** Initials avatar colours: one palette family picked by the string's hash. */
|
|
14
|
+
export declare const stringToTonalAvatarClasses: (str: string) => string;
|
|
29
15
|
export declare const getYRange: (data: {
|
|
30
16
|
value: number;
|
|
31
17
|
}[]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-utils.d.ts","sourceRoot":"","sources":["../../src/lib/ds-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ds-utils.d.ts","sourceRoot":"","sources":["../../src/lib/ds-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAO7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAC1C,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EAC1B,IAAI,EAAE,MAAM,EACZ,SAAS,GAAE,OAAe,GACzB,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAuBtB;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAerE;AAMD,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,MAG/C,CAAC;AAGF,eAAO,MAAM,eAAe,cAAe,MAAM,WAuChD,CAAC;AAGF,eAAO,MAAM,YAAY,UAChB,MAAM,YACH,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,uBAAuB,CAAC,KAC1F,MAOF,CAAC;AAGF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAoCvD;AAGD,eAAO,MAAM,cAAc,YAAa,MAAM,KAAG,MAahD,CAAC;AAGF,eAAO,MAAM,gBAAgB,UAAW,MAAM,WAW7C,CAAC;AAGF,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAajD;AAUD,eAAO,MAAM,gBAAgB,QAAS,MAAM,cAAc,MAAM,aAAa,MAAM,WAGlF,CAAC;AAeF,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QAAS,MAAM,WACyB,CAAC;AAKhF,eAAO,MAAM,SAAS,SAAU;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAiD/E,CAAC;AAGF,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,aACJ,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KACnC,MAYF,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the app SDK has set `--ghost-safe-area-inset-*` on the `<html>` of `container`'s
|
|
4
|
+
* document, or this one. It sets them inline, so reading them needs no style recalculation.
|
|
5
|
+
*/
|
|
6
|
+
export declare function hasSafeArea(container?: HTMLElement): boolean;
|
|
7
|
+
export declare function useHasSafeArea(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* An invisible element covering the safe area in `container`'s document, for popups to use as
|
|
10
|
+
* their collision boundary. Undefined where the safe area isn't set.
|
|
11
|
+
*/
|
|
12
|
+
export declare function safeAreaBoundary(container?: HTMLElement): HTMLElement | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Props that keep a Radix popup inside the safe area: its collision boundary, unless the caller
|
|
15
|
+
* gave one, and `data-safe-area` for styles that size it to fit.
|
|
16
|
+
*/
|
|
17
|
+
export declare function safeAreaCollision(collisionBoundary: Element | null | Array<Element | null> | undefined, container?: HTMLElement): {
|
|
18
|
+
collisionBoundary: (Element | null)[] | Element | undefined;
|
|
19
|
+
'data-safe-area': string | undefined;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* When the safe area's left and right insets jump, as Admin's navigation pins and unpins, slides
|
|
23
|
+
* `app` from where it showed to its new place with the navigation's timing. Not with reduced
|
|
24
|
+
* motion, nor the first time the insets are set.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useSafeAreaSlide(app: React.RefObject<HTMLElement | null>): void;
|
|
27
|
+
//# sourceMappingURL=safe-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-area.d.ts","sourceRoot":"","sources":["../../src/lib/safe-area.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;GAGG;AACH,wBAAgB,WAAW,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,OAAO,CAQ5D;AAQD,wBAAgB,cAAc,IAAI,OAAO,CAMxC;AAoBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,CAqBjF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,iBAAiB,EAAE,OAAO,GAAG,IAAI,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,EACrE,SAAS,CAAC,EAAE,WAAW;;;EAOxB;AA4BD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,QAyExE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FunctionComponent, type SVGProps } from 'react';
|
|
2
|
+
export interface SvgGraphicProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Names the graphic for screen readers. It sets `aria-label`, and doesn't
|
|
5
|
+
* render a tooltip or an SVG `<title>`. Without a `title`, `aria-label` or
|
|
6
|
+
* `aria-labelledby`, the graphic is decorative and hidden from them. A
|
|
7
|
+
* non-blank `aria-label` takes precedence over `title`, and an explicit
|
|
8
|
+
* `aria-hidden` from the caller always wins.
|
|
9
|
+
*/
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Applies Shade's rule for SVG logos and icons: decorative by default, and an
|
|
14
|
+
* image with a name when the caller gives one. Callers can still override
|
|
15
|
+
* `aria-hidden` and `role`; a prop passed as `undefined` keeps the default.
|
|
16
|
+
*
|
|
17
|
+
* This lives in code rather than SVGR options because Admin and other apps
|
|
18
|
+
* compile Shade's source with their own SVGR config.
|
|
19
|
+
*/
|
|
20
|
+
export declare function svgGraphicProps({ title, ...props }: SvgGraphicProps): SVGProps<SVGSVGElement>;
|
|
21
|
+
export declare function svgGraphic(Svg: FunctionComponent<SVGProps<SVGSVGElement>>, displayName: string): FunctionComponent<SvgGraphicProps>;
|
|
22
|
+
//# sourceMappingURL=svg-graphic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg-graphic.d.ts","sourceRoot":"","sources":["../../src/lib/svg-graphic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,MAAM,WAAW,eAAgB,SAAQ,QAAQ,CAAC,aAAa,CAAC;IAC9D;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAID;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,CAQ7F;AAED,wBAAgB,UAAU,CACxB,GAAG,EAAE,iBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,EAC/C,WAAW,EAAE,MAAM,GAClB,iBAAiB,CAAC,eAAe,CAAC,CAIpC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Keeps a dialog or sheet open when a toast above it is pressed, which Radix counts as outside. */
|
|
2
|
+
declare const keepOpenOnToast: <E extends Event>(event: E, onInteractOutside?: (event: E) => void) => void;
|
|
3
|
+
export { keepOpenOnToast };
|
|
4
|
+
//# sourceMappingURL=toast-press.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast-press.d.ts","sourceRoot":"","sources":["../../src/lib/toast-press.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,KAAK,SAAS,CAAC,sBAAsB,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,SAMzF,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/types/lib/utils.d.ts
CHANGED
package/types/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
package/types/patterns.d.ts
CHANGED
|
@@ -20,4 +20,5 @@ export type { ShareModalPreviewProps, ShareModalSocialLink, } from './components
|
|
|
20
20
|
export { SettingsModal } from './components/patterns/settings-modal';
|
|
21
21
|
export { settingsModalVariants } from './components/patterns/settings-modal-variants';
|
|
22
22
|
export type { SettingsModalProps, SettingsModalSize } from './components/patterns/settings-modal';
|
|
23
|
+
export { useMobileFilters } from './components/patterns/use-mobile-filters';
|
|
23
24
|
//# sourceMappingURL=patterns.d.ts.map
|
package/types/patterns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../src/patterns.ts"],"names":[],"mappings":"AACA,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/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;AAC9C,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,cAAc,GACf,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,YAAY,EACV,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-tooltip-provider.d.ts","sourceRoot":"","sources":["../../src/providers/header-tooltip-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"header-tooltip-provider.d.ts","sourceRoot":"","sources":["../../src/providers/header-tooltip-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,qBAc1E"}
|
|
@@ -2,7 +2,10 @@ interface ShadeContextType {
|
|
|
2
2
|
isAnyTextFieldFocused: boolean;
|
|
3
3
|
setFocusState: (value: boolean) => void;
|
|
4
4
|
darkMode: boolean;
|
|
5
|
-
|
|
5
|
+
/** Admin's `admin7Design` Labs flag; see ShadeApp. */
|
|
6
|
+
admin7Design: boolean;
|
|
7
|
+
/** Temporary mobile-hardening switch, independent of admin7Design. */
|
|
8
|
+
admin7Mobile: boolean;
|
|
6
9
|
controlShape: ControlShape;
|
|
7
10
|
}
|
|
8
11
|
export type ControlShape = 'rounded' | 'pill';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-context.d.ts","sourceRoot":"","sources":["../../src/providers/shade-context.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"shade-context.d.ts","sourceRoot":"","sources":["../../src/providers/shade-context.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,YAAY,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9C,eAAO,MAAM,YAAY,2CAOvB,CAAC;AAEH,eAAO,MAAM,QAAQ,wBAAiC,CAAC;AAEvD,eAAO,MAAM,eAAe,wBAM3B,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ControlShape } from '
|
|
2
|
+
import { type ControlShape } from './shade-context.js';
|
|
3
3
|
interface ShadeProviderProps {
|
|
4
4
|
darkMode: boolean;
|
|
5
|
-
|
|
5
|
+
admin7Design?: boolean;
|
|
6
|
+
admin7Mobile?: boolean;
|
|
6
7
|
controlShape?: ControlShape;
|
|
8
|
+
/** Where toasts render instead of the page: an app's overlay, while a dialog is open there. */
|
|
9
|
+
toasterContainer?: HTMLElement;
|
|
7
10
|
children: React.ReactNode;
|
|
8
11
|
}
|
|
9
12
|
declare const ShadeProvider: React.FC<ShadeProviderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shade-provider.d.ts","sourceRoot":"","sources":["../../src/providers/shade-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shade-provider.d.ts","sourceRoot":"","sources":["../../src/providers/shade-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAgE5E,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,+FAA+F;IAC/F,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmC/C,CAAC;eAEa,aAAa"}
|