@daffodil/design 0.77.0 → 0.79.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/accordion/README.md +40 -2
- package/accordion/accordion/accordion/accordion.component.d.ts +1 -1
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +19 -8
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +1 -1
- package/accordion/accordion.d.ts +4 -0
- package/accordion/accordion.module.d.ts +6 -7
- package/accordion/examples/basic-accordion/basic-accordion.component.d.ts +1 -1
- package/accordion/examples/public_api.d.ts +0 -1
- package/accordion/public_api.d.ts +1 -0
- package/article/README.md +42 -1
- package/article/article/article.component.d.ts +1 -1
- package/article/article-meta/article-meta.directive.d.ts +1 -1
- package/article/article.d.ts +3 -0
- package/article/article.module.d.ts +5 -4
- package/article/public_api.d.ts +2 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/button/README.md +42 -1
- package/button/button/basic/button.component.d.ts +28 -0
- package/button/button/button-base.directive.d.ts +51 -0
- package/button/button/flat/flat.component.d.ts +28 -0
- package/button/button/icon/icon.component.d.ts +24 -0
- package/button/button/raised/raised.component.d.ts +28 -0
- package/button/button/stroked/stroked.component.d.ts +28 -0
- package/button/button/underline/underline.component.d.ts +28 -0
- package/button/button.d.ts +8 -0
- package/button/button.module.d.ts +10 -5
- package/button/public_api.d.ts +7 -1
- package/button/src/button/basic/button-theme.scss +145 -0
- package/button/src/button/button-base.scss +79 -0
- package/button/src/button/flat/flat-theme.scss +143 -0
- package/button/src/button/icon/icon-theme.scss +141 -0
- package/button/src/button/raised/raised-theme.scss +120 -0
- package/button/src/button/stroked/stroked-theme.scss +158 -0
- package/button/src/button/underline/underline-theme.scss +93 -0
- package/callout/README.md +42 -0
- package/callout/callout/callout.component.d.ts +1 -1
- package/callout/callout-body/callout-body.directive.d.ts +1 -1
- package/callout/callout-icon/callout-icon.directive.d.ts +1 -1
- package/callout/callout-subtitle/callout-subtitle.directive.d.ts +1 -1
- package/callout/callout-tagline/callout-tagline.directive.d.ts +1 -1
- package/callout/callout-title/callout-title.directive.d.ts +1 -1
- package/callout/callout.d.ts +7 -0
- package/callout/callout.module.d.ts +9 -8
- package/callout/public_api.d.ts +1 -0
- package/card/README.md +41 -0
- package/card/card/card.component.d.ts +1 -1
- package/card/card-actions/card-actions.directive.d.ts +1 -1
- package/card/card-content/card-content.directive.d.ts +1 -1
- package/card/card-icon/card-icon.directive.d.ts +1 -1
- package/card/card-image/card-image.directive.d.ts +1 -1
- package/card/card-tagline/card-tagline.directive.d.ts +1 -1
- package/card/card-title/card-title.directive.d.ts +1 -1
- package/card/card.d.ts +8 -0
- package/card/card.module.d.ts +12 -9
- package/card/public_api.d.ts +1 -0
- package/container/README.md +42 -1
- package/container/container/container.component.d.ts +1 -1
- package/container/container.d.ts +2 -0
- package/container/container.module.d.ts +6 -3
- package/container/public_api.d.ts +1 -0
- package/core/openable/openable.d.ts +13 -0
- package/core/openable/openable.directive.d.ts +81 -0
- package/core/openable/public_api.d.ts +2 -0
- package/core/openable/utils/state-error.d.ts +1 -0
- package/core/public_api.d.ts +1 -0
- package/core/statusable/statusable.d.ts +5 -3
- package/core/statusable/statusable.directive.d.ts +6 -4
- package/esm2022/accordion/accordion/accordion/accordion.component.mjs +3 -3
- package/esm2022/accordion/accordion/accordion-item/accordion-item.component.mjs +38 -22
- package/esm2022/accordion/accordion/accordion-item-title/accordion-item-title.directive.mjs +3 -2
- package/esm2022/accordion/accordion/animation/accordion-animation.mjs +1 -4
- package/esm2022/accordion/accordion.mjs +9 -0
- package/esm2022/accordion/accordion.module.mjs +6 -14
- package/esm2022/accordion/examples/basic-accordion/basic-accordion.component.mjs +6 -3
- package/esm2022/accordion/examples/public_api.mjs +1 -2
- package/esm2022/accordion/public_api.mjs +2 -1
- package/esm2022/article/article/article.component.mjs +3 -3
- package/esm2022/article/article-meta/article-meta.directive.mjs +3 -2
- package/esm2022/article/article.mjs +7 -0
- package/esm2022/article/article.module.mjs +5 -5
- package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +6 -4
- package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +6 -4
- package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +6 -4
- package/esm2022/article/examples/article-headings/article-headings.component.mjs +7 -3
- package/esm2022/article/examples/article-hr/article-hr.component.mjs +6 -4
- package/esm2022/article/examples/article-link/article-link.component.mjs +6 -4
- package/esm2022/article/examples/article-meta/article-meta.component.mjs +6 -4
- package/esm2022/article/examples/article-ol/article-ol.component.mjs +6 -4
- package/esm2022/article/examples/article-table/article-table.component.mjs +6 -4
- package/esm2022/article/examples/article-ul/article-ul.component.mjs +6 -4
- package/esm2022/article/public_api.mjs +3 -2
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
- package/esm2022/button/button/basic/button.component.mjs +48 -0
- package/esm2022/button/button/button-base.directive.mjs +105 -0
- package/esm2022/button/button/flat/flat.component.mjs +48 -0
- package/esm2022/button/button/icon/icon.component.mjs +44 -0
- package/esm2022/button/button/raised/raised.component.mjs +48 -0
- package/esm2022/button/button/stroked/stroked.component.mjs +48 -0
- package/esm2022/button/button/underline/underline.component.mjs +48 -0
- package/esm2022/button/button.mjs +17 -0
- package/esm2022/button/button.module.mjs +36 -12
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +4 -8
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +4 -8
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +7 -5
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +4 -8
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +8 -4
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +8 -4
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +4 -8
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +4 -8
- package/esm2022/button/public_api.mjs +8 -2
- package/esm2022/callout/callout/callout.component.mjs +4 -4
- package/esm2022/callout/callout-body/callout-body.directive.mjs +3 -2
- package/esm2022/callout/callout-icon/callout-icon.directive.mjs +3 -2
- package/esm2022/callout/callout-subtitle/callout-subtitle.directive.mjs +3 -2
- package/esm2022/callout/callout-tagline/callout-tagline.directive.mjs +3 -2
- package/esm2022/callout/callout-title/callout-title.directive.mjs +3 -2
- package/esm2022/callout/callout.mjs +15 -0
- package/esm2022/callout/callout.module.mjs +5 -5
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +9 -10
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +7 -8
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +9 -9
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +8 -9
- package/esm2022/callout/public_api.mjs +2 -1
- package/esm2022/card/card/card.component.mjs +3 -3
- package/esm2022/card/card-actions/card-actions.directive.mjs +3 -2
- package/esm2022/card/card-content/card-content.directive.mjs +3 -2
- package/esm2022/card/card-icon/card-icon.directive.mjs +3 -2
- package/esm2022/card/card-image/card-image.directive.mjs +3 -2
- package/esm2022/card/card-tagline/card-tagline.directive.mjs +3 -2
- package/esm2022/card/card-title/card-title.directive.mjs +3 -2
- package/esm2022/card/card.mjs +17 -0
- package/esm2022/card/card.module.mjs +7 -5
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +8 -9
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +9 -10
- package/esm2022/card/examples/card-theming/card-theming.component.mjs +4 -4
- package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +6 -6
- package/esm2022/card/examples/raised-card/raised-card.component.mjs +6 -6
- package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +6 -6
- package/esm2022/card/public_api.mjs +2 -1
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +4 -5
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +4 -5
- package/esm2022/container/container/container.component.mjs +3 -3
- package/esm2022/container/container.mjs +5 -0
- package/esm2022/container/container.module.mjs +6 -4
- package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +4 -4
- package/esm2022/container/public_api.mjs +2 -1
- package/esm2022/core/openable/openable.directive.mjs +122 -0
- package/esm2022/core/openable/openable.mjs +2 -0
- package/esm2022/core/openable/public_api.mjs +2 -0
- package/esm2022/core/openable/utils/state-error.mjs +2 -0
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/statusable/statusable.directive.mjs +7 -5
- package/esm2022/core/statusable/statusable.mjs +3 -2
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +6 -7
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +9 -10
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +7 -8
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +8 -9
- package/esm2022/hero/hero/hero.component.mjs +4 -7
- package/esm2022/hero/hero-body/hero-body.directive.mjs +3 -2
- package/esm2022/hero/hero-icon/hero-icon.directive.mjs +3 -2
- package/esm2022/hero/hero-subtitle/hero-subtitle.directive.mjs +3 -2
- package/esm2022/hero/hero-tagline/hero-tagline.directive.mjs +3 -2
- package/esm2022/hero/hero-title/hero-title.directive.mjs +3 -2
- package/esm2022/hero/hero.mjs +15 -0
- package/esm2022/hero/hero.module.mjs +7 -5
- package/esm2022/hero/public_api.mjs +2 -1
- package/esm2022/image/examples/basic-image/basic-image.component.mjs +6 -4
- package/esm2022/image/examples/load-image/load-image.component.mjs +7 -4
- package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +6 -4
- package/esm2022/image/image/image.component.mjs +3 -3
- package/esm2022/image/image.mjs +5 -0
- package/esm2022/image/image.module.mjs +7 -5
- package/esm2022/image/public_api.mjs +2 -1
- package/esm2022/link-set/link-set/link-set.component.mjs +3 -3
- package/esm2022/link-set/link-set-heading/link-set-heading.directive.mjs +3 -2
- package/esm2022/link-set/link-set-item/link-set-item.component.mjs +3 -2
- package/esm2022/link-set/link-set-subheading/link-set-subheading.directive.mjs +3 -2
- package/esm2022/link-set/link-set.mjs +11 -0
- package/esm2022/link-set/link-set.module.mjs +8 -6
- package/esm2022/link-set/public_api.mjs +2 -1
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +7 -4
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +4 -6
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +7 -4
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +4 -6
- package/esm2022/list/list/list.component.mjs +3 -3
- package/esm2022/list/list-item/list-item.component.mjs +8 -5
- package/esm2022/list/list.mjs +9 -0
- package/esm2022/list/list.module.mjs +8 -8
- package/esm2022/list/public_api.mjs +2 -1
- package/esm2022/loading-icon/examples/examples.mjs +1 -3
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +4 -4
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +5 -20
- package/esm2022/loading-icon/loading-icon.mjs +5 -0
- package/esm2022/loading-icon/loading-icon.module.mjs +6 -4
- package/esm2022/loading-icon/public_api.mjs +2 -1
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/helpers/media-gallery-token.mjs +7 -3
- package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +9 -5
- package/esm2022/media-gallery/media-gallery.mjs +9 -0
- package/esm2022/media-gallery/media-gallery.module.mjs +11 -9
- package/esm2022/media-gallery/media-renderer/media-renderer.component.mjs +3 -2
- package/esm2022/media-gallery/public_api.mjs +2 -1
- package/esm2022/media-gallery/thumbnail/thumbnail-compat.token.mjs +8 -3
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +3 -2
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +8 -6
- package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +6 -3
- package/esm2022/menu/menu/menu.component.mjs +6 -3
- package/esm2022/menu/menu-activator/menu-activator.component.mjs +3 -2
- package/esm2022/menu/menu-item/menu-item.component.mjs +8 -5
- package/esm2022/menu/menu.module.mjs +8 -7
- package/esm2022/menu/services/menu.service.mjs +8 -7
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +12 -6
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +8 -6
- package/esm2022/modal/modal/modal.component.mjs +47 -21
- package/esm2022/modal/modal-actions/modal-actions.component.mjs +3 -2
- package/esm2022/modal/modal-close/modal-close.directive.mjs +3 -2
- package/esm2022/modal/modal-content/modal-content.component.mjs +3 -2
- package/esm2022/modal/modal-header/modal-header.component.mjs +12 -7
- package/esm2022/modal/modal-title/modal-title.directive.mjs +3 -2
- package/esm2022/modal/modal.mjs +13 -0
- package/esm2022/modal/modal.module.mjs +17 -11
- package/esm2022/modal/public_api.mjs +2 -1
- package/esm2022/modal/service/modal.service.mjs +7 -5
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +8 -6
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +8 -9
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +7 -8
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +8 -6
- package/esm2022/navbar/navbar/navbar.component.mjs +3 -6
- package/esm2022/navbar/navbar.mjs +5 -0
- package/esm2022/navbar/navbar.module.mjs +10 -4
- package/esm2022/navbar/public_api.mjs +2 -1
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +4 -6
- package/esm2022/notification/examples/dismissible-notification/dismissible-notification.component.mjs +4 -4
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +4 -6
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +5 -7
- package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +6 -7
- package/esm2022/notification/notification/notification.component.mjs +12 -8
- package/esm2022/notification/notification-actions/notification-actions.directive.mjs +3 -2
- package/esm2022/notification/notification-message/notification-message.directive.mjs +3 -2
- package/esm2022/notification/notification-subtitle/notification-subtitle.directive.mjs +3 -2
- package/esm2022/notification/notification-title/notification-title.directive.mjs +3 -2
- package/esm2022/notification/notification.mjs +15 -0
- package/esm2022/notification/notification.module.mjs +11 -8
- package/esm2022/notification/public_api.mjs +2 -1
- package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +4 -4
- package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +4 -4
- package/esm2022/paginator/paginator/paginator.component.mjs +12 -9
- package/esm2022/paginator/paginator.mjs +5 -0
- package/esm2022/paginator/paginator.module.mjs +9 -6
- package/esm2022/paginator/public_api.mjs +2 -1
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +6 -4
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +6 -4
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +7 -4
- package/esm2022/progress-bar/progress-bar-label/progress-bar-label.directive.mjs +20 -0
- package/esm2022/progress-bar/progress-bar.component.mjs +5 -3
- package/esm2022/progress-bar/progress-bar.mjs +7 -0
- package/esm2022/progress-bar/progress-bar.module.mjs +11 -4
- package/esm2022/progress-bar/public_api.mjs +3 -1
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +6 -4
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +8 -8
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +5 -5
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +6 -4
- package/esm2022/sidebar/public_api.mjs +2 -1
- package/esm2022/sidebar/sidebar/sidebar.component.mjs +35 -15
- package/esm2022/sidebar/sidebar-footer/sidebar-footer.component.mjs +3 -3
- package/esm2022/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.mjs +3 -2
- package/esm2022/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.mjs +3 -2
- package/esm2022/sidebar/sidebar-header/sidebar-header.component.mjs +3 -3
- package/esm2022/sidebar/sidebar-viewport/scroll-token/scroll.token.mjs +9 -3
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +22 -38
- package/esm2022/sidebar/sidebar-viewport/utils/content-pad.mjs +6 -6
- package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +3 -3
- package/esm2022/sidebar/sidebar.mjs +17 -0
- package/esm2022/sidebar/sidebar.module.mjs +8 -6
- package/esm2022/tabs/daffodil-design-tabs.mjs +5 -0
- package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/custom-select-tabs/custom-select-tabs.component.mjs +34 -0
- package/esm2022/tabs/examples/daffodil-design-tabs-examples.mjs +5 -0
- package/esm2022/tabs/examples/disabled-tabs/disabled-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/index.mjs +2 -0
- package/esm2022/tabs/examples/initially-select-tab/initially-select-tab.component.mjs +22 -0
- package/esm2022/tabs/examples/public_api.mjs +11 -0
- package/esm2022/tabs/index.mjs +2 -0
- package/esm2022/tabs/public_api.mjs +6 -0
- package/esm2022/tabs/tabs/tab/tab.component.mjs +86 -0
- package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +83 -0
- package/esm2022/tabs/tabs/tab-label/tab-label.component.mjs +33 -0
- package/esm2022/tabs/tabs/tab-panel/tab-panel.component.mjs +68 -0
- package/esm2022/tabs/tabs/tabs.component.mjs +161 -0
- package/esm2022/tabs/tabs.mjs +13 -0
- package/esm2022/text-snippet/daffodil-design-text-snippet.mjs +5 -0
- package/esm2022/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.mjs +14 -0
- package/esm2022/text-snippet/examples/daffodil-design-text-snippet-examples.mjs +5 -0
- package/esm2022/text-snippet/examples/index.mjs +2 -0
- package/esm2022/text-snippet/examples/public_api.mjs +5 -0
- package/esm2022/text-snippet/index.mjs +2 -0
- package/esm2022/text-snippet/public_api.mjs +2 -0
- package/esm2022/text-snippet/text-snippet.component.mjs +46 -0
- package/esm2022/toast/examples/default-toast/default-toast.component.mjs +6 -5
- package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +7 -5
- package/esm2022/toast/examples/toast-status/toast-status.component.mjs +11 -8
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +6 -5
- package/esm2022/toast/options/daff-toast-options.mjs +7 -7
- package/esm2022/toast/public_api.mjs +2 -1
- package/esm2022/toast/service/toast.service.mjs +9 -10
- package/esm2022/toast/toast/toast-provider.mjs +7 -0
- package/esm2022/toast/toast/toast-template.component.mjs +30 -12
- package/esm2022/toast/toast/toast.component.mjs +6 -9
- package/esm2022/toast/toast-actions/toast-actions.directive.mjs +3 -2
- package/esm2022/toast/toast-message/toast-message.directive.mjs +3 -2
- package/esm2022/toast/toast-title/toast-title.directive.mjs +3 -2
- package/esm2022/toast/toast.module.mjs +10 -11
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +7 -4
- package/esm2022/tree/public_api.mjs +2 -2
- package/esm2022/tree/tree/tree.component.mjs +8 -5
- package/esm2022/tree/tree-item/tree-item.directive.mjs +3 -2
- package/esm2022/tree/tree.mjs +7 -0
- package/esm2022/tree/tree.module.mjs +9 -7
- package/fesm2022/daffodil-design-accordion-examples.mjs +7 -26
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +52 -41
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +41 -21
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +15 -9
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +27 -24
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +312 -135
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +21 -21
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +27 -13
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +23 -24
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +31 -13
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +5 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +12 -6
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +19 -20
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +29 -16
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +14 -7
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +13 -7
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +23 -11
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +14 -13
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +22 -14
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +3 -13
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +14 -23
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +17 -8
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +82 -59
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +11 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +55 -48
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +16 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +95 -49
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +22 -17
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +16 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +14 -18
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +39 -21
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +5 -5
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +23 -16
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +14 -7
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +38 -8
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +18 -14
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +94 -70
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +93 -0
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs.mjs +431 -0
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +25 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet.mjs +53 -0
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -0
- package/fesm2022/daffodil-design-toast-examples.mjs +23 -13
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +152 -132
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -3
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +23 -35
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +132 -8
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +41 -0
- package/hero/hero/hero.component.d.ts +1 -4
- package/hero/hero-body/hero-body.directive.d.ts +1 -1
- package/hero/hero-icon/hero-icon.directive.d.ts +1 -1
- package/hero/hero-subtitle/hero-subtitle.directive.d.ts +1 -1
- package/hero/hero-tagline/hero-tagline.directive.d.ts +1 -1
- package/hero/hero-title/hero-title.directive.d.ts +1 -1
- package/hero/hero.d.ts +7 -0
- package/hero/hero.module.d.ts +11 -8
- package/hero/public_api.d.ts +1 -0
- package/image/README.md +47 -8
- package/image/image/image.component.d.ts +1 -1
- package/image/image.d.ts +2 -0
- package/image/image.module.d.ts +6 -3
- package/image/public_api.d.ts +1 -0
- package/link-set/README.md +43 -2
- package/link-set/link-set/link-set.component.d.ts +1 -1
- package/link-set/link-set-heading/link-set-heading.directive.d.ts +1 -1
- package/link-set/link-set-item/link-set-item.component.d.ts +1 -1
- package/link-set/link-set-subheading/link-set-subheading.directive.d.ts +1 -1
- package/link-set/link-set.d.ts +5 -0
- package/link-set/link-set.module.d.ts +9 -6
- package/link-set/public_api.d.ts +1 -0
- package/list/README.md +42 -1
- package/list/list/list.component.d.ts +1 -1
- package/list/list-item/list-item.component.d.ts +1 -1
- package/list/list.d.ts +4 -0
- package/list/list.module.d.ts +7 -4
- package/list/public_api.d.ts +1 -0
- package/loading-icon/README.md +39 -3
- package/loading-icon/examples/examples.d.ts +2 -2
- package/loading-icon/loading-icon/loading-icon.component.d.ts +1 -9
- package/loading-icon/loading-icon.d.ts +2 -0
- package/loading-icon/loading-icon.module.d.ts +6 -3
- package/loading-icon/public_api.d.ts +1 -0
- package/media-gallery/README.md +45 -1
- package/media-gallery/helpers/media-gallery-token.d.ts +1 -2
- package/media-gallery/media-gallery/media-gallery.component.d.ts +1 -1
- package/media-gallery/media-gallery.d.ts +4 -0
- package/media-gallery/media-gallery.module.d.ts +8 -5
- package/media-gallery/media-renderer/media-renderer.component.d.ts +1 -1
- package/media-gallery/public_api.d.ts +1 -0
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +1 -5
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +1 -1
- package/menu/README.md +23 -0
- package/menu/menu/menu.component.d.ts +1 -1
- package/menu/menu-activator/menu-activator.component.d.ts +1 -1
- package/menu/menu-item/menu-item.component.d.ts +1 -1
- package/menu/menu.module.d.ts +6 -6
- package/menu/services/menu.service.d.ts +3 -2
- package/modal/README.md +41 -0
- package/modal/modal/modal.component.d.ts +20 -8
- package/modal/modal-actions/modal-actions.component.d.ts +1 -1
- package/modal/modal-close/modal-close.directive.d.ts +1 -1
- package/modal/modal-content/modal-content.component.d.ts +1 -1
- package/modal/modal-header/modal-header.component.d.ts +1 -1
- package/modal/modal-title/modal-title.directive.d.ts +1 -1
- package/modal/modal.d.ts +6 -0
- package/modal/modal.module.d.ts +15 -12
- package/modal/public_api.d.ts +1 -0
- package/navbar/README.md +41 -0
- package/navbar/navbar/navbar.component.d.ts +1 -4
- package/navbar/navbar.d.ts +2 -0
- package/navbar/navbar.module.d.ts +6 -2
- package/navbar/public_api.d.ts +1 -0
- package/notification/README.md +43 -2
- package/notification/notification/notification.component.d.ts +2 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +1 -1
- package/notification/notification-message/notification-message.directive.d.ts +1 -1
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +1 -1
- package/notification/notification-title/notification-title.directive.d.ts +1 -1
- package/notification/notification.d.ts +7 -0
- package/notification/notification.module.d.ts +12 -9
- package/notification/public_api.d.ts +1 -0
- package/notification/src/notification-theme.scss +17 -13
- package/package.json +1 -1
- package/paginator/README.md +45 -4
- package/paginator/paginator/paginator.component.d.ts +1 -4
- package/paginator/paginator.d.ts +2 -0
- package/paginator/paginator.module.d.ts +8 -5
- package/paginator/public_api.d.ts +1 -0
- package/progress-bar/README.md +41 -0
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +6 -0
- package/progress-bar/progress-bar.component.d.ts +1 -1
- package/progress-bar/progress-bar.d.ts +3 -0
- package/progress-bar/progress-bar.module.d.ts +7 -3
- package/progress-bar/public_api.d.ts +2 -0
- package/scss/theme.scss +13 -1
- package/scss/theming/_configure-theme.scss +60 -2
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/sidebar/README.md +78 -20
- package/sidebar/public_api.d.ts +1 -0
- package/sidebar/sidebar/sidebar.component.d.ts +19 -8
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +1 -1
- package/sidebar/sidebar-viewport/scroll-token/scroll.token.d.ts +1 -7
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +5 -17
- package/sidebar/sidebar-viewport/utils/content-pad.d.ts +2 -2
- package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +1 -1
- package/sidebar/sidebar.d.ts +8 -0
- package/sidebar/sidebar.module.d.ts +13 -10
- package/tabs/README.md +19 -0
- package/tabs/examples/basic-tabs/basic-tabs.component.d.ts +6 -0
- package/tabs/examples/custom-select-tabs/custom-select-tabs.component.d.ts +11 -0
- package/tabs/examples/disabled-tabs/disabled-tabs.component.d.ts +6 -0
- package/tabs/examples/index.d.ts +1 -0
- package/tabs/examples/initially-select-tab/initially-select-tab.component.d.ts +6 -0
- package/tabs/examples/public_api.d.ts +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/public_api.d.ts +5 -0
- package/tabs/src/tabs-theme.scss +22 -0
- package/tabs/tabs/tab/tab.component.d.ts +57 -0
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +37 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +19 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +38 -0
- package/tabs/tabs/tabs.component.d.ts +104 -0
- package/tabs/tabs.d.ts +6 -0
- package/text-snippet/README.md +2 -0
- package/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.d.ts +5 -0
- package/text-snippet/examples/index.d.ts +1 -0
- package/text-snippet/examples/public_api.d.ts +2 -0
- package/text-snippet/index.d.ts +1 -0
- package/text-snippet/public_api.d.ts +1 -0
- package/text-snippet/text-snippet.component.d.ts +19 -0
- package/toast/README.md +109 -34
- package/toast/options/daff-toast-options.d.ts +1 -3
- package/toast/public_api.d.ts +1 -0
- package/toast/service/toast.service.d.ts +4 -3
- package/toast/src/toast-theme.scss +14 -10
- package/toast/toast/toast-provider.d.ts +2 -0
- package/toast/toast/toast-template.component.d.ts +1 -1
- package/toast/toast/toast.component.d.ts +1 -3
- package/toast/toast-actions/toast-actions.directive.d.ts +1 -1
- package/toast/toast-message/toast-message.directive.d.ts +1 -1
- package/toast/toast-title/toast-title.directive.d.ts +1 -1
- package/toast/toast.module.d.ts +14 -12
- package/tree/README.md +41 -0
- package/tree/public_api.d.ts +1 -2
- package/tree/tree/tree.component.d.ts +1 -1
- package/tree/tree-item/tree-item.directive.d.ts +1 -1
- package/tree/tree.d.ts +3 -0
- package/tree/tree.module.d.ts +7 -4
- package/accordion/examples/accordion-examples.module.d.ts +0 -9
- package/button/button/button.component.d.ts +0 -80
- package/button/src/button-theme-variants/button.scss +0 -26
- package/button/src/button-theme-variants/flat.scss +0 -25
- package/button/src/button-theme-variants/icon.scss +0 -21
- package/button/src/button-theme-variants/raised.scss +0 -36
- package/button/src/button-theme-variants/stroked.scss +0 -28
- package/button/src/button-theme-variants/underline.scss +0 -9
- package/button/src/button-theme.scss +0 -574
- package/esm2022/accordion/examples/accordion-examples.module.mjs +0 -26
- package/esm2022/button/button/button.component.mjs +0 -207
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +0 -13
- package/esm2022/tree/utils/transform-in-place.mjs +0 -23
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +0 -5
- package/tree/utils/transform-in-place.d.ts +0 -15
@@ -0,0 +1,145 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-button-theme-variant(
|
6
|
+
$base-color,
|
7
|
+
$hover-color,
|
8
|
+
$active-color: $hover-color
|
9
|
+
) {
|
10
|
+
background-color: $base-color;
|
11
|
+
color: theming.daff-text-contrast($base-color);
|
12
|
+
|
13
|
+
&:after {
|
14
|
+
background: $hover-color;
|
15
|
+
}
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
color: theming.daff-text-contrast($hover-color);
|
19
|
+
}
|
20
|
+
|
21
|
+
&:active {
|
22
|
+
color: theming.daff-text-contrast($active-color);
|
23
|
+
|
24
|
+
&:after {
|
25
|
+
background: $active-color;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin daff-button-theme($theme) {
|
31
|
+
$primary: map.get($theme, primary);
|
32
|
+
$secondary: map.get($theme, secondary);
|
33
|
+
$tertiary: map.get($theme, tertiary);
|
34
|
+
$info: map.get($theme, info);
|
35
|
+
$warn: map.get($theme, warn);
|
36
|
+
$critical: map.get($theme, critical);
|
37
|
+
$success: map.get($theme, success);
|
38
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
39
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
40
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
41
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
42
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
43
|
+
|
44
|
+
.daff-button {
|
45
|
+
@include daff-button-theme-variant(
|
46
|
+
theming.daff-illuminate($base, $neutral, 2),
|
47
|
+
theming.daff-illuminate($base, $neutral, 3),
|
48
|
+
theming.daff-illuminate($base, $neutral, 4)
|
49
|
+
);
|
50
|
+
|
51
|
+
&.daff-primary {
|
52
|
+
@include daff-button-theme-variant(
|
53
|
+
theming.daff-color($primary),
|
54
|
+
theming.daff-color($primary, 70),
|
55
|
+
theming.daff-color($primary, 80)
|
56
|
+
);
|
57
|
+
}
|
58
|
+
|
59
|
+
&.daff-secondary {
|
60
|
+
@include daff-button-theme-variant(
|
61
|
+
theming.daff-color($secondary),
|
62
|
+
theming.daff-color($secondary, 70),
|
63
|
+
theming.daff-color($secondary, 80)
|
64
|
+
);
|
65
|
+
}
|
66
|
+
|
67
|
+
&.daff-tertiary {
|
68
|
+
@include daff-button-theme-variant(
|
69
|
+
theming.daff-color($tertiary),
|
70
|
+
theming.daff-color($tertiary, 70),
|
71
|
+
theming.daff-color($tertiary, 80)
|
72
|
+
);
|
73
|
+
}
|
74
|
+
|
75
|
+
&.daff-black {
|
76
|
+
@include daff-button-theme-variant(
|
77
|
+
$black,
|
78
|
+
theming.daff-color($neutral, 90),
|
79
|
+
theming.daff-color($neutral, 80)
|
80
|
+
);
|
81
|
+
}
|
82
|
+
|
83
|
+
&.daff-white {
|
84
|
+
@include daff-button-theme-variant(
|
85
|
+
$white,
|
86
|
+
theming.daff-color($neutral, 20),
|
87
|
+
theming.daff-color($neutral, 30)
|
88
|
+
);
|
89
|
+
}
|
90
|
+
|
91
|
+
&.daff-theme {
|
92
|
+
@include daff-button-theme-variant(
|
93
|
+
$base,
|
94
|
+
theming.daff-illuminate($base, $neutral, 2),
|
95
|
+
theming.daff-illuminate($base, $neutral, 3)
|
96
|
+
);
|
97
|
+
}
|
98
|
+
|
99
|
+
&.daff-theme-contrast {
|
100
|
+
@include daff-button-theme-variant(
|
101
|
+
$base-contrast,
|
102
|
+
theming.daff-illuminate($base-contrast, $neutral, 2),
|
103
|
+
theming.daff-illuminate($base-contrast, $neutral, 3)
|
104
|
+
);
|
105
|
+
}
|
106
|
+
|
107
|
+
&[disabled],
|
108
|
+
&.disabled {
|
109
|
+
@include daff-button-theme-variant(
|
110
|
+
theming.daff-illuminate($base, $neutral, 3),
|
111
|
+
theming.daff-illuminate($base, $neutral, 3),
|
112
|
+
theming.daff-illuminate($base, $neutral, 3)
|
113
|
+
);
|
114
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
115
|
+
|
116
|
+
&:hover {
|
117
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
&.daff-warn {
|
122
|
+
@include daff-button-theme-variant(
|
123
|
+
theming.daff-color($warn),
|
124
|
+
theming.daff-color($warn, 70),
|
125
|
+
theming.daff-color($warn, 80)
|
126
|
+
);
|
127
|
+
}
|
128
|
+
|
129
|
+
&.daff-success {
|
130
|
+
@include daff-button-theme-variant(
|
131
|
+
theming.daff-color($success),
|
132
|
+
theming.daff-color($success, 70),
|
133
|
+
theming.daff-color($success, 80)
|
134
|
+
);
|
135
|
+
}
|
136
|
+
|
137
|
+
&.daff-critical {
|
138
|
+
@include daff-button-theme-variant(
|
139
|
+
theming.daff-color($critical),
|
140
|
+
theming.daff-color($critical, 70),
|
141
|
+
theming.daff-color($critical, 80)
|
142
|
+
);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
@use '../../../scss/interactions';
|
2
|
+
@use '../../../scss/typography' as t;
|
3
|
+
|
4
|
+
@mixin daff-button-base {
|
5
|
+
@include interactions.clickable();
|
6
|
+
display: inline-flex;
|
7
|
+
justify-content: center;
|
8
|
+
align-items: center;
|
9
|
+
gap: 0.5rem;
|
10
|
+
appearance: none;
|
11
|
+
border: none;
|
12
|
+
border-radius: 0.25rem;
|
13
|
+
position: relative;
|
14
|
+
text-align: center;
|
15
|
+
text-decoration: none;
|
16
|
+
|
17
|
+
&[disabled],
|
18
|
+
&.disabled {
|
19
|
+
cursor: not-allowed;
|
20
|
+
}
|
21
|
+
|
22
|
+
.daff-button__content,
|
23
|
+
.daff-prefix,
|
24
|
+
.daff-suffix {
|
25
|
+
z-index: 2;
|
26
|
+
}
|
27
|
+
|
28
|
+
.daff-button__loading {
|
29
|
+
max-width: 1.5rem;
|
30
|
+
}
|
31
|
+
|
32
|
+
.daff-button__content {
|
33
|
+
@include t.text-truncate();
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin daff-button-background($border-radius) {
|
38
|
+
&:after {
|
39
|
+
content: '';
|
40
|
+
border-radius: $border-radius;
|
41
|
+
position: absolute;
|
42
|
+
width: 100%;
|
43
|
+
height: 100%;
|
44
|
+
opacity: 0;
|
45
|
+
transition: opacity 300ms;
|
46
|
+
}
|
47
|
+
|
48
|
+
&:hover,
|
49
|
+
&:active {
|
50
|
+
&:after {
|
51
|
+
opacity: 1;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
@mixin daff-button-sizes {
|
57
|
+
min-width: 96px;
|
58
|
+
|
59
|
+
&.daff-sm {
|
60
|
+
font-size: t.$small-font-size;
|
61
|
+
line-height: 2rem;
|
62
|
+
height: 2rem;
|
63
|
+
padding: 0 1rem;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.daff-md {
|
67
|
+
font-size: t.$normal-font-size;
|
68
|
+
line-height: 3rem;
|
69
|
+
height: 3rem;
|
70
|
+
padding: 0 1.5rem;
|
71
|
+
}
|
72
|
+
|
73
|
+
&.daff-lg {
|
74
|
+
font-size: t.$medium-font-size;
|
75
|
+
line-height: 3.5rem;
|
76
|
+
height: 3.5rem;
|
77
|
+
padding: 0 1.5rem;
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-flat-button-theme-variant(
|
6
|
+
$base-color,
|
7
|
+
$active-color
|
8
|
+
) {
|
9
|
+
color: $base-color;
|
10
|
+
|
11
|
+
&:after {
|
12
|
+
background-color: $base-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:hover {
|
16
|
+
color: theming.daff-text-contrast($base-color);
|
17
|
+
}
|
18
|
+
|
19
|
+
&:active {
|
20
|
+
color: theming.daff-text-contrast($active-color);
|
21
|
+
|
22
|
+
&:after {
|
23
|
+
background-color: $active-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin daff-flat-button-theme($theme) {
|
29
|
+
$primary: map.get($theme, primary);
|
30
|
+
$secondary: map.get($theme, secondary);
|
31
|
+
$tertiary: map.get($theme, tertiary);
|
32
|
+
$info: map.get($theme, info);
|
33
|
+
$warn: map.get($theme, warn);
|
34
|
+
$critical: map.get($theme, critical);
|
35
|
+
$success: map.get($theme, success);
|
36
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
37
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
38
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
39
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
40
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
41
|
+
|
42
|
+
.daff-flat-button {
|
43
|
+
color: currentColor;
|
44
|
+
|
45
|
+
&:after {
|
46
|
+
background-color: theming.daff-illuminate($base, $neutral, 2);
|
47
|
+
}
|
48
|
+
|
49
|
+
&:active {
|
50
|
+
&:after {
|
51
|
+
background-color: theming.daff-illuminate($base, $neutral, 3);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&:hover,
|
56
|
+
&:active {
|
57
|
+
color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 2));
|
58
|
+
}
|
59
|
+
|
60
|
+
&.daff-primary {
|
61
|
+
@include daff-flat-button-theme-variant(
|
62
|
+
theming.daff-color($primary),
|
63
|
+
theming.daff-color($primary, 70)
|
64
|
+
);
|
65
|
+
}
|
66
|
+
|
67
|
+
&.daff-secondary {
|
68
|
+
@include daff-flat-button-theme-variant(
|
69
|
+
theming.daff-color($secondary),
|
70
|
+
theming.daff-color($secondary, 70)
|
71
|
+
);
|
72
|
+
}
|
73
|
+
|
74
|
+
&.daff-tertiary {
|
75
|
+
@include daff-flat-button-theme-variant(
|
76
|
+
theming.daff-color($tertiary),
|
77
|
+
theming.daff-color($tertiary, 70)
|
78
|
+
);
|
79
|
+
}
|
80
|
+
|
81
|
+
&.daff-black {
|
82
|
+
@include daff-flat-button-theme-variant(
|
83
|
+
$black,
|
84
|
+
theming.daff-color($neutral, 100)
|
85
|
+
);
|
86
|
+
}
|
87
|
+
|
88
|
+
&.daff-white {
|
89
|
+
@include daff-flat-button-theme-variant(
|
90
|
+
$white,
|
91
|
+
theming.daff-color($neutral, 20)
|
92
|
+
);
|
93
|
+
}
|
94
|
+
|
95
|
+
&.daff-theme {
|
96
|
+
@include daff-flat-button-theme-variant(
|
97
|
+
$base,
|
98
|
+
theming.daff-illuminate($base, $neutral, 2)
|
99
|
+
);
|
100
|
+
}
|
101
|
+
|
102
|
+
&.daff-theme-contrast {
|
103
|
+
@include daff-flat-button-theme-variant(
|
104
|
+
$base-contrast,
|
105
|
+
theming.daff-illuminate($base-contrast, $neutral, 2)
|
106
|
+
);
|
107
|
+
}
|
108
|
+
|
109
|
+
&[disabled],
|
110
|
+
&.disabled {
|
111
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
112
|
+
|
113
|
+
&:hover,
|
114
|
+
&:focus,
|
115
|
+
&:active {
|
116
|
+
&:after {
|
117
|
+
background: transparent;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
&.daff-warn {
|
123
|
+
@include daff-flat-button-theme-variant(
|
124
|
+
theming.daff-color($warn),
|
125
|
+
theming.daff-color($warn, 70)
|
126
|
+
);
|
127
|
+
}
|
128
|
+
|
129
|
+
&.daff-critical {
|
130
|
+
@include daff-flat-button-theme-variant(
|
131
|
+
theming.daff-color($critical),
|
132
|
+
theming.daff-color($critical, 70)
|
133
|
+
);
|
134
|
+
}
|
135
|
+
|
136
|
+
&.daff-success {
|
137
|
+
@include daff-flat-button-theme-variant(
|
138
|
+
theming.daff-color($success),
|
139
|
+
theming.daff-color($success, 70)
|
140
|
+
);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-icon-button-theme-variant(
|
6
|
+
$base-color: currentColor,
|
7
|
+
$hover-color: currentColor,
|
8
|
+
$active-color: $hover-color
|
9
|
+
) {
|
10
|
+
color: $base-color;
|
11
|
+
|
12
|
+
&:hover {
|
13
|
+
color: $hover-color;
|
14
|
+
@if $base-color == currentColor {
|
15
|
+
opacity: 0.8;
|
16
|
+
}
|
17
|
+
@else {
|
18
|
+
opacity: 1;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
&:active {
|
23
|
+
color: $active-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin daff-icon-button-theme($theme) {
|
28
|
+
$primary: map.get($theme, primary);
|
29
|
+
$secondary: map.get($theme, secondary);
|
30
|
+
$tertiary: map.get($theme, tertiary);
|
31
|
+
$info: map.get($theme, info);
|
32
|
+
$warn: map.get($theme, warn);
|
33
|
+
$critical: map.get($theme, critical);
|
34
|
+
$success: map.get($theme, success);
|
35
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
36
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
37
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
38
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
39
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
40
|
+
|
41
|
+
.daff-icon-button {
|
42
|
+
@include daff-icon-button-theme-variant(
|
43
|
+
theming.daff-illuminate($base, $neutral, 5),
|
44
|
+
theming.daff-illuminate($base, $neutral, 6),
|
45
|
+
theming.daff-illuminate($base, $neutral, 7)
|
46
|
+
);
|
47
|
+
|
48
|
+
&.daff-primary {
|
49
|
+
@include daff-icon-button-theme-variant(
|
50
|
+
theming.daff-color($primary),
|
51
|
+
theming.daff-color($primary, 70),
|
52
|
+
theming.daff-color($primary, 80)
|
53
|
+
);
|
54
|
+
}
|
55
|
+
|
56
|
+
&.daff-secondary {
|
57
|
+
@include daff-icon-button-theme-variant(
|
58
|
+
theming.daff-color($secondary),
|
59
|
+
theming.daff-color($secondary, 70),
|
60
|
+
theming.daff-color($secondary, 80)
|
61
|
+
);
|
62
|
+
}
|
63
|
+
|
64
|
+
&.daff-tertiary {
|
65
|
+
@include daff-icon-button-theme-variant(
|
66
|
+
theming.daff-color($tertiary),
|
67
|
+
theming.daff-color($tertiary, 70),
|
68
|
+
theming.daff-color($tertiary, 80)
|
69
|
+
);
|
70
|
+
}
|
71
|
+
|
72
|
+
&.daff-black {
|
73
|
+
@include daff-icon-button-theme-variant(
|
74
|
+
$black,
|
75
|
+
theming.daff-color($neutral, 100),
|
76
|
+
theming.daff-color($neutral, 80)
|
77
|
+
);
|
78
|
+
}
|
79
|
+
|
80
|
+
&.daff-white {
|
81
|
+
@include daff-icon-button-theme-variant(
|
82
|
+
$white,
|
83
|
+
theming.daff-color($neutral, 20),
|
84
|
+
theming.daff-color($neutral, 30)
|
85
|
+
);
|
86
|
+
}
|
87
|
+
|
88
|
+
&.daff-theme {
|
89
|
+
@include daff-icon-button-theme-variant(
|
90
|
+
$base,
|
91
|
+
theming.daff-illuminate($base, $neutral, 1),
|
92
|
+
theming.daff-illuminate($base, $neutral, 2)
|
93
|
+
);
|
94
|
+
}
|
95
|
+
|
96
|
+
&.daff-theme-contrast {
|
97
|
+
@include daff-icon-button-theme-variant(
|
98
|
+
$base-contrast,
|
99
|
+
theming.daff-illuminate($base-contrast, $neutral, 1),
|
100
|
+
theming.daff-illuminate($base-contrast, $neutral, 2)
|
101
|
+
);
|
102
|
+
}
|
103
|
+
|
104
|
+
&[disabled],
|
105
|
+
&.disabled {
|
106
|
+
@include daff-icon-button-theme-variant(
|
107
|
+
theming.daff-illuminate($base, $neutral, 4),
|
108
|
+
theming.daff-illuminate($base, $neutral, 4),
|
109
|
+
theming.daff-illuminate($base, $neutral, 4)
|
110
|
+
);
|
111
|
+
|
112
|
+
&:hover {
|
113
|
+
color: theming.daff-illuminate($base, $neutral, 4);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.daff-warn {
|
118
|
+
@include daff-icon-button-theme-variant(
|
119
|
+
theming.daff-color($warn),
|
120
|
+
theming.daff-color($warn, 70),
|
121
|
+
theming.daff-color($warn, 80)
|
122
|
+
);
|
123
|
+
}
|
124
|
+
|
125
|
+
&.daff-critical {
|
126
|
+
@include daff-icon-button-theme-variant(
|
127
|
+
theming.daff-color($critical),
|
128
|
+
theming.daff-color($critical, 70),
|
129
|
+
theming.daff-color($critical, 80)
|
130
|
+
);
|
131
|
+
}
|
132
|
+
|
133
|
+
&.daff-success {
|
134
|
+
@include daff-icon-button-theme-variant(
|
135
|
+
theming.daff-color($success),
|
136
|
+
theming.daff-color($success, 70),
|
137
|
+
theming.daff-color($success, 80)
|
138
|
+
);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-raised-button-theme-variant(
|
6
|
+
$base-color,
|
7
|
+
) {
|
8
|
+
@if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
|
9
|
+
@error 'Button Initial State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
|
10
|
+
}
|
11
|
+
|
12
|
+
@if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
|
13
|
+
@error 'Button Hover State: '+ map.get(a11y.$wcag-aa-errors, 'text-contrast');
|
14
|
+
}
|
15
|
+
|
16
|
+
$black: theming.daff-color(theming.$daff-neutral, 110);
|
17
|
+
|
18
|
+
background-color: $base-color;
|
19
|
+
border: 1px solid $base-color;
|
20
|
+
box-shadow:
|
21
|
+
0 3px 5px rgba($black, 0.12),
|
22
|
+
0 1px 3px rgba($black, 0.08);
|
23
|
+
color: theming.daff-text-contrast($base-color);
|
24
|
+
|
25
|
+
&:after {
|
26
|
+
box-shadow:
|
27
|
+
0 6px 12px rgba($black, 0.08),
|
28
|
+
0 4px 6px rgba($black, 0.04);
|
29
|
+
}
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
background-color: $base-color;
|
33
|
+
border: 1px solid $base-color;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin daff-raised-button-theme($theme) {
|
38
|
+
$primary: map.get($theme, primary);
|
39
|
+
$secondary: map.get($theme, secondary);
|
40
|
+
$tertiary: map.get($theme, tertiary);
|
41
|
+
$info: map.get($theme, info);
|
42
|
+
$warn: map.get($theme, warn);
|
43
|
+
$critical: map.get($theme, critical);
|
44
|
+
$success: map.get($theme, success);
|
45
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
46
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
47
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
48
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
49
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
50
|
+
|
51
|
+
.daff-raised-button {
|
52
|
+
@include daff-raised-button-theme-variant(
|
53
|
+
theming.daff-illuminate($base, $neutral, 2)
|
54
|
+
);
|
55
|
+
|
56
|
+
&.daff-primary {
|
57
|
+
@include daff-raised-button-theme-variant(
|
58
|
+
theming.daff-color($primary)
|
59
|
+
);
|
60
|
+
}
|
61
|
+
|
62
|
+
&.daff-secondary {
|
63
|
+
@include daff-raised-button-theme-variant(
|
64
|
+
theming.daff-color($secondary)
|
65
|
+
);
|
66
|
+
}
|
67
|
+
|
68
|
+
&.daff-tertiary {
|
69
|
+
@include daff-raised-button-theme-variant(
|
70
|
+
theming.daff-color($tertiary)
|
71
|
+
);
|
72
|
+
}
|
73
|
+
|
74
|
+
&.daff-black {
|
75
|
+
@include daff-raised-button-theme-variant($black);
|
76
|
+
}
|
77
|
+
|
78
|
+
&.daff-white {
|
79
|
+
@include daff-raised-button-theme-variant($white);
|
80
|
+
}
|
81
|
+
|
82
|
+
&.daff-theme {
|
83
|
+
@include daff-raised-button-theme-variant($base);
|
84
|
+
}
|
85
|
+
|
86
|
+
&.daff-theme-contrast {
|
87
|
+
@include daff-raised-button-theme-variant($base-contrast);
|
88
|
+
}
|
89
|
+
|
90
|
+
&[disabled],
|
91
|
+
&.disabled {
|
92
|
+
@include daff-raised-button-theme-variant(
|
93
|
+
theming.daff-illuminate($base, $neutral, 3)
|
94
|
+
);
|
95
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
96
|
+
|
97
|
+
&:after {
|
98
|
+
box-shadow: none;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
&.daff-warn {
|
103
|
+
@include daff-raised-button-theme-variant(
|
104
|
+
theming.daff-color($warn)
|
105
|
+
);
|
106
|
+
}
|
107
|
+
|
108
|
+
&.daff-critical {
|
109
|
+
@include daff-raised-button-theme-variant(
|
110
|
+
theming.daff-color($critical)
|
111
|
+
);
|
112
|
+
}
|
113
|
+
|
114
|
+
&.daff-success {
|
115
|
+
@include daff-raised-button-theme-variant(
|
116
|
+
theming.daff-color($success)
|
117
|
+
);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|