@dnb/eufemia 9.39.1 → 9.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/cjs/components/accordion/style/_accordion.scss +2 -2
- package/cjs/components/accordion/style/dnb-accordion.css +3 -3
- package/cjs/components/accordion/style/dnb-accordion.min.css +1 -1
- package/cjs/components/autocomplete/style/dnb-autocomplete.css +3 -14
- package/cjs/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
- package/cjs/components/checkbox/style/dnb-checkbox.css +0 -7
- package/cjs/components/checkbox/style/dnb-checkbox.min.css +1 -1
- package/cjs/components/date-picker/style/dnb-date-picker.css +3 -35
- package/cjs/components/date-picker/style/dnb-date-picker.min.css +2 -2
- package/cjs/components/dialog/Dialog.d.ts +1 -1
- package/cjs/components/dialog/parts/DialogAction.d.ts +5 -4
- package/cjs/components/dialog/parts/DialogAction.js +23 -4
- package/cjs/components/dialog/style/_dialog.scss +7 -30
- package/cjs/components/dialog/style/dnb-dialog.css +21 -44
- package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
- package/cjs/components/dialog/style/themes/dnb-dialog-theme-ui.css +20 -0
- package/cjs/components/dialog/style/themes/dnb-dialog-theme-ui.min.css +1 -1
- package/cjs/components/dialog/style/themes/dnb-dialog-theme-ui.scss +29 -0
- package/cjs/components/drawer/style/_drawer.scss +1 -0
- package/cjs/components/drawer/style/dnb-drawer.css +12 -22
- package/cjs/components/drawer/style/dnb-drawer.min.css +1 -1
- package/cjs/components/drawer/types.d.ts +5 -5
- package/cjs/components/dropdown/style/dnb-dropdown.css +0 -7
- package/cjs/components/dropdown/style/dnb-dropdown.min.css +1 -1
- package/cjs/components/form-label/FormLabel.js +1 -1
- package/cjs/components/form-label/style/_form-label.scss +0 -13
- package/cjs/components/form-label/style/dnb-form-label.css +0 -7
- package/cjs/components/form-label/style/dnb-form-label.min.css +1 -1
- package/cjs/components/form-row/style/dnb-form-row.css +0 -7
- package/cjs/components/form-row/style/dnb-form-row.min.css +1 -1
- package/cjs/components/input/style/_input.scss +4 -0
- package/cjs/components/input/style/dnb-input.css +3 -7
- package/cjs/components/input/style/dnb-input.min.css +1 -1
- package/cjs/components/input-masked/style/dnb-input-masked.css +3 -7
- package/cjs/components/input-masked/style/dnb-input-masked.min.css +1 -1
- package/cjs/components/lib.d.ts +1 -1
- package/cjs/components/modal/Modal.d.ts +2 -2
- package/cjs/components/modal/style/dnb-modal.css +11 -22
- package/cjs/components/modal/style/dnb-modal.min.css +1 -1
- package/cjs/components/number-format/NumberFormat.js +1 -1
- package/cjs/components/number-format/NumberUtils.d.ts +3 -0
- package/cjs/components/radio/style/dnb-radio.css +0 -7
- package/cjs/components/radio/style/dnb-radio.min.css +1 -1
- package/cjs/components/slider/style/dnb-slider.css +0 -7
- package/cjs/components/slider/style/dnb-slider.min.css +1 -1
- package/cjs/components/switch/style/dnb-switch.css +0 -7
- package/cjs/components/switch/style/dnb-switch.min.css +1 -1
- package/cjs/components/table/Table.d.ts +2 -0
- package/cjs/components/table/Table.js +14 -50
- package/cjs/components/table/TableAccordion.d.ts +10 -0
- package/cjs/components/table/TableAccordion.js +265 -0
- package/cjs/components/table/TableAccordionContent.d.ts +18 -0
- package/cjs/components/table/TableAccordionContent.js +126 -0
- package/cjs/components/table/TableContainer.js +3 -2
- package/cjs/components/table/TableScrollView.js +2 -1
- package/cjs/components/table/TableStickyHeader.d.ts +4 -1
- package/cjs/components/table/TableStickyHeader.js +112 -83
- package/cjs/components/table/TableTd.d.ts +6 -1
- package/cjs/components/table/TableTd.js +5 -1
- package/cjs/components/table/TableTh.d.ts +4 -4
- package/cjs/components/table/TableTh.js +6 -1
- package/cjs/components/table/TableTr.d.ts +27 -0
- package/cjs/components/table/TableTr.js +95 -18
- package/cjs/components/table/style/_table-accordion.scss +280 -0
- package/cjs/components/table/style/_table-cell.scss +4 -4
- package/cjs/components/table/style/_table-container.scss +7 -17
- package/cjs/components/table/style/_table-deprecated.scss +74 -0
- package/cjs/components/table/style/_table-header-buttons.scss +2 -1
- package/cjs/components/table/style/_table-sticky.scss +24 -23
- package/cjs/components/table/style/_table-td.scss +46 -38
- package/cjs/components/table/style/_table-th.scss +44 -0
- package/cjs/components/table/style/_table-tr.scss +8 -2
- package/cjs/components/table/style/_table.scss +21 -77
- package/cjs/components/table/style/dnb-table.css +538 -271
- package/cjs/components/table/style/dnb-table.min.css +11 -2
- package/cjs/components/table/style/themes/dnb-table-theme-ui.css +82 -63
- package/cjs/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/cjs/components/table/style/themes/dnb-table-theme-ui.scss +49 -16
- package/cjs/components/textarea/style/dnb-textarea.css +0 -7
- package/cjs/components/textarea/style/dnb-textarea.min.css +1 -1
- package/cjs/components/toggle-button/style/dnb-toggle-button.css +0 -21
- package/cjs/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
- package/cjs/components/visually-hidden/VisuallyHidden.d.ts +2 -11
- package/cjs/components/visually-hidden/VisuallyHidden.js +2 -5
- package/cjs/components/visually-hidden/style/_visually-hidden.scss +0 -8
- package/cjs/components/visually-hidden/style/dnb-visually-hidden.css +10 -42
- package/cjs/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/cjs/elements/Element.d.ts +1 -1
- package/cjs/fragments/lib.d.ts +4 -7
- package/cjs/fragments/scroll-view/ScrollView.d.ts +12 -11
- package/cjs/fragments/scroll-view/ScrollView.js +8 -5
- package/cjs/fragments/scroll-view/style/_scroll-view.scss +8 -0
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/shared/helpers.js +7 -1
- package/cjs/shared/locales/en-GB.d.ts +4 -0
- package/cjs/shared/locales/en-GB.js +4 -0
- package/cjs/shared/locales/en-US.d.ts +4 -0
- package/cjs/shared/locales/index.d.ts +8 -0
- package/cjs/shared/locales/nb-NO.d.ts +4 -0
- package/cjs/shared/locales/nb-NO.js +4 -0
- package/cjs/style/core/helper-classes/helper-classes.scss +3 -0
- package/cjs/style/core/utilities.scss +15 -16
- package/cjs/style/dnb-ui-basis.css +20 -13
- package/cjs/style/dnb-ui-basis.min.css +1 -1
- package/cjs/style/dnb-ui-components.css +599 -365
- package/cjs/style/dnb-ui-components.min.css +13 -4
- package/cjs/style/dnb-ui-core.css +20 -13
- package/cjs/style/dnb-ui-core.min.css +1 -1
- package/cjs/style/dnb-ui-fragments.css +14 -0
- package/cjs/style/dnb-ui-fragments.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +102 -63
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +102 -63
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/components/accordion/style/_accordion.scss +2 -2
- package/components/accordion/style/dnb-accordion.css +3 -3
- package/components/accordion/style/dnb-accordion.min.css +1 -1
- package/components/autocomplete/style/dnb-autocomplete.css +3 -14
- package/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
- package/components/checkbox/style/dnb-checkbox.css +0 -7
- package/components/checkbox/style/dnb-checkbox.min.css +1 -1
- package/components/date-picker/style/dnb-date-picker.css +3 -35
- package/components/date-picker/style/dnb-date-picker.min.css +2 -2
- package/components/dialog/Dialog.d.ts +1 -1
- package/components/dialog/parts/DialogAction.d.ts +5 -4
- package/components/dialog/parts/DialogAction.js +19 -11
- package/components/dialog/style/_dialog.scss +7 -30
- package/components/dialog/style/dnb-dialog.css +21 -44
- package/components/dialog/style/dnb-dialog.min.css +1 -1
- package/components/dialog/style/themes/dnb-dialog-theme-ui.css +20 -0
- package/components/dialog/style/themes/dnb-dialog-theme-ui.min.css +1 -1
- package/components/dialog/style/themes/dnb-dialog-theme-ui.scss +29 -0
- package/components/drawer/style/_drawer.scss +1 -0
- package/components/drawer/style/dnb-drawer.css +12 -22
- package/components/drawer/style/dnb-drawer.min.css +1 -1
- package/components/drawer/types.d.ts +5 -5
- package/components/dropdown/style/dnb-dropdown.css +0 -7
- package/components/dropdown/style/dnb-dropdown.min.css +1 -1
- package/components/form-label/FormLabel.js +1 -1
- package/components/form-label/style/_form-label.scss +0 -13
- package/components/form-label/style/dnb-form-label.css +0 -7
- package/components/form-label/style/dnb-form-label.min.css +1 -1
- package/components/form-row/style/dnb-form-row.css +0 -7
- package/components/form-row/style/dnb-form-row.min.css +1 -1
- package/components/input/style/_input.scss +4 -0
- package/components/input/style/dnb-input.css +3 -7
- package/components/input/style/dnb-input.min.css +1 -1
- package/components/input-masked/style/dnb-input-masked.css +3 -7
- package/components/input-masked/style/dnb-input-masked.min.css +1 -1
- package/components/lib.d.ts +1 -1
- package/components/modal/Modal.d.ts +2 -2
- package/components/modal/style/dnb-modal.css +11 -22
- package/components/modal/style/dnb-modal.min.css +1 -1
- package/components/number-format/NumberFormat.js +1 -1
- package/components/number-format/NumberUtils.d.ts +3 -0
- package/components/radio/style/dnb-radio.css +0 -7
- package/components/radio/style/dnb-radio.min.css +1 -1
- package/components/slider/style/dnb-slider.css +0 -7
- package/components/slider/style/dnb-slider.min.css +1 -1
- package/components/switch/style/dnb-switch.css +0 -7
- package/components/switch/style/dnb-switch.min.css +1 -1
- package/components/table/Table.d.ts +2 -0
- package/components/table/Table.js +12 -20
- package/components/table/TableAccordion.d.ts +10 -0
- package/components/table/TableAccordion.js +192 -0
- package/components/table/TableAccordionContent.d.ts +18 -0
- package/components/table/TableAccordionContent.js +63 -0
- package/components/table/TableContainer.js +2 -1
- package/components/table/TableScrollView.js +2 -1
- package/components/table/TableStickyHeader.d.ts +4 -1
- package/components/table/TableStickyHeader.js +112 -51
- package/components/table/TableTd.d.ts +6 -1
- package/components/table/TableTd.js +3 -1
- package/components/table/TableTh.d.ts +4 -4
- package/components/table/TableTh.js +6 -1
- package/components/table/TableTr.d.ts +27 -0
- package/components/table/TableTr.js +59 -16
- package/components/table/style/_table-accordion.scss +280 -0
- package/components/table/style/_table-cell.scss +4 -4
- package/components/table/style/_table-container.scss +7 -17
- package/components/table/style/_table-deprecated.scss +74 -0
- package/components/table/style/_table-header-buttons.scss +2 -1
- package/components/table/style/_table-sticky.scss +24 -23
- package/components/table/style/_table-td.scss +46 -38
- package/components/table/style/_table-th.scss +44 -0
- package/components/table/style/_table-tr.scss +8 -2
- package/components/table/style/_table.scss +21 -77
- package/components/table/style/dnb-table.css +538 -271
- package/components/table/style/dnb-table.min.css +11 -2
- package/components/table/style/themes/dnb-table-theme-ui.css +82 -63
- package/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.scss +49 -16
- package/components/textarea/style/dnb-textarea.css +0 -7
- package/components/textarea/style/dnb-textarea.min.css +1 -1
- package/components/toggle-button/style/dnb-toggle-button.css +0 -21
- package/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
- package/components/visually-hidden/VisuallyHidden.d.ts +2 -11
- package/components/visually-hidden/VisuallyHidden.js +2 -5
- package/components/visually-hidden/style/_visually-hidden.scss +0 -8
- package/components/visually-hidden/style/dnb-visually-hidden.css +10 -42
- package/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/elements/Element.d.ts +1 -1
- package/es/components/accordion/style/_accordion.scss +2 -2
- package/es/components/accordion/style/dnb-accordion.css +3 -3
- package/es/components/accordion/style/dnb-accordion.min.css +1 -1
- package/es/components/autocomplete/style/dnb-autocomplete.css +3 -14
- package/es/components/autocomplete/style/dnb-autocomplete.min.css +2 -2
- package/es/components/checkbox/style/dnb-checkbox.css +0 -7
- package/es/components/checkbox/style/dnb-checkbox.min.css +1 -1
- package/es/components/date-picker/style/dnb-date-picker.css +3 -35
- package/es/components/date-picker/style/dnb-date-picker.min.css +2 -2
- package/es/components/dialog/Dialog.d.ts +1 -1
- package/es/components/dialog/parts/DialogAction.d.ts +5 -4
- package/es/components/dialog/parts/DialogAction.js +21 -11
- package/es/components/dialog/style/_dialog.scss +7 -30
- package/es/components/dialog/style/dnb-dialog.css +21 -44
- package/es/components/dialog/style/dnb-dialog.min.css +1 -1
- package/es/components/dialog/style/themes/dnb-dialog-theme-ui.css +20 -0
- package/es/components/dialog/style/themes/dnb-dialog-theme-ui.min.css +1 -1
- package/es/components/dialog/style/themes/dnb-dialog-theme-ui.scss +29 -0
- package/es/components/drawer/style/_drawer.scss +1 -0
- package/es/components/drawer/style/dnb-drawer.css +12 -22
- package/es/components/drawer/style/dnb-drawer.min.css +1 -1
- package/es/components/drawer/types.d.ts +5 -5
- package/es/components/dropdown/style/dnb-dropdown.css +0 -7
- package/es/components/dropdown/style/dnb-dropdown.min.css +1 -1
- package/es/components/form-label/FormLabel.js +1 -1
- package/es/components/form-label/style/_form-label.scss +0 -13
- package/es/components/form-label/style/dnb-form-label.css +0 -7
- package/es/components/form-label/style/dnb-form-label.min.css +1 -1
- package/es/components/form-row/style/dnb-form-row.css +0 -7
- package/es/components/form-row/style/dnb-form-row.min.css +1 -1
- package/es/components/input/style/_input.scss +4 -0
- package/es/components/input/style/dnb-input.css +3 -7
- package/es/components/input/style/dnb-input.min.css +1 -1
- package/es/components/input-masked/style/dnb-input-masked.css +3 -7
- package/es/components/input-masked/style/dnb-input-masked.min.css +1 -1
- package/es/components/lib.d.ts +1 -1
- package/es/components/modal/Modal.d.ts +2 -2
- package/es/components/modal/style/dnb-modal.css +11 -22
- package/es/components/modal/style/dnb-modal.min.css +1 -1
- package/es/components/number-format/NumberFormat.js +1 -1
- package/es/components/number-format/NumberUtils.d.ts +3 -0
- package/es/components/radio/style/dnb-radio.css +0 -7
- package/es/components/radio/style/dnb-radio.min.css +1 -1
- package/es/components/slider/style/dnb-slider.css +0 -7
- package/es/components/slider/style/dnb-slider.min.css +1 -1
- package/es/components/switch/style/dnb-switch.css +0 -7
- package/es/components/switch/style/dnb-switch.min.css +1 -1
- package/es/components/table/Table.d.ts +2 -0
- package/es/components/table/Table.js +13 -14
- package/es/components/table/TableAccordion.d.ts +10 -0
- package/es/components/table/TableAccordion.js +175 -0
- package/es/components/table/TableAccordionContent.d.ts +18 -0
- package/es/components/table/TableAccordionContent.js +54 -0
- package/es/components/table/TableContainer.js +2 -1
- package/es/components/table/TableScrollView.js +2 -1
- package/es/components/table/TableStickyHeader.d.ts +4 -1
- package/es/components/table/TableStickyHeader.js +112 -48
- package/es/components/table/TableTd.d.ts +6 -1
- package/es/components/table/TableTd.js +3 -1
- package/es/components/table/TableTh.d.ts +4 -4
- package/es/components/table/TableTh.js +6 -1
- package/es/components/table/TableTr.d.ts +27 -0
- package/es/components/table/TableTr.js +51 -15
- package/es/components/table/style/_table-accordion.scss +280 -0
- package/es/components/table/style/_table-cell.scss +4 -4
- package/es/components/table/style/_table-container.scss +7 -17
- package/es/components/table/style/_table-deprecated.scss +74 -0
- package/es/components/table/style/_table-header-buttons.scss +2 -1
- package/es/components/table/style/_table-sticky.scss +24 -23
- package/es/components/table/style/_table-td.scss +46 -38
- package/es/components/table/style/_table-th.scss +44 -0
- package/es/components/table/style/_table-tr.scss +8 -2
- package/es/components/table/style/_table.scss +21 -77
- package/es/components/table/style/dnb-table.css +538 -271
- package/es/components/table/style/dnb-table.min.css +11 -2
- package/es/components/table/style/themes/dnb-table-theme-ui.css +82 -63
- package/es/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/es/components/table/style/themes/dnb-table-theme-ui.scss +49 -16
- package/es/components/textarea/style/dnb-textarea.css +0 -7
- package/es/components/textarea/style/dnb-textarea.min.css +1 -1
- package/es/components/toggle-button/style/dnb-toggle-button.css +0 -21
- package/es/components/toggle-button/style/dnb-toggle-button.min.css +1 -1
- package/es/components/visually-hidden/VisuallyHidden.d.ts +2 -11
- package/es/components/visually-hidden/VisuallyHidden.js +2 -5
- package/es/components/visually-hidden/style/_visually-hidden.scss +0 -8
- package/es/components/visually-hidden/style/dnb-visually-hidden.css +10 -42
- package/es/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
- package/es/elements/Element.d.ts +1 -1
- package/es/fragments/lib.d.ts +4 -7
- package/es/fragments/scroll-view/ScrollView.d.ts +12 -11
- package/es/fragments/scroll-view/ScrollView.js +7 -3
- package/es/fragments/scroll-view/style/_scroll-view.scss +8 -0
- package/es/shared/Eufemia.js +1 -1
- package/es/shared/helpers.js +7 -1
- package/es/shared/locales/en-GB.d.ts +4 -0
- package/es/shared/locales/en-GB.js +4 -0
- package/es/shared/locales/en-US.d.ts +4 -0
- package/es/shared/locales/index.d.ts +8 -0
- package/es/shared/locales/nb-NO.d.ts +4 -0
- package/es/shared/locales/nb-NO.js +4 -0
- package/es/style/core/helper-classes/helper-classes.scss +3 -0
- package/es/style/core/utilities.scss +15 -16
- package/es/style/dnb-ui-basis.css +20 -13
- package/es/style/dnb-ui-basis.min.css +1 -1
- package/es/style/dnb-ui-components.css +599 -365
- package/es/style/dnb-ui-components.min.css +13 -4
- package/es/style/dnb-ui-core.css +20 -13
- package/es/style/dnb-ui-core.min.css +1 -1
- package/es/style/dnb-ui-fragments.css +14 -0
- package/es/style/dnb-ui-fragments.min.css +1 -1
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +102 -63
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/es/style/themes/theme-ui/dnb-theme-ui.css +102 -63
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/esm/dnb-ui-basis.min.mjs +2 -2
- package/esm/dnb-ui-components.min.mjs +4 -4
- package/esm/dnb-ui-elements.min.mjs +4 -4
- package/esm/dnb-ui-extensions.min.mjs +4 -4
- package/esm/dnb-ui-lib.min.mjs +4 -4
- package/esm/dnb-ui-web-components.min.mjs +4 -4
- package/fragments/lib.d.ts +4 -7
- package/fragments/scroll-view/ScrollView.d.ts +12 -11
- package/fragments/scroll-view/ScrollView.js +8 -4
- package/fragments/scroll-view/style/_scroll-view.scss +8 -0
- package/package.json +2 -2
- package/shared/Eufemia.js +1 -1
- package/shared/helpers.js +7 -1
- package/shared/locales/en-GB.d.ts +4 -0
- package/shared/locales/en-GB.js +4 -0
- package/shared/locales/en-US.d.ts +4 -0
- package/shared/locales/index.d.ts +8 -0
- package/shared/locales/nb-NO.d.ts +4 -0
- package/shared/locales/nb-NO.js +4 -0
- package/style/core/helper-classes/helper-classes.scss +3 -0
- package/style/core/utilities.scss +15 -16
- package/style/dnb-ui-basis.css +20 -13
- package/style/dnb-ui-basis.min.css +1 -1
- package/style/dnb-ui-components.css +599 -365
- package/style/dnb-ui-components.min.css +13 -4
- package/style/dnb-ui-core.css +20 -13
- package/style/dnb-ui-core.min.css +1 -1
- package/style/dnb-ui-fragments.css +14 -0
- package/style/dnb-ui-fragments.min.css +1 -1
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +102 -63
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/style/themes/theme-ui/dnb-theme-ui.css +102 -63
- package/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/umd/dnb-ui-basis.min.js +3 -3
- package/umd/dnb-ui-components.min.js +5 -5
- package/umd/dnb-ui-elements.min.js +4 -4
- package/umd/dnb-ui-extensions.min.js +5 -5
- package/umd/dnb-ui-lib.min.js +5 -5
- package/umd/dnb-ui-web-components.min.js +5 -5
|
@@ -5,24 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
@import './_table-header-buttons.scss';
|
|
7
7
|
|
|
8
|
-
@mixin tableBorder {
|
|
9
|
-
content: '';
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
right: 0;
|
|
14
|
-
bottom: 0;
|
|
15
|
-
z-index: -1;
|
|
16
|
-
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
8
|
.dnb-table {
|
|
21
9
|
// table border
|
|
22
|
-
--border: 0.0625rem solid var(--color-black-8);
|
|
23
10
|
&--border tbody &__td {
|
|
24
|
-
z-index: 2; // ensure border is behind content
|
|
25
|
-
|
|
26
11
|
&::after {
|
|
27
12
|
@include tableBorder();
|
|
28
13
|
|
|
@@ -40,26 +25,7 @@
|
|
|
40
25
|
}
|
|
41
26
|
|
|
42
27
|
// table outline
|
|
43
|
-
--outline: 0.0625rem solid var(--color-black-8);
|
|
44
|
-
&--outline thead &__th {
|
|
45
|
-
z-index: 2; // ensure border is behind content
|
|
46
|
-
|
|
47
|
-
&::after {
|
|
48
|
-
@include tableBorder();
|
|
49
|
-
|
|
50
|
-
border-top: var(--outline);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:first-of-type::after {
|
|
54
|
-
border-left: var(--outline);
|
|
55
|
-
}
|
|
56
|
-
&:last-of-type::after {
|
|
57
|
-
border-right: var(--outline);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
28
|
&--outline tbody &__td {
|
|
61
|
-
z-index: 2; // ensure border is behind content
|
|
62
|
-
|
|
63
29
|
&:first-of-type::after,
|
|
64
30
|
&:last-of-type::after {
|
|
65
31
|
@include tableBorder();
|
|
@@ -71,10 +37,16 @@
|
|
|
71
37
|
&:last-of-type::after {
|
|
72
38
|
border-right: var(--outline);
|
|
73
39
|
}
|
|
40
|
+
|
|
41
|
+
/* stylelint-disable */
|
|
42
|
+
&,
|
|
43
|
+
&::before,
|
|
44
|
+
&::after {
|
|
45
|
+
transition: border-radius 400ms var(--easing-default);
|
|
46
|
+
}
|
|
47
|
+
/* stylelint-enable */
|
|
74
48
|
}
|
|
75
49
|
&--outline tbody &__tr:last-of-type &__td {
|
|
76
|
-
z-index: 2; // ensure border is behind content
|
|
77
|
-
|
|
78
50
|
&::after {
|
|
79
51
|
@include tableBorder();
|
|
80
52
|
|
|
@@ -93,18 +65,54 @@
|
|
|
93
65
|
border-radius: 0 0.5rem 0 0;
|
|
94
66
|
}
|
|
95
67
|
}
|
|
96
|
-
&--outline tbody &__tr:last-of-type &__td:first-of-type
|
|
68
|
+
&--outline tbody &__tr:last-of-type &__td:first-of-type,
|
|
69
|
+
&--outline
|
|
70
|
+
tbody
|
|
71
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
72
|
+
&__td:first-of-type {
|
|
97
73
|
&,
|
|
74
|
+
&::before,
|
|
98
75
|
&::after {
|
|
99
76
|
border-radius: 0 0 0 0.5rem;
|
|
100
77
|
}
|
|
101
78
|
}
|
|
102
|
-
&--outline tbody &__tr:last-of-type &__td:last-of-type
|
|
79
|
+
&--outline tbody &__tr:last-of-type &__td:last-of-type,
|
|
80
|
+
&--outline
|
|
81
|
+
tbody
|
|
82
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2)
|
|
83
|
+
&__td:last-of-type {
|
|
103
84
|
&,
|
|
85
|
+
&::before,
|
|
104
86
|
&::after {
|
|
105
87
|
border-radius: 0 0 0.5rem 0;
|
|
106
88
|
}
|
|
107
89
|
}
|
|
90
|
+
&--outline tbody &__tr#{&}__tr__accordion_content:last-of-type &__td {
|
|
91
|
+
&,
|
|
92
|
+
&::before,
|
|
93
|
+
&::after {
|
|
94
|
+
border-radius: 0 0 0.5rem 0.5rem;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// reset parts if a "th" is used before td (row header)
|
|
99
|
+
&--outline tbody &__tr &__th ~ &__td:first-of-type {
|
|
100
|
+
&:first-of-type::after {
|
|
101
|
+
border-left: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
&--border tbody &__tr &__th ~ &__td:first-of-type {
|
|
105
|
+
&:first-of-type::after {
|
|
106
|
+
border-left: var(--border);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
&--outline tbody &__tr:last-of-type &__th ~ &__td:first-of-type {
|
|
110
|
+
&,
|
|
111
|
+
&::before,
|
|
112
|
+
&::after {
|
|
113
|
+
border-radius: 0 0 0 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
108
116
|
|
|
109
117
|
// spacing
|
|
110
118
|
&__td--no-spacing,
|
|
@@ -10,4 +10,48 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: flex-end; // bottom align help-button or other additional elements
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
// table border
|
|
15
|
+
&--outline thead &__th {
|
|
16
|
+
&::after {
|
|
17
|
+
@include tableBorder();
|
|
18
|
+
|
|
19
|
+
border-top: var(--outline);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:first-of-type::after {
|
|
23
|
+
border-left: var(--outline);
|
|
24
|
+
}
|
|
25
|
+
&:last-of-type::after {
|
|
26
|
+
border-right: var(--outline);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&--outline thead &__th:first-of-type {
|
|
30
|
+
&,
|
|
31
|
+
&::after {
|
|
32
|
+
border-radius: 0.5rem 0 0 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&--outline thead &__th:last-of-type {
|
|
36
|
+
&,
|
|
37
|
+
&::after {
|
|
38
|
+
border-radius: 0 0.5rem 0 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&--outline tbody &__th:first-of-type::after {
|
|
42
|
+
@include tableBorder();
|
|
43
|
+
|
|
44
|
+
border-left: var(--outline);
|
|
45
|
+
}
|
|
46
|
+
&--outline tbody &__tr:last-of-type &__th {
|
|
47
|
+
&::after {
|
|
48
|
+
@include tableBorder();
|
|
49
|
+
|
|
50
|
+
border-bottom: var(--outline);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:first-of-type::after {
|
|
54
|
+
border-radius: 0 0 0 0.5rem;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
13
57
|
}
|
|
@@ -20,11 +20,17 @@
|
|
|
20
20
|
background-color: var(--color-white);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
&--outline thead &__tr:first-of-type
|
|
23
|
+
&--outline thead &__tr:first-of-type,
|
|
24
|
+
&--outline
|
|
25
|
+
tbody
|
|
26
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2) {
|
|
24
27
|
// use clip-path, because border-radius does not clip on tr's
|
|
25
28
|
clip-path: inset(0 round 0.5rem 0.5rem 0 0);
|
|
26
29
|
}
|
|
27
|
-
&--outline tbody &__tr:last-of-type
|
|
30
|
+
&--outline tbody &__tr:last-of-type,
|
|
31
|
+
&--outline
|
|
32
|
+
tbody
|
|
33
|
+
&__tr#{&}__tr--has-accordion-content:not(#{&}__tr--expanded):nth-last-child(2) {
|
|
28
34
|
// use clip-path, because border-radius does not clip on tr's
|
|
29
35
|
clip-path: inset(0 round 0 0 0.5rem 0.5rem);
|
|
30
36
|
}
|
|
@@ -3,20 +3,25 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@mixin tableBorder {
|
|
7
|
+
content: '';
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
6
18
|
@import './_table-header-buttons.scss';
|
|
7
|
-
@import './_table-th.scss';
|
|
8
|
-
@import './_table-td.scss';
|
|
9
|
-
@import './_table-tr.scss';
|
|
10
|
-
@import './_table-cell.scss';
|
|
11
|
-
@import './_table-sticky.scss';
|
|
12
|
-
@import './_table-container.scss';
|
|
13
19
|
|
|
14
20
|
.dnb-table {
|
|
15
21
|
display: table;
|
|
16
22
|
table-layout: auto;
|
|
17
23
|
width: 100%;
|
|
18
24
|
|
|
19
|
-
overflow: auto;
|
|
20
25
|
margin-top: 0;
|
|
21
26
|
margin-bottom: 0.5rem; // give room to a scrollbar
|
|
22
27
|
|
|
@@ -32,18 +37,6 @@
|
|
|
32
37
|
white-space: nowrap;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
// deprecated – can be removed in v10
|
|
36
|
-
&,
|
|
37
|
-
&--left {
|
|
38
|
-
text-align: left;
|
|
39
|
-
}
|
|
40
|
-
&--right {
|
|
41
|
-
text-align: right;
|
|
42
|
-
}
|
|
43
|
-
&--center {
|
|
44
|
-
text-align: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
40
|
& > caption {
|
|
48
41
|
caption-side: bottom;
|
|
49
42
|
margin-top: 0.5rem;
|
|
@@ -51,64 +44,6 @@
|
|
|
51
44
|
font-size: var(--font-size-basis);
|
|
52
45
|
}
|
|
53
46
|
|
|
54
|
-
/* stylelint-disable */
|
|
55
|
-
|
|
56
|
-
// deprecated – can be removed in v10
|
|
57
|
-
&--small,
|
|
58
|
-
&--small > tr > th,
|
|
59
|
-
&--small > tr > td,
|
|
60
|
-
&--small > thead > tr > th,
|
|
61
|
-
&--small > tbody > tr > td {
|
|
62
|
-
font-size: var(--font-size-small);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// deprecated – can be removed in v10
|
|
66
|
-
& > tr#{&}--small > th,
|
|
67
|
-
& > tr#{&}--small > td,
|
|
68
|
-
& > thead > tr#{&}--small > th,
|
|
69
|
-
& > tbody > tr#{&}--small > td {
|
|
70
|
-
font-size: var(--font-size-small);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// deprecated – can be removed in v10
|
|
74
|
-
& > tr > th#{&}--small,
|
|
75
|
-
& > tr > td#{&}--small,
|
|
76
|
-
& > thead > tr > th#{&}--small,
|
|
77
|
-
& > tbody > tr > td#{&}--small,
|
|
78
|
-
&__th#{&}--small,
|
|
79
|
-
&__td#{&}--small {
|
|
80
|
-
font-size: var(--font-size-small);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// deprecated – can be removed in v10
|
|
84
|
-
&--x-small,
|
|
85
|
-
&--x-small > tr > th,
|
|
86
|
-
&--x-small > tr > td,
|
|
87
|
-
&--x-small > thead > tr > th,
|
|
88
|
-
&--x-small > tbody > tr > td {
|
|
89
|
-
font-size: var(--font-size-x-small);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// deprecated – can be removed in v10
|
|
93
|
-
& > tr#{&}--x-small > th,
|
|
94
|
-
& > tr#{&}--x-small > td,
|
|
95
|
-
& > thead > tr#{&}--x-small > th,
|
|
96
|
-
& > tbody > tr#{&}--x-small > td {
|
|
97
|
-
font-size: var(--font-size-x-small);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// deprecated – can be removed in v10
|
|
101
|
-
& > tr > th#{&}--x-small,
|
|
102
|
-
& > tr > td#{&}--x-small,
|
|
103
|
-
& > thead > tr > th#{&}--x-small,
|
|
104
|
-
& > tbody > tr > td#{&}--x-small,
|
|
105
|
-
&__th#{&}--x-small,
|
|
106
|
-
&__td#{&}--x-small {
|
|
107
|
-
font-size: var(--font-size-x-small);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* stylelint-enable */
|
|
111
|
-
|
|
112
47
|
&.dnb-skeleton {
|
|
113
48
|
> * {
|
|
114
49
|
-webkit-text-fill-color: var(--skeleton-color);
|
|
@@ -118,6 +53,15 @@
|
|
|
118
53
|
@include buttonsInTable();
|
|
119
54
|
}
|
|
120
55
|
|
|
56
|
+
@import './_table-th.scss';
|
|
57
|
+
@import './_table-td.scss';
|
|
58
|
+
@import './_table-tr.scss';
|
|
59
|
+
@import './_table-cell.scss';
|
|
60
|
+
@import './_table-sticky.scss';
|
|
61
|
+
@import './_table-container.scss';
|
|
62
|
+
@import './_table-deprecated.scss';
|
|
63
|
+
@import './_table-accordion.scss';
|
|
64
|
+
|
|
121
65
|
// Reset Table spacing
|
|
122
66
|
.dnb-spacing .dnb-table {
|
|
123
67
|
p,
|