@ndwnu/design-system 5.1.0 → 7.0.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/assets/icons.ts +83 -0
- package/fesm2022/ndwnu-design-system.mjs +1052 -1000
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/index.d.ts +2 -5
- package/lib/components/alert/alert.model.d.ts +1 -0
- package/lib/components/banner/banner.model.d.ts +1 -0
- package/lib/components/card/card-header/card-header.component.d.ts +11 -0
- package/lib/components/card/card.animation.d.ts +1 -0
- package/lib/components/card/card.component.d.ts +19 -0
- package/{components → lib/components}/dropdown/dropdown.component.d.ts +1 -1
- package/{components → lib/components}/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.d.ts +3 -3
- package/lib/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.d.ts +19 -0
- package/lib/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts +5 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.d.ts +5 -6
- package/{components → lib/components}/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.d.ts +12 -14
- package/{components → lib/components}/form-field/autosuggest/autosuggest.directive.d.ts +7 -8
- package/{components → lib/components}/form-field/checkbox/checkbox.component.d.ts +3 -2
- package/{components → lib/components}/form-field/clear-search-button/clear-search-button.component.d.ts +3 -2
- package/lib/components/form-field/clear-search-button/index.d.ts +1 -0
- package/{components → lib/components}/form-field/file-upload/file-upload.component.d.ts +8 -7
- package/{components → lib/components}/form-field/form-field.component.d.ts +2 -1
- package/lib/components/form-field/input/input.model.d.ts +1 -0
- package/{components → lib/components}/form-field/input-button/input-button.component.d.ts +1 -1
- package/{components → lib/components}/form-field/month-input/month-input.component.d.ts +8 -7
- package/{components → lib/components}/form-field/option-group/option-group.component.d.ts +7 -4
- package/lib/components/form-field/picker-button/index.d.ts +1 -0
- package/{components → lib/components}/form-field/picker-button/picker-button.component.d.ts +1 -2
- package/{components → lib/components}/form-field/textarea/auto-grow.directive.d.ts +6 -3
- package/{components → lib/components}/form-field/textarea/index.d.ts +1 -0
- package/lib/components/form-field/textarea/max-char.directive.d.ts +15 -0
- package/{components → lib/components}/icon/action-icon/action-icon.component.d.ts +3 -3
- package/lib/components/icon/icon.component.d.ts +6 -0
- package/{components → lib/components}/layout/layout.component.d.ts +2 -2
- package/{components → lib/components}/main-navigation/main-navigation.component.d.ts +2 -10
- package/{components → lib/components}/main-navigation/main-navigation.model.d.ts +1 -4
- package/{components → lib/components}/modal/modal.component.d.ts +1 -2
- package/{components → lib/components}/multi-select/multi-select.component.d.ts +3 -3
- package/lib/components/pill/pill.model.d.ts +1 -0
- package/{components → lib/components}/router-breadcrumbs/router-breadcrumbs.component.d.ts +2 -2
- package/lib/components/tab/tab.component.d.ts +17 -0
- package/{components → lib/components}/tab-group/tab-group.component.d.ts +7 -5
- package/{components → lib/components}/tag/tag.component.d.ts +2 -2
- package/{components → lib/components}/toast/toast.component.d.ts +4 -4
- package/package.json +14 -10
- package/styles/base/_colors.scss +234 -0
- package/styles/base/_typography.scss +135 -0
- package/styles/base/_variables.scss +79 -0
- package/styles/base/colors.stories.model.ts +143 -0
- package/styles/base/colors.stories.ts +14 -0
- package/styles/base/colors.stories.utils.ts +58 -0
- package/styles/base/index.scss +3 -0
- package/styles/base/typography.stories.ts +116 -0
- package/styles/components/_button.scss +133 -0
- package/styles/components/_card.scss +3 -0
- package/styles/components/_divider.scss +12 -0
- package/styles/components/_dropdown.scss +8 -0
- package/styles/components/_filter-button.scss +39 -0
- package/styles/components/_input.scss +198 -0
- package/styles/components/_label.scss +23 -0
- package/styles/components/_link.scss +35 -0
- package/styles/components/_menu-button.scss +38 -0
- package/styles/components/_popover.scss +19 -0
- package/styles/components/_summary-card.scss +227 -0
- package/styles/components/divider.stories.ts +80 -0
- package/styles/components/index.scss +11 -0
- package/styles/components/link.stories.ts +154 -0
- package/styles/index.scss +4 -0
- package/styles/layout/_grid.scss +57 -0
- package/styles/layout/_overlay.scss +7 -0
- package/styles/layout/grid.stories.ts +117 -0
- package/styles/layout/index.scss +2 -0
- package/styles/storybook/_core.scss +60 -0
- package/styles/storybook/_reset.scss +20 -0
- package/styles/storybook/index.scss +17 -0
- package/styles/storybook/overrides/_buttons.scss +95 -0
- package/styles/storybook/overrides/_code-previews.scss +97 -0
- package/styles/storybook/overrides/_content.scss +24 -0
- package/styles/storybook/overrides/_headers.scss +31 -0
- package/styles/storybook/overrides/_layout.scss +44 -0
- package/styles/storybook/overrides/_table.scss +112 -0
- package/styles/storybook/overrides/index.scss +6 -0
- package/styles/storybook/overrides.css +343 -0
- package/styles/utils/_screenreader.scss +18 -0
- package/styles/utils/index.scss +1 -0
- package/assets/fonts/ObjectSans-Bold.woff2 +0 -0
- package/assets/fonts/ObjectSans-Regular.woff2 +0 -0
- package/components/alert/alert.model.d.ts +0 -6
- package/components/banner/banner.model.d.ts +0 -4
- package/components/card/card-header/card-header.component.d.ts +0 -5
- package/components/card/card.component.d.ts +0 -5
- package/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.d.ts +0 -19
- package/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.d.ts +0 -2
- package/components/form-field/input/input.model.d.ts +0 -11
- package/components/icon/icon.component.d.ts +0 -13
- package/components/pill/pill.model.d.ts +0 -8
- package/components/tab/tab.component.d.ts +0 -9
- package/core/style/styles.css +0 -1360
- package/core/style/styles.scss +0 -1360
- package/esm2022/components/accordion/accordion.component.mjs +0 -32
- package/esm2022/components/accordion/accordion.service.mjs +0 -17
- package/esm2022/components/accordion/index.mjs +0 -3
- package/esm2022/components/alert/alert.component.mjs +0 -42
- package/esm2022/components/alert/alert.model.mjs +0 -8
- package/esm2022/components/alert/index.mjs +0 -3
- package/esm2022/components/badge/badge.component.mjs +0 -21
- package/esm2022/components/badge/index.mjs +0 -2
- package/esm2022/components/banner/banner.component.mjs +0 -61
- package/esm2022/components/banner/banner.model.mjs +0 -6
- package/esm2022/components/banner/index.mjs +0 -3
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +0 -15
- package/esm2022/components/breadcrumb/index.mjs +0 -2
- package/esm2022/components/breadcrumb-group/breadcrumb-group.component.mjs +0 -21
- package/esm2022/components/breadcrumb-group/index.mjs +0 -2
- package/esm2022/components/button/button.directive.mjs +0 -37
- package/esm2022/components/button/index.mjs +0 -2
- package/esm2022/components/card/card-content/card-content.component.mjs +0 -11
- package/esm2022/components/card/card-content/index.mjs +0 -2
- package/esm2022/components/card/card-footer/card-footer.component.mjs +0 -11
- package/esm2022/components/card/card-footer/index.mjs +0 -2
- package/esm2022/components/card/card-header/card-header.component.mjs +0 -11
- package/esm2022/components/card/card-header/index.mjs +0 -2
- package/esm2022/components/card/card.component.mjs +0 -11
- package/esm2022/components/card/index.mjs +0 -15
- package/esm2022/components/collapsible/collapsible.animation.mjs +0 -26
- package/esm2022/components/collapsible/collapsible.component.mjs +0 -34
- package/esm2022/components/collapsible/index.mjs +0 -2
- package/esm2022/components/dashboard-card/dashboard-card.component.mjs +0 -32
- package/esm2022/components/dashboard-card/index.mjs +0 -2
- package/esm2022/components/dropdown/dropdown.component.mjs +0 -57
- package/esm2022/components/dropdown/index.mjs +0 -2
- package/esm2022/components/form-field/autosuggest/autosuggest-add-option/autosuggest-add-option.component.mjs +0 -29
- package/esm2022/components/form-field/autosuggest/autosuggest-add-option/index.mjs +0 -2
- package/esm2022/components/form-field/autosuggest/autosuggest-option/autosuggest-option.component.mjs +0 -45
- package/esm2022/components/form-field/autosuggest/autosuggest-option/autosuggest-option.model.mjs +0 -2
- package/esm2022/components/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.mjs +0 -85
- package/esm2022/components/form-field/autosuggest/autosuggest-option/index.mjs +0 -3
- package/esm2022/components/form-field/autosuggest/autosuggest-panel/autosuggest-panel.component.mjs +0 -82
- package/esm2022/components/form-field/autosuggest/autosuggest.directive.mjs +0 -411
- package/esm2022/components/form-field/autosuggest/index.mjs +0 -6
- package/esm2022/components/form-field/autosuggest/match-bold.pipe.mjs +0 -21
- package/esm2022/components/form-field/checkbox/checkbox.component.mjs +0 -62
- package/esm2022/components/form-field/checkbox/index.mjs +0 -2
- package/esm2022/components/form-field/checkbox-group/checkbox-group.component.mjs +0 -15
- package/esm2022/components/form-field/checkbox-group/index.mjs +0 -2
- package/esm2022/components/form-field/clear-search-button/clear-search-button.component.mjs +0 -37
- package/esm2022/components/form-field/error/error.component.mjs +0 -12
- package/esm2022/components/form-field/error/index.mjs +0 -2
- package/esm2022/components/form-field/file-upload/file-upload-text.interface.mjs +0 -2
- package/esm2022/components/form-field/file-upload/file-upload.component.mjs +0 -172
- package/esm2022/components/form-field/file-upload/index.mjs +0 -3
- package/esm2022/components/form-field/form-field.component.mjs +0 -81
- package/esm2022/components/form-field/form-field.constant.mjs +0 -2
- package/esm2022/components/form-field/form-field.model.mjs +0 -8
- package/esm2022/components/form-field/index.mjs +0 -17
- package/esm2022/components/form-field/info/index.mjs +0 -2
- package/esm2022/components/form-field/info/info.component.mjs +0 -11
- package/esm2022/components/form-field/input/index.mjs +0 -3
- package/esm2022/components/form-field/input/input.directive.mjs +0 -68
- package/esm2022/components/form-field/input/input.model.mjs +0 -13
- package/esm2022/components/form-field/input-button/index.mjs +0 -2
- package/esm2022/components/form-field/input-button/input-button.component.mjs +0 -23
- package/esm2022/components/form-field/input-icon/index.mjs +0 -2
- package/esm2022/components/form-field/input-icon/input-icon.component.mjs +0 -12
- package/esm2022/components/form-field/month-input/index.mjs +0 -2
- package/esm2022/components/form-field/month-input/month-input-utils.mjs +0 -13
- package/esm2022/components/form-field/month-input/month-input.component.mjs +0 -154
- package/esm2022/components/form-field/option-group/index.mjs +0 -4
- package/esm2022/components/form-field/option-group/option-group.component.mjs +0 -64
- package/esm2022/components/form-field/option-group/option-group.model.mjs +0 -2
- package/esm2022/components/form-field/option-group/option.component.mjs +0 -22
- package/esm2022/components/form-field/picker-button/picker-button.component.mjs +0 -50
- package/esm2022/components/form-field/radio-button/index.mjs +0 -2
- package/esm2022/components/form-field/radio-button/radio-button.component.mjs +0 -63
- package/esm2022/components/form-field/radio-group/index.mjs +0 -2
- package/esm2022/components/form-field/radio-group/radio-group.component.mjs +0 -70
- package/esm2022/components/form-field/success/index.mjs +0 -2
- package/esm2022/components/form-field/success/success.component.mjs +0 -12
- package/esm2022/components/form-field/textarea/auto-grow.directive.mjs +0 -45
- package/esm2022/components/form-field/textarea/index.mjs +0 -2
- package/esm2022/components/icon/action-icon/action-icon.component.mjs +0 -40
- package/esm2022/components/icon/action-icon/index.mjs +0 -2
- package/esm2022/components/icon/icon.component.mjs +0 -36
- package/esm2022/components/icon/index.mjs +0 -3
- package/esm2022/components/index.mjs +0 -29
- package/esm2022/components/layout/index.mjs +0 -2
- package/esm2022/components/layout/layout.component.mjs +0 -23
- package/esm2022/components/layout-banners/index.mjs +0 -2
- package/esm2022/components/layout-banners/layout-banners.component.mjs +0 -11
- package/esm2022/components/loader/index.mjs +0 -2
- package/esm2022/components/loader/loader.component.mjs +0 -11
- package/esm2022/components/main-navigation/index.mjs +0 -3
- package/esm2022/components/main-navigation/main-navigation.component.mjs +0 -165
- package/esm2022/components/main-navigation/main-navigation.imports.mjs +0 -20
- package/esm2022/components/main-navigation/main-navigation.model.mjs +0 -6
- package/esm2022/components/main-navigation-menu/index.mjs +0 -2
- package/esm2022/components/main-navigation-menu/main-navigation-menu.component.mjs +0 -20
- package/esm2022/components/modal/index.mjs +0 -16
- package/esm2022/components/modal/modal-content/index.mjs +0 -2
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -11
- package/esm2022/components/modal/modal-footer/index.mjs +0 -2
- package/esm2022/components/modal/modal-footer/modal-footer.component.mjs +0 -11
- package/esm2022/components/modal/modal-header/index.mjs +0 -2
- package/esm2022/components/modal/modal-header/modal-header.component.mjs +0 -18
- package/esm2022/components/modal/modal-ref.mjs +0 -4
- package/esm2022/components/modal/modal.component.mjs +0 -19
- package/esm2022/components/modal/modal.service.mjs +0 -31
- package/esm2022/components/multi-select/checkbox-data.interface.mjs +0 -2
- package/esm2022/components/multi-select/index.mjs +0 -4
- package/esm2022/components/multi-select/multi-select.component.mjs +0 -76
- package/esm2022/components/multi-select/select-all-text.interface.mjs +0 -2
- package/esm2022/components/pill/index.mjs +0 -3
- package/esm2022/components/pill/pill.component.mjs +0 -26
- package/esm2022/components/pill/pill.model.mjs +0 -10
- package/esm2022/components/popover/index.mjs +0 -2
- package/esm2022/components/popover/popover-trigger.directive.mjs +0 -182
- package/esm2022/components/router-breadcrumbs/index.mjs +0 -2
- package/esm2022/components/router-breadcrumbs/router-breadcrumbs.component.mjs +0 -37
- package/esm2022/components/summary-card/index.mjs +0 -11
- package/esm2022/components/summary-card/summary-card-action/summary-card-action.component.mjs +0 -23
- package/esm2022/components/summary-card/summary-card-actions/summary-card-actions.component.mjs +0 -26
- package/esm2022/components/summary-card/summary-card-avatar/summary-card-avatar.component.mjs +0 -25
- package/esm2022/components/summary-card/summary-card-content/summary-card-content.component.mjs +0 -19
- package/esm2022/components/summary-card/summary-card-header/summary-card-header.component.mjs +0 -13
- package/esm2022/components/summary-card/summary-card-subtitle/summary-card-subtitle.component.mjs +0 -11
- package/esm2022/components/summary-card/summary-card-tag/summary-card-tag.component.mjs +0 -20
- package/esm2022/components/summary-card/summary-card-tags/summary-card-tags.component.mjs +0 -20
- package/esm2022/components/summary-card/summary-card.component.mjs +0 -14
- package/esm2022/components/summary-card/summary-card.model.mjs +0 -2
- package/esm2022/components/tab/index.mjs +0 -2
- package/esm2022/components/tab/tab.component.mjs +0 -32
- package/esm2022/components/tab-group/index.mjs +0 -2
- package/esm2022/components/tab-group/tab-group.component.mjs +0 -34
- package/esm2022/components/tag/index.mjs +0 -2
- package/esm2022/components/tag/tag.component.mjs +0 -29
- package/esm2022/components/toast/index.mjs +0 -3
- package/esm2022/components/toast/toast.component.mjs +0 -77
- package/esm2022/components/toast/toast.service.mjs +0 -43
- package/esm2022/components/tooltip/index.mjs +0 -3
- package/esm2022/components/tooltip/tooltip.component.mjs +0 -16
- package/esm2022/components/tooltip/tooltip.directive.mjs +0 -89
- package/esm2022/models/aria.model.mjs +0 -2
- package/esm2022/models/index.mjs +0 -2
- package/esm2022/ndwnu-design-system.mjs +0 -5
- package/esm2022/public-api.mjs +0 -5
- package/public-api.d.ts +0 -1
- package/assets/images/{ndw-logo-short.svg → logos/ndw-logo-short.svg} +0 -0
- package/assets/images/{ndw-logo.svg → logos/ndw-logo.svg} +0 -0
- package/assets/images/{nwb-logo-short.svg → logos/nwb-logo-short.svg} +0 -0
- package/assets/images/{nwb-logo.svg → logos/nwb-logo.svg} +0 -0
- package/{components → lib/components}/accordion/accordion.component.d.ts +0 -0
- package/{components → lib/components}/accordion/accordion.service.d.ts +0 -0
- package/{components → lib/components}/accordion/index.d.ts +0 -0
- package/{components → lib/components}/alert/alert.component.d.ts +0 -0
- package/{components → lib/components}/alert/index.d.ts +0 -0
- package/{components → lib/components}/badge/badge.component.d.ts +0 -0
- package/{components → lib/components}/badge/index.d.ts +0 -0
- package/{components → lib/components}/banner/banner.component.d.ts +0 -0
- package/{components → lib/components}/banner/index.d.ts +0 -0
- package/{components → lib/components}/breadcrumb/breadcrumb.component.d.ts +0 -0
- package/{components → lib/components}/breadcrumb/index.d.ts +0 -0
- package/{components → lib/components}/breadcrumb-group/breadcrumb-group.component.d.ts +0 -0
- package/{components → lib/components}/breadcrumb-group/index.d.ts +0 -0
- package/{components → lib/components}/button/button.directive.d.ts +0 -0
- package/{components → lib/components}/button/index.d.ts +0 -0
- package/{components → lib/components}/card/card-content/card-content.component.d.ts +0 -0
- package/{components → lib/components}/card/card-content/index.d.ts +0 -0
- package/{components → lib/components}/card/card-footer/card-footer.component.d.ts +0 -0
- package/{components → lib/components}/card/card-footer/index.d.ts +0 -0
- package/{components → lib/components}/card/card-header/index.d.ts +0 -0
- package/{components → lib/components}/card/index.d.ts +0 -0
- package/{components → lib/components}/collapsible/collapsible.animation.d.ts +0 -0
- package/{components → lib/components}/collapsible/collapsible.component.d.ts +0 -0
- package/{components → lib/components}/collapsible/index.d.ts +0 -0
- package/{components → lib/components}/dashboard-card/dashboard-card.component.d.ts +0 -0
- package/{components → lib/components}/dashboard-card/index.d.ts +0 -0
- package/{components → lib/components}/dropdown/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-add-option/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/autosuggest-option/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/index.d.ts +0 -0
- package/{components → lib/components}/form-field/autosuggest/match-bold.pipe.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox/index.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox-group/checkbox-group.component.d.ts +0 -0
- package/{components → lib/components}/form-field/checkbox-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/error/error.component.d.ts +0 -0
- package/{components → lib/components}/form-field/error/index.d.ts +0 -0
- package/{components → lib/components}/form-field/file-upload/file-upload-text.interface.d.ts +0 -0
- package/{components → lib/components}/form-field/file-upload/index.d.ts +0 -0
- package/{components → lib/components}/form-field/form-field.constant.d.ts +0 -0
- package/{components → lib/components}/form-field/form-field.model.d.ts +0 -0
- package/{components → lib/components}/form-field/index.d.ts +0 -0
- package/{components → lib/components}/form-field/info/index.d.ts +0 -0
- package/{components → lib/components}/form-field/info/info.component.d.ts +0 -0
- package/{components → lib/components}/form-field/input/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input/input.directive.d.ts +0 -0
- package/{components → lib/components}/form-field/input-button/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input-icon/index.d.ts +0 -0
- package/{components → lib/components}/form-field/input-icon/input-icon.component.d.ts +0 -0
- package/{components → lib/components}/form-field/month-input/index.d.ts +0 -0
- package/{components → lib/components}/form-field/month-input/month-input-utils.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/option-group.model.d.ts +0 -0
- package/{components → lib/components}/form-field/option-group/option.component.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-button/index.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-button/radio-button.component.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-group/index.d.ts +0 -0
- package/{components → lib/components}/form-field/radio-group/radio-group.component.d.ts +0 -0
- package/{components → lib/components}/form-field/success/index.d.ts +0 -0
- package/{components → lib/components}/form-field/success/success.component.d.ts +0 -0
- package/{components → lib/components}/icon/action-icon/index.d.ts +0 -0
- package/{components → lib/components}/icon/index.d.ts +0 -0
- package/{components → lib/components}/index.d.ts +0 -0
- package/{components → lib/components}/layout/index.d.ts +0 -0
- package/{components → lib/components}/layout-banners/index.d.ts +0 -0
- package/{components → lib/components}/layout-banners/layout-banners.component.d.ts +0 -0
- package/{components → lib/components}/loader/index.d.ts +0 -0
- package/{components → lib/components}/loader/loader.component.d.ts +0 -0
- package/{components → lib/components}/main-navigation/index.d.ts +0 -0
- package/{components → lib/components}/main-navigation/main-navigation.imports.d.ts +0 -0
- package/{components → lib/components}/main-navigation-menu/index.d.ts +0 -0
- package/{components → lib/components}/main-navigation-menu/main-navigation-menu.component.d.ts +0 -0
- package/{components → lib/components}/modal/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-content/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-content/modal-content.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-footer/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-footer/modal-footer.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-header/index.d.ts +0 -0
- package/{components → lib/components}/modal/modal-header/modal-header.component.d.ts +0 -0
- package/{components → lib/components}/modal/modal-ref.d.ts +0 -0
- package/{components → lib/components}/modal/modal.service.d.ts +0 -0
- package/{components → lib/components}/multi-select/checkbox-data.interface.d.ts +0 -0
- package/{components → lib/components}/multi-select/index.d.ts +0 -0
- package/{components → lib/components}/multi-select/select-all-text.interface.d.ts +0 -0
- package/{components → lib/components}/pill/index.d.ts +0 -0
- package/{components → lib/components}/pill/pill.component.d.ts +0 -0
- package/{components → lib/components}/popover/index.d.ts +0 -0
- package/{components → lib/components}/popover/popover-trigger.directive.d.ts +0 -0
- package/{components → lib/components}/router-breadcrumbs/index.d.ts +0 -0
- package/{components → lib/components}/summary-card/index.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-action/summary-card-action.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-actions/summary-card-actions.component.d.ts +1 -1
- package/{components → lib/components}/summary-card/summary-card-avatar/summary-card-avatar.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-content/summary-card-content.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-header/summary-card-header.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-subtitle/summary-card-subtitle.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-tag/summary-card-tag.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card-tags/summary-card-tags.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card.component.d.ts +0 -0
- package/{components → lib/components}/summary-card/summary-card.model.d.ts +0 -0
- package/{components → lib/components}/tab/index.d.ts +0 -0
- package/{components → lib/components}/tab-group/index.d.ts +0 -0
- package/{components → lib/components}/tag/index.d.ts +0 -0
- package/{components → lib/components}/toast/index.d.ts +0 -0
- package/{components → lib/components}/toast/toast.service.d.ts +0 -0
- package/{components → lib/components}/tooltip/index.d.ts +0 -0
- package/{components → lib/components}/tooltip/tooltip.component.d.ts +0 -0
- package/{components → lib/components}/tooltip/tooltip.directive.d.ts +1 -1
- /package/{models → lib/models}/aria.model.d.ts +0 -0
- /package/{models → lib/models}/index.d.ts +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { alphas, colors, header } from './colors.stories.utils';
|
|
2
|
+
|
|
3
|
+
interface ColorValue {
|
|
4
|
+
value?: number;
|
|
5
|
+
subName?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ColorGroup {
|
|
9
|
+
name: string;
|
|
10
|
+
colors: ColorValue[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const primary: ColorGroup = {
|
|
14
|
+
name: 'Primary',
|
|
15
|
+
colors: [
|
|
16
|
+
{ value: 50 },
|
|
17
|
+
{ value: 100 },
|
|
18
|
+
{ value: 200 },
|
|
19
|
+
{ value: 300 },
|
|
20
|
+
{ value: 400 },
|
|
21
|
+
{ value: 500 },
|
|
22
|
+
{ value: 600 },
|
|
23
|
+
{ value: 700 },
|
|
24
|
+
{ value: 800 },
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const secondary: ColorGroup = {
|
|
29
|
+
name: 'Secondary',
|
|
30
|
+
colors: [
|
|
31
|
+
{ value: 50 },
|
|
32
|
+
{ value: 100 },
|
|
33
|
+
{ value: 200 },
|
|
34
|
+
{ value: 300 },
|
|
35
|
+
{ value: 400 },
|
|
36
|
+
{ value: 500 },
|
|
37
|
+
{ value: 600 },
|
|
38
|
+
{ value: 700 },
|
|
39
|
+
],
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const tertiary: ColorGroup = {
|
|
43
|
+
name: 'Tertiary',
|
|
44
|
+
colors: [{ value: 400 }, { value: 500 }],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const grey: ColorGroup = {
|
|
48
|
+
name: 'Grey',
|
|
49
|
+
colors: [
|
|
50
|
+
{ value: 100 },
|
|
51
|
+
{ value: 200 },
|
|
52
|
+
{ value: 300 },
|
|
53
|
+
{ value: 400 },
|
|
54
|
+
{ value: 500 },
|
|
55
|
+
{ value: 600 },
|
|
56
|
+
{ value: 700 },
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const white: ColorGroup = {
|
|
61
|
+
name: 'White',
|
|
62
|
+
colors: [{ value: undefined }],
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const links: ColorGroup = {
|
|
66
|
+
name: 'Link',
|
|
67
|
+
colors: [{ value: 400 }, { value: 500 }],
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const positive: ColorGroup = {
|
|
71
|
+
name: 'Positive',
|
|
72
|
+
colors: [{ value: 100 }, { value: 500 }, { value: 600 }],
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const warning: ColorGroup = {
|
|
76
|
+
name: 'Warning',
|
|
77
|
+
colors: [{ value: 100 }, { value: 500 }, { value: 600 }],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const info: ColorGroup = {
|
|
81
|
+
name: 'Info',
|
|
82
|
+
colors: [{ value: 100 }, { value: 500 }],
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const alternative: ColorGroup = {
|
|
86
|
+
name: 'Alternative',
|
|
87
|
+
colors: [{ value: 100 }, { value: 500 }],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const critical: ColorGroup = {
|
|
91
|
+
name: 'Critical',
|
|
92
|
+
colors: [{ value: 100 }, { value: 200 }, { value: 300 }, { value: 500 }],
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const alphaValues = ['Black-007', 'Black-015', 'Black-040', 'Primary-007', 'Primary-015'];
|
|
96
|
+
|
|
97
|
+
// Todo - Update color values when switching between themes
|
|
98
|
+
export const template = `
|
|
99
|
+
<div class="sb">
|
|
100
|
+
<div class="sb_content overview colors">
|
|
101
|
+
<section>
|
|
102
|
+
<h2 class="ndw-heading-md">Primary</h2>
|
|
103
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
104
|
+
${colors(primary)}
|
|
105
|
+
</section>
|
|
106
|
+
<section>
|
|
107
|
+
<h2 class="ndw-heading-md">Secondary</h2>
|
|
108
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
109
|
+
${colors(secondary)}
|
|
110
|
+
</section>
|
|
111
|
+
<section>
|
|
112
|
+
<h2 class="ndw-heading-md">Tertiary</h2>
|
|
113
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
114
|
+
${colors(tertiary)}
|
|
115
|
+
</section>
|
|
116
|
+
<section>
|
|
117
|
+
<h2 class="ndw-heading-md">Grey</h2>
|
|
118
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
119
|
+
${colors(white)}
|
|
120
|
+
${colors(grey)}
|
|
121
|
+
</section>
|
|
122
|
+
<section>
|
|
123
|
+
<h2 class="ndw-heading-md">Links</h2>
|
|
124
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
125
|
+
${colors(links)}
|
|
126
|
+
</section>
|
|
127
|
+
<section>
|
|
128
|
+
<h2 class="ndw-heading-md">Notifications</h2>
|
|
129
|
+
${header(['Color', 'Name', 'Value', 'Variable'])}
|
|
130
|
+
${colors(positive)}
|
|
131
|
+
${colors(info)}
|
|
132
|
+
${colors(warning)}
|
|
133
|
+
${colors(critical)}
|
|
134
|
+
${colors(alternative)}
|
|
135
|
+
</section>
|
|
136
|
+
<section>
|
|
137
|
+
<h2 class="ndw-heading-md">Alpha</h2>
|
|
138
|
+
${header(['Alpha', 'Name', 'Value', 'Variable'])}
|
|
139
|
+
${alphas(alphaValues)}
|
|
140
|
+
</section>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/angular';
|
|
2
|
+
|
|
3
|
+
import { template } from './colors.stories.model';
|
|
4
|
+
|
|
5
|
+
const meta: Meta = {
|
|
6
|
+
title: 'Core/Colors',
|
|
7
|
+
tags: ['autodocs', 'ndw', 'nwb', 'ntm'],
|
|
8
|
+
render: () => ({ template }),
|
|
9
|
+
} as Meta;
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj;
|
|
13
|
+
|
|
14
|
+
export const Colors: Story = {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ColorGroup } from './colors.stories.model';
|
|
2
|
+
|
|
3
|
+
export function header(values: string[]): string {
|
|
4
|
+
return `
|
|
5
|
+
<div class="header">
|
|
6
|
+
${values.map((value) => `<p class="ndw-heading-sm">${value}</p>`).join('')}
|
|
7
|
+
</div>
|
|
8
|
+
`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function colors(type: ColorGroup): string {
|
|
12
|
+
const style = getComputedStyle(document.body);
|
|
13
|
+
|
|
14
|
+
return `${type.colors
|
|
15
|
+
.map((color) => {
|
|
16
|
+
const subName = color.subName ? `-${color.subName}` : '';
|
|
17
|
+
const convertedValue = color.value && color.value < 100 ? `0${color.value}` : color.value;
|
|
18
|
+
const value = color.value ? `-${convertedValue}` : '';
|
|
19
|
+
const variable = `--ndw-color-${type.name}${subName}${value}`.toLowerCase();
|
|
20
|
+
|
|
21
|
+
return `
|
|
22
|
+
<div class="content">
|
|
23
|
+
<div
|
|
24
|
+
class="block"
|
|
25
|
+
style="background-color: var(${variable})"
|
|
26
|
+
></div>
|
|
27
|
+
<p>${type.name}${subName}${value}</p>
|
|
28
|
+
<p>${style.getPropertyValue(variable)}</p>
|
|
29
|
+
<p>${variable}</p>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
})
|
|
33
|
+
.join('')}`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function alphas(values: string[]): string {
|
|
37
|
+
const style = getComputedStyle(document.body);
|
|
38
|
+
|
|
39
|
+
return `
|
|
40
|
+
${values
|
|
41
|
+
.map((alpha) => {
|
|
42
|
+
const variable = `--ndw-alpha-${alpha.toLowerCase()}`;
|
|
43
|
+
|
|
44
|
+
return `
|
|
45
|
+
<div class="content">
|
|
46
|
+
<div
|
|
47
|
+
class="block"
|
|
48
|
+
style="background-color: var(--ndw-alpha-${alpha.toLowerCase()})"
|
|
49
|
+
></div>
|
|
50
|
+
<p>${alpha}</p>
|
|
51
|
+
<p>${style.getPropertyValue(variable)}</p>
|
|
52
|
+
<p>${variable}</p>
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
})
|
|
56
|
+
.join('')}
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/angular';
|
|
2
|
+
|
|
3
|
+
interface StoryArgs {
|
|
4
|
+
typographyList: Typography[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface Typography {
|
|
8
|
+
fontSize: string;
|
|
9
|
+
fontSizeInRem: string;
|
|
10
|
+
class: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const typographyList: Typography[] = [
|
|
14
|
+
{
|
|
15
|
+
fontSize: '40px',
|
|
16
|
+
fontSizeInRem: '2.5rem',
|
|
17
|
+
class: 'ndw-heading-xl',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
fontSize: '32px',
|
|
21
|
+
fontSizeInRem: '2rem',
|
|
22
|
+
class: 'ndw-heading-lg',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
fontSize: '24px',
|
|
26
|
+
fontSizeInRem: '1.5rem',
|
|
27
|
+
class: 'ndw-heading-md',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fontSize: '20px',
|
|
31
|
+
fontSizeInRem: '1.25rem',
|
|
32
|
+
class: 'ndw-heading-sm',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
fontSize: '18px',
|
|
36
|
+
fontSizeInRem: '1.125rem',
|
|
37
|
+
class: 'ndw-paragraph-bold-xl',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
fontSize: '18px',
|
|
41
|
+
fontSizeInRem: '1.125rem',
|
|
42
|
+
class: 'ndw-paragraph-xl',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
fontSize: '16px',
|
|
46
|
+
fontSizeInRem: '1rem',
|
|
47
|
+
class: 'ndw-paragraph-bold-lg',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
fontSize: '16px',
|
|
51
|
+
fontSizeInRem: '1rem',
|
|
52
|
+
class: 'ndw-paragraph-lg',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
fontSize: '13px',
|
|
56
|
+
fontSizeInRem: '0.8125rem',
|
|
57
|
+
class: 'ndw-paragraph-bold-md',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
fontSize: '13px',
|
|
61
|
+
fontSizeInRem: '0.8125rem',
|
|
62
|
+
class: 'ndw-paragraph-md',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
fontSize: '11px',
|
|
66
|
+
fontSizeInRem: '0.6875rem',
|
|
67
|
+
class: 'ndw-paragraph-bold-sm',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
fontSize: '11px',
|
|
71
|
+
fontSizeInRem: '0.6875rem',
|
|
72
|
+
class: 'ndw-paragraph-sm',
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
const args: StoryArgs = {
|
|
77
|
+
typographyList,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const meta: Meta<StoryArgs> = {
|
|
81
|
+
title: 'Core/Typography',
|
|
82
|
+
render: ({ typographyList, ...props }) => ({
|
|
83
|
+
props,
|
|
84
|
+
template: `
|
|
85
|
+
<div class="sb">
|
|
86
|
+
<div class="sb_content overview typography">
|
|
87
|
+
<section>
|
|
88
|
+
<div class="header">
|
|
89
|
+
<p>Font Size</p>
|
|
90
|
+
<p>Line Height</p>
|
|
91
|
+
<p>CSS Class</p>
|
|
92
|
+
</div>
|
|
93
|
+
${typographyList
|
|
94
|
+
.map(
|
|
95
|
+
(typography: Typography) => `
|
|
96
|
+
<div class="content ${typography.class}">
|
|
97
|
+
<span>${typography.fontSize} / ${typography.fontSizeInRem}</span>
|
|
98
|
+
<span>150%</span>
|
|
99
|
+
<span>.${typography.class}</span>
|
|
100
|
+
</div>
|
|
101
|
+
`
|
|
102
|
+
)
|
|
103
|
+
.join('')}
|
|
104
|
+
</section>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
`,
|
|
108
|
+
}),
|
|
109
|
+
} as Meta;
|
|
110
|
+
|
|
111
|
+
export default meta;
|
|
112
|
+
type Story = StoryObj<StoryArgs>;
|
|
113
|
+
|
|
114
|
+
export const Typography: Story = {
|
|
115
|
+
args,
|
|
116
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
button:not(:disabled) {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[ndwButton] {
|
|
6
|
+
align-items: center;
|
|
7
|
+
background-color: var(--ndw-color-background);
|
|
8
|
+
border: var(--ndw-border-size-sm) solid var(--ndw-color-background);
|
|
9
|
+
border-radius: var(--ndw-border-radius-sm);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
color: var(--ndw-color-foreground);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: flex;
|
|
14
|
+
font-family: var(--ndw-font-family-body);
|
|
15
|
+
font-size: var(--ndw-font-size-sm);
|
|
16
|
+
font-weight: var(--ndw-font-weight-regular);
|
|
17
|
+
gap: var(--ndw-spacing-2xs);
|
|
18
|
+
height: var(--ndw-spacing-xl);
|
|
19
|
+
justify-content: center;
|
|
20
|
+
padding: var(--ndw-spacing-2xs) var(--ndw-spacing-xs);
|
|
21
|
+
text-align: start;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
transition: (color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out);
|
|
24
|
+
width: fit-content;
|
|
25
|
+
|
|
26
|
+
ndw-icon {
|
|
27
|
+
font-size: var(--ndw-spacing-md);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ndw-loader {
|
|
31
|
+
height: var(--ndw-spacing-md);
|
|
32
|
+
width: var(--ndw-spacing-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--ndw-color-background-hover);
|
|
37
|
+
border-color: var(--ndw-color-background-hover);
|
|
38
|
+
color: var(--ndw-color-foreground-hover);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:active {
|
|
42
|
+
background-color: var(--ndw-color-background-active);
|
|
43
|
+
border-color: var(--ndw-color-background-active);
|
|
44
|
+
color: var(--ndw-color-foreground-active);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[secondary],
|
|
48
|
+
&[tertiary] {
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
color: var(--ndw-color-background);
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
color: var(--ndw-color-background);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:active {
|
|
57
|
+
color: var(--ndw-color-background);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[alternative] {
|
|
61
|
+
color: var(--ndw-color-text);
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: var(--ndw-alpha-black-007);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:active {
|
|
68
|
+
background-color: var(--ndw-alpha-black-015);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&[secondary] {
|
|
74
|
+
border-color: var(--ndw-color-background);
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: var(--ndw-alpha-primary-007);
|
|
78
|
+
border-color: var(--ndw-color-background-hover);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
background-color: var(--ndw-alpha-primary-015);
|
|
83
|
+
border-color: var(--ndw-color-background-active);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[alternative] {
|
|
87
|
+
border-color: var(--ndw-color-grey-300);
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
border-color: var(--ndw-color-grey-500);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:active {
|
|
94
|
+
border-color: var(--ndw-color-grey-700);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&[tertiary] {
|
|
100
|
+
border-color: transparent;
|
|
101
|
+
border-radius: var(--button-ter-border-radius, var(--ndw-border-radius-sm));
|
|
102
|
+
border-width: var(--button-ter-border-width, var(--ndw-spacing-3xs));
|
|
103
|
+
padding-inline: var(--button-ter-padding-inline, var(--ndw-spacing-xs));
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
background-color: var(--button-ter-bg-color-hover, var(--ndw-alpha-primary-007));
|
|
107
|
+
border-color: var(--button-ter-border-color-hover, transparent);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:active {
|
|
111
|
+
background-color: var(--button-ter-bg-color-active, var(--ndw-alpha-primary-015));
|
|
112
|
+
border-color: var(--button-ter-border-color-active, transparent);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&[extra-small] {
|
|
117
|
+
height: var(--ndw-spacing-lg);
|
|
118
|
+
padding-inline: var(--ndw-spacing-2xs);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&[large] {
|
|
122
|
+
height: var(--ndw-spacing-2xl);
|
|
123
|
+
padding-inline: var(--ndw-spacing-sm);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&[disabled] {
|
|
127
|
+
background-color: var(--ndw-color-background-disabled);
|
|
128
|
+
border-color: var(--ndw-color-background-disabled);
|
|
129
|
+
color: var(--ndw-color-text);
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
user-select: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[ndwButton] {
|
|
2
|
+
&[filter] {
|
|
3
|
+
background-color: var(--ndw-color-white);
|
|
4
|
+
border-color: var(--ndw-color-grey-300);
|
|
5
|
+
color: var(--ndw-color-grey-700);
|
|
6
|
+
height: var(--ndw-spacing-2xl);
|
|
7
|
+
|
|
8
|
+
ndw-icon.button-icon {
|
|
9
|
+
color: var(--ndw-color-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ndw-icon.prefix-icon {
|
|
13
|
+
color: var(--ndw-color-grey-300);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
border-color: var(--ndw-color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:active,
|
|
21
|
+
&:focus,
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
border-color: var(--ndw-color-info-500);
|
|
24
|
+
box-shadow: var(--ndw-elevation-info);
|
|
25
|
+
outline-color: var(--ndw-color-info-500);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[disabled] {
|
|
29
|
+
background-color: var(--ndw-color-grey-100);
|
|
30
|
+
color: var(--ndw-color-grey-500);
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
|
|
34
|
+
ndw-icon {
|
|
35
|
+
color: var(--ndw-color-grey-500);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|