@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
|
@@ -4,6 +4,7 @@ import { CircleCheck, CircleDashed, CircleMinus, CircleX } from 'lucide-react';
|
|
|
4
4
|
import { EVALUATION_OUTCOME_INKS, EVALUATION_OUTCOME_TONES, EVALUATION_TRACE_BORDER, EVALUATION_TRACE_MUTED_INK, EVALUATION_TRACE_SURFACE, evaluateTrace, evaluationObservedSurface, evaluationConditionsLine, evaluationGroupReason, evaluationOutcomeWord, } from '../evaluation-trace';
|
|
5
5
|
import { CONDITION_CONJUNCTION_LABELS, conditionGroupSurface, describeCondition, nodeDepth, nodeLabel, } from '../../condition-builder/condition-builder';
|
|
6
6
|
import { cn } from '../../lib/cn';
|
|
7
|
+
import { DSText } from '../../text/web/ds-text';
|
|
7
8
|
const OUTCOME_INK = {
|
|
8
9
|
success: 'text-success',
|
|
9
10
|
destructive: 'text-destructive',
|
|
@@ -18,7 +19,7 @@ const FILL = {
|
|
|
18
19
|
const MUTED_INK = {
|
|
19
20
|
'muted-foreground': 'text-muted-foreground',
|
|
20
21
|
};
|
|
21
|
-
const ROW = 'flex flex-col gap-
|
|
22
|
+
const ROW = 'flex flex-col gap-1 @md:flex-row @md:items-baseline @md:gap-2';
|
|
22
23
|
const WORDS = 'flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-1';
|
|
23
24
|
const HEADING = { 2: 'h2', 3: 'h3', 4: 'h4', 5: 'h5', 6: 'h6' };
|
|
24
25
|
function OutcomeMark({ entry }) {
|
|
@@ -30,12 +31,12 @@ function OutcomeMark({ entry }) {
|
|
|
30
31
|
? CircleMinus
|
|
31
32
|
: CircleDashed;
|
|
32
33
|
const tone = EVALUATION_OUTCOME_TONES[entry.outcome];
|
|
33
|
-
return (_jsxs("span", { ...(tone === undefined ? {} : { 'data-tone': tone, 'data-forced-colors': 'tone' }), "data-outcome": entry.outcome, className: cn('inline-flex shrink-0 items-center gap-
|
|
34
|
+
return (_jsxs("span", { ...(tone === undefined ? {} : { 'data-tone': tone, 'data-forced-colors': 'tone' }), "data-outcome": entry.outcome, className: cn('inline-flex shrink-0 items-center gap-2 text-body-sm-strong @md:w-28', OUTCOME_INK[EVALUATION_OUTCOME_INKS[entry.outcome]]), children: [_jsx(Glyph, { "aria-hidden": true, className: "size-4 shrink-0" }), evaluationOutcomeWord(entry)] }));
|
|
34
35
|
}
|
|
35
36
|
const SKIPPED = { outcome: 'skipped', shortCircuited: false };
|
|
36
37
|
function GroupLine({ tree, group, trace, name, }) {
|
|
37
38
|
const entry = trace.get(group.id) ?? SKIPPED;
|
|
38
|
-
return (_jsxs("div", { className: ROW, children: [_jsx(OutcomeMark, { entry: entry }), _jsxs("div", { className: WORDS, children: [_jsxs("span",
|
|
39
|
+
return (_jsxs("div", { className: ROW, children: [_jsx(OutcomeMark, { entry: entry }), _jsxs("div", { className: WORDS, children: [_jsxs(DSText, { as: "span", variant: "body-sm-strong", className: cn(entry.outcome === 'skipped' && MUTED_INK[EVALUATION_TRACE_MUTED_INK]), children: [name, " ", CONDITION_CONJUNCTION_LABELS[group.conjunction], " of"] }), _jsx(DSText, { as: "span", variant: "body-sm", className: cn(MUTED_INK[EVALUATION_TRACE_MUTED_INK]), children: evaluationGroupReason(tree, group, trace) })] })] }));
|
|
39
40
|
}
|
|
40
41
|
function TraceGroupBody({ group, tree, trace, schema, describeValue, surface, }) {
|
|
41
42
|
if (group.children.length === 0)
|
|
@@ -47,16 +48,16 @@ function TraceNode({ node, tree, trace, schema, describeValue, surface }) {
|
|
|
47
48
|
const muted = entry.outcome === 'skipped';
|
|
48
49
|
if (node.kind === 'group') {
|
|
49
50
|
const fill = conditionGroupSurface(nodeDepth(tree, node.id) ?? 2);
|
|
50
|
-
return (_jsxs("li", { "data-depth": nodeDepth(tree, node.id), className: cn('flex flex-col gap-2 rounded-
|
|
51
|
+
return (_jsxs("li", { "data-depth": nodeDepth(tree, node.id), className: cn('flex flex-col gap-2 rounded-field border p-3', BORDER[EVALUATION_TRACE_BORDER], FILL[fill]), children: [_jsx(GroupLine, { tree: tree, group: node, trace: trace, name: `${nodeLabel(tree, node.id)}: match` }), _jsx(TraceGroupBody, { group: node, tree: tree, trace: trace, schema: schema, describeValue: describeValue, surface: fill })] }));
|
|
51
52
|
}
|
|
52
|
-
return (_jsxs("li", { className: ROW, children: [_jsx(OutcomeMark, { entry: entry }), _jsxs("div", { className: WORDS, children: [_jsx("span",
|
|
53
|
+
return (_jsxs("li", { className: ROW, children: [_jsx(OutcomeMark, { entry: entry }), _jsxs("div", { className: WORDS, children: [_jsx(DSText, { as: "span", variant: "body-sm", className: cn(muted && MUTED_INK[EVALUATION_TRACE_MUTED_INK]), children: describeCondition(schema, node, describeValue) }), entry.observed !== undefined && (_jsxs(DSText, { as: "span", variant: "body-xs", className: cn('rounded-xs px-1 font-mono tabular-nums', FILL[evaluationObservedSurface(surface)]), children: [_jsx("span", { className: "sr-only", children: "Observed " }), entry.observed] }))] })] }));
|
|
53
54
|
}
|
|
54
55
|
export function DSEvaluationTrace({ conditions, schema, results, decision, describeValue, title = 'Test result', headingLevel = 3, className, ...props }) {
|
|
55
56
|
const headingId = useId();
|
|
56
57
|
const Heading = HEADING[headingLevel];
|
|
57
58
|
const trace = useMemo(() => evaluateTrace(conditions, results), [conditions, results]);
|
|
58
59
|
const root = trace.get(conditions.id) ?? SKIPPED;
|
|
59
|
-
return (_jsxs("section", { ...props, "aria-labelledby": headingId, className: cn('@container flex flex-col gap-4 rounded-
|
|
60
|
+
return (_jsxs("section", { ...props, "aria-labelledby": headingId, className: cn('@container flex flex-col gap-4 rounded-tile border p-4', SURFACE[EVALUATION_TRACE_SURFACE], BORDER[EVALUATION_TRACE_BORDER], className), children: [_jsx(Heading, { id: headingId, className: "m-0 text-heading-sm", children: title }), _jsxs("div", { "aria-live": "polite", "aria-atomic": "true", className: "flex flex-wrap items-baseline gap-x-3 gap-y-1", children: [_jsx("span", { className: "text-body-md-strong", children: decision }), _jsx("span", { ...(EVALUATION_OUTCOME_TONES[root.outcome] === undefined
|
|
60
61
|
? {}
|
|
61
62
|
: {
|
|
62
63
|
'data-tone': EVALUATION_OUTCOME_TONES[root.outcome],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EventRowContract } from '../event-row';
|
|
2
2
|
import { type DSListRowProps } from '../../list-row/web/ds-list-row';
|
|
3
3
|
export type DSEventRowProps = Omit<DSListRowProps, 'title' | 'sub' | 'chevron' | 'leading' | 'labels' | 'trailing'> & EventRowContract;
|
|
4
|
-
/** An event in a list: a date block, a title, the time and source
|
|
4
|
+
/** An event in a list: a date block, a title, the time and source and an arrow. Press, focus, selected and disabled are the list row's. */
|
|
5
5
|
export declare function DSEventRow({ date, time, title, source, className, ...props }: DSEventRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { eventDateParts, eventSubline } from '../event-row';
|
|
3
3
|
import { DSListRow } from '../../list-row/web/ds-list-row';
|
|
4
4
|
import { cn } from '../../lib/cn';
|
|
5
|
+
import { DSText } from '../../text/web/ds-text';
|
|
5
6
|
function DateBlock({ date }) {
|
|
6
7
|
const { day, month } = eventDateParts(date);
|
|
7
|
-
return (_jsxs("span", { "aria-hidden": true, "data-event-date": "", className: "flex size-12 shrink-0 flex-col items-center justify-center rounded-
|
|
8
|
+
return (_jsxs("span", { "aria-hidden": true, "data-event-date": "", className: "flex size-12 shrink-0 flex-col items-center justify-center rounded-field bg-muted text-foreground", children: [_jsx("span", { className: "text-heading-md leading-none tabular-nums", children: day }), month !== '' && (_jsx(DSText, { as: "span", variant: "label-sm", className: "text-muted-foreground", children: month }))] }));
|
|
8
9
|
}
|
|
9
10
|
export function DSEventRow({ date, time, title, source, className, ...props }) {
|
|
10
11
|
const { spoken } = eventDateParts(date);
|
|
@@ -26,9 +26,9 @@ export interface FacetButtonResolvedSpec {
|
|
|
26
26
|
rule: FacetButtonRuleRole;
|
|
27
27
|
}
|
|
28
28
|
export interface FacetButtonContract {
|
|
29
|
-
/** What the facet IS
|
|
29
|
+
/** What the facet IS, "Date range", "Countries". */
|
|
30
30
|
name: string;
|
|
31
|
-
/** What it is currently set to
|
|
31
|
+
/** What it is currently set to, "Last 7 days". Absent leaves the facet as
|
|
32
32
|
* an "add" pill: a dashed edge, a plus and the name. */
|
|
33
33
|
value?: Forwarded<string>;
|
|
34
34
|
/** Whether the chooser this opens is showing. Forwarded to `aria-expanded`,
|
|
@@ -49,7 +49,7 @@ export declare function facetButtonSpec(value: string | undefined, count?: numbe
|
|
|
49
49
|
/** What a screen reader should hear: the facet and its value as one sentence,
|
|
50
50
|
* never "Date range" and "Last 7 days" as two unrelated words. */
|
|
51
51
|
export declare function facetButtonLabel(name: string, value: string | undefined, count?: number, countLabel?: string): string;
|
|
52
|
-
/** Whether the pill draws its clear: only while it holds a value
|
|
52
|
+
/** Whether the pill draws its clear: only while it holds a value and only when the caller can clear it. */
|
|
53
53
|
export declare function facetButtonShowsClear(value: string | undefined, clearable: boolean): boolean;
|
|
54
54
|
/** The attribute a facet's main button carries, so a facet row can walk its pills with the arrow keys. */
|
|
55
55
|
export declare const FACET_TRIGGER_ATTRIBUTE = "data-facet-trigger";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { type FacetButtonContract } from '../facet-button';
|
|
3
3
|
export type DSFacetButtonProps = Omit<ComponentProps<'button'>, 'children' | 'aria-expanded' | 'aria-label' | 'type'> & FacetButtonContract & {
|
|
4
|
-
/** Makes a set facet removable
|
|
4
|
+
/** Makes a set facet removable and draws its clear as a small circled x
|
|
5
5
|
* at the start of the pill: a SIBLING button, never a child. Shown only
|
|
6
6
|
* while the facet holds a value. */
|
|
7
7
|
onClear?: () => void;
|
|
@@ -4,6 +4,7 @@ import { ChevronDown, CirclePlus, CircleX } from 'lucide-react';
|
|
|
4
4
|
import { FACET_TRIGGER_ATTRIBUTE, facetButtonHasCount, facetButtonLabel, facetButtonShowsClear, facetButtonSpec, } from '../facet-button';
|
|
5
5
|
import { cn } from '../../lib/cn';
|
|
6
6
|
import { DSCountBadge } from '../../count-badge/web/ds-count-badge';
|
|
7
|
+
import { assignRef } from '../../lib/web/assign-ref';
|
|
7
8
|
const NAME_INK = {
|
|
8
9
|
'muted-foreground': 'text-muted-foreground',
|
|
9
10
|
};
|
|
@@ -28,18 +29,11 @@ export function DSFacetButton({ name, value, expanded, count, countLabel, onClea
|
|
|
28
29
|
const ink = (live) => (disabled ? DISABLED_INK : live);
|
|
29
30
|
return (_jsxs("span", { ...(clear ? { role: 'group', 'aria-label': label } : {}), className: cn(FRAME, disabled
|
|
30
31
|
? DISABLED_FRAME
|
|
31
|
-
: cn('state-layer-edge', SURFACE[spec.surface], BORDER[spec.border]), EDGE_STYLE[spec.edgeStyle]), children: [clear && (_jsx("button", { type: "button", disabled: disabled, "aria-label": clearLabel ?? `Clear ${name.toLowerCase()}`, onClick: () => {
|
|
32
|
+
: cn('state-layer-edge', SURFACE[spec.surface], BORDER[spec.border], 'chip-rest-facet'), EDGE_STYLE[spec.edgeStyle]), children: [clear && (_jsx("button", { type: "button", disabled: disabled, "aria-label": clearLabel ?? `Clear ${name.toLowerCase()}`, onClick: () => {
|
|
32
33
|
onClear?.();
|
|
33
34
|
trigger.current?.focus();
|
|
34
|
-
}, className: cn(INSIDE, 'min-w-6 justify-center ps-1
|
|
35
|
+
}, className: cn(INSIDE, 'min-w-6 justify-center ps-1 pointer-coarse:min-w-touch', disabled ? DISABLED_INK : cn(NAME_INK[spec.nameInk], 'hover:text-foreground')), children: _jsx(CircleX, { "aria-hidden": true, className: "size-3.5" }) }, "clear")), _jsx("button", { ref: (node) => {
|
|
35
36
|
trigger.current = node;
|
|
36
37
|
assignRef(ref, node);
|
|
37
|
-
}, type: "button", disabled: disabled, "aria-label": label, ...(expanded === undefined ? {} : { 'aria-expanded': expanded }), [FACET_TRIGGER_ATTRIBUTE]: '', className: cn(INSIDE, 'min-w-0 gap-
|
|
38
|
-
}
|
|
39
|
-
function assignRef(ref, node) {
|
|
40
|
-
if (typeof ref === 'function')
|
|
41
|
-
ref(node);
|
|
42
|
-
else if (ref !== undefined && ref !== null) {
|
|
43
|
-
ref.current = node;
|
|
44
|
-
}
|
|
38
|
+
}, type: "button", disabled: disabled, "aria-label": label, ...(expanded === undefined ? {} : { 'aria-expanded': expanded }), [FACET_TRIGGER_ATTRIBUTE]: '', className: cn(INSIDE, 'min-w-0 gap-2 pe-2', clear ? 'ps-1' : 'ps-2', className), ...props, children: spec.set ? (_jsxs(_Fragment, { children: [_jsx("span", { className: cn('shrink-0', ink(NAME_INK[spec.nameInk])), children: name }), _jsx("span", { "aria-hidden": true, className: cn('h-3 w-px shrink-0', RULE[spec.rule]) }), _jsx("span", { title: value, className: cn('min-w-0 truncate', ink(cn(VALUE_INK[spec.valueInk], 'chip-value'))), children: value }), badge, _jsx(ChevronDown, { "aria-hidden": true, className: cn('size-3.5 shrink-0', ink(NAME_INK[spec.nameInk])) })] })) : spec.dropdown ? (_jsxs(_Fragment, { children: [_jsx("span", { className: cn('shrink-0', ink('text-foreground')), children: name }), badge, _jsx(ChevronDown, { "aria-hidden": true, className: cn('size-3.5 shrink-0', ink(NAME_INK[spec.nameInk])) })] })) : (_jsxs(_Fragment, { children: [_jsx(CirclePlus, { "aria-hidden": true, className: cn('size-3.5 shrink-0', ink(NAME_INK[spec.nameInk])) }), _jsx("span", { className: ink(NAME_INK[spec.nameInk]), children: name })] })) }, "trigger")] }));
|
|
45
39
|
}
|
|
@@ -7,5 +7,5 @@ export type DSFacetMenuRowProps = Omit<ComponentProps<'div'>, 'role' | 'aria-lab
|
|
|
7
7
|
/** Takes every facet in the row back to empty. Leave it out for no "Clear filters". */
|
|
8
8
|
onClearAll?: () => void;
|
|
9
9
|
};
|
|
10
|
-
/** A row of facet pills: the arrows step between them
|
|
10
|
+
/** A row of facet pills: the arrows step between them and "Clear filters" follows the last once any is set. */
|
|
11
11
|
export declare function DSFacetMenuRow({ label, filtered, onClearAll, children, className, onKeyDown, ...props }: DSFacetMenuRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@ import { useControllable } from '../../lib/use-controllable';
|
|
|
13
13
|
import { focusableWithin, FOCUSABLE } from '../../lib/web/focus-trap';
|
|
14
14
|
import { announceLive } from '../../lib/web/live-announcer';
|
|
15
15
|
import { useAnchoredSurface } from '../../lib/web/use-anchored-surface';
|
|
16
|
+
import { DSText } from '../../text/web/ds-text';
|
|
16
17
|
export function DSFacetMenu(props) {
|
|
17
18
|
return props.multiple === true ? _jsx(MultipleFacet, { ...props }) : _jsx(SingleFacet, { ...props });
|
|
18
19
|
}
|
|
@@ -37,7 +38,7 @@ function SingleFacet({ options, value, onValueChange, open: openProp, onOpenChan
|
|
|
37
38
|
const OPTION_ACTIVE = {
|
|
38
39
|
'field-hover': 'bg-field-hover',
|
|
39
40
|
};
|
|
40
|
-
const ROW = cn('flex w-full cursor-pointer items-center gap-2 rounded-
|
|
41
|
+
const ROW = cn('flex w-full cursor-pointer items-center gap-2 rounded-field px-2 text-left text-body-sm', 'min-h-9 compact:min-h-8 pointer-coarse:min-h-touch');
|
|
41
42
|
function MultipleFacet({ options, value, onValueChange, open: openProp, onOpenChange, name, searchLabel, noun, onClear, clearLabel, multiple, ...props }) {
|
|
42
43
|
void multiple;
|
|
43
44
|
const id = useId();
|
|
@@ -206,12 +207,12 @@ function MultipleFacet({ options, value, onValueChange, open: openProp, onOpenCh
|
|
|
206
207
|
if (next !== null && triggerHolder.current?.contains(next) === true)
|
|
207
208
|
return;
|
|
208
209
|
setOpen(false);
|
|
209
|
-
}, className: cn(anchored.exiting ? 'animate-fade-out' : 'animate-alert-in', 'flex w-72 flex-col overflow-hidden rounded-
|
|
210
|
+
}, className: cn(anchored.exiting ? 'animate-fade-out' : 'animate-alert-in', 'flex w-72 flex-col overflow-hidden rounded-pop border border-dialog-edge bg-dialog-fill shadow-medium'), children: [searchable && (_jsxs("div", { className: "focusable-field-within flex items-center gap-2 border-b border-border px-3", children: [_jsx(Search, { "aria-hidden": true, className: "size-4 shrink-0 text-muted-foreground" }), _jsx("input", { ref: searchRef, type: "text", role: "combobox", "aria-label": searchLabel ?? `Search ${name.toLowerCase()}`, "aria-expanded": true, "aria-controls": listId, "aria-autocomplete": "list", ...(visible.length > 0 ? { 'aria-activedescendant': rowId(active) } : {}), autoComplete: "off", value: query, placeholder: "Search", onChange: (event) => {
|
|
210
211
|
setQuery(event.target.value);
|
|
211
212
|
setActive(0);
|
|
212
213
|
}, onKeyDown: (event) => {
|
|
213
214
|
onKeyDown(event, true);
|
|
214
|
-
}, className: "min-h-10 min-w-0 flex-1 bg-transparent text-body-sm text-foreground outline-none placeholder:text-placeholder-foreground pointer-coarse:min-h-touch" })] })), visible.length === 0 ? (_jsx("p",
|
|
215
|
+
}, className: "min-h-10 min-w-0 flex-1 bg-transparent text-body-sm text-foreground outline-none placeholder:text-placeholder-foreground pointer-coarse:min-h-touch" })] })), visible.length === 0 ? (_jsx(DSText, { as: "p", variant: "body-sm", id: listId, role: "status", className: "m-0 p-3 text-muted-foreground", children: "No matches" })) : (_jsx("div", { ref: listRef, id: listId, role: "listbox", "aria-label": name, "aria-multiselectable": true, tabIndex: searchable ? -1 : 0, ...(searchable ? {} : { 'aria-activedescendant': rowId(active) }), onKeyDown: (event) => {
|
|
215
216
|
onKeyDown(event, false);
|
|
216
217
|
}, className: "focusable max-h-72 overflow-y-auto p-1", children: visible.map((option, index) => {
|
|
217
218
|
const on = chosen.has(option.value);
|
|
@@ -223,6 +224,6 @@ function MultipleFacet({ options, value, onValueChange, open: openProp, onOpenCh
|
|
|
223
224
|
}, onClick: () => {
|
|
224
225
|
setActive(index);
|
|
225
226
|
toggle(index);
|
|
226
|
-
}, "data-forced-colors": "menu-item", className: cn(ROW, index === active && OPTION_ACTIVE[list.optionActiveSurface], refused ? 'cursor-not-allowed text-disabled-foreground' : 'text-foreground'), children: [_jsx(CheckboxMark, { state: on ? 'on' : 'off', disabled: refused }), option.leading !== undefined && (_jsx("span", { "aria-hidden": true, className: "grid size-5 shrink-0 place-items-center overflow-hidden", children: option.leading })), _jsx("span", { className: "min-w-0 flex-1
|
|
227
|
+
}, "data-forced-colors": "menu-item", className: cn(ROW, index === active && OPTION_ACTIVE[list.optionActiveSurface], refused ? 'cursor-not-allowed text-disabled-foreground' : 'text-foreground'), children: [_jsx(CheckboxMark, { state: on ? 'on' : 'off', disabled: refused }), option.leading !== undefined && (_jsx("span", { "aria-hidden": true, className: "grid size-5 shrink-0 place-items-center overflow-hidden", children: option.leading })), _jsx("span", { className: "min-w-0 flex-1 break-words", children: option.label }), option.count !== undefined && (_jsx("span", { className: "shrink-0 text-muted-foreground tabular-nums", children: facetMenuCount(option.count) }))] }, option.value));
|
|
227
228
|
}) }))] }), anchored.host)] }));
|
|
228
229
|
}
|
package/dist/fact/fact.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface FactContract {
|
|
|
22
22
|
/** A quieter second line beneath the value. */
|
|
23
23
|
sub?: Forwarded<string>;
|
|
24
24
|
}
|
|
25
|
-
/** The one recipe this concern has
|
|
25
|
+
/** The one recipe this concern has, no size/tone/variant axis exists for it,
|
|
26
26
|
* so this takes no arguments, on the same terms `figureSpec()`/
|
|
27
27
|
* `emptyStateSpec()` do for their own axis-free concerns. */
|
|
28
28
|
export declare function factSpec(): FactResolvedSpec;
|
|
@@ -30,7 +30,7 @@ export declare function factSpec(): FactResolvedSpec;
|
|
|
30
30
|
export declare function factLabel(name: string, value: string, sub?: string): string;
|
|
31
31
|
/** The ramp step each line of a fact is set on. */
|
|
32
32
|
export declare const FACT_TYPE: {
|
|
33
|
-
readonly name: "caps
|
|
33
|
+
readonly name: "caps";
|
|
34
34
|
readonly value: "body-md";
|
|
35
35
|
readonly sub: "body-sm";
|
|
36
36
|
};
|
package/dist/fact/fact.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { View
|
|
2
|
+
import { View } from 'react-native';
|
|
3
3
|
import { factLabel, factSpec, } from '../fact';
|
|
4
4
|
import { cn } from '../../lib/cn';
|
|
5
|
+
import { DSText } from '../../text/native/ds-text';
|
|
5
6
|
const NAME_INK = {
|
|
6
7
|
'muted-foreground': 'text-muted-foreground',
|
|
7
8
|
};
|
|
@@ -17,5 +18,5 @@ const BORDER = {
|
|
|
17
18
|
export function DSFact({ name, value, sub, className, ...props }) {
|
|
18
19
|
const spec = factSpec();
|
|
19
20
|
const hasSub = sub !== undefined && sub.trim() !== '';
|
|
20
|
-
return (_jsxs(View, { accessible: true, accessibilityLabel: factLabel(name, value, sub), className: cn('flex-row flex-wrap items-baseline justify-between gap-x-3 gap-y-1 border-t py-
|
|
21
|
+
return (_jsxs(View, { accessible: true, accessibilityLabel: factLabel(name, value, sub), className: cn('flex-row flex-wrap items-baseline justify-between gap-x-3 gap-y-1 border-t py-2', BORDER[spec.border], className), ...props, children: [_jsx(DSText, { variant: "caps", className: cn('shrink uppercase', NAME_INK[spec.nameInk]), children: name }), _jsx(DSText, { variant: "body-md-strong", className: cn('ml-auto shrink text-right tabular-nums', VALUE_INK[spec.valueInk]), children: value }), hasSub && _jsx(DSText, { variant: "body-sm", className: cn('w-full', SUB_INK[spec.subInk]), children: sub })] }));
|
|
21
22
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Forwarded } from '../props';
|
|
2
2
|
/** What a single slot in a pattern accepts. */
|
|
3
3
|
export declare const FIELD_MASK_TOKENS: {
|
|
4
|
-
/**
|
|
4
|
+
/** `#`, one digit. */
|
|
5
5
|
readonly '#': RegExp;
|
|
6
|
-
/** `A
|
|
6
|
+
/** `A`, one letter. */
|
|
7
7
|
readonly A: RegExp;
|
|
8
|
-
/**
|
|
8
|
+
/** `*`, one letter or digit. */
|
|
9
9
|
readonly '*': RegExp;
|
|
10
10
|
};
|
|
11
11
|
export type FieldMaskToken = keyof typeof FIELD_MASK_TOKENS;
|
|
@@ -28,7 +28,7 @@ type MaskPart = {
|
|
|
28
28
|
* wants to reason about a pattern without applying it.
|
|
29
29
|
*/
|
|
30
30
|
export declare function fieldMaskParts(pattern: string): MaskPart[];
|
|
31
|
-
/** How many characters a complete value holds
|
|
31
|
+
/** How many characters a complete value holds, the token slots, counted. */
|
|
32
32
|
export declare function fieldMaskLength(mask: FieldMask): number;
|
|
33
33
|
/** Any way it was typed, reduced to the characters the value actually holds. */
|
|
34
34
|
export declare function fieldMaskValue(raw: string, mask: FieldMask): string;
|
|
@@ -71,13 +71,13 @@ export declare function fieldCheckIsError(check: FieldCheck): boolean;
|
|
|
71
71
|
export declare function fieldCheckIsSilent(check: FieldCheck): boolean;
|
|
72
72
|
/** Normalises a validator's `void` return into a check. */
|
|
73
73
|
export declare function fieldCheck(value: string, validate: FieldValidator): FieldCheck;
|
|
74
|
-
/** Whether leaving the field is a moment to check it
|
|
74
|
+
/** Whether leaving the field is a moment to check it, rules 1 and 2. */
|
|
75
75
|
export declare function fieldShouldCheckOnBlur(value: string, told: boolean): boolean;
|
|
76
|
-
/** Whether a keystroke is a moment to check
|
|
76
|
+
/** Whether a keystroke is a moment to check, rule 3. */
|
|
77
77
|
export declare function fieldShouldCheckOnChange(told: boolean): boolean;
|
|
78
78
|
/** Whether the field is now one that gets checked on every keystroke. */
|
|
79
79
|
export declare function fieldTold(told: boolean, value: string): boolean;
|
|
80
|
-
/** Whether two checks say the same thing
|
|
80
|
+
/** Whether two checks say the same thing, so a field reports a check only when it changes. */
|
|
81
81
|
export declare function fieldChecksEqual(a: FieldCheck, b: FieldCheck): boolean;
|
|
82
82
|
/** The props a field accepts for shaping and checking, on both platforms. */
|
|
83
83
|
export interface FieldRulesContract {
|
|
@@ -86,7 +86,7 @@ export interface FieldRulesContract {
|
|
|
86
86
|
/** Shaping a pattern cannot express. */
|
|
87
87
|
formatter?: Forwarded<FieldFormatter>;
|
|
88
88
|
/**
|
|
89
|
-
* The caller's rule, run on the timing this file defines
|
|
89
|
+
* The caller's rule, run on the timing this file defines, never on every
|
|
90
90
|
* keystroke from the start.
|
|
91
91
|
*/
|
|
92
92
|
validate?: Forwarded<FieldValidator>;
|
|
@@ -94,7 +94,7 @@ export interface FieldRulesContract {
|
|
|
94
94
|
onCheck?: Forwarded<(check: FieldCheck) => void>;
|
|
95
95
|
/** Whether the field counts as touched, so its check shows. The field decides this itself, on leaving, when it is omitted. */
|
|
96
96
|
touched?: Forwarded<boolean>;
|
|
97
|
-
/** Told the field became touched
|
|
97
|
+
/** Told the field became touched, the first time it is left holding something. */
|
|
98
98
|
onTouchedChange?: Forwarded<(touched: boolean) => void>;
|
|
99
99
|
}
|
|
100
100
|
/** The one function an adapter calls to settle which shaping applies. */
|
package/dist/figure/figure.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface FigureContract {
|
|
|
11
11
|
}
|
|
12
12
|
/** The ramp step each line of a figure is set on. */
|
|
13
13
|
export declare const FIGURE_TYPE: {
|
|
14
|
-
readonly label: "caps
|
|
14
|
+
readonly label: "caps";
|
|
15
15
|
readonly value: "heading-md";
|
|
16
16
|
};
|
|
17
17
|
export interface FigureResolvedSpec {
|
package/dist/figure/figure.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { View
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { Text } from '../../lib/native/text';
|
|
3
4
|
import { FIGURE_TYPE, figureLabel, figureSpec, } from '../figure';
|
|
4
5
|
import { cn } from '../../lib/cn';
|
|
5
6
|
const LABEL_INK = {
|
|
@@ -9,10 +10,10 @@ const VALUE_INK = {
|
|
|
9
10
|
foreground: 'text-foreground',
|
|
10
11
|
};
|
|
11
12
|
const TYPE = {
|
|
12
|
-
'caps
|
|
13
|
+
'caps': 'text-caps uppercase',
|
|
13
14
|
'heading-md': 'text-heading-md',
|
|
14
15
|
};
|
|
15
16
|
export function DSFigure({ label, value, className, ...props }) {
|
|
16
17
|
const spec = figureSpec();
|
|
17
|
-
return (_jsxs(View, { accessible: true, accessibilityLabel: figureLabel(label, value), className: cn('min-w-0 shrink flex-col gap-
|
|
18
|
+
return (_jsxs(View, { accessible: true, accessibilityLabel: figureLabel(label, value), className: cn('min-w-0 shrink flex-col gap-1', className), ...props, children: [_jsx(Text, { className: cn('font-sans', TYPE[FIGURE_TYPE.label], LABEL_INK[spec.labelInk]), children: label }), _jsx(Text, { className: cn('font-sans tabular-nums', TYPE[FIGURE_TYPE.value], VALUE_INK[spec.valueInk]), children: value })] }));
|
|
18
19
|
}
|
|
@@ -5,7 +5,7 @@ export declare const FILE_DROPZONE_REFUSALS: readonly ["unsupported", "too-large
|
|
|
5
5
|
export type FileDropzoneRefusal = (typeof FILE_DROPZONE_REFUSALS)[number];
|
|
6
6
|
/** The rules a file is checked against as it arrives. */
|
|
7
7
|
export interface FileDropzoneRules {
|
|
8
|
-
/** HTML `accept` syntax
|
|
8
|
+
/** HTML `accept` syntax, `.csv,text/csv`, `image/*`. */
|
|
9
9
|
accept?: string | undefined;
|
|
10
10
|
/** The largest file admitted, in bytes. */
|
|
11
11
|
maxBytes?: number | undefined;
|
|
@@ -27,16 +27,16 @@ export interface FileDropzoneSorted<T extends FileFieldFile> {
|
|
|
27
27
|
*
|
|
28
28
|
* `existing` is how many rows the list already holds, so `maxFiles` counts the
|
|
29
29
|
* whole list rather than one drop. Files past the limit are refused as
|
|
30
|
-
* `too-many` only once they would otherwise have been admitted
|
|
30
|
+
* `too-many` only once they would otherwise have been admitted, a file that
|
|
31
31
|
* is also the wrong type is told the more useful thing. */
|
|
32
32
|
export declare function fileDropzoneSort<T extends FileFieldFile>(files: readonly T[], rules?: FileDropzoneRules, existing?: number): FileDropzoneSorted<T>;
|
|
33
33
|
/** Why a refused file was refused, as the second half of a sentence. */
|
|
34
34
|
export declare function fileDropzoneRefusalText(reason: FileDropzoneRefusal, rules?: FileDropzoneRules): string;
|
|
35
|
-
/** What is said
|
|
35
|
+
/** What is said and shown, after a drop, a paste or a pick.
|
|
36
36
|
*
|
|
37
37
|
* One file is named; several are counted, because a list of eleven names read
|
|
38
|
-
* aloud is a paragraph nobody asked for. Refusals are always named
|
|
39
|
-
* is somebody's file that did not go in
|
|
38
|
+
* aloud is a paragraph nobody asked for. Refusals are always named, each one
|
|
39
|
+
* is somebody's file that did not go in and "2 refused" does not say which
|
|
40
40
|
* two to fix. */
|
|
41
41
|
export declare function fileDropzoneArrivalMessage(sorted: FileDropzoneSorted<FileFieldFile>, rules?: FileDropzoneRules): string;
|
|
42
42
|
/** One row of the list. The caller holds these and advances each one. */
|
|
@@ -56,15 +56,15 @@ export interface FileDropzoneItem {
|
|
|
56
56
|
}
|
|
57
57
|
/** What to announce when rows settle: a file that has just landed, or just
|
|
58
58
|
* failed. Compared by key against the previous list, so a re-render that
|
|
59
|
-
* changes nothing says nothing
|
|
60
|
-
* either
|
|
59
|
+
* changes nothing says nothing and a percentage ticking up says nothing
|
|
60
|
+
* either, only arriving at an end is news. */
|
|
61
61
|
export declare function fileDropzoneSettledMessages(previous: readonly FileDropzoneItem[], next: readonly FileDropzoneItem[]): string[];
|
|
62
62
|
/** Whether a drag is carrying files, read off `DataTransfer.types`. A drag of
|
|
63
|
-
* selected text or a link must not light the target up
|
|
63
|
+
* selected text or a link must not light the target up, it would promise to
|
|
64
64
|
* accept something it will then silently ignore. */
|
|
65
65
|
export declare function fileDropzoneCarriesFiles(types: readonly string[] | undefined): boolean;
|
|
66
66
|
/** The files in a paste worth taking: images only. A paste is otherwise text,
|
|
67
|
-
* and a document copied in a file manager arrives as a paste too
|
|
67
|
+
* and a document copied in a file manager arrives as a paste too, that one
|
|
68
68
|
* belongs to the picker, where the person can see what they chose. */
|
|
69
69
|
export declare function fileDropzonePastable<T extends {
|
|
70
70
|
type: string;
|
|
@@ -89,7 +89,7 @@ export interface FileDropzoneResolvedSpec {
|
|
|
89
89
|
export declare function fileDropzoneSpec(active: boolean): FileDropzoneResolvedSpec;
|
|
90
90
|
/** The props every File Dropzone implementation accepts. */
|
|
91
91
|
export interface FileDropzoneContract extends FileDropzoneRules {
|
|
92
|
-
/** What the files are FOR
|
|
92
|
+
/** What the files are FOR, "Receipts", "Vehicle import". Names the target. */
|
|
93
93
|
label: string;
|
|
94
94
|
/** The rows, as the caller holds them. */
|
|
95
95
|
items: readonly FileDropzoneItem[];
|
|
@@ -13,12 +13,12 @@ export type DSFileDropzoneProps = Omit<ComponentProps<'div'>, 'children' | 'onDr
|
|
|
13
13
|
onRemove?: (key: string) => void;
|
|
14
14
|
/** Retries a failed row. Offered only where retrying could work. */
|
|
15
15
|
onRetry?: (key: string) => void;
|
|
16
|
-
/** A line under the target: what it takes and how big
|
|
16
|
+
/** A line under the target: what it takes and how big, "JPG, PNG or PDF, up to 10 MB each". */
|
|
17
17
|
hint?: ReactNode;
|
|
18
18
|
/** Lets a drop anywhere on the page land here, with an overlay while a drag is over the window. */
|
|
19
19
|
pageDrop?: boolean;
|
|
20
20
|
/** Takes images pasted anywhere on the page. */
|
|
21
21
|
paste?: boolean;
|
|
22
22
|
};
|
|
23
|
-
/** A target that takes several files at once
|
|
23
|
+
/** A target that takes several files at once, dropped, pasted or picked and a list of where each one has got to. */
|
|
24
24
|
export declare function DSFileDropzone({ label, items, accept, maxBytes, maxFiles, disabled, onAdd, onReject, onRemove, onRetry, hint, pageDrop, paste, className, id: callerId, 'aria-describedby': callerDescribedBy, 'aria-invalid': callerInvalid, ...props }: DSFileDropzoneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ import { DSMeter } from '../../meter/web/ds-meter';
|
|
|
10
10
|
import { cn } from '../../lib/cn';
|
|
11
11
|
import { announceLive } from '../../lib/web/live-announcer';
|
|
12
12
|
import { useFocusFallback } from '../../lib/web/focus-habits';
|
|
13
|
+
import { DSText } from '../../text/web/ds-text';
|
|
13
14
|
const BORDER = {
|
|
14
15
|
input: 'border-input',
|
|
15
16
|
primary: 'border-primary',
|
|
@@ -36,7 +37,7 @@ function Row({ item, maxBytes, onRemove, onRetry, disabled, }) {
|
|
|
36
37
|
});
|
|
37
38
|
const problem = spec.tone !== undefined;
|
|
38
39
|
const Glyph = problem ? TriangleAlert : FileText;
|
|
39
|
-
return (_jsxs("li", { ...(problem ? { 'data-tone': spec.tone, 'data-forced-colors': 'tone' } : {}), className: cn('flex items-center gap-3 rounded-card border p-3', ROW_SURFACE[FILE_DROPZONE_ROW_SURFACE], problem ? 'border-destructive' : ROW_BORDER[FILE_DROPZONE_ROW_BORDER]), children: [_jsx(Glyph, { "aria-hidden": true, className: cn('size-5 flex-none', problem ? PROBLEM_INK[FILE_DROPZONE_PROBLEM_INK] : META_INK[FILE_DROPZONE_META_INK]) }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [_jsx("span",
|
|
40
|
+
return (_jsxs("li", { ...(problem ? { 'data-tone': spec.tone, 'data-forced-colors': 'tone' } : {}), className: cn('flex items-center gap-3 rounded-card border p-3', ROW_SURFACE[FILE_DROPZONE_ROW_SURFACE], problem ? 'border-destructive' : ROW_BORDER[FILE_DROPZONE_ROW_BORDER]), children: [_jsx(Glyph, { "aria-hidden": true, className: cn('size-5 flex-none', problem ? PROBLEM_INK[FILE_DROPZONE_PROBLEM_INK] : META_INK[FILE_DROPZONE_META_INK]) }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [_jsx(DSText, { as: "span", variant: "body-sm-strong", "aria-hidden": true, className: cn('truncate', INK[FILE_DROPZONE_INK]), children: aiAttachmentMiddleTruncate(item.name, 40) }), _jsx("span", { className: "sr-only", children: item.name }), item.status === 'uploading' && (_jsx(DSMeter, { value: aiAttachmentProgress(item.progress), max: 100, label: `Uploading ${item.name}` })), _jsx(DSText, { as: "span", variant: "body-sm", className: cn('tabular-nums', problem ? PROBLEM_INK[FILE_DROPZONE_PROBLEM_INK] : META_INK[FILE_DROPZONE_META_INK]), children: spec.detail })] }), spec.retryable && onRetry !== undefined && (_jsx(DSIconButton, { variant: "ghost", size: "sm", label: `Retry uploading ${item.name}`, icon: _jsx(RotateCcw, { "aria-hidden": true }), disabled: disabled, "data-file-retry": item.key, onClick: (event) => {
|
|
40
41
|
onRetry(item.key, event);
|
|
41
42
|
} })), onRemove !== undefined && (_jsx(DSIconButton, { variant: "ghost", size: "sm", label: aiAttachmentRemoveLabel(item.name), icon: _jsx(X, { "aria-hidden": true }), disabled: disabled, "data-file-remove": item.key, onClick: (event) => {
|
|
42
43
|
onRemove(item.key, event);
|
|
@@ -207,7 +208,7 @@ export function DSFileDropzone({ label, items, accept, maxBytes, maxFiles, disab
|
|
|
207
208
|
setOver(false);
|
|
208
209
|
setPageOver(false);
|
|
209
210
|
take(Array.from(event.dataTransfer.files));
|
|
210
|
-
}, className: cn('flex flex-col items-center gap-2 rounded-card border-2 border-dashed p-6 text-center transition-control', disabled ? DISABLED_ZONE : cn(BORDER[spec.border], SURFACE[spec.surface])), children: [_jsx(Upload, { "aria-hidden": true, className: cn('size-6', disabled ? DISABLED_INK : META_INK[FILE_DROPZONE_META_INK]) }), _jsx("span",
|
|
211
|
+
}, className: cn('flex flex-col items-center gap-2 rounded-card border-2 border-dashed p-6 text-center transition-control', disabled ? DISABLED_ZONE : cn(BORDER[spec.border], SURFACE[spec.surface])), children: [_jsx(Upload, { "aria-hidden": true, className: cn('size-6', disabled ? DISABLED_INK : META_INK[FILE_DROPZONE_META_INK]) }), _jsx(DSText, { as: "span", variant: "body-md-strong", id: labelId, className: cn('', disabled ? DISABLED_INK : INK[FILE_DROPZONE_INK]), children: label }), _jsx(DSText, { as: "span", variant: "body-sm", className: cn(disabled ? DISABLED_INK : META_INK[FILE_DROPZONE_META_INK]), children: `${single ? 'Drag a file here' : 'Drag files here'}${paste ? ', paste an image, or' : ', or'}` }), _jsx(DSButton, { variant: "outline", size: "sm", asChild: true, disabled: disabled, children: _jsxs("label", { htmlFor: inputId, className: cn('focusable-within', disabled ? 'cursor-not-allowed' : 'cursor-pointer'), children: [single ? 'Choose file' : 'Choose files', _jsx("input", { ref: inputRef, id: inputId, type: "file", multiple: !single, className: "sr-only", "aria-label": `${single ? 'Choose file' : 'Choose files'}, ${label}`, accept: accept, disabled: disabled, "aria-describedby": describedBy, ...(callerInvalid === undefined
|
|
211
212
|
? refusal === ''
|
|
212
213
|
? {}
|
|
213
214
|
: { 'aria-invalid': true }
|
|
@@ -11,10 +11,10 @@ export interface FileFieldFile {
|
|
|
11
11
|
name: string;
|
|
12
12
|
/** Bytes. */
|
|
13
13
|
size: number;
|
|
14
|
-
/** The MIME type the browser reported. May be `''
|
|
14
|
+
/** The MIME type the browser reported. May be `''`, see `fileFieldRejects`. */
|
|
15
15
|
type: string;
|
|
16
16
|
}
|
|
17
|
-
/** Whether `accept` admits this file. `accept` is the HTML syntax
|
|
17
|
+
/** Whether `accept` admits this file. `accept` is the HTML syntax, a
|
|
18
18
|
* comma-separated list of extensions (`.csv`) and MIME types (`text/csv`,
|
|
19
19
|
* `image/*`). An empty `accept` admits everything. */
|
|
20
20
|
export declare function fileFieldAccepts(file: FileFieldFile, accept?: string): boolean;
|
|
@@ -32,8 +32,8 @@ export declare const FILE_FIELD_UNIT_BYTES = 1024;
|
|
|
32
32
|
export declare const FILE_FIELD_UNKNOWN_SIZE = "Size unknown";
|
|
33
33
|
/** A byte count as a person reads it: `42 KB`, `1.4 MB`. */
|
|
34
34
|
export declare function fileFieldFormatSize(bytes: number): string;
|
|
35
|
-
/** `0`–`100`, or `undefined` when the total is not known
|
|
36
|
-
* content length is a real case
|
|
35
|
+
/** `0`–`100`, or `undefined` when the total is not known, a transfer with no
|
|
36
|
+
* content length is a real case and a bar pinned at zero for it is a lie. */
|
|
37
37
|
export declare function fileFieldPercent(sent: number, total?: number): number | undefined;
|
|
38
38
|
/** "24 KB of 42 KB", or "24 KB sent" when the total is not known. */
|
|
39
39
|
export declare function fileFieldProgressText(sent: number, total?: number): string;
|
|
@@ -22,7 +22,7 @@ export type DSFileFieldStatus = {
|
|
|
22
22
|
message: string;
|
|
23
23
|
};
|
|
24
24
|
export type DSFileFieldProps = Omit<ComponentProps<'div'>, 'children' | 'onSelect'> & {
|
|
25
|
-
/** The words on the button
|
|
25
|
+
/** The words on the button, "Import CSV", "Attach licence disc". */
|
|
26
26
|
label: string;
|
|
27
27
|
/** HTML `accept`: `.csv,text/csv`, `image/*`. Set on the input AND checked
|
|
28
28
|
* against the chosen file, because the attribute only filters the picker. */
|
|
@@ -33,7 +33,7 @@ export type DSFileFieldProps = Omit<ComponentProps<'div'>, 'children' | 'onSelec
|
|
|
33
33
|
* `accept` and `maxBytes`. */
|
|
34
34
|
onSelect: (file: File) => void;
|
|
35
35
|
/** A file that did not pass. Gives the reason so a caller can word its own
|
|
36
|
-
* message; the component says nothing on its own
|
|
36
|
+
* message; the component says nothing on its own, see `rejection`. */
|
|
37
37
|
onReject?: (reason: FileFieldRejection, file: File) => void;
|
|
38
38
|
/** Where the caller has got to. */
|
|
39
39
|
status?: DSFileFieldStatus;
|
|
@@ -41,7 +41,7 @@ export type DSFileFieldProps = Omit<ComponentProps<'div'>, 'children' | 'onSelec
|
|
|
41
41
|
* the wording: only it knows whether "10 MB" or "ten pages" is the useful
|
|
42
42
|
* thing to say. `false`, `null` and `''` mean nothing was refused. */
|
|
43
43
|
rejection?: ReactNode;
|
|
44
|
-
/** A line under the button when nothing has happened yet
|
|
44
|
+
/** A line under the button when nothing has happened yet, "CSV, up to 10 MB". */
|
|
45
45
|
hint?: ReactNode;
|
|
46
46
|
/** Clears the chosen file. Its absence removes the control, which is right for
|
|
47
47
|
* a field whose file cannot be taken back. */
|
|
@@ -50,5 +50,5 @@ export type DSFileFieldProps = Omit<ComponentProps<'div'>, 'children' | 'onSelec
|
|
|
50
50
|
onRetry?: () => void;
|
|
51
51
|
disabled?: boolean;
|
|
52
52
|
};
|
|
53
|
-
/** A file chosen from the machine
|
|
53
|
+
/** A file chosen from the machine and what happens to it afterwards. */
|
|
54
54
|
export declare function DSFileField({ label, accept, maxBytes, onSelect, onReject, status, rejection, hint, onRemove, onRetry, disabled, className, ...props }: DSFileFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,7 @@ import { DSIdent } from '../../ident/web/ds-ident';
|
|
|
9
9
|
import { DSMeter } from '../../meter/web/ds-meter';
|
|
10
10
|
import { DSSpinner } from '../../spinner/web/ds-spinner';
|
|
11
11
|
import { cn } from '../../lib/cn';
|
|
12
|
+
import { DSText } from '../../text/web/ds-text';
|
|
12
13
|
const NAME_INK = { foreground: 'text-foreground' };
|
|
13
14
|
const META_INK = {
|
|
14
15
|
'muted-foreground': 'text-muted-foreground',
|
|
@@ -50,7 +51,7 @@ export function DSFileField({ label, accept, maxBytes, onSelect, onReject, statu
|
|
|
50
51
|
setRefusals((count) => count + 1);
|
|
51
52
|
}
|
|
52
53
|
event.target.value = '';
|
|
53
|
-
} })] }) }), hinted && _jsx(DSHelperText, { id: lineId, children: hint }), refused && (_jsx(DSHelperText, { id: lineId, tone: "error", announce: true, children: rejection }, refusals)), file !== undefined && name !== undefined && (_jsxs("div", { className: "flex flex-col gap-2 rounded-card border border-border bg-card p-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsxs(DSIdent, { className: cn('flex min-w-0', NAME_INK[spec.nameInk]), title: file.name, children: [_jsx("span", { className: "min-w-0 truncate", children: name.stem }), name.extension !== '' && _jsx("span", { className: "shrink-0", children: name.extension })] }), _jsx("span",
|
|
54
|
+
} })] }) }), hinted && _jsx(DSHelperText, { id: lineId, children: hint }), refused && (_jsx(DSHelperText, { id: lineId, tone: "error", announce: true, children: rejection }, refusals)), file !== undefined && name !== undefined && (_jsxs("div", { className: "flex flex-col gap-2 rounded-card border border-border bg-card p-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsxs(DSIdent, { className: cn('flex min-w-0', NAME_INK[spec.nameInk]), title: file.name, children: [_jsx("span", { className: "min-w-0 truncate", children: name.stem }), name.extension !== '' && _jsx("span", { className: "shrink-0", children: name.extension })] }), _jsx(DSText, { as: "span", variant: "body-sm", className: cn('shrink-0', META_INK[spec.metaInk]), children: busy
|
|
54
55
|
? fileFieldProgressText(status.sent, status.total)
|
|
55
56
|
: fileFieldFormatSize(file.size) }), busy && percent === undefined && (_jsx(DSSpinner, { label: `Uploading ${file.name}`, className: "ms-auto" })), onRemove !== undefined && !busy && (_jsx(DSIconButton, { variant: "ghost", size: "sm", label: `Remove ${file.name}`, icon: _jsx(X, { "aria-hidden": true }), onClick: () => {
|
|
56
57
|
onRemove();
|
|
@@ -9,18 +9,18 @@ export interface ImportRow {
|
|
|
9
9
|
* "row 118" is the only instruction that gets them to the right line.
|
|
10
10
|
*/
|
|
11
11
|
line: number;
|
|
12
|
-
/** How the row identifies itself
|
|
12
|
+
/** How the row identifies itself, a registration, a name, an account number. */
|
|
13
13
|
label: string;
|
|
14
14
|
outcome: RowOutcome;
|
|
15
15
|
/** Why it was rejected. Required in practice for `rejected`; see `rowsMissingReasons`. */
|
|
16
16
|
reason?: string;
|
|
17
17
|
}
|
|
18
|
-
/** How many of each
|
|
18
|
+
/** How many of each and how many altogether. */
|
|
19
19
|
export interface ImportSummary {
|
|
20
20
|
accepted: number;
|
|
21
21
|
rejected: number;
|
|
22
22
|
skipped: number;
|
|
23
|
-
/** Every row read, blanks included
|
|
23
|
+
/** Every row read, blanks included, the number the person's sheet has. */
|
|
24
24
|
total: number;
|
|
25
25
|
}
|
|
26
26
|
/** What this package will read as a bulk import. */
|
|
@@ -31,11 +31,11 @@ export declare function summarise(rows: readonly ImportRow[]): ImportSummary;
|
|
|
31
31
|
* The shape of the outcome, which is what decides the wording and the tone.
|
|
32
32
|
*
|
|
33
33
|
* `partial` is the interesting one and the one the AC names: some rows landed
|
|
34
|
-
* and some did not
|
|
34
|
+
* and some did not and both facts have to be on screen at once.
|
|
35
35
|
*/
|
|
36
36
|
export type ImportResultKind = 'nothing-to-import' | 'all-accepted' | 'partial' | 'all-rejected';
|
|
37
37
|
export declare function resultKind(summary: ImportSummary): ImportResultKind;
|
|
38
|
-
/** The tone a result is drawn in
|
|
38
|
+
/** The tone a result is drawn in, the package's own status vocabulary. */
|
|
39
39
|
export declare function resultTone(kind: ImportResultKind): 'success' | 'warning' | 'danger' | 'info';
|
|
40
40
|
/** Whether the accepted rows of this result are kept. */
|
|
41
41
|
export declare function keepsAcceptedRows(kind: ImportResultKind): boolean;
|
|
@@ -44,8 +44,8 @@ export declare function announceSummary(summary: ImportSummary): string;
|
|
|
44
44
|
/**
|
|
45
45
|
* The rows, in the file's own order.
|
|
46
46
|
*
|
|
47
|
-
* NOT rejected-first. The instinct is to float the failures to the top
|
|
48
|
-
* is wrong here: the person is going back to a spreadsheet
|
|
47
|
+
* NOT rejected-first. The instinct is to float the failures to the top and it
|
|
48
|
+
* is wrong here: the person is going back to a spreadsheet and a list that
|
|
49
49
|
* runs 118, 204, 7, 9 is a list they have to re-sort in their head before they
|
|
50
50
|
* can work down it. `rejectedRows` is there for the summary; the table stays in
|
|
51
51
|
* line order.
|
|
@@ -59,7 +59,7 @@ export declare function rejectedRows(rows: readonly ImportRow[]): ImportRow[];
|
|
|
59
59
|
* A development-time check rather than a runtime one: "rejected" with no reason
|
|
60
60
|
* is a row that tells somebody they are wrong and not how, which is the single
|
|
61
61
|
* most useless thing an importer can print. The adapter renders a placeholder
|
|
62
|
-
* rather than an empty cell
|
|
62
|
+
* rather than an empty cell and this is how a caller finds out it is doing so.
|
|
63
63
|
*/
|
|
64
64
|
export declare function rowsMissingReasons(rows: readonly ImportRow[]): ImportRow[];
|
|
65
65
|
/** What a rejected row's reason cell says when the caller gave no reason. */
|