@ids-group-ltd/ids-design-system 0.14.4 → 0.14.6-beta.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/CHANGELOG.md +176 -1
- package/components.md +15 -15
- package/docs/agent/INDEX.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -1
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +1 -1
- package/docs/agent/charts/ds-config.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +3 -3
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
- 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 +2 -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 +58 -163
- 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 +21 -34
- 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 +34 -105
- 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 +3 -3
- 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 +22 -48
- 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 +7 -7
- 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 -10
- 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 +28 -130
- 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 +11 -29
- 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 +10 -28
- 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 +20 -13
- 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 +3 -3
- 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 +42 -69
- 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 +15 -20
- 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 +6 -7
- 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 +3 -10
- 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 +12 -28
- 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 +58 -112
- 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 +182 -432
- 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 +8 -12
- 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 +8 -22
- 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 +28 -123
- 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 +45 -116
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- 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 +4 -6
- 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 +7 -16
- 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 +7 -8
- 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 +3 -3
- 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 +16 -45
- 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 +10 -14
- 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 +19 -41
- 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 +48 -163
- 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 +27 -85
- 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 +17 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
- 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 +3 -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 +50 -166
- 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 +7 -7
- 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 +6 -11
- 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 +19 -36
- 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 +30 -57
- 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 +37 -103
- 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 +5 -6
- 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 +9 -15
- 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 +1 -1
- 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 +8 -12
- 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 +9 -24
- 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 +32 -120
- 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 +14 -24
- 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 +15 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
- 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 +16 -41
- 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 +8 -11
- 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 +18 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
- 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 +30 -49
- 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 +8 -12
- 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 +6 -7
- 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 +29 -13
- 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 +3 -3
- 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 +8 -9
- 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 +5 -20
- 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 +4 -4
- 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 +3 -3
- 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 +5 -9
- 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 +11 -23
- 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 +7 -16
- 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 +9 -43
- 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 +167 -353
- 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 +33 -86
- 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 +7 -7
- 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 +23 -47
- 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 +21 -49
- 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 +35 -63
- 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 -3
- 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 +38 -50
- 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 +3 -5
- 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 +3 -3
- 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 +28 -85
- 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 +325 -579
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +52 -85
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
- package/migrations/0.14.5.json +311 -0
- package/migrations/0.14.6-beta.0.json +9 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +20 -2
- package/styles/_breakpoints.scss +6 -23
- package/styles/_chart-data-table.scss +3 -11
- package/styles/_chart-frame.scss +14 -63
- package/styles/_chart-interactive.scss +8 -36
- package/styles/_chart-motion.scss +11 -39
- package/styles/_check-box.scss +7 -26
- package/styles/_check-mark.scss +7 -23
- package/styles/_chip-row.scss +3 -14
- package/styles/_clear-button.scss +2 -7
- package/styles/_control-label.scss +2 -13
- package/styles/_control-line.scss +2 -6
- package/styles/_dropdown-overlay.scss +8 -33
- package/styles/_ds-color.scss +9 -28
- package/styles/_field-box.scss +4 -16
- package/styles/_field-group-segment.scss +6 -6
- package/styles/_field-label.scss +3 -14
- package/styles/_field-state.scss +5 -10
- package/styles/_focus.scss +20 -60
- package/styles/_icon-base.scss +0 -2
- package/styles/_layout-utils.scss +0 -3
- package/styles/_link.scss +4 -18
- package/styles/_overlay-motion.scss +15 -38
- package/styles/_page-grid.scss +4 -29
- package/styles/_press.scss +5 -18
- package/styles/_reset.scss +1 -14
- package/styles/_scrollbar.scss +0 -2
- package/styles/_skeleton-shimmer.scss +3 -14
- package/styles/_status.scss +5 -13
- package/styles/_surface-motion.scss +7 -34
- package/styles/_table-controls.scss +3 -6
- package/styles/_text-clip.scss +2 -6
- package/styles/_theme-activation.scss +7 -20
- package/styles/_toast-overlay.scss +2 -6
- package/styles/_tokens-charts.scss +31 -90
- package/styles/_tokens.scss +111 -156
- package/styles/_typography.scss +6 -13
- package/styles/_visually-hidden.scss +2 -3
- package/styles/ds.scss +2 -10
- package/themes/_base-palette.scss +12 -35
- package/themes/_semantic.scss +29 -98
- package/themes/dark/_palette.scss +15 -29
- package/themes/dark/_theme.scss +14 -32
- package/themes/light/_palette.scss +2 -17
- package/themes/light/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
- package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
- package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
- package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -260
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
@use 'focus' as focus;
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// selector) cannot reach it. The component sets `panelClass: 'ds-dropdown-panel'`
|
|
6
|
-
// on the overlay config; this partial declares the matching rules.
|
|
3
|
+
// Global: the panel is portaled via CDK Overlay outside the host's DOM tree, out of reach of
|
|
4
|
+
// emulated encapsulation. The component sets `panelClass: 'ds-dropdown-panel'`.
|
|
7
5
|
|
|
8
6
|
@use 'check-mark' as check-mark;
|
|
9
7
|
@use 'text-clip' as text-clip;
|
|
10
8
|
@use 'visually-hidden' as visually-hidden;
|
|
11
9
|
|
|
12
10
|
.ds-dropdown-panel {
|
|
13
|
-
/* Every --_* below resolves through a public --ds-* hook and falls back to a
|
|
14
|
-
semantic role or the panel radius role, so an untouched theme is unchanged.
|
|
15
|
-
Panel-level, not per-component: this one partial paints the rows for select,
|
|
16
|
-
autocomplete and multi-select alike. */
|
|
17
11
|
--_option-selected-bg-color: var(--ds-option-selected-bg-color, var(--primary-subtitle));
|
|
18
12
|
--_option-selected-label-color: var(--ds-option-selected-label-color, var(--primary-strong));
|
|
19
13
|
--_option-selected-bg-color-hover: var(--ds-option-selected-bg-color-hover, var(--primary-muted));
|
|
@@ -39,15 +33,12 @@
|
|
|
39
33
|
--_dropdown-panel-shadow: var(--ds-dropdown-panel-shadow, var(--shadow-popover));
|
|
40
34
|
--_dropdown-panel-max-height: var(--ds-dropdown-panel-max-height, 320px);
|
|
41
35
|
|
|
42
|
-
/*
|
|
43
|
-
`fill` the component pins the pane to the trigger width and there is nothing
|
|
44
|
-
left to bound. */
|
|
36
|
+
/* Min/max width only apply in `content` width mode; `fill` pins the pane to the trigger. */
|
|
45
37
|
--_dropdown-panel-min-width: var(--ds-dropdown-panel-min-width, 0);
|
|
46
38
|
--_dropdown-panel-max-width: var(--ds-dropdown-panel-max-width, none);
|
|
47
39
|
|
|
48
40
|
.dropdown-panel {
|
|
49
|
-
// The
|
|
50
|
-
// child of it and shrinks to its own option content width.
|
|
41
|
+
// The panel is a flex child of the pane; without this it shrinks to its option content.
|
|
51
42
|
width: 100%;
|
|
52
43
|
background: var(--_dropdown-panel-bg-color);
|
|
53
44
|
border: var(--border-width-default) solid var(--_dropdown-panel-border-color);
|
|
@@ -57,10 +48,6 @@
|
|
|
57
48
|
min-width: var(--_dropdown-panel-min-width);
|
|
58
49
|
max-width: var(--_dropdown-panel-max-width);
|
|
59
50
|
max-height: var(--_dropdown-panel-max-height);
|
|
60
|
-
|
|
61
|
-
// The panel clips and the LIST scrolls, so a filter or select-all row stays
|
|
62
|
-
// put while the options move under it — a panel that scrolled itself would
|
|
63
|
-
// carry those rows out of view.
|
|
64
51
|
display: flex;
|
|
65
52
|
flex-direction: column;
|
|
66
53
|
overflow: hidden;
|
|
@@ -68,8 +55,6 @@
|
|
|
68
55
|
}
|
|
69
56
|
|
|
70
57
|
.dropdown-list {
|
|
71
|
-
// A cap of its own, separate from the panel's: the difference between the two
|
|
72
|
-
// is what the panel's non-scrolling rows (filter, select-all) can occupy.
|
|
73
58
|
max-height: var(--picker-maxh);
|
|
74
59
|
list-style: none;
|
|
75
60
|
margin: 0;
|
|
@@ -77,8 +62,7 @@
|
|
|
77
62
|
display: flex;
|
|
78
63
|
flex-direction: column;
|
|
79
64
|
|
|
80
|
-
//
|
|
81
|
-
// would push the panel past its own max-height instead of scrolling.
|
|
65
|
+
// Without this the list pushes the panel past its max-height instead of scrolling.
|
|
82
66
|
min-height: 0;
|
|
83
67
|
overflow-y: auto;
|
|
84
68
|
gap: var(--_option-row-gap);
|
|
@@ -147,14 +131,11 @@
|
|
|
147
131
|
@include text-clip.single-line-ellipsis;
|
|
148
132
|
}
|
|
149
133
|
|
|
150
|
-
//
|
|
151
|
-
// tree and the reason would be announced nowhere.
|
|
134
|
+
// Not display:none: that removes the reason from the accessibility tree.
|
|
152
135
|
.option-reason {
|
|
153
136
|
@include visually-hidden.visually-hidden;
|
|
154
137
|
}
|
|
155
138
|
|
|
156
|
-
// Persistent, not rendered only when selected: an element that does not exist has no resting
|
|
157
|
-
// state to transition from, which is why this was the one selection mark that popped in.
|
|
158
139
|
.option-check {
|
|
159
140
|
@include check-mark.mark;
|
|
160
141
|
|
|
@@ -171,17 +152,12 @@
|
|
|
171
152
|
cursor: not-allowed;
|
|
172
153
|
}
|
|
173
154
|
|
|
174
|
-
// `:not(.is-selected)` is load-bearing: this branch outranks `.is-selected
|
|
175
|
-
// on specificity, so without it a hovered (or keyboard-active) selected row
|
|
176
|
-
// repaints to the neutral surface while KEEPING the selected label colour —
|
|
177
|
-
// unreadable as soon as a brand gives the selected row a dark fill.
|
|
155
|
+
// `:not(.is-selected)` is load-bearing: this branch outranks `.is-selected`, and a hovered selected row would get the neutral surface with the selected label colour.
|
|
178
156
|
&:hover:not(.is-disabled, .is-selected, :disabled),
|
|
179
157
|
&.is-active:not(.is-disabled, .is-selected, :disabled) {
|
|
180
158
|
background: var(--_option-bg-color-active);
|
|
181
159
|
}
|
|
182
160
|
|
|
183
|
-
// A tap on a phone has no hover, so the pressed state is the only feedback
|
|
184
|
-
// that the row was hit.
|
|
185
161
|
&:active:not(.is-disabled, :disabled) {
|
|
186
162
|
background: var(--surface-muted);
|
|
187
163
|
}
|
|
@@ -201,8 +177,7 @@
|
|
|
201
177
|
background: var(--_option-selected-bg-color-hover);
|
|
202
178
|
}
|
|
203
179
|
|
|
204
|
-
//
|
|
205
|
-
// would strand the selected label colour on it.
|
|
180
|
+
// As with hover: the neutral pressed fill would strand the selected label colour on it.
|
|
206
181
|
&:active:not(.is-disabled) {
|
|
207
182
|
background: var(--_option-selected-bg-color);
|
|
208
183
|
}
|
package/styles/_ds-color.scss
CHANGED
|
@@ -2,22 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
$families: secondary, tertiary, error, success, warning;
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// per instance. With no attribute, --accent-* stays the primary family (see
|
|
12
|
-
// themes/_semantic.scss), so the default theme is unchanged.
|
|
13
|
-
|
|
14
|
-
// Each pointer ends in a fallback, because a role a family does not define is not a wrong
|
|
15
|
-
// colour: it is a GUARANTEED-INVALID value, so every declaration reading the pointer becomes
|
|
16
|
-
// invalid at computed-value time and resets to `unset` — a label rendered as body text, a fill
|
|
17
|
-
// rendered transparent, and nothing in the console either way. Where the fallback leads differs
|
|
18
|
-
// by pointer and is deliberate: -hover, -pressed and -strong fall back to the family's own base
|
|
19
|
-
// colour, the tint pointers to the family's -muted, and -on and the two focus pointers to the
|
|
20
|
-
// theme-wide role, since no family-shaped answer exists for them.
|
|
5
|
+
// `ds-color="<family>"` on a container or host (or the ds.color() mixin) flips the --accent-* pointers to
|
|
6
|
+
// another family for its subtree.
|
|
7
|
+
//
|
|
8
|
+
// Each pointer ends in a fallback: a role a family does not define is guaranteed-invalid and would reset
|
|
9
|
+
// every declaration reading it to `unset` with no console message. -hover, -pressed and -strong fall
|
|
10
|
+
// back to the family base, tints to its -muted, -on and the focus pointers to the theme-wide role.
|
|
21
11
|
@mixin family-vars($family) {
|
|
22
12
|
--accent: var(--#{$family});
|
|
23
13
|
--accent-hover: var(--#{$family}-hover, var(--#{$family}));
|
|
@@ -31,21 +21,12 @@ $families: secondary, tertiary, error, success, warning;
|
|
|
31
21
|
--accent-focus-field: var(--focus-field-#{$family}, var(--focus-field));
|
|
32
22
|
--accent-surface-tint: var(--#{$family}-subtitle, var(--#{$family}-muted));
|
|
33
23
|
|
|
34
|
-
// Re-declared
|
|
35
|
-
// substitutes ON :root, so the brand hue is what reaches this subtree already resolved. The flat
|
|
36
|
-
// outline colour has to be written again where the accent actually changed, or a focused row
|
|
37
|
-
// inside an error zone rings brand-blue while every other accent around it is red.
|
|
24
|
+
// Re-declared: `--focus-ring-color: var(--accent)` on :root is resolved there, so the subtree would ring brand-blue.
|
|
38
25
|
--focus-ring-color: var(--#{$family});
|
|
39
26
|
}
|
|
40
27
|
|
|
41
|
-
/// Recolour the DS accent for a
|
|
42
|
-
/// `
|
|
43
|
-
///
|
|
44
|
-
/// A name outside $families is refused rather than emitted. Without this the mixin accepts any
|
|
45
|
-
/// string and writes `--accent: var(--<whatever>)`, which is guaranteed-invalid — so every rule
|
|
46
|
-
/// reading the accent resets to `unset` and the subtree renders as body text, with nothing in the
|
|
47
|
-
/// console. That is the failure `check-color-families.mjs` exists to prevent, and it is the one
|
|
48
|
-
/// form of it no CSS-side check can see: a consumer's `@include` never reaches our compiled output.
|
|
28
|
+
/// Recolour the DS accent for a scope from consumer SCSS, e.g. `ds-switch { @include ds.color(secondary); }`.
|
|
29
|
+
/// A name outside $families is refused: `--accent: var(--<unknown>)` is guaranteed-invalid and renders as body text silently.
|
|
49
30
|
@mixin color($family) {
|
|
50
31
|
@if not list.index($families, $family) {
|
|
51
32
|
@error 'ds.color(): unknown family "#{$family}". Available: #{$families}.';
|
package/styles/_field-box.scss
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// `--field-h-sm`/`-md`/`-lg` is the height scale every field-shaped control resolves
|
|
4
|
-
// through, so retuning `--field-h-md` moves them together.
|
|
5
|
-
//
|
|
6
|
-
// `--ds-field-height` is the public override and beats the size class, because a
|
|
7
|
-
// consumer setting it has already decided. Per-instance is CSS-variable scoping:
|
|
8
|
-
// `ds-select { --ds-field-height: 44px; }`.
|
|
9
|
-
// `$prop` is `min-height` for a box that must be able to grow — autocomplete and
|
|
10
|
-
// multi-select wrap chips onto a second line, and a fixed height would clip them.
|
|
11
|
-
// `--_field-height` holds the RESOLVED height, so a control that derives other
|
|
12
|
-
// geometry from it (number-stepper sizes its buttons off its own height) can read
|
|
13
|
-
// it back instead of restating the fallback chain.
|
|
1
|
+
// Resolves the control-box height through `--field-h-sm/-md/-lg`; `--ds-field-height` is the public override and beats the size class.
|
|
2
|
+
// `$prop` is `min-height` for a box that must grow (chips wrap). `--_field-height` holds the resolved value.
|
|
14
3
|
@mixin field-box-height($size: md, $prop: height) {
|
|
15
4
|
--_field-height: var(--ds-field-height, var(--field-h-#{$size}));
|
|
16
5
|
|
|
17
6
|
#{$prop}: var(--_field-height);
|
|
18
7
|
}
|
|
19
8
|
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
// The date, time and colour pickers keep their own `-trigger-*` vocabulary and are not in it.
|
|
9
|
+
// One `--ds-field-*` set retunes input, textarea, select, multi-select, autocomplete and search.
|
|
10
|
+
// The date, time and colour pickers keep their own `-trigger-*` vocabulary.
|
|
23
11
|
@mixin field-box-tokens {
|
|
24
12
|
--_field-border-color: var(--ds-field-border-color, var(--border-default));
|
|
25
13
|
--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'focus' as focus;
|
|
2
2
|
|
|
3
|
-
// `display: flex` on the host is load-bearing:
|
|
4
|
-
//
|
|
5
|
-
// ends up at the top of the row instead of its centre.
|
|
3
|
+
// `display: flex` on the host is load-bearing: a block host gives the box no height to resolve a
|
|
4
|
+
// percentage against and the value sits at the top of the row.
|
|
6
5
|
@mixin field-group-segment($box) {
|
|
7
6
|
width: auto;
|
|
8
7
|
display: flex;
|
|
@@ -29,8 +28,9 @@
|
|
|
29
28
|
@include focus.own-indicator;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
|
-
/* No blanket reset
|
|
33
|
-
|
|
34
|
-
the ring it needs. */
|
|
31
|
+
/* No blanket reset on purpose: each field silences its own control, leaving a tab stop
|
|
32
|
+
inside a segment its ring. */
|
|
35
33
|
}
|
|
36
34
|
}
|
|
35
|
+
|
|
36
|
+
/* No blanket reset on purpose: each field silences its own control, leaving a tab stop inside a segment its ring. */
|
package/styles/_field-label.scss
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// input renders its labels at one size and colour. It lives in one place because
|
|
5
|
-
// out-ranking a shimmed component rule from an app needs doubled selectors
|
|
6
|
-
// (`.field.field .label.label`).
|
|
7
|
-
//
|
|
8
|
-
// A MIXIN, not a global rule: a global `.label` would match consumer markup that
|
|
9
|
-
// happens to use the same class name. Each field pays ~6 declarations of its own CSS.
|
|
10
|
-
//
|
|
11
|
-
// Per-instance retune is CSS-variable scoping, so no per-component token set is
|
|
12
|
-
// needed: `ds-select { --ds-field-label-text-transform: uppercase; }` reaches exactly
|
|
13
|
-
// one component. ds-input keeps its older `--ds-input-label-*` trio winning above
|
|
14
|
-
// this, since those shipped in 0.7.x.
|
|
1
|
+
// A mixin, not a global rule, which would match consumer markup using the same class.
|
|
2
|
+
// Per-instance retune is variable scoping: `ds-select { --ds-field-label-text-transform: uppercase; }`.
|
|
3
|
+
// ds-input's `--ds-input-label-*` trio still wins.
|
|
15
4
|
@mixin field-label {
|
|
16
5
|
--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));
|
|
17
6
|
--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));
|
package/styles/_field-state.scss
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// Keyed off `data-field-state` on the host. Only error carries a fill: a warning or success tint
|
|
2
|
-
// measures 1.05:1 against a white field
|
|
3
|
-
//
|
|
4
|
-
// Disabled takes no state paint — it is neither submitted nor validated, so an error border
|
|
5
|
-
// promises a correction that cannot be made. Read-only keeps it, because it IS submitted.
|
|
6
|
-
//
|
|
2
|
+
// measures 1.05:1 against a white field. Disabled takes no state paint; read-only keeps it.
|
|
7
3
|
// The colour arguments let a component pass its own `--ds-<name>-*-error` resolver.
|
|
8
4
|
@mixin field-state(
|
|
9
5
|
$box,
|
|
@@ -13,9 +9,9 @@
|
|
|
13
9
|
$warning-border: var(--warning-text),
|
|
14
10
|
$success-border: var(--success)
|
|
15
11
|
) {
|
|
16
|
-
// `:not(.in-group)`: a segment ties `.in-group` at (0,3,0) and this mixin is included last, so
|
|
17
|
-
//
|
|
18
|
-
//
|
|
12
|
+
// `:not(.in-group)`: a segment ties `.in-group` at (0,3,0) and this mixin is included last, so the fill
|
|
13
|
+
// would repaint one segment mid-row. `:not(.disabled)`: state is (0,3,0) against (0,2,0) and would
|
|
14
|
+
// out-rank every disabled rule.
|
|
19
15
|
:host([data-field-state='error']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
20
16
|
border-color: #{$error-border};
|
|
21
17
|
background-color: #{$error-bg};
|
|
@@ -26,8 +22,7 @@
|
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
24
|
|
|
29
|
-
// --warning is 1.47:1 against a white field
|
|
30
|
-
// --warning-text is the first rung of the ramp that clears it, at 4.59:1.
|
|
25
|
+
// --warning is 1.47:1 against a white field (WCAG 1.4.11 asks 3:1); --warning-text is the first ramp rung that clears it, at 4.59:1.
|
|
31
26
|
:host([data-field-state='warning']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
32
27
|
border-color: #{$warning-border};
|
|
33
28
|
}
|
package/styles/_focus.scss
CHANGED
|
@@ -1,64 +1,35 @@
|
|
|
1
|
-
// Focus-indicator style, switched in
|
|
2
|
-
//
|
|
3
|
-
// Two families, two mechanisms: controls take an `outline`, fields a soft halo through
|
|
4
|
-
// `--ds-field-focus-shadow`. An outline is right for a control because `outline-offset` leaves its
|
|
5
|
-
// gap UNPAINTED, so the ring floats over whatever the control sits on, and a negative offset draws
|
|
6
|
-
// it inside the element where an `overflow` ancestor cannot clip it.
|
|
1
|
+
// Focus-indicator style, switched in one place: `<html data-focus="...">`.
|
|
2
|
+
// Controls take an `outline` (a negative offset draws inside an `overflow` ancestor); fields a halo through `--ds-field-focus-shadow`.
|
|
7
3
|
|
|
8
|
-
// The control indicator.
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// border-radius of the box it is painted on, so a square-cornered shell rings square. A shell that
|
|
15
|
-
// exists only to carry the ring takes `--focus-ring-radius`.
|
|
16
|
-
//
|
|
17
|
-
// INSIDE the element's own `&:focus-visible` block, never on the element: this mixin PAINTS a
|
|
18
|
-
// ring, it does not decide when one is shown. Put it on the rule itself and every instance is
|
|
19
|
-
// ringed at all times, which reads as a styling choice rather than a bug and is caught by
|
|
20
|
-
// `tools/check-focus-rings.mjs` for exactly that reason.
|
|
21
|
-
//
|
|
22
|
-
// Usually the answer is to include nothing at all: `:where(:focus-visible)` below already rings
|
|
23
|
-
// anything focusable that styles nothing itself, so a control needs this only where it wants a
|
|
24
|
-
// different offset, or where it silences the base rule and has to put one back.
|
|
25
|
-
//
|
|
26
|
-
// Usage: `&:focus-visible { @include focus.ring; }`, or
|
|
27
|
-
// `@include focus.ring(calc(-1 * var(--focus-ring-offset)))` where an ancestor clips.
|
|
4
|
+
// The control indicator. Does not touch box-shadow, so a focused card keeps its elevation; a state
|
|
5
|
+
// painting its own shadow must yield, see `state-shadow`.
|
|
6
|
+
// An outline follows the element's border-radius: a shell that only carries the ring takes `--focus-ring-radius`.
|
|
7
|
+
// Include inside `&:focus-visible`, never on the element itself, or every instance is ringed at all times.
|
|
8
|
+
// Usually include nothing: `:where(:focus-visible)` below rings anything focusable that styles nothing itself.
|
|
9
|
+
// Pass a negative offset where an ancestor clips.
|
|
28
10
|
@mixin ring($offset: var(--focus-ring-offset)) {
|
|
29
11
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
30
12
|
outline-offset: $offset;
|
|
31
13
|
|
|
32
|
-
// An
|
|
33
|
-
// REPLACE the component's own list while the element held focus. Colour only — animating the
|
|
34
|
-
// offset makes the ring lag the caret on a fast Tab.
|
|
14
|
+
// An animation, not a transition: a `transition` here would replace the component's own list. Colour only, so the ring does not lag the caret.
|
|
35
15
|
animation: ds-focus-ring-in var(--duration-fast) var(--ease-standard);
|
|
36
16
|
}
|
|
37
17
|
|
|
38
|
-
// Catches anything focusable that styles nothing itself
|
|
39
|
-
//
|
|
40
|
-
// silences its control with `owns-the-focus-ring` and no second ring appears.
|
|
18
|
+
// Catches anything focusable that styles nothing itself; a shell ringing on `:focus-within`
|
|
19
|
+
// silences its control with `owns-the-focus-ring` to avoid a second ring.
|
|
41
20
|
:where(:focus-visible) {
|
|
42
21
|
@include ring;
|
|
43
22
|
}
|
|
44
23
|
|
|
45
|
-
// Only the FROM value is declared: the to-value is whatever the ring resolves to on that element,
|
|
46
|
-
// so one keyframe serves every colour, width and offset the tokens can take.
|
|
47
24
|
@keyframes ds-focus-ring-in {
|
|
48
25
|
from {
|
|
49
26
|
outline-color: transparent;
|
|
50
27
|
}
|
|
51
28
|
}
|
|
52
29
|
|
|
53
|
-
// A shell that rings on its control's behalf
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
// `:has(:focus-visible)`, NOT `:focus-within`: the latter matches a pointer focus too, and a
|
|
57
|
-
// checkbox is not granted `:focus-visible` on click, so a clicked control kept its ring until
|
|
58
|
-
// focus moved away. NOT for a field shell — there `:focus-within` is correct, because clicking
|
|
59
|
-
// into a text input does grant `:focus-visible`.
|
|
60
|
-
//
|
|
61
|
-
// Usage: `.control-line { @include focus.ring-for('.check'); }`
|
|
30
|
+
// A shell that rings on its control's behalf and silences $control in the same call.
|
|
31
|
+
// `:has(:focus-visible)`, not `:focus-within`: a clicked checkbox is not `:focus-visible` but matches
|
|
32
|
+
// `:focus-within`, so it would keep its ring. Field shells use `:focus-within` (a text input does grant `:focus-visible`).
|
|
62
33
|
@mixin ring-for($control, $offset: var(--focus-ring-offset)) {
|
|
63
34
|
&:has(:focus-visible) {
|
|
64
35
|
@include ring($offset);
|
|
@@ -67,59 +38,48 @@
|
|
|
67
38
|
@include owns-the-focus-ring($control);
|
|
68
39
|
}
|
|
69
40
|
|
|
70
|
-
// `$control` names
|
|
71
|
-
// inside the box — a clear button, a stepper arrow.
|
|
41
|
+
// `$control` names one control, never a blanket, which would silence tab stops such as a clear button.
|
|
72
42
|
@mixin owns-the-focus-ring($control) {
|
|
73
43
|
#{$control}:where(:focus-visible) {
|
|
74
44
|
@include own-indicator;
|
|
75
45
|
}
|
|
76
46
|
}
|
|
77
47
|
|
|
78
|
-
// Turns the base indicator off
|
|
79
|
-
//
|
|
80
|
-
// shell would have no indicator at all in the one mode where it is mandatory.
|
|
48
|
+
// Turns the base indicator off for a control whose shell rings for it. Forced colours drops
|
|
49
|
+
// `box-shadow`, so the outline must stay there or no indicator remains.
|
|
81
50
|
@mixin own-indicator {
|
|
82
51
|
@media not (forced-colors: active) {
|
|
83
52
|
outline: none;
|
|
84
53
|
}
|
|
85
54
|
}
|
|
86
55
|
|
|
87
|
-
//
|
|
88
|
-
// property cannot hold both, so this hands the ring the tie by intent rather than by line order.
|
|
89
|
-
// Only where the state has ANOTHER channel — a state carried by the shadow alone would go
|
|
90
|
-
// unreadable exactly while the user stands on it.
|
|
56
|
+
// A persistent state painting its own box-shadow: the ring wins while focused. Only for states with another channel.
|
|
91
57
|
@mixin state-shadow($shadow) {
|
|
92
58
|
&:not(:focus-visible) {
|
|
93
59
|
box-shadow: $shadow;
|
|
94
60
|
}
|
|
95
61
|
}
|
|
96
62
|
|
|
97
|
-
// Fields ring like controls: the halo role is retargeted at the ring token.
|
|
98
63
|
:root[data-focus='ring'] {
|
|
99
64
|
--ds-field-focus-shadow: var(--focus-ring);
|
|
100
65
|
--ds-field-focus-shadow-error: var(--focus-ring-error);
|
|
101
66
|
}
|
|
102
67
|
|
|
103
|
-
// Hairline flush against the element — no gap in either family.
|
|
104
68
|
:root[data-focus='edge'] {
|
|
105
69
|
--focus-ring-offset: 0px;
|
|
106
70
|
--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);
|
|
107
71
|
--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);
|
|
108
72
|
}
|
|
109
73
|
|
|
110
|
-
//
|
|
111
|
-
// set it on the clipping element and everything inside keeps an indicator.
|
|
74
|
+
// Not pinned to :root: set it on a clipping element and everything inside keeps an indicator.
|
|
112
75
|
[data-focus='inset'] {
|
|
113
76
|
--focus-ring-offset: calc(-1 * var(--focus-ring-width));
|
|
114
77
|
--ds-field-focus-shadow: var(--focus-ring-inset);
|
|
115
78
|
--ds-field-focus-shadow-error: var(--focus-ring-inset-error);
|
|
116
79
|
}
|
|
117
80
|
|
|
118
|
-
//
|
|
119
|
-
// Contrast DROPS box-shadow and the field family's halo vanishes there completely.
|
|
81
|
+
// Applies under every style: forced colours drops box-shadow, so the field halo vanishes.
|
|
120
82
|
@media (forced-colors: active) {
|
|
121
|
-
// CanvasText, not a brand colour: the palette is replaced, and a system keyword is
|
|
122
|
-
// the only value guaranteed to contrast with the forced background.
|
|
123
83
|
:where(:focus-visible) {
|
|
124
84
|
outline: var(--focus-ring-width) solid CanvasText;
|
|
125
85
|
outline-offset: var(--focus-ring-offset);
|
package/styles/_icon-base.scss
CHANGED
package/styles/_link.scss
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
@use 'focus' as focus;
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
can apply it to inline anchors inside <p> text without disrupting line
|
|
5
|
-
flow. Modifiers: .quiet, .inline, .standalone, .xs, .sm, .lg. */
|
|
3
|
+
/* Pure CSS class so inline anchors in <p> text keep their line flow. */
|
|
6
4
|
|
|
7
5
|
.link {
|
|
8
|
-
/* Hover and active derive from the resolved color. */
|
|
9
6
|
--_link-color: var(--ds-link-color, var(--text-link));
|
|
10
7
|
--_link-color-hover: var(--ds-link-color-hover, color-mix(in srgb, var(--_link-color) 80%, black));
|
|
11
8
|
--_link-color-active: var(--ds-link-color-active, color-mix(in srgb, var(--_link-color) 65%, black));
|
|
@@ -48,16 +45,9 @@
|
|
|
48
45
|
flex-shrink: 0;
|
|
49
46
|
}
|
|
50
47
|
|
|
51
|
-
/*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
and an outset border). `:where()` keeps the reset at this class's specificity,
|
|
55
|
-
so a consumer's rule still wins on source order.
|
|
56
|
-
|
|
57
|
-
Absences are deliberate and invisible in code: no `font-weight`, so `.quiet` /
|
|
58
|
-
`.standalone` keep deciding it, and no `display`, because inline-block is what
|
|
59
|
-
lays a standalone button out predictably. `appearance` is the reverse — no
|
|
60
|
-
effect in Chrome, needed where native chrome outlives a zeroed border. */
|
|
48
|
+
/* A `<button>` styled as a link brings UA chrome. `:where()` keeps the reset at this class's specificity
|
|
49
|
+
so consumer rules win. No `font-weight` (`.quiet`/`.standalone` decide it) and no `display` on purpose.
|
|
50
|
+
`appearance` is a no-op in Chrome but needed where native chrome outlives a zeroed border. */
|
|
61
51
|
&:where(button) {
|
|
62
52
|
appearance: none;
|
|
63
53
|
padding: 0;
|
|
@@ -71,10 +61,6 @@
|
|
|
71
61
|
|
|
72
62
|
&.quiet {
|
|
73
63
|
color: var(--text-secondary);
|
|
74
|
-
|
|
75
|
-
/* Pull the underline down to match the muted text — the base rule sets
|
|
76
|
-
text-decoration-color to the link color, which would leave a bright
|
|
77
|
-
underline under grey text at rest. */
|
|
78
64
|
text-decoration-color: var(--text-secondary);
|
|
79
65
|
font-weight: var(--font-weight-medium);
|
|
80
66
|
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
// Enter motion for CDK-overlay panels
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// CHILD, not the pane itself, so CDK's positioning transforms on
|
|
5
|
-
// `.cdk-overlay-pane` are left untouched. A leave animation runs on an ambient
|
|
6
|
-
// dismiss only; picking an option closes instantly (see `.ds-leaving` below).
|
|
1
|
+
// Enter motion for CDK-overlay panels carrying the `ds-overlay-pane` panelClass. Animates the panel's
|
|
2
|
+
// root child, not the pane, so CDK's positioning transforms are untouched. A leave runs on an ambient
|
|
3
|
+
// dismiss only; picking an option closes instantly.
|
|
7
4
|
//
|
|
8
|
-
// `data-ds-placement`
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// both follow it. The keyframe name never changes with placement, so a mid-scroll
|
|
12
|
-
// CDK flip redirects the motion instead of restarting it.
|
|
5
|
+
// `data-ds-placement` (stamped by `prepareOverlayEnter()` before attach) makes the panel enter from the
|
|
6
|
+
// trigger edge. The keyframe name never changes with placement, so a mid-scroll CDK flip redirects the
|
|
7
|
+
// motion instead of restarting it.
|
|
13
8
|
//
|
|
14
|
-
// Duration
|
|
15
|
-
//
|
|
16
|
-
// animation; at 0s `animationend` is not reliably delivered, and `disposeWithLeave`'s
|
|
17
|
-
// 400 ms timer is what tears the pane down - which is why `.ds-leaving` is inert.
|
|
9
|
+
// Duration and easing are longhands so they outrank a consumer keyframe's own timing. Reduced motion
|
|
10
|
+
// zeroes the duration; at 0s `animationend` is unreliable, and `disposeWithLeave`'s 400 ms timer tears the pane down.
|
|
18
11
|
|
|
19
12
|
.cdk-overlay-pane.ds-overlay-pane {
|
|
20
13
|
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-scale-in);
|
|
@@ -47,8 +40,7 @@
|
|
|
47
40
|
--_overlay-enter-origin: center left;
|
|
48
41
|
}
|
|
49
42
|
|
|
50
|
-
// A chart tooltip reopens on every mark
|
|
51
|
-
// settles, so a hop reads as the swatch drifting into place. It fades instead.
|
|
43
|
+
// A chart tooltip reopens on every mark crossed; a scale would shift its rows, so it fades.
|
|
52
44
|
&.ds-chart-tooltip-pane {
|
|
53
45
|
--_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-fade-in);
|
|
54
46
|
}
|
|
@@ -64,16 +56,8 @@
|
|
|
64
56
|
transform-origin: var(--_overlay-enter-origin);
|
|
65
57
|
}
|
|
66
58
|
|
|
67
|
-
/*
|
|
68
|
-
which `disposeWithLeave` marks by adding `ds-leaving`. Picking an option
|
|
69
|
-
still closes instantly: a fade on a deliberate choice reads as the panel
|
|
70
|
-
lagging behind it, which is why the old unconditional leave was cut. Opacity
|
|
71
|
-
only, no travel: a dismissal has nowhere to travel to, and movement would
|
|
72
|
-
re-add exactly the lag this avoids. Reduced motion zeroes the duration at
|
|
73
|
-
`:root`; at 0s `animationend` is not reliably delivered, and `disposeWithLeave`'s
|
|
74
|
-
400 ms timer tears the pane down. */
|
|
59
|
+
/* Ambient dismiss only (Escape, outside press, scroll), marked by `disposeWithLeave` adding `ds-leaving`. Opacity only, no travel. */
|
|
75
60
|
&.ds-leaving {
|
|
76
|
-
/* A fading panel must not swallow the click aimed at what is behind it. */
|
|
77
61
|
pointer-events: none;
|
|
78
62
|
|
|
79
63
|
> * {
|
|
@@ -85,24 +69,17 @@
|
|
|
85
69
|
}
|
|
86
70
|
}
|
|
87
71
|
|
|
88
|
-
/* Global
|
|
89
|
-
is renamed by emulated encapsulation. */
|
|
72
|
+
/* Global: emulated encapsulation renames keyframes declared in a component stylesheet. */
|
|
90
73
|
@keyframes ds-overlay-out {
|
|
91
74
|
to {
|
|
92
75
|
opacity: 0;
|
|
93
76
|
}
|
|
94
77
|
}
|
|
95
78
|
|
|
96
|
-
/*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
WCAG 1.4.13 still holds. Hoverable: moving onto the panel does not dismiss it, because the
|
|
102
|
-
pointer either stays on the mark under it or the grace period in `chart-active-mark.ts` carries
|
|
103
|
-
the gap. Dismissible: Escape. Persistent: the panel stays while the mark is hovered, and a press
|
|
104
|
-
pins it where the chart offers pinning - a pinned pane takes the pointer again so its text can be
|
|
105
|
-
selected. Drop the grace and the flicker returns. */
|
|
79
|
+
/* Inert: the pane covers neighbouring marks, and a pointer-taking pane hides the mark underneath from the
|
|
80
|
+
pointer so the panel names a stale segment. WCAG 1.4.13 still holds: hoverable (the pointer stays on the
|
|
81
|
+
mark, or the hover grace period carries the gap), dismissible (Escape), persistent (stays while the mark
|
|
82
|
+
is hovered; a pinned pane takes the pointer again so its text can be selected). */
|
|
106
83
|
.cdk-overlay-pane.ds-chart-tooltip-pane {
|
|
107
84
|
pointer-events: none;
|
|
108
85
|
}
|