@ids-group-ltd/ids-design-system 0.14.8 → 0.15.1
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/CHANGELOG.md +1145 -234
- package/components.md +122 -53
- package/docs/agent/INDEX.md +5 -3
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +7 -4
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +2 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-heatmap-chart.md +2 -1
- package/docs/agent/charts/ds-line-chart.md +3 -3
- package/docs/agent/charts/ds-pie-chart.md +3 -2
- package/docs/agent/charts/ds-scatter-chart.md +2 -1
- package/docs/agent/charts/ds-waterfall-chart.md +2 -2
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-alert.md +1 -0
- package/docs/agent/feedback/ds-banner.md +1 -0
- package/docs/agent/feedback/ds-loading-overlay.md +2 -0
- package/docs/agent/feedback/ds-skeleton.md +1 -1
- package/docs/agent/feedback/ds-toast.md +2 -0
- package/docs/agent/forms/ds-autocomplete.md +1 -1
- package/docs/agent/forms/ds-button.md +1 -0
- package/docs/agent/forms/ds-checkbox.md +1 -1
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +2 -1
- package/docs/agent/forms/ds-icon-button.md +1 -1
- package/docs/agent/forms/ds-input.md +1 -1
- package/docs/agent/forms/ds-multi-select.md +1 -1
- package/docs/agent/forms/ds-otp-input.md +1 -1
- package/docs/agent/forms/ds-radio-group.md +1 -1
- package/docs/agent/forms/ds-segmented.md +1 -1
- package/docs/agent/forms/ds-select.md +1 -1
- package/docs/agent/forms/ds-slider.md +1 -1
- package/docs/agent/forms/ds-switch.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/forms/ds-time-picker.md +1 -1
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/docs/agent/foundations/global-helper-classes.md +4 -4
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +2 -1
- package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
- package/docs/agent/overlays/ds-definition-term.md +10 -0
- package/docs/agent/overlays/ds-drawer.md +1 -1
- package/docs/agent/overlays/ds-info-hint.md +29 -0
- package/docs/agent/overlays/ds-menu.md +1 -1
- package/docs/agent/overlays/ds-modal-card.md +1 -1
- package/docs/agent/overlays/ds-modal.md +19 -1
- package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/tables/ds-table-columns.md +2 -0
- package/docs/agent/tables/ds-table.md +4 -3
- package/eslint/deprecated-api.json +889 -0
- package/eslint/index.mjs +394 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +6 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +27 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +169 -37
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +8 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +7 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +875 -90
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +2183 -1232
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +50 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +22 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +5 -15
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +44 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +11 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +51 -21
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +110 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +11 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +41 -46
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +183 -31
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +21 -26
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +27 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +106 -29
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +12 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +140 -26
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +29 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs +55 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +10 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +36 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +17 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +193 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +15 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +26 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +20 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +434 -157
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +18 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +323 -68
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -83
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +79 -21
- package/migrations/0.10.1.json +38 -21
- package/migrations/0.10.2.json +44 -7
- package/migrations/0.10.3.json +7 -5
- package/migrations/0.11.0.json +10 -7
- package/migrations/0.11.1.json +25 -14
- package/migrations/0.11.2.json +3 -3
- package/migrations/0.11.3.json +9 -6
- package/migrations/0.11.4.json +13 -12
- package/migrations/0.12.1.json +41 -14
- package/migrations/0.12.2.json +7 -6
- package/migrations/0.12.3.json +3 -3
- package/migrations/0.13.0.json +11 -11
- package/migrations/0.13.1.json +60 -8
- package/migrations/0.13.2.json +98 -44
- package/migrations/0.13.3.json +46 -16
- package/migrations/0.13.4.json +23 -22
- package/migrations/0.14.0.json +5 -5
- package/migrations/0.14.1.json +5 -5
- package/migrations/0.14.2.json +1 -1
- package/migrations/0.14.4.json +6 -5
- package/migrations/0.14.5.json +13 -7
- package/migrations/0.14.6.json +2 -2
- package/migrations/0.14.8.json +26 -2
- package/migrations/0.15.0.json +999 -0
- package/migrations/0.15.1.json +738 -0
- package/migrations/0.2.0.json +2 -2
- package/migrations/0.3.0.json +43 -6
- package/migrations/0.4.0.json +95 -13
- package/migrations/0.5.0.json +116 -10
- package/migrations/0.5.1.json +97 -11
- package/migrations/0.6.0.json +30 -1
- package/migrations/0.6.1.json +22 -1
- package/migrations/0.6.2.json +8 -4
- package/migrations/0.6.3.json +17 -5
- package/migrations/0.7.0.json +58 -9
- package/migrations/0.7.1.json +62 -8
- package/migrations/0.8.0.json +60 -12
- package/migrations/0.9.0.json +68 -25
- package/migrations/0.9.1.json +1 -1
- package/migrations/README.md +57 -3
- package/package.json +27 -1
- package/schematics/check-overrides/index.cjs +4 -11
- package/schematics/check-overrides/scan.cjs +12 -1
- package/schematics/check-overrides/surface.json +94 -11
- package/schematics/ng-add/index.cjs +7 -1
- package/stylelint/deprecated-tokens.json +2711 -0
- package/stylelint/index.mjs +94 -0
- package/stylelint/since-version.mjs +26 -0
- package/styles/_chart-frame.scss +14 -0
- package/styles/_chart-interactive.scss +26 -1
- package/styles/_chart-motion.scss +50 -17
- package/styles/_chip-row.scss +5 -2
- package/styles/_clear-button.scss +2 -0
- package/styles/_component-base.scss +56 -0
- package/styles/_dismiss-button.scss +16 -0
- package/styles/_dropdown-overlay.scss +19 -0
- package/styles/_focus.scss +4 -1
- package/styles/_link.scss +35 -12
- package/styles/_overlay-motion.scss +4 -6
- package/styles/_pinned.scss +43 -0
- package/styles/_skeleton-shimmer.scss +2 -8
- package/styles/_table-controls.scss +4 -0
- package/styles/_target.scss +40 -0
- package/styles/_text-clip.scss +23 -4
- package/styles/_tokens.scss +3 -1
- package/styles/_typography.scss +2 -0
- package/styles/_visually-hidden.scss +2 -0
- package/styles/ds.scss +0 -1
- package/themes/README.md +60 -7
- package/themes/_semantic.scss +5 -8
- package/themes/dark/_theme.scss +5 -8
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -4
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +87 -7
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +207 -29
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +30 -4
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +19 -2
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -6
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +22 -8
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +23 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +18 -7
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +14 -3
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +26 -7
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +52 -10
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-show-dirty.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +39 -9
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +54 -24
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +9 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +135 -35
- package/types/ids-group-ltd-ids-design-system-core.d.ts +46 -23
- package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Stylelint plugin for consumers of @ids-group-ltd/ids-design-system. The rule
|
|
2
|
+
// `ids-design-system/no-removed-tokens` reports every custom property this library removed or
|
|
3
|
+
// renamed, read from `deprecated-tokens.json` (generated from the published migration manifests),
|
|
4
|
+
// and autofixes a rename to the current name.
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
6
|
+
import stylelint from 'stylelint';
|
|
7
|
+
import { VERSION, inRange } from './since-version.mjs';
|
|
8
|
+
|
|
9
|
+
const {
|
|
10
|
+
createPlugin,
|
|
11
|
+
utils: { report, ruleMessages, validateOptions },
|
|
12
|
+
} = stylelint;
|
|
13
|
+
|
|
14
|
+
const ruleName = 'ids-design-system/no-removed-tokens';
|
|
15
|
+
|
|
16
|
+
const deprecatedTokens = new Map(
|
|
17
|
+
JSON.parse(
|
|
18
|
+
readFileSync(new URL('./deprecated-tokens.json', import.meta.url), 'utf8'),
|
|
19
|
+
).map((entry) => [entry.name, entry]),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const messages = ruleMessages(ruleName, {
|
|
23
|
+
renamed: (name, replacement, since, itemId) =>
|
|
24
|
+
`"${name}" was renamed to "${replacement}" in ${since} (${itemId})`,
|
|
25
|
+
removed: (name, replacement, since, itemId) =>
|
|
26
|
+
`"${name}" was removed in ${since}${replacement ? `, use ${replacement}` : ''} (${itemId})`,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// The whole dashed name, so `--x-warn` is never found inside `--x-warning`.
|
|
30
|
+
const CUSTOM_PROPERTY = /(?<![\w-])--[\w-]+/g;
|
|
31
|
+
|
|
32
|
+
const rule = (primary, secondary) => (root, result) => {
|
|
33
|
+
if (
|
|
34
|
+
!validateOptions(
|
|
35
|
+
result,
|
|
36
|
+
ruleName,
|
|
37
|
+
{ actual: primary },
|
|
38
|
+
{
|
|
39
|
+
actual: secondary,
|
|
40
|
+
possible: {
|
|
41
|
+
from: (value) => typeof value === 'string' && VERSION.test(value),
|
|
42
|
+
to: (value) => typeof value === 'string' && VERSION.test(value),
|
|
43
|
+
},
|
|
44
|
+
optional: true,
|
|
45
|
+
},
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
return;
|
|
49
|
+
|
|
50
|
+
root.walkDecls((declaration) => {
|
|
51
|
+
const reportName = (name, index, rewrite) => {
|
|
52
|
+
const entry = deprecatedTokens.get(name);
|
|
53
|
+
if (!entry || !inRange(entry.since, secondary)) return;
|
|
54
|
+
const renamed = entry.kind === 'renamed';
|
|
55
|
+
report({
|
|
56
|
+
ruleName,
|
|
57
|
+
result,
|
|
58
|
+
node: declaration,
|
|
59
|
+
index,
|
|
60
|
+
endIndex: index + name.length,
|
|
61
|
+
message: messages[entry.kind](
|
|
62
|
+
name,
|
|
63
|
+
entry.replacement,
|
|
64
|
+
entry.since,
|
|
65
|
+
entry.itemId,
|
|
66
|
+
),
|
|
67
|
+
fix: renamed ? () => rewrite(entry.replacement) : undefined,
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
reportName(declaration.prop, 0, (replacement) => {
|
|
72
|
+
declaration.prop = replacement;
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const valueIndex =
|
|
76
|
+
declaration.prop.length + (declaration.raws.between ?? ':').length;
|
|
77
|
+
for (const match of declaration.value.matchAll(CUSTOM_PROPERTY))
|
|
78
|
+
reportName(match[0], valueIndex + match.index, (replacement) => {
|
|
79
|
+
declaration.value = declaration.value.replace(
|
|
80
|
+
new RegExp(`(?<![\\w-])${match[0]}(?![\\w-])`, 'g'),
|
|
81
|
+
replacement,
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
rule.ruleName = ruleName;
|
|
88
|
+
rule.messages = messages;
|
|
89
|
+
rule.meta = {
|
|
90
|
+
url: 'https://www.npmjs.com/package/@ids-group-ltd/ids-design-system',
|
|
91
|
+
fixable: true,
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default createPlugin(ruleName, rule);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Shared by the ESLint and stylelint plugins: does an entry belong to the releases a consumer is
|
|
2
|
+
// upgrading across, after `from` and up to and including `to`? An entry for the unreleased version
|
|
3
|
+
// has no number: it counts with no `to`, and never with one.
|
|
4
|
+
export const VERSION = /^\d+\.\d+\.\d+/;
|
|
5
|
+
|
|
6
|
+
const core = (version) => version.match(VERSION)?.[0].split('.').map(Number);
|
|
7
|
+
|
|
8
|
+
const compare = (left, right) => {
|
|
9
|
+
for (let index = 0; index < 3; index++) {
|
|
10
|
+
if (left[index] !== right[index]) return left[index] - right[index];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return 0;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function inRange(since, { from, to } = {}) {
|
|
17
|
+
const released = core(since);
|
|
18
|
+
if (!released) return to === undefined;
|
|
19
|
+
const lower = from === undefined ? undefined : core(from);
|
|
20
|
+
const upper = to === undefined ? undefined : core(to);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
(!lower || compare(released, lower) > 0) &&
|
|
24
|
+
(!upper || compare(released, upper) <= 0)
|
|
25
|
+
);
|
|
26
|
+
}
|
package/styles/_chart-frame.scss
CHANGED
|
@@ -46,6 +46,20 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
// `paint-order` puts the halo under the glyphs; a stroke over them would thicken the letters. Forced
|
|
50
|
+
// colours remap neither `fill` nor `stroke`, so the label takes the system pair there.
|
|
51
|
+
@mixin label-halo($color: var(--ds-chart-bg-color), $width: 3px) {
|
|
52
|
+
paint-order: stroke;
|
|
53
|
+
stroke: $color;
|
|
54
|
+
stroke-width: $width;
|
|
55
|
+
stroke-linejoin: round;
|
|
56
|
+
|
|
57
|
+
@media (forced-colors: active) {
|
|
58
|
+
fill: CanvasText;
|
|
59
|
+
stroke: Canvas;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
49
63
|
// `fill` and `stroke` are not remapped by forced colours; system keywords restore the structure.
|
|
50
64
|
@mixin forced-colors {
|
|
51
65
|
@media (forced-colors: active) {
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
//
|
|
3
3
|
// TODO(ds-interactive): migrate this onto `_interaction.scss` once that file exists.
|
|
4
4
|
|
|
5
|
+
// The hovered mark brightens: a filter, not a colour, so it holds on every palette colour, a hatch and a heat ramp.
|
|
6
|
+
$highlight: brightness(1.12) saturate(1.1);
|
|
7
|
+
$highlight-transition: filter var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing);
|
|
8
|
+
|
|
5
9
|
// `.is-dimmed` alone, for a mark highlighted only from outside (legend, consumer).
|
|
6
10
|
//
|
|
7
11
|
// `$also` adds the mark's own transitions; a second `transition` on the same selector would
|
|
@@ -38,7 +42,28 @@
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
// The negative margin offsets the padding so the tint grows without moving rows. `$label` is recoloured when it sets its own colour.
|
|
41
|
-
|
|
45
|
+
//
|
|
46
|
+
// `$covers-gap` stretches each entry's hit area to the middle of the container's `--_legend-row-gap`
|
|
47
|
+
// and `--_legend-column-gap`, so a pointer crossing to the next entry never lands on the container
|
|
48
|
+
// and the highlight never drops between rows. The children sit above that area, so a click on a label still reaches its input.
|
|
49
|
+
@mixin legend-entry($entry, $hover-bg-color, $hover-text-color, $label: null, $covers-gap: false) {
|
|
50
|
+
@if $covers-gap {
|
|
51
|
+
#{$entry} {
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#{$entry}::before {
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset-block: min(0px, calc(var(--space-0-5) - var(--_legend-row-gap, 0px) / 2));
|
|
58
|
+
inset-inline: min(0px, calc(var(--space-1-5) - var(--_legend-column-gap, 0px) / 2));
|
|
59
|
+
content: '';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#{$entry} > * {
|
|
63
|
+
position: relative;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
42
67
|
#{$entry} {
|
|
43
68
|
margin: calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));
|
|
44
69
|
padding: var(--space-0-5) var(--space-1-5);
|
|
@@ -9,6 +9,39 @@
|
|
|
9
9
|
// Reduced motion zeroes the durations (tokens); `enters` zeroes the delays, or a delayed mark with
|
|
10
10
|
// `backwards` fill would stay invisible.
|
|
11
11
|
|
|
12
|
+
@use 'sass:list';
|
|
13
|
+
|
|
14
|
+
// One timing for every mark that follows a datum, so a column, its label and a line over it land together.
|
|
15
|
+
@function moves($properties...) {
|
|
16
|
+
$transitions: ();
|
|
17
|
+
|
|
18
|
+
@each $property in $properties {
|
|
19
|
+
$transitions: list.append(
|
|
20
|
+
$transitions,
|
|
21
|
+
#{$property} var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),
|
|
22
|
+
$separator: comma
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@return $transitions;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// One timing for everything that follows the pointer, so a band, a ring and the panel arrive together.
|
|
30
|
+
@function glides($properties...) {
|
|
31
|
+
$transitions: ();
|
|
32
|
+
|
|
33
|
+
@each $property in $properties {
|
|
34
|
+
$transitions: list.append(
|
|
35
|
+
$transitions,
|
|
36
|
+
#{$property} var(--ds-motion-chart-tooltip-move-duration)
|
|
37
|
+
var(--ds-motion-chart-tooltip-move-easing),
|
|
38
|
+
$separator: comma
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@return $transitions;
|
|
43
|
+
}
|
|
44
|
+
|
|
12
45
|
@keyframes ds-chart-mark-grow-y {
|
|
13
46
|
from {
|
|
14
47
|
transform: scaleY(0);
|
|
@@ -27,14 +60,6 @@
|
|
|
27
60
|
}
|
|
28
61
|
}
|
|
29
62
|
|
|
30
|
-
// On a canvas whose viewBox stretches, a pixel is a user unit: set `--_chart-rise-distance` as a percentage of the mark's box.
|
|
31
|
-
@keyframes ds-chart-mark-rise {
|
|
32
|
-
from {
|
|
33
|
-
opacity: 0;
|
|
34
|
-
transform: translateY(var(--_chart-rise-distance, 4px));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
63
|
@keyframes ds-chart-mark-settle {
|
|
39
64
|
from {
|
|
40
65
|
opacity: 0;
|
|
@@ -42,12 +67,6 @@
|
|
|
42
67
|
}
|
|
43
68
|
}
|
|
44
69
|
|
|
45
|
-
@keyframes ds-chart-ring-sweep {
|
|
46
|
-
from {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
transform: rotate(-30deg) scale(0.96);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
70
|
|
|
52
71
|
// Needs `pathLength="1"` and `stroke-dasharray: 1` on the path, so one unit is the whole line.
|
|
53
72
|
@keyframes ds-chart-line-draw {
|
|
@@ -62,6 +81,20 @@
|
|
|
62
81
|
}
|
|
63
82
|
}
|
|
64
83
|
|
|
84
|
+
@keyframes ds-chart-pin-pop {
|
|
85
|
+
from {
|
|
86
|
+
scale: 0.4;
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// `scale`, not `transform`, so it composes with whatever places the pin.
|
|
92
|
+
@mixin pops-in($pin) {
|
|
93
|
+
#{$pin} {
|
|
94
|
+
animation: ds-chart-pin-pop var(--ds-motion-chart-mark-duration) var(--ease-spring) backwards;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
65
98
|
@mixin leaves($mark) {
|
|
66
99
|
#{$mark}.mark-leave {
|
|
67
100
|
animation: ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration)
|
|
@@ -150,7 +183,7 @@
|
|
|
150
183
|
@include leaves($mark);
|
|
151
184
|
}
|
|
152
185
|
|
|
153
|
-
@mixin
|
|
186
|
+
@mixin settles-ring-in($ring) {
|
|
154
187
|
#{$ring} {
|
|
155
188
|
transform-box: fill-box;
|
|
156
189
|
transform-origin: center;
|
|
@@ -158,7 +191,7 @@
|
|
|
158
191
|
|
|
159
192
|
@include enters(
|
|
160
193
|
'#{$ring}',
|
|
161
|
-
ds-chart-
|
|
194
|
+
ds-chart-mark-settle,
|
|
162
195
|
var(--ds-motion-chart-mark-sweep-duration),
|
|
163
196
|
var(--ds-motion-chart-mark-grow-easing)
|
|
164
197
|
);
|
|
@@ -182,7 +215,7 @@
|
|
|
182
215
|
@mixin follows($detail, $after) {
|
|
183
216
|
@include enters(
|
|
184
217
|
'#{$detail}',
|
|
185
|
-
ds-chart-mark-
|
|
218
|
+
ds-chart-mark-fade-in,
|
|
186
219
|
var(--ds-motion-chart-mark-detail-duration),
|
|
187
220
|
var(--ds-motion-chart-mark-enter-easing),
|
|
188
221
|
$after
|
package/styles/_chip-row.scss
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@use 'text-clip' as text-clip;
|
|
2
|
+
|
|
3
|
+
// Fit mode needs `min-width: 0` with an inline clip, or the measuring frame that renders every
|
|
2
4
|
// chip would widen the trigger instead of clipping.
|
|
3
5
|
@mixin chip-row {
|
|
4
6
|
display: contents;
|
|
@@ -8,9 +10,10 @@
|
|
|
8
10
|
flex-wrap: nowrap;
|
|
9
11
|
align-items: center;
|
|
10
12
|
min-width: 0;
|
|
11
|
-
overflow: hidden;
|
|
12
13
|
gap: inherit;
|
|
13
14
|
|
|
15
|
+
@include text-clip.inline-axis;
|
|
16
|
+
|
|
14
17
|
// A squeezed chip must clip, never wrap: a two-line chip grows the trigger.
|
|
15
18
|
> * {
|
|
16
19
|
flex: 0 1 auto;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'press' as press;
|
|
2
|
+
@use 'target' as target;
|
|
2
3
|
|
|
3
4
|
// The `×` behind `clearable` for ds-select, ds-autocomplete and ds-multi-select (ds-input has its own).
|
|
4
5
|
// Include inside the selector holding the trigger's layout.
|
|
@@ -20,4 +21,5 @@
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
@include press.feedback;
|
|
24
|
+
@include target.min-size;
|
|
23
25
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use 'focus' as focus;
|
|
2
|
+
|
|
3
|
+
// What a component's own elements need from the page, set by the component, so it renders the same
|
|
4
|
+
// with or without `styles/reset` and `styles/focus`. Every selector compiles to the component's own
|
|
5
|
+
// elements only; `interpolate-size` is inherited, so content projected into the host takes it as
|
|
6
|
+
// under the reset.
|
|
7
|
+
//
|
|
8
|
+
// In a cascade layer, so any unlayered rule wins over it whatever its specificity: the component's
|
|
9
|
+
// own rules, `styles/reset` and `styles/focus` where the app loads them, and the app's own global
|
|
10
|
+
// rules such as a custom `:focus-visible` ring. It only fills what nothing else sets.
|
|
11
|
+
@mixin rules {
|
|
12
|
+
@layer ds-component-base {
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
interpolate-size: allow-keywords;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
*,
|
|
19
|
+
*::before,
|
|
20
|
+
*::after {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
button,
|
|
25
|
+
input,
|
|
26
|
+
select,
|
|
27
|
+
textarea {
|
|
28
|
+
font-family: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1,
|
|
32
|
+
h2,
|
|
33
|
+
h3,
|
|
34
|
+
h4,
|
|
35
|
+
h5,
|
|
36
|
+
h6 {
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// The base ring of `focus.emit-rules`, for what the component does not style itself.
|
|
41
|
+
:host(:where(:focus-visible)),
|
|
42
|
+
:where(:focus-visible) {
|
|
43
|
+
@include focus.ring;
|
|
44
|
+
|
|
45
|
+
border-radius: var(--focus-ring-radius);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (forced-colors: active) {
|
|
49
|
+
:host(:where(:focus-visible)),
|
|
50
|
+
:where(:focus-visible) {
|
|
51
|
+
outline: var(--focus-ring-width) solid CanvasText;
|
|
52
|
+
outline-offset: var(--focus-ring-offset);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'press' as press;
|
|
2
|
+
|
|
3
|
+
// The bare `×` that closes or removes its container. A flex box, so the glyph sits in the centre of
|
|
4
|
+
// a square box and of its focus ring; an inline glyph rides the text line instead, below centre.
|
|
5
|
+
// Include inside the button's own selector; colour, hover and size stay with the component.
|
|
6
|
+
@mixin button {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: var(--space-0-5);
|
|
11
|
+
border: 0;
|
|
12
|
+
background: none;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
|
|
15
|
+
@include press.feedback;
|
|
16
|
+
}
|
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
max-height: var(--_dropdown-panel-max-height);
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
|
+
|
|
54
|
+
// glyph-clip-guard: rounds the corners; every option pads its text off this edge
|
|
53
55
|
overflow: hidden;
|
|
54
56
|
z-index: var(--layer-popover);
|
|
55
57
|
}
|
|
@@ -68,6 +70,18 @@
|
|
|
68
70
|
gap: var(--_option-row-gap);
|
|
69
71
|
}
|
|
70
72
|
|
|
73
|
+
// The overlay host stands between the panel and the list, so it carries the list's flex sizing.
|
|
74
|
+
.list-overlay {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
min-height: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.option.is-skeleton {
|
|
81
|
+
cursor: default;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
71
85
|
.optgroup {
|
|
72
86
|
list-style: none;
|
|
73
87
|
display: flex;
|
|
@@ -97,10 +111,15 @@
|
|
|
97
111
|
gap: var(--_option-row-gap);
|
|
98
112
|
}
|
|
99
113
|
|
|
114
|
+
// The row carries its whole type here rather than through a typography class, so it renders the
|
|
115
|
+
// same whether or not `styles/typography` is loaded.
|
|
100
116
|
.empty {
|
|
101
117
|
padding: var(--space-3) var(--space-4);
|
|
102
118
|
color: var(--_dropdown-empty-color);
|
|
119
|
+
font-family: var(--ds-typography-s-font-family, var(--font-sans));
|
|
120
|
+
font-weight: var(--ds-typography-s-font-weight, var(--font-weight-regular));
|
|
103
121
|
font-size: var(--_dropdown-empty-font-size);
|
|
122
|
+
line-height: var(--ds-typography-s-line-height, var(--line-height-base));
|
|
104
123
|
text-align: center;
|
|
105
124
|
}
|
|
106
125
|
|
package/styles/_focus.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// The control indicator. Does not touch box-shadow, so a focused card keeps its elevation; a state
|
|
5
5
|
// painting its own shadow must yield, see `state-shadow`.
|
|
6
|
-
// An outline follows the element's border-radius:
|
|
6
|
+
// An outline follows the element's border-radius: `emit-rules` gives `--focus-ring-radius` to whatever declares none.
|
|
7
7
|
// Include inside `&:focus-visible`, never on the element itself, or every instance is ringed at all times.
|
|
8
8
|
// Usually include nothing: `:where(:focus-visible)` in `emit-rules` rings anything focusable that styles nothing itself.
|
|
9
9
|
// Pass a negative offset where an ancestor clips.
|
|
@@ -53,8 +53,11 @@
|
|
|
53
53
|
@mixin emit-rules {
|
|
54
54
|
// Catches anything focusable that styles nothing itself; a shell ringing on `:focus-within`
|
|
55
55
|
// silences its control with `owns-the-focus-ring` to avoid a second ring.
|
|
56
|
+
// Zero specificity, so a radius the element declares wins; one painting a fill and declaring none rounds while focused.
|
|
56
57
|
:where(:focus-visible) {
|
|
57
58
|
@include ring;
|
|
59
|
+
|
|
60
|
+
border-radius: var(--focus-ring-radius);
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
@keyframes ds-focus-ring-in {
|
package/styles/_link.scss
CHANGED
|
@@ -3,39 +3,59 @@
|
|
|
3
3
|
/* Pure CSS class so inline anchors in <p> text keep their line flow. */
|
|
4
4
|
|
|
5
5
|
.link {
|
|
6
|
-
--_link-color:
|
|
7
|
-
--_link-color-hover:
|
|
6
|
+
--_link-color: var(--ds-link-color, var(--blue-700));
|
|
7
|
+
--_link-color-hover: var(--ds-link-color-hover, color-mix(in srgb, var(--_link-color) 80%, black));
|
|
8
8
|
--_link-color-active: var(--ds-link-color-active, color-mix(in srgb, var(--_link-color) 65%, black));
|
|
9
|
+
--_link-color-visited: var(--ds-link-color-visited, hsl(var(--blue-h) calc(var(--blue-s) * 0.6) 45%));
|
|
10
|
+
--_link-color-visited-hover: var(--ds-link-color-visited-hover, color-mix(in srgb, var(--_link-color-visited) 80%, black));
|
|
11
|
+
--_link-color-visited-active: var(--ds-link-color-visited-active, color-mix(in srgb, var(--_link-color-visited) 65%, black));
|
|
12
|
+
--_link-color-disabled: var(--ds-link-color-disabled, var(--text-disabled));
|
|
13
|
+
--_link-underline-color: var(--ds-link-underline-color, currentcolor);
|
|
14
|
+
--_link-underline-thickness: var(--ds-link-underline-thickness, 1px);
|
|
15
|
+
--_link-underline-offset: var(--ds-link-underline-offset, 2px);
|
|
16
|
+
--_link-focus-ring-color: var(--ds-link-focus-ring-color, var(--focus-ring-color));
|
|
9
17
|
|
|
10
18
|
color: var(--_link-color);
|
|
11
19
|
text-decoration: underline;
|
|
12
|
-
text-decoration-color: var(--_link-color);
|
|
13
|
-
text-underline-offset:
|
|
14
|
-
text-decoration-thickness:
|
|
20
|
+
text-decoration-color: var(--_link-underline-color);
|
|
21
|
+
text-underline-offset: var(--_link-underline-offset);
|
|
22
|
+
text-decoration-thickness: var(--_link-underline-thickness);
|
|
15
23
|
font-weight: var(--font-weight-medium);
|
|
16
24
|
cursor: pointer;
|
|
17
25
|
transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);
|
|
18
26
|
|
|
19
27
|
&:hover {
|
|
20
28
|
color: var(--_link-color-hover);
|
|
21
|
-
text-decoration-color: var(--_link-color-hover);
|
|
22
29
|
}
|
|
23
30
|
|
|
24
31
|
&:active {
|
|
25
32
|
color: var(--_link-color-active);
|
|
26
|
-
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Browsers apply only colour properties under `:visited` and ignore custom properties declared there,
|
|
36
|
+
so the resolvers live on `.link` and these rules set `color` alone. `:where()` keeps each at the
|
|
37
|
+
specificity of its unvisited twin, so `.quiet` and `[aria-disabled]` below still win. */
|
|
38
|
+
&:where(:visited) {
|
|
39
|
+
color: var(--_link-color-visited);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:where(:visited):hover {
|
|
43
|
+
color: var(--_link-color-visited-hover);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where(:visited):active {
|
|
47
|
+
color: var(--_link-color-visited-active);
|
|
27
48
|
}
|
|
28
49
|
|
|
29
50
|
&:focus-visible {
|
|
30
51
|
@include focus.ring;
|
|
31
52
|
|
|
53
|
+
outline-color: var(--_link-focus-ring-color);
|
|
32
54
|
border-radius: var(--radius-sm);
|
|
33
|
-
text-decoration-color: var(--_link-color);
|
|
34
55
|
}
|
|
35
56
|
|
|
36
57
|
&[aria-disabled="true"] {
|
|
37
|
-
color: var(--
|
|
38
|
-
text-decoration-color: var(--text-disabled);
|
|
58
|
+
color: var(--_link-color-disabled);
|
|
39
59
|
pointer-events: none;
|
|
40
60
|
cursor: default;
|
|
41
61
|
}
|
|
@@ -61,12 +81,10 @@
|
|
|
61
81
|
|
|
62
82
|
&.quiet {
|
|
63
83
|
color: var(--text-secondary);
|
|
64
|
-
text-decoration-color: var(--text-secondary);
|
|
65
84
|
font-weight: var(--font-weight-medium);
|
|
66
85
|
|
|
67
86
|
&:hover {
|
|
68
87
|
color: var(--text-primary);
|
|
69
|
-
text-decoration-color: var(--text-primary);
|
|
70
88
|
}
|
|
71
89
|
}
|
|
72
90
|
|
|
@@ -96,3 +114,8 @@
|
|
|
96
114
|
&.sm { font-size: var(--font-size-s); }
|
|
97
115
|
&.lg { font-size: var(--font-size-l); }
|
|
98
116
|
}
|
|
117
|
+
|
|
118
|
+
:root[data-theme='dark'] .link {
|
|
119
|
+
--_link-color: var(--ds-link-color, hsl(var(--blue-h) 90% 74%));
|
|
120
|
+
--_link-color-visited: var(--ds-link-color-visited, hsl(var(--blue-h) 50% 70%));
|
|
121
|
+
}
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
// trigger edge. The keyframe name never changes with placement, so a mid-scroll CDK flip redirects the
|
|
7
7
|
// motion instead of restarting it.
|
|
8
8
|
//
|
|
9
|
+
// A scale entrance re-rasterises the text when it ends, so the glyphs thin and step a pixel; the
|
|
10
|
+
// default fades in place.
|
|
11
|
+
//
|
|
9
12
|
// Duration and easing are longhands so they outrank a consumer keyframe's own timing. Reduced motion
|
|
10
13
|
// zeroes the duration; at 0s `animationend` is unreliable, and `disposeWithLeave`'s 400 ms timer tears the pane down.
|
|
11
14
|
|
|
12
15
|
.cdk-overlay-pane.ds-overlay-pane {
|
|
13
|
-
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-
|
|
16
|
+
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-fade-in);
|
|
14
17
|
--_overlay-enter-duration: var(--ds-overlay-enter-duration, var(--ds-motion-enter-panel-duration));
|
|
15
18
|
--_overlay-enter-easing: var(--ds-overlay-enter-easing, var(--ds-motion-enter-panel-easing));
|
|
16
19
|
--_overlay-enter-offset: var(--ds-overlay-enter-offset, 4px);
|
|
@@ -40,11 +43,6 @@
|
|
|
40
43
|
--_overlay-enter-origin: center left;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
// A chart tooltip reopens on every mark crossed; a scale would shift its rows, so it fades.
|
|
44
|
-
&.ds-chart-tooltip-pane {
|
|
45
|
-
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-fade-in);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
46
|
@media (prefers-reduced-motion: reduce) {
|
|
49
47
|
--_overlay-enter-duration: 0ms;
|
|
50
48
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// The pinned-tooltip cue every pin-capable trigger shares: `--accent-strong` ink, and for a text trigger a
|
|
2
|
+
// 2px solid accent underline. No fill, so it reads the same on any surface. Include inside
|
|
3
|
+
// `&[data-ds-tooltip-pinned]`; pass `$underline: false` for an icon. `cue-hover` goes inside
|
|
4
|
+
// `&[data-ds-tooltip-pinned]:hover` and `cue-pressed` inside `&[data-ds-tooltip-pinned]:active`, so a
|
|
5
|
+
// pinned trigger still answers the pointer and the press. `$spread` widens a fill past the trigger's box
|
|
6
|
+
// without moving the layout.
|
|
7
|
+
|
|
8
|
+
@mixin -ink($underline, $thickness) {
|
|
9
|
+
color: var(--accent-strong);
|
|
10
|
+
|
|
11
|
+
@if $underline {
|
|
12
|
+
text-decoration: underline solid var(--accent-strong);
|
|
13
|
+
text-decoration-thickness: $thickness;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin -fill($color, $spread) {
|
|
18
|
+
background-color: $color;
|
|
19
|
+
box-shadow: 0 0 0 $spread $color;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin cue($underline: true) {
|
|
23
|
+
@include -ink($underline, 2px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// A text trigger thickens its underline; an icon has no line, so it takes the neutral circle instead.
|
|
27
|
+
@mixin cue-hover($spread: 2px, $underline: true) {
|
|
28
|
+
@include -ink($underline, 3px);
|
|
29
|
+
|
|
30
|
+
@if not $underline {
|
|
31
|
+
@include -fill(var(--surface-muted), $spread);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin cue-pressed($spread: 2px, $underline: true) {
|
|
36
|
+
@include -ink($underline, 3px);
|
|
37
|
+
|
|
38
|
+
@if $underline {
|
|
39
|
+
@include -fill(var(--surface-muted), $spread);
|
|
40
|
+
} @else {
|
|
41
|
+
@include -fill(var(--border-default), $spread);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// `!important`: the travel is declared as `[_nghost-...]::after`, which outranks `ds-skeleton::after`.
|
|
4
|
-
@media (prefers-reduced-motion: reduce) {
|
|
5
|
-
ds-skeleton::after {
|
|
6
|
-
animation: none !important;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
// Deprecated: emits nothing. `ds-skeleton` carries its own reduced-motion opt-out, so this partial
|
|
2
|
+
// is no longer needed; it stays so that `@use 'styles/skeleton-shimmer'` keeps compiling.
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@use 'focus' as focus;
|
|
2
|
+
@use 'target' as target;
|
|
2
3
|
|
|
3
4
|
// Controls shared by ds-table and its opt-in directives. `dsTableColumns` renders from its own
|
|
4
5
|
// components, which lack ds-table's encapsulation attribute, so both stylesheets include these.
|
|
5
6
|
// The square icon button in a header cell: expand-all, row actions, the column-panel trigger.
|
|
6
7
|
// Reads the `--_table-icon-btn-*` resolvers, so include it only inside a ds-table.
|
|
8
|
+
// target-size-guard: --space-6, 24px
|
|
7
9
|
@mixin header-icon-button {
|
|
8
10
|
display: flex;
|
|
9
11
|
align-items: center;
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
color: var(--icon-default);
|
|
38
40
|
cursor: pointer;
|
|
39
41
|
|
|
42
|
+
@include target.min-size;
|
|
43
|
+
|
|
40
44
|
&:hover:not(:disabled) {
|
|
41
45
|
color: var(--icon-strong);
|
|
42
46
|
}
|