@tfn-design/design-system 0.2.0 → 0.3.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/README.md +3 -3
- package/dist/accordion/accordion.d.ts +2 -2
- package/dist/accordion/web/ds-accordion.d.ts +10 -3
- package/dist/accordion/web/ds-accordion.js +33 -4
- package/dist/account-password-field/account-password-field.d.ts +4 -4
- package/dist/account-password-field/web/ds-account-password-field.d.ts +2 -2
- package/dist/account-password-field/web/ds-account-password-field.js +1 -1
- package/dist/account-switcher/account-switcher.d.ts +7 -7
- package/dist/account-switcher/web/ds-account-switcher.d.ts +5 -5
- package/dist/account-switcher/web/ds-account-switcher.js +3 -3
- package/dist/action-toast/action-toast.d.ts +12 -12
- package/dist/action-toast/web/ds-action-toast.d.ts +5 -5
- package/dist/action-toast/web/ds-action-toast.js +9 -4
- package/dist/ai-assist-field/ai-assist-field.d.ts +8 -6
- package/dist/ai-assist-field/ai-assist-field.js +12 -2
- package/dist/ai-assist-field/web/ds-ai-assist-field.d.ts +1 -1
- package/dist/ai-assist-field/web/ds-ai-assist-field.js +9 -8
- package/dist/ai-attachment/web/ds-ai-attachment.js +2 -1
- package/dist/ai-branch-switcher/ai-branch-switcher.d.ts +3 -0
- package/dist/ai-branch-switcher/web/ds-ai-branch-switcher.d.ts +1 -1
- package/dist/ai-branch-switcher/web/ds-ai-branch-switcher.js +8 -5
- package/dist/ai-citation/ai-citation.d.ts +8 -8
- package/dist/ai-citation/native/ds-ai-citation.js +5 -5
- package/dist/ai-citation/web/ds-ai-citation.js +6 -5
- package/dist/ai-composer/ai-composer.d.ts +2 -2
- package/dist/ai-composer/native/ds-ai-composer.js +5 -4
- package/dist/ai-composer/web/ds-ai-composer.d.ts +1 -1
- package/dist/ai-composer/web/ds-ai-composer.js +2 -2
- package/dist/ai-confirmation/ai-confirmation.d.ts +9 -9
- package/dist/ai-confirmation/native/ds-ai-confirmation.js +2 -2
- package/dist/ai-confirmation/web/ds-ai-confirmation.d.ts +1 -1
- package/dist/ai-confirmation/web/ds-ai-confirmation.js +3 -2
- package/dist/ai-context-scope/ai-context-scope.d.ts +5 -5
- package/dist/ai-context-scope/ai-context-scope.js +1 -1
- package/dist/ai-context-scope/native/ds-ai-context-scope.d.ts +1 -1
- package/dist/ai-context-scope/native/ds-ai-context-scope.js +6 -3
- package/dist/ai-context-scope/web/ds-ai-context-scope.d.ts +2 -2
- package/dist/ai-context-scope/web/ds-ai-context-scope.js +12 -2
- package/dist/ai-conversation-list/ai-conversation-list.d.ts +5 -5
- package/dist/ai-conversation-list/web/ds-ai-conversation-list.d.ts +1 -1
- package/dist/ai-conversation-list/web/ds-ai-conversation-list.js +7 -6
- package/dist/ai-diff/ai-diff.d.ts +2 -2
- package/dist/ai-diff/native/ds-ai-diff.js +3 -2
- package/dist/ai-diff/web/ds-ai-diff.js +3 -2
- package/dist/ai-draft-panel/ai-draft-panel.d.ts +3 -3
- package/dist/ai-draft-panel/ai-draft-panel.js +3 -3
- package/dist/ai-draft-panel/web/ds-ai-draft-panel.d.ts +2 -2
- package/dist/ai-draft-panel/web/ds-ai-draft-panel.js +3 -2
- package/dist/ai-empty-state/native/ds-ai-empty-state.d.ts +1 -1
- package/dist/ai-empty-state/native/ds-ai-empty-state.js +4 -3
- package/dist/ai-empty-state/web/ds-ai-empty-state.d.ts +1 -1
- package/dist/ai-empty-state/web/ds-ai-empty-state.js +2 -1
- package/dist/ai-error-state/native/ds-ai-error-state.js +3 -2
- package/dist/ai-error-state/web/ds-ai-error-state.js +2 -1
- package/dist/ai-feedback/ai-feedback.d.ts +1 -1
- package/dist/ai-feedback/ai-feedback.js +1 -1
- package/dist/ai-feedback/web/ds-ai-feedback.js +3 -2
- package/dist/ai-label/ai-label.d.ts +5 -5
- package/dist/ai-label/native/ds-ai-label.js +5 -4
- package/dist/ai-label/web/ds-ai-label.js +4 -4
- package/dist/ai-message/ai-message.d.ts +3 -3
- package/dist/ai-message/native/ds-ai-message.d.ts +1 -1
- package/dist/ai-message/native/ds-ai-message.js +12 -10
- package/dist/ai-message/web/ds-ai-message-markdown.js +5 -5
- package/dist/ai-message/web/ds-ai-message.d.ts +2 -2
- package/dist/ai-message/web/ds-ai-message.js +3 -2
- package/dist/ai-message-actions/ai-message-actions.d.ts +1 -1
- package/dist/ai-message-actions/native/ds-ai-message-actions.js +2 -1
- package/dist/ai-message-actions/web/use-ai-clipboard.d.ts +1 -1
- package/dist/ai-plan/ai-plan.d.ts +4 -4
- package/dist/ai-plan/web/ds-ai-plan.js +3 -2
- package/dist/ai-reasoning/ai-reasoning.d.ts +1 -1
- package/dist/ai-side-nav/ai-side-nav.d.ts +19 -19
- package/dist/ai-side-nav/web/ds-ai-side-nav.d.ts +9 -9
- package/dist/ai-side-nav/web/ds-ai-side-nav.js +2 -1
- package/dist/ai-suggestions/native/ds-ai-suggestions.js +1 -1
- package/dist/ai-suggestions/web/ds-ai-suggestions.js +1 -1
- package/dist/ai-summary-card/ai-summary-card.d.ts +8 -8
- package/dist/ai-summary-card/native/ds-ai-summary-card.d.ts +1 -1
- package/dist/ai-summary-card/native/ds-ai-summary-card.js +3 -3
- package/dist/ai-summary-card/web/ds-ai-summary-card.d.ts +1 -1
- package/dist/ai-summary-card/web/ds-ai-summary-card.js +2 -1
- package/dist/ai-thinking/native/ds-ai-thinking.js +3 -2
- package/dist/ai-thinking/web/ds-ai-thinking.js +1 -1
- package/dist/ai-thread/ai-thread.d.ts +3 -3
- package/dist/ai-thread/native/ds-ai-thread-panel.js +2 -1
- package/dist/ai-thread/native/ds-ai-thread.d.ts +2 -2
- package/dist/ai-thread/native/ds-ai-thread.js +4 -2
- package/dist/ai-thread/web/ds-ai-thread.d.ts +2 -2
- package/dist/ai-thread/web/ds-ai-thread.js +1 -1
- package/dist/ai-tool-call/ai-tool-call.d.ts +6 -6
- package/dist/ai-tool-call/native/ds-ai-tool-call.d.ts +1 -1
- package/dist/ai-tool-call/native/ds-ai-tool-call.js +5 -5
- package/dist/ai-tool-call/web/ds-ai-tool-call.d.ts +1 -1
- package/dist/ai-tool-call/web/ds-ai-tool-call.js +4 -3
- package/dist/alert/alert.d.ts +9 -9
- package/dist/alert/alert.js +1 -1
- package/dist/alert/native/ds-alert.js +9 -11
- package/dist/alert/web/ds-alert.js +24 -14
- package/dist/ambient-gradient/ambient-gradient.d.ts +11 -11
- package/dist/ambient-gradient/native/ambient-gradient-provider.d.ts +1 -1
- package/dist/ambient-gradient/native/ds-ambient-gradient.d.ts +1 -1
- package/dist/ambient-gradient/web/ds-ambient-gradient.d.ts +1 -1
- package/dist/amount/amount.d.ts +25 -25
- package/dist/amount/amount.js +4 -3
- package/dist/amount/native/ds-amount.js +2 -1
- package/dist/amount/web/ds-amount.js +1 -1
- package/dist/amount-cell/web/ds-amount-cell.js +1 -1
- package/dist/amount-entry/amount-entry.d.ts +8 -8
- package/dist/amount-entry/native/ds-amount-entry.js +3 -2
- package/dist/amount-entry/web/ds-amount-entry.js +2 -1
- package/dist/app-shell/app-shell.d.ts +9 -9
- package/dist/app-shell/app-shell.js +1 -1
- package/dist/app-shell/web/ds-app-shell.d.ts +24 -6
- package/dist/app-shell/web/ds-app-shell.js +4 -3
- package/dist/approval-chain/approval-chain.d.ts +12 -12
- package/dist/approval-chain/native/ds-approval-chain.d.ts +1 -1
- package/dist/approval-chain/native/ds-approval-chain.js +8 -6
- package/dist/approval-chain/web/ds-approval-chain.d.ts +1 -1
- package/dist/approval-chain/web/ds-approval-chain.js +7 -6
- package/dist/auth-shell/auth-shell.d.ts +4 -4
- package/dist/auth-shell/web/ds-auth-shell.d.ts +24 -6
- package/dist/auth-shell/web/ds-auth-shell.js +27 -2
- package/dist/avatar/avatar.d.ts +2 -2
- package/dist/avatar/native/ds-avatar.js +3 -2
- package/dist/avatar-group/avatar-group.d.ts +3 -3
- package/dist/avatar-group/native/ds-avatar-group.js +3 -2
- package/dist/avatar-group/web/ds-avatar-group.js +2 -2
- package/dist/balance-header/balance-header.d.ts +7 -7
- package/dist/balance-header/native/ds-balance-header.d.ts +1 -1
- package/dist/balance-header/native/ds-balance-header.js +3 -2
- package/dist/balance-header/web/ds-balance-header.d.ts +1 -1
- package/dist/balance-header/web/ds-balance-header.js +2 -1
- package/dist/bank-logo/bank-logo.d.ts +187 -0
- package/dist/bank-logo/bank-logo.js +151 -0
- package/dist/bank-logo/native/ds-bank-logo.d.ts +7 -0
- package/dist/bank-logo/native/ds-bank-logo.js +43 -0
- package/dist/bank-logo/web/ds-bank-logo.d.ts +10 -0
- package/dist/bank-logo/web/ds-bank-logo.js +27 -0
- package/dist/bar-chart/bar-chart.d.ts +63 -15
- package/dist/bar-chart/bar-chart.js +79 -2
- package/dist/bar-chart/web/ds-bar-chart.d.ts +5 -4
- package/dist/bar-chart/web/ds-bar-chart.js +86 -27
- package/dist/bottom-nav/bottom-nav.d.ts +27 -20
- package/dist/bottom-nav/bottom-nav.js +1 -0
- package/dist/bottom-nav/native/bottom-nav-icon-weight.d.ts +6 -0
- package/dist/bottom-nav/native/bottom-nav-icon-weight.js +6 -0
- package/dist/bottom-nav/native/ds-bottom-nav.d.ts +8 -8
- package/dist/bottom-nav/native/ds-bottom-nav.js +26 -17
- package/dist/bottom-nav/web/ds-bottom-nav.d.ts +16 -0
- package/dist/bottom-nav/web/ds-bottom-nav.js +31 -0
- package/dist/brand-lockup/brand-lockup.d.ts +41 -35
- package/dist/brand-lockup/brand-lockup.js +1 -1
- package/dist/brand-lockup/native/ds-brand-lockup.d.ts +7 -7
- package/dist/brand-lockup/native/ds-brand-lockup.js +6 -4
- package/dist/brand-lockup/web/ds-brand-lockup.d.ts +8 -8
- package/dist/brand-lockup/web/ds-brand-lockup.js +6 -4
- package/dist/breadcrumbs/breadcrumbs.d.ts +4 -4
- package/dist/breadcrumbs/web/ds-breadcrumbs.d.ts +1 -1
- package/dist/bulk-action-bar/bulk-action-bar.d.ts +6 -6
- package/dist/bulk-action-bar/web/ds-bulk-action-bar.d.ts +4 -4
- package/dist/bulk-action-bar/web/ds-bulk-action-bar.js +2 -1
- package/dist/bullet-chart/bullet-chart.d.ts +82 -0
- package/dist/bullet-chart/bullet-chart.js +60 -0
- package/dist/bullet-chart/web/ds-bullet-chart.d.ts +8 -0
- package/dist/bullet-chart/web/ds-bullet-chart.js +31 -0
- package/dist/button/button.d.ts +36 -36
- package/dist/button/button.js +14 -14
- package/dist/button/native/ds-button.js +10 -11
- package/dist/button/web/ds-button.d.ts +3 -3
- package/dist/button/web/ds-button.js +41 -24
- package/dist/button-group/button-group.d.ts +2 -2
- package/dist/button-group/web/ds-button-group.d.ts +3 -3
- package/dist/button-group/web/ds-button-group.js +1 -1
- package/dist/calendar/calendar.d.ts +14 -14
- package/dist/calendar/web/ds-calendar.d.ts +9 -5
- package/dist/calendar/web/ds-calendar.js +11 -9
- package/dist/card-carousel/card-carousel.d.ts +5 -5
- package/dist/card-carousel/native/ds-card-carousel.js +1 -1
- package/dist/card-carousel/web/ds-card-carousel.js +4 -2
- package/dist/chart/chart.d.ts +140 -60
- package/dist/chart/chart.js +146 -46
- package/dist/chart/web/ds-chart.d.ts +15 -13
- package/dist/chart/web/ds-chart.js +122 -49
- package/dist/check-option/check-option.d.ts +8 -10
- package/dist/check-option/check-option.js +0 -2
- package/dist/check-option/web/ds-check-option.d.ts +4 -4
- package/dist/check-option/web/ds-check-option.js +5 -4
- package/dist/checkbox/checkbox.d.ts +1 -1
- package/dist/checkbox/web/ds-checkbox.js +3 -7
- package/dist/chip/chip-wash.d.ts +5 -5
- package/dist/chip/chip.d.ts +5 -5
- package/dist/chip/native/ds-chip.d.ts +1 -1
- package/dist/chip/native/ds-chip.js +5 -4
- package/dist/chip/web/ds-chip.d.ts +2 -2
- package/dist/chip/web/ds-chip.js +37 -4
- package/dist/code-block/code-block.d.ts +10 -10
- package/dist/code-block/web/ds-code-block.js +2 -1
- package/dist/code-block/web/use-code-block-clipboard.d.ts +1 -1
- package/dist/column-picker/web/ds-column-picker.d.ts +3 -1
- package/dist/column-picker/web/ds-column-picker.js +2 -2
- package/dist/combobox/combobox.d.ts +24 -10
- package/dist/combobox/combobox.js +2 -5
- package/dist/combobox/web/ds-combobox.d.ts +2 -2
- package/dist/combobox/web/ds-combobox.js +45 -13
- package/dist/command-palette/command-palette.d.ts +30 -30
- package/dist/command-palette/web/ds-command-palette.d.ts +3 -3
- package/dist/command-palette/web/ds-command-palette.js +9 -7
- package/dist/comment-thread/comment-thread.d.ts +11 -11
- package/dist/comment-thread/native/ds-comment-thread.d.ts +1 -1
- package/dist/comment-thread/native/ds-comment-thread.js +14 -12
- package/dist/comment-thread/web/ds-comment-thread.d.ts +1 -1
- package/dist/comment-thread/web/ds-comment-thread.js +8 -7
- package/dist/condition-builder/condition-builder.d.ts +18 -18
- package/dist/condition-builder/condition-builder.js +1 -1
- package/dist/condition-builder/web/ds-condition-builder.js +9 -9
- package/dist/context-menu/context-menu.d.ts +4 -4
- package/dist/context-menu/web/ds-context-menu.d.ts +1 -1
- package/dist/context-menu/web/ds-context-menu.js +2 -2
- package/dist/coordinate-field/coordinate-field.d.ts +10 -10
- package/dist/coordinate-field/native/ds-coordinate-field.d.ts +1 -1
- package/dist/coordinate-field/native/ds-coordinate-field.js +2 -2
- package/dist/coordinate-field/web/ds-coordinate-field.d.ts +1 -1
- package/dist/coordinate-field/web/ds-coordinate-field.js +2 -2
- package/dist/copy-field/copy-field.d.ts +8 -8
- package/dist/copy-field/web/ds-copy-field.d.ts +1 -1
- package/dist/copy-field/web/ds-copy-field.js +4 -4
- package/dist/count-badge/count-badge.d.ts +9 -9
- package/dist/count-badge/native/ds-count-badge.js +3 -2
- package/dist/count-badge/web/ds-count-badge.js +4 -4
- package/dist/countdown/native/ds-countdown.js +3 -2
- package/dist/countdown/web/ds-countdown.js +2 -1
- package/dist/dashboard-shell/dashboard-shell.d.ts +3 -3
- package/dist/dashboard-shell/web/ds-dashboard-shell.d.ts +4 -4
- package/dist/data-table/data-table-license.d.ts +3 -3
- package/dist/data-table/data-table-store.d.ts +5 -5
- package/dist/data-table/url-state.d.ts +6 -6
- package/dist/data-table/web/data-table-parts.d.ts +2 -2
- package/dist/data-table/web/data-table-theme.css +83 -21
- package/dist/data-table/web/ds-data-table-skeleton-chip.d.ts +2 -2
- package/dist/data-table/web/ds-data-table.d.ts +4 -2
- package/dist/data-table/web/ds-data-table.js +7 -2
- package/dist/date-field/web/ds-date-field.d.ts +1 -1
- package/dist/date-input/date-input.d.ts +47 -12
- package/dist/date-input/date-input.js +30 -3
- package/dist/date-input/web/ds-date-input.d.ts +2 -2
- package/dist/date-input/web/ds-date-input.js +33 -7
- package/dist/date-picker/date-picker.d.ts +23 -23
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/date-picker/web/ds-date-picker.d.ts +13 -7
- package/dist/date-picker/web/ds-date-picker.js +8 -7
- package/dist/date-range-picker/web/ds-date-range-picker.js +33 -3
- package/dist/day-picker/day-picker.d.ts +8 -2
- package/dist/day-picker/day-picker.js +1 -1
- package/dist/day-picker/web/ds-day-picker.d.ts +3 -3
- package/dist/day-picker/web/ds-day-picker.js +16 -4
- package/dist/delta/delta.d.ts +19 -3
- package/dist/delta/delta.js +30 -1
- package/dist/delta/native/ds-delta.js +10 -5
- package/dist/delta/web/ds-delta.js +7 -4
- package/dist/description-list/description-list.d.ts +3 -3
- package/dist/description-list/native/ds-description-list.d.ts +2 -2
- package/dist/description-list/native/ds-description-list.js +6 -3
- package/dist/description-list/web/ds-description-list.d.ts +2 -2
- package/dist/description-list/web/ds-description-list.js +3 -1
- package/dist/dialog/dialog.d.ts +9 -9
- package/dist/dialog/native/ds-dialog.d.ts +1 -1
- package/dist/dialog/native/ds-dialog.js +2 -1
- package/dist/dialog/web/ds-dialog.d.ts +13 -5
- package/dist/dialog/web/ds-dialog.js +9 -11
- package/dist/diverging-bar-chart/diverging-bar-chart.d.ts +23 -8
- package/dist/diverging-bar-chart/diverging-bar-chart.js +24 -2
- package/dist/diverging-bar-chart/web/ds-diverging-bar-chart.d.ts +2 -2
- package/dist/diverging-bar-chart/web/ds-diverging-bar-chart.js +30 -15
- package/dist/divider/divider.d.ts +2 -2
- package/dist/divider/web/ds-divider.d.ts +1 -1
- package/dist/divider/web/ds-divider.js +2 -2
- package/dist/donut-chart/donut-chart.d.ts +19 -3
- package/dist/donut-chart/donut-chart.js +19 -2
- package/dist/donut-chart/web/ds-donut-chart.d.ts +3 -1
- package/dist/donut-chart/web/ds-donut-chart.js +20 -12
- package/dist/drawer/drawer.d.ts +10 -10
- package/dist/drawer/native/ds-drawer.d.ts +3 -3
- package/dist/drawer/native/ds-drawer.js +4 -3
- package/dist/drawer/web/ds-drawer.d.ts +3 -3
- package/dist/drawer/web/ds-drawer.js +5 -3
- package/dist/dropdown-menu/dropdown-menu.d.ts +17 -17
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/dropdown-menu/native/ds-dropdown-menu.d.ts +2 -2
- package/dist/dropdown-menu/native/ds-dropdown-menu.js +4 -3
- package/dist/dropdown-menu/web/ds-dropdown-menu-surface.d.ts +5 -5
- package/dist/dropdown-menu/web/ds-dropdown-menu-surface.js +5 -4
- package/dist/dropdown-menu/web/ds-dropdown-menu.d.ts +4 -4
- package/dist/dumbbell-chart/dumbbell-chart.d.ts +39 -0
- package/dist/dumbbell-chart/dumbbell-chart.js +19 -0
- package/dist/dumbbell-chart/web/ds-dumbbell-chart.d.ts +13 -0
- package/dist/dumbbell-chart/web/ds-dumbbell-chart.js +20 -0
- package/dist/editable-row/editable-row.d.ts +7 -2
- package/dist/editable-row/web/ds-editable-row.d.ts +2 -2
- package/dist/editable-row/web/ds-editable-row.js +3 -3
- package/dist/empty-state/empty-state.d.ts +5 -5
- package/dist/empty-state/empty-state.js +1 -1
- package/dist/empty-state/native/ds-empty-state.d.ts +3 -3
- package/dist/empty-state/native/ds-empty-state.js +1 -1
- package/dist/empty-state/web/ds-empty-state.d.ts +8 -8
- package/dist/empty-state/web/ds-empty-state.js +2 -8
- package/dist/environment-banner/environment-banner.d.ts +9 -9
- package/dist/environment-banner/web/ds-environment-banner.d.ts +2 -2
- package/dist/environment-banner/web/ds-environment-banner.js +4 -2
- package/dist/evaluation-trace/evaluation-trace.d.ts +3 -3
- package/dist/evaluation-trace/web/ds-evaluation-trace.d.ts +1 -1
- package/dist/evaluation-trace/web/ds-evaluation-trace.js +7 -6
- package/dist/event-row/web/ds-event-row.d.ts +1 -1
- package/dist/event-row/web/ds-event-row.js +2 -1
- package/dist/facet-button/facet-button.d.ts +3 -3
- package/dist/facet-button/web/ds-facet-button.d.ts +1 -1
- package/dist/facet-button/web/ds-facet-button.js +4 -10
- package/dist/facet-menu/web/ds-facet-menu-row.d.ts +1 -1
- package/dist/facet-menu/web/ds-facet-menu.js +5 -4
- package/dist/fact/fact.d.ts +2 -2
- package/dist/fact/fact.js +1 -1
- package/dist/fact/native/ds-fact.js +3 -2
- package/dist/field-rules/field-rules.d.ts +9 -9
- package/dist/figure/figure.d.ts +1 -1
- package/dist/figure/figure.js +1 -1
- package/dist/figure/native/ds-figure.js +4 -3
- package/dist/file-dropzone/file-dropzone.d.ts +10 -10
- package/dist/file-dropzone/web/ds-file-dropzone.d.ts +2 -2
- package/dist/file-dropzone/web/ds-file-dropzone.js +3 -2
- package/dist/file-field/file-field.d.ts +4 -4
- package/dist/file-field/web/ds-file-field.d.ts +4 -4
- package/dist/file-field/web/ds-file-field.js +2 -1
- package/dist/file-import/file-import.d.ts +8 -8
- package/dist/file-import/file-import.js +1 -1
- package/dist/file-import/web/ds-file-import.d.ts +2 -2
- package/dist/file-import/web/ds-file-import.js +1 -1
- package/dist/file-upload/file-upload.d.ts +13 -13
- package/dist/file-upload/file-upload.js +1 -1
- package/dist/file-upload/web/ds-file-upload.d.ts +3 -1
- package/dist/file-upload/web/ds-file-upload.js +4 -4
- package/dist/filter-bar/filter-bar.d.ts +4 -4
- package/dist/filter-bar/web/ds-filter-bar.d.ts +2 -2
- package/dist/filter-bar/web/ds-filter-bar.js +2 -1
- package/dist/filter-button/filter-button.d.ts +7 -7
- package/dist/filter-button/web/ds-filter-button.d.ts +1 -1
- package/dist/filter-chip/filter-chip.d.ts +12 -12
- package/dist/filter-chip/web/ds-filter-chip.d.ts +1 -1
- package/dist/filter-chip/web/ds-filter-chip.js +4 -4
- package/dist/filter-popover/filter-popover.d.ts +3 -0
- package/dist/filter-popover/web/ds-filter-popover.d.ts +2 -2
- package/dist/filter-popover/web/ds-filter-popover.js +9 -4
- package/dist/form-field-group/form-field-group.d.ts +7 -7
- package/dist/form-field-group/web/ds-form-field-group.js +1 -1
- package/dist/form-section/form-section.d.ts +1 -1
- package/dist/form-section/form-section.js +1 -1
- package/dist/form-section/web/ds-form-section.d.ts +2 -2
- package/dist/form-section/web/ds-form-section.js +3 -1
- package/dist/freshness-indicator/freshness-indicator.d.ts +4 -1
- package/dist/freshness-indicator/freshness-indicator.js +8 -2
- package/dist/freshness-indicator/web/ds-freshness-indicator.d.ts +1 -1
- package/dist/freshness-indicator/web/ds-freshness-indicator.js +4 -2
- package/dist/funnel/funnel.d.ts +4 -4
- package/dist/funnel/web/ds-funnel.d.ts +3 -3
- package/dist/funnel/web/ds-funnel.js +21 -28
- package/dist/gauge/gauge.d.ts +9 -3
- package/dist/gauge/gauge.js +11 -1
- package/dist/gauge/web/ds-gauge.d.ts +8 -3
- package/dist/gauge/web/ds-gauge.js +15 -8
- package/dist/geo/geo.d.ts +15 -15
- package/dist/geofence-editor/geofence-editor.d.ts +8 -8
- package/dist/geofence-editor/web/ds-geofence-editor.d.ts +6 -6
- package/dist/geofence-editor/web/ds-geofence-editor.js +18 -18
- package/dist/glass.d.ts +15 -15
- package/dist/glass.js +1 -1
- package/dist/gradient-card/gradient-card.d.ts +3 -3
- package/dist/gradient-card/web/ds-gradient-card.d.ts +2 -2
- package/dist/gradient-card/web/ds-gradient-card.js +1 -1
- package/dist/group-header/group-header.d.ts +1 -1
- package/dist/group-header/web/ds-group-header.d.ts +1 -1
- package/dist/group-header/web/ds-group-header.js +1 -1
- package/dist/heading/heading.d.ts +18 -0
- package/dist/heading/heading.js +14 -0
- package/dist/heading/native/ds-heading.d.ts +5 -0
- package/dist/heading/native/ds-heading.js +9 -0
- package/dist/heading/web/ds-heading.d.ts +5 -0
- package/dist/heading/web/ds-heading.js +10 -0
- package/dist/heatmap/heatmap.d.ts +15 -4
- package/dist/heatmap/heatmap.js +6 -0
- package/dist/heatmap/web/ds-heatmap.d.ts +4 -4
- package/dist/heatmap/web/ds-heatmap.js +24 -11
- package/dist/helper-text/helper-text.d.ts +13 -13
- package/dist/helper-text/helper-text.js +4 -4
- package/dist/helper-text/native/ds-helper-text.d.ts +1 -1
- package/dist/helper-text/web/ds-helper-text.d.ts +1 -1
- package/dist/histogram/histogram.d.ts +68 -0
- package/dist/histogram/histogram.js +79 -0
- package/dist/histogram/web/ds-histogram.d.ts +10 -0
- package/dist/histogram/web/ds-histogram.js +33 -0
- package/dist/hover-card/hover-card.d.ts +1 -1
- package/dist/hover-card/web/ds-hover-card.d.ts +1 -1
- package/dist/hover-card/web/ds-hover-card.js +3 -2
- package/dist/icon/web/ds-icon-provider.js +2 -1
- package/dist/icon-button/icon-button.d.ts +8 -8
- package/dist/icon-button/icon-button.js +1 -1
- package/dist/icon-button/native/ds-icon-button.js +2 -2
- package/dist/icon-button/web/ds-icon-button.d.ts +1 -1
- package/dist/icon-button/web/ds-icon-button.js +3 -3
- package/dist/icon-frame/icon-frame.d.ts +23 -9
- package/dist/icon-frame/icon-frame.js +6 -2
- package/dist/icon-frame/native/ds-icon-frame.d.ts +1 -1
- package/dist/icon-frame/native/ds-icon-frame.js +24 -7
- package/dist/icon-frame/web/ds-icon-frame.d.ts +2 -2
- package/dist/icon-frame/web/ds-icon-frame.js +25 -6
- package/dist/icon-toggle-group/web/ds-icon-toggle-group.d.ts +5 -1
- package/dist/icon-toggle-group/web/ds-icon-toggle-group.js +2 -2
- package/dist/ident/ident.d.ts +4 -4
- package/dist/ident/web/ds-ident.js +1 -1
- package/dist/impersonation-banner/impersonation-banner.d.ts +2 -2
- package/dist/impersonation-banner/impersonation-banner.js +2 -2
- package/dist/impersonation-banner/web/ds-impersonation-banner.d.ts +5 -5
- package/dist/impersonation-banner/web/ds-impersonation-banner.js +2 -1
- package/dist/index.d.ts +39 -11
- package/dist/index.js +24 -10
- package/dist/inline-edit/inline-edit.d.ts +5 -5
- package/dist/inline-edit/web/ds-inline-edit.d.ts +2 -2
- package/dist/inline-edit/web/ds-inline-edit.js +8 -6
- package/dist/input/input.d.ts +8 -8
- package/dist/input/input.js +1 -1
- package/dist/input/native/ds-input.js +2 -3
- package/dist/input/web/ds-input.d.ts +2 -2
- package/dist/input/web/ds-input.js +13 -10
- package/dist/interaction.d.ts +7 -7
- package/dist/interaction.js +2 -2
- package/dist/json-viewer/json-viewer.d.ts +17 -17
- package/dist/json-viewer/web/ds-json-viewer.d.ts +1 -1
- package/dist/json-viewer/web/ds-json-viewer.js +3 -2
- package/dist/kanban-board/kanban-board.d.ts +13 -13
- package/dist/kanban-board/web/ds-kanban-board.d.ts +1 -1
- package/dist/kanban-board/web/ds-kanban-board.js +6 -5
- package/dist/kbd/kbd.d.ts +6 -6
- package/dist/kbd/web/ds-kbd.js +2 -2
- package/dist/key-value-editor/key-value-editor.d.ts +15 -10
- package/dist/key-value-editor/web/ds-key-value-editor.d.ts +2 -2
- package/dist/key-value-editor/web/ds-key-value-editor.js +11 -8
- package/dist/keypad/keypad.d.ts +4 -4
- package/dist/keypad/native/ds-keypad.js +3 -2
- package/dist/keypad/web/ds-keypad.js +1 -1
- package/dist/label/label.d.ts +28 -28
- package/dist/label/label.js +6 -6
- package/dist/label/native/ds-label-group.js +5 -3
- package/dist/label/native/ds-label.d.ts +2 -2
- package/dist/label/native/ds-label.js +18 -13
- package/dist/label/web/ds-label-group.js +4 -3
- package/dist/label/web/ds-label.d.ts +2 -2
- package/dist/label/web/ds-label.js +17 -13
- package/dist/label-picker/label-picker.d.ts +9 -9
- package/dist/label-picker/native/ds-label-picker.js +8 -5
- package/dist/label-picker/web/ds-label-picker.js +7 -6
- package/dist/labeled-divider/web/ds-labeled-divider.js +2 -1
- package/dist/labeled-field/labeled-field.d.ts +6 -6
- package/dist/labeled-field/web/ds-labeled-field.d.ts +4 -4
- package/dist/labeled-field/web/ds-labeled-field.js +1 -1
- package/dist/leaderboard/leaderboard.d.ts +53 -0
- package/dist/leaderboard/leaderboard.js +35 -0
- package/dist/leaderboard/web/ds-leaderboard.d.ts +14 -0
- package/dist/leaderboard/web/ds-leaderboard.js +16 -0
- package/dist/legend/legend.d.ts +28 -3
- package/dist/legend/legend.js +4 -0
- package/dist/legend/web/ds-legend.d.ts +5 -2
- package/dist/legend/web/ds-legend.js +32 -23
- package/dist/lib/chart-context.d.ts +32 -0
- package/dist/lib/chart-context.js +18 -0
- package/dist/lib/chart-curve.js +7 -1
- package/dist/lib/chart-finish.d.ts +28 -18
- package/dist/lib/chart-finish.js +25 -22
- package/dist/lib/chart-hue.d.ts +4 -3
- package/dist/lib/chart-hue.js +1 -1
- package/dist/lib/chart-library.d.ts +1 -1
- package/dist/lib/chart-library.js +1 -1
- package/dist/lib/chart-palette.d.ts +7 -7
- package/dist/lib/chart-series.d.ts +52 -7
- package/dist/lib/chart-series.js +43 -1
- package/dist/lib/chart-table.d.ts +14 -0
- package/dist/lib/chart-table.js +14 -0
- package/dist/lib/chart-ticks.d.ts +24 -0
- package/dist/lib/chart-ticks.js +33 -0
- package/dist/lib/chart-value.d.ts +2 -0
- package/dist/lib/chart-value.js +6 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.js +22 -24
- package/dist/lib/focus-order.d.ts +2 -2
- package/dist/lib/ink-child.d.ts +1 -1
- package/dist/lib/native/glass.d.ts +3 -3
- package/dist/lib/native/glass.js +1 -1
- package/dist/lib/native/text.d.ts +5 -0
- package/dist/lib/native/text.js +6 -0
- package/dist/lib/native/use-large-text.d.ts +3 -0
- package/dist/lib/native/use-large-text.js +9 -0
- package/dist/lib/overlay-stack.d.ts +11 -11
- package/dist/lib/sets-type.d.ts +1 -0
- package/dist/lib/sets-type.js +5 -0
- package/dist/lib/use-theme-epoch.d.ts +4 -4
- package/dist/lib/use-theme-epoch.native.d.ts +7 -7
- package/dist/lib/web/assign-ref.d.ts +4 -0
- package/dist/lib/web/assign-ref.js +6 -0
- package/dist/lib/web/chart-figures.d.ts +25 -0
- package/dist/lib/web/chart-figures.js +25 -0
- package/dist/lib/web/chart-finish.d.ts +20 -6
- package/dist/lib/web/chart-finish.js +16 -2
- package/dist/lib/web/density.js +5 -5
- package/dist/lib/web/focus-trap.d.ts +3 -3
- package/dist/lib/web/map-glass.js +2 -2
- package/dist/lib/web/scroll-lock.d.ts +1 -1
- package/dist/lib/web/use-anchored-surface.d.ts +6 -6
- package/dist/lib/web/use-chart-points.d.ts +23 -0
- package/dist/lib/web/use-chart-points.js +58 -0
- package/dist/lib/web/use-overlay.d.ts +3 -3
- package/dist/list-row/list-row.d.ts +6 -6
- package/dist/list-row/native/ds-list-row.js +5 -2
- package/dist/list-row/web/ds-list-row-group.d.ts +13 -0
- package/dist/list-row/web/ds-list-row-group.js +5 -0
- package/dist/list-row/web/ds-list-row.d.ts +15 -3
- package/dist/list-row/web/ds-list-row.js +12 -5
- package/dist/loading-screen/loading-screen.d.ts +10 -10
- package/dist/loading-screen/native/ds-loading-screen.d.ts +1 -1
- package/dist/loading-screen/native/ds-loading-screen.js +3 -2
- package/dist/loading-screen/web/ds-loading-screen.d.ts +1 -1
- package/dist/loading-screen/web/ds-loading-screen.js +3 -3
- package/dist/loading-state/loading-state.d.ts +9 -9
- package/dist/loading-state/web/ds-loading-state.js +1 -1
- package/dist/log-viewer/log-viewer.d.ts +20 -20
- package/dist/log-viewer/log-viewer.js +14 -2
- package/dist/log-viewer/web/ds-log-viewer.js +12 -3
- package/dist/map/map.d.ts +18 -18
- package/dist/map/map.js +2 -2
- package/dist/map/web/ds-map-fence.d.ts +2 -2
- package/dist/map/web/ds-map-fence.js +14 -13
- package/dist/map/web/ds-map-popup.d.ts +2 -2
- package/dist/map/web/ds-map-popup.js +1 -1
- package/dist/map/web/ds-map.d.ts +3 -3
- package/dist/map/web/ds-map.js +5 -4
- package/dist/map/web/map-provider.d.ts +7 -7
- package/dist/map-banner/map-banner.d.ts +4 -4
- package/dist/map-banner/map-banner.js +1 -1
- package/dist/map-banner/native/ds-map-banner.js +2 -2
- package/dist/map-banner/web/ds-map-banner.js +3 -2
- package/dist/map-controls/map-controls.d.ts +6 -6
- package/dist/map-controls/map-controls.js +1 -1
- package/dist/map-controls/native/ds-map-controls.d.ts +1 -1
- package/dist/map-controls/native/ds-map-controls.js +5 -4
- package/dist/map-controls/web/ds-map-controls.d.ts +1 -1
- package/dist/map-controls/web/ds-map-controls.js +4 -4
- package/dist/map-draw-toolbar/map-draw-toolbar.d.ts +3 -3
- package/dist/map-draw-toolbar/map-draw-toolbar.js +1 -1
- package/dist/map-draw-toolbar/web/ds-map-draw-toolbar.d.ts +1 -1
- package/dist/map-draw-toolbar/web/ds-map-draw-toolbar.js +3 -2
- package/dist/map-heatmap-layer/map-heatmap-layer.d.ts +25 -8
- package/dist/map-heatmap-layer/map-heatmap-layer.js +4 -0
- package/dist/map-heatmap-layer/web/ds-map-heatmap-layer.d.ts +19 -7
- package/dist/map-heatmap-layer/web/ds-map-heatmap-layer.js +15 -11
- package/dist/map-layers/map-layers.d.ts +1 -1
- package/dist/map-layers/map-layers.js +1 -1
- package/dist/map-layers/native/ds-map-layers.d.ts +1 -1
- package/dist/map-layers/native/ds-map-layers.js +4 -4
- package/dist/map-layers/web/ds-map-layers.d.ts +2 -2
- package/dist/map-layers/web/ds-map-layers.js +6 -5
- package/dist/map-list/map-list.d.ts +1 -1
- package/dist/map-list/web/ds-map-list.js +2 -2
- package/dist/map-marker/map-marker.d.ts +2 -2
- package/dist/map-marker/web/ds-map-marker.d.ts +1 -1
- package/dist/map-marker/web/ds-map-marker.js +4 -3
- package/dist/map-search/map-search.d.ts +2 -2
- package/dist/map-search/map-search.js +1 -1
- package/dist/map-search/native/ds-map-search.d.ts +1 -1
- package/dist/map-search/native/ds-map-search.js +4 -4
- package/dist/map-search/web/ds-map-search.d.ts +1 -1
- package/dist/map-search/web/ds-map-search.js +21 -14
- package/dist/map-search-area/map-search-area.d.ts +1 -1
- package/dist/map-search-area/map-search-area.js +1 -1
- package/dist/map-search-area/native/ds-map-search-area.d.ts +1 -1
- package/dist/map-search-area/native/ds-map-search-area.js +2 -2
- package/dist/map-search-area/web/ds-map-search-area.d.ts +1 -1
- package/dist/map-search-area/web/ds-map-search-area.js +3 -2
- package/dist/map-sheet/map-sheet.d.ts +7 -7
- package/dist/map-sheet/map-sheet.js +1 -1
- package/dist/map-sheet/native/ds-map-sheet.js +2 -2
- package/dist/map-sheet/web/ds-map-sheet.d.ts +1 -1
- package/dist/map-sheet/web/ds-map-sheet.js +14 -6
- package/dist/map-summary/web/ds-map-summary.d.ts +1 -1
- package/dist/map-summary/web/ds-map-summary.js +6 -3
- package/dist/measure.d.ts +3 -3
- package/dist/mention-input/mention-input.d.ts +13 -13
- package/dist/mention-input/native/ds-mention-input.d.ts +1 -1
- package/dist/mention-input/native/ds-mention-input.js +6 -3
- package/dist/mention-input/web/ds-mention-input.d.ts +3 -3
- package/dist/mention-input/web/ds-mention-input.js +9 -7
- package/dist/menu-button/web/ds-menu-button.d.ts +2 -2
- package/dist/menu-button/web/ds-menu-button.js +9 -3
- package/dist/merchant-avatar/merchant-avatar.d.ts +6 -3
- package/dist/merchant-avatar/merchant-avatar.js +8 -0
- package/dist/merchant-avatar/native/ds-merchant-avatar.js +10 -9
- package/dist/merchant-avatar/web/ds-merchant-avatar.js +8 -8
- package/dist/meter/meter.d.ts +8 -4
- package/dist/meter/meter.js +5 -0
- package/dist/meter/native/ds-meter.d.ts +1 -1
- package/dist/meter/native/ds-meter.js +6 -4
- package/dist/meter/web/ds-meter.d.ts +8 -2
- package/dist/meter/web/ds-meter.js +12 -5
- package/dist/metric/metric.d.ts +5 -5
- package/dist/metric/native/ds-metric.js +5 -3
- package/dist/metric/web/ds-metric.js +2 -1
- package/dist/metric-card/metric-card.d.ts +60 -0
- package/dist/metric-card/metric-card.js +18 -0
- package/dist/metric-card/web/ds-metric-card.d.ts +24 -0
- package/dist/metric-card/web/ds-metric-card.js +17 -0
- package/dist/month-picker/month-picker.d.ts +2 -0
- package/dist/month-picker/web/ds-month-picker.d.ts +1 -1
- package/dist/month-picker/web/ds-month-picker.js +5 -4
- package/dist/month-strip/month-strip.d.ts +2 -0
- package/dist/month-strip/web/ds-month-strip.d.ts +3 -3
- package/dist/month-strip/web/ds-month-strip.js +12 -7
- package/dist/morph/morph.d.ts +10 -10
- package/dist/morph/native/ds-morph.d.ts +1 -1
- package/dist/morph/native/morph-provider.d.ts +2 -2
- package/dist/morph/web/ds-morph.d.ts +4 -4
- package/dist/motion.d.ts +33 -33
- package/dist/motion.js +12 -12
- package/dist/multi-select/multi-select.d.ts +10 -10
- package/dist/multi-select/web/ds-multi-select.js +9 -8
- package/dist/native.d.ts +6 -0
- package/dist/native.js +3 -0
- package/dist/notification-list/native/ds-notification-list.d.ts +1 -1
- package/dist/notification-list/native/ds-notification-list.js +7 -4
- package/dist/notification-list/notification-list.d.ts +4 -4
- package/dist/notification-list/web/ds-notification-list.d.ts +1 -1
- package/dist/notification-list/web/ds-notification-list.js +6 -5
- package/dist/number-field/native/ds-number-field.js +15 -7
- package/dist/number-field/number-field.d.ts +7 -7
- package/dist/number-field/web/ds-number-field.js +8 -7
- package/dist/otp/native/ds-otp-field.d.ts +1 -1
- package/dist/otp/native/ds-otp-field.js +9 -3
- package/dist/otp/native/ds-otp.js +1 -1
- package/dist/otp/otp.d.ts +14 -10
- package/dist/otp/web/ds-otp-field.d.ts +2 -2
- package/dist/otp/web/ds-otp-field.js +6 -1
- package/dist/otp/web/ds-otp.d.ts +1 -1
- package/dist/otp/web/ds-otp.js +3 -3
- package/dist/overflow-menu/web/ds-overflow-menu.js +9 -3
- package/dist/page-head/page-head.d.ts +4 -4
- package/dist/page-head/web/ds-page-head.d.ts +5 -3
- package/dist/page-head/web/ds-page-head.js +6 -2
- package/dist/pagination/web/ds-pagination.js +2 -1
- package/dist/panel/native/ds-panel.js +7 -4
- package/dist/panel/panel.d.ts +14 -14
- package/dist/panel/panel.js +7 -7
- package/dist/panel/web/ds-panel.d.ts +7 -5
- package/dist/panel/web/ds-panel.js +4 -3
- package/dist/password-feedback/password-feedback.d.ts +3 -3
- package/dist/password-feedback/web/ds-password-feedback.js +2 -2
- package/dist/password-requirements/password-requirements.d.ts +5 -5
- package/dist/password-requirements/web/ds-password-requirements.js +1 -1
- package/dist/password-strength/password-strength.d.ts +5 -5
- package/dist/password-strength/web/ds-password-strength.d.ts +2 -2
- package/dist/password-strength/web/ds-password-strength.js +4 -2
- package/dist/payment-card/native/ds-payment-card.js +5 -2
- package/dist/payment-card/payment-card.d.ts +2 -2
- package/dist/payment-card/web/ds-payment-card.js +2 -1
- package/dist/people-cell/web/ds-people-cell.js +1 -1
- package/dist/person-cell/person-cell.d.ts +1 -1
- package/dist/phone-field/native/ds-phone-field.d.ts +1 -1
- package/dist/phone-field/native/ds-phone-field.js +6 -4
- package/dist/phone-field/phone-field.d.ts +13 -12
- package/dist/phone-field/phone-field.js +1 -1
- package/dist/phone-field/web/ds-phone-field.d.ts +3 -3
- package/dist/phone-field/web/ds-phone-field.js +15 -8
- package/dist/place-card/native/ds-place-card.js +15 -7
- package/dist/place-card/place-card.d.ts +18 -18
- package/dist/place-card/web/ds-place-card.js +18 -8
- package/dist/plan-chart/plan-chart.d.ts +68 -0
- package/dist/plan-chart/plan-chart.js +42 -0
- package/dist/plan-chart/web/ds-plan-chart.d.ts +10 -0
- package/dist/plan-chart/web/ds-plan-chart.js +35 -0
- package/dist/popover/native/ds-popover.d.ts +1 -1
- package/dist/popover/popover.d.ts +3 -3
- package/dist/popover/web/ds-popover.d.ts +1 -1
- package/dist/popover/web/ds-popover.js +2 -2
- package/dist/presence-indicator/native/ds-presence-indicator.js +4 -3
- package/dist/presence-indicator/presence-indicator.d.ts +3 -3
- package/dist/presence-indicator/web/ds-presence-indicator.js +2 -2
- package/dist/price-pin/native/ds-price-pin.js +3 -2
- package/dist/price-pin/price-pin.d.ts +7 -7
- package/dist/price-pin/web/ds-price-pin.js +2 -2
- package/dist/priority-indicator/native/ds-priority-indicator.d.ts +1 -1
- package/dist/priority-indicator/native/ds-priority-indicator.js +3 -2
- package/dist/priority-indicator/priority-indicator.d.ts +5 -5
- package/dist/priority-indicator/web/ds-priority-indicator.d.ts +1 -1
- package/dist/priority-indicator/web/ds-priority-indicator.js +1 -1
- package/dist/profile-card/profile-card.d.ts +1 -1
- package/dist/profile-card/web/ds-profile-card.d.ts +1 -1
- package/dist/profile-card/web/ds-profile-card.js +5 -3
- package/dist/progress-bar/native/ds-progress-bar.d.ts +1 -1
- package/dist/progress-bar/native/ds-progress-bar.js +1 -1
- package/dist/progress-bar/progress-bar.d.ts +8 -8
- package/dist/progress-bar/web/ds-progress-bar.d.ts +1 -1
- package/dist/progress-bar/web/ds-progress-bar.js +4 -4
- package/dist/progress-cell/progress-cell.js +1 -1
- package/dist/progress-cell/web/ds-progress-cell.js +4 -1
- package/dist/progress-ring/native/ds-progress-ring.js +5 -3
- package/dist/progress-ring/progress-ring.d.ts +5 -5
- package/dist/progress-ring/web/ds-progress-ring.d.ts +8 -2
- package/dist/progress-ring/web/ds-progress-ring.js +9 -3
- package/dist/promo-banner/web/ds-promo-banner.js +2 -1
- package/dist/proportion-bar/native/ds-proportion-bar.js +4 -3
- package/dist/proportion-bar/proportion-bar.d.ts +3 -3
- package/dist/proportion-bar/web/ds-proportion-bar.js +5 -5
- package/dist/props.d.ts +2 -2
- package/dist/provider-button/provider-button.d.ts +6 -6
- package/dist/provider-button/web/ds-provider-button.d.ts +8 -8
- package/dist/qr-code/qr-code.d.ts +12 -12
- package/dist/qr-code/qr-matrix.d.ts +4 -4
- package/dist/qr-code/qr-matrix.js +1 -1
- package/dist/quick-actions/native/ds-quick-actions.js +4 -3
- package/dist/quick-actions/quick-actions.d.ts +2 -2
- package/dist/quick-actions/web/ds-quick-actions.js +7 -4
- package/dist/radar-chart/radar-chart.d.ts +26 -9
- package/dist/radar-chart/radar-chart.js +20 -7
- package/dist/radar-chart/web/ds-radar-chart.js +11 -24
- package/dist/radial-progress/native/ds-radial-progress.js +18 -20
- package/dist/radial-progress/radial-progress.d.ts +10 -10
- package/dist/radial-progress/radial-progress.js +1 -1
- package/dist/radial-progress/web/ds-radial-progress.js +24 -22
- package/dist/radio/radio.d.ts +11 -11
- package/dist/radio/web/ds-radio.d.ts +1 -1
- package/dist/radio/web/ds-radio.js +9 -5
- package/dist/radio-group/radio-group.d.ts +5 -5
- package/dist/radio-group/web/ds-radio-group.d.ts +2 -2
- package/dist/rating-badge/rating-badge.js +4 -1
- package/dist/rating-badge/web/ds-rating-badge.js +1 -1
- package/dist/recipient-select/recipient-select.d.ts +8 -4
- package/dist/recipient-select/web/ds-recipient-select.d.ts +2 -2
- package/dist/recipient-select/web/ds-recipient-select.js +5 -4
- package/dist/record-panel/record-panel.d.ts +1 -1
- package/dist/record-panel/web/ds-record-panel.js +20 -12
- package/dist/recovery-actions/web/ds-recovery-actions.d.ts +1 -1
- package/dist/recovery-shell/web/ds-recovery-shell.js +1 -1
- package/dist/relative-time/native/ds-relative-time.js +2 -1
- package/dist/relative-time/relative-time.d.ts +4 -4
- package/dist/reorder-list/reorder-list.d.ts +2 -2
- package/dist/reorder-list/web/ds-reorder-list.js +3 -2
- package/dist/resend-control/resend-control.d.ts +3 -3
- package/dist/resend-control/web/ds-resend-control.js +1 -1
- package/dist/route-line/route-line.d.ts +4 -4
- package/dist/route-line/web/ds-route-line.js +1 -1
- package/dist/route-stops/route-stops.d.ts +1 -1
- package/dist/route-stops/web/ds-route-stops.js +6 -3
- package/dist/row-actions-cell/web/ds-row-actions-cell.d.ts +4 -2
- package/dist/row-actions-cell/web/ds-row-actions-cell.js +2 -2
- package/dist/rule-summary/rule-summary.d.ts +8 -8
- package/dist/rule-summary/web/ds-rule-summary.d.ts +5 -5
- package/dist/rule-summary/web/ds-rule-summary.js +3 -2
- package/dist/save-bar/save-bar.d.ts +3 -3
- package/dist/save-bar/save-bar.js +1 -1
- package/dist/save-bar/web/ds-save-bar.js +2 -1
- package/dist/scale.d.ts +19 -19
- package/dist/scanner/native/ds-scanner.d.ts +5 -5
- package/dist/scanner/native/ds-scanner.js +4 -4
- package/dist/scanner/scanner.d.ts +20 -13
- package/dist/scanner/scanner.js +12 -8
- package/dist/scatter-chart/scatter-chart.d.ts +48 -0
- package/dist/scatter-chart/scatter-chart.js +15 -0
- package/dist/scatter-chart/web/ds-scatter-chart.d.ts +9 -0
- package/dist/scatter-chart/web/ds-scatter-chart.js +34 -0
- package/dist/scrim.d.ts +2 -2
- package/dist/scrim.js +1 -1
- package/dist/search-field/search-field.d.ts +3 -3
- package/dist/search-field/web/ds-search-field.d.ts +1 -1
- package/dist/search-field/web/ds-search-field.js +25 -6
- package/dist/section/native/ds-section.d.ts +5 -0
- package/dist/section/native/ds-section.js +9 -0
- package/dist/section/section-context.d.ts +1 -0
- package/dist/section/section-context.js +2 -0
- package/dist/section/section.d.ts +9 -0
- package/dist/section/section.js +8 -0
- package/dist/section/web/ds-section.d.ts +5 -0
- package/dist/section/web/ds-section.js +8 -0
- package/dist/section-nav/section-nav.d.ts +7 -7
- package/dist/section-nav/web/ds-section-nav.d.ts +2 -2
- package/dist/section-nav/web/ds-section-nav.js +2 -2
- package/dist/segmented-control/native/ds-segmented-control.js +21 -9
- package/dist/segmented-control/segmented-control.d.ts +5 -5
- package/dist/segmented-control/web/ds-segmented-control.js +2 -2
- package/dist/select/native/ds-select.d.ts +3 -3
- package/dist/select/native/ds-select.js +7 -6
- package/dist/select/select.d.ts +14 -14
- package/dist/select/web/ds-select-option-labels.d.ts +1 -1
- package/dist/select/web/ds-select-option-labels.js +2 -1
- package/dist/select/web/ds-select.d.ts +9 -9
- package/dist/select/web/ds-select.js +37 -12
- package/dist/settings-directory/native/ds-settings-directory.js +4 -2
- package/dist/settings-directory/web/ds-settings-directory.js +2 -1
- package/dist/settings-row/native/ds-settings-row.d.ts +2 -2
- package/dist/settings-row/native/ds-settings-row.js +4 -3
- package/dist/settings-row/settings-row.d.ts +3 -3
- package/dist/settings-row/web/ds-settings-row-group.d.ts +17 -0
- package/dist/settings-row/web/ds-settings-row-group.js +7 -0
- package/dist/settings-row/web/ds-settings-row.d.ts +5 -3
- package/dist/settings-row/web/ds-settings-row.js +3 -2
- package/dist/setup-guide/setup-guide.d.ts +19 -15
- package/dist/setup-guide/setup-guide.js +1 -0
- package/dist/setup-guide/web/ds-setup-guide.d.ts +5 -2
- package/dist/setup-guide/web/ds-setup-guide.js +12 -17
- package/dist/sheet/native/ds-sheet.d.ts +2 -2
- package/dist/sheet/native/ds-sheet.js +2 -2
- package/dist/sheet/sheet.d.ts +15 -15
- package/dist/sheet/sheet.js +2 -2
- package/dist/sheet/web/ds-sheet.d.ts +3 -3
- package/dist/sheet/web/ds-sheet.js +4 -2
- package/dist/side-nav/side-nav.d.ts +38 -38
- package/dist/side-nav/web/ds-side-nav-header.d.ts +1 -1
- package/dist/side-nav/web/ds-side-nav-menu.d.ts +4 -4
- package/dist/side-nav/web/ds-side-nav-notifications.d.ts +3 -3
- package/dist/side-nav/web/ds-side-nav-notifications.js +2 -1
- package/dist/side-nav/web/ds-side-nav-primary.d.ts +2 -2
- package/dist/side-nav/web/ds-side-nav-primary.js +1 -1
- package/dist/side-nav/web/ds-side-nav-profile.d.ts +2 -2
- package/dist/side-nav/web/ds-side-nav-profile.js +2 -1
- package/dist/side-nav/web/ds-side-nav-search.d.ts +1 -1
- package/dist/side-nav/web/ds-side-nav-search.js +1 -1
- package/dist/side-nav/web/ds-side-nav.d.ts +11 -11
- package/dist/side-nav/web/ds-side-nav.js +8 -7
- package/dist/skeleton/native/ds-skeleton.js +10 -8
- package/dist/skeleton/skeleton.d.ts +25 -25
- package/dist/skeleton/skeleton.js +15 -15
- package/dist/skeleton/web/ds-skeleton.js +44 -20
- package/dist/slider/native/ds-slider.js +3 -2
- package/dist/slider/slider.d.ts +6 -6
- package/dist/slider/web/ds-slider.js +2 -2
- package/dist/small-multiples/small-multiples.d.ts +49 -0
- package/dist/small-multiples/small-multiples.js +40 -0
- package/dist/small-multiples/web/ds-small-multiples.d.ts +10 -0
- package/dist/small-multiples/web/ds-small-multiples.js +21 -0
- package/dist/sparkline/sparkline.d.ts +8 -4
- package/dist/sparkline/sparkline.js +2 -2
- package/dist/sparkline/web/ds-sparkline.js +0 -2
- package/dist/spinner/spinner.d.ts +3 -3
- package/dist/split-pane/split-pane.d.ts +13 -13
- package/dist/split-pane/web/ds-split-pane.d.ts +2 -2
- package/dist/split-pane/web/ds-split-pane.js +3 -3
- package/dist/stat-tile/native/ds-stat-tile.d.ts +1 -1
- package/dist/stat-tile/native/ds-stat-tile.js +5 -7
- package/dist/stat-tile/stat-tile.d.ts +14 -12
- package/dist/stat-tile/stat-tile.js +5 -4
- package/dist/stat-tile/web/ds-stat-tile.d.ts +5 -2
- package/dist/stat-tile/web/ds-stat-tile.js +6 -5
- package/dist/state-message/state-message.d.ts +1 -1
- package/dist/state-message/state-message.js +7 -1
- package/dist/state-message/web/ds-state-message.js +1 -1
- package/dist/status-badge/native/ds-status-badge.js +2 -2
- package/dist/status-badge/status-badge.d.ts +3 -3
- package/dist/status-badge/web/ds-status-badge.d.ts +6 -6
- package/dist/status-badge/web/ds-status-badge.js +2 -2
- package/dist/status-cell/web/ds-status-cell.d.ts +1 -1
- package/dist/status-cell/web/ds-status-cell.js +3 -2
- package/dist/status-control/status-control.d.ts +11 -9
- package/dist/status-control/status-control.js +1 -1
- package/dist/status-control/web/ds-status-control.d.ts +1 -1
- package/dist/status-control/web/ds-status-control.js +3 -3
- package/dist/status-dot/native/ds-status-dot.d.ts +1 -1
- package/dist/status-dot/native/ds-status-dot.js +4 -2
- package/dist/status-dot/status-dot.d.ts +11 -11
- package/dist/status-dot/web/ds-status-dot.d.ts +1 -1
- package/dist/status-dot/web/ds-status-dot.js +4 -2
- package/dist/status-vocabularies.d.ts +2 -2
- package/dist/stepper-form/stepper-form.d.ts +7 -7
- package/dist/stepper-form/web/ds-stepper-form.d.ts +3 -3
- package/dist/stepper-form/web/ds-stepper-form.js +3 -2
- package/dist/steps/steps.d.ts +20 -7
- package/dist/steps/steps.js +2 -1
- package/dist/steps/web/ds-steps.d.ts +1 -1
- package/dist/steps/web/ds-steps.js +58 -15
- package/dist/stick-chart/stick-chart.d.ts +2 -2
- package/dist/stick-chart/web/ds-stick-chart.d.ts +2 -2
- package/dist/stick-chart/web/ds-stick-chart.js +13 -10
- package/dist/switch/switch.d.ts +2 -2
- package/dist/switch/web/ds-switch.js +1 -1
- package/dist/system-state/system-state.d.ts +1 -1
- package/dist/system-state/web/ds-system-state.d.ts +1 -1
- package/dist/system-state/web/ds-system-state.js +2 -1
- package/dist/table-toolbar/web/ds-table-toolbar.d.ts +3 -4
- package/dist/table-toolbar/web/ds-table-toolbar.js +20 -4
- package/dist/tabs/tabs.d.ts +10 -6
- package/dist/tabs/tabs.js +13 -4
- package/dist/tabs/web/ds-tabs.d.ts +1 -1
- package/dist/tabs/web/ds-tabs.js +9 -6
- package/dist/task/web/ds-task-editor.d.ts +3 -3
- package/dist/task/web/ds-task-editor.js +2 -2
- package/dist/task-shell/task-shell.d.ts +17 -13
- package/dist/task-shell/task-shell.js +2 -1
- package/dist/task-shell/web/ds-task-shell.d.ts +9 -9
- package/dist/task-shell/web/ds-task-shell.js +12 -5
- package/dist/text/native/ds-text.d.ts +5 -1
- package/dist/text/native/ds-text.js +12 -10
- package/dist/text/text.d.ts +88 -46
- package/dist/text/text.js +76 -41
- package/dist/text/web/ds-text.d.ts +1 -1
- package/dist/text/web/ds-text.js +16 -10
- package/dist/textarea/native/ds-textarea.js +7 -6
- package/dist/textarea/web/ds-textarea.js +10 -8
- package/dist/time-range/time-range.d.ts +8 -4
- package/dist/time-range/web/ds-time-range.d.ts +1 -1
- package/dist/time-range/web/ds-time-range.js +23 -9
- package/dist/timeline/native/ds-timeline.d.ts +1 -1
- package/dist/timeline/native/ds-timeline.js +6 -4
- package/dist/timeline/timeline.d.ts +9 -9
- package/dist/timeline/web/ds-timeline.d.ts +3 -3
- package/dist/timeline/web/ds-timeline.js +4 -3
- package/dist/toast/native/ds-toast.js +1 -1
- package/dist/toast/toast.d.ts +4 -4
- package/dist/toggle-group/toggle-group.d.ts +6 -6
- package/dist/token-roles.d.ts +2 -2
- package/dist/token-roles.js +21 -4
- package/dist/tone.d.ts +9 -9
- package/dist/tone.js +1 -1
- package/dist/toolbar/toolbar.d.ts +2 -2
- package/dist/toolbar/web/ds-toolbar.d.ts +1 -1
- package/dist/toolbar/web/ds-toolbar.js +1 -1
- package/dist/tooltip/tooltip.d.ts +11 -11
- package/dist/tooltip/tooltip.js +4 -4
- package/dist/tooltip/web/ds-tooltip.d.ts +4 -4
- package/dist/tooltip/web/ds-tooltip.js +1 -1
- package/dist/track-bars/track-bars.d.ts +49 -0
- package/dist/track-bars/track-bars.js +22 -0
- package/dist/track-bars/web/ds-track-bars.d.ts +8 -0
- package/dist/track-bars/web/ds-track-bars.js +24 -0
- package/dist/trail-line/trail-line.d.ts +12 -12
- package/dist/trail-line/trail-line.js +1 -1
- package/dist/trail-line/web/ds-trail-line.d.ts +2 -2
- package/dist/trail-line/web/ds-trail-line.js +13 -12
- package/dist/tree/tree.d.ts +11 -11
- package/dist/tree/web/ds-tree.d.ts +1 -1
- package/dist/tree/web/ds-tree.js +5 -4
- package/dist/treemap/treemap.d.ts +40 -0
- package/dist/treemap/treemap.js +74 -0
- package/dist/treemap/web/ds-treemap.d.ts +14 -0
- package/dist/treemap/web/ds-treemap.js +29 -0
- package/dist/trip-replay/trip-replay.d.ts +12 -12
- package/dist/trip-replay/web/ds-trip-replay.d.ts +1 -1
- package/dist/trip-replay/web/ds-trip-replay.js +2 -1
- package/dist/two-line-cell/web/ds-two-line-cell.js +1 -1
- package/dist/value-row/native/ds-value-row.js +7 -2
- package/dist/value-row/value-row.d.ts +3 -3
- package/dist/vehicle-marker/vehicle-marker.d.ts +10 -10
- package/dist/vehicle-marker/web/ds-vehicle-marker.d.ts +1 -1
- package/dist/vehicle-marker/web/ds-vehicle-marker.js +4 -2
- package/dist/waterfall-chart/waterfall-chart.d.ts +55 -0
- package/dist/waterfall-chart/waterfall-chart.js +44 -0
- package/dist/waterfall-chart/web/ds-waterfall-chart.d.ts +14 -0
- package/dist/waterfall-chart/web/ds-waterfall-chart.js +31 -0
- package/dist/web.d.ts +36 -2
- package/dist/web.js +18 -1
- package/dist/week-schedule/web/ds-week-schedule.d.ts +1 -1
- package/dist/week-schedule/web/ds-week-schedule.js +5 -4
- package/dist/week-schedule/week-schedule.d.ts +4 -4
- package/dist/week-schedule/week-schedule.js +5 -2
- package/forced-colors.css +35 -35
- package/package.json +4 -4
- package/styles.css +2 -2
package/dist/ident/ident.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TokenRole } from '../token-roles';
|
|
2
2
|
import type { Forwarded } from '../props';
|
|
3
|
-
/** The mono face. This package's own token
|
|
3
|
+
/** The mono face. This package's own token, see the header on the divergence
|
|
4
4
|
* from the source's system stack. */
|
|
5
5
|
export declare const IDENT_FONT: "mono";
|
|
6
6
|
/** `--tracking-ident`, -0.01em. Named so an adapter cannot round it away. */
|
|
@@ -12,18 +12,18 @@ export type IdentUnderlineRole = 'quiet' | 'current';
|
|
|
12
12
|
export declare const IDENT_UNDERLINE_QUIET_STRENGTH: 0.7;
|
|
13
13
|
export interface IdentResolvedSpec {
|
|
14
14
|
ink: IdentInkRole;
|
|
15
|
-
/** `false` for plain text
|
|
15
|
+
/** `false` for plain text, the weight is inherited, not set. */
|
|
16
16
|
emphasised: boolean;
|
|
17
17
|
/** `undefined` when nothing is underlined. */
|
|
18
18
|
underline?: IdentUnderlineRole;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Resolved recipe. `interactive` is the only axis
|
|
21
|
+
* Resolved recipe. `interactive` is the only axis, everything else about an
|
|
22
22
|
* identifier is fixed, which is the point of it being an atom.
|
|
23
23
|
*/
|
|
24
24
|
export declare function identSpec(interactive: boolean): IdentResolvedSpec;
|
|
25
25
|
export interface IdentContract {
|
|
26
|
-
/** Renders as the way into the record it names: link ink, heavier
|
|
26
|
+
/** Renders as the way into the record it names: link ink, heavier and a
|
|
27
27
|
* quiet underline that strengthens on hover. The caller still supplies the
|
|
28
28
|
* element; this only says how it looks. As a link or a button, its press
|
|
29
29
|
* reaches the 44px floor under a finger. */
|
|
@@ -16,5 +16,5 @@ export function DSIdent({ as, interactive, className, ...props }) {
|
|
|
16
16
|
const element = as ?? 'span';
|
|
17
17
|
const Element = element;
|
|
18
18
|
const type = element === 'button' ? { type: props.type ?? 'button' } : undefined;
|
|
19
|
-
return (_jsx(Element, { className: cn('font-mono tracking-ident whitespace-nowrap', INK[spec.ink], spec.emphasised && 'font-semibold', spec.underline === undefined ? undefined : UNDERLINE[spec.underline], spec.underline === undefined ? undefined : 'transition-control', spec.underline === undefined ? undefined : 'focusable', spec.underline !== undefined && PRESSABLE.has(element) && COARSE_REACH, className), ...props, ...type }));
|
|
19
|
+
return (_jsx(Element, { className: cn('ident-type font-mono tracking-ident whitespace-nowrap', INK[spec.ink], spec.emphasised && 'font-semibold', spec.underline === undefined ? undefined : UNDERLINE[spec.underline], spec.underline === undefined ? undefined : 'transition-control', spec.underline === undefined ? undefined : 'focusable', spec.underline !== undefined && PRESSABLE.has(element) && COARSE_REACH, className), ...props, ...type }));
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The tone the banner always carries. Not a prop
|
|
1
|
+
/** The tone the banner always carries. Not a prop, see `IMPERSONATION_TONE`. */
|
|
2
2
|
export declare const IMPERSONATION_TONE: "warning";
|
|
3
3
|
export type ImpersonationTone = typeof IMPERSONATION_TONE;
|
|
4
4
|
/** What the banner says it is acting as. */
|
|
@@ -6,7 +6,7 @@ export type ImpersonationSubjectKind = 'user' | 'tenant';
|
|
|
6
6
|
export interface ImpersonationSubject {
|
|
7
7
|
/** Whether the session is acting as a person or as a whole customer. */
|
|
8
8
|
kind: ImpersonationSubjectKind;
|
|
9
|
-
/** The person's name or the customer's name
|
|
9
|
+
/** The person's name or the customer's name, never an id. See `assertSubjectIsNamed`. */
|
|
10
10
|
name: string;
|
|
11
11
|
}
|
|
12
12
|
export interface ImpersonationBannerContract {
|
|
@@ -7,8 +7,8 @@ export function impersonationMessage(subject) {
|
|
|
7
7
|
export function assertSubjectIsNamed(subject) {
|
|
8
8
|
const looksLikeAnId = /^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(subject.name.trim());
|
|
9
9
|
if (subject.name.trim() === '' || looksLikeAnId) {
|
|
10
|
-
throw new Error('DSImpersonationBanner needs the impersonated user or tenant NAME, not an id
|
|
11
|
-
'
|
|
10
|
+
throw new Error('DSImpersonationBanner needs the impersonated user or tenant NAME, not an id. ' +
|
|
11
|
+
'A staff member reading "acting as 3f2a…" learns nothing about whose data is on screen.');
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export const IMPERSONATION_END_LABEL = 'End';
|
|
@@ -10,20 +10,20 @@ export type DSImpersonationBannerProps = Omit<ComponentProps<'div'>, 'role' | 'a
|
|
|
10
10
|
*
|
|
11
11
|
* - <strong>Full width and above the header</strong> so it cannot be mistaken
|
|
12
12
|
* for a message belonging to the page. An impersonated session is a property
|
|
13
|
-
* of the whole window
|
|
13
|
+
* of the whole window and chrome that sat inside the content area would
|
|
14
14
|
* scroll away from a staff member halfway down a long table.
|
|
15
15
|
* - <strong>One fixed height</strong> so the shell below it does not shift when
|
|
16
16
|
* the impersonated name is long. A banner that changed height between two
|
|
17
17
|
* customers would move every control on the page with it. The height is
|
|
18
|
-
* `min-h-touch
|
|
18
|
+
* `min-h-touch`, the system's existing touch floor, rather than a new
|
|
19
19
|
* `--height-banner` token, because that floor is already taller than the `sm`
|
|
20
|
-
* button inside it
|
|
20
|
+
* button inside it and the name `truncate`s rather than wrapping. Nothing in
|
|
21
21
|
* the row can grow, so the minimum IS the height. A bespoke token would have
|
|
22
22
|
* to be kept in step with the button ladder by hand.
|
|
23
23
|
* - <strong>`warning`, always.</strong> See `IMPERSONATION_TONE` for why this is
|
|
24
24
|
* not a prop.
|
|
25
25
|
*
|
|
26
|
-
* <strong>There is no control here to START an impersonation
|
|
26
|
+
* <strong>There is no control here to START an impersonation and none may be
|
|
27
27
|
* added.</strong> The UX spec's OQ-142 disposition defers any such UI to the
|
|
28
28
|
* product owner and confirms this banner is the required half. The only action
|
|
29
29
|
* is the one that ends a session already running.
|
|
@@ -32,7 +32,7 @@ export type DSImpersonationBannerProps = Omit<ComponentProps<'div'>, 'role' | 'a
|
|
|
32
32
|
* from the first paint of an impersonated session and stays there: a standing
|
|
33
33
|
* statement of what this window is, not an event that just happened. A
|
|
34
34
|
* `role="status"` would be announced again on every re-render of a bar that
|
|
35
|
-
* never changes
|
|
35
|
+
* never changes and it holds a button, which an unnamed live region is a poor
|
|
36
36
|
* home for. `alert` is worse: assertive, it would interrupt a screen-reader user
|
|
37
37
|
* mid-sentence on every navigation. A region named by its own sentence is
|
|
38
38
|
* reachable on demand and read once, the answer `DSEnvironmentBanner` gives for
|
|
@@ -4,8 +4,9 @@ import { useId } from 'react';
|
|
|
4
4
|
import { IMPERSONATION_END_ACCESSIBLE_LABEL, IMPERSONATION_END_LABEL, assertSubjectIsNamed, impersonationMessage, } from '../impersonation-banner';
|
|
5
5
|
import { DSButton } from '../../button/web/ds-button';
|
|
6
6
|
import { cn } from '../../lib/cn';
|
|
7
|
+
import { DSText } from '../../text/web/ds-text';
|
|
7
8
|
export function DSImpersonationBanner({ subject, onEnd, ending = false, className, ...props }) {
|
|
8
9
|
assertSubjectIsNamed(subject);
|
|
9
10
|
const messageId = useId();
|
|
10
|
-
return (_jsxs("div", { role: "region", "aria-labelledby": messageId, "data-tone": "warning", "data-forced-colors": "tone", "data-testid": "impersonation-banner", className: cn('flex min-h-touch w-full shrink-0 items-center gap-3 border-b px-4', 'bg-warning-surface border-warning-surface', className), ...props, children: [_jsx(UserRoundCog, { "aria-hidden": true, className: "size-4 shrink-0 text-warning" }), _jsx("p",
|
|
11
|
+
return (_jsxs("div", { role: "region", "aria-labelledby": messageId, "data-tone": "warning", "data-forced-colors": "tone", "data-testid": "impersonation-banner", className: cn('flex min-h-touch w-full shrink-0 items-center gap-3 border-b px-4', 'bg-warning-surface border-warning-surface', className), ...props, children: [_jsx(UserRoundCog, { "aria-hidden": true, className: "size-4 shrink-0 text-warning" }), _jsx(DSText, { as: "p", variant: "body-sm-strong", id: messageId, title: impersonationMessage(subject), className: "truncate text-card-foreground", children: impersonationMessage(subject) }), _jsx(DSButton, { type: "button", variant: "outline", size: "sm", className: "ms-auto shrink-0", onClick: onEnd, pending: ending, "aria-label": IMPERSONATION_END_ACCESSIBLE_LABEL, children: IMPERSONATION_END_LABEL })] }));
|
|
11
12
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -58,8 +58,12 @@ export { OTP_FILLS, OTP_GROUP_NEEDS_A_LABEL, OTP_TONES, otpAcceptedChars, otpAct
|
|
|
58
58
|
export type { OtpBorderRole, OtpCellContract, OtpCellSpec, OtpFieldContract, OtpFill, OtpGroupContract, OtpInkRole, OtpSurfaceRole, OtpTone, } from './otp/otp';
|
|
59
59
|
export { TOKEN_ROLES } from './token-roles';
|
|
60
60
|
export type { BorderRole, SurfaceRole, TokenRole } from './token-roles';
|
|
61
|
-
export { TEXT_TONE_SPECS, TEXT_TONES, TEXT_VARIANT_SPECS, TEXT_VARIANTS, textSpec, } from './text/text';
|
|
61
|
+
export { TEXT_FULL_SCALE_MAX_PX, TEXT_SCALED_CEILING_PX, TEXT_TONE_SPECS, TEXT_TONES, TEXT_VARIANT_PX, TEXT_VARIANT_SPECS, TEXT_VARIANTS, textMaxScale, textSpec, } from './text/text';
|
|
62
62
|
export type { TextContract, TextInkRole, TextResolvedSpec, TextRecipe, TextTone, TextToneSpec, TextVariant, TextVariantSpec, } from './text/text';
|
|
63
|
+
export { HEADING_DEFAULT_LEVEL, HEADING_DEFAULT_SIZE, HEADING_LEVELS, HEADING_SIZES, headingLevel, } from './heading/heading';
|
|
64
|
+
export type { HeadingContract, HeadingLevel, HeadingSize } from './heading/heading';
|
|
65
|
+
export { sectionLevel } from './section/section';
|
|
66
|
+
export type { SectionContract } from './section/section';
|
|
63
67
|
export { ICON_FRAME_EDGE, ICON_FRAME_MARK_SIZE_SPEC, ICON_FRAME_SIZE_SPECS, ICON_FRAME_SIZES, ICON_FRAME_TONE_SPECS, ICON_FRAME_TONES, iconFrameSpec, } from './icon-frame/icon-frame';
|
|
64
68
|
export type { IconFrameBox, IconFrameContract, IconFrameEdgeRole, IconFrameMarkRole, IconFrameRadius, IconFrameResolvedSpec, IconFrameSize, IconFrameSizeSpec, IconFrameSurfaceRole, IconFrameTone, IconFrameToneSpec, } from './icon-frame/icon-frame';
|
|
65
69
|
export { COUNT_BADGE_TONES, countBadgeSpec, countBadgeText, countBadgeToneSpec, } from './count-badge/count-badge';
|
|
@@ -94,7 +98,7 @@ export { RADIO_GROUP_NEEDS_A_LABEL } from './radio-group/radio-group';
|
|
|
94
98
|
export type { RadioGroupContract, RadioGroupOption, RadioGroupOptions, } from './radio-group/radio-group';
|
|
95
99
|
export { TOAST_DEFAULT_STATE, TOAST_GAP, TOAST_STATES, toastBottom, toastSpec, } from './toast/toast';
|
|
96
100
|
export type { ToastContract, ToastInkRole, ToastResolvedSpec, ToastState, ToastSurfaceRole, } from './toast/toast';
|
|
97
|
-
export { METER_SIZES, meterChipPlacement, meterSpec } from './meter/meter';
|
|
101
|
+
export { METER_SIZES, meterChipPlacement, meterSpec, meterTargetPercent } from './meter/meter';
|
|
98
102
|
export type { MeterContract, MeterFillRole, MeterResolvedSpec, MeterSize, MeterTrackRole, } from './meter/meter';
|
|
99
103
|
export { PROPORTION_BAND_KINDS, PROPORTION_BAND_STOPPED_FILL, proportionBandSpec, visibleProportionBands, } from './proportion-bar/proportion-bar';
|
|
100
104
|
export type { ProportionBand, ProportionBandColourRole, ProportionBandKind, ProportionBandShape, ProportionBandSpec, ProportionBarContract, } from './proportion-bar/proportion-bar';
|
|
@@ -104,6 +108,8 @@ export { DELTA_MINUS, DELTA_SENTIMENTS, DELTA_SENTIMENT_SPECS, deltaSpec, deltaT
|
|
|
104
108
|
export type { DeltaContract, DeltaInkRole, DeltaResolvedSpec, DeltaSentiment, DeltaSentimentSpec, } from './delta/delta';
|
|
105
109
|
export { isStatTileFootDelta, statTileSpec } from './stat-tile/stat-tile';
|
|
106
110
|
export type { StatTileBorderRole, StatTileContract, StatTileLabelInkRole, StatTileResolvedSpec, StatTileSurfaceRole, } from './stat-tile/stat-tile';
|
|
111
|
+
export { METRIC_CARD_CHART_HEIGHT_PX, METRIC_CARD_STATES, metricCardSpec } from './metric-card/metric-card';
|
|
112
|
+
export type { MetricCardBorderRole, MetricCardContract, MetricCardLabelInkRole, MetricCardQuietInkRole, MetricCardResolvedSpec, MetricCardState, MetricCardSurfaceRole, } from './metric-card/metric-card';
|
|
107
113
|
export { FIGURE_TYPE, figureLabel, figureSpec } from './figure/figure';
|
|
108
114
|
export type { FigureContract, FigureLabelInkRole, FigureResolvedSpec, FigureValueInkRole, } from './figure/figure';
|
|
109
115
|
export { assertNoPrimaryActionInPanelFoot, panelSpec, PANEL_BORDER_ROLES, PANEL_FOOT_RULE, PANEL_FOOT_RULE_REASON, PANEL_SURFACE_ROLES, } from './panel/panel';
|
|
@@ -118,7 +124,7 @@ export { DROPDOWN_MENU_BORDER_ROLES, DROPDOWN_MENU_ITEM_HOVER_SURFACE_ROLES, DRO
|
|
|
118
124
|
export type { DropdownMenuBorderRole, DropdownMenuContract, DropdownMenuItemHoverSurfaceRole, DropdownMenuItemInkRole, DropdownMenuItemSpec, DropdownMenuResolvedSpec, DropdownMenuSurfaceRole, DropdownMenuItem, DropdownMenuDisabledInkRole, DropdownMenuEntry, DropdownMenuItemStateSpec, DropdownMenuKeyIntent, DropdownMenuLeaf, DropdownMenuChoice, DropdownMenuItemRole, DropdownMenuCheckInkRole, DropdownMenuRow, DropdownMenuSection, DropdownMenuSeparator, } from './dropdown-menu/dropdown-menu';
|
|
119
125
|
export { SHEET_BACKDROP_ROLES, SHEET_BORDER_ROLES, SHEET_CLOSE_INK_ROLES, SHEET_CLOSE_SURFACE_ROLES, SHEET_DIRTY_CLOSE_IGNORED, SHEET_SCRIM_OPACITY, SHEET_SCRIM_SOLID_OPACITY, SHEET_SURFACE_ROLES, SHEET_TITLE_INK_ROLES, sheetSpec, } from './sheet/sheet';
|
|
120
126
|
export type { SheetBackdropRole, SheetBorderRole, SheetCloseInkRole, SheetCloseSurfaceRole, SheetContract, SheetResolvedSpec, SheetSubInkRole, SheetSurfaceRole, SheetTitleInkRole, } from './sheet/sheet';
|
|
121
|
-
export { BOTTOM_NAV_ACTION_RISE, BOTTOM_NAV_ACTION_SIZE, BOTTOM_NAV_CONTAINER_BORDER_ROLES, BOTTOM_NAV_CONTAINER_SURFACE_ROLES, BOTTOM_NAV_COUNT_MAX, BOTTOM_NAV_CURRENT_EDGE_ROLES, BOTTOM_NAV_CURRENT_WASH_ROLES, BOTTOM_NAV_DEFAULT_STATE, BOTTOM_NAV_HEIGHT, BOTTOM_NAV_ICON_SIZE, BOTTOM_NAV_ICON_ROLES, BOTTOM_NAV_LABEL_MAX_SCALE, BOTTOM_NAV_STATES, bottomNavClearance, bottomNavCount, bottomNavItemName, bottomNavItemSpec, bottomNavSpec, } from './bottom-nav/bottom-nav';
|
|
127
|
+
export { BOTTOM_NAV_ACTION_RISE, BOTTOM_NAV_ACTION_SIZE, BOTTOM_NAV_CONTAINER_BORDER_ROLES, BOTTOM_NAV_CONTAINER_SURFACE_ROLES, BOTTOM_NAV_COUNT_MAX, BOTTOM_NAV_CURRENT_EDGE_ROLES, BOTTOM_NAV_CURRENT_WASH_ROLES, BOTTOM_NAV_DEFAULT_STATE, BOTTOM_NAV_HEIGHT, BOTTOM_NAV_ICON_SIZE, BOTTOM_NAV_ICON_STROKE, BOTTOM_NAV_ICON_ROLES, BOTTOM_NAV_LABEL_MAX_SCALE, BOTTOM_NAV_STATES, bottomNavClearance, bottomNavCount, bottomNavItemName, bottomNavItemSpec, bottomNavSpec, } from './bottom-nav/bottom-nav';
|
|
122
128
|
export type { BottomNavContainerBorderRole, BottomNavContainerSurfaceRole, BottomNavContract, BottomNavCurrentEdgeRole, BottomNavCurrentIconRole, BottomNavCurrentWashRole, BottomNavIconRole, BottomNavItem, BottomNavItemSpec, BottomNavResolvedSpec, BottomNavRestIconRole, BottomNavState, } from './bottom-nav/bottom-nav';
|
|
123
129
|
export { TASK_SHELL_ASIDE_SIDES, TASK_SHELL_ASIDE_WIDTH_PX, TASK_SHELL_BAR_MIN_HEIGHT_PX, TASK_SHELL_INSET_PX, TASK_SHELL_NEEDS_A_LABEL, TASK_SHELL_SPLIT_WIDTH_PX, TASK_SHELL_CLOSE_LABEL, TASK_SHELL_BACK_LABEL, taskShellSpec, taskShellStepText, taskShellStepFraction, } from './task-shell/task-shell';
|
|
124
130
|
export type { TaskShellAsideSide, TaskShellAsideBorderRole, TaskShellAsideSurfaceRole, TaskShellBorderRole, TaskShellEdgeRole, TaskShellTitleInkRole, TaskShellProgressTrackRole, TaskShellProgressFillRole, TaskShellResolvedSpec, TaskShellSurfaceRole, } from './task-shell/task-shell';
|
|
@@ -155,14 +161,14 @@ export { INTERACTIVE_MOTION_CEILING_MS, SPRING_PRESETS, springAt, springCurve, s
|
|
|
155
161
|
export type { SpringName, SpringPhysics, SpringPreset } from './motion';
|
|
156
162
|
export { GLASS_BLUR_WASH_OPACITY, GLASS_MATERIALS, glassMaterial, glassWash } from './glass';
|
|
157
163
|
export type { GlassCapabilities, GlassMaterial } from './glass';
|
|
158
|
-
export { CHART_FINISH_HERO_SCRIM, CHART_FINISH_PARTNER, CHART_FINISH_RUNS, CHART_FINISH_STEP_SHARE, CHART_FINISH_STRENGTHS, CHART_FINISH_SWEEP, CHART_FINISH_TOKENS, chartFinishGridLines, chartFinishHeroFill, chartFinishRun, chartFinishRunAt, chartFinishRunGradient, chartFinishRunLead, chartFinishStagger, chartFinishStep, chartFinishSweepAt, chartFinishTweenFrom, } from './lib/chart-finish';
|
|
164
|
+
export { CHART_FINISH_HERO_SCRIM, CHART_FINISH_PARTNER, CHART_FINISH_RUNS, CHART_FINISH_STEP_SHARE, CHART_FINISH_STRENGTHS, CHART_FINISH_RUN_TOKENS, CHART_FINISH_SWEEP, CHART_FINISH_SWEEP_TOKENS, CHART_FINISH_TOKENS, chartFinishGridLines, chartFinishHeroFill, chartFinishRun, chartFinishRunAt, chartFinishRunGradient, chartFinishRunLead, chartFinishStagger, chartFinishStep, chartFinishSweepAt, chartFinishTweenFrom, } from './lib/chart-finish';
|
|
159
165
|
export type { ChartFinishHue, ChartFinishRun, ChartFinishStrengths } from './lib/chart-finish';
|
|
160
166
|
export { CHART_LIBRARY_BAND_GAP, CHART_LIBRARY_CAP_RADIUS_PX, CHART_LIBRARY_GLOW, CHART_LIBRARY_GLOW_ANGLE_DEG, CHART_LIBRARY_HEIGHTS, CHART_LIBRARY_LIFT, CHART_LIBRARY_RADAR_FILL, CHART_LIBRARY_RADAR_FILL_FLOOR, CHART_LIBRARY_RING_FIGURE_MIN, CHART_LIBRARY_RING_GAP_PX, CHART_LIBRARY_RING_HOLE, CHART_LIBRARY_RING_SIZES, CHART_LIBRARY_RING_START_DEG, CHART_LIBRARY_STROKE_PX, CHART_LIBRARY_TEXT, chartLibraryGlowReversed, chartLibraryLift, } from './lib/chart-library';
|
|
161
167
|
export type { ChartLibraryGlow, ChartLibraryHeight, ChartLibraryRingSize } from './lib/chart-library';
|
|
162
168
|
export { CHART_PALETTE_LIMITS, CHART_PALETTE_VISIONS, chartPaletteAudit, chartPaletteContrast, chartPaletteDistance, chartPaletteHex, chartPaletteLightness, chartPaletteMix, chartPaletteParse, chartPaletteSimulate, } from './lib/chart-palette';
|
|
163
169
|
export type { ChartPaletteAudit, ChartPaletteOklch, ChartPaletteVision } from './lib/chart-palette';
|
|
164
170
|
export { cn } from './lib/cn';
|
|
165
|
-
export { CHECK_OPTION_DESCRIPTION_INK,
|
|
171
|
+
export { CHECK_OPTION_DESCRIPTION_INK, CHECK_OPTION_INSET_PX, CHECK_OPTION_META_INK, } from './check-option/check-option';
|
|
166
172
|
export { RECIPIENT_EMPTY_INK, RECIPIENT_KIND_LABEL, } from './recipient-select/recipient-select';
|
|
167
173
|
export type { RecipientOption, RecipientSelectContract, } from './recipient-select/recipient-select';
|
|
168
174
|
export type { CheckOptionContract } from './check-option/check-option';
|
|
@@ -177,8 +183,8 @@ export type { DateFieldContract } from './date-field/date-field';
|
|
|
177
183
|
export { DAY_PICKER_BORDER, DAY_PICKER_CHOSEN_INK, DAY_PICKER_CHOSEN_TINT_PERCENT, DAY_PICKER_DAY_MIN_PX, DAY_PICKER_HOVER_TINT_PERCENT, DAY_PICKER_NEEDS_A_LABEL, DAY_PICKER_REST_INK, DAY_PICKER_TARGET, DAY_PICKER_TINT_INK, daySpec, } from './day-picker/day-picker';
|
|
178
184
|
export type { DayPickerContract, DayPickerDay, DayPickerInkRole, DayResolvedSpec, } from './day-picker/day-picker';
|
|
179
185
|
export type { CalendarDate, CalendarRange, DatePickerPanelContract, IsoDateRange } from './date-picker/date-picker';
|
|
180
|
-
export { CHART_KINDS, CHART_MAX_SERIES, chartIssues } from './chart/chart';
|
|
181
|
-
export type { ChartContract, ChartKind, ChartSeries } from './chart/chart';
|
|
186
|
+
export { CHART_KINDS, CHART_MAX_SERIES, chartIssues, describeMarks } from './chart/chart';
|
|
187
|
+
export type { ChartContract, ChartEvent, ChartKind, ChartReference, ChartSeries } from './chart/chart';
|
|
182
188
|
export { SCANNER_CAPTURE_SHUTTER_LABEL, SCANNER_FAILURES, SCANNER_MANUAL_SHUTTER_AFTER, SCANNER_SUBJECTS, SCANNER_WAYS_OUT, scannerTypedValue, } from './scanner/scanner';
|
|
183
189
|
export type { ScannerAlternative, ScannerContract, ScannerFailure, ScannerSubject, ScannerWayOut, } from './scanner/scanner';
|
|
184
190
|
export { SETUP_GUIDE_CORNERS, SETUP_GUIDE_STEP_STATES, setupGuideProgress, setupGuideSpec, } from './setup-guide/setup-guide';
|
|
@@ -222,11 +228,11 @@ export { parseNumberInput, numberDecimalPlaces, clampNumberInput, stepNumber, fo
|
|
|
222
228
|
export type { NumberInputParse, NumberStepOptions, NumberFieldSettled, NumberFieldContract, } from './number-field/number-field';
|
|
223
229
|
export { SLIDER_SIZES, SLIDER_PAGE_STEPS, SLIDER_TRACK, SLIDER_FILL, SLIDER_THUMB, SLIDER_THUMB_EDGE, SLIDER_MARK_INK, clampSliderValue, snapSliderValue, sliderPositionOf, sliderValueAt, sliderKeyAction, sliderKeyValue, orderSliderRange, moveRangeThumb, nearestThumb, thumbLimits, sliderMarks, sliderThumbLabels, sliderSpec, } from './slider/slider';
|
|
224
230
|
export type { SliderSize, SliderMark, SliderBounds, SliderKeyAction, SliderTrackRole, SliderFillRole, SliderThumbRole, SliderThumbEdgeRole, SliderMarkInkRole, SliderResolvedSpec, SliderBaseContract, SliderSingleContract, SliderRangeContract, SliderContract, } from './slider/slider';
|
|
225
|
-
export { LEGEND_MARKS, LEGEND_STEPS, LEGEND_STEP_OPACITY, legendSpec, legendToggle, } from './legend/legend';
|
|
231
|
+
export { LEGEND_MARKS, LEGEND_STEPS, LEGEND_STEP_OPACITY, legendRampSpec, legendSpec, legendToggle, } from './legend/legend';
|
|
226
232
|
export type { LegendContract, LegendItem, LegendItemSpec, LegendMark, LegendStep, } from './legend/legend';
|
|
227
233
|
export { BAR_CHART_BAND_GAP, BAR_CHART_KEYS, BAR_CHART_MAX_SERIES, BAR_CHART_MIN_BANDS, BAR_CHART_ORIENTATIONS, BAR_CHART_VIEWBOX, BAR_CHART_CAP_RADIUS_PX, BAR_CHART_LIFT_PX, barChartCapKey, barChartCapPath, barChartCapRadii, barChartNearest, barChartSpec, barChartStep, } from './bar-chart/bar-chart';
|
|
228
234
|
export type { BarChartBar, BarChartContract, BarChartOrientation, BarChartResolvedSpec, BarChartSegment, BarChartSeries, } from './bar-chart/bar-chart';
|
|
229
|
-
export { HEATMAP_STEPS, HEATMAP_ZERO_EDGE, heatmapBucketLabel, heatmapMove, heatmapSpec, heatmapStep, } from './heatmap/heatmap';
|
|
235
|
+
export { HEATMAP_STEPS, HEATMAP_ZERO_EDGE, heatmapBucketLabel, heatmapMove, heatmapSpec, heatmapTotals, heatmapStep, } from './heatmap/heatmap';
|
|
230
236
|
export type { HeatmapBucket, HeatmapCell, HeatmapContract, HeatmapPosition, HeatmapResolvedSpec, HeatmapStep, HeatmapZeroEdgeRole, } from './heatmap/heatmap';
|
|
231
237
|
export { WEEK_SCHEDULE_ALL_DAY_TEXT, WEEK_SCHEDULE_AXIS_HOURS, WEEK_SCHEDULE_CLOSED_TEXT, WEEK_SCHEDULE_DAY_MINUTES, WEEK_SCHEDULE_TRACK, WEEK_SCHEDULE_WINDOW, weekScheduleAxis, weekScheduleClock, weekScheduleMinutes, weekSchedulePhrases, weekScheduleSpans, weekScheduleSpec, } from './week-schedule/week-schedule';
|
|
232
238
|
export type { WeekScheduleContract, WeekScheduleDay, WeekScheduleResolvedSpec, WeekScheduleRow, WeekScheduleSpan, WeekScheduleTick, WeekScheduleTrackRole, WeekScheduleWindow, WeekScheduleWindowRole, } from './week-schedule/week-schedule';
|
|
@@ -424,7 +430,7 @@ export { MAP_LIST_KEY_STEP_PX, MAP_LIST_PAGE_ROWS, MAP_LIST_STACK_BELOW_PX, MAP_
|
|
|
424
430
|
export type { MapListContract, MapListLayout, MapListSeparatorAction, MapListView, } from './map-list/map-list';
|
|
425
431
|
export { MAP_DRAW_TOOLBAR_INK, MAP_DRAW_TOOLBAR_LABELS, MAP_DRAW_TOOLBAR_MEASURE_STROKE, MAP_DRAW_TOOLBAR_SURFACE, MAP_DRAW_TOOLBAR_TOOLS, mapDrawToolbarKey, mapDrawToolbarMeasure, mapDrawToolbarMeasureText, mapDrawToolbarRove, } from './map-draw-toolbar/map-draw-toolbar';
|
|
426
432
|
export type { MapDrawToolbarContract, MapDrawToolbarKeyAction, MapDrawToolbarMeasure, MapDrawToolbarTool, } from './map-draw-toolbar/map-draw-toolbar';
|
|
427
|
-
export { MAP_HEATMAP_LAYER_HOTSPOT_M, MAP_HEATMAP_LAYER_INTENSITY, MAP_HEATMAP_LAYER_MAX_OPACITY, MAP_HEATMAP_LAYER_MIN_OPACITY, MAP_HEATMAP_LAYER_RADIUS_PX, mapHeatmapLayerCells, mapHeatmapLayerHotspotText, mapHeatmapLayerHotspots, mapHeatmapLayerOpacity, mapHeatmapLayerShareText, mapHeatmapLayerSummary, } from './map-heatmap-layer/map-heatmap-layer';
|
|
433
|
+
export { MAP_HEATMAP_LAYER_HOTSPOT_M, MAP_HEATMAP_LAYER_INTENSITY, MAP_HEATMAP_LAYER_MAX_OPACITY, MAP_HEATMAP_LAYER_MIN_OPACITY, MAP_HEATMAP_LAYER_RADIUS_PX, mapHeatmapLayerCells, mapHeatmapLayerHotspotText, mapHeatmapLayerHotspots, mapHeatmapLayerKeySpec, mapHeatmapLayerOpacity, mapHeatmapLayerShareText, mapHeatmapLayerSummary, } from './map-heatmap-layer/map-heatmap-layer';
|
|
428
434
|
export type { MapHeatmapLayerCell, MapHeatmapLayerContract, MapHeatmapLayerHotspot, MapHeatmapLayerNoun, MapHeatmapLayerPoint, } from './map-heatmap-layer/map-heatmap-layer';
|
|
429
435
|
export { SETTINGS_ROW_DESCRIPTION_INK, SETTINGS_ROW_DIVIDER, SETTINGS_ROW_LABEL_INK, SETTINGS_ROW_SURFACE, SETTINGS_ROW_UNSAVED_INK, SETTINGS_ROW_UNSAVED_TEXT, settingsRowControlState, settingsRowDescribedBy, settingsRowLearnMoreLabel, } from './settings-row/settings-row';
|
|
430
436
|
export type { SettingsRowContract, SettingsRowControlState, SettingsRowDescriptionInkRole, SettingsRowDividerRole, SettingsRowLabelInkRole, SettingsRowUnsavedInkRole, } from './settings-row/settings-row';
|
|
@@ -443,11 +449,13 @@ export type { FleetIconName, FleetIconNode, FleetIconSpec } from './icon/fleet-i
|
|
|
443
449
|
export { FLAG_ASPECT, FLAG_CODES, FLAG_EDGE, FLAG_EDGE_MIN_RATIO, FLAG_HEIGHT_PX, FLAG_PLACEHOLDER_SURFACE, FLAG_RADII, FLAG_SHAPES, FLAG_SIZES, FLAG_UNKNOWN_LABEL, flagCountryName, flagSpec, normalizeFlagCode, } from './flag/flag';
|
|
444
450
|
export type { FlagCode, FlagContract, FlagEdgeRole, FlagPlaceholderSurfaceRole, FlagRadius, FlagResolvedSpec, FlagShape, FlagSize, } from './flag/flag';
|
|
445
451
|
export { FLAG_COUNTRIES } from './flag/flag-codes';
|
|
452
|
+
export { BANK_LOGOS, BANK_LOGO_EDGE, BANK_LOGO_IDS, BANK_LOGO_INK_COLOUR, BANK_LOGO_KINDS, BANK_LOGO_MIN_RATIO, BANK_LOGO_RADIUS, BANK_LOGO_SIZES, BANK_LOGO_SIZE_PX, BANK_LOGO_UNKNOWN_INK, BANK_LOGO_UNKNOWN_LABEL, BANK_LOGO_UNKNOWN_SURFACE, bankLogoMonogramUnits, bankLogoSpec, findBankLogo, } from './bank-logo/bank-logo';
|
|
453
|
+
export type { BankLogoContract, BankLogoEdgeRole, BankLogoEntry, BankLogoId, BankLogoInk, BankLogoKind, BankLogoRadius, BankLogoResolvedSpec, BankLogoSize, BankLogoUnknownInkRole, BankLogoUnknownSurfaceRole, } from './bank-logo/bank-logo';
|
|
446
454
|
export { SPARKLINE_HEIGHT, SPARKLINE_PAD, SPARKLINE_TONES, SPARKLINE_TONE_INK, SPARKLINE_WIDTH, sparklinePoints, } from './sparkline/sparkline';
|
|
447
455
|
export type { SparklineContract, SparklineInkRole, SparklineTone } from './sparkline/sparkline';
|
|
448
456
|
export { MONTH_NAMES, isMonth, monthCanStep, monthLabel, monthStep, } from './month-picker/month-picker';
|
|
449
457
|
export type { MonthPickerContract } from './month-picker/month-picker';
|
|
450
|
-
export { DONUT_BOX, DONUT_CIRCUMFERENCE, DONUT_GAP, DONUT_MAX_SEGMENTS, DONUT_RADIUS, DONUT_STROKE, donutArcs, donutPercents, donutTotal, donutVisible, } from './donut-chart/donut-chart';
|
|
458
|
+
export { DONUT_BOX, DONUT_CIRCUMFERENCE, DONUT_GAP, DONUT_MAX_SEGMENTS, DONUT_RADIUS, DONUT_STROKE, donutArcs, donutParts, donutPercents, donutTotal, donutVisible, } from './donut-chart/donut-chart';
|
|
451
459
|
export type { DonutArc, DonutChartContract, DonutSegment } from './donut-chart/donut-chart';
|
|
452
460
|
export { GAUGE_SHAPES, GAUGE_STATES, gaugeFilledTicks, gaugeSpec, gaugeTick, gaugeTickCount, gaugeValueText, } from './gauge/gauge';
|
|
453
461
|
export type { GaugeContract, GaugeShape, GaugeSpec, GaugeState } from './gauge/gauge';
|
|
@@ -502,3 +510,23 @@ export { amountCellMinor, amountCellRand } from './amount-cell/amount-cell';
|
|
|
502
510
|
export type { AmountCellContract } from './amount-cell/amount-cell';
|
|
503
511
|
export { PEOPLE_CELL_EMPTY, PEOPLE_CELL_MAX, peopleCellName } from './people-cell/people-cell';
|
|
504
512
|
export type { PeopleCellContract, PeopleCellPerson } from './people-cell/people-cell';
|
|
513
|
+
export { LEADERBOARD_DEFAULT_LIMIT, LEADERBOARD_MAX_LIMIT, leaderboardSpec } from './leaderboard/leaderboard';
|
|
514
|
+
export type { LeaderboardContract, LeaderboardEntry, LeaderboardLeadFillRole, LeaderboardRankInkRole, LeaderboardResolvedSpec, LeaderboardRestFillRole, LeaderboardRow, LeaderboardTrackRole, } from './leaderboard/leaderboard';
|
|
515
|
+
export { WATERFALL_DEFAULT_HEIGHT_PX, WATERFALL_FILLS, waterfallFigure, waterfallSpec } from './waterfall-chart/waterfall-chart';
|
|
516
|
+
export type { WaterfallBar, WaterfallChartContract, WaterfallDirection, WaterfallResolvedSpec, WaterfallStep, } from './waterfall-chart/waterfall-chart';
|
|
517
|
+
export { SCATTER_DEFAULT_HEIGHT_PX, scatterSpec } from './scatter-chart/scatter-chart';
|
|
518
|
+
export type { ScatterChartContract, ScatterPlaced, ScatterPoint, ScatterResolvedSpec, } from './scatter-chart/scatter-chart';
|
|
519
|
+
export { dumbbellSpec } from './dumbbell-chart/dumbbell-chart';
|
|
520
|
+
export type { DumbbellChartContract, DumbbellPlaced, DumbbellResolvedSpec, DumbbellRow, } from './dumbbell-chart/dumbbell-chart';
|
|
521
|
+
export { BULLET_HEADROOM, BULLET_MAX_BANDS, BULLET_STATES, bulletBands, bulletScaleMax, bulletSpec, bulletState, } from './bullet-chart/bullet-chart';
|
|
522
|
+
export type { BulletBand, BulletChartContract, BulletPlaced, BulletResolvedSpec, BulletRow, BulletState, } from './bullet-chart/bullet-chart';
|
|
523
|
+
export { PLAN_KINDS, planKind, planSpec } from './plan-chart/plan-chart';
|
|
524
|
+
export type { PlanChartContract, PlanFlag, PlanKind, PlanPeriod, PlanPlaced, PlanResolvedSpec, } from './plan-chart/plan-chart';
|
|
525
|
+
export { trackSpec } from './track-bars/track-bars';
|
|
526
|
+
export type { TrackBarsContract, TrackPlaced, TrackResolvedSpec, TrackRow } from './track-bars/track-bars';
|
|
527
|
+
export { HISTOGRAM_MAX_BINS, HISTOGRAM_MAX_EDGE_LABELS, HISTOGRAM_TARGET_BINS, histogramEdgeLabels, histogramSpec, histogramStep, } from './histogram/histogram';
|
|
528
|
+
export type { HistogramBin, HistogramContract, HistogramResolvedSpec } from './histogram/histogram';
|
|
529
|
+
export { TREEMAP_DEFAULT_HEIGHT_PX, TREEMAP_SERIES, treemapSpec } from './treemap/treemap';
|
|
530
|
+
export type { TreemapBox, TreemapContract, TreemapItem, TreemapResolvedSpec, TreemapSeries, } from './treemap/treemap';
|
|
531
|
+
export { SMALL_MULTIPLES_COLUMNS, SMALL_MULTIPLES_VIEWBOX, smallMultiplesSpec } from './small-multiples/small-multiples';
|
|
532
|
+
export type { SmallMultiplesColumns, SmallMultiplesContract, SmallMultiplesItem, SmallMultiplesPanel, SmallMultiplesResolvedSpec, } from './small-multiples/small-multiples';
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,9 @@ export { LABELED_FIELD_TONES, labeledFieldSpec } from './labeled-field/labeled-f
|
|
|
28
28
|
export { BUTTON_GROUP_LAYOUTS, BUTTON_GROUP_LEADING_POSITION, BUTTON_GROUP_PRIMARY_POSITION, BUTTON_GROUP_STACK_BELOW_PX, buttonGroupSpec, } from './button-group/button-group';
|
|
29
29
|
export { OTP_FILLS, OTP_GROUP_NEEDS_A_LABEL, OTP_TONES, otpAcceptedChars, otpActiveIndex, otpBackspaceAt, otpCaret, otpCaretAfterInput, otpCaretAfterKey, otpCellFill, otpCellSpec, otpFromInput, otpIsComplete, otpNormalized, otpWithBackspace, otpWithInput, } from './otp/otp';
|
|
30
30
|
export { TOKEN_ROLES } from './token-roles';
|
|
31
|
-
export { TEXT_TONE_SPECS, TEXT_TONES, TEXT_VARIANT_SPECS, TEXT_VARIANTS, textSpec, } from './text/text';
|
|
31
|
+
export { TEXT_FULL_SCALE_MAX_PX, TEXT_SCALED_CEILING_PX, TEXT_TONE_SPECS, TEXT_TONES, TEXT_VARIANT_PX, TEXT_VARIANT_SPECS, TEXT_VARIANTS, textMaxScale, textSpec, } from './text/text';
|
|
32
|
+
export { HEADING_DEFAULT_LEVEL, HEADING_DEFAULT_SIZE, HEADING_LEVELS, HEADING_SIZES, headingLevel, } from './heading/heading';
|
|
33
|
+
export { sectionLevel } from './section/section';
|
|
32
34
|
export { ICON_FRAME_EDGE, ICON_FRAME_MARK_SIZE_SPEC, ICON_FRAME_SIZE_SPECS, ICON_FRAME_SIZES, ICON_FRAME_TONE_SPECS, ICON_FRAME_TONES, iconFrameSpec, } from './icon-frame/icon-frame';
|
|
33
35
|
export { COUNT_BADGE_TONES, countBadgeSpec, countBadgeText, countBadgeToneSpec, } from './count-badge/count-badge';
|
|
34
36
|
export { spinnerLabel, spinnerSpec, SPINNER_SIZES } from './spinner/spinner';
|
|
@@ -46,11 +48,12 @@ export { SWITCH_DISABLED_SPEC, SWITCH_KNOB_SIZE, SWITCH_KNOB_TRAVEL, SWITCH_MIN_
|
|
|
46
48
|
export { CHIP_LABEL_SPEC, CHIP_REMOVE_SPEC, CHIP_TOGGLE_MIN_HEIGHT, CHIP_TOGGLE_SPECS, CHIP_VARIANTS, chipRemoveLabel, chipSpec, } from './chip/chip';
|
|
47
49
|
export { RADIO_GROUP_NEEDS_A_LABEL } from './radio-group/radio-group';
|
|
48
50
|
export { TOAST_DEFAULT_STATE, TOAST_GAP, TOAST_STATES, toastBottom, toastSpec, } from './toast/toast';
|
|
49
|
-
export { METER_SIZES, meterChipPlacement, meterSpec } from './meter/meter';
|
|
51
|
+
export { METER_SIZES, meterChipPlacement, meterSpec, meterTargetPercent } from './meter/meter';
|
|
50
52
|
export { PROPORTION_BAND_KINDS, PROPORTION_BAND_STOPPED_FILL, proportionBandSpec, visibleProportionBands, } from './proportion-bar/proportion-bar';
|
|
51
53
|
export { METRIC_SIZES, METRIC_SIZE_SPECS, metricSpec } from './metric/metric';
|
|
52
54
|
export { DELTA_MINUS, DELTA_SENTIMENTS, DELTA_SENTIMENT_SPECS, deltaSpec, deltaText, } from './delta/delta';
|
|
53
55
|
export { isStatTileFootDelta, statTileSpec } from './stat-tile/stat-tile';
|
|
56
|
+
export { METRIC_CARD_CHART_HEIGHT_PX, METRIC_CARD_STATES, metricCardSpec } from './metric-card/metric-card';
|
|
54
57
|
export { FIGURE_TYPE, figureLabel, figureSpec } from './figure/figure';
|
|
55
58
|
export { assertNoPrimaryActionInPanelFoot, panelSpec, PANEL_BORDER_ROLES, PANEL_FOOT_RULE, PANEL_FOOT_RULE_REASON, PANEL_SURFACE_ROLES, } from './panel/panel';
|
|
56
59
|
export { LIST_ROW_ACTION_REVEALS, LIST_ROW_CARD_EDGE, LIST_ROW_CARD_SURFACE, LIST_ROW_CURRENT_MARK, LIST_ROW_DISABLED_INK, LIST_ROW_LABELS_MAX, LIST_ROW_SELECTED_EDGE, LIST_ROW_SELECTED_SURFACE, listRowControl, listRowDescribedBy, listRowSpec, listRowStateSpec, } from './list-row/list-row';
|
|
@@ -58,7 +61,7 @@ export { VALUE_ROW_TONES, valueRowLabel, valueRowSpec } from './value-row/value-
|
|
|
58
61
|
export { factSpec } from './fact/fact';
|
|
59
62
|
export { DROPDOWN_MENU_BORDER_ROLES, DROPDOWN_MENU_ITEM_HOVER_SURFACE_ROLES, DROPDOWN_MENU_ITEM_INK_ROLES, DROPDOWN_MENU_ITEM_SPECS, DROPDOWN_MENU_NEEDS_A_NAME, DROPDOWN_MENU_NEEDS_A_RELATIVE_ANCHOR, DROPDOWN_MENU_NEEDS_A_TRIGGER, DROPDOWN_MENU_SURFACE_ROLES, dropdownMenuItemSpec, dropdownMenuSpec, DROPDOWN_MENU_DANGER_SECTION, DROPDOWN_MENU_DISABLED_INK, DROPDOWN_MENU_DISABLED_INK_ROLES, DROPDOWN_MENU_KEY_INTENTS, dropdownMenuAriaShortcut, dropdownMenuHasSubmenu, dropdownMenuInitialIndex, dropdownMenuIsTypeaheadKey, dropdownMenuItemStateSpec, dropdownMenuItemRole, dropdownMenuItemStaysOpen, dropdownMenuChoiceItems, DROPDOWN_MENU_CHECK_INK, DROPDOWN_MENU_TYPEAHEAD_RESET_MS, dropdownMenuKeyIntent, dropdownMenuMove, dropdownMenuRowIsDestructive, dropdownMenuSections, dropdownMenuTypeahead, dropdownMenuWalk, isDropdownMenuSeparator, } from './dropdown-menu/dropdown-menu';
|
|
60
63
|
export { SHEET_BACKDROP_ROLES, SHEET_BORDER_ROLES, SHEET_CLOSE_INK_ROLES, SHEET_CLOSE_SURFACE_ROLES, SHEET_DIRTY_CLOSE_IGNORED, SHEET_SCRIM_OPACITY, SHEET_SCRIM_SOLID_OPACITY, SHEET_SURFACE_ROLES, SHEET_TITLE_INK_ROLES, sheetSpec, } from './sheet/sheet';
|
|
61
|
-
export { BOTTOM_NAV_ACTION_RISE, BOTTOM_NAV_ACTION_SIZE, BOTTOM_NAV_CONTAINER_BORDER_ROLES, BOTTOM_NAV_CONTAINER_SURFACE_ROLES, BOTTOM_NAV_COUNT_MAX, BOTTOM_NAV_CURRENT_EDGE_ROLES, BOTTOM_NAV_CURRENT_WASH_ROLES, BOTTOM_NAV_DEFAULT_STATE, BOTTOM_NAV_HEIGHT, BOTTOM_NAV_ICON_SIZE, BOTTOM_NAV_ICON_ROLES, BOTTOM_NAV_LABEL_MAX_SCALE, BOTTOM_NAV_STATES, bottomNavClearance, bottomNavCount, bottomNavItemName, bottomNavItemSpec, bottomNavSpec, } from './bottom-nav/bottom-nav';
|
|
64
|
+
export { BOTTOM_NAV_ACTION_RISE, BOTTOM_NAV_ACTION_SIZE, BOTTOM_NAV_CONTAINER_BORDER_ROLES, BOTTOM_NAV_CONTAINER_SURFACE_ROLES, BOTTOM_NAV_COUNT_MAX, BOTTOM_NAV_CURRENT_EDGE_ROLES, BOTTOM_NAV_CURRENT_WASH_ROLES, BOTTOM_NAV_DEFAULT_STATE, BOTTOM_NAV_HEIGHT, BOTTOM_NAV_ICON_SIZE, BOTTOM_NAV_ICON_STROKE, BOTTOM_NAV_ICON_ROLES, BOTTOM_NAV_LABEL_MAX_SCALE, BOTTOM_NAV_STATES, bottomNavClearance, bottomNavCount, bottomNavItemName, bottomNavItemSpec, bottomNavSpec, } from './bottom-nav/bottom-nav';
|
|
62
65
|
export { TASK_SHELL_ASIDE_SIDES, TASK_SHELL_ASIDE_WIDTH_PX, TASK_SHELL_BAR_MIN_HEIGHT_PX, TASK_SHELL_INSET_PX, TASK_SHELL_NEEDS_A_LABEL, TASK_SHELL_SPLIT_WIDTH_PX, TASK_SHELL_CLOSE_LABEL, TASK_SHELL_BACK_LABEL, taskShellSpec, taskShellStepText, taskShellStepFraction, } from './task-shell/task-shell';
|
|
63
66
|
export { APP_SHELL_CONTENT_MAX_WIDTH_PX, APP_SHELL_EDGE, APP_SHELL_EDGE_ROLES, APP_SHELL_GUTTER_PX, APP_SHELL_RAIL_MIN_WIDTH_PX, APP_SHELL_REGIONS, APP_SHELL_SURFACE, APP_SHELL_SURFACE_ROLES, appShellSpec, } from './app-shell/app-shell';
|
|
64
67
|
export { SIDE_NAV_CURRENT_ICON, SIDE_NAV_CURRENT_INK, SIDE_NAV_EDGE, SIDE_NAV_EDGE_ROLES, SIDE_NAV_HEADING_INK, SIDE_NAV_HOVER_SURFACE, SIDE_NAV_ICON_ROLES, SIDE_NAV_ICON_SIZE, SIDE_NAV_INK_ROLES, SIDE_NAV_LOGO_SIZE, SIDE_NAV_RAIL_WIDTH_PX, SIDE_NAV_REST_ICON, SIDE_NAV_REST_INK, SIDE_NAV_ROW_HEIGHT_PX, SIDE_NAV_SECTION_PLACEMENTS, SIDE_NAV_SURFACE, SIDE_NAV_SURFACE_ROLES, SIDE_NAV_WIDTH_PX, SIDE_NAV_WIDTH_STEP_PX, clampSideNavWidth, isSideNavGroup, isSideNavLogo, isSideNavMenuSeparator, sideNavCollapseLabel, sideNavExpandedFor, sideNavFlyoutOpensFromKey, sideNavGroupContains, sideNavGroupIsCurrent, sideNavLinkName, sideNavMenuHasSubmenu, sideNavMenuInitialIndex, sideNavMenuItems, sideNavMenuKeyIntent, sideNavMenuOrder, sideNavMonogram, sideNavMoreLabel, sideNavNotificationsMark, sideNavNotificationsName, sideNavRailMark, sideNavRevealScroll, sideNavRowSpec, sideNavSectionsByPlacement, sideNavShortcutAria, sideNavSpec, sideNavWidthAfterKey, toggleSideNavGroup, toggleSideNavSection, SIDE_NAV_NOTIFICATIONS_MAX, SIDE_NAV_LABEL_DOTS_MAX, sideNavNotificationsBadge, sideNavRowPress, } from './side-nav/side-nav';
|
|
@@ -77,18 +80,18 @@ export { STEP_CONNECTOR_WIDTH, STEP_MARKER_DIAMETER, STEP_STATES, STEPS_NEEDS_A_
|
|
|
77
80
|
export { PRESS_SCALES, pressScale, NAV_TINT_INK, NAV_CURRENT_TINT_PERCENT, NAV_HOVER_TINT_PERCENT, NAV_CURRENT_INK, NAV_REST_INK, NAV_LIST_INK, NAV_HEADING_INK, } from './interaction';
|
|
78
81
|
export { INTERACTIVE_MOTION_CEILING_MS, SPRING_PRESETS, springAt, springCurve, springPhysics, springSettleMs, } from './motion';
|
|
79
82
|
export { GLASS_BLUR_WASH_OPACITY, GLASS_MATERIALS, glassMaterial, glassWash } from './glass';
|
|
80
|
-
export { CHART_FINISH_HERO_SCRIM, CHART_FINISH_PARTNER, CHART_FINISH_RUNS, CHART_FINISH_STEP_SHARE, CHART_FINISH_STRENGTHS, CHART_FINISH_SWEEP, CHART_FINISH_TOKENS, chartFinishGridLines, chartFinishHeroFill, chartFinishRun, chartFinishRunAt, chartFinishRunGradient, chartFinishRunLead, chartFinishStagger, chartFinishStep, chartFinishSweepAt, chartFinishTweenFrom, } from './lib/chart-finish';
|
|
83
|
+
export { CHART_FINISH_HERO_SCRIM, CHART_FINISH_PARTNER, CHART_FINISH_RUNS, CHART_FINISH_STEP_SHARE, CHART_FINISH_STRENGTHS, CHART_FINISH_RUN_TOKENS, CHART_FINISH_SWEEP, CHART_FINISH_SWEEP_TOKENS, CHART_FINISH_TOKENS, chartFinishGridLines, chartFinishHeroFill, chartFinishRun, chartFinishRunAt, chartFinishRunGradient, chartFinishRunLead, chartFinishStagger, chartFinishStep, chartFinishSweepAt, chartFinishTweenFrom, } from './lib/chart-finish';
|
|
81
84
|
export { CHART_LIBRARY_BAND_GAP, CHART_LIBRARY_CAP_RADIUS_PX, CHART_LIBRARY_GLOW, CHART_LIBRARY_GLOW_ANGLE_DEG, CHART_LIBRARY_HEIGHTS, CHART_LIBRARY_LIFT, CHART_LIBRARY_RADAR_FILL, CHART_LIBRARY_RADAR_FILL_FLOOR, CHART_LIBRARY_RING_FIGURE_MIN, CHART_LIBRARY_RING_GAP_PX, CHART_LIBRARY_RING_HOLE, CHART_LIBRARY_RING_SIZES, CHART_LIBRARY_RING_START_DEG, CHART_LIBRARY_STROKE_PX, CHART_LIBRARY_TEXT, chartLibraryGlowReversed, chartLibraryLift, } from './lib/chart-library';
|
|
82
85
|
export { CHART_PALETTE_LIMITS, CHART_PALETTE_VISIONS, chartPaletteAudit, chartPaletteContrast, chartPaletteDistance, chartPaletteHex, chartPaletteLightness, chartPaletteMix, chartPaletteParse, chartPaletteSimulate, } from './lib/chart-palette';
|
|
83
86
|
export { cn } from './lib/cn';
|
|
84
|
-
export { CHECK_OPTION_DESCRIPTION_INK,
|
|
87
|
+
export { CHECK_OPTION_DESCRIPTION_INK, CHECK_OPTION_INSET_PX, CHECK_OPTION_META_INK, } from './check-option/check-option';
|
|
85
88
|
export { RECIPIENT_EMPTY_INK, RECIPIENT_KIND_LABEL, } from './recipient-select/recipient-select';
|
|
86
89
|
export { DATE_PICKER_MODES, DATE_PICKER_PRESET_ACTIVE_INK, DATE_PICKER_PRESET_ACTIVE_TINT_PERCENT, DATE_PICKER_PRESET_HOVER_TINT_PERCENT, DATE_PICKER_PRESET_INK, EMPTY_RANGE, canApply, datePickerPresetSpec, orderedRange, presetIsActive, pressDay, } from './date-picker/date-picker';
|
|
87
90
|
export { CALENDAR_DAY_INK, CALENDAR_DAY_MIN_WIDTH_PX, CALENDAR_HOVER_TINT_PERCENT, CALENDAR_KEYS, CALENDAR_MONTH_NAMES, CALENDAR_MUTED_INK, CALENDAR_RANGE_INK, CALENDAR_SELECTED_INK, CALENDAR_SELECTED_TINT_PERCENT, CALENDAR_TARGET, CALENDAR_TINT_INK, CALENDAR_TODAY_RING, CALENDAR_WEEK_START, CALENDAR_WEEKDAY_NAMES, DAYS_IN_WEEK, DAY_SELECTIONS, WEEK_STARTS, calendarDayLabel, calendarDaySpec, calendarKeyTarget, calendarTabStop, daySelection, daysInMonth, firstColumn, isBefore, isoAddDays, isoAddMonths, isoDate, isoParts, monthGrid, stepMonth, weekdayHeadings, } from './calendar/calendar';
|
|
88
91
|
export { DATE_ENTRY_STATES, DATE_ORDERS, DATE_ORDER_SEGMENTS, DATE_SEGMENTS, DATE_SEGMENT_LENGTH, DATE_SEGMENT_PLACEHOLDER, EMPTY_DATE_PARTS, dateEntryState, dateInputSpec, fromISODate, isRealDate, nextSegment, toISODate, typeIntoSegment, } from './date-input/date-input';
|
|
89
92
|
export { calendarMonth, todayIso } from './date-field/date-field';
|
|
90
93
|
export { DAY_PICKER_BORDER, DAY_PICKER_CHOSEN_INK, DAY_PICKER_CHOSEN_TINT_PERCENT, DAY_PICKER_DAY_MIN_PX, DAY_PICKER_HOVER_TINT_PERCENT, DAY_PICKER_NEEDS_A_LABEL, DAY_PICKER_REST_INK, DAY_PICKER_TARGET, DAY_PICKER_TINT_INK, daySpec, } from './day-picker/day-picker';
|
|
91
|
-
export { CHART_KINDS, CHART_MAX_SERIES, chartIssues } from './chart/chart';
|
|
94
|
+
export { CHART_KINDS, CHART_MAX_SERIES, chartIssues, describeMarks } from './chart/chart';
|
|
92
95
|
export { SCANNER_CAPTURE_SHUTTER_LABEL, SCANNER_FAILURES, SCANNER_MANUAL_SHUTTER_AFTER, SCANNER_SUBJECTS, SCANNER_WAYS_OUT, scannerTypedValue, } from './scanner/scanner';
|
|
93
96
|
export { SETUP_GUIDE_CORNERS, SETUP_GUIDE_STEP_STATES, setupGuideProgress, setupGuideSpec, } from './setup-guide/setup-guide';
|
|
94
97
|
export { ACCOUNT_SWITCHER_PANEL_MARK_PX, ACCOUNT_SWITCHER_PANEL_WIDTH_PX, ACCOUNT_SWITCHER_TRIGGER_MARK_PX, accountSwitcherSpec, } from './account-switcher/account-switcher';
|
|
@@ -111,9 +114,9 @@ export { RELATIVE_TIME_LOCALES, RELATIVE_TIME_TICK_MS, RELATIVE_TIME_EMPTY, RELA
|
|
|
111
114
|
export { KBD_PLATFORMS, KBD_SIZES, KBD_SURFACE, KBD_INK, KBD_BORDER, KBD_RADIUS, shortcutPlatform, parseShortcut, shortcutKeys, shortcutLabel, keySpoken, shortcutSpoken, keysSpoken, kbdSpec, } from './kbd/kbd';
|
|
112
115
|
export { parseNumberInput, numberDecimalPlaces, clampNumberInput, stepNumber, formatNumberInput, settleNumberInput, numberFieldValueText, numberFieldStepperLabels, } from './number-field/number-field';
|
|
113
116
|
export { SLIDER_SIZES, SLIDER_PAGE_STEPS, SLIDER_TRACK, SLIDER_FILL, SLIDER_THUMB, SLIDER_THUMB_EDGE, SLIDER_MARK_INK, clampSliderValue, snapSliderValue, sliderPositionOf, sliderValueAt, sliderKeyAction, sliderKeyValue, orderSliderRange, moveRangeThumb, nearestThumb, thumbLimits, sliderMarks, sliderThumbLabels, sliderSpec, } from './slider/slider';
|
|
114
|
-
export { LEGEND_MARKS, LEGEND_STEPS, LEGEND_STEP_OPACITY, legendSpec, legendToggle, } from './legend/legend';
|
|
117
|
+
export { LEGEND_MARKS, LEGEND_STEPS, LEGEND_STEP_OPACITY, legendRampSpec, legendSpec, legendToggle, } from './legend/legend';
|
|
115
118
|
export { BAR_CHART_BAND_GAP, BAR_CHART_KEYS, BAR_CHART_MAX_SERIES, BAR_CHART_MIN_BANDS, BAR_CHART_ORIENTATIONS, BAR_CHART_VIEWBOX, BAR_CHART_CAP_RADIUS_PX, BAR_CHART_LIFT_PX, barChartCapKey, barChartCapPath, barChartCapRadii, barChartNearest, barChartSpec, barChartStep, } from './bar-chart/bar-chart';
|
|
116
|
-
export { HEATMAP_STEPS, HEATMAP_ZERO_EDGE, heatmapBucketLabel, heatmapMove, heatmapSpec, heatmapStep, } from './heatmap/heatmap';
|
|
119
|
+
export { HEATMAP_STEPS, HEATMAP_ZERO_EDGE, heatmapBucketLabel, heatmapMove, heatmapSpec, heatmapTotals, heatmapStep, } from './heatmap/heatmap';
|
|
117
120
|
export { WEEK_SCHEDULE_ALL_DAY_TEXT, WEEK_SCHEDULE_AXIS_HOURS, WEEK_SCHEDULE_CLOSED_TEXT, WEEK_SCHEDULE_DAY_MINUTES, WEEK_SCHEDULE_TRACK, WEEK_SCHEDULE_WINDOW, weekScheduleAxis, weekScheduleClock, weekScheduleMinutes, weekSchedulePhrases, weekScheduleSpans, weekScheduleSpec, } from './week-schedule/week-schedule';
|
|
118
121
|
export { FUNNEL_STEP_ACTION_KINDS, formatFunnelPercent, funnelSpec } from './funnel/funnel';
|
|
119
122
|
export { FILTER_CHIP_SEGMENTS, FILTER_CHIP_MAX_LISTED, FILTER_CHIP_MAX_VALUE_CHARS, FILTER_CHIP_ATTR, FILTER_CHIP_PLACEHOLDER, FILTER_CHIP_SURFACE, FILTER_CHIP_BORDER, FILTER_CHIP_RULE, FILTER_CHIP_QUIET_INK, FILTER_CHIP_VALUE_INK, FILTER_CHIP_HOVER_SURFACE, filterChipValueSummary, filterChipLabel, filterChipRemoveLabel, filterChipKeyAction, filterChipSpec, FILTER_CHIP_LABEL_DOTS_MAX, FILTER_CHIP_LABEL_NOUN, filterChipLabelSegment, filterChipLabelValues, } from './filter-chip/filter-chip';
|
|
@@ -212,7 +215,7 @@ export { TRIP_REPLAY_EVENT_KINDS, TRIP_REPLAY_EVENT_WORDS, TRIP_REPLAY_INK, TRIP
|
|
|
212
215
|
export { ROUTE_LINE_CHIP_INK, ROUTE_LINE_CHIP_SURFACE, ROUTE_LINE_DRIVEN, ROUTE_LINE_HALO, ROUTE_LINE_OFF_ROUTE_M, ROUTE_LINE_REMAINING, ROUTE_LINE_STATES, routeLineEtaText, routeLineIsOffRoute, routeLineName, routeLineProgress, routeLineSpec, routeLineSplit, routeLineStateText, } from './route-line/route-line';
|
|
213
216
|
export { MAP_LIST_KEY_STEP_PX, MAP_LIST_PAGE_ROWS, MAP_LIST_STACK_BELOW_PX, MAP_LIST_VIEWS, MAP_LIST_WIDTH, mapListClampWidth, mapListCountText, mapListLayout, mapListRowMove, mapListSeparatorKey, mapListSeparatorText, } from './map-list/map-list';
|
|
214
217
|
export { MAP_DRAW_TOOLBAR_INK, MAP_DRAW_TOOLBAR_LABELS, MAP_DRAW_TOOLBAR_MEASURE_STROKE, MAP_DRAW_TOOLBAR_SURFACE, MAP_DRAW_TOOLBAR_TOOLS, mapDrawToolbarKey, mapDrawToolbarMeasure, mapDrawToolbarMeasureText, mapDrawToolbarRove, } from './map-draw-toolbar/map-draw-toolbar';
|
|
215
|
-
export { MAP_HEATMAP_LAYER_HOTSPOT_M, MAP_HEATMAP_LAYER_INTENSITY, MAP_HEATMAP_LAYER_MAX_OPACITY, MAP_HEATMAP_LAYER_MIN_OPACITY, MAP_HEATMAP_LAYER_RADIUS_PX, mapHeatmapLayerCells, mapHeatmapLayerHotspotText, mapHeatmapLayerHotspots, mapHeatmapLayerOpacity, mapHeatmapLayerShareText, mapHeatmapLayerSummary, } from './map-heatmap-layer/map-heatmap-layer';
|
|
218
|
+
export { MAP_HEATMAP_LAYER_HOTSPOT_M, MAP_HEATMAP_LAYER_INTENSITY, MAP_HEATMAP_LAYER_MAX_OPACITY, MAP_HEATMAP_LAYER_MIN_OPACITY, MAP_HEATMAP_LAYER_RADIUS_PX, mapHeatmapLayerCells, mapHeatmapLayerHotspotText, mapHeatmapLayerHotspots, mapHeatmapLayerKeySpec, mapHeatmapLayerOpacity, mapHeatmapLayerShareText, mapHeatmapLayerSummary, } from './map-heatmap-layer/map-heatmap-layer';
|
|
216
219
|
export { SETTINGS_ROW_DESCRIPTION_INK, SETTINGS_ROW_DIVIDER, SETTINGS_ROW_LABEL_INK, SETTINGS_ROW_SURFACE, SETTINGS_ROW_UNSAVED_INK, SETTINGS_ROW_UNSAVED_TEXT, settingsRowControlState, settingsRowDescribedBy, settingsRowLearnMoreLabel, } from './settings-row/settings-row';
|
|
217
220
|
export { EDITABLE_ROW_CANCEL_TEXT, EDITABLE_ROW_CHANGE_TEXT, EDITABLE_ROW_DONE_TEXT, EDITABLE_ROW_EDITOR_BORDER, EDITABLE_ROW_REMOVE_TEXT, editableRowCancelName, editableRowDescription, editableRowIds, editableRowToggleName, } from './editable-row/editable-row';
|
|
218
221
|
export { FORM_SECTION_DEFAULT_HEADING_LEVEL, FORM_SECTION_HEADING_LEVELS, FORM_SECTION_TITLE_VARIANT, formSectionHeading, } from './form-section/form-section';
|
|
@@ -222,9 +225,10 @@ export { ICON_GRID, ICON_STROKE_STRATEGY, ICON_STROKE_WIDTH } from './icon/icon'
|
|
|
222
225
|
export { FLEET_ICON_NAMES, FLEET_ICONS } from './icon/fleet-icons';
|
|
223
226
|
export { FLAG_ASPECT, FLAG_CODES, FLAG_EDGE, FLAG_EDGE_MIN_RATIO, FLAG_HEIGHT_PX, FLAG_PLACEHOLDER_SURFACE, FLAG_RADII, FLAG_SHAPES, FLAG_SIZES, FLAG_UNKNOWN_LABEL, flagCountryName, flagSpec, normalizeFlagCode, } from './flag/flag';
|
|
224
227
|
export { FLAG_COUNTRIES } from './flag/flag-codes';
|
|
228
|
+
export { BANK_LOGOS, BANK_LOGO_EDGE, BANK_LOGO_IDS, BANK_LOGO_INK_COLOUR, BANK_LOGO_KINDS, BANK_LOGO_MIN_RATIO, BANK_LOGO_RADIUS, BANK_LOGO_SIZES, BANK_LOGO_SIZE_PX, BANK_LOGO_UNKNOWN_INK, BANK_LOGO_UNKNOWN_LABEL, BANK_LOGO_UNKNOWN_SURFACE, bankLogoMonogramUnits, bankLogoSpec, findBankLogo, } from './bank-logo/bank-logo';
|
|
225
229
|
export { SPARKLINE_HEIGHT, SPARKLINE_PAD, SPARKLINE_TONES, SPARKLINE_TONE_INK, SPARKLINE_WIDTH, sparklinePoints, } from './sparkline/sparkline';
|
|
226
230
|
export { MONTH_NAMES, isMonth, monthCanStep, monthLabel, monthStep, } from './month-picker/month-picker';
|
|
227
|
-
export { DONUT_BOX, DONUT_CIRCUMFERENCE, DONUT_GAP, DONUT_MAX_SEGMENTS, DONUT_RADIUS, DONUT_STROKE, donutArcs, donutPercents, donutTotal, donutVisible, } from './donut-chart/donut-chart';
|
|
231
|
+
export { DONUT_BOX, DONUT_CIRCUMFERENCE, DONUT_GAP, DONUT_MAX_SEGMENTS, DONUT_RADIUS, DONUT_STROKE, donutArcs, donutParts, donutPercents, donutTotal, donutVisible, } from './donut-chart/donut-chart';
|
|
228
232
|
export { GAUGE_SHAPES, GAUGE_STATES, gaugeFilledTicks, gaugeSpec, gaugeTick, gaugeTickCount, gaugeValueText, } from './gauge/gauge';
|
|
229
233
|
export { RATING_DEFAULT_MAX, ratingText } from './rating-badge/rating-badge';
|
|
230
234
|
export { eventDateParts, eventSubline } from './event-row/event-row';
|
|
@@ -251,3 +255,13 @@ export { LIST_PAGE_WIDTHS } from './list-page/list-page';
|
|
|
251
255
|
export { MENU_BUTTON_VARIANTS } from './menu-button/menu-button';
|
|
252
256
|
export { amountCellMinor, amountCellRand } from './amount-cell/amount-cell';
|
|
253
257
|
export { PEOPLE_CELL_EMPTY, PEOPLE_CELL_MAX, peopleCellName } from './people-cell/people-cell';
|
|
258
|
+
export { LEADERBOARD_DEFAULT_LIMIT, LEADERBOARD_MAX_LIMIT, leaderboardSpec } from './leaderboard/leaderboard';
|
|
259
|
+
export { WATERFALL_DEFAULT_HEIGHT_PX, WATERFALL_FILLS, waterfallFigure, waterfallSpec } from './waterfall-chart/waterfall-chart';
|
|
260
|
+
export { SCATTER_DEFAULT_HEIGHT_PX, scatterSpec } from './scatter-chart/scatter-chart';
|
|
261
|
+
export { dumbbellSpec } from './dumbbell-chart/dumbbell-chart';
|
|
262
|
+
export { BULLET_HEADROOM, BULLET_MAX_BANDS, BULLET_STATES, bulletBands, bulletScaleMax, bulletSpec, bulletState, } from './bullet-chart/bullet-chart';
|
|
263
|
+
export { PLAN_KINDS, planKind, planSpec } from './plan-chart/plan-chart';
|
|
264
|
+
export { trackSpec } from './track-bars/track-bars';
|
|
265
|
+
export { HISTOGRAM_MAX_BINS, HISTOGRAM_MAX_EDGE_LABELS, HISTOGRAM_TARGET_BINS, histogramEdgeLabels, histogramSpec, histogramStep, } from './histogram/histogram';
|
|
266
|
+
export { TREEMAP_DEFAULT_HEIGHT_PX, TREEMAP_SERIES, treemapSpec } from './treemap/treemap';
|
|
267
|
+
export { SMALL_MULTIPLES_COLUMNS, SMALL_MULTIPLES_VIEWBOX, smallMultiplesSpec } from './small-multiples/small-multiples';
|
|
@@ -12,7 +12,7 @@ export interface InlineEditKeyModifiers {
|
|
|
12
12
|
/** Ctrl or Command held. */
|
|
13
13
|
mod: boolean;
|
|
14
14
|
}
|
|
15
|
-
/** What a key does inside the field. `undefined` means the field keeps it
|
|
15
|
+
/** What a key does inside the field. `undefined` means the field keeps it, typing, a new line. */
|
|
16
16
|
export declare function inlineEditKeyIntent(key: string, { multiline, mod }: InlineEditKeyModifiers): InlineEditKeyIntent | undefined;
|
|
17
17
|
/** Whether a draft differs from the saved value enough to be worth a write. */
|
|
18
18
|
export declare function inlineEditShouldCommit(draft: string, value: string): boolean;
|
|
@@ -35,9 +35,9 @@ export declare const INLINE_EDIT_TITLE_HEIGHT: "roomy";
|
|
|
35
35
|
export declare const INLINE_EDIT_TITLE_PADDING_X: 3;
|
|
36
36
|
/** Whether the field opens on several lines: never for a title. */
|
|
37
37
|
export declare function inlineEditIsMultiline(appearance: InlineEditAppearance, multiline: boolean): boolean;
|
|
38
|
-
/** The resting text's accessible name
|
|
38
|
+
/** The resting text's accessible name, "Edit policy name, Long haul limit". */
|
|
39
39
|
export declare function inlineEditTriggerLabel(label: string, shown: string, placeholder: string): string;
|
|
40
|
-
/** What the live region says for a state
|
|
40
|
+
/** What the live region says for a state and `undefined` while there is nothing to say. */
|
|
41
41
|
export declare function inlineEditAnnouncement(state: InlineEditState, label: string): string | undefined;
|
|
42
42
|
export declare const INLINE_EDIT_INK = "foreground";
|
|
43
43
|
export declare const INLINE_EDIT_PLACEHOLDER_INK = "muted-foreground";
|
|
@@ -50,7 +50,7 @@ export type InlineEditInkRole = typeof INLINE_EDIT_INK | typeof INLINE_EDIT_PLAC
|
|
|
50
50
|
export type InlineEditStatusInkRole = typeof INLINE_EDIT_SAVED_INK | typeof INLINE_EDIT_FAILED_INK | typeof INLINE_EDIT_STATUS_INK;
|
|
51
51
|
export interface InlineEditResolvedSpec {
|
|
52
52
|
ink: InlineEditInkRole;
|
|
53
|
-
/** The status line's ink
|
|
53
|
+
/** The status line's ink and `undefined` when there is no status to show. */
|
|
54
54
|
statusInk?: InlineEditStatusInkRole;
|
|
55
55
|
}
|
|
56
56
|
export declare function inlineEditSpec(state: InlineEditState, empty: boolean, disabled?: boolean): InlineEditResolvedSpec;
|
|
@@ -58,7 +58,7 @@ export declare function inlineEditSpec(state: InlineEditState, empty: boolean, d
|
|
|
58
58
|
export interface InlineEditContract {
|
|
59
59
|
/** The saved text. */
|
|
60
60
|
value: string;
|
|
61
|
-
/** What the text IS
|
|
61
|
+
/** What the text IS, "Policy name", "Group name", naming the field and the control that opens it. */
|
|
62
62
|
label: string;
|
|
63
63
|
/** Shown, quieter, when the value is empty. */
|
|
64
64
|
placeholder?: Forwarded<string>;
|
|
@@ -2,7 +2,7 @@ import { type ComponentProps } from 'react';
|
|
|
2
2
|
import { type InlineEditContract } from '../inline-edit';
|
|
3
3
|
import type { InputSize } from '../../input/input';
|
|
4
4
|
export type DSInlineEditProps = Omit<ComponentProps<'div'>, 'children' | 'onChange'> & InlineEditContract & {
|
|
5
|
-
/** Saves a new value. Return a promise that rejects when the save fails
|
|
5
|
+
/** Saves a new value. Return a promise that rejects when the save fails and the text rolls back. */
|
|
6
6
|
onValueChange: (next: string) => Promise<void> | void;
|
|
7
7
|
/** Returns a message when a draft cannot be saved, or nothing when it can.
|
|
8
8
|
* Empty or blank words, `false` and `null` are nothing. */
|
|
@@ -10,5 +10,5 @@ export type DSInlineEditProps = Omit<ComponentProps<'div'>, 'children' | 'onChan
|
|
|
10
10
|
/** The text and field size. A `title` has one size, the page title's. */
|
|
11
11
|
size?: InputSize;
|
|
12
12
|
};
|
|
13
|
-
/** Text that becomes a field on click or Enter
|
|
13
|
+
/** Text that becomes a field on click or Enter and saves in place with optimistic display and rollback. */
|
|
14
14
|
export declare function DSInlineEdit({ value, label, placeholder, multiline, commitOnBlur, disabled, onValueChange, validate, size, appearance, as: Heading, className, ...props }: DSInlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,9 @@ import { DSTextarea } from '../../textarea/web/ds-textarea';
|
|
|
7
7
|
import { DSHelperText } from '../../helper-text/web/ds-helper-text';
|
|
8
8
|
import { DSSpinner } from '../../spinner/web/ds-spinner';
|
|
9
9
|
import { cn } from '../../lib/cn';
|
|
10
|
+
import { setsTypeRecipe } from '../../lib/sets-type';
|
|
10
11
|
import { useEscapeEntry } from '../../lib/web/focus-habits';
|
|
12
|
+
import { DSText } from '../../text/web/ds-text';
|
|
11
13
|
const INK = {
|
|
12
14
|
foreground: 'text-foreground',
|
|
13
15
|
'muted-foreground': 'text-muted-foreground',
|
|
@@ -23,8 +25,8 @@ const STATUS_INK = {
|
|
|
23
25
|
};
|
|
24
26
|
const TEXT = {
|
|
25
27
|
sm: 'text-body-sm',
|
|
26
|
-
field: 'text-
|
|
27
|
-
base: 'text-
|
|
28
|
+
field: 'text-ui-lg compact:text-body-sm',
|
|
29
|
+
base: 'text-ui-lg',
|
|
28
30
|
};
|
|
29
31
|
const COARSE_REACH = 'pointer-coarse:before:absolute pointer-coarse:before:inset-x-0 pointer-coarse:before:-inset-y-3 pointer-coarse:before:content-[""]';
|
|
30
32
|
const TITLE_STEP = {
|
|
@@ -198,11 +200,11 @@ export function DSInlineEdit({ value, label, placeholder = 'Empty', multiline =
|
|
|
198
200
|
open(shown);
|
|
199
201
|
}, className: cn(title
|
|
200
202
|
?
|
|
201
|
-
cn('group relative inline-flex min-w-0 items-center gap-2 rounded-
|
|
203
|
+
cn('group relative inline-flex min-w-0 items-center gap-2 rounded-field border border-transparent text-left', TITLE_BOX)
|
|
202
204
|
:
|
|
203
|
-
'group relative -mx-
|
|
205
|
+
'group relative -mx-2 inline-flex min-w-0 items-start gap-2 rounded-xs px-2 py-1 text-left', 'focusable', disabled || state === 'saving' ? 'cursor-default' : 'cursor-text state-layer', !title && COARSE_REACH, !title && TEXT[inlineEditTextScale(size)], !title && !setsTypeRecipe(className) && 'font-normal', title && spec.ink === 'foreground'
|
|
204
206
|
? TITLE_INK[INLINE_EDIT_TITLE_INK]
|
|
205
|
-
: INK[spec.ink]), children: [_jsx("span", { className: cn('min-w-0 break-words', lines && 'whitespace-pre-wrap'), children: shown === '' ? placeholder : shown }), !disabled && state !== 'saving' && (_jsx("span", { "aria-hidden": true, className: "inline-flex h-lh shrink-0 items-center", children: _jsx(Pencil, { className: cn(title ? 'size-5' : 'size-3.5', 'group-hover:text-foreground', PENCIL_INK[INLINE_EDIT_PENCIL_INK]) }) }))] })), spec.statusInk !== undefined && (_jsxs("span",
|
|
207
|
+
: INK[spec.ink]), children: [_jsx("span", { className: cn('min-w-0 break-words', lines && 'whitespace-pre-wrap'), children: shown === '' ? placeholder : shown }), !disabled && state !== 'saving' && (_jsx("span", { "aria-hidden": true, className: "inline-flex h-lh shrink-0 items-center", children: _jsx(Pencil, { className: cn(title ? 'size-5' : 'size-3.5', 'group-hover:text-foreground', PENCIL_INK[INLINE_EDIT_PENCIL_INK]) }) }))] })), spec.statusInk !== undefined && (_jsxs(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: cn('inline-flex items-center gap-1', STATUS_INK[spec.statusInk]), children: [state === 'saving' && (_jsxs(_Fragment, { children: [_jsx(DSSpinner, { size: "sm" }), "Saving\u2026"] })), state === 'saved' && (_jsxs(_Fragment, { children: [_jsx(Check, { className: "size-3.5" }), "Saved"] })), state === 'failed' && (_jsxs(_Fragment, { children: [_jsx(TriangleAlert, { className: "size-3.5" }), "Couldn\u2019t save"] }))] })), state === 'failed' && failedDraft !== null && (_jsx("button", { type: "button", "aria-label": `Retry saving ${label}`, onClick: () => {
|
|
206
208
|
open(failedDraft);
|
|
207
|
-
}, className: cn('relative rounded-xxs text-body-sm
|
|
209
|
+
}, className: cn('relative rounded-xxs text-body-sm-strong text-link underline focusable', COARSE_REACH), children: "Retry" }))] })), _jsx("span", { "aria-live": "polite", className: "sr-only", children: said ?? '' })] }));
|
|
208
210
|
}
|
package/dist/input/input.d.ts
CHANGED
|
@@ -96,9 +96,9 @@ export declare function inputSpec(size?: InputSize, invalid?: boolean): InputRes
|
|
|
96
96
|
export declare const TEXTAREA_PADDING_Y_STEP: 2;
|
|
97
97
|
export type TextareaPaddingYStep = typeof TEXTAREA_PADDING_Y_STEP;
|
|
98
98
|
/** `--line-height-body`. Prose, not a control's single centred line. */
|
|
99
|
-
export declare const TEXTAREA_LINE_HEIGHT: 1.
|
|
99
|
+
export declare const TEXTAREA_LINE_HEIGHT: 1.5;
|
|
100
100
|
/** The floor, in `em`, so it tracks the field's own type size. Native translates
|
|
101
|
-
* it to a fixed rem
|
|
101
|
+
* it to a fixed rem, React Native has no `em`; see that adapter's table. */
|
|
102
102
|
export declare const TEXTAREA_MIN_HEIGHT_EM: 5.5;
|
|
103
103
|
/** Vertical only. Web-only: a native `TextInput` cannot be dragged taller. */
|
|
104
104
|
export declare const TEXTAREA_RESIZE: "vertical";
|
|
@@ -113,21 +113,21 @@ export interface TextareaContract extends InputContract, InputValueContract {
|
|
|
113
113
|
* itself and says it once when the end is near. */
|
|
114
114
|
maxLength?: Forwarded<number>;
|
|
115
115
|
}
|
|
116
|
-
/** How close to the limit the count is said: the last tenth
|
|
116
|
+
/** How close to the limit the count is said: the last tenth and never fewer
|
|
117
117
|
* than the last 10 characters. */
|
|
118
118
|
export declare function textareaCountNearAt(max: number): number;
|
|
119
|
-
/** The count drawn under the field
|
|
119
|
+
/** The count drawn under the field, "120 of 500". */
|
|
120
120
|
export declare function textareaCountText(length: number, max: number): string;
|
|
121
|
-
/** The limit, said once when the field is reached
|
|
121
|
+
/** The limit, said once when the field is reached, "Up to 500 characters". */
|
|
122
122
|
export declare function textareaCountDescription(max: number): string;
|
|
123
|
-
/** What is left, in words
|
|
123
|
+
/** What is left, in words, "20 characters left", "1 character left", "No
|
|
124
124
|
* characters left". */
|
|
125
125
|
export declare function textareaCountLeft(length: number, max: number): string;
|
|
126
126
|
/**
|
|
127
127
|
* What to say when the text changes from `before` characters to `after`, or
|
|
128
128
|
* `undefined` to say nothing. Said when the field first comes within
|
|
129
|
-
* `textareaCountNearAt(max)` of the limit
|
|
130
|
-
* every key
|
|
129
|
+
* `textareaCountNearAt(max)` of the limit and when it reaches it; never on
|
|
130
|
+
* every key and not again until the text has left that stretch.
|
|
131
131
|
*/
|
|
132
132
|
export declare function textareaCountAnnouncement(before: number, after: number, max: number): string | undefined;
|
|
133
133
|
export {};
|
package/dist/input/input.js
CHANGED
|
@@ -26,7 +26,7 @@ export function inputSpec(size = 'md', invalid = false) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
export const TEXTAREA_PADDING_Y_STEP = 2;
|
|
29
|
-
export const TEXTAREA_LINE_HEIGHT = 1.
|
|
29
|
+
export const TEXTAREA_LINE_HEIGHT = 1.5;
|
|
30
30
|
export const TEXTAREA_MIN_HEIGHT_EM = 5.5;
|
|
31
31
|
export const TEXTAREA_RESIZE = 'vertical';
|
|
32
32
|
export const TEXTAREA_MAX_ROWS = 12;
|
|
@@ -20,11 +20,10 @@ const BORDER = {
|
|
|
20
20
|
const PADDING = {
|
|
21
21
|
3: 'px-3',
|
|
22
22
|
4: 'px-4',
|
|
23
|
-
5.5: 'px-5.5',
|
|
24
23
|
6: 'px-6',
|
|
25
24
|
7: 'px-7',
|
|
26
25
|
};
|
|
27
|
-
const TEXT = { sm: 'text-body-sm', field: 'text-
|
|
26
|
+
const TEXT = { sm: 'text-body-sm', field: 'text-ui-lg', base: 'text-body-lg' };
|
|
28
27
|
const HEIGHT = {
|
|
29
28
|
compact: 'min-h-12',
|
|
30
29
|
field: 'min-h-12',
|
|
@@ -90,5 +89,5 @@ export function DSInput({ size = 'md', invalid, disabled, className, mask, forma
|
|
|
90
89
|
: { defaultValue: shape === undefined ? defaultValue : shape.format(defaultValue) };
|
|
91
90
|
return (_jsx(TextInput, { ...valueProps, onChangeText: handleChangeText, onBlur: handleBlur, editable: !isDisabled, accessibilityState: { disabled: isDisabled }, "aria-disabled": isDisabled, ...(Platform.OS === 'web' && painted
|
|
92
91
|
? { 'aria-invalid': true }
|
|
93
|
-
: {}), textAlignVertical: "center", style: FIELD_METRICS, underlineColorAndroid: "transparent", className: cn('
|
|
92
|
+
: {}), textAlignVertical: "center", style: FIELD_METRICS, underlineColorAndroid: "transparent", className: cn('w-full rounded-card-sm py-0 font-sans font-semibold', 'focus:outline-solid focus:outline-2 focus:outline-offset-2 focus:outline-ring', CARET, SURFACE[spec.surface], LABEL[spec.label], isDisabled ? DISABLED_PLACEHOLDER : PLACEHOLDER[spec.placeholder], BORDER[spec.border], isDisabled && DISABLED, PADDING[spec.paddingX], TEXT[spec.text], HEIGHT[spec.minHeight], className), ...props }));
|
|
94
93
|
}
|
|
@@ -4,13 +4,13 @@ import { type FieldRulesContract } from '../../field-rules/field-rules';
|
|
|
4
4
|
export type DSInputProps = Omit<ComponentProps<'input'>, 'size' | 'disabled' | 'value'> & InputContract & {
|
|
5
5
|
[K in keyof InputValueContract]?: InputValueContract[K] | undefined;
|
|
6
6
|
} & FieldRulesContract & {
|
|
7
|
-
/** A unit or symbol drawn INSIDE the field, before the value
|
|
7
|
+
/** A unit or symbol drawn INSIDE the field, before the value, a currency
|
|
8
8
|
* mark, a protocol, a fixed prefix the person does not type.
|
|
9
9
|
*
|
|
10
10
|
* IT IS `aria-hidden`, AND THE UNIT BELONGS IN THE LABEL. A symbol announced
|
|
11
11
|
* immediately before the box reads as part of the value; "Amount, pound,
|
|
12
12
|
* edit text" is not what the field is called. `DSPhoneField` already makes
|
|
13
|
-
* this call for its dial code and this follows it
|
|
13
|
+
* this call for its dial code and this follows it, so a field with a
|
|
14
14
|
* currency mark says the currency in its label or its description, where it
|
|
15
15
|
* is read once and in a sentence.
|
|
16
16
|
*
|