@ids-group-ltd/ids-design-system 0.14.7 → 0.15.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 +735 -230
- package/components.md +64 -25
- package/docs/agent/INDEX.md +3 -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 +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +2 -2
- package/docs/agent/feedback/ds-loading-overlay.md +2 -0
- package/docs/agent/feedback/ds-skeleton.md +1 -1
- package/docs/agent/forms/ds-button.md +2 -2
- package/docs/agent/forms/ds-date-picker.md +1 -0
- package/docs/agent/foundations/global-helper-classes.md +3 -3
- 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 +10 -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.md +3 -2
- 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 +2 -2
- 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 +19 -7
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +195 -27
- 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 +23 -20
- 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 +2 -2
- 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 +2 -2
- 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 +9 -9
- 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 +2 -2
- 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 +2 -2
- 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 -8
- 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 +4 -3
- 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 +2 -2
- 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 +44 -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 +2 -2
- 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 +10 -4
- 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 +136 -29
- 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 +19 -7
- 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 +2 -2
- 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 +2 -2
- 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 +8 -6
- 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 +2 -2
- 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 +4 -4
- 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 +19 -5
- 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 +2 -2
- 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 +21 -7
- 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 +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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.mjs +223 -8
- 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 +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 +410 -145
- 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 +14 -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 +86 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +18 -81
- 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 +2 -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 +56 -0
- package/migrations/0.15.0.json +999 -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 +19 -1
- package/schematics/check-overrides/index.cjs +4 -11
- package/schematics/check-overrides/scan.cjs +12 -1
- package/schematics/check-overrides/surface.json +51 -10
- package/schematics/ng-add/index.cjs +7 -1
- package/stylelint/deprecated-tokens.json +2697 -0
- package/stylelint/index.mjs +94 -0
- package/stylelint/since-version.mjs +26 -0
- package/styles/_chart-motion.scss +3 -9
- 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/_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 +0 -1
- package/styles/_typography.scss +2 -0
- package/styles/_visually-hidden.scss +2 -0
- package/styles/ds.scss +0 -1
- package/themes/README.md +7 -7
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +4 -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 +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +40 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +8 -3
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +4 -3
- 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-funnel-chart.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +14 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +5 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +8 -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 +4 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +13 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +48 -17
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -1
|
@@ -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
|
+
}
|
|
@@ -42,12 +42,6 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@keyframes ds-chart-ring-sweep {
|
|
46
|
-
from {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
transform: rotate(-30deg) scale(0.96);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
45
|
|
|
52
46
|
// Needs `pathLength="1"` and `stroke-dasharray: 1` on the path, so one unit is the whole line.
|
|
53
47
|
@keyframes ds-chart-line-draw {
|
|
@@ -150,7 +144,7 @@
|
|
|
150
144
|
@include leaves($mark);
|
|
151
145
|
}
|
|
152
146
|
|
|
153
|
-
@mixin
|
|
147
|
+
@mixin settles-ring-in($ring) {
|
|
154
148
|
#{$ring} {
|
|
155
149
|
transform-box: fill-box;
|
|
156
150
|
transform-origin: center;
|
|
@@ -158,7 +152,7 @@
|
|
|
158
152
|
|
|
159
153
|
@include enters(
|
|
160
154
|
'#{$ring}',
|
|
161
|
-
ds-chart-
|
|
155
|
+
ds-chart-mark-settle,
|
|
162
156
|
var(--ds-motion-chart-mark-sweep-duration),
|
|
163
157
|
var(--ds-motion-chart-mark-grow-easing)
|
|
164
158
|
);
|
|
@@ -182,7 +176,7 @@
|
|
|
182
176
|
@mixin follows($detail, $after) {
|
|
183
177
|
@include enters(
|
|
184
178
|
'#{$detail}',
|
|
185
|
-
ds-chart-mark-
|
|
179
|
+
ds-chart-mark-fade-in,
|
|
186
180
|
var(--ds-motion-chart-mark-detail-duration),
|
|
187
181
|
var(--ds-motion-chart-mark-enter-easing),
|
|
188
182
|
$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 {
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// The pointer target of an icon-only control is at least `--hit-xs` (24px, WCAG 2.5.8), however small
|
|
2
|
+
// it is drawn. Include last in the control's own rule, after its own `:focus-visible`.
|
|
3
|
+
//
|
|
4
|
+
// The box keeps its size, so the layout around it and every fill it paints stay as drawn: a
|
|
5
|
+
// transparent `::before`, centred on the box and `--hit-xs` across where the box is smaller, takes the
|
|
6
|
+
// pointer, and the focus ring is drawn on that target. Under the default style the ring's outer edge
|
|
7
|
+
// is the target's edge; it follows `--focus-ring-offset`, so `[data-focus='edge']` draws it 2px and
|
|
8
|
+
// `[data-focus='inset']` 4px further in.
|
|
9
|
+
//
|
|
10
|
+
// `$ring-on-target: false` leaves the ring where the control's own rule draws it, for a control set a
|
|
11
|
+
// few pixels from running text, where a ring on the target would cover the letters beside it.
|
|
12
|
+
// `$position: null` for a control that is already positioned.
|
|
13
|
+
@mixin min-size($ring-on-target: true, $position: relative) {
|
|
14
|
+
@if $position {
|
|
15
|
+
position: $position;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::before {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 50%;
|
|
22
|
+
left: 50%;
|
|
23
|
+
width: max(100%, var(--hit-xs));
|
|
24
|
+
height: max(100%, var(--hit-xs));
|
|
25
|
+
translate: -50% -50%;
|
|
26
|
+
border-radius: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@if $ring-on-target {
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
outline-style: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:focus-visible::before {
|
|
35
|
+
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
36
|
+
outline-offset: calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));
|
|
37
|
+
animation: ds-focus-ring-in var(--duration-fast) var(--ease-standard);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/styles/_text-clip.scss
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
|
+
/* Every box that clips text goes through this file. A glyph reaches past its line box by half the
|
|
2
|
+
difference between the font's ascent plus descent and the line-height, and that depends on
|
|
3
|
+
whatever font the consumer sets, so no fixed margin on the block axis is safe for every font. */
|
|
4
|
+
|
|
5
|
+
/* `clip` does not make a scroll container, so the block axis stays `visible` and nothing moves. */
|
|
6
|
+
@mixin inline-axis {
|
|
7
|
+
overflow: clip visible;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* `text-overflow` applies under `clip` as it does under `hidden`. */
|
|
1
11
|
@mixin single-line-ellipsis {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
overflow: clip;
|
|
5
|
-
overflow-clip-margin: var(--space-1);
|
|
12
|
+
@include inline-axis;
|
|
13
|
+
|
|
6
14
|
text-overflow: ellipsis;
|
|
7
15
|
white-space: nowrap;
|
|
8
16
|
}
|
|
17
|
+
|
|
18
|
+
/* A clamp must clip the block axis to hide the lines after the last, and that edge runs through the
|
|
19
|
+
strip where a descender above and an accent below overlap. Only a line box as tall as the font's
|
|
20
|
+
own glyph box keeps both clear of it, and `normal` is the line-height every font defines so. */
|
|
21
|
+
@mixin line-clamp($lines) {
|
|
22
|
+
display: -webkit-box;
|
|
23
|
+
-webkit-box-orient: vertical;
|
|
24
|
+
-webkit-line-clamp: $lines;
|
|
25
|
+
overflow: clip;
|
|
26
|
+
line-height: normal;
|
|
27
|
+
}
|
package/styles/_tokens.scss
CHANGED
package/styles/_typography.scss
CHANGED
package/styles/ds.scss
CHANGED
package/themes/README.md
CHANGED
|
@@ -88,22 +88,22 @@ On-fill text is the literal `white`, or the theme-stable `--static-ink` where th
|
|
|
88
88
|
@use 'styles/toast-overlay';
|
|
89
89
|
@use 'styles/surface-motion';
|
|
90
90
|
@use 'styles/overlay-motion';
|
|
91
|
-
@use 'styles/skeleton-shimmer';
|
|
92
91
|
|
|
93
|
-
@include bp.emit-vars; //
|
|
92
|
+
@include bp.emit-vars; // writes --bp-*; not implied by the @use above
|
|
94
93
|
```
|
|
95
94
|
|
|
96
95
|
That is the whole list `styles/ds` forwards — it is written out rather than trailed off, because
|
|
97
96
|
the parts that are easy to leave out are the ones that fail silently:
|
|
98
97
|
|
|
99
98
|
- **`bp.emit-vars` is a separate call.** `@use 'styles/breakpoints'` alone emits nothing; the mixin
|
|
100
|
-
is what writes `--bp
|
|
101
|
-
|
|
102
|
-
default `size="xl"` resolves from `tokens` and looks fine, which is what makes the omission hard
|
|
103
|
-
to spot.
|
|
99
|
+
is what writes `--bp-*` for your own stylesheets. The library's components fall back to the same
|
|
100
|
+
values when it is missing.
|
|
104
101
|
- **`ds-color`** is what defines the `[ds-color="…"]` zones. Leave it out and the accent never
|
|
105
102
|
recolours — no error, just the primary palette everywhere.
|
|
106
|
-
- **`focus`**
|
|
103
|
+
- **`focus`** gives your own elements the base focus ring and carries the `[data-focus]` styles and
|
|
104
|
+
the ring's fade-in. The library's components draw their ring without it.
|
|
105
|
+
- **`reset`** sets the page: `border-box`, the body font, form controls in the inherited font. The
|
|
106
|
+
library's components set what they need of it on their own elements.
|
|
107
107
|
- **`dropdown-overlay` and `toast-overlay`** style panels that portal to `document.body`, which is
|
|
108
108
|
why they cannot live in a component's own stylesheet. Omitting them renders every dropdown,
|
|
109
109
|
picker panel and toast unstyled.
|
|
@@ -72,8 +72,10 @@ declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<
|
|
|
72
72
|
readonly filterWith: _angular_core.InputSignal<((option: AutocompleteOption<T>, query: string) => boolean) | "none">;
|
|
73
73
|
/** The typed query, on every change; pair with `filterWith="none"` for server-side search. */
|
|
74
74
|
readonly filterChange: _angular_core.OutputEmitterRef<string>;
|
|
75
|
-
/** Options are still being fetched
|
|
75
|
+
/** Options are still being fetched and the list reports `aria-busy`: with no options it shows
|
|
76
|
+
* placeholder rows, with options it keeps them under an overlay until they are replaced. */
|
|
76
77
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
78
|
+
protected readonly skeletonOptionWidths: string[];
|
|
77
79
|
/** The panel opened. */
|
|
78
80
|
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
79
81
|
/** The panel closed, for any reason - a pick, Escape, an outside click, a scroll. */
|
|
@@ -117,6 +119,7 @@ declare class AutocompleteComponent<T = unknown> extends DsControlValueAccessor<
|
|
|
117
119
|
protected readonly labelId: string;
|
|
118
120
|
protected optionId(index: number): string;
|
|
119
121
|
protected readonly activeDescendant: _angular_core.Signal<string | null>;
|
|
122
|
+
protected readonly listInert: _angular_core.Signal<boolean>;
|
|
120
123
|
protected readonly allOptions: _angular_core.Signal<readonly AutocompleteOption<T>[]>;
|
|
121
124
|
protected readonly filteredItems: _angular_core.Signal<AutocompleteItem<T>[]>;
|
|
122
125
|
protected readonly filteredOptions: _angular_core.Signal<readonly AutocompleteOption<T>[]>;
|