@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/chart/chart.d.ts
CHANGED
|
@@ -1,42 +1,66 @@
|
|
|
1
1
|
import type { Forwarded } from '../props';
|
|
2
2
|
import { CHART_HUES } from '../lib/chart-hue';
|
|
3
3
|
import type { ChartHue } from '../lib/chart-hue';
|
|
4
|
-
|
|
4
|
+
import { formatChartValue } from '../lib/chart-value';
|
|
5
|
+
export { CHART_AXIS_GAP_PX, CHART_GLYPH_PX, axisGutter } from '../lib/chart-ticks';
|
|
6
|
+
export declare const CHART_KINDS: readonly ["line", "bar", "grouped-bar", "stacked-area"];
|
|
5
7
|
export type ChartKind = (typeof CHART_KINDS)[number];
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
+
import { CHART_MAX_SERIES } from '../lib/chart-series';
|
|
9
|
+
export { CHART_MAX_SERIES };
|
|
8
10
|
export interface ChartSeries {
|
|
9
|
-
/** The series' word
|
|
11
|
+
/** The series' word, in the legend, the table header and the summary. */
|
|
10
12
|
label: string;
|
|
13
|
+
/** A series to read the others against, drawn in a neutral grey and taking no colour slot. */
|
|
14
|
+
comparison?: boolean | undefined;
|
|
11
15
|
/** One value per category, in category order. `null` is "no reading", which
|
|
12
16
|
* is not zero: a line breaks over it and the table says so. */
|
|
13
17
|
values: readonly (number | null)[];
|
|
14
18
|
}
|
|
19
|
+
/** A value the series are read against, a limit or a budget, drawn across the plot. */
|
|
20
|
+
export interface ChartReference {
|
|
21
|
+
value: number;
|
|
22
|
+
/** Its word, at the line's right end and in the summary: "Daily limit". */
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
25
|
+
/** Something that happened at a category, drawn as an upright marker: "Card limit raised". */
|
|
26
|
+
export interface ChartEvent {
|
|
27
|
+
/** The category it happened at, an index into `categories`. */
|
|
28
|
+
index: number;
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
15
31
|
/** The props every chart implementation must accept. */
|
|
16
32
|
export interface ChartContract {
|
|
17
33
|
kind: ChartKind;
|
|
18
|
-
/** What the chart shows
|
|
34
|
+
/** What the chart shows, the picture's accessible name and the table's
|
|
19
35
|
* caption. A dashboard panel's own heading usually says the same thing;
|
|
20
36
|
* this is the copy a screen reader and the table carry. */
|
|
21
37
|
title: string;
|
|
22
|
-
/** The heading of the category column in the data table
|
|
38
|
+
/** The heading of the category column in the data table, "Month", "Hour". */
|
|
23
39
|
categoryLabel: string;
|
|
24
40
|
/** The x-axis, in order. */
|
|
25
41
|
categories: readonly string[];
|
|
26
42
|
series: readonly ChartSeries[];
|
|
27
43
|
/** What the empty state says when there is nothing to draw. Required: an
|
|
28
|
-
* empty chart that says nothing reads as a broken one
|
|
44
|
+
* empty chart that says nothing reads as a broken one and the reason it is
|
|
29
45
|
* empty is the caller's to state ("No fills recorded this month"). */
|
|
30
46
|
emptyDescription: string;
|
|
31
47
|
/** First load. Renders the skeleton in the chart's own frame. */
|
|
32
48
|
loading?: boolean | undefined;
|
|
33
49
|
/** A caller's own sentence, when it has a better one than the generated
|
|
34
|
-
* highest/lowest summary
|
|
50
|
+
* highest/lowest summary, "Spend has risen every month since March." */
|
|
35
51
|
summary?: string | undefined;
|
|
36
|
-
/** Lays a soft wash under
|
|
52
|
+
/** Lays a soft wash under the line of a `line` chart with ONE series (comparisons aside), fading from the
|
|
37
53
|
* series colour to nothing at the baseline. On by default; `false` is the
|
|
38
|
-
* bare line. */
|
|
54
|
+
* bare line. A chart of several series never draws one. */
|
|
39
55
|
area?: boolean | undefined;
|
|
56
|
+
/** Gives each series a dash, a hatch and a marker shape by its position as well as its colour: for print, forced colours and readers who want a second channel. Off by default; every series is then a plain solid mark. */
|
|
57
|
+
texture?: boolean | undefined;
|
|
58
|
+
/** Values the series are read against, a limit or a budget, drawn as dashed rules with their words. */
|
|
59
|
+
references?: readonly ChartReference[] | undefined;
|
|
60
|
+
/** Things that happened at a category, drawn as upright markers with their words. */
|
|
61
|
+
events?: readonly ChartEvent[] | undefined;
|
|
62
|
+
/** The index of the one series that is the story; the others are drawn quiet, as context. Line charts only. */
|
|
63
|
+
emphasis?: number | undefined;
|
|
40
64
|
}
|
|
41
65
|
export declare const CHART_FILL_PATTERNS: readonly ["solid", "hatch", "dots", "cross"];
|
|
42
66
|
export type ChartFillPattern = (typeof CHART_FILL_PATTERNS)[number];
|
|
@@ -44,31 +68,59 @@ export declare const CHART_LINE_DASHES: readonly ["solid", "dashed", "dotted", "
|
|
|
44
68
|
export type ChartLineDash = (typeof CHART_LINE_DASHES)[number];
|
|
45
69
|
export declare const CHART_MARKERS: readonly ["circle", "square", "triangle", "diamond"];
|
|
46
70
|
export type ChartMarker = (typeof CHART_MARKERS)[number];
|
|
47
|
-
export type ChartSeriesInkRole = 'chart-series-1' | 'chart-series-2' | 'chart-series-3' | 'chart-series-4';
|
|
71
|
+
export type ChartSeriesInkRole = 'chart-series-1' | 'chart-series-2' | 'chart-series-3' | 'chart-series-4' | 'chart-series-5' | 'chart-series-6' | 'chart-quiet' | 'chart-comparison';
|
|
72
|
+
/** How many distinct textures there are. Past this many series they repeat. */
|
|
73
|
+
export declare const CHART_TEXTURE_COUNT: 4;
|
|
48
74
|
export interface ChartSeriesSpec {
|
|
49
75
|
ink: ChartSeriesInkRole;
|
|
50
76
|
pattern: ChartFillPattern;
|
|
51
77
|
dash: ChartLineDash;
|
|
52
78
|
marker: ChartMarker;
|
|
53
79
|
}
|
|
54
|
-
/** The look of the series at `index
|
|
55
|
-
*
|
|
80
|
+
/** The textured look of the series at `index`: its slot colour with the
|
|
81
|
+
* pattern, dash and marker of its texture row. Wraps rather than throws
|
|
82
|
+
* past the sixth, because `visibleSeries` has already dropped those, this
|
|
83
|
+
* is never asked. This is the texture vocabulary; what a chart draws is
|
|
84
|
+
* `chartSeriesLooks`, which uses it only when `texture` is asked for. */
|
|
56
85
|
export declare function chartSeriesSpec(index: number): ChartSeriesSpec;
|
|
86
|
+
/** A mark with nothing but its colour: solid, unbroken, a round marker. */
|
|
87
|
+
export declare const CHART_PLAIN_LOOK: {
|
|
88
|
+
readonly pattern: "solid";
|
|
89
|
+
readonly dash: "solid";
|
|
90
|
+
readonly marker: "circle";
|
|
91
|
+
};
|
|
92
|
+
/** What a comparison series is drawn in: a neutral, a plain solid mark. */
|
|
93
|
+
export declare const CHART_COMPARISON_LOOK: ChartSeriesSpec;
|
|
94
|
+
/**
|
|
95
|
+
* The look of every drawn series, in order. A comparison is the neutral and
|
|
96
|
+
* takes no slot; every other series takes the next slot in turn, so a chart
|
|
97
|
+
* of "This year", "Last year" (a comparison) and "Target" draws This year in
|
|
98
|
+
* slot 1 and Target in slot 2, as if the comparison were not there. By
|
|
99
|
+
* default every look is plain and solid; `texture` adds each slot's dash,
|
|
100
|
+
* pattern and marker, except to a comparison, which is never textured.
|
|
101
|
+
*/
|
|
102
|
+
export declare function chartSeriesLooks(series: readonly Pick<ChartSeries, 'comparison'>[], texture?: boolean): ChartSeriesSpec[];
|
|
103
|
+
/** True when a `line` chart draws the wash under its line: the caller has not
|
|
104
|
+
* turned it off and exactly one series is not a comparison. Two washes laid
|
|
105
|
+
* over each other are a third colour nobody chose. */
|
|
106
|
+
export declare function chartDrawsWash(series: readonly Pick<ChartSeries, 'comparison'>[], area?: boolean | undefined): boolean;
|
|
57
107
|
/** SVG `stroke-dasharray` per dash, in user units. `undefined` is a solid line. */
|
|
58
108
|
export declare const CHART_DASH_ARRAYS: Record<ChartLineDash, string | undefined>;
|
|
59
|
-
declare const CHART_GRID_ROLE: "border";
|
|
109
|
+
declare const CHART_GRID_ROLE: "border-subtle";
|
|
60
110
|
declare const CHART_AXIS_ROLE: "muted-foreground";
|
|
61
111
|
export interface ChartResolvedSpec {
|
|
62
|
-
/** Horizontal gridlines
|
|
63
|
-
*
|
|
112
|
+
/** Horizontal gridlines: one solid hairline, never dashed (a dash is for a
|
|
113
|
+
* projection or a reference). Decoration: `border-subtle` carries no
|
|
114
|
+
* contrast duty and nothing a gridline helps read is missing from the axis
|
|
115
|
+
* or the table. The same step the bar chart's rules use. */
|
|
64
116
|
grid: typeof CHART_GRID_ROLE;
|
|
65
117
|
/** Axis figures, category names and the baseline. Audited as TEXT on both
|
|
66
|
-
* surfaces
|
|
118
|
+
* surfaces, see tokens.mjs. */
|
|
67
119
|
axis: typeof CHART_AXIS_ROLE;
|
|
68
120
|
}
|
|
69
121
|
export declare function chartSpec(): ChartResolvedSpec;
|
|
70
122
|
/** The fixed body height, as a spacing step (`h-80`, 20rem). Loading, empty and
|
|
71
|
-
* drawn all occupy exactly this
|
|
123
|
+
* drawn all occupy exactly this, rule 4. Asserted by the story that renders
|
|
72
124
|
* the three side by side. */
|
|
73
125
|
export declare const CHART_BODY_HEIGHT_STEP = 80;
|
|
74
126
|
/** Space under the plot for the category names. */
|
|
@@ -79,16 +131,10 @@ export declare const CHART_TOP_PAD_PX = 8;
|
|
|
79
131
|
export declare const CHART_RIGHT_PAD_PX = 8;
|
|
80
132
|
/** The narrowest a category name may be given before names are thinned. */
|
|
81
133
|
export declare const CHART_MIN_LABEL_SPACING_PX = 44;
|
|
82
|
-
/** A generous average glyph at the axis text size (label-sm, 12): a tabular
|
|
83
|
-
* digit is about 0.6em, so this over-allows a little rather than clipping. */
|
|
84
|
-
export declare const CHART_GLYPH_PX = 8;
|
|
85
|
-
/** The gap between the value-axis labels and the plot. The adapter draws the
|
|
86
|
-
* labels this far left of the plot, and `axisGutter` reserves it. */
|
|
87
|
-
export declare const CHART_AXIS_GAP_PX = 8;
|
|
88
134
|
/** How far above the bottom of the axis band a category name sits. */
|
|
89
135
|
export declare const CHART_CATEGORY_BASELINE_PX = 6;
|
|
90
|
-
/** Below this bar width a patterned bar's edge is thinned, so the pattern
|
|
91
|
-
* the channel that is not colour
|
|
136
|
+
/** Below this bar width a patterned bar's edge is thinned, so the pattern,
|
|
137
|
+
* the channel that is not colour, still has room inside it. */
|
|
92
138
|
export declare const CHART_THIN_BAR_PX = 6;
|
|
93
139
|
/** How many gridlines to aim for. The scale picks a round step near it. */
|
|
94
140
|
export declare const CHART_TICK_TARGET = 4;
|
|
@@ -100,12 +146,14 @@ export interface ChartScale {
|
|
|
100
146
|
ticks: number[];
|
|
101
147
|
}
|
|
102
148
|
/**
|
|
103
|
-
* The value axis. ALWAYS INCLUDES ZERO: a bar's length is its value
|
|
149
|
+
* The value axis. ALWAYS INCLUDES ZERO: a bar's length is its value and a bar
|
|
104
150
|
* chart whose axis starts at 31 000 draws February as a third of August when it
|
|
105
151
|
* was nine tenths of it. Lines share the rule so a line and a bar chart of the
|
|
106
152
|
* same figures look like the same figures.
|
|
107
153
|
*/
|
|
108
|
-
export declare function chartScale(series: readonly ChartSeries[], target?: number
|
|
154
|
+
export declare function chartScale(series: readonly ChartSeries[], target?: number,
|
|
155
|
+
/** Values the scale must reach that are not readings, a reference's. */
|
|
156
|
+
reach?: readonly number[]): ChartScale;
|
|
109
157
|
/** Where `value` sits, in pixels from the top of a plot `height` tall. */
|
|
110
158
|
export declare function valueY(value: number, scale: ChartScale, height: number): number;
|
|
111
159
|
export interface BandLayout {
|
|
@@ -113,7 +161,7 @@ export interface BandLayout {
|
|
|
113
161
|
band: number;
|
|
114
162
|
/** The width of one bar. */
|
|
115
163
|
barWidth: number;
|
|
116
|
-
/** The centre of category `index
|
|
164
|
+
/** The centre of category `index`, where a line's point and a name sit. */
|
|
117
165
|
centre: (index: number) => number;
|
|
118
166
|
/** The left edge of series `series`'s bar in category `index`. */
|
|
119
167
|
barX: (index: number, series: number) => number;
|
|
@@ -142,15 +190,17 @@ export interface ChartSeriesPaths {
|
|
|
142
190
|
}
|
|
143
191
|
/**
|
|
144
192
|
* The path of one line series. A null breaks the line (joining across a missing
|
|
145
|
-
* month would draw a reading nobody took)
|
|
193
|
+
* month would draw a reading nobody took) and each unbroken run is a monotone
|
|
146
194
|
* curve through its points, so the line never rises above the higher of two
|
|
147
195
|
* neighbours or falls below the lower.
|
|
148
196
|
*/
|
|
149
197
|
export declare function chartSeriesPaths(values: readonly (number | null)[], x: (index: number) => number, y: (value: number) => number, baseline: number): ChartSeriesPaths;
|
|
150
198
|
/** The corner radius of a bar `width` wide and `length` long: a full round cap
|
|
151
|
-
* on a thin bar, capped so a wide one is still a bar and never a pill
|
|
199
|
+
* on a thin bar, capped so a wide one is still a bar and never a pill and
|
|
152
200
|
* never more than the bar is long. */
|
|
153
201
|
export declare const CHART_BAR_RADIUS_PX = 6;
|
|
202
|
+
/** The reading edge's weight in pixels, the bar chart's `BAR_CHART_EDGE` weight. */
|
|
203
|
+
export declare const CHART_BAR_EDGE_PX = 3;
|
|
154
204
|
export declare function chartBarRadius(width: number, length: number): number;
|
|
155
205
|
/**
|
|
156
206
|
* A bar as a path, rounded at the end away from the baseline and flat where it
|
|
@@ -158,67 +208,82 @@ export declare function chartBarRadius(width: number, length: number): number;
|
|
|
158
208
|
* length has no path.
|
|
159
209
|
*/
|
|
160
210
|
export declare function chartBarPath(x: number, y: number, width: number, length: number, up: boolean): string;
|
|
211
|
+
/** A bar's far end as an open path, `inset` in from the end so a stroke of
|
|
212
|
+
* twice that weight lands its outer edge on the value. It follows the same
|
|
213
|
+
* rounded corners as `chartBarPath`. The reading edge a pack turns on with
|
|
214
|
+
* `--chart-bar-mark` (TFN does, so these bars match the bar chart's). `''`
|
|
215
|
+
* for a bar with no length. */
|
|
216
|
+
export declare function chartBarEdgePath(x: number, y: number, width: number, length: number, up: boolean, inset: number): string;
|
|
161
217
|
/**
|
|
162
218
|
* Show every `n`th category name. Twenty-four hours at phone width do not fit
|
|
163
|
-
* side by side
|
|
219
|
+
* side by side and names drawn over each other are worse than names left out,
|
|
164
220
|
* the table still has every one. The first category is always named.
|
|
165
221
|
*/
|
|
166
222
|
export declare function labelStride(categoryCount: number, plotWidth: number, minSpacing?: number): number;
|
|
167
223
|
/** The spacing category names need: the floor, or the widest name plus a gap,
|
|
168
224
|
* whichever is more. "September" does not fit where "Sep" does. */
|
|
169
225
|
export declare function categorySpacing(categories: readonly string[]): number;
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
226
|
+
/** Every series, cleaned: each padded or cut to one value per category, so a
|
|
227
|
+
* short array is a gap rather than a crash. Not capped, the data table is the
|
|
228
|
+
* one place that shows all of them. */
|
|
229
|
+
export declare function allSeries(categories: readonly string[], series: readonly ChartSeries[]): ChartSeries[];
|
|
230
|
+
/** The series a chart draws: the first six, cleaned as `allSeries` does. */
|
|
174
231
|
export declare function visibleSeries(categories: readonly string[], series: readonly ChartSeries[]): ChartSeries[];
|
|
232
|
+
/** The line under a chart that was given more series than it draws, or `''`
|
|
233
|
+
* when it drew them all. The table is where the rest are. */
|
|
234
|
+
export declare function chartSeriesCapNote(count: number): string;
|
|
175
235
|
/** Nothing to draw: no categories, no series, or not one real reading. */
|
|
176
236
|
export declare function isChartEmpty(categories: readonly string[], series: readonly ChartSeries[]): boolean;
|
|
237
|
+
/** What a builder is told, in development, when a chart is given more series than it draws. */
|
|
238
|
+
export declare function chartSeriesCapIssue(count: number): string;
|
|
177
239
|
/**
|
|
178
240
|
* What is wrong with a chart's data, in words a builder can act on. Empty when
|
|
179
|
-
* nothing is. The adapter draws what it can either way
|
|
180
|
-
* throws takes the dashboard with it
|
|
241
|
+
* nothing is. The adapter draws what it can either way, a dashboard widget that
|
|
242
|
+
* throws takes the dashboard with it and the stories and tests assert this is
|
|
181
243
|
* empty for every chart they render.
|
|
182
244
|
*/
|
|
183
245
|
export declare function chartIssues(chart: Pick<ChartContract, 'kind' | 'categories' | 'series'>): string[];
|
|
184
|
-
|
|
185
|
-
export declare function formatChartValue(value: number): string;
|
|
246
|
+
export { formatChartValue };
|
|
186
247
|
/**
|
|
187
|
-
* The text summary
|
|
248
|
+
* The text summary, rule 3. The span, then each series' highest and lowest,
|
|
188
249
|
* with the category each fell in. Plain sentences in the order a person asks
|
|
189
|
-
* the questions: what is this, over what
|
|
250
|
+
* the questions: what is this, over what and where did it peak.
|
|
190
251
|
*/
|
|
191
252
|
export declare function describeChart(chart: Pick<ChartContract, 'kind' | 'categories' | 'series'>, format?: (value: number) => string): string;
|
|
192
|
-
|
|
193
|
-
export declare function tableToggleLabel(open: boolean): string;
|
|
253
|
+
export { tableToggleLabel } from '../lib/chart-table';
|
|
194
254
|
/** The kind that selects the trend. Optional on the props: a call site that
|
|
195
255
|
* passes `values` and no `kind` draws a trend. */
|
|
196
256
|
export declare const CHART_TREND_KIND = "trend";
|
|
197
257
|
/** The drawing box. Stretched to the container by the adapter, so these are
|
|
198
|
-
* ratios wearing the clothes of pixels
|
|
258
|
+
* ratios wearing the clothes of pixels, see `preserveAspectRatio` there. */
|
|
199
259
|
export declare const CHART_VIEWBOX: {
|
|
200
260
|
readonly width: 100;
|
|
201
261
|
readonly height: 100;
|
|
202
262
|
};
|
|
203
263
|
export declare const CHART_PLOT_INSET = 2;
|
|
204
|
-
/** The
|
|
264
|
+
/** The six categorical hues a trend may spend, defined in `lib/chart-hue.ts`
|
|
205
265
|
* so the chart molecules can share them without importing up a level. */
|
|
206
266
|
export { CHART_HUES };
|
|
207
267
|
export type { ChartHue };
|
|
268
|
+
export declare const CHART_COMPARE_NEEDS_A_LABEL = "A chart given compare needs compareLabel, or the readout says two figures with nothing to tell them apart. Name the period before: \"Last month\".";
|
|
269
|
+
/** True when the period before is drawn but nothing names it. */
|
|
270
|
+
export declare function chartCompareNeedsALabel(compare: readonly number[] | undefined, compareLabel: string | undefined): boolean;
|
|
208
271
|
export interface ChartTrendContract {
|
|
209
272
|
/** `'trend'`, or absent. */
|
|
210
273
|
kind?: Forwarded<typeof CHART_TREND_KIND>;
|
|
211
274
|
/** The samples, evenly spaced, oldest first. Empty renders the empty state
|
|
212
|
-
* rather than nothing
|
|
275
|
+
* rather than nothing, see `ChartTrendSpec.empty`. */
|
|
213
276
|
values: readonly number[];
|
|
214
277
|
/** The index from which the line is drawn dotted: the part of the period
|
|
215
|
-
* that has not happened yet. The SAME series, not a second one
|
|
216
|
-
* projection is the same quantity in a different tense
|
|
278
|
+
* that has not happened yet. The SAME series, not a second one, a
|
|
279
|
+
* projection is the same quantity in a different tense and giving it its
|
|
217
280
|
* own colour says it is a different measurement. Out of range, or absent,
|
|
218
281
|
* draws the whole line solid. */
|
|
219
282
|
projectFrom?: Forwarded<number>;
|
|
220
|
-
/** Which of the
|
|
283
|
+
/** Which of the six categorical hues to spend. Defaults to the first. */
|
|
221
284
|
series?: Forwarded<ChartHue>;
|
|
285
|
+
/** The same quantity over the period before, drawn as a quiet dashed line behind the series. */
|
|
286
|
+
compare?: Forwarded<readonly number[]>;
|
|
222
287
|
/** What is drawn under the line: a quiet wash, a filled colour-run mountain, or a frosted silhouette for a gradient card. */
|
|
223
288
|
shape?: Forwarded<ChartShape>;
|
|
224
289
|
}
|
|
@@ -230,8 +295,8 @@ export interface ChartPoint {
|
|
|
230
295
|
x: number;
|
|
231
296
|
y: number;
|
|
232
297
|
value: number;
|
|
233
|
-
/** Where this sample sits in the caller's OWN `values` array
|
|
234
|
-
* cleaned list
|
|
298
|
+
/** Where this sample sits in the caller's OWN `values` array, not in the
|
|
299
|
+
* cleaned list, so the caller's labels for that index still line up after
|
|
235
300
|
* a hole has been dropped. */
|
|
236
301
|
index: number;
|
|
237
302
|
}
|
|
@@ -240,7 +305,7 @@ export interface ChartTrendSpec {
|
|
|
240
305
|
* does not render nothing, because a card that collapses when the data is
|
|
241
306
|
* empty makes a dashboard's grid jump every time a filter changes. */
|
|
242
307
|
empty: boolean;
|
|
243
|
-
/** The top of the domain. `0` when every sample is zero
|
|
308
|
+
/** The top of the domain. `0` when every sample is zero, the flat case. */
|
|
244
309
|
max: number;
|
|
245
310
|
/** The last finite sample, for the value label the adapter holds at the
|
|
246
311
|
* right edge. `undefined` when `empty`. */
|
|
@@ -253,13 +318,13 @@ export interface ChartTrendSpec {
|
|
|
253
318
|
* last measured point so the dots begin where the solid line ends rather
|
|
254
319
|
* than a gap away from it. */
|
|
255
320
|
projection: string;
|
|
256
|
-
/** `line`, drawn as a smooth curve through the same points
|
|
321
|
+
/** `line`, drawn as a smooth curve through the same points, see
|
|
257
322
|
* `chartCurveSegments` for why the smoothing cannot invent a peak. */
|
|
258
323
|
curve: string;
|
|
259
324
|
/** `area`, with the curve as its top edge. */
|
|
260
325
|
curveArea: string;
|
|
261
326
|
/** `curveArea` closed to the very bottom of the box rather than the inset
|
|
262
|
-
* baseline
|
|
327
|
+
* baseline, the mountain's foot, flush with the edge it rises from. */
|
|
263
328
|
curveBleed: string;
|
|
264
329
|
/** `projection`, smoothed the same way and continuous with `curve`. */
|
|
265
330
|
curveProjection: string;
|
|
@@ -270,21 +335,27 @@ export interface ChartTrendSpec {
|
|
|
270
335
|
* `empty`. A single sample is one point, at the right edge where its flat
|
|
271
336
|
* line ends. */
|
|
272
337
|
points: readonly ChartPoint[];
|
|
273
|
-
/** The last MEASURED sample
|
|
338
|
+
/** The last MEASURED sample, where the solid line ends and a projection,
|
|
274
339
|
* if any, begins. What the live end marker sits on. `undefined` when
|
|
275
340
|
* `empty`. */
|
|
276
341
|
head: ChartPoint | undefined;
|
|
277
342
|
series: ChartHue;
|
|
343
|
+
/** `d` for the period before, smoothed like `curve`, or `''` when there is
|
|
344
|
+
* none. Drawn on the same scale, so the two can be compared by eye. */
|
|
345
|
+
compare: string;
|
|
346
|
+
/** The period before's finite samples, placed, for the readout to pair
|
|
347
|
+
* with the inspected sample by `index`. */
|
|
348
|
+
comparePoints: readonly ChartPoint[];
|
|
278
349
|
}
|
|
279
350
|
/**
|
|
280
351
|
* The one function the trend adapter calls: cleans the samples, scales them
|
|
281
|
-
* into the box
|
|
352
|
+
* into the box and splits the line at the projection boundary.
|
|
282
353
|
*/
|
|
283
|
-
export declare function chartTrendSpec({ values, projectFrom, series }: ChartTrendContract): ChartTrendSpec;
|
|
354
|
+
export declare function chartTrendSpec({ values, projectFrom, series, compare, }: ChartTrendContract): ChartTrendSpec;
|
|
284
355
|
export { chartCurveSegments } from '../lib/chart-curve';
|
|
285
356
|
/**
|
|
286
357
|
* The sample nearest a point across the plot, given as a fraction of its
|
|
287
|
-
* width
|
|
358
|
+
* width, what a pointer or a finger is over. `undefined` when there is
|
|
288
359
|
* nothing to land on.
|
|
289
360
|
*
|
|
290
361
|
* NEAREST, NOT THE ONE TO THE LEFT. Rounding down makes the last sample
|
|
@@ -292,8 +363,17 @@ export { chartCurveSegments } from '../lib/chart-curve';
|
|
|
292
363
|
*/
|
|
293
364
|
export declare function chartNearest(points: readonly ChartPoint[], fraction: number): ChartPoint | undefined;
|
|
294
365
|
/**
|
|
295
|
-
* The sample `step` places along from `from`, clamped to the ends
|
|
366
|
+
* The sample `step` places along from `from`, clamped to the ends, what an
|
|
296
367
|
* arrow key moves to. From nothing, a step right starts at the first sample
|
|
297
368
|
* and a step left at the last, which is where a reader expects each to begin.
|
|
298
369
|
*/
|
|
299
370
|
export declare function chartStep(points: readonly ChartPoint[], from: ChartPoint | undefined, step: number): ChartPoint | undefined;
|
|
371
|
+
/** The sentences a chart's references and events add to its summary, so what the picture marks is also said. */
|
|
372
|
+
export declare function describeMarks(references: readonly ChartReference[], events: readonly ChartEvent[], categories: readonly string[], formatValue: (value: number) => string): string;
|
|
373
|
+
/** The running top of each series, oldest series at the bottom. A hole stacks as zero; a negative as zero. */
|
|
374
|
+
export declare function chartStack(series: readonly ChartSeries[]): ChartSeries[];
|
|
375
|
+
/** Each band as a closed path from its top edge back along the one under it, and its top edge alone as a line. */
|
|
376
|
+
export declare function chartStackPaths(tops: readonly ChartSeries[], x: (index: number) => number, y: (value: number) => number, baseline: number): {
|
|
377
|
+
line: string;
|
|
378
|
+
band: string;
|
|
379
|
+
}[];
|