@dodopayments/ui 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +1595 -133
- package/ai/component-registry.md +6 -1
- package/ai/components/activity-timeline.md +1 -1
- package/ai/components/alert.md +1 -1
- package/ai/components/app-top-bar.md +51 -1
- package/ai/components/auth-card.md +2 -0
- package/ai/components/badge.md +24 -0
- package/ai/components/bar-chart.md +4 -2
- package/ai/components/brand-logos.md +1 -1
- package/ai/components/button.md +110 -12
- package/ai/components/card.md +6 -3
- package/ai/components/chart-share-card.md +25 -0
- package/ai/components/chart.md +27 -1
- package/ai/components/code-block.md +1 -1
- package/ai/components/collapsible.md +3 -3
- package/ai/components/color-input.md +1 -1
- package/ai/components/command.md +4 -1
- package/ai/components/comparison-bars.md +1 -0
- package/ai/components/country-select.md +1 -0
- package/ai/components/currency-select.md +1 -0
- package/ai/components/data-grid.md +94 -3
- package/ai/components/date-picker.md +1 -1
- package/ai/components/details-panel.md +5 -3
- package/ai/components/dialog.md +5 -2
- package/ai/components/drawer.md +292 -0
- package/ai/components/empty.md +1 -1
- package/ai/components/featured-icon.md +1 -0
- package/ai/components/field.md +15 -5
- package/ai/components/file-upload.md +1 -1
- package/ai/components/icon-morph.md +1 -1
- package/ai/components/image-crop.md +89 -0
- package/ai/components/input-group.md +1 -1
- package/ai/components/input.md +72 -6
- package/ai/components/invoice-document.md +182 -0
- package/ai/components/leaderboard.md +5 -2
- package/ai/components/link.md +1 -1
- package/ai/components/list-item.md +5 -4
- package/ai/components/load-more.md +1 -1
- package/ai/components/logo.md +1 -1
- package/ai/components/menu.md +10 -9
- package/ai/components/milestone.md +1 -1
- package/ai/components/navigation-progress.md +55 -0
- package/ai/components/new-items-pill.md +1 -1
- package/ai/components/page-header.md +4 -4
- package/ai/components/payment-logos.md +1 -1
- package/ai/components/popover.md +4 -1
- package/ai/components/quantity-stepper.md +3 -3
- package/ai/components/record-header.md +5 -5
- package/ai/components/reorder-list.md +45 -0
- package/ai/components/rich-text-editor.md +2 -0
- package/ai/components/scaled-frame.md +5 -3
- package/ai/components/select.md +33 -3
- package/ai/components/settings-section.md +3 -0
- package/ai/components/setup-guide.md +1 -1
- package/ai/components/sheet.md +10 -10
- package/ai/components/sidebar.md +15 -7
- package/ai/components/stat-card.md +7 -6
- package/ai/components/tabs.md +54 -4
- package/ai/components/test-mode-banner.md +4 -1
- package/ai/components/timestamp.md +11 -2
- package/ai/components/timezone-select.md +1 -0
- package/ai/skills/dodo-design/SKILL.md +15 -6
- package/dist/components/activity-timeline/activity-timeline.d.ts +1 -1
- package/dist/components/activity-timeline/activity-timeline.js +2 -2
- package/dist/components/activity-timeline/activity-timeline.js.map +1 -1
- package/dist/components/alert/alert.d.ts +2 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/app-top-bar/app-top-bar.d.ts +27 -1
- package/dist/components/app-top-bar/app-top-bar.d.ts.map +1 -1
- package/dist/components/app-top-bar/app-top-bar.js +37 -11
- package/dist/components/app-top-bar/app-top-bar.js.map +1 -1
- package/dist/components/app-top-bar/index.d.ts +1 -1
- package/dist/components/app-top-bar/index.d.ts.map +1 -1
- package/dist/components/app-top-bar/index.js +1 -1
- package/dist/components/app-top-bar/index.js.map +1 -1
- package/dist/components/auth-card/auth-card.d.ts +13 -1
- package/dist/components/auth-card/auth-card.d.ts.map +1 -1
- package/dist/components/auth-card/auth-card.js +5 -5
- package/dist/components/auth-card/auth-card.js.map +1 -1
- package/dist/components/badge/badge-status.d.ts +3 -3
- package/dist/components/badge/badge-status.js +3 -3
- package/dist/components/badge/badge-status.js.map +1 -1
- package/dist/components/badge/badge.d.ts +12 -0
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +23 -4
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/bar-chart/bar-chart.d.ts +2 -1
- package/dist/components/bar-chart/bar-chart.d.ts.map +1 -1
- package/dist/components/bar-chart/bar-chart.js +2 -1
- package/dist/components/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/brand-logos/brand-artwork.d.ts +116 -1
- package/dist/components/brand-logos/brand-artwork.d.ts.map +1 -1
- package/dist/components/brand-logos/brand-artwork.js +116 -1
- package/dist/components/brand-logos/brand-artwork.js.map +1 -1
- package/dist/components/brand-logos/brand-logos.d.ts +5 -2
- package/dist/components/brand-logos/brand-logos.d.ts.map +1 -1
- package/dist/components/brand-logos/brand-logos.js +52 -2
- package/dist/components/brand-logos/brand-logos.js.map +1 -1
- package/dist/components/button/button-narrow-label.d.ts +11 -0
- package/dist/components/button/button-narrow-label.d.ts.map +1 -0
- package/dist/components/button/button-narrow-label.js +22 -0
- package/dist/components/button/button-narrow-label.js.map +1 -0
- package/dist/components/button/button.d.ts +41 -6
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +79 -14
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/card/card-notice.d.ts.map +1 -1
- package/dist/components/card/card-notice.js +1 -1
- package/dist/components/card/card-notice.js.map +1 -1
- package/dist/components/card/card.d.ts +16 -5
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +13 -4
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/chart-share-card/chart-share-card.d.ts +31 -0
- package/dist/components/chart-share-card/chart-share-card.d.ts.map +1 -0
- package/dist/components/chart-share-card/chart-share-card.js +15 -0
- package/dist/components/chart-share-card/chart-share-card.js.map +1 -0
- package/dist/components/chart-share-card/index.d.ts +2 -0
- package/dist/components/chart-share-card/index.d.ts.map +1 -0
- package/dist/components/chart-share-card/index.js +2 -0
- package/dist/components/chart-share-card/index.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/code-block.js +23 -4
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-block/highlight-shell.d.ts +9 -0
- package/dist/components/code-block/highlight-shell.d.ts.map +1 -0
- package/dist/components/code-block/highlight-shell.js +53 -0
- package/dist/components/code-block/highlight-shell.js.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +2 -2
- package/dist/components/collapsible/collapsible.js +4 -4
- package/dist/components/collapsible/collapsible.js.map +1 -1
- package/dist/components/command/command-palette.d.ts +15 -2
- package/dist/components/command/command-palette.d.ts.map +1 -1
- package/dist/components/command/command-palette.js +8 -5
- package/dist/components/command/command-palette.js.map +1 -1
- package/dist/components/comparison-bars/comparison-bars.d.ts +13 -2
- package/dist/components/comparison-bars/comparison-bars.d.ts.map +1 -1
- package/dist/components/comparison-bars/comparison-bars.js +3 -3
- package/dist/components/comparison-bars/comparison-bars.js.map +1 -1
- package/dist/components/country-select/country-select.d.ts +6 -1
- package/dist/components/country-select/country-select.d.ts.map +1 -1
- package/dist/components/country-select/country-select.js +2 -2
- package/dist/components/country-select/country-select.js.map +1 -1
- package/dist/components/currency-select/currency-select.d.ts +6 -1
- package/dist/components/currency-select/currency-select.d.ts.map +1 -1
- package/dist/components/currency-select/currency-select.js +2 -2
- package/dist/components/currency-select/currency-select.js.map +1 -1
- package/dist/components/data-grid/bulk-actions.js +2 -2
- package/dist/components/data-grid/bulk-actions.js.map +1 -1
- package/dist/components/data-grid/data-grid.d.ts +32 -2
- package/dist/components/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/data-grid/data-grid.js +193 -13
- package/dist/components/data-grid/data-grid.js.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +5 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +4 -4
- package/dist/components/date-picker/date-picker.js.map +1 -1
- package/dist/components/details-panel/details-panel.d.ts +11 -4
- package/dist/components/details-panel/details-panel.d.ts.map +1 -1
- package/dist/components/details-panel/details-panel.js +13 -12
- package/dist/components/details-panel/details-panel.js.map +1 -1
- package/dist/components/dialog/dialog.d.ts +12 -4
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +46 -7
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.d.ts +73 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.js +56 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +2 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/empty/empty.d.ts +3 -2
- package/dist/components/empty/empty.d.ts.map +1 -1
- package/dist/components/empty/empty.js.map +1 -1
- package/dist/components/featured-icon/featured-icon.d.ts +103 -1
- package/dist/components/featured-icon/featured-icon.d.ts.map +1 -1
- package/dist/components/featured-icon/featured-icon.js +61 -3
- package/dist/components/featured-icon/featured-icon.js.map +1 -1
- package/dist/components/featured-icon/index.d.ts +1 -1
- package/dist/components/featured-icon/index.d.ts.map +1 -1
- package/dist/components/featured-icon/index.js +1 -1
- package/dist/components/featured-icon/index.js.map +1 -1
- package/dist/components/featured-icon/sphere.d.ts +7 -0
- package/dist/components/featured-icon/sphere.d.ts.map +1 -0
- package/dist/components/featured-icon/sphere.js +29 -0
- package/dist/components/featured-icon/sphere.js.map +1 -0
- package/dist/components/field/field.d.ts +8 -6
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/field/field.js +15 -7
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.d.ts.map +1 -1
- package/dist/components/field/index.js +1 -0
- package/dist/components/field/index.js.map +1 -1
- package/dist/components/field/label.d.ts +2 -1
- package/dist/components/field/label.d.ts.map +1 -1
- package/dist/components/field/label.js +2 -1
- package/dist/components/field/label.js.map +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -1
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/icon-morph/icon-morph.d.ts +1 -1
- package/dist/components/icon-morph/icon-morph.d.ts.map +1 -1
- package/dist/components/icon-morph/icon-morph.js.map +1 -1
- package/dist/components/image-crop/crop-math.d.ts +28 -0
- package/dist/components/image-crop/crop-math.d.ts.map +1 -0
- package/dist/components/image-crop/crop-math.js +53 -0
- package/dist/components/image-crop/crop-math.js.map +1 -0
- package/dist/components/image-crop/image-crop.d.ts +31 -0
- package/dist/components/image-crop/image-crop.d.ts.map +1 -0
- package/dist/components/image-crop/image-crop.js +165 -0
- package/dist/components/image-crop/image-crop.js.map +1 -0
- package/dist/components/image-crop/index.d.ts +2 -0
- package/dist/components/image-crop/index.d.ts.map +1 -0
- package/dist/components/image-crop/index.js +2 -0
- package/dist/components/image-crop/index.js.map +1 -0
- package/dist/components/input/input-suggestions.d.ts +1 -1
- package/dist/components/input/input-suggestions.d.ts.map +1 -1
- package/dist/components/input/input-suggestions.js +21 -4
- package/dist/components/input/input-suggestions.js.map +1 -1
- package/dist/components/input/input.d.ts +27 -8
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +28 -9
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/input-group/input-group.d.ts +2 -2
- package/dist/components/input-group/input-group.d.ts.map +1 -1
- package/dist/components/input-group/input-group.js +1 -1
- package/dist/components/input-group/input-group.js.map +1 -1
- package/dist/components/invoice-document/index.d.ts +2 -0
- package/dist/components/invoice-document/index.d.ts.map +1 -0
- package/dist/components/invoice-document/index.js +2 -0
- package/dist/components/invoice-document/index.js.map +1 -0
- package/dist/components/invoice-document/invoice-document.d.ts +180 -0
- package/dist/components/invoice-document/invoice-document.d.ts.map +1 -0
- package/dist/components/invoice-document/invoice-document.js +58 -0
- package/dist/components/invoice-document/invoice-document.js.map +1 -0
- package/dist/components/leaderboard/leaderboard.d.ts +3 -1
- package/dist/components/leaderboard/leaderboard.d.ts.map +1 -1
- package/dist/components/leaderboard/leaderboard.js +7 -5
- package/dist/components/leaderboard/leaderboard.js.map +1 -1
- package/dist/components/link/link.d.ts +4 -3
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +21 -2
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/list-item/list-item.d.ts +12 -6
- package/dist/components/list-item/list-item.d.ts.map +1 -1
- package/dist/components/list-item/list-item.js +5 -5
- package/dist/components/list-item/list-item.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.js +1 -1
- package/dist/components/list-toolbar/list-toolbar-date-range.js.map +1 -1
- package/dist/components/list-toolbar/list-toolbar.js +1 -1
- package/dist/components/list-toolbar/list-toolbar.js.map +1 -1
- package/dist/components/logo/logo.d.ts +5 -1
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/logo/logo.js +7 -3
- package/dist/components/logo/logo.js.map +1 -1
- package/dist/components/menu/menu.d.ts +10 -9
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.js +5 -4
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/milestone/milestone.js +1 -1
- package/dist/components/milestone/milestone.js.map +1 -1
- package/dist/components/money/money.d.ts.map +1 -1
- package/dist/components/money/money.js +3 -3
- package/dist/components/money/money.js.map +1 -1
- package/dist/components/navigation-progress/index.d.ts +2 -0
- package/dist/components/navigation-progress/index.d.ts.map +1 -0
- package/dist/components/navigation-progress/index.js +2 -0
- package/dist/components/navigation-progress/index.js.map +1 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts +23 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts.map +1 -0
- package/dist/components/navigation-progress/navigation-progress.js +53 -0
- package/dist/components/navigation-progress/navigation-progress.js.map +1 -0
- package/dist/components/page-header/page-header.d.ts +3 -3
- package/dist/components/page-header/page-header.d.ts.map +1 -1
- package/dist/components/page-header/page-header.js +9 -13
- package/dist/components/page-header/page-header.js.map +1 -1
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +4 -2
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/payment-logos/artwork/link.d.ts +2 -0
- package/dist/components/payment-logos/artwork/link.d.ts.map +1 -0
- package/dist/components/payment-logos/artwork/link.js +5 -0
- package/dist/components/payment-logos/artwork/link.js.map +1 -0
- package/dist/components/payment-logos/payment-logos.d.ts +1 -1
- package/dist/components/payment-logos/payment-logos.d.ts.map +1 -1
- package/dist/components/payment-logos/payment-logos.js +3 -0
- package/dist/components/payment-logos/payment-logos.js.map +1 -1
- package/dist/components/popover/popover.d.ts +12 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +4 -2
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/quantity-stepper/quantity-stepper.d.ts +3 -3
- package/dist/components/quantity-stepper/quantity-stepper.js +3 -3
- package/dist/components/quantity-stepper/quantity-stepper.js.map +1 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.js +7 -5
- package/dist/components/radio-group/radio-group.js.map +1 -1
- package/dist/components/record-header/record-header.d.ts +7 -3
- package/dist/components/record-header/record-header.d.ts.map +1 -1
- package/dist/components/record-header/record-header.js +11 -3
- package/dist/components/record-header/record-header.js.map +1 -1
- package/dist/components/reorder-list/reorder-list.d.ts +11 -2
- package/dist/components/reorder-list/reorder-list.d.ts.map +1 -1
- package/dist/components/reorder-list/reorder-list.js +39 -16
- package/dist/components/reorder-list/reorder-list.js.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +13 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +17 -9
- package/dist/components/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/components/rich-text-editor/rich-text-extensions.d.ts +5 -2
- package/dist/components/rich-text-editor/rich-text-extensions.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-extensions.js +43 -5
- package/dist/components/rich-text-editor/rich-text-extensions.js.map +1 -1
- package/dist/components/rich-text-editor/rich-text-markdown.d.ts +9 -3
- package/dist/components/rich-text-editor/rich-text-markdown.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-markdown.js +134 -44
- package/dist/components/rich-text-editor/rich-text-markdown.js.map +1 -1
- package/dist/components/scaled-frame/scaled-frame.d.ts +8 -3
- package/dist/components/scaled-frame/scaled-frame.d.ts.map +1 -1
- package/dist/components/scaled-frame/scaled-frame.js +27 -2
- package/dist/components/scaled-frame/scaled-frame.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +10 -2
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.d.ts +25 -4
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +34 -14
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/settings-section/settings-section.d.ts +8 -1
- package/dist/components/settings-section/settings-section.d.ts.map +1 -1
- package/dist/components/settings-section/settings-section.js +8 -8
- package/dist/components/settings-section/settings-section.js.map +1 -1
- package/dist/components/setup-guide/setup-guide.d.ts +2 -2
- package/dist/components/setup-guide/setup-guide.js +2 -2
- package/dist/components/setup-guide/setup-guide.js.map +1 -1
- package/dist/components/sheet/sheet.d.ts +16 -5
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sheet/sheet.js +9 -5
- package/dist/components/sheet/sheet.js.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +32 -12
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.js +38 -19
- package/dist/components/sidebar/sidebar.js.map +1 -1
- package/dist/components/skeleton/page-skeleton.js +1 -1
- package/dist/components/skeleton/page-skeleton.js.map +1 -1
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +7 -7
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/stat-card/stat-card.d.ts +24 -10
- package/dist/components/stat-card/stat-card.d.ts.map +1 -1
- package/dist/components/stat-card/stat-card.js +27 -18
- package/dist/components/stat-card/stat-card.js.map +1 -1
- package/dist/components/subscription-card/subscription-card.js +1 -1
- package/dist/components/subscription-card/subscription-card.js.map +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/tabs.d.ts +47 -6
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +108 -9
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/test-mode-banner/test-mode-banner.d.ts.map +1 -1
- package/dist/components/test-mode-banner/test-mode-banner.js +3 -2
- package/dist/components/test-mode-banner/test-mode-banner.js.map +1 -1
- package/dist/components/timestamp/index.d.ts +1 -1
- package/dist/components/timestamp/index.d.ts.map +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/index.js.map +1 -1
- package/dist/components/timestamp/timestamp.d.ts +12 -2
- package/dist/components/timestamp/timestamp.d.ts.map +1 -1
- package/dist/components/timestamp/timestamp.js +11 -1
- package/dist/components/timestamp/timestamp.js.map +1 -1
- package/dist/components/timezone-select/timezone-select.d.ts +6 -1
- package/dist/components/timezone-select/timezone-select.d.ts.map +1 -1
- package/dist/components/timezone-select/timezone-select.js +2 -2
- package/dist/components/timezone-select/timezone-select.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/icons/flags/basque.d.ts.map +1 -0
- package/dist/icons/flags/basque.js.map +1 -0
- package/dist/icons/flags/canary-islands.d.ts.map +1 -0
- package/dist/icons/flags/canary-islands.js.map +1 -0
- package/dist/icons/flags/england.d.ts.map +1 -0
- package/dist/icons/flags/england.js.map +1 -0
- package/dist/icons/flags/hawaii.d.ts.map +1 -0
- package/dist/icons/flags/hawaii.js.map +1 -0
- package/dist/icons/flags/kurdistan.d.ts.map +1 -0
- package/dist/icons/flags/kurdistan.js.map +1 -0
- package/dist/icons/flags/netherlands-antilles.d.ts.map +1 -0
- package/dist/icons/flags/netherlands-antilles.js.map +1 -0
- package/dist/icons/flags/northen-ireland.d.ts.map +1 -0
- package/dist/icons/flags/northen-ireland.js.map +1 -0
- package/dist/icons/flags/scotland.d.ts.map +1 -0
- package/dist/icons/flags/scotland.js.map +1 -0
- package/dist/icons/flags/wales.d.ts.map +1 -0
- package/dist/icons/flags/wales.js.map +1 -0
- package/dist/icons/index.d.ts +21 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +21 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/ui/ai-agents.d.ts +3 -0
- package/dist/icons/ui/ai-agents.d.ts.map +1 -0
- package/dist/icons/ui/ai-agents.js +5 -0
- package/dist/icons/ui/ai-agents.js.map +1 -0
- package/dist/icons/ui/archive.d.ts.map +1 -0
- package/dist/icons/ui/archive.js.map +1 -0
- package/dist/icons/ui/arrow-door-out-3.d.ts.map +1 -0
- package/dist/icons/ui/arrow-door-out-3.js.map +1 -0
- package/dist/icons/ui/arrow-door-out.d.ts.map +1 -0
- package/dist/icons/ui/arrow-door-out.js.map +1 -0
- package/dist/icons/ui/arrow-left.d.ts.map +1 -0
- package/dist/icons/ui/arrow-left.js.map +1 -0
- package/dist/icons/ui/arrow-turn-right.d.ts +3 -0
- package/dist/icons/ui/arrow-turn-right.d.ts.map +1 -0
- package/dist/icons/ui/arrow-turn-right.js +5 -0
- package/dist/icons/ui/arrow-turn-right.js.map +1 -0
- package/dist/icons/ui/arrows-transaction.d.ts.map +1 -0
- package/dist/icons/ui/arrows-transaction.js.map +1 -0
- package/dist/icons/ui/bell-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/bell-outline-duo.js.map +1 -0
- package/dist/icons/ui/bolt.d.ts.map +1 -0
- package/dist/icons/ui/bolt.js.map +1 -0
- package/dist/icons/ui/book-open.d.ts +3 -0
- package/dist/icons/ui/book-open.d.ts.map +1 -0
- package/dist/icons/ui/book-open.js +5 -0
- package/dist/icons/ui/book-open.js.map +1 -0
- package/dist/icons/ui/box-glyph.d.ts +3 -0
- package/dist/icons/ui/box-glyph.d.ts.map +1 -0
- package/dist/icons/ui/box-glyph.js +5 -0
- package/dist/icons/ui/box-glyph.js.map +1 -0
- package/dist/icons/ui/box-plus.d.ts.map +1 -0
- package/dist/icons/ui/box-plus.js.map +1 -0
- package/dist/icons/ui/chart-pie.d.ts.map +1 -0
- package/dist/icons/ui/chart-pie.js.map +1 -0
- package/dist/icons/ui/chat-bubble-writing.d.ts +3 -0
- package/dist/icons/ui/chat-bubble-writing.d.ts.map +1 -0
- package/dist/icons/ui/chat-bubble-writing.js +5 -0
- package/dist/icons/ui/chat-bubble-writing.js.map +1 -0
- package/dist/icons/ui/check-glyph-12.d.ts.map +1 -0
- package/dist/icons/ui/check-glyph-12.js.map +1 -0
- package/dist/icons/ui/circle-check-glyph.d.ts +3 -0
- package/dist/icons/ui/circle-check-glyph.d.ts.map +1 -0
- package/dist/icons/ui/circle-check-glyph.js +5 -0
- package/dist/icons/ui/circle-check-glyph.js.map +1 -0
- package/dist/icons/ui/circle-user-check.d.ts.map +1 -0
- package/dist/icons/ui/circle-user-check.js.map +1 -0
- package/dist/icons/ui/coins.d.ts.map +1 -0
- package/dist/icons/ui/coins.js.map +1 -0
- package/dist/icons/ui/crop.d.ts +3 -0
- package/dist/icons/ui/crop.d.ts.map +1 -0
- package/dist/icons/ui/crop.js +5 -0
- package/dist/icons/ui/crop.js.map +1 -0
- package/dist/icons/ui/dots-vertical.d.ts.map +1 -0
- package/dist/icons/ui/dots-vertical.js.map +1 -0
- package/dist/icons/ui/fingerprint.d.ts.map +1 -0
- package/dist/icons/ui/fingerprint.js.map +1 -0
- package/dist/icons/ui/flask.d.ts.map +1 -0
- package/dist/icons/ui/flask.js.map +1 -0
- package/dist/icons/ui/gear.d.ts.map +1 -0
- package/dist/icons/ui/gear.js.map +1 -0
- package/dist/icons/ui/greek-temple-glyph.d.ts +3 -0
- package/dist/icons/ui/greek-temple-glyph.d.ts.map +1 -0
- package/dist/icons/ui/greek-temple-glyph.js +5 -0
- package/dist/icons/ui/greek-temple-glyph.js.map +1 -0
- package/dist/icons/ui/greek-temple.d.ts.map +1 -0
- package/dist/icons/ui/greek-temple.js.map +1 -0
- package/dist/icons/ui/grid.d.ts +3 -0
- package/dist/icons/ui/grid.d.ts.map +1 -0
- package/dist/icons/ui/grid.js +5 -0
- package/dist/icons/ui/grid.js.map +1 -0
- package/dist/icons/ui/heart-glyph.d.ts.map +1 -0
- package/dist/icons/ui/heart-glyph.js.map +1 -0
- package/dist/icons/ui/heart.d.ts.map +1 -0
- package/dist/icons/ui/heart.js.map +1 -0
- package/dist/icons/ui/hourglass-glyph.d.ts +3 -0
- package/dist/icons/ui/hourglass-glyph.d.ts.map +1 -0
- package/dist/icons/ui/hourglass-glyph.js +5 -0
- package/dist/icons/ui/hourglass-glyph.js.map +1 -0
- package/dist/icons/ui/house.d.ts.map +1 -0
- package/dist/icons/ui/house.js.map +1 -0
- package/dist/icons/ui/key.d.ts.map +1 -0
- package/dist/icons/ui/key.js.map +1 -0
- package/dist/icons/ui/lightbulb.d.ts +3 -0
- package/dist/icons/ui/lightbulb.d.ts.map +1 -0
- package/dist/icons/ui/lightbulb.js +5 -0
- package/dist/icons/ui/lightbulb.js.map +1 -0
- package/dist/icons/ui/link.d.ts +3 -0
- package/dist/icons/ui/link.d.ts.map +1 -0
- package/dist/icons/ui/link.js +5 -0
- package/dist/icons/ui/link.js.map +1 -0
- package/dist/icons/ui/media-pause.d.ts +3 -0
- package/dist/icons/ui/media-pause.d.ts.map +1 -0
- package/dist/icons/ui/media-pause.js +5 -0
- package/dist/icons/ui/media-pause.js.map +1 -0
- package/dist/icons/ui/media-play.d.ts +3 -0
- package/dist/icons/ui/media-play.d.ts.map +1 -0
- package/dist/icons/ui/media-play.js +5 -0
- package/dist/icons/ui/media-play.js.map +1 -0
- package/dist/icons/ui/money-bill.d.ts.map +1 -0
- package/dist/icons/ui/money-bill.js.map +1 -0
- package/dist/icons/ui/money-bills.d.ts.map +1 -0
- package/dist/icons/ui/money-bills.js.map +1 -0
- package/dist/icons/ui/money-refund.d.ts.map +1 -0
- package/dist/icons/ui/money-refund.js.map +1 -0
- package/dist/icons/ui/monitor.d.ts.map +1 -0
- package/dist/icons/ui/monitor.js.map +1 -0
- package/dist/icons/ui/moon.d.ts.map +1 -0
- package/dist/icons/ui/moon.js.map +1 -0
- package/dist/icons/ui/paper-plane.d.ts +3 -0
- package/dist/icons/ui/paper-plane.d.ts.map +1 -0
- package/dist/icons/ui/paper-plane.js +5 -0
- package/dist/icons/ui/paper-plane.js.map +1 -0
- package/dist/icons/ui/pencil.d.ts.map +1 -0
- package/dist/icons/ui/pencil.js.map +1 -0
- package/dist/icons/ui/print.d.ts +3 -0
- package/dist/icons/ui/print.d.ts.map +1 -0
- package/dist/icons/ui/print.js +5 -0
- package/dist/icons/ui/print.js.map +1 -0
- package/dist/icons/ui/refresh-clockwise.d.ts.map +1 -0
- package/dist/icons/ui/refresh-clockwise.js.map +1 -0
- package/dist/icons/ui/report.d.ts.map +1 -0
- package/dist/icons/ui/report.js.map +1 -0
- package/dist/icons/ui/shield-check.d.ts.map +1 -0
- package/dist/icons/ui/shield-check.js.map +1 -0
- package/dist/icons/ui/shop-glyph.d.ts +3 -0
- package/dist/icons/ui/shop-glyph.d.ts.map +1 -0
- package/dist/icons/ui/shop-glyph.js +5 -0
- package/dist/icons/ui/shop-glyph.js.map +1 -0
- package/dist/icons/ui/sliders.d.ts.map +1 -0
- package/dist/icons/ui/sliders.js.map +1 -0
- package/dist/icons/ui/star-glyph-duo.d.ts.map +1 -0
- package/dist/icons/ui/star-glyph-duo.js.map +1 -0
- package/dist/icons/ui/star-glyph.d.ts.map +1 -0
- package/dist/icons/ui/star-glyph.js.map +1 -0
- package/dist/icons/ui/star-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/star-outline-duo.js.map +1 -0
- package/dist/icons/ui/star.d.ts.map +1 -0
- package/dist/icons/ui/star.js.map +1 -0
- package/dist/icons/ui/sun.d.ts.map +1 -0
- package/dist/icons/ui/sun.js.map +1 -0
- package/dist/icons/ui/terminal.d.ts.map +1 -0
- package/dist/icons/ui/terminal.js.map +1 -0
- package/dist/icons/ui/text-align-center.d.ts.map +1 -0
- package/dist/icons/ui/text-align-center.js.map +1 -0
- package/dist/icons/ui/text-align-left.d.ts.map +1 -0
- package/dist/icons/ui/text-align-left.js.map +1 -0
- package/dist/icons/ui/text-align-right.d.ts.map +1 -0
- package/dist/icons/ui/text-align-right.js.map +1 -0
- package/dist/icons/ui/ticket.d.ts.map +1 -0
- package/dist/icons/ui/ticket.js.map +1 -0
- package/dist/icons/ui/trash-2.d.ts.map +1 -0
- package/dist/icons/ui/trash-2.js.map +1 -0
- package/dist/icons/ui/triangle-warning-glyph.d.ts +3 -0
- package/dist/icons/ui/triangle-warning-glyph.d.ts.map +1 -0
- package/dist/icons/ui/triangle-warning-glyph.js +5 -0
- package/dist/icons/ui/triangle-warning-glyph.js.map +1 -0
- package/dist/icons/ui/user-glyph.d.ts +3 -0
- package/dist/icons/ui/user-glyph.d.ts.map +1 -0
- package/dist/icons/ui/user-glyph.js +5 -0
- package/dist/icons/ui/user-glyph.js.map +1 -0
- package/dist/icons/ui/user-plus.d.ts +3 -0
- package/dist/icons/ui/user-plus.d.ts.map +1 -0
- package/dist/icons/ui/user-plus.js +5 -0
- package/dist/icons/ui/user-plus.js.map +1 -0
- package/dist/icons/ui/users.d.ts.map +1 -0
- package/dist/icons/ui/users.js.map +1 -0
- package/dist/icons/ui/wallet-outline-duo.d.ts.map +1 -0
- package/dist/icons/ui/wallet-outline-duo.js.map +1 -0
- package/dist/icons/ui/wallet.d.ts.map +1 -0
- package/dist/icons/ui/wallet.js.map +1 -0
- package/dist/icons/ui/wand-sparkle.d.ts.map +1 -0
- package/dist/icons/ui/wand-sparkle.js.map +1 -0
- package/dist/icons/ui/wifi-off.d.ts +3 -0
- package/dist/icons/ui/wifi-off.d.ts.map +1 -0
- package/dist/icons/ui/wifi-off.js +5 -0
- package/dist/icons/ui/wifi-off.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/locale-messages.d.ts +8 -0
- package/dist/lib/locale-messages.d.ts.map +1 -1
- package/dist/lib/locale-messages.js +9 -0
- package/dist/lib/locale-messages.js.map +1 -1
- package/dist/locales/ar.d.ts.map +1 -1
- package/dist/locales/ar.js +6 -0
- package/dist/locales/ar.js.map +1 -1
- package/dist/locales/de.d.ts.map +1 -1
- package/dist/locales/de.js +6 -0
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/es.d.ts.map +1 -1
- package/dist/locales/es.js +6 -0
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/fr.d.ts.map +1 -1
- package/dist/locales/fr.js +6 -0
- package/dist/locales/fr.js.map +1 -1
- package/dist/locales/he.d.ts.map +1 -1
- package/dist/locales/he.js +6 -0
- package/dist/locales/he.js.map +1 -1
- package/dist/locales/hi.d.ts.map +1 -1
- package/dist/locales/hi.js +6 -0
- package/dist/locales/hi.js.map +1 -1
- package/dist/locales/ja.d.ts.map +1 -1
- package/dist/locales/ja.js +6 -0
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/pt-BR.d.ts.map +1 -1
- package/dist/locales/pt-BR.js +6 -0
- package/dist/locales/pt-BR.js.map +1 -1
- package/dist/locales/zh-CN.d.ts.map +1 -1
- package/dist/locales/zh-CN.js +6 -0
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/primitives/charts/bar-chart.d.ts.map +1 -1
- package/dist/primitives/charts/bar-chart.js +33 -3
- package/dist/primitives/charts/bar-chart.js.map +1 -1
- package/dist/primitives/charts/gauge.js +1 -1
- package/dist/primitives/charts/line.d.ts.map +1 -1
- package/dist/primitives/charts/line.js +14 -11
- package/dist/primitives/charts/line.js.map +1 -1
- package/dist/primitives/charts/x-axis.d.ts +12 -1
- package/dist/primitives/charts/x-axis.d.ts.map +1 -1
- package/dist/primitives/charts/x-axis.js +96 -20
- package/dist/primitives/charts/x-axis.js.map +1 -1
- package/dist/primitives/charts/y-axis-scales.d.ts +3 -1
- package/dist/primitives/charts/y-axis-scales.d.ts.map +1 -1
- package/dist/primitives/charts/y-axis-scales.js +2 -2
- package/dist/primitives/charts/y-axis-scales.js.map +1 -1
- package/dist/primitives/charts/y-axis.d.ts +5 -0
- package/dist/primitives/charts/y-axis.d.ts.map +1 -1
- package/dist/primitives/charts/y-axis.js +6 -2
- package/dist/primitives/charts/y-axis.js.map +1 -1
- package/dist/primitives/hooks/use-media-query.d.ts +1 -1
- package/dist/primitives/hooks/use-media-query.js +1 -1
- package/dist/primitives/lib/mobile-sheet.d.ts +25 -0
- package/dist/primitives/lib/mobile-sheet.d.ts.map +1 -0
- package/dist/primitives/lib/mobile-sheet.js +28 -0
- package/dist/primitives/lib/mobile-sheet.js.map +1 -0
- package/dist/primitives/lib/segmented-control.d.ts +8 -2
- package/dist/primitives/lib/segmented-control.d.ts.map +1 -1
- package/dist/primitives/lib/segmented-control.js +8 -2
- package/dist/primitives/lib/segmented-control.js.map +1 -1
- package/dist/primitives/ui/button.d.ts +1 -1
- package/dist/primitives/ui/button.d.ts.map +1 -1
- package/dist/primitives/ui/button.js +7 -3
- package/dist/primitives/ui/button.js.map +1 -1
- package/dist/primitives/ui/calendar.d.ts.map +1 -1
- package/dist/primitives/ui/calendar.js +4 -2
- package/dist/primitives/ui/calendar.js.map +1 -1
- package/dist/primitives/ui/card.d.ts.map +1 -1
- package/dist/primitives/ui/card.js +9 -7
- package/dist/primitives/ui/card.js.map +1 -1
- package/dist/primitives/ui/checkbox.d.ts.map +1 -1
- package/dist/primitives/ui/checkbox.js +3 -1
- package/dist/primitives/ui/checkbox.js.map +1 -1
- package/dist/primitives/ui/combobox.js +2 -2
- package/dist/primitives/ui/combobox.js.map +1 -1
- package/dist/primitives/ui/dialog.d.ts +10 -1
- package/dist/primitives/ui/dialog.d.ts.map +1 -1
- package/dist/primitives/ui/dialog.js +14 -3
- package/dist/primitives/ui/dialog.js.map +1 -1
- package/dist/primitives/ui/drawer.d.ts +1 -2
- package/dist/primitives/ui/drawer.d.ts.map +1 -1
- package/dist/primitives/ui/drawer.js +30 -14
- package/dist/primitives/ui/drawer.js.map +1 -1
- package/dist/primitives/ui/input-group.d.ts.map +1 -1
- package/dist/primitives/ui/input-group.js +4 -1
- package/dist/primitives/ui/input-group.js.map +1 -1
- package/dist/primitives/ui/input.js +2 -2
- package/dist/primitives/ui/input.js.map +1 -1
- package/dist/primitives/ui/menu.d.ts.map +1 -1
- package/dist/primitives/ui/menu.js +15 -16
- package/dist/primitives/ui/menu.js.map +1 -1
- package/dist/primitives/ui/number-field.js +1 -1
- package/dist/primitives/ui/number-field.js.map +1 -1
- package/dist/primitives/ui/otp-field.js +2 -2
- package/dist/primitives/ui/otp-field.js.map +1 -1
- package/dist/primitives/ui/popover.d.ts +3 -1
- package/dist/primitives/ui/popover.d.ts.map +1 -1
- package/dist/primitives/ui/popover.js +11 -5
- package/dist/primitives/ui/popover.js.map +1 -1
- package/dist/primitives/ui/radio-group.js +1 -1
- package/dist/primitives/ui/radio-group.js.map +1 -1
- package/dist/primitives/ui/select.d.ts +7 -3
- package/dist/primitives/ui/select.d.ts.map +1 -1
- package/dist/primitives/ui/select.js +16 -7
- package/dist/primitives/ui/select.js.map +1 -1
- package/dist/primitives/ui/sheet.d.ts.map +1 -1
- package/dist/primitives/ui/sheet.js +4 -3
- package/dist/primitives/ui/sheet.js.map +1 -1
- package/dist/primitives/ui/sidebar.js +1 -1
- package/dist/primitives/ui/switch.d.ts +2 -2
- package/dist/primitives/ui/switch.d.ts.map +1 -1
- package/dist/primitives/ui/switch.js +2 -2
- package/dist/primitives/ui/switch.js.map +1 -1
- package/dist/primitives/ui/tabs.d.ts.map +1 -1
- package/dist/primitives/ui/tabs.js +1 -1
- package/dist/primitives/ui/tabs.js.map +1 -1
- package/dist/primitives/ui/textarea.js +2 -2
- package/dist/primitives/ui/textarea.js.map +1 -1
- package/dist/styles/motion.test.tsx +15 -0
- package/dist/styles/theme.css +5 -1
- package/dist/styles/tokens.css +72 -39
- package/dist/styles/tokens.test.tsx +137 -7
- package/dist/theme/css.js +4 -4
- package/dist/theme/css.js.map +1 -1
- package/package.json +1 -1
|
@@ -56,6 +56,102 @@ export declare const DODO_FEATURED_ICON_DEFAULT_VARIANTS: {
|
|
|
56
56
|
readonly tone: "neutral";
|
|
57
57
|
readonly size: "md";
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* The sphere look: the dashboard's glossy verification badge, a round disc of the tone with a white gloss and a white
|
|
61
|
+
* inner ring, a white icon on it. For the status of a step in a checklist and the outcome of a whole process.
|
|
62
|
+
*/
|
|
63
|
+
export declare const DODO_FEATURED_ICON_SPHERE_VARIANTS: {
|
|
64
|
+
readonly tone: {
|
|
65
|
+
readonly neutral: {
|
|
66
|
+
readonly description: "Not started, or nothing to report.";
|
|
67
|
+
readonly classes: "[--sphere-top:var(--sphere-neutral-top)] [--sphere-bottom:var(--sphere-neutral-bottom)]";
|
|
68
|
+
};
|
|
69
|
+
readonly success: {
|
|
70
|
+
readonly description: "Approved or verified.";
|
|
71
|
+
readonly classes: "[--sphere-top:var(--sphere-success-top)] [--sphere-bottom:var(--sphere-success-bottom)]";
|
|
72
|
+
};
|
|
73
|
+
readonly warning: {
|
|
74
|
+
readonly description: "Needs the merchant's action.";
|
|
75
|
+
readonly classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]";
|
|
76
|
+
};
|
|
77
|
+
readonly error: {
|
|
78
|
+
readonly description: "On hold or failed.";
|
|
79
|
+
readonly classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]";
|
|
80
|
+
};
|
|
81
|
+
readonly info: {
|
|
82
|
+
readonly description: "Sent, or under review.";
|
|
83
|
+
readonly classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]";
|
|
84
|
+
};
|
|
85
|
+
readonly orange: {
|
|
86
|
+
readonly description: "Drawn as warning.";
|
|
87
|
+
readonly classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]";
|
|
88
|
+
};
|
|
89
|
+
readonly pink: {
|
|
90
|
+
readonly description: "Drawn as error.";
|
|
91
|
+
readonly classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]";
|
|
92
|
+
};
|
|
93
|
+
readonly violet: {
|
|
94
|
+
readonly description: "Drawn as info.";
|
|
95
|
+
readonly classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly size: {
|
|
99
|
+
readonly md: {
|
|
100
|
+
readonly description: "44px sphere with a 17px icon, for a checklist row or an outcome card.";
|
|
101
|
+
readonly classes: "size-11 [&>svg:not([data-slot=featured-icon-sphere])]:size-4";
|
|
102
|
+
};
|
|
103
|
+
readonly sm: {
|
|
104
|
+
readonly description: "28px sphere with a 12px icon.";
|
|
105
|
+
readonly classes: "size-7 [&>svg:not([data-slot=featured-icon-sphere])]:size-3";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare const featuredIconSphereVariants: import("../../index.ts").VariantFn<{
|
|
110
|
+
readonly tone: {
|
|
111
|
+
readonly neutral: {
|
|
112
|
+
readonly description: "Not started, or nothing to report.";
|
|
113
|
+
readonly classes: "[--sphere-top:var(--sphere-neutral-top)] [--sphere-bottom:var(--sphere-neutral-bottom)]";
|
|
114
|
+
};
|
|
115
|
+
readonly success: {
|
|
116
|
+
readonly description: "Approved or verified.";
|
|
117
|
+
readonly classes: "[--sphere-top:var(--sphere-success-top)] [--sphere-bottom:var(--sphere-success-bottom)]";
|
|
118
|
+
};
|
|
119
|
+
readonly warning: {
|
|
120
|
+
readonly description: "Needs the merchant's action.";
|
|
121
|
+
readonly classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]";
|
|
122
|
+
};
|
|
123
|
+
readonly error: {
|
|
124
|
+
readonly description: "On hold or failed.";
|
|
125
|
+
readonly classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]";
|
|
126
|
+
};
|
|
127
|
+
readonly info: {
|
|
128
|
+
readonly description: "Sent, or under review.";
|
|
129
|
+
readonly classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]";
|
|
130
|
+
};
|
|
131
|
+
readonly orange: {
|
|
132
|
+
readonly description: "Drawn as warning.";
|
|
133
|
+
readonly classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]";
|
|
134
|
+
};
|
|
135
|
+
readonly pink: {
|
|
136
|
+
readonly description: "Drawn as error.";
|
|
137
|
+
readonly classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]";
|
|
138
|
+
};
|
|
139
|
+
readonly violet: {
|
|
140
|
+
readonly description: "Drawn as info.";
|
|
141
|
+
readonly classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly size: {
|
|
145
|
+
readonly md: {
|
|
146
|
+
readonly description: "44px sphere with a 17px icon, for a checklist row or an outcome card.";
|
|
147
|
+
readonly classes: "size-11 [&>svg:not([data-slot=featured-icon-sphere])]:size-4";
|
|
148
|
+
};
|
|
149
|
+
readonly sm: {
|
|
150
|
+
readonly description: "28px sphere with a 12px icon.";
|
|
151
|
+
readonly classes: "size-7 [&>svg:not([data-slot=featured-icon-sphere])]:size-3";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
}>;
|
|
59
155
|
/**
|
|
60
156
|
* Classes for a featured icon tile: 32px (`md`, Radius/Medium, 16px icon) or 20px (`sm`, 6px radius, 12px icon), a
|
|
61
157
|
* 1px border, and a second, lighter line just inside it (`border-highlight`) so the tile reads as two borders, like
|
|
@@ -110,11 +206,17 @@ export declare const featuredIconVariants: import("../../index.ts").VariantFn<{
|
|
|
110
206
|
export interface FeaturedIconProps extends Omit<React.ComponentProps<"span">, "children">, VariantSelection<typeof DODO_FEATURED_ICON_VARIANTS> {
|
|
111
207
|
/** The icon in the tile, a Nucleo icon (16px at `md`, 12px at `sm`): `<FeaturedIcon icon={<KeyIcon />} />`. */
|
|
112
208
|
icon: React.ReactNode;
|
|
209
|
+
/**
|
|
210
|
+
* `tile`: The rounded square with a soft fill and two borders (the default).
|
|
211
|
+
* `sphere`: The dashboard's glossy round badge in the tone, a white icon on it (44px at `md`, 28px at `sm`), as the
|
|
212
|
+
* verification checklist shows each step.
|
|
213
|
+
*/
|
|
214
|
+
look?: "tile" | "sphere";
|
|
113
215
|
}
|
|
114
216
|
/**
|
|
115
217
|
* A 32px (or 20px at `size="sm"`) tile that shows what a card, dialog or empty state is about, in eight tones. Not interactive, and
|
|
116
218
|
* decorative by default (`aria-hidden`): the title next to it says what it is. To give the tile a name of its own,
|
|
117
219
|
* pass `role="img"`, `aria-label` and `aria-hidden={false}`.
|
|
118
220
|
*/
|
|
119
|
-
export declare function FeaturedIcon({ className, tone, size, icon, ...props }: FeaturedIconProps): React.JSX.Element;
|
|
221
|
+
export declare function FeaturedIcon({ className, tone, size, icon, look, ...props }: FeaturedIconProps): React.JSX.Element;
|
|
120
222
|
//# sourceMappingURL=featured-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-icon.d.ts","sourceRoot":"","sources":["../../../src/components/featured-icon/featured-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"featured-icon.d.ts","sourceRoot":"","sources":["../../../src/components/featured-icon/featured-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9E;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C9B,CAAC;AAEX,eAAO,MAAM,mCAAmC;;;CAA2C,CAAC;AAE5F;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrC,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EACpD,gBAAgB,CAAC,OAAO,2BAA2B,CAAC;IACtD,+GAA+G;IAC/G,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAa,EACb,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAoBnB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../lib/cn.js";
|
|
3
3
|
import { createVariants } from "../../lib/variants.js";
|
|
4
|
+
import { Sphere } from "./sphere.js";
|
|
4
5
|
/**
|
|
5
6
|
* The eight tones of the featured icon, the same as `Badge`: a soft fill, a 1px border and the icon colour of that
|
|
6
7
|
* tone, in light and dark mode. Neutral is for settings link cards, empty states and invite or refund dialogs;
|
|
@@ -54,6 +55,61 @@ export const DODO_FEATURED_ICON_VARIANTS = {
|
|
|
54
55
|
},
|
|
55
56
|
};
|
|
56
57
|
export const DODO_FEATURED_ICON_DEFAULT_VARIANTS = { tone: "neutral", size: "md" };
|
|
58
|
+
/**
|
|
59
|
+
* The sphere look: the dashboard's glossy verification badge, a round disc of the tone with a white gloss and a white
|
|
60
|
+
* inner ring, a white icon on it. For the status of a step in a checklist and the outcome of a whole process.
|
|
61
|
+
*/
|
|
62
|
+
export const DODO_FEATURED_ICON_SPHERE_VARIANTS = {
|
|
63
|
+
tone: {
|
|
64
|
+
neutral: {
|
|
65
|
+
description: "Not started, or nothing to report.",
|
|
66
|
+
classes: "[--sphere-top:var(--sphere-neutral-top)] [--sphere-bottom:var(--sphere-neutral-bottom)]",
|
|
67
|
+
},
|
|
68
|
+
success: {
|
|
69
|
+
description: "Approved or verified.",
|
|
70
|
+
classes: "[--sphere-top:var(--sphere-success-top)] [--sphere-bottom:var(--sphere-success-bottom)]",
|
|
71
|
+
},
|
|
72
|
+
warning: {
|
|
73
|
+
description: "Needs the merchant's action.",
|
|
74
|
+
classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]",
|
|
75
|
+
},
|
|
76
|
+
error: {
|
|
77
|
+
description: "On hold or failed.",
|
|
78
|
+
classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]",
|
|
79
|
+
},
|
|
80
|
+
info: {
|
|
81
|
+
description: "Sent, or under review.",
|
|
82
|
+
classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]",
|
|
83
|
+
},
|
|
84
|
+
orange: {
|
|
85
|
+
description: "Drawn as warning.",
|
|
86
|
+
classes: "[--sphere-top:var(--sphere-warning-top)] [--sphere-bottom:var(--sphere-warning-bottom)]",
|
|
87
|
+
},
|
|
88
|
+
pink: {
|
|
89
|
+
description: "Drawn as error.",
|
|
90
|
+
classes: "[--sphere-top:var(--sphere-error-top)] [--sphere-bottom:var(--sphere-error-bottom)]",
|
|
91
|
+
},
|
|
92
|
+
violet: {
|
|
93
|
+
description: "Drawn as info.",
|
|
94
|
+
classes: "[--sphere-top:var(--sphere-info-top)] [--sphere-bottom:var(--sphere-info-bottom)]",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
size: {
|
|
98
|
+
md: {
|
|
99
|
+
description: "44px sphere with a 17px icon, for a checklist row or an outcome card.",
|
|
100
|
+
classes: "size-11 [&>svg:not([data-slot=featured-icon-sphere])]:size-4",
|
|
101
|
+
},
|
|
102
|
+
sm: {
|
|
103
|
+
description: "28px sphere with a 12px icon.",
|
|
104
|
+
classes: "size-7 [&>svg:not([data-slot=featured-icon-sphere])]:size-3",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
export const featuredIconSphereVariants = createVariants({
|
|
109
|
+
base: "relative inline-flex shrink-0 items-center justify-center text-white [&>svg:not([data-slot=featured-icon-sphere])]:relative [&>svg:not([data-slot=featured-icon-sphere])]:shrink-0",
|
|
110
|
+
variants: DODO_FEATURED_ICON_SPHERE_VARIANTS,
|
|
111
|
+
defaultVariants: DODO_FEATURED_ICON_DEFAULT_VARIANTS,
|
|
112
|
+
});
|
|
57
113
|
/**
|
|
58
114
|
* Classes for a featured icon tile: 32px (`md`, Radius/Medium, 16px icon) or 20px (`sm`, 6px radius, 12px icon), a
|
|
59
115
|
* 1px border, and a second, lighter line just inside it (`border-highlight`) so the tile reads as two borders, like
|
|
@@ -69,7 +125,9 @@ export const featuredIconVariants = createVariants({
|
|
|
69
125
|
* decorative by default (`aria-hidden`): the title next to it says what it is. To give the tile a name of its own,
|
|
70
126
|
* pass `role="img"`, `aria-label` and `aria-hidden={false}`.
|
|
71
127
|
*/
|
|
72
|
-
export function FeaturedIcon({ className, tone, size, icon, ...props }) {
|
|
73
|
-
return (
|
|
128
|
+
export function FeaturedIcon({ className, tone, size, icon, look = "tile", ...props }) {
|
|
129
|
+
return (_jsxs("span", { "aria-hidden": "true", "data-slot": "featured-icon", "data-look": look, "data-tone": tone ?? DODO_FEATURED_ICON_DEFAULT_VARIANTS.tone, "data-size": size ?? DODO_FEATURED_ICON_DEFAULT_VARIANTS.size, className: cn(look === "sphere"
|
|
130
|
+
? featuredIconSphereVariants({ tone, size })
|
|
131
|
+
: featuredIconVariants({ tone, size }), className), ...props, children: [look === "sphere" ? _jsx(Sphere, {}) : null, icon] }));
|
|
74
132
|
}
|
|
75
133
|
//# sourceMappingURL=featured-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-icon.js","sourceRoot":"","sources":["../../../src/components/featured-icon/featured-icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"featured-icon.js","sourceRoot":"","sources":["../../../src/components/featured-icon/featured-icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CA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AQ;YACf,CAAC,CAAC,0BAA0B,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAC5C,CAAC,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACxC,SAAS,CACV,KACG,KAAK,aAER,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,MAAM,KAAG,CAAC,CAAC,CAAC,IAAI,EACrC,IAAI,IACA,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DODO_FEATURED_ICON_DEFAULT_VARIANTS, DODO_FEATURED_ICON_VARIANTS, FeaturedIcon, type FeaturedIconProps, featuredIconVariants, } from "./featured-icon.tsx";
|
|
1
|
+
export { DODO_FEATURED_ICON_DEFAULT_VARIANTS, DODO_FEATURED_ICON_SPHERE_VARIANTS, DODO_FEATURED_ICON_VARIANTS, FeaturedIcon, type FeaturedIconProps, featuredIconSphereVariants, featuredIconVariants, } from "./featured-icon.tsx";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/featured-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,YAAY,EACZ,KAAK,iBAAiB,EACtB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/featured-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,kCAAkC,EAClC,2BAA2B,EAC3B,YAAY,EACZ,KAAK,iBAAiB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DODO_FEATURED_ICON_DEFAULT_VARIANTS, DODO_FEATURED_ICON_VARIANTS, FeaturedIcon, featuredIconVariants, } from "./featured-icon.js";
|
|
1
|
+
export { DODO_FEATURED_ICON_DEFAULT_VARIANTS, DODO_FEATURED_ICON_SPHERE_VARIANTS, DODO_FEATURED_ICON_VARIANTS, FeaturedIcon, featuredIconSphereVariants, featuredIconVariants, } from "./featured-icon.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/featured-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,YAAY,EAEZ,oBAAoB,GACrB,MAAM,oBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/featured-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,kCAAkC,EAClC,2BAA2B,EAC3B,YAAY,EAEZ,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,oBAAqB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dashboard's verification sphere (`IconCircleBase`), as drawn: a disc in the tone from `--sphere-top` to
|
|
3
|
+
* `--sphere-bottom`, darkened and glossed, inside a raised ring with a white rim. The tone class on the parent sets
|
|
4
|
+
* the two colours.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Sphere(): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=sphere.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sphere.d.ts","sourceRoot":"","sources":["../../../src/components/featured-icon/sphere.tsx"],"names":[],"mappings":"AAyDA;;;;GAIG;AACH,wBAAgB,MAAM,gCA4HrB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable dodo/no-raw-color-literal -- the sphere is illustration (the dashboard's IconCircleBase), kept as drawn; only its fill follows the tone tokens. */
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
/** The ring between the gloss and the rim, cut out of the disc. */
|
|
6
|
+
const RING = "M69.2754 36C69.2754 54.2254 54.5008 69 36.2754 69C18.05 69 3.27539 54.2254 3.27539 36C3.27539 17.7746 18.05 3 36.2754 3C54.5008 3 69.2754 17.7746 69.2754 36ZM72.2754 36C72.2754 55.8823 56.1576 72 36.2754 72C16.3931 72 0.275391 55.8823 0.275391 36C0.275391 16.1177 16.3931 0 36.2754 0C56.1576 0 72.2754 16.1177 72.2754 36ZM36.2757 63.3749C51.3945 63.3749 63.6507 51.1187 63.6507 35.9999C63.6507 20.8811 51.3945 8.62486 36.2757 8.62486C21.1569 8.62486 8.90068 20.8811 8.90068 35.9999C8.90068 51.1187 21.1569 63.3749 36.2757 63.3749Z";
|
|
7
|
+
/** The rim's hairline, drawn along both edges of the ring. */
|
|
8
|
+
const RIM = "M36.2754 69.1875C54.6043 69.1875 69.4629 54.3289 69.4629 36H69.0879C69.0879 54.1218 54.3972 68.8125 36.2754 68.8125V69.1875ZM3.08789 36C3.08789 54.3289 17.9464 69.1875 36.2754 69.1875V68.8125C18.1535 68.8125 3.46289 54.1218 3.46289 36H3.08789ZM36.2754 2.8125C17.9464 2.8125 3.08789 17.671 3.08789 36H3.46289C3.46289 17.8782 18.1535 3.1875 36.2754 3.1875V2.8125ZM69.4629 36C69.4629 17.671 54.6043 2.8125 36.2754 2.8125V3.1875C54.3972 3.1875 69.0879 17.8782 69.0879 36H69.4629ZM36.2754 72.1875C56.2612 72.1875 72.4629 55.9858 72.4629 36H72.0879C72.0879 55.7787 56.0541 71.8125 36.2754 71.8125V72.1875ZM0.0878906 36C0.0878906 55.9858 16.2896 72.1875 36.2754 72.1875V71.8125C16.4967 71.8125 0.462891 55.7787 0.462891 36H0.0878906ZM36.2754 -0.1875C16.2896 -0.1875 0.0878906 16.0142 0.0878906 36H0.462891C0.462891 16.2213 16.4967 0.1875 36.2754 0.1875V-0.1875ZM72.4629 36C72.4629 16.0142 56.2612 -0.1875 36.2754 -0.1875V0.1875C56.0541 0.1875 72.0879 16.2213 72.0879 36H72.4629ZM63.4632 35.9999C63.4632 51.0151 51.2909 63.1874 36.2757 63.1874V63.5624C51.498 63.5624 63.8382 51.2222 63.8382 35.9999H63.4632ZM36.2757 8.81236C51.2909 8.81236 63.4632 20.9846 63.4632 35.9999H63.8382C63.8382 20.7775 51.498 8.43736 36.2757 8.43736V8.81236ZM9.08818 35.9999C9.08818 20.9846 21.2604 8.81236 36.2757 8.81236V8.43736C21.0533 8.43736 8.71318 20.7775 8.71318 35.9999H9.08818ZM36.2757 63.1874C21.2604 63.1874 9.08818 51.0151 9.08818 35.9999H8.71318C8.71318 51.2222 21.0533 63.5624 36.2757 63.5624V63.1874Z";
|
|
9
|
+
/** The square every fill layer covers, larger than the disc so its gradients start off it. */
|
|
10
|
+
const LAYER = { height: "105", width: "105", x: "-16.2246", y: "-16.5" };
|
|
11
|
+
/** The tone's fill plus the two white washes, shared by the disc and the ring. */
|
|
12
|
+
function Shade({ fill, linear, radial }) {
|
|
13
|
+
return (_jsxs(_Fragment, { children: [_jsx("rect", { ...LAYER, fill: `url(#${fill})` }), _jsx("rect", { ...LAYER, className: "mix-blend-overlay", fill: `url(#${linear})`, fillOpacity: "0.6" }), _jsx("rect", { ...LAYER, className: "mix-blend-overlay", fill: `url(#${radial})`, fillOpacity: "0.6" })] }));
|
|
14
|
+
}
|
|
15
|
+
/** A white wash, top to bottom, and a white glow centred above the middle. */
|
|
16
|
+
function Washes({ linear, radial }) {
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: linear, x1: "36.2754", x2: "36.2754", y1: "-4.60184", y2: "76.0575", children: [_jsx("stop", { stopColor: "white" }), _jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })] }), _jsxs("radialGradient", { cx: "0", cy: "0", gradientTransform: "translate(36.2754 18.5663) rotate(90) scale(53.2008 40.3645)", gradientUnits: "userSpaceOnUse", id: radial, r: "1", children: [_jsx("stop", { stopColor: "white" }), _jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })] })] }));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The dashboard's verification sphere (`IconCircleBase`), as drawn: a disc in the tone from `--sphere-top` to
|
|
21
|
+
* `--sphere-bottom`, darkened and glossed, inside a raised ring with a white rim. The tone class on the parent sets
|
|
22
|
+
* the two colours.
|
|
23
|
+
*/
|
|
24
|
+
export function Sphere() {
|
|
25
|
+
const id = useId();
|
|
26
|
+
const ref = (name) => `${id}-${name}`;
|
|
27
|
+
return (_jsxs("svg", { "aria-hidden": "true", className: "absolute inset-0 size-full", "data-slot": "featured-icon-sphere", fill: "none", viewBox: "0 0 73 72", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("mask", { className: "[mask-type:alpha]", height: "72", id: ref("disc"), maskUnits: "userSpaceOnUse", width: "73", x: "0", y: "0", children: _jsx("circle", { cx: "36.2754", cy: "36", fill: "white", r: "36" }) }), _jsxs("g", { mask: `url(#${ref("disc")})`, children: [_jsx(Shade, { fill: ref("fill"), linear: ref("wash"), radial: ref("glow") }), _jsx("rect", { ...LAYER, className: "mix-blend-overlay", fill: "black", fillOpacity: "0.16" }), _jsx("rect", { ...LAYER, className: "mix-blend-darken", fill: "black", fillOpacity: "0.12" }), _jsxs("g", { filter: `url(#${ref("shadow")})`, children: [_jsx("mask", { className: "[mask-type:alpha]", height: "72", id: ref("ring"), maskUnits: "userSpaceOnUse", width: "73", x: "0", y: "0", children: _jsx("path", { clipRule: "evenodd", d: RING, fill: "white", fillRule: "evenodd" }) }), _jsxs("g", { mask: `url(#${ref("ring")})`, children: [_jsx(Shade, { fill: ref("ring-fill"), linear: ref("ring-wash"), radial: ref("ring-glow") }), _jsx("g", { className: "mix-blend-soft-light", children: _jsx("path", { className: "mix-blend-lighten", clipRule: "evenodd", d: "M-16.2246 -16.5H46.7754L26.669 88.5H-16.2246V-16.5Z", fill: `url(#${ref("sheen")})`, fillRule: "evenodd" }) }), _jsxs("g", { className: "mix-blend-soft-light", children: [_jsx("mask", { fill: "white", id: ref("rim-cut"), children: _jsx("path", { clipRule: "evenodd", d: RING, fillRule: "evenodd" }) }), _jsx("path", { d: RIM, fill: `url(#${ref("rim")})`, mask: `url(#${ref("rim-cut")})` })] })] })] })] }), _jsxs("defs", { children: [_jsxs("filter", { colorInterpolationFilters: "sRGB", filterUnits: "userSpaceOnUse", height: "78", id: ref("shadow"), width: "78", x: "-2.72461", y: "-2.25", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", result: "hardAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), _jsx("feOffset", { dy: "0.75" }), _jsx("feGaussianBlur", { stdDeviation: "1.5" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" }), _jsx("feBlend", { in2: "BackgroundImageFix", mode: "color-burn", result: "drop" }), _jsx("feBlend", { in: "SourceGraphic", in2: "drop", mode: "normal", result: "shape" })] }), [ref("fill"), ref("ring-fill")].map((fill) => (_jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: fill, x1: "-16.2246", x2: "-16.2246", y1: "-16.5", y2: "88.5", children: [_jsx("stop", { className: "[stop-color:var(--sphere-top)]" }), _jsx("stop", { className: "[stop-color:var(--sphere-bottom)]", offset: "1" })] }, fill))), _jsx(Washes, { linear: ref("wash"), radial: ref("glow") }), _jsx(Washes, { linear: ref("ring-wash"), radial: ref("ring-glow") }), _jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: ref("sheen"), x1: "-16.2246", x2: "-16.2246", y1: "-16.5", y2: "88.5", children: [_jsx("stop", { offset: "0.135095", stopColor: "white" }), _jsx("stop", { offset: "0.877908", stopColor: "white", stopOpacity: "0.01" })] }), _jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: ref("rim"), x1: "36.2754", x2: "36.2754", y1: "0", y2: "72", children: [_jsx("stop", { stopColor: "white" }), _jsx("stop", { offset: "1", stopColor: "#999999" })] })] })] }));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sphere.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sphere.js","sourceRoot":"","sources":["../../../src/components/featured-icon/sphere.tsx"],"names":[],"mappings":"AAAA,oKAAoK;AACpK,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,mEAAmE;AACnE,MAAM,IAAI,GACR,ohBAAohB,CAAC;AAEvhB,8DAA8D;AAC9D,MAAM,GAAG,GACP,+8CAA+8C,CAAC;AAEl9C,8FAA8F;AAC9F,MAAM,KAAK,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAW,CAAC;AAElF,kFAAkF;AAClF,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAoD;IACvF,OAAO,CACL,8BACE,kBAAU,KAAK,EAAE,IAAI,EAAE,QAAQ,IAAI,GAAG,GAAI,EAC1C,kBAAU,KAAK,EAAE,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,QAAQ,MAAM,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,EAC5F,kBAAU,KAAK,EAAE,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,QAAQ,MAAM,GAAG,EAAE,WAAW,EAAC,KAAK,GAAG,IAC3F,CACJ,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,SAAS,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAsC;IACpE,OAAO,CACL,8BACE,0BACE,aAAa,EAAC,gBAAgB,EAC9B,EAAE,EAA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E,EAAC,OAAO,EACV,EAAE,EAAC,MAAM,aAET,eAAM,SAAS,EAAC,gCAAgC,GAAG,EACnD,eAAM,SAAS,EAAC,mCAAmC,EAAC,MAAM,EAAC,GAAG,GAAG,KAP5D,IAAI,CAQM,CAClB,CAAC,EACF,KAAC,MAAM,IAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,GAAI,EACpD,KAAC,MAAM,IAAC,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,GAAI,EAC9D,0BACE,aAAa,EAAC,gBAAgB,EAC9B,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAChB,EAAE,EAAC,UAAU,EACb,EAAE,EAAC,UAAU,EACb,EAAE,EAAC,OAAO,EACV,EAAE,EAAC,MAAM,aAET,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,OAAO,GAAG,EAC5C,eAAM,MAAM,EAAC,UAAU,EAAC,SAAS,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,GAAG,IAChD,EACjB,0BACE,aAAa,EAAC,gBAAgB,EAC9B,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,EACd,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,aAEP,eAAM,SAAS,EAAC,OAAO,GAAG,EAC1B,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAC,SAAS,GAAG,IACxB,IACZ,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -33,7 +33,7 @@ export declare const DODO_FIELD_VARIANTS: {
|
|
|
33
33
|
};
|
|
34
34
|
readonly horizontal: {
|
|
35
35
|
readonly classes: "sm:flex-row sm:gap-4";
|
|
36
|
-
readonly description: "Text block (label row, description,
|
|
36
|
+
readonly description: "Text block (label row, description, error) on the leading side, the control on the trailing side, 16 apart; expanded content under them, across the row. For settings that apply on their own. Stacks below 640px.";
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
};
|
|
@@ -49,7 +49,7 @@ export declare const fieldVariants: import("../../index.ts").VariantFn<{
|
|
|
49
49
|
};
|
|
50
50
|
readonly horizontal: {
|
|
51
51
|
readonly classes: "sm:flex-row sm:gap-4";
|
|
52
|
-
readonly description: "Text block (label row, description,
|
|
52
|
+
readonly description: "Text block (label row, description, error) on the leading side, the control on the trailing side, 16 apart; expanded content under them, across the row. For settings that apply on their own. Stacks below 640px.";
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
}>;
|
|
@@ -87,10 +87,12 @@ export interface FieldProps extends Omit<BaseField.Root.Props, "className">, Var
|
|
|
87
87
|
*/
|
|
88
88
|
error?: React.ReactNode;
|
|
89
89
|
/**
|
|
90
|
-
* Content
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
90
|
+
* Content in the horizontal layout, 12 below the text, in a row 8 apart: what a switch reveals when
|
|
91
|
+
* it is on (an Input and an Edit button), or a row with no switch that edits a value. With a row
|
|
92
|
+
* control (`children`), it spans the whole row under the text and the control (under the control on
|
|
93
|
+
* a phone), and the expanded controls get their own Field, so give them an `aria-label`; without
|
|
94
|
+
* one, it sits under the description and the expanded control is the field's control. Horizontal
|
|
95
|
+
* layout only.
|
|
94
96
|
*/
|
|
95
97
|
expanded?: React.ReactNode;
|
|
96
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAS,KAAK,UAAU,EAAE,MAAM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EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAEpD"}
|
|
@@ -71,7 +71,7 @@ export const DODO_FIELD_VARIANTS = {
|
|
|
71
71
|
},
|
|
72
72
|
horizontal: {
|
|
73
73
|
classes: "sm:flex-row sm:gap-4",
|
|
74
|
-
description: "Text block (label row, description,
|
|
74
|
+
description: "Text block (label row, description, error) on the leading side, the control on the trailing side, 16 apart; expanded content under them, across the row. For settings that apply on their own. Stacks below 640px.",
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
};
|
|
@@ -85,9 +85,12 @@ export const fieldVariants = createVariants({
|
|
|
85
85
|
function hasContent(node) {
|
|
86
86
|
return node !== undefined && node !== null && node !== false && node !== "";
|
|
87
87
|
}
|
|
88
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* The label row: label, required marker (4 apart) and the help icon. It flows as text, so on a label that wraps
|
|
90
|
+
* the icon follows the last word instead of the far end of the row.
|
|
91
|
+
*/
|
|
89
92
|
function FieldLabelRow({ label, required, help, helpLabel, }) {
|
|
90
|
-
return (_jsxs("div", { "data-slot": "field-label-row", className: "
|
|
93
|
+
return (_jsxs("div", { "data-slot": "field-label-row", className: "whitespace-nowrap text-label-primary", children: [_jsx(FieldLabel, { required: required, className: "inline whitespace-normal *:data-[slot=label-required]:ms-1", children: label }), hasContent(help) ? (_jsxs(_Fragment, { children: ["\u2060", _jsxs(Tooltip, { supportMobileTap: true, children: [_jsx(TooltipTrigger, { render: _jsx("button", { type: "button", "data-slot": "field-help", "aria-label": helpLabel, className: "-my-1 -me-1 inline-flex size-6 shrink-0 items-center justify-center rounded-full align-middle text-muted-foreground outline-none transition-colors duration-quick hover:text-foreground focus-visible:*:rounded-full focus-visible:*:inset-ring focus-visible:*:inset-ring-brand-border focus-visible:*:ring-2 focus-visible:*:ring-brand-subtle" }), children: _jsx(CircleInfoIcon, { "aria-hidden": "true", className: "size-3" }) }), _jsx(TooltipContent, { children: help })] })] })) : null] }));
|
|
91
94
|
}
|
|
92
95
|
/**
|
|
93
96
|
* Groups a label, description, control and error message and wires them together: the label and
|
|
@@ -116,18 +119,23 @@ export function Field({ className, ref, onAnimationEnd, layout, label, descripti
|
|
|
116
119
|
const structured = hasContent(label);
|
|
117
120
|
const hasError = hasContent(error);
|
|
118
121
|
const horizontal = (layout ?? DODO_FIELD_DEFAULT_VARIANTS.layout) === "horizontal";
|
|
122
|
+
// With a row control, expanded content spans the row under the text and the control, as the switch reveals it.
|
|
123
|
+
const expandedRow = structured && horizontal && hasContent(expanded) && hasContent(children);
|
|
119
124
|
// Under the expanded content, the error sits 8 below it, as under the control in the vertical layout.
|
|
120
|
-
const errorMessage = (_jsx(FieldError, { match: hasError ? true : undefined, className: horizontal && hasContent(expanded) ? "mt-1.5" : undefined, children: hasError ? error : undefined }));
|
|
125
|
+
const errorMessage = (_jsx(FieldError, { match: hasError ? true : undefined, className: horizontal && hasContent(expanded) && !expandedRow ? "mt-1.5" : undefined, children: hasError ? error : undefined }));
|
|
121
126
|
// Composed by hand: an `error` still shows its message after the parts.
|
|
122
127
|
let content = hasError ? (_jsxs(_Fragment, { children: [children, errorMessage] })) : (children);
|
|
123
|
-
if (
|
|
124
|
-
content = (_jsxs(_Fragment, { children: [_jsxs("div", { "data-slot": "field-text", className: "flex w-full min-w-0 flex-col gap-0.5 sm:
|
|
128
|
+
if (expandedRow) {
|
|
129
|
+
content = (_jsxs(_Fragment, { children: [_jsxs("div", { "data-slot": "field-text", className: "flex w-full min-w-0 flex-col gap-0.5 sm:w-0 sm:flex-1", children: [_jsx(FieldLabelRow, { label: label, required: required, help: help, helpLabel: helpLabel }), hasContent(description) ? _jsx(FieldDescription, { children: description }) : null] }), _jsx("div", { "data-slot": "field-row-control", className: "flex shrink-0 items-center", children: children }), _jsxs("div", { className: "flex w-full min-w-0 flex-col gap-2", children: [_jsx(PrimitiveField, { "data-slot": "field-expanded", className: "w-full flex-row flex-wrap items-center gap-2", children: expanded }), errorMessage] })] }));
|
|
130
|
+
}
|
|
131
|
+
else if (structured && horizontal) {
|
|
132
|
+
content = (_jsxs(_Fragment, { children: [_jsxs("div", { "data-slot": "field-text", className: "flex w-full min-w-0 flex-col gap-0.5 sm:grow", children: [_jsx(FieldLabelRow, { label: label, required: required, help: help, helpLabel: helpLabel }), hasContent(description) ? _jsx(FieldDescription, { children: description }) : null, hasContent(expanded) ? (_jsx("div", { "data-slot": "field-expanded", className: "flex flex-wrap items-center gap-2 pt-3", children: expanded })) : null, errorMessage] }), hasContent(children) ? (_jsx("div", { "data-slot": "field-row-control", className: "flex shrink-0 items-center", children: children })) : null] }));
|
|
125
133
|
}
|
|
126
134
|
else if (structured) {
|
|
127
135
|
content = (_jsxs(_Fragment, { children: [_jsxs("div", { "data-slot": "field-header", className: "flex w-full items-end gap-2", children: [_jsxs("div", { "data-slot": "field-text", className: "flex min-w-0 grow flex-col gap-0.5", children: [_jsx(FieldLabelRow, { label: label, required: required, help: help, helpLabel: helpLabel }), hasContent(description) ? _jsx(FieldDescription, { children: description }) : null] }), hasContent(action) ? (_jsx("div", { "data-slot": "field-action", className: "flex shrink-0 items-center", children: action })) : null] }), children, errorMessage] }));
|
|
128
136
|
}
|
|
129
137
|
// Primitive stacks the parts `items-start`; `w-full min-w-0` keep the field filling its column.
|
|
130
|
-
return (_jsx(PrimitiveField, { "data-slot": "field", "data-layout": structured ? (horizontal ? "horizontal" : "vertical") : undefined, ref: mergedRef, invalid: invalid ?? (hasError || undefined), className: cn("w-full min-w-0", structured && fieldVariants({ layout }), SHAKE_CLASSES, className), onAnimationEnd: (event) => {
|
|
138
|
+
return (_jsx(PrimitiveField, { "data-slot": "field", "data-layout": structured ? (horizontal ? "horizontal" : "vertical") : undefined, ref: mergedRef, invalid: invalid ?? (hasError || undefined), className: cn("w-full min-w-0", structured && fieldVariants({ layout }), expandedRow && "sm:flex-wrap sm:gap-y-3", SHAKE_CLASSES, className), onAnimationEnd: (event) => {
|
|
131
139
|
if (event.animationName === SHAKE_ANIMATION)
|
|
132
140
|
event.currentTarget.removeAttribute("data-shaking");
|
|
133
141
|
onAnimationEnd?.(event);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,IAAI,cAAc,EACvB,gBAAgB,IAAI,yBAAyB,EAC7C,UAAU,IAAI,mBAAmB,EACjC,UAAU,IAAI,mBAAmB,GAClC,MAAM,8BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAmB,MAAM,mBAAoB,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAa,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAwB,CAAC;AASjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAA4B,IAAI,CAAC,CAAC;AAE9F;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;AAEhE,uFAAuF;AACvF,MAAM,eAAe,GAAG,YAAY,CAAC;AAErC;;;GAGG;AACH,MAAM,aAAa,GACjB,0KAA0K,CAAC;AAE7K;;;GAGG;AACH,SAAS,sBAAsB,CAAC,OAA+C;IAC7E,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;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AS,EAAE,GAAG,KAAK,EAAyB;IAC7E,OAAO,CACL,KAAC,yBAAyB,iBAAW,mBAAmB,EAAC,SAAS,EAAE,SAAS,KAAM,KAAK,GAAI,CAC7F,CAAC;AACJ,CAAC;AAMD;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAClF,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAC7D,sFAAsF;IACtF,MAAM,OAAO,GAAG,QAAQ,IAAI,CAAC,QAAQ,EAAE,OAAO,IAAI,SAAS,CAAC,CAAC;IAE7D,OAAO,CACL,KAAC,mBAAmB,iBACR,aAAa,EACvB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,IAAI,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,EAClF,SAAS,EAAE,SAAS,KAChB,KAAK,KACL,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GACxD,CACH,CAAC;AACJ,CAAC;AASD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,OAAO,KAAC,KAAK,iBAAW,eAAe,KAAK,KAAK,GAAI,CAAC;AACxD,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { DODO_FIELD_DEFAULT_VARIANTS, DODO_FIELD_VARIANTS, Field, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldLabel, type FieldLabelProps, type FieldProps, fieldVariants, } from "./field.tsx";
|
|
2
|
+
export { LabelRequiredIndicator } from "./label.tsx";
|
|
2
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,KAAK,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,UAAU,EACV,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,KAAK,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,UAAU,EACV,KAAK,eAAe,EACpB,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,KAAK,EACL,YAAY,EAEZ,gBAAgB,EAEhB,UAAU,EAEV,UAAU,EAGV,aAAa,GACd,MAAM,YAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,KAAK,EACL,YAAY,EAEZ,gBAAgB,EAEhB,UAAU,EAEV,UAAU,EAGV,aAAa,GACd,MAAM,YAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAa,CAAC"}
|
|
@@ -34,7 +34,8 @@ export declare const labelVariants: import("../../index.ts").VariantFn<{
|
|
|
34
34
|
}>;
|
|
35
35
|
/**
|
|
36
36
|
* Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
|
|
37
|
-
* technology: the control's own `required` attribute is what gets announced.
|
|
37
|
+
* technology: the control's own `required` attribute is what gets announced. Exported for a
|
|
38
|
+
* heading over a required group of fields; give it `className="ms-1"` there.
|
|
38
39
|
*/
|
|
39
40
|
export declare function LabelRequiredIndicator({ className }: {
|
|
40
41
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/field/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAYtB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;CAA6B,CAAC;AAEtE,iFAAiF;AACjF,eAAO,MAAM,aAAa;;;;;;;;;;;EAIxB,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/field/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAYtB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;CAA6B,CAAC;AAEtE,iFAAiF;AACjF,eAAO,MAAM,aAAa;;;;;;;;;;;EAIxB,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAU3E;AAED,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,EAC1D,gBAAgB,CAAC,OAAO,mBAAmB,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAgB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAO1F"}
|
|
@@ -28,7 +28,8 @@ export const labelVariants = createVariants({
|
|
|
28
28
|
});
|
|
29
29
|
/**
|
|
30
30
|
* Decorative required marker shared by `Label` and `FieldLabel`. Hidden from assistive
|
|
31
|
-
* technology: the control's own `required` attribute is what gets announced.
|
|
31
|
+
* technology: the control's own `required` attribute is what gets announced. Exported for a
|
|
32
|
+
* heading over a required group of fields; give it `className="ms-1"` there.
|
|
32
33
|
*/
|
|
33
34
|
export function LabelRequiredIndicator({ className }) {
|
|
34
35
|
return (_jsx("span", { "data-slot": "label-required", "aria-hidden": "true", className: cn("-ms-1 text-destructive-foreground", className), children: "*" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/components/field/label.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,8BAA+B,CAAC;AACxE,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,OAAO,EAAE,uBAAuB;YAChC,WAAW,EAAE,qEAAqE;SACnF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EACT,wFAAwF;SAC3F;KACF;CACO,CAAC;AAE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,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAc;IACzF,OAAO,CACL,MAAC,cAAc,iBAAW,OAAO,EAAC,SAAS,EAAE,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,CAAC,KAAM,KAAK,aACvF,QAAQ,EACR,QAAQ,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,CAAC,CAAC,CAAC,IAAI,IAC9B,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -60,7 +60,7 @@ export interface FileUploadProps extends Omit<React.ComponentProps<"button">, "c
|
|
|
60
60
|
*/
|
|
61
61
|
export declare function FileUpload({ className, accept, multiple, maxSize, disabled, onFilesAdded, onFilesRejected, icon, label, hint, dragLabel, description, error, onClick, ...props }: FileUploadProps): React.JSX.Element;
|
|
62
62
|
/** Props of {@link FileUploadButton}. */
|
|
63
|
-
export interface FileUploadButtonProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "type" | "children" | "icon" | "iconPlacement"> {
|
|
63
|
+
export interface FileUploadButtonProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "type" | "children" | "icon" | "iconPlacement" | "labelHidden"> {
|
|
64
64
|
/** Accepted files, as in `<input accept>`, checked again after the pick. */
|
|
65
65
|
accept?: string;
|
|
66
66
|
/** Accept several files per pick. When false, only the first acceptable file is kept. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/components/file-upload/file-upload.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C,gDAAgD;AAChD,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElG,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC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,cAA6B,EAC7B,aAA0B,EAC1B,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,mBAAmB,qBA8OrB"}
|
|
@@ -99,7 +99,7 @@ export function FileUpload({ className, accept, multiple = false, maxSize, disab
|
|
|
99
99
|
sortFiles(list, { accept, maxSize, multiple }, onFilesAdded, onFilesRejected);
|
|
100
100
|
};
|
|
101
101
|
const constraints = description ?? (maxSize === undefined ? null : `Max file size: ${formatFileSize(maxSize)}`);
|
|
102
|
-
return (_jsxs(_Fragment, { children: [_jsxs("button", { type: "button", "data-slot": "file-upload", "data-dragging": dragging || undefined, "data-disabled": disabled || undefined, "data-invalid": invalid || undefined, "aria-disabled": disabled || undefined, className: cn("flex w-full cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border border-border bg-
|
|
102
|
+
return (_jsxs(_Fragment, { children: [_jsxs("button", { type: "button", "data-slot": "file-upload", "data-dragging": dragging || undefined, "data-disabled": disabled || undefined, "data-invalid": invalid || undefined, "aria-disabled": disabled || undefined, className: cn("flex w-full cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border border-border bg-field px-6 py-5 text-center outline-none transition-[color,background-color,border-color,box-shadow] duration-quick ease-smooth-out hover:bg-accent/50 focus-visible:border-brand-edge focus-visible:ring-2 focus-visible:ring-brand-subtle data-invalid:border-destructive data-dragging:border-brand-edge data-dragging:bg-brand-subtle data-disabled:cursor-not-allowed data-disabled:opacity-64 data-disabled:hover:bg-field", className), onClick: (event) => {
|
|
103
103
|
if (disabled)
|
|
104
104
|
return;
|
|
105
105
|
onClick?.(event);
|