@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
|
@@ -5,7 +5,7 @@ export type ConditionConjunction = (typeof CONDITION_CONJUNCTIONS)[number];
|
|
|
5
5
|
export declare const CONDITION_MAX_DEPTH = 3;
|
|
6
6
|
export declare const CONDITION_FIELD_TYPES: readonly ["text", "number", "enum", "date", "time-range", "boolean", "geofence", "reference"];
|
|
7
7
|
export type ConditionFieldType = (typeof CONDITION_FIELD_TYPES)[number];
|
|
8
|
-
/** The shape of value an operator asks for
|
|
8
|
+
/** The shape of value an operator asks for, which editor the adapter draws. */
|
|
9
9
|
export declare const CONDITION_INPUTS: readonly ["none", "text", "number", "number-range", "option", "options", "date", "date-range", "time-range", "slot"];
|
|
10
10
|
export type ConditionInput = (typeof CONDITION_INPUTS)[number];
|
|
11
11
|
export interface ConditionFieldOption {
|
|
@@ -16,15 +16,15 @@ export interface ConditionFieldOption {
|
|
|
16
16
|
export interface ConditionField {
|
|
17
17
|
/** The stable key stored in the tree. */
|
|
18
18
|
key: string;
|
|
19
|
-
/** The field's name as a person reads it
|
|
19
|
+
/** The field's name as a person reads it, "Vehicle group", "Litres". */
|
|
20
20
|
label: string;
|
|
21
21
|
/** Decides which comparisons are offered and which value editor is drawn. */
|
|
22
22
|
type: ConditionFieldType;
|
|
23
|
-
/** The unit a number is measured in, shown after the value
|
|
23
|
+
/** The unit a number is measured in, shown after the value, "L", "km". */
|
|
24
24
|
unit?: string;
|
|
25
|
-
/** The currency symbol a money field is written with, before the figure
|
|
25
|
+
/** The currency symbol a money field is written with, before the figure, `R`, read as `R2 500`. */
|
|
26
26
|
currency?: string;
|
|
27
|
-
/** The choices for an `enum` field
|
|
27
|
+
/** The choices for an `enum` field and the names used to describe a `geofence` or `reference` value. */
|
|
28
28
|
options?: readonly ConditionFieldOption[];
|
|
29
29
|
/** The smallest number a `number` field accepts. */
|
|
30
30
|
min?: number;
|
|
@@ -62,7 +62,7 @@ export interface ConditionGroup {
|
|
|
62
62
|
export type ConditionNode = ConditionRule | ConditionGroup;
|
|
63
63
|
export interface ConditionOperator {
|
|
64
64
|
key: string;
|
|
65
|
-
/** The words between the field and the value
|
|
65
|
+
/** The words between the field and the value, "is more than". */
|
|
66
66
|
label: string;
|
|
67
67
|
input: ConditionInput;
|
|
68
68
|
}
|
|
@@ -208,24 +208,24 @@ export declare function canAddGroup(tree: ConditionGroup, groupId: string): bool
|
|
|
208
208
|
/** How many conditions the tree holds, at every depth. */
|
|
209
209
|
export declare function conditionCount(tree: ConditionGroup): number;
|
|
210
210
|
export declare function conditionPositions(tree: ConditionGroup): ReadonlyMap<string, string>;
|
|
211
|
-
/** A node's name as its controls are labelled
|
|
211
|
+
/** A node's name as its controls are labelled, "Condition 2", "Group 3", "Condition 3.1". */
|
|
212
212
|
export declare function nodeLabel(tree: ConditionGroup, id: string): string;
|
|
213
213
|
export declare function createCondition(id: string): ConditionRule;
|
|
214
214
|
export declare function createGroup(id: string, conjunction: ConditionConjunction, children?: readonly ConditionNode[]): ConditionGroup;
|
|
215
215
|
export declare function oppositeConjunction(conjunction: ConditionConjunction): ConditionConjunction;
|
|
216
216
|
/** Appends an empty condition to a group. */
|
|
217
217
|
export declare function addCondition(tree: ConditionGroup, groupId: string, id: string): ConditionGroup;
|
|
218
|
-
/** Appends a new group, holding one empty condition, to a group
|
|
218
|
+
/** Appends a new group, holding one empty condition, to a group, if the depth cap allows. */
|
|
219
219
|
export declare function addGroup(tree: ConditionGroup, groupId: string, ids: {
|
|
220
220
|
group: string;
|
|
221
221
|
condition: string;
|
|
222
222
|
}): ConditionGroup;
|
|
223
|
-
/** Removes a node
|
|
223
|
+
/** Removes a node and any nested group that removal leaves empty. The root cannot be removed. */
|
|
224
224
|
export declare function removeNode(tree: ConditionGroup, id: string): ConditionGroup;
|
|
225
225
|
/** Inserts a copy of a node, with fresh ids throughout, directly after it. The root cannot be duplicated. */
|
|
226
226
|
export declare function duplicateNode(tree: ConditionGroup, id: string, makeId: () => string): ConditionGroup;
|
|
227
227
|
export type ConditionPatch = Partial<Pick<ConditionRule, 'field' | 'operator' | 'value'>>;
|
|
228
|
-
/** Merges a patch into one condition. A group id is left alone
|
|
228
|
+
/** Merges a patch into one condition. A group id is left alone, use `setConjunction`. */
|
|
229
229
|
export declare function updateNode(tree: ConditionGroup, id: string, patch: ConditionPatch): ConditionGroup;
|
|
230
230
|
export declare function setConjunction(tree: ConditionGroup, groupId: string, conjunction: ConditionConjunction): ConditionGroup;
|
|
231
231
|
/** The patch that changes a condition's field, keeping what still makes sense. */
|
|
@@ -256,22 +256,22 @@ export declare function validateConditions(tree: ConditionGroup, schema: Conditi
|
|
|
256
256
|
export declare function conditionErrorFor(errors: Readonly<Record<string, ConditionError | null | undefined>> | undefined, id: string): ConditionError | undefined;
|
|
257
257
|
/** Whether any node has an error worth showing. Entries with empty messages do not count. */
|
|
258
258
|
export declare function hasConditionErrors(errors: Readonly<Record<string, ConditionError | null | undefined>>): boolean;
|
|
259
|
-
/** An ISO date as the sentence says it
|
|
259
|
+
/** An ISO date as the sentence says it, "2026-10-01" becomes "1 Oct 2026". */
|
|
260
260
|
export declare function formatConditionDate(iso: string): string;
|
|
261
261
|
/** A number as the field writes it: `R2 500` for a money field, `400 L` for a
|
|
262
|
-
* measured one, `−R120.50` for a negative amount
|
|
262
|
+
* measured one, `−R120.50` for a negative amount, true minus before the symbol. */
|
|
263
263
|
export declare function formatConditionNumber(value: number, field: ConditionField): string;
|
|
264
|
-
/** Joins a list the way a sentence does
|
|
264
|
+
/** Joins a list the way a sentence does, "A", "A or B", "A, B or C". */
|
|
265
265
|
export declare function joinConditionList(items: readonly string[], word: 'and' | 'or'): string;
|
|
266
|
-
/** Names a caller-owned value
|
|
266
|
+
/** Names a caller-owned value, a geofence, a driver, for the sentence. `undefined` falls back to the field's options, then the raw id. */
|
|
267
267
|
export type ConditionValueDescriber = (field: ConditionField, value: string) => string | undefined;
|
|
268
268
|
export interface DescribeConditionsOptions {
|
|
269
|
-
/** Names a caller-owned value
|
|
269
|
+
/** Names a caller-owned value, a geofence, a driver, for the sentence. */
|
|
270
270
|
describeValue?: ConditionValueDescriber;
|
|
271
271
|
/** What an empty tree reads as. */
|
|
272
272
|
emptyText?: string;
|
|
273
273
|
}
|
|
274
|
-
/** One condition as a lower-case clause
|
|
274
|
+
/** One condition as a lower-case clause, "litres is more than 400 L". Unfinished parts read as "…". */
|
|
275
275
|
export declare function describeCondition(schema: ConditionSchema, condition: ConditionRule, describe?: ConditionValueDescriber): string;
|
|
276
276
|
/** The whole tree as one plain-English sentence. */
|
|
277
277
|
export declare function describeConditions(tree: ConditionGroup, schema: ConditionSchema, options?: DescribeConditionsOptions): string;
|
|
@@ -282,7 +282,7 @@ export declare const CONDITION_CONJUNCTION_LABELS: {
|
|
|
282
282
|
};
|
|
283
283
|
/** The small word drawn between rows: "and" in an all-group, "or" in an any-group. */
|
|
284
284
|
export declare function conditionJoinWord(conjunction: ConditionConjunction): 'and' | 'or';
|
|
285
|
-
/** A group's accessible name
|
|
285
|
+
/** A group's accessible name, "Group 3, match any of". */
|
|
286
286
|
export declare function conditionGroupLabel(tree: ConditionGroup, groupId: string, rootLabel: string): string;
|
|
287
287
|
export declare const CONDITION_CHANGE_KINDS: readonly ["added", "removed", "duplicated"];
|
|
288
288
|
export type ConditionChangeKind = (typeof CONDITION_CHANGE_KINDS)[number];
|
|
@@ -306,7 +306,7 @@ export declare function conditionGroupSurface(depth: number): ConditionGroupSurf
|
|
|
306
306
|
export interface ConditionBuilderContract {
|
|
307
307
|
/** The condition tree, whose root is the rule's own group. */
|
|
308
308
|
value: ConditionGroup;
|
|
309
|
-
/** The fields a condition can test
|
|
309
|
+
/** The fields a condition can test and what type each one is. */
|
|
310
310
|
schema: ConditionSchema;
|
|
311
311
|
/** Errors to show, keyed by node id: usually `validateConditions` run when the person tries to save. An empty message is no error. */
|
|
312
312
|
errors?: Forwarded<ConditionErrors>;
|
|
@@ -587,7 +587,7 @@ export function conditionChangeAnnouncement(kind, before, after, id) {
|
|
|
587
587
|
const parent = findParent(before, id);
|
|
588
588
|
const pruned = parent !== undefined && parent.id !== before.id && findNode(after, parent.id) === undefined;
|
|
589
589
|
return pruned
|
|
590
|
-
? `${name} removed
|
|
590
|
+
? `${name} removed and ${lowerFirst(nodeLabel(before, parent.id))} with it.`
|
|
591
591
|
: `${name} removed.`;
|
|
592
592
|
}
|
|
593
593
|
if (kind === 'duplicated') {
|
|
@@ -63,8 +63,8 @@ function ChipsValue({ field, label, chosen, invalid, describedBy, disabled, sear
|
|
|
63
63
|
function ValueEditor({ field, operator, value, name, invalid, describedBy, disabled, size, onValue, renderValue, datePanel, chipsSearchLabel, }) {
|
|
64
64
|
const label = `${name}, value`;
|
|
65
65
|
const described = describedBy === undefined ? {} : { 'aria-describedby': describedBy };
|
|
66
|
-
const currency = field.currency === undefined ? null : (_jsx("span",
|
|
67
|
-
const unit = field.unit === undefined || field.currency !== undefined ? null : (_jsx("span",
|
|
66
|
+
const currency = field.currency === undefined ? null : (_jsx(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: "shrink-0 text-muted-foreground", children: field.currency }));
|
|
67
|
+
const unit = field.unit === undefined || field.currency !== undefined ? null : (_jsx(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: "shrink-0 text-muted-foreground", children: field.unit }));
|
|
68
68
|
const measure = field.currency ?? field.unit;
|
|
69
69
|
const unitLabel = measure === undefined ? '' : ` in ${measure}`;
|
|
70
70
|
switch (operator.input) {
|
|
@@ -83,7 +83,7 @@ function ValueEditor({ field, operator, value, name, invalid, describedBy, disab
|
|
|
83
83
|
...span,
|
|
84
84
|
from: numberFrom(value),
|
|
85
85
|
});
|
|
86
|
-
}, className: "w-28 tabular-nums", ...described }), _jsx("span",
|
|
86
|
+
}, className: "w-28 tabular-nums", ...described }), _jsx(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: "text-muted-foreground", children: "and" }), currency, _jsx(DSInput, { type: "number", inputMode: "decimal", size: size, "aria-label": `${name}, to${unitLabel}`, invalid: invalid, disabled: disabled, value: typeof span.to === 'number' ? String(span.to) : '', onValueChange: (value) => {
|
|
87
87
|
onValue({ ...span, to: numberFrom(value) });
|
|
88
88
|
}, className: "w-28 tabular-nums", ...described }), unit] }));
|
|
89
89
|
}
|
|
@@ -114,7 +114,7 @@ function ValueEditor({ field, operator, value, name, invalid, describedBy, disab
|
|
|
114
114
|
...span,
|
|
115
115
|
from: value === '' ? undefined : value,
|
|
116
116
|
});
|
|
117
|
-
}, className: "w-auto tabular-nums", ...described }), _jsx("span",
|
|
117
|
+
}, className: "w-auto tabular-nums", ...described }), _jsx(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: "text-muted-foreground", children: operator.input === 'date-range' ? 'and' : 'to' }), _jsx(DSInput, { type: type, size: size, "aria-label": `${name}, to`, invalid: invalid, disabled: disabled, value: span.to ?? '', onValueChange: (value) => {
|
|
118
118
|
onValue({ ...span, to: value === '' ? undefined : value });
|
|
119
119
|
}, className: "w-auto tabular-nums", ...described })] }));
|
|
120
120
|
}
|
|
@@ -212,7 +212,7 @@ export function DSConditionBuilder({ value, onValueChange, schema, errors = {},
|
|
|
212
212
|
const field = conditionField(schema, condition.field);
|
|
213
213
|
const operator = conditionOperator(field, condition.operator);
|
|
214
214
|
const operators = conditionOperators(field);
|
|
215
|
-
return (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-
|
|
215
|
+
return (_jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [_jsxs("div", { className: "flex flex-wrap items-start gap-2", children: [_jsx("div", { "data-condition-field": condition.id, className: "w-full @lg:w-48", children: _jsx(DSSelect, { size: size, "aria-label": `${name}, field`, ...(error?.part === 'field' && describedBy !== undefined
|
|
216
216
|
? { 'aria-describedby': describedBy }
|
|
217
217
|
: {}), placeholder: "Choose a field", invalid: error?.part === 'field', disabled: isDisabled, options: fieldOptions, value: field === undefined ? undefined : field.key, onValueChange: (key) => {
|
|
218
218
|
change(updateNode(value, condition.id, changeField(schema, condition, key)));
|
|
@@ -232,17 +232,17 @@ export function DSConditionBuilder({ value, onValueChange, schema, errors = {},
|
|
|
232
232
|
const error = conditionErrorFor(errors, group.id);
|
|
233
233
|
const describedBy = error === undefined ? undefined : errorId(group.id);
|
|
234
234
|
const join = conditionJoinWord(group.conjunction);
|
|
235
|
-
return (_jsxs("div", { ...(describedBy === undefined ? {} : { 'aria-describedby': describedBy }), role: "group", "aria-labelledby": headingId, "data-depth": depth, className: cn('flex min-w-0 flex-1 flex-col gap-3', !isRoot && 'rounded-
|
|
235
|
+
return (_jsxs("div", { ...(describedBy === undefined ? {} : { 'aria-describedby': describedBy }), role: "group", "aria-labelledby": headingId, "data-depth": depth, className: cn('flex min-w-0 flex-1 flex-col gap-3', !isRoot && 'rounded-field border p-3', !isRoot && GROUP_BORDER[CONDITION_GROUP_BORDER], GROUP_SURFACE[conditionGroupSurface(depth)]), children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx("span", { id: headingId, className: "sr-only", children: conditionGroupLabel(value, group.id, label) }), _jsx(DSText, { as: "span", variant: "body-sm", children: isRoot ? 'Match' : `${name}: match` }), _jsx("div", { className: "w-24", children: _jsx(DSSelect, { size: size, "aria-label": `${name}, match`, placeholder: "all", disabled: isDisabled, options: conjunctionOptions, value: group.conjunction, onValueChange: (next) => {
|
|
236
236
|
change(setConjunction(value, group.id, next));
|
|
237
|
-
} }) }), _jsx(DSText, { as: "span", variant: "body
|
|
237
|
+
} }) }), _jsx(DSText, { as: "span", variant: "body-sm", children: "of the following" }), !isRoot && (_jsx("div", { className: "ms-auto flex shrink-0 items-center gap-1", children: rowActions(group.id, name) }))] }), error !== undefined && describedBy !== undefined && (_jsx(ErrorLine, { id: describedBy, error: error })), group.children.length === 0 ? (_jsx(DSText, { as: "p", variant: "body-sm", tone: "muted", className: "m-0", children: emptyLabel })) : (_jsx("ol", { className: "m-0 flex list-none flex-col gap-3 p-0", children: group.children.map((child, index) => (_jsxs("li", { className: "flex flex-col gap-1 @lg:flex-row @lg:items-start @lg:gap-2", children: [_jsx(DSText, { as: "span", variant: "body-sm", "aria-hidden": true, className: cn('@lg:flex @lg:w-12 @lg:shrink-0 @lg:items-center @lg:justify-end', child.kind === 'group' && '@lg:mt-3.25', FIRST_LINE[size], JOIN_INK[CONDITION_JOIN_INK]), children: index === 0 ? 'Where' : join }), child.kind === 'group' ? renderGroup(child) : renderCondition(child)] }, child.id))) })), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(DSButton, { variant: "ghost", size: "sm", "data-condition-add": group.id, disabled: isDisabled, "aria-label": isRoot ? 'Add condition' : `Add condition to ${name.toLowerCase()}`, onClick: () => {
|
|
238
238
|
const id = nextId();
|
|
239
239
|
const next = addCondition(value, group.id, id);
|
|
240
240
|
change(next, { kind: 'field', id }, conditionChangeAnnouncement('added', value, next, id));
|
|
241
|
-
},
|
|
241
|
+
}, children: [_jsx(Plus, { "aria-hidden": true, className: "size-4" }), "Add condition"] }), canAddGroup(value, group.id) && (_jsxs(DSButton, { variant: "ghost", size: "sm", disabled: isDisabled, "aria-label": isRoot ? 'Add group' : `Add group to ${name.toLowerCase()}`, onClick: () => {
|
|
242
242
|
const ids = { group: nextId(), condition: nextId() };
|
|
243
243
|
const next = addGroup(value, group.id, ids);
|
|
244
244
|
change(next, { kind: 'field', id: ids.condition }, conditionChangeAnnouncement('added', value, next, ids.group));
|
|
245
|
-
},
|
|
245
|
+
}, children: [_jsx(Brackets, { "aria-hidden": true, className: "size-4" }), "Add group"] }))] })] }));
|
|
246
246
|
}
|
|
247
247
|
return (_jsx("div", { ref: rootRef, className: cn(STACK, 'flex flex-col', className), ...props, children: renderGroup(value) }));
|
|
248
248
|
}
|
|
@@ -12,7 +12,7 @@ export interface ContextMenuItem extends ContextMenuLeaf {
|
|
|
12
12
|
export declare function contextMenuHasSubmenu(item: ContextMenuItem): boolean;
|
|
13
13
|
/** How long a touch has to rest before it opens the menu. */
|
|
14
14
|
export declare const CONTEXT_MENU_LONG_PRESS_MS = 500;
|
|
15
|
-
/** How far a touch may drift, in CSS pixels
|
|
15
|
+
/** How far a touch may drift, in CSS pixels and still count as a long press. */
|
|
16
16
|
export declare const CONTEXT_MENU_LONG_PRESS_SLOP_PX = 10;
|
|
17
17
|
/** Whether a keydown is one of the two keyboard gestures for "context menu": the Menu key, or Shift+F10. */
|
|
18
18
|
export declare function contextMenuOpensFromKey(key: string, shiftKey: boolean): boolean;
|
|
@@ -44,7 +44,7 @@ export interface ContextMenuPlacement {
|
|
|
44
44
|
}
|
|
45
45
|
/** The margin kept between the menu and the viewport's edge. */
|
|
46
46
|
export declare const CONTEXT_MENU_MARGIN_PX = 8;
|
|
47
|
-
/** Where the menu's top-left corner goes: after the point on each axis, flipped where it would overflow
|
|
47
|
+
/** Where the menu's top-left corner goes: after the point on each axis, flipped where it would overflow and clamped inside the margin. */
|
|
48
48
|
export declare function contextMenuPosition({ point, surface, viewport, margin, }: ContextMenuPlacementRequest): ContextMenuPlacement;
|
|
49
49
|
export interface ContextMenuSubmenuRequest {
|
|
50
50
|
/** The parent item's box, in viewport coordinates. */
|
|
@@ -74,7 +74,7 @@ export declare function contextMenuKeyIntent(key: string, inSubmenu: boolean): C
|
|
|
74
74
|
export declare function contextMenuMove(intent: 'next' | 'previous' | 'first' | 'last', index: number, count: number): number;
|
|
75
75
|
/** The next item after `index` whose label starts with `char`, wrapping; `index` itself when nothing matches. */
|
|
76
76
|
export declare function contextMenuTypeahead(labels: readonly string[], index: number, char: string): number;
|
|
77
|
-
/** A shortcut in the `aria-keyshortcuts` spelling
|
|
77
|
+
/** A shortcut in the `aria-keyshortcuts` spelling, `'mod+c'` → `'Meta+C'` on a Command-key keyboard, `'Control+C'` elsewhere. */
|
|
78
78
|
export declare function contextMenuAriaShortcut(combo: string, platform: KbdPlatform): string;
|
|
79
79
|
export declare const CONTEXT_MENU_SURFACE = "background";
|
|
80
80
|
export declare const CONTEXT_MENU_BORDER = "border";
|
|
@@ -94,7 +94,7 @@ export interface ContextMenuContract {
|
|
|
94
94
|
items: readonly (ContextMenuItem | DropdownMenuSeparator)[];
|
|
95
95
|
/** Destructive actions, grouped apart below a divider. */
|
|
96
96
|
danger?: Forwarded<readonly ContextMenuItem[]>;
|
|
97
|
-
/** What the menu is for
|
|
97
|
+
/** What the menu is for, "Actions for CA 123-456", for a screen reader. */
|
|
98
98
|
label: string;
|
|
99
99
|
/** Whether the menu is showing. */
|
|
100
100
|
open: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
import { type ContextMenuContract } from '../context-menu';
|
|
3
3
|
export type DSContextMenuProps = Omit<ComponentProps<'div'>, 'children' | 'onContextMenu' | 'onKeyDown' | 'onPointerDown' | 'onPointerMove' | 'onPointerUp' | 'onPointerCancel' | 'onClickCapture'> & ContextMenuContract & {
|
|
4
|
-
/** The region the menu belongs to
|
|
4
|
+
/** The region the menu belongs to, a table, a board, a map. */
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
/** Fires with the chosen item's `act`. Never fires for a disabled item or a submenu's parent. */
|
|
7
7
|
onAction: (act: string) => void;
|
|
@@ -9,7 +9,7 @@ import { useControllable } from '../../lib/use-controllable';
|
|
|
9
9
|
import { useOverlay } from '../../lib/web/use-overlay';
|
|
10
10
|
const SURFACE = { background: 'bg-background' };
|
|
11
11
|
const BORDER = { border: 'border-border' };
|
|
12
|
-
const MENU = 'min-w-48 max-w-80 overflow-y-auto rounded-
|
|
12
|
+
const MENU = 'min-w-48 max-w-80 overflow-y-auto rounded-pop border p-1 shadow-medium';
|
|
13
13
|
export function DSContextMenu({ items, danger, label, open, openSubmenu, onOpenSubmenuChange, onAction, onOpenChange, children, className, style, ...props }) {
|
|
14
14
|
const spec = contextMenuSpec();
|
|
15
15
|
const regionRef = useRef(null);
|
|
@@ -330,7 +330,7 @@ export function DSContextMenu({ items, danger, label, open, openSubmenu, onOpenS
|
|
|
330
330
|
left: placement?.x ?? point?.x ?? 0,
|
|
331
331
|
top: placement?.y ?? point?.y ?? 0,
|
|
332
332
|
...(placement === null ? {} : { maxHeight: placement.maxHeight }),
|
|
333
|
-
}, className: cn(MENU, 'focus-visible:outline-none', SURFACE[spec.surface], BORDER[spec.border]), children: sections.map((section, sectionIndex) => (_jsxs(Fragment, { children: [sectionIndex > 0 && (_jsx("div", { role: "separator", className: "-mx-1 my-1 h-px bg-border" })), section.label === undefined ? (section.rows.map((row) => renderItem(row.item, dropdownMenuRowIsDestructive(row), row.index, 'top'))) : (_jsxs("div", { role: "group", "aria-label": section.label, children: [_jsx("div", { "aria-hidden": true, className: "truncate px-2 pb-1 pt-
|
|
333
|
+
}, className: cn(MENU, 'focus-visible:outline-none', SURFACE[spec.surface], BORDER[spec.border]), children: sections.map((section, sectionIndex) => (_jsxs(Fragment, { children: [sectionIndex > 0 && (_jsx("div", { role: "separator", className: "-mx-1 my-1 h-px bg-border" })), section.label === undefined ? (section.rows.map((row) => renderItem(row.item, dropdownMenuRowIsDestructive(row), row.index, 'top'))) : (_jsxs("div", { role: "group", "aria-label": section.label, children: [_jsx("div", { "aria-hidden": true, className: "truncate px-2 pb-1 pt-2 text-label-sm font-semibold text-muted-foreground", children: section.label }), section.rows.map((row) => renderItem(row.item, dropdownMenuRowIsDestructive(row), row.index, 'top'))] }))] }, section.key))) }), subOpen !== null && subItems.length > 0 && (_jsx("div", { ref: subRef, role: "menu", "aria-label": flat[subOpen]?.label, onKeyDown: onSubKeyDown, onContextMenu: (event) => {
|
|
334
334
|
event.preventDefault();
|
|
335
335
|
event.stopPropagation();
|
|
336
336
|
}, style: {
|
|
@@ -17,7 +17,7 @@ export type CoordinateAxisParse = {
|
|
|
17
17
|
};
|
|
18
18
|
/** A latitude and longitude read from whatever was typed or pasted. */
|
|
19
19
|
export declare function parseCoordinate(text: string): CoordinateParse;
|
|
20
|
-
/** One axis read on its own
|
|
20
|
+
/** One axis read on its own, what each box of the two-box field holds. */
|
|
21
21
|
export declare function parseCoordinateAxis(text: string, axis: CoordinateAxis): CoordinateAxisParse;
|
|
22
22
|
/** What a parse error says. Each names the way out, with an example of the
|
|
23
23
|
* shape that works. */
|
|
@@ -28,7 +28,7 @@ export declare function coordinateAxisErrorMessage(error: CoordinateParseError,
|
|
|
28
28
|
* What the field shows under a value it has read, so the person can check the
|
|
29
29
|
* reading: the OTHER notation. Somebody who pasted degrees-minutes-seconds sees
|
|
30
30
|
* the decimal they will be stored as; somebody who typed decimals sees the
|
|
31
|
-
* hemispheres spelled out, which is where a dropped minus sign shows up
|
|
31
|
+
* hemispheres spelled out, which is where a dropped minus sign shows up, a
|
|
32
32
|
* depot in Johannesburg reading "N" is a depot in the Sahara.
|
|
33
33
|
*/
|
|
34
34
|
export declare function coordinateEcho(point: GeoPoint, typed: string): string;
|
|
@@ -38,7 +38,7 @@ export declare function coordinateText(point: GeoPoint | null, precision?: numbe
|
|
|
38
38
|
export declare function coordinateAxisText(point: GeoPoint | null, axis: CoordinateAxis, precision?: number): string;
|
|
39
39
|
export declare const COORDINATE_FIELD_MODES: readonly ["combined", "split"];
|
|
40
40
|
export type CoordinateFieldMode = (typeof COORDINATE_FIELD_MODES)[number];
|
|
41
|
-
/** The text in the field's boxes: the one box of `combined
|
|
41
|
+
/** The text in the field's boxes: the one box of `combined` and the two of
|
|
42
42
|
* `split`. Both are kept, so switching modes loses nothing. */
|
|
43
43
|
export interface CoordinateDraft {
|
|
44
44
|
pair: string;
|
|
@@ -60,13 +60,13 @@ export declare function coordinateDraftPoint(draft: CoordinateDraft, mode: Coord
|
|
|
60
60
|
* reports a paste only as new text.
|
|
61
61
|
*
|
|
62
62
|
* ONLY A JUMP SPREADS. The text has to arrive more than one character at a
|
|
63
|
-
* time
|
|
63
|
+
* time, a paste, an autofill, before it is split. Somebody TYPING a pair
|
|
64
64
|
* into the latitude box passes through "-29.8587, 3", which already reads as
|
|
65
65
|
* a place; spreading there would move them into the other box mid-number.
|
|
66
66
|
*/
|
|
67
67
|
export declare function coordinateDraftTyped(draft: CoordinateDraft, box: CoordinateBox, text: string): CoordinateDraft;
|
|
68
68
|
/**
|
|
69
|
-
* What each box says is wrong, if anything
|
|
69
|
+
* What each box says is wrong, if anything and nothing for a box the person
|
|
70
70
|
* has not yet left, or an empty box in a field that is not required.
|
|
71
71
|
*/
|
|
72
72
|
export declare function coordinateDraftErrors(draft: CoordinateDraft, left: Readonly<Record<CoordinateBox, boolean>>, required: boolean): Partial<Record<CoordinateBox, string>>;
|
|
@@ -76,16 +76,16 @@ export declare const COORDINATE_FIELD_SIZES: readonly ["sm", "md", "lg"];
|
|
|
76
76
|
export type CoordinateFieldSize = (typeof COORDINATE_FIELD_SIZES)[number];
|
|
77
77
|
/** The props every Coordinate Field implementation accepts. */
|
|
78
78
|
export interface CoordinateFieldContract {
|
|
79
|
-
/** What the place is
|
|
79
|
+
/** What the place is, "Depot gate", "Fence centre". */
|
|
80
80
|
label: string;
|
|
81
81
|
/** The place, or `null` when nothing readable has been entered. */
|
|
82
82
|
value: GeoPoint | null;
|
|
83
83
|
/** Told every time what the field holds becomes a different place, or
|
|
84
|
-
* stops being one
|
|
84
|
+
* stops being one, `null` for empty or unreadable. */
|
|
85
85
|
onValueChange: (next: GeoPoint | null) => void;
|
|
86
|
-
/** One box that reads a pasted pair, or two boxes
|
|
86
|
+
/** One box that reads a pasted pair, or two boxes, latitude and longitude. */
|
|
87
87
|
mode?: CoordinateFieldMode;
|
|
88
|
-
/** Guidance above the box
|
|
88
|
+
/** Guidance above the box, what the place is used for. */
|
|
89
89
|
description?: Forwarded<string>;
|
|
90
90
|
/** The caller's own error, shown in place of the field's. */
|
|
91
91
|
error?: Forwarded<string>;
|
|
@@ -93,7 +93,7 @@ export interface CoordinateFieldContract {
|
|
|
93
93
|
required?: Forwarded<boolean>;
|
|
94
94
|
/** Whether the field counts as touched, so its errors show. The field decides this itself, box by box, when it is omitted. */
|
|
95
95
|
touched?: Forwarded<boolean>;
|
|
96
|
-
/** Told the field became touched
|
|
96
|
+
/** Told the field became touched, the first time one of its boxes is left. */
|
|
97
97
|
onTouchedChange?: (touched: boolean) => void;
|
|
98
98
|
/** Prevents interaction and dims the field. */
|
|
99
99
|
disabled?: Forwarded<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ViewProps } from 'react-native';
|
|
2
2
|
import { type CoordinateFieldContract } from '../coordinate-field';
|
|
3
3
|
export type DSCoordinateFieldProps = Omit<ViewProps, 'children'> & CoordinateFieldContract;
|
|
4
|
-
/** A latitude and longitude, typed or pasted in any common notation
|
|
4
|
+
/** A latitude and longitude, typed or pasted in any common notation and read back so it can be checked. */
|
|
5
5
|
export declare function DSCoordinateField({ label, value, onValueChange, mode, description, error, required, touched, onTouchedChange, disabled, size, className, ...props }: DSCoordinateFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -42,10 +42,10 @@ export function DSCoordinateField({ label, value, onValueChange, mode = 'combine
|
|
|
42
42
|
const echo = point === null
|
|
43
43
|
? undefined
|
|
44
44
|
: coordinateEcho(point, mode === 'split' ? `${draft.lat} ${draft.lng}` : draft.pair);
|
|
45
|
-
return (_jsxs(View, { ...props, className: cn('w-full gap-
|
|
45
|
+
return (_jsxs(View, { ...props, className: cn('w-full gap-2', className), children: [_jsx(DSText, { variant: "label-md", tone: "strong", children: label }), description !== undefined && _jsx(DSHelperText, { children: description }), _jsx(View, { className: cn(mode === 'split' ? 'flex-row gap-3' : 'gap-2'), children: boxes.map((box) => {
|
|
46
46
|
const boxError = box === 'pair' ? shared : errors[box];
|
|
47
47
|
const name = box === 'pair' ? label : `${label}, ${AXIS_LABELS[box]}`;
|
|
48
|
-
return (_jsxs(View, { className: cn('gap-1', mode === 'split' && 'flex-1'), children: [box !== 'pair' && (_jsx(DSText, { variant: "
|
|
48
|
+
return (_jsxs(View, { className: cn('gap-1', mode === 'split' && 'flex-1'), children: [box !== 'pair' && (_jsx(DSText, { variant: "body-sm", className: "text-muted-foreground", children: AXIS_LABELS[box] })), _jsx(DSInput, { size: size, disabled: disabled, invalid: boxError !== undefined, value: draft[box], placeholder: box === 'pair' ? '-26.2041, 28.0473' : AXIS_EXAMPLES[box], keyboardType: "default", autoCorrect: false, autoCapitalize: "characters", accessibilityLabel: name, ...(boxError === undefined ? {} : { accessibilityHint: boxError }), onValueChange: (text) => {
|
|
49
49
|
type(box, text);
|
|
50
50
|
}, onBlur: () => {
|
|
51
51
|
leave(box);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { type CoordinateFieldContract } from '../coordinate-field';
|
|
3
3
|
export type DSCoordinateFieldProps = Omit<ComponentProps<'div'>, 'children' | 'onChange' | 'defaultValue'> & CoordinateFieldContract;
|
|
4
|
-
/** A latitude and longitude, typed or pasted in any common notation
|
|
4
|
+
/** A latitude and longitude, typed or pasted in any common notation and read back so it can be checked. */
|
|
5
5
|
export declare function DSCoordinateField({ label, value, onValueChange, mode, description, error, required, touched, onTouchedChange, disabled, size, className, ...props }: DSCoordinateFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,7 +38,7 @@ export function DSCoordinateField({ label, value, onValueChange, mode = 'combine
|
|
|
38
38
|
const errors = coordinateDraftErrors(draft, coordinateFieldLeft(left, touched), required);
|
|
39
39
|
const point = coordinateDraftPoint(draft, mode);
|
|
40
40
|
if (mode === 'split') {
|
|
41
|
-
return (_jsxs("div", { ...props, className: cn('flex flex-col gap-
|
|
41
|
+
return (_jsxs("div", { ...props, className: cn('flex flex-col gap-2', className), children: [_jsxs("fieldset", { disabled: disabled, className: "flex min-w-0 flex-col gap-2", children: [_jsx("legend", { className: "mb-2 text-label-md text-heading-foreground", children: label }), description !== undefined && _jsx(DSHelperText, { children: description }), _jsx("div", { className: "flex flex-wrap gap-3", children: ['lat', 'lng'].map((axis) => (_jsx(DSLabeledField, { label: AXIS_LABELS[axis], className: "min-w-40 flex-1", error: errors[axis], children: _jsx(DSInput, { size: size, "aria-required": required || undefined, ...(error === undefined
|
|
42
42
|
? {}
|
|
43
43
|
: { 'aria-describedby': errorId, 'aria-invalid': true }), value: draft[axis], autoComplete: "off", spellCheck: false, placeholder: AXIS_EXAMPLES[axis], onValueChange: (value) => {
|
|
44
44
|
type(axis, value);
|
|
@@ -46,7 +46,7 @@ export function DSCoordinateField({ label, value, onValueChange, mode = 'combine
|
|
|
46
46
|
leave(axis);
|
|
47
47
|
} }) }, axis))) })] }), error !== undefined ? (_jsx(DSHelperText, { id: errorId, tone: "error", announce: true, children: error })) : (point !== null && (_jsx(DSHelperText, { children: coordinateEcho(point, `${draft.lat} ${draft.lng}`) })))] }));
|
|
48
48
|
}
|
|
49
|
-
return (_jsx(DSLabeledField, { ...props, label: label, className: className, description: description, error: error ?? errors.pair, helper: point === null ? undefined : coordinateEcho(point, draft.pair), children: _jsx(DSInput, { size: size, disabled: disabled, value: draft.pair, autoComplete: "off", spellCheck: false, placeholder: "-26.2041, 28.0473", onValueChange: (value) => {
|
|
49
|
+
return (_jsx(DSLabeledField, { ...props, label: label, className: className, description: description, error: error ?? errors.pair, helper: point === null ? undefined : coordinateEcho(point, draft.pair), children: _jsx(DSInput, { size: size, "aria-required": required || undefined, disabled: disabled, value: draft.pair, autoComplete: "off", spellCheck: false, placeholder: "-26.2041, 28.0473", onValueChange: (value) => {
|
|
50
50
|
type('pair', value);
|
|
51
51
|
}, onBlur: () => {
|
|
52
52
|
leave('pair');
|
|
@@ -4,7 +4,7 @@ export type CopyFieldState = (typeof COPY_FIELD_STATES)[number];
|
|
|
4
4
|
*
|
|
5
5
|
* Two seconds, which is long enough to be read and short enough that a second
|
|
6
6
|
* copy of the same value is not waiting on it. Deliberately far below
|
|
7
|
-
* `ACTION_TOAST_DISMISS_MS
|
|
7
|
+
* `ACTION_TOAST_DISMISS_MS`, that one holds an UNDO and the cost of missing it
|
|
8
8
|
* is the action; this holds an acknowledgement and the cost of missing it is
|
|
9
9
|
* pressing again. */
|
|
10
10
|
export declare const COPY_FIELD_CONFIRM_MS = 2000;
|
|
@@ -25,7 +25,7 @@ export interface CopyFieldResolvedSpec {
|
|
|
25
25
|
border: CopyFieldBorderRole;
|
|
26
26
|
valueInk: CopyFieldValueInkRole;
|
|
27
27
|
labelInk: CopyFieldLabelInkRole;
|
|
28
|
-
/** The notice's ink
|
|
28
|
+
/** The notice's ink and `undefined` while the control is only offering,
|
|
29
29
|
* there is no resting notice to colour. */
|
|
30
30
|
noticeInk?: CopyFieldNoticeInkRole;
|
|
31
31
|
}
|
|
@@ -37,24 +37,24 @@ export declare function copyFieldSpec(state: CopyFieldState): CopyFieldResolvedS
|
|
|
37
37
|
* to tell which is which.
|
|
38
38
|
*
|
|
39
39
|
* The English construction for a caller to pass as `actionLabel`. NOT READ BY
|
|
40
|
-
* THE ADAPTER
|
|
40
|
+
* THE ADAPTER, `actionLabel` is required, so this is never applied behind a
|
|
41
41
|
* caller's back. */
|
|
42
42
|
export declare function copyFieldActionLabel(label: string): string;
|
|
43
|
-
/** What the live region says
|
|
43
|
+
/** What the live region says and `undefined` while there is nothing to say.
|
|
44
44
|
*
|
|
45
45
|
* The failed wording names the way out rather than the fault. "Copy failed"
|
|
46
46
|
* tells somebody they are stuck; this tells them they are not. */
|
|
47
47
|
export declare function copyFieldAnnouncement(state: CopyFieldState, label: string): string | undefined;
|
|
48
48
|
/** The props every Copy Field implementation accepts. */
|
|
49
49
|
export interface CopyFieldContract {
|
|
50
|
-
/** What the value IS
|
|
50
|
+
/** What the value IS, "Account reference", "API key". Names the control for
|
|
51
51
|
* a screen reader and is shown above the value. */
|
|
52
52
|
label: string;
|
|
53
|
-
/** The value itself. Copied verbatim: no trimming, no case folding
|
|
54
|
-
* issued string is the server's
|
|
53
|
+
/** The value itself. Copied verbatim: no trimming, no case folding, an
|
|
54
|
+
* issued string is the server's and a component that tidies one hands over
|
|
55
55
|
* something that no longer matches. */
|
|
56
56
|
value: string;
|
|
57
|
-
/** The copy button's accessible name. REQUIRED, NO PROP AT ALL BEFORE THIS
|
|
57
|
+
/** The copy button's accessible name. REQUIRED, NO PROP AT ALL BEFORE THIS,
|
|
58
58
|
* the adapter built it from `copyFieldActionLabel(label)` with no way for a
|
|
59
59
|
* caller to override it, let alone translate it. A caller who wants the same
|
|
60
60
|
* wording still can: call `copyFieldActionLabel(label)` itself and pass the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { type CopyFieldContract } from '../copy-field';
|
|
3
3
|
export type DSCopyFieldProps = Omit<ComponentProps<'div'>, 'children' | 'role' | 'aria-label'> & CopyFieldContract;
|
|
4
|
-
/** An issued value
|
|
4
|
+
/** An issued value and the control that takes it away. */
|
|
5
5
|
export declare function DSCopyField({ label, value, actionLabel, className, ...props }: DSCopyFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,10 +6,10 @@ import { DSIconButton } from '../../icon-button/web/ds-icon-button';
|
|
|
6
6
|
import { DSIdent } from '../../ident/web/ds-ident';
|
|
7
7
|
import { DSText } from '../../text/web/ds-text';
|
|
8
8
|
import { cn } from '../../lib/cn';
|
|
9
|
-
const SURFACE = { card: 'bg-
|
|
10
|
-
const BORDER = { input: 'border-
|
|
9
|
+
const SURFACE = { card: 'bg-field' };
|
|
10
|
+
const BORDER = { input: 'border-field-edge' };
|
|
11
11
|
const LABEL_INK = {
|
|
12
|
-
'heading-foreground': 'text-
|
|
12
|
+
'heading-foreground': 'text-field-label-foreground',
|
|
13
13
|
};
|
|
14
14
|
const NOTICE_INK = {
|
|
15
15
|
success: 'text-success',
|
|
@@ -62,5 +62,5 @@ export function DSCopyField({ label, value, actionLabel, className, ...props })
|
|
|
62
62
|
const spec = copyFieldSpec(state);
|
|
63
63
|
const said = copyFieldAnnouncement(state, label);
|
|
64
64
|
const Glyph = GLYPH[state];
|
|
65
|
-
return (_jsxs("div", { className: cn('flex flex-col gap-
|
|
65
|
+
return (_jsxs("div", { className: cn('flex flex-col gap-2', className), ...props, children: [_jsx(DSText, { as: "span", variant: "label-md", id: labelId, className: cn('text-field-label', LABEL_INK[spec.labelInk]), children: label }), _jsxs("div", { role: "group", "aria-labelledby": labelId, className: cn('flex min-h-12 items-center gap-2 rounded-field border py-1 ps-3 pe-2 compact:min-h-dense-field compact:py-0 compact:pe-1', SURFACE[spec.surface], BORDER[spec.border]), children: [_jsx(DSIdent, { className: "min-w-0 flex-1 select-all truncate text-ui-lg compact:text-body-sm", children: value }), _jsx(DSIconButton, { variant: "ghost", size: "sm", label: actionLabel, icon: _jsx(Glyph, { "aria-hidden": true }), onClick: onCopy, className: cn('compact:size-7', spec.noticeInk === undefined ? undefined : NOTICE_GLYPH_INK[spec.noticeInk]) })] }), _jsx(DSText, { as: "span", variant: "body-sm", "aria-live": "polite", className: cn('min-h-5', spec.noticeInk === undefined ? undefined : NOTICE_INK[spec.noticeInk]), children: said === undefined ? '' : said })] }));
|
|
66
66
|
}
|
|
@@ -2,7 +2,7 @@ import type { Forwarded } from '../props';
|
|
|
2
2
|
export interface CountBadgeContract {
|
|
3
3
|
/** The number to show. Omit it and no badge renders. */
|
|
4
4
|
count?: Forwarded<number>;
|
|
5
|
-
/** Sits on the tab bar, per
|
|
5
|
+
/** Sits on the tab bar, per LCV's `--onBar` modifier, see `position`
|
|
6
6
|
* below. `Forwarded<boolean>` for the same reason as `count` above. */
|
|
7
7
|
overBar?: Forwarded<boolean>;
|
|
8
8
|
/** Whether the count is simply a number (`neutral`, the default) or a
|
|
@@ -23,7 +23,7 @@ declare const COUNT_BADGE_ATTENTION_EDGE: "accent";
|
|
|
23
23
|
export type CountBadgeAttentionFillRole = typeof COUNT_BADGE_ATTENTION_FILL;
|
|
24
24
|
export type CountBadgeAttentionInkRole = typeof COUNT_BADGE_ATTENTION_INK;
|
|
25
25
|
export type CountBadgeAttentionEdgeRole = typeof COUNT_BADGE_ATTENTION_EDGE;
|
|
26
|
-
/** The attention recipe
|
|
26
|
+
/** The attention recipe, one shape on both platforms, because a backlog is a
|
|
27
27
|
* backlog wherever it is counted. */
|
|
28
28
|
export interface CountBadgeAttentionSpec {
|
|
29
29
|
fill: CountBadgeAttentionFillRole;
|
|
@@ -45,13 +45,13 @@ declare const COUNT_BADGE_PILL_RING_ON_BAR: "background";
|
|
|
45
45
|
export type CountBadgePillFillRole = typeof COUNT_BADGE_PILL_FILL;
|
|
46
46
|
export type CountBadgePillInkRole = typeof COUNT_BADGE_PILL_INK;
|
|
47
47
|
/** `muted` off the bar (`--color-surface-sunken`), `background` on it (standing
|
|
48
|
-
* in for `--glass-bar-bg
|
|
49
|
-
* shape actually produces depending on `overBar
|
|
48
|
+
* in for `--glass-bar-bg`, see the header). Two members, both real roles this
|
|
49
|
+
* shape actually produces depending on `overBar`, not a switch over roles this
|
|
50
50
|
* shape can never reach. */
|
|
51
51
|
export type CountBadgePillRingRole = typeof COUNT_BADGE_PILL_RING | typeof COUNT_BADGE_PILL_RING_ON_BAR;
|
|
52
52
|
export type CountBadgeShape = 'quiet' | 'pill';
|
|
53
53
|
export interface CountBadgeQuietResolvedSpec {
|
|
54
|
-
/** `false` means render nothing at all
|
|
54
|
+
/** `false` means render nothing at all, not a hidden or zero-opacity badge. */
|
|
55
55
|
visible: boolean;
|
|
56
56
|
shape: 'quiet';
|
|
57
57
|
/** The count's own ink. `--color-on-surface-variant` in the portal source, the
|
|
@@ -62,16 +62,16 @@ export interface CountBadgeQuietResolvedSpec {
|
|
|
62
62
|
position: CountBadgePosition;
|
|
63
63
|
}
|
|
64
64
|
export interface CountBadgePillResolvedSpec {
|
|
65
|
-
/** `false` means render nothing at all
|
|
65
|
+
/** `false` means render nothing at all, not a hidden or zero-opacity badge. */
|
|
66
66
|
visible: boolean;
|
|
67
67
|
shape: 'pill';
|
|
68
|
-
/** The pill's fill
|
|
68
|
+
/** The pill's fill, LCV's `--color-secondary`. See the header. */
|
|
69
69
|
fill: CountBadgePillFillRole;
|
|
70
70
|
/** The number's own ink, sat on `fill`. See the header for why this is
|
|
71
71
|
* `hero-foreground` and not a `-foreground` role paired with `fill` itself
|
|
72
72
|
* (no such pairing exists). */
|
|
73
73
|
ink: CountBadgePillInkRole;
|
|
74
|
-
/** The ring around the pill
|
|
74
|
+
/** The ring around the pill, matches what it is standing on. See the header. */
|
|
75
75
|
ring: CountBadgePillRingRole;
|
|
76
76
|
position: CountBadgePosition;
|
|
77
77
|
}
|
|
@@ -79,7 +79,7 @@ export type CountBadgeResolvedSpec = CountBadgeQuietResolvedSpec | CountBadgePil
|
|
|
79
79
|
export declare function countBadgeSpec(count?: number, overBar?: boolean, shape?: 'quiet'): CountBadgeQuietResolvedSpec;
|
|
80
80
|
export declare function countBadgeSpec(count: number | undefined, overBar: boolean, shape: 'pill'): CountBadgePillResolvedSpec;
|
|
81
81
|
export type CountBadgePlatform = 'web' | 'native';
|
|
82
|
-
/** Which shape a platform draws: the pill on native
|
|
82
|
+
/** Which shape a platform draws: the pill on native and on the web the pill
|
|
83
83
|
* over an icon and the quiet number inline. */
|
|
84
84
|
export declare function countBadgeShapeFor(platform: CountBadgePlatform, overBar?: boolean): CountBadgeShape;
|
|
85
85
|
export declare function countBadgeFitsCircle(count: number | undefined, max?: number): boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import {} from 'react-native';
|
|
3
3
|
import { countBadgeFitsCircle, countBadgeSpec, countBadgeText, countBadgeToneSpec, } from '../count-badge';
|
|
4
4
|
import { cn } from '../../lib/cn';
|
|
5
|
+
import { DSText } from '../../text/native/ds-text';
|
|
5
6
|
const FILL = {
|
|
6
7
|
'brand-secondary': 'bg-brand-secondary',
|
|
7
8
|
};
|
|
@@ -31,7 +32,7 @@ export function DSCountBadge({ count, overBar = false, tone = 'neutral', max, cl
|
|
|
31
32
|
const attention = countBadgeToneSpec(tone);
|
|
32
33
|
if (!spec.visible)
|
|
33
34
|
return null;
|
|
34
|
-
return (_jsx(
|
|
35
|
+
return (_jsx(DSText, { variant: "label-sm", className: cn('min-w-4.5 min-h-4.5 rounded-full border-2 text-center font-bold leading-3.5 tabular-nums', round ? 'px-0' : 'px-1', attention === undefined
|
|
35
36
|
? cn(FILL[spec.fill], INK[spec.ink], RING[spec.ring])
|
|
36
37
|
: cn(ATTENTION_FILL[attention.fill], ATTENTION_INK[attention.ink], ATTENTION_EDGE[attention.edge]), POSITION[spec.position], className), ...props, children: countBadgeText(count, max) }));
|
|
37
38
|
}
|
|
@@ -14,8 +14,8 @@ const PILL_RING = {
|
|
|
14
14
|
muted: 'border-muted',
|
|
15
15
|
background: 'border-background',
|
|
16
16
|
};
|
|
17
|
-
const PILL_GEOMETRY = 'h-4.5 min-w-4.5 rounded-full border-2 text-center font-
|
|
18
|
-
const PILL_PAD = { circle: 'px-0
|
|
17
|
+
const PILL_GEOMETRY = 'min-h-4.5 min-w-4.5 rounded-full border-2 text-center font-bold leading-3.5';
|
|
18
|
+
const PILL_PAD = { circle: 'px-0', wide: 'px-1' };
|
|
19
19
|
const ATTENTION_FILL = {
|
|
20
20
|
accent: 'bg-accent',
|
|
21
21
|
};
|
|
@@ -43,8 +43,8 @@ export function DSCountBadge({ count, overBar = false, tone = 'neutral', max, cl
|
|
|
43
43
|
: cn(ATTENTION_FILL[attention.fill], ATTENTION_INK[attention.ink], ATTENTION_EDGE[attention.edge]))
|
|
44
44
|
: attention === undefined
|
|
45
45
|
? INK[spec.ink]
|
|
46
|
-
: cn('h-5 min-w-5 rounded-full border text-center font-semibold leading-4.5', round ? 'px-1' : 'px-
|
|
47
|
-
return (_jsx("span", { className: cn('inline-block text-xs tabular-nums', paint, POSITION[spec.position], className), ...props, ...(attention === undefined
|
|
46
|
+
: cn('h-5 min-w-5 rounded-full border text-center font-semibold leading-4.5', round ? 'px-1' : 'px-2', ATTENTION_FILL[attention.fill], ATTENTION_INK[attention.ink], ATTENTION_EDGE[attention.edge]);
|
|
47
|
+
return (_jsx("span", { className: cn('inline-block text-body-xs tabular-nums', paint, POSITION[spec.position], className), ...props, ...(attention === undefined
|
|
48
48
|
? {}
|
|
49
49
|
: { 'data-tone': attention.forcedColoursTone, 'data-forced-colors': 'tone' }), children: countBadgeText(count, max) }));
|
|
50
50
|
}
|