@helsenorge/designsystem-react 15.7.2 → 16.1.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/lib/Button.js +2 -2
- package/lib/Button.js.map +1 -1
- package/lib/CHANGELOG.md +2664 -997
- package/lib/Close.js +1 -1
- package/lib/Close.js.map +1 -1
- package/lib/Drawer.js +3 -4
- package/lib/Drawer.js.map +1 -1
- package/lib/DrawerNavigation.js +1 -0
- package/lib/DrawerNavigation.js.map +1 -1
- package/lib/Duolist.js +5 -1
- package/lib/Duolist.js.map +1 -1
- package/lib/ElementHeader.js.map +1 -1
- package/lib/Expander.js +1 -0
- package/lib/Expander.js.map +1 -1
- package/lib/FilterLinkList.js +1 -1
- package/lib/FilterLinkList.js.map +1 -1
- package/lib/FormGroup.js +3 -3
- package/lib/FormGroup.js.map +1 -1
- package/lib/HelpDetails.js +1 -1
- package/lib/HelpTriggerIcon.js +2 -2
- package/lib/HelpTriggerIcon.js.map +1 -1
- package/lib/HelpTriggerStandalone.js +1 -1
- package/lib/HelpTriggerStandalone.js.map +1 -1
- package/lib/HorizontalScroll.js +6 -10
- package/lib/HorizontalScroll.js.map +1 -1
- package/lib/LazyIcon.js +1 -0
- package/lib/LazyIcon.js.map +1 -1
- package/lib/LazyIllustration.js +2 -0
- package/lib/LazyIllustration.js.map +1 -1
- package/lib/LinkList.js +10 -10
- package/lib/LinkList.js.map +1 -1
- package/lib/ListEditMode.js +1 -1
- package/lib/ListEditMode.js.map +1 -1
- package/lib/PopOver.js +2 -2
- package/lib/PopOver.js.map +1 -1
- package/lib/Radio.js +65 -55
- package/lib/Radio.js.map +1 -1
- package/lib/Radio2.js +74 -0
- package/lib/Radio2.js.map +1 -0
- package/lib/RadioMarker.js +2 -2
- package/lib/RadioMarker.js.map +1 -1
- package/lib/StackedCellContent.js +15 -0
- package/lib/StackedCellContent.js.map +1 -0
- package/lib/TabList.js +5 -5
- package/lib/TabList.js.map +1 -1
- package/lib/TabPanel.js +1 -0
- package/lib/TabPanel.js.map +1 -1
- package/lib/TableContext.js +26 -0
- package/lib/TableContext.js.map +1 -0
- package/lib/Toggle.js +2 -2
- package/lib/Toggle.js.map +1 -1
- package/lib/UNSAFE_TableBody.js +22 -0
- package/lib/UNSAFE_TableBody.js.map +1 -0
- package/lib/UNSAFE_TableCell.js +26 -0
- package/lib/UNSAFE_TableCell.js.map +1 -0
- package/lib/UNSAFE_TableDetail.js +17 -0
- package/lib/UNSAFE_TableDetail.js.map +1 -0
- package/lib/UNSAFE_TableExpandedRow.js +46 -0
- package/lib/UNSAFE_TableExpandedRow.js.map +1 -0
- package/lib/UNSAFE_TableHead.js +25 -0
- package/lib/UNSAFE_TableHead.js.map +1 -0
- package/lib/UNSAFE_TableHeadCell.js +182 -0
- package/lib/UNSAFE_TableHeadCell.js.map +1 -0
- package/lib/UNSAFE_TableRow.js +130 -0
- package/lib/UNSAFE_TableRow.js.map +1 -0
- package/lib/VisualRadio.js +1 -1
- package/lib/VisualRadio.js.map +1 -1
- package/lib/__mocks__/ResizeObserver.js +4 -1
- package/lib/__mocks__/ResizeObserver.js.map +1 -1
- package/lib/components/AnchorLink/styles.module.scss +3 -4
- package/lib/components/ArticleTeaser/styles.module.scss +12 -12
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/styles.module.scss +111 -60
- package/lib/components/Button/styles.module.scss.d.ts +1 -1
- package/lib/components/Checkbox/CheckboxMarker/styles.module.scss +6 -6
- package/lib/components/Chip/styles.module.scss +2 -3
- package/lib/components/Close/styles.module.scss +2 -3
- package/lib/components/DictionaryTrigger/index.js +26 -1
- package/lib/{DictionaryTrigger.js.map → components/DictionaryTrigger/index.js.map} +1 -1
- package/lib/components/DictionaryTrigger/styles.module.scss +6 -8
- package/lib/components/Drawer/Drawer.d.ts +0 -4
- package/lib/components/Drawer/DrawerBackButton.module.scss +1 -2
- package/lib/components/Drawer/styles.module.scss +6 -3
- package/lib/components/Dropdown/SingleSelect/styles.module.scss +0 -2
- package/lib/components/Dropdown/index.js +9 -17
- package/lib/components/Dropdown/index.js.map +1 -1
- package/lib/components/Dropdown/styles.module.scss +12 -14
- package/lib/components/Duolist/Duolist.d.ts +14 -2
- package/lib/components/Duolist/styles.module.scss +28 -8
- package/lib/components/Duolist/styles.module.scss.d.ts +3 -0
- package/lib/components/ElementHeader/ElementHeader.d.ts +1 -1
- package/lib/components/ElementHeader/styles.module.scss +1 -1
- package/lib/components/EmptyState/styles.module.scss +1 -2
- package/lib/components/ErrorWrapper/styles.module.scss +3 -3
- package/lib/components/Expander/styles.module.scss +0 -2
- package/lib/components/Expander/styles.module.scss.d.ts +1 -1
- package/lib/components/ExpanderHierarchy/index.js +1 -0
- package/lib/components/ExpanderHierarchy/index.js.map +1 -1
- package/lib/components/ExpanderList/index.js +21 -19
- package/lib/components/ExpanderList/index.js.map +1 -1
- package/lib/components/ExpanderList/styles.module.scss +11 -11
- package/lib/components/FavoriteButton/index.js +3 -3
- package/lib/components/FavoriteButton/index.js.map +1 -1
- package/lib/components/FavoriteButton/styles.module.scss +0 -1
- package/lib/components/Filter/FilterButton/styles.module.scss +5 -6
- package/lib/components/Filter/FilterButtonAndChipsWrapper/styles.module.scss +0 -1
- package/lib/components/Filter/FilterDrawer/styles.module.scss +0 -1
- package/lib/components/Filter/FilterLinkList/FilterLinkList.module.scss +5 -6
- package/lib/components/Filter/FilterOverviewSearch/styles.module.scss +1 -4
- package/lib/components/Filter/FilterSearch/styles.module.scss +14 -15
- package/lib/components/Filter/FilterSort/styles.module.scss +1 -2
- package/lib/components/Filter/FilterStateWrapper/styles.module.scss +0 -2
- package/lib/components/Filter/LoaderSpinner/styles.module.scss +2 -4
- package/lib/components/FormFieldTag/styles.module.scss +0 -1
- package/lib/components/FormGroup/styles.module.scss +0 -1
- package/lib/components/HelpBubble/styles.module.scss +0 -1
- package/lib/components/HelpDetails/styles.module.scss +2 -4
- package/lib/components/HelpDrawer/styles.module.scss +1 -2
- package/lib/components/HelpPanel/HelpPanel.d.ts +2 -2
- package/lib/components/HelpPanel/index.js +1 -17
- package/lib/components/HelpPanel/index.js.map +1 -1
- package/lib/components/HelpPanel/styles.module.scss +2 -22
- package/lib/components/HelpPanel/styles.module.scss.d.ts +0 -4
- package/lib/components/HelpTeaser/styles.module.scss +7 -9
- package/lib/components/HelpTriggerIcon/HelpTriggerIcon.d.ts +2 -2
- package/lib/components/HelpTriggerIcon/styles.module.scss +20 -22
- package/lib/components/HelpTriggerIcon/styles.module.scss.d.ts +1 -1
- package/lib/components/HelpTriggerInline/styles.module.scss +3 -5
- package/lib/components/HelpTriggerStandalone/styles.module.scss +3 -5
- package/lib/components/HighlightPanel/styles.module.scss +2 -3
- package/lib/components/HorizontalScroll/HorizontalScroll.d.ts +0 -4
- package/lib/components/HorizontalScroll/styles.module.scss +1 -4
- package/lib/components/HorizontalScroll/styles.module.scss.d.ts +0 -1
- package/lib/components/Icons/AdditionalIconInformation.d.ts +4 -0
- package/lib/components/Icons/AdditionalIconInformation.js +14 -10
- package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/lib/components/Icons/HistoryDocument.js +6 -7
- package/lib/components/Icons/HistoryDocument.js.map +1 -1
- package/lib/components/Icons/IconNames.d.ts +1 -1
- package/lib/components/Icons/IconNames.js +1 -0
- package/lib/components/Icons/IconNames.js.map +1 -1
- package/lib/components/Icons/YesNo.d.ts +3 -0
- package/lib/components/Icons/YesNo.js +53 -0
- package/lib/components/Icons/YesNo.js.map +1 -0
- package/lib/components/Illustrations/IllustrationNames.d.ts +1 -1
- package/lib/components/Illustrations/IllustrationNames.js +2 -0
- package/lib/components/Illustrations/IllustrationNames.js.map +1 -1
- package/lib/components/Illustrations/MoveAway.d.ts +11 -0
- package/lib/components/Illustrations/MoveAway.js +18 -0
- package/lib/components/Illustrations/MoveAway.js.map +1 -0
- package/lib/components/Illustrations/MoveAwayMedium.d.ts +3 -0
- package/lib/components/Illustrations/MoveAwayMedium.js +114 -0
- package/lib/components/Illustrations/MoveAwayMedium.js.map +1 -0
- package/lib/components/InfoTeaser/styles.module.scss +6 -8
- package/lib/components/Label/styles.module.scss +1 -1
- package/lib/components/LinkList/LinkList.d.ts +1 -1
- package/lib/components/LinkList/styles.module.scss +9 -11
- package/lib/components/LinkList/styles.module.scss.d.ts +1 -1
- package/lib/components/ListEditMode/styles.module.scss +5 -7
- package/lib/components/Loader/Loader.d.ts +1 -1
- package/lib/components/Loader/index.js +4 -4
- package/lib/components/Loader/index.js.map +1 -1
- package/lib/components/Loader/styles.module.scss +7 -7
- package/lib/components/Loader/styles.module.scss.d.ts +3 -3
- package/lib/components/Modal/constants.d.ts +1 -1
- package/lib/components/Modal/index.js +6 -3
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/Modal/styles.module.scss +14 -19
- package/lib/components/Modal/styles.module.scss.d.ts +2 -3
- package/lib/components/Panel/index.js +1 -1
- package/lib/components/Panel/index.js.map +1 -1
- package/lib/components/Panel/styles.module.scss +15 -16
- package/lib/components/Panel/styles.module.scss.d.ts +1 -1
- package/lib/components/PopMenu/PopMenu.d.ts +4 -0
- package/lib/components/PopMenu/index.js +10 -5
- package/lib/components/PopMenu/index.js.map +1 -1
- package/lib/components/PopOver/styles.module.scss +1 -3
- package/lib/components/Progressbar/Progressbar.d.ts +1 -1
- package/lib/components/Progressbar/constants.d.ts +1 -1
- package/lib/components/Progressbar/index.js +4 -4
- package/lib/components/Progressbar/index.js.map +1 -1
- package/lib/components/Radio/Radio.d.ts +28 -0
- package/lib/components/Radio/index.d.ts +3 -0
- package/lib/components/Radio/index.js +7 -0
- package/lib/components/Radio/index.js.map +1 -0
- package/lib/components/{RadioButton → Radio}/styles.module.scss +8 -9
- package/lib/components/Radio/styles.module.scss.d.ts +26 -0
- package/lib/components/ServiceMessage/styles.module.scss +20 -22
- package/lib/components/Slider/styles.module.scss +1 -2
- package/lib/components/StatusDot/styles.module.scss +4 -5
- package/lib/components/StickyNote/index.js +2 -2
- package/lib/components/StickyNote/index.js.map +1 -1
- package/lib/components/StickyNote/styles.module.scss +9 -10
- package/lib/components/Table/index.js +0 -1
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Tabs/TabList/styles.module.scss +20 -18
- package/lib/components/Tabs/TabPanel/styles.module.scss +2 -3
- package/lib/components/Tabs/styles.module.scss +0 -1
- package/lib/components/Tag/styles.module.scss +0 -1
- package/lib/components/Tile/styles.module.scss +5 -7
- package/lib/components/Toast/styles.module.scss +0 -1
- package/lib/components/Toggle/styles.module.scss +9 -10
- package/lib/components/UNSAFE_Table/StackedCellContent.d.ts +9 -0
- package/lib/components/UNSAFE_Table/TableCaption.d.ts +10 -0
- package/lib/components/UNSAFE_Table/TableContext.d.ts +22 -0
- package/lib/components/UNSAFE_Table/UNSAFE_Table.d.ts +37 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableBody/UNSAFE_TableBody.d.ts +10 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableBody/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableBody/index.js +2 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableCell/UNSAFE_TableCell.d.ts +15 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableCell/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableCell/index.js +7 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableCell/index.js.map +1 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableDetail/UNSAFE_TableDetail.d.ts +12 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableDetail/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableDetail/index.js +7 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableDetail/index.js.map +1 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableExpandedRow/UNSAFE_TableExpandedRow.d.ts +17 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableExpandedRow/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableExpandedRow/index.js +7 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableExpandedRow/index.js.map +1 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableExpanderCell/UNSAFE_TableExpanderCellMobile.d.ts +4 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHead/UNSAFE_TableHead.d.ts +8 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHead/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHead/index.js +7 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHead/index.js.map +1 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHeadCell/UNSAFE_TableHeadCell.d.ts +15 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHeadCell/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableHeadCell/index.js +2 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TablePopMenuCell/UNSAFE_TablePopMenuCell.d.ts +8 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableRow/UNSAFE_TableRow.d.ts +20 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableRow/index.d.ts +3 -0
- package/lib/components/UNSAFE_Table/UNSAFE_TableRow/index.js +2 -0
- package/lib/components/UNSAFE_Table/constants.d.ts +29 -0
- package/lib/components/UNSAFE_Table/index.d.ts +19 -0
- package/lib/components/UNSAFE_Table/index.js +182 -0
- package/lib/components/UNSAFE_Table/index.js.map +1 -0
- package/lib/components/UNSAFE_Table/resourceHelper.d.ts +3 -0
- package/lib/components/UNSAFE_Table/styles.module.scss +621 -0
- package/lib/components/UNSAFE_Table/styles.module.scss.d.ts +62 -0
- package/lib/components/UNSAFE_Table/useTableExpandedRows.d.ts +12 -0
- package/lib/components/UNSAFE_Table/useTableShowMore.d.ts +25 -0
- package/lib/components/UNSAFE_Table/utils.d.ts +47 -0
- package/lib/components/Validation/index.js +2 -2
- package/lib/components/Validation/index.js.map +1 -1
- package/lib/components/VisualCheckboxCloud/Checkbox/styles.module.scss +0 -2
- package/lib/components/VisualCheckboxCloud/styles.module.scss +0 -1
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/styles.module.scss +0 -2
- package/lib/components/VisualCheckboxGroup/styles.module.scss +0 -1
- package/lib/components/VisualContentgroupWithImage/styles.module.scss +0 -1
- package/lib/components/VisualRadioCloud/Radio/index.js +1 -1
- package/lib/components/VisualRadioCloud/Radio/styles.module.scss +0 -2
- package/lib/components/VisualRadioCloud/index.js +1 -1
- package/lib/components/VisualRadioCloud/styles.module.scss +0 -1
- package/lib/components/VisualRadioGroup/VisualRadio/styles.module.scss +0 -2
- package/lib/components/VisualRadioGroup/styles.module.scss +0 -1
- package/lib/constants.d.ts +2 -3
- package/lib/constants.js +2 -3
- package/lib/constants.js.map +1 -1
- package/lib/constants3.js +42 -0
- package/lib/constants3.js.map +1 -0
- package/lib/floating-ui.react.js +3 -460
- package/lib/floating-ui.react.js.map +1 -1
- package/lib/hooks/useDismissablePopover.d.ts +20 -0
- package/lib/hooks/useDismissablePopover.js +66 -0
- package/lib/hooks/useDismissablePopover.js.map +1 -0
- package/lib/hooks/useOutsideEvent.d.ts +3 -0
- package/lib/hooks/useOutsideEvent.js +24 -3
- package/lib/hooks/useOutsideEvent.js.map +1 -1
- package/lib/hooks/useReturnFocusOnClose.d.ts +7 -0
- package/lib/hooks/useReturnFocusOnClose.js +22 -0
- package/lib/hooks/useReturnFocusOnClose.js.map +1 -0
- package/lib/hooks/useSort.d.ts +88 -0
- package/lib/hooks/useSort.js +91 -0
- package/lib/hooks/useSort.js.map +1 -0
- package/lib/hooks/useSort.test.js +11739 -0
- package/lib/hooks/useSort.test.js.map +1 -0
- package/lib/hooks/useSynchronousResizeObserver.d.ts +11 -0
- package/lib/hooks/useSynchronousResizeObserver.js +29 -0
- package/lib/hooks/useSynchronousResizeObserver.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/resources/HN.Designsystem.Table.nb-NO.json.d.ts +9 -0
- package/lib/resources/Resources.d.ts +19 -0
- package/lib/rolldown-runtime.js +33 -0
- package/lib/scss/_font-mixins.scss +28 -1
- package/lib/scss/_visual-form.scss +47 -47
- package/lib/scss/helsenorge.scss +1 -0
- package/lib/scss/supernova/styles/colors.css +177 -122
- package/lib/scss/supernova/styles/typography.css +58 -51
- package/lib/scss/supernova-legacy/index.css +2 -0
- package/lib/scss/supernova-legacy/styles/legacy-colors.css +111 -0
- package/lib/scss/typography.module.scss +8 -0
- package/lib/scss/typography.module.scss.d.ts +2 -0
- package/lib/scss/typography.stories.tsx +8 -0
- package/lib/utils/formSpacing.js +3 -3
- package/lib/utils/formSpacing.js.map +1 -1
- package/lib/utils/uuid.js +1 -12
- package/lib/utils/uuid.js.map +1 -1
- package/package.json +61 -15
- package/scss/_font-mixins.scss +28 -1
- package/scss/_visual-form.scss +47 -47
- package/scss/helsenorge.scss +1 -0
- package/scss/supernova/styles/colors.css +177 -122
- package/scss/supernova/styles/typography.css +58 -51
- package/scss/supernova-legacy/index.css +2 -0
- package/scss/supernova-legacy/styles/legacy-colors.css +111 -0
- package/scss/typography.module.scss +8 -0
- package/scss/typography.module.scss.d.ts +2 -0
- package/scss/typography.stories.tsx +8 -0
- package/lib/DictionaryTrigger.js +0 -27
- package/lib/RadioButton.js +0 -84
- package/lib/RadioButton.js.map +0 -1
- package/lib/components/HelpTooltip/HelpTooltip.d.ts +0 -12
- package/lib/components/HelpTooltip/index.d.ts +0 -3
- package/lib/components/HelpTooltip/index.js +0 -48
- package/lib/components/HelpTooltip/index.js.map +0 -1
- package/lib/components/RadioButton/RadioButton.d.ts +0 -28
- package/lib/components/RadioButton/index.d.ts +0 -3
- package/lib/components/RadioButton/index.js +0 -7
- package/lib/components/RadioButton/index.js.map +0 -1
- package/lib/components/RadioButton/styles.module.scss.d.ts +0 -26
- package/lib/designsystem-react.css +0 -273
- /package/lib/components/{RadioButton → Radio}/RadioMarker/RadioMarker.d.ts +0 -0
- /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss +0 -0
- /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss.d.ts +0 -0
|
@@ -81,6 +81,14 @@ import designsystemtypography from './scss/typography.scss'
|
|
|
81
81
|
@include fonts.table-cell;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
.table-header {
|
|
85
|
+
@include fonts.table-header;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.table-header-stack {
|
|
89
|
+
@include fonts.table-header-stack;
|
|
90
|
+
}
|
|
91
|
+
|
|
84
92
|
.strong {
|
|
85
93
|
font-size: font-settings.$font-size-sm;
|
|
86
94
|
line-height: font-settings.$lineheight-size-sm;
|
|
@@ -83,6 +83,14 @@ export const TableCell: Story = {
|
|
|
83
83
|
render: args => <div className={designsystemtypography['table-cell']}>{args.tekst}</div>,
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
+
export const TableHeader: Story = {
|
|
87
|
+
render: args => <div className={designsystemtypography['table-header']}>{args.tekst}</div>,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const TableHeaderStack: Story = {
|
|
91
|
+
render: args => <div className={designsystemtypography['table-header-stack']}>{args.tekst}</div>,
|
|
92
|
+
};
|
|
93
|
+
|
|
86
94
|
export const Strong: Story = {
|
|
87
95
|
render: args => <div className={designsystemtypography.strong}>{args.tekst}</div>,
|
|
88
96
|
};
|
package/lib/utils/formSpacing.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { isComponent } from "./component.js";
|
|
2
2
|
import { t as Checkbox } from "../Checkbox.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as Radio } from "../Radio.js";
|
|
4
4
|
import { t as Toggle_default } from "../Toggle.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
//#region src/utils/formSpacing.ts
|
|
7
|
-
var isCompactComponent = (child) => isComponent(child, Checkbox) || isComponent(child,
|
|
7
|
+
var isCompactComponent = (child) => isComponent(child, Checkbox) || isComponent(child, Radio) || isComponent(child, Toggle_default);
|
|
8
8
|
var hasSublabel = (child) => {
|
|
9
|
-
if (isComponent(child, Checkbox) || isComponent(child,
|
|
9
|
+
if (isComponent(child, Checkbox) || isComponent(child, Radio)) return React.isValidElement(child.props.label) && !!child.props.label.props.sublabel;
|
|
10
10
|
if (isComponent(child, Toggle_default)) return !!child.props.subLabel;
|
|
11
11
|
return false;
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formSpacing.js","names":[],"sources":["../../src/utils/formSpacing.ts"],"sourcesContent":["import React from 'react';\n\nimport type { CheckboxProps } from '../components/Checkbox/Checkbox';\nimport type { LabelProps } from '../components/Label';\nimport type {
|
|
1
|
+
{"version":3,"file":"formSpacing.js","names":[],"sources":["../../src/utils/formSpacing.ts"],"sourcesContent":["import React from 'react';\n\nimport type { CheckboxProps } from '../components/Checkbox/Checkbox';\nimport type { LabelProps } from '../components/Label';\nimport type { RadioProps } from '../components/Radio/Radio';\nimport type { ToggleProps } from '../components/Toggle';\n\nimport { isComponent } from './component';\nimport Checkbox from '../components/Checkbox/Checkbox';\nimport Radio from '../components/Radio/Radio';\nimport Toggle from '../components/Toggle';\n\nexport const isCompactComponent = (child: React.ReactNode): boolean =>\n isComponent<CheckboxProps>(child, Checkbox) || isComponent<RadioProps>(child, Radio) || isComponent<ToggleProps>(child, Toggle);\n\nexport const hasSublabel = (child: React.ReactNode): boolean => {\n if (isComponent<CheckboxProps>(child, Checkbox) || isComponent<RadioProps>(child, Radio)) {\n return React.isValidElement<LabelProps>(child.props.label) && !!child.props.label.props.sublabel;\n }\n if (isComponent<ToggleProps>(child, Toggle)) {\n return !!child.props.subLabel;\n }\n return false;\n};\n"],"mappings":";;;;;;AAYA,IAAa,sBAAsB,UACjC,YAA2B,OAAO,QAAQ,KAAK,YAAwB,OAAO,KAAK,KAAK,YAAyB,OAAO,cAAM;AAEhI,IAAa,eAAe,UAAoC;CAC9D,IAAI,YAA2B,OAAO,QAAQ,KAAK,YAAwB,OAAO,KAAK,GACrF,OAAO,MAAM,eAA2B,MAAM,MAAM,KAAK,KAAK,CAAC,CAAC,MAAM,MAAM,MAAM,MAAM;CAE1F,IAAI,YAAyB,OAAO,cAAM,GACxC,OAAO,CAAC,CAAC,MAAM,MAAM;CAEvB,OAAO;AACT"}
|
package/lib/utils/uuid.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
+
import { n as __exportAll } from "../rolldown-runtime.js";
|
|
1
2
|
import { isTest } from "./environment.js";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __exportAll = (all, no_symbols) => {
|
|
5
|
-
let target = {};
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
3
|
//#region src/utils/uuid.ts
|
|
15
4
|
var uuid_exports = /* @__PURE__ */ __exportAll({
|
|
16
5
|
default: () => uuid,
|
package/lib/utils/uuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","names":[],"sources":["../../src/utils/uuid.ts"],"sourcesContent":["import { isTest } from './environment';\n\nexport const uuid = (): string => {\n if (isTest()) {\n return 'test';\n }\n return 'bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n\nexport default uuid;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.js","names":[],"sources":["../../src/utils/uuid.ts"],"sourcesContent":["import { isTest } from './environment';\n\nexport const uuid = (): string => {\n if (isTest()) {\n return 'test';\n }\n return 'bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.replace(/[x]/g, function (c) {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n\nexport default uuid;\n"],"mappings":";;;;;;;AAEA,IAAa,aAAqB;CAChC,IAAI,OAAO,GACT,OAAO;CAET,OAAO,uCAAuC,QAAQ,QAAQ,SAAU,GAAG;EACzE,MAAM,IAAK,KAAK,OAAO,IAAI,KAAM;EAEjC,QADM,KAAK,MAAM,IAAK,IAAI,IAAO,EAAA,CACxB,SAAS,EAAE;CACtB,CAAC;AACH"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@helsenorge/designsystem-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "16.1.0",
|
|
6
6
|
"description": "The official design system for Helsenorge built with React.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -295,12 +295,6 @@
|
|
|
295
295
|
"require": "./lib/components/HelpTeaser/index.js",
|
|
296
296
|
"default": "./lib/components/HelpTeaser/index.js"
|
|
297
297
|
},
|
|
298
|
-
"./components/HelpTooltip/HelpTooltip": {
|
|
299
|
-
"types": "./lib/components/HelpTooltip/HelpTooltip.d.ts",
|
|
300
|
-
"import": "./lib/components/HelpTooltip/index.js",
|
|
301
|
-
"require": "./lib/components/HelpTooltip/index.js",
|
|
302
|
-
"default": "./lib/components/HelpTooltip/index.js"
|
|
303
|
-
},
|
|
304
298
|
"./components/HelpTriggerIcon/HelpSign": {
|
|
305
299
|
"types": "./lib/components/HelpTriggerIcon/HelpSign.d.ts",
|
|
306
300
|
"import": "./lib/components/HelpTriggerIcon/index.js",
|
|
@@ -487,11 +481,11 @@
|
|
|
487
481
|
"require": "./lib/components/PromoPanel/index.js",
|
|
488
482
|
"default": "./lib/components/PromoPanel/index.js"
|
|
489
483
|
},
|
|
490
|
-
"./components/
|
|
491
|
-
"types": "./lib/components/
|
|
492
|
-
"import": "./lib/components/
|
|
493
|
-
"require": "./lib/components/
|
|
494
|
-
"default": "./lib/components/
|
|
484
|
+
"./components/Radio/Radio": {
|
|
485
|
+
"types": "./lib/components/Radio/Radio.d.ts",
|
|
486
|
+
"import": "./lib/components/Radio/index.js",
|
|
487
|
+
"require": "./lib/components/Radio/index.js",
|
|
488
|
+
"default": "./lib/components/Radio/index.js"
|
|
495
489
|
},
|
|
496
490
|
"./components/Select/Select": {
|
|
497
491
|
"types": "./lib/components/Select/Select.d.ts",
|
|
@@ -849,7 +843,58 @@
|
|
|
849
843
|
"./scss/reset": "./scss/_reset.scss",
|
|
850
844
|
"./scss/screen-reader": "./scss/_screen-reader.scss",
|
|
851
845
|
"./scss/spacers": "./scss/_spacers.scss",
|
|
852
|
-
"./scss/visual-form": "./scss/_visual-form.scss"
|
|
846
|
+
"./scss/visual-form": "./scss/_visual-form.scss",
|
|
847
|
+
"./components/Drawer/DrawerBackButton": {
|
|
848
|
+
"types": "./lib/components/Drawer/DrawerBackButton.d.ts",
|
|
849
|
+
"import": "./lib/components/Drawer/index.js",
|
|
850
|
+
"require": "./lib/components/Drawer/index.js",
|
|
851
|
+
"default": "./lib/components/Drawer/index.js"
|
|
852
|
+
},
|
|
853
|
+
"./components/Drawer/DrawerHeaderContent": {
|
|
854
|
+
"types": "./lib/components/Drawer/DrawerHeaderContent.d.ts",
|
|
855
|
+
"import": "./lib/components/Drawer/index.js",
|
|
856
|
+
"require": "./lib/components/Drawer/index.js",
|
|
857
|
+
"default": "./lib/components/Drawer/index.js"
|
|
858
|
+
},
|
|
859
|
+
"./components/UNSAFE_Table/TableCaption": {
|
|
860
|
+
"types": "./lib/components/UNSAFE_Table/TableCaption.d.ts",
|
|
861
|
+
"import": "./lib/components/UNSAFE_Table/index.js",
|
|
862
|
+
"require": "./lib/components/UNSAFE_Table/index.js",
|
|
863
|
+
"default": "./lib/components/UNSAFE_Table/index.js"
|
|
864
|
+
},
|
|
865
|
+
"./components/UNSAFE_Table/TableContext": {
|
|
866
|
+
"types": "./lib/components/UNSAFE_Table/TableContext.d.ts",
|
|
867
|
+
"import": "./lib/components/UNSAFE_Table/index.js",
|
|
868
|
+
"require": "./lib/components/UNSAFE_Table/index.js",
|
|
869
|
+
"default": "./lib/components/UNSAFE_Table/index.js"
|
|
870
|
+
},
|
|
871
|
+
"./components/UNSAFE_Table/UNSAFE_Table": {
|
|
872
|
+
"types": "./lib/components/UNSAFE_Table/UNSAFE_Table.d.ts"
|
|
873
|
+
},
|
|
874
|
+
"./components/UNSAFE_Table/constants": {
|
|
875
|
+
"types": "./lib/components/UNSAFE_Table/constants.d.ts"
|
|
876
|
+
},
|
|
877
|
+
"./components/UNSAFE_Table/useTableExpandedRows": {
|
|
878
|
+
"types": "./lib/components/UNSAFE_Table/useTableExpandedRows.d.ts"
|
|
879
|
+
},
|
|
880
|
+
"./components/UNSAFE_Table/useTableShowMore": {
|
|
881
|
+
"types": "./lib/components/UNSAFE_Table/useTableShowMore.d.ts"
|
|
882
|
+
},
|
|
883
|
+
"./components/UNSAFE_Table/utils": {
|
|
884
|
+
"types": "./lib/components/UNSAFE_Table/utils.d.ts"
|
|
885
|
+
},
|
|
886
|
+
"./components/VisualContentgroupWithImage/VisualContentgroupWithImage": {
|
|
887
|
+
"types": "./lib/components/VisualContentgroupWithImage/VisualContentgroupWithImage.d.ts",
|
|
888
|
+
"import": "./lib/components/VisualContentgroupWithImage/index.js",
|
|
889
|
+
"require": "./lib/components/VisualContentgroupWithImage/index.js",
|
|
890
|
+
"default": "./lib/components/VisualContentgroupWithImage/index.js"
|
|
891
|
+
},
|
|
892
|
+
"./components/UNSAFE_Table/StackLabelledContent": {
|
|
893
|
+
"types": "./lib/components/UNSAFE_Table/StackLabelledContent.d.ts",
|
|
894
|
+
"import": "./lib/components/UNSAFE_Table/index.js",
|
|
895
|
+
"require": "./lib/components/UNSAFE_Table/index.js",
|
|
896
|
+
"default": "./lib/components/UNSAFE_Table/index.js"
|
|
897
|
+
}
|
|
853
898
|
},
|
|
854
899
|
"scripts": {
|
|
855
900
|
"start": "storybook dev -p 3000",
|
|
@@ -867,6 +912,7 @@
|
|
|
867
912
|
"generate:illustrationnames": "node __scripts__/generateIllustrationNames.mjs",
|
|
868
913
|
"generate:cssdefinitions": "typed-scss-modules \"src/**/*.module.scss\" --nameFormat none --exportType default --includePaths node_modules ../../node_modules",
|
|
869
914
|
"generate:scssexports": "node __scripts__/gen-scss-exports.mjs",
|
|
915
|
+
"generate:deepexports": "node __scripts__/gen-deep-exports.mjs",
|
|
870
916
|
"eslint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
871
917
|
"eslint:fix": "npm run eslint -- --fix",
|
|
872
918
|
"stylelint": "stylelint \"src/**/*.{css,scss}\"",
|
|
@@ -880,7 +926,7 @@
|
|
|
880
926
|
},
|
|
881
927
|
"peerDependencies": {
|
|
882
928
|
"classnames": "^2.3.2",
|
|
883
|
-
"motion": "^
|
|
929
|
+
"motion": "^13.0.0",
|
|
884
930
|
"normalize.css": "^8.0.1",
|
|
885
931
|
"react": "^19.0.0",
|
|
886
932
|
"react-dom": "^19.0.0"
|
|
@@ -892,7 +938,7 @@
|
|
|
892
938
|
},
|
|
893
939
|
"dependencies": {
|
|
894
940
|
"@floating-ui/react": "^0.27.19",
|
|
895
|
-
"motion": "^
|
|
941
|
+
"motion": "^13.2.0"
|
|
896
942
|
},
|
|
897
943
|
"devDependencies": {
|
|
898
944
|
"@chromatic-com/storybook": "^5.1.2",
|
package/scss/_font-mixins.scss
CHANGED
|
@@ -170,8 +170,35 @@
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
@mixin table-cell {
|
|
173
|
+
font-size: 1rem;
|
|
174
|
+
line-height: 1.28rem;
|
|
175
|
+
|
|
176
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
177
|
+
font-size: 1.125rem;
|
|
178
|
+
line-height: 1.463rem;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@mixin table-header {
|
|
173
183
|
font-size: 1.125rem;
|
|
174
|
-
line-height: 1.
|
|
184
|
+
line-height: 1.375rem;
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
|
|
187
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
188
|
+
font-size: 1.25rem;
|
|
189
|
+
line-height: 1.625rem;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@mixin table-header-stack {
|
|
194
|
+
font-size: 1rem;
|
|
195
|
+
line-height: 1.28rem;
|
|
196
|
+
font-weight: 600;
|
|
197
|
+
|
|
198
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
199
|
+
font-size: 1.125rem;
|
|
200
|
+
line-height: 1.463rem;
|
|
201
|
+
}
|
|
175
202
|
}
|
|
176
203
|
|
|
177
204
|
@mixin image-caption {
|
package/scss/_visual-form.scss
CHANGED
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
min-height: var(--core-space-l);
|
|
52
52
|
padding: $pill-padding-mobile;
|
|
53
53
|
border-radius: 100px;
|
|
54
|
-
background-color: var(--color-action-background-
|
|
55
|
-
border: 1px solid var(--color-action-border-
|
|
56
|
-
color: var(--color-base-text-
|
|
54
|
+
background-color: var(--color-action-background-light-normal);
|
|
55
|
+
border: 1px solid var(--color-action-border-dark-normal);
|
|
56
|
+
color: var(--color-base-text-dark);
|
|
57
57
|
|
|
58
58
|
@include fonts.title6;
|
|
59
59
|
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&:hover &__pill {
|
|
67
|
-
background-color: var(--color-action-background-
|
|
68
|
-
border-color: var(--color-action-border-
|
|
67
|
+
background-color: var(--color-action-background-light-hover);
|
|
68
|
+
border-color: var(--color-action-border-dark-plus1-hover);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&:active &__pill {
|
|
72
|
-
background-color: var(--color-action-background-
|
|
73
|
-
border-color: var(--color-action-border-
|
|
72
|
+
background-color: var(--color-action-background-light-selected);
|
|
73
|
+
border-color: var(--color-action-border-dark-plus1-hover);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&--checked &__pill,
|
|
77
77
|
&:has(input:checked) &__pill {
|
|
78
|
-
background-color: var(--color-action-background-
|
|
79
|
-
color: var(--color-action-text-
|
|
80
|
-
border-color: var(--color-action-background-
|
|
78
|
+
background-color: var(--color-action-background-dark-normal);
|
|
79
|
+
color: var(--color-action-text-light-normal);
|
|
80
|
+
border-color: var(--color-action-background-dark-normal);
|
|
81
81
|
padding: var(--core-space-3xs) var(--core-space-s);
|
|
82
82
|
|
|
83
83
|
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
@@ -87,52 +87,52 @@
|
|
|
87
87
|
|
|
88
88
|
&--checked:hover &__pill,
|
|
89
89
|
&:has(input:checked):hover &__pill {
|
|
90
|
-
background-color: var(--color-action-graphics-
|
|
91
|
-
border-color: var(--color-action-graphics-
|
|
90
|
+
background-color: var(--color-action-graphics-dark-hover);
|
|
91
|
+
border-color: var(--color-action-graphics-dark-hover);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&--checked:active &__pill,
|
|
95
95
|
&:has(input:checked):active &__pill {
|
|
96
|
-
background-color: var(--color-action-background-
|
|
97
|
-
border-color: var(--color-action-background-
|
|
96
|
+
background-color: var(--color-action-background-dark-plus1-active);
|
|
97
|
+
border-color: var(--color-action-background-dark-plus1-active);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&--invalid &__pill {
|
|
101
|
-
background-color: var(--color-action-background-
|
|
102
|
-
border-color: var(--color-destructive-border-normal);
|
|
101
|
+
background-color: var(--color-action-background-light-normal);
|
|
102
|
+
border-color: var(--color-destructive-border-dark-normal);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&--invalid:hover &__pill {
|
|
106
|
-
background-color: var(--color-destructive-background-normal);
|
|
107
|
-
border-color: var(--color-destructive-border-normal);
|
|
106
|
+
background-color: var(--color-destructive-background-light-plus1-normal);
|
|
107
|
+
border-color: var(--color-destructive-border-dark-normal);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&--invalid:active &__pill {
|
|
111
|
-
background-color: var(--color-destructive-background-
|
|
112
|
-
border-color: var(--color-destructive-border-normal);
|
|
111
|
+
background-color: var(--color-destructive-background-light-plus1-hover);
|
|
112
|
+
border-color: var(--color-destructive-border-dark-normal);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&--invalid#{&}--checked &__pill,
|
|
116
116
|
&--invalid:has(input:checked) &__pill {
|
|
117
|
-
background-color: var(--color-destructive-graphics-normal);
|
|
118
|
-
border-color: var(--color-destructive-graphics-normal);
|
|
117
|
+
background-color: var(--color-destructive-graphics-dark-normal);
|
|
118
|
+
border-color: var(--color-destructive-graphics-dark-normal);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&--invalid#{&}--checked:hover &__pill,
|
|
122
122
|
&--invalid:has(input:checked):hover &__pill {
|
|
123
|
-
background-color: var(--color-destructive-graphics-hover);
|
|
124
|
-
border-color: var(--color-destructive-graphics-hover);
|
|
123
|
+
background-color: var(--color-destructive-graphics-dark-hover);
|
|
124
|
+
border-color: var(--color-destructive-graphics-dark-hover);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&--invalid#{&}--checked:active &__pill,
|
|
128
128
|
&--invalid:has(input:checked):active &__pill {
|
|
129
|
-
background-color: var(--color-destructive-graphics-
|
|
130
|
-
border-color: var(--color-destructive-graphics-
|
|
129
|
+
background-color: var(--color-destructive-graphics-dark-active);
|
|
130
|
+
border-color: var(--color-destructive-graphics-dark-active);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&__input:focus-visible + &__pill {
|
|
134
|
-
outline: 3px solid var(--color-action-border-
|
|
135
|
-
border-color: var(--color-action-border-
|
|
134
|
+
outline: 3px solid var(--color-action-border-dark-focus);
|
|
135
|
+
border-color: var(--color-action-border-light-normal);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&__icon {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
justify-content: center;
|
|
142
142
|
|
|
143
143
|
svg {
|
|
144
|
-
fill: var(--color-action-graphics-
|
|
144
|
+
fill: var(--color-action-graphics-light-normal);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -206,9 +206,9 @@
|
|
|
206
206
|
z-index: 1;
|
|
207
207
|
display: inline-flex;
|
|
208
208
|
border-radius: 4px;
|
|
209
|
-
background: var(--color-action-background-
|
|
210
|
-
border: 2px solid var(--color-action-border-
|
|
211
|
-
color: var(--color-base-text-
|
|
209
|
+
background: var(--color-action-background-light-normal);
|
|
210
|
+
border: 2px solid var(--color-action-border-dark-normal);
|
|
211
|
+
color: var(--color-base-text-dark);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
&--variant-line &__frame {
|
|
@@ -243,8 +243,8 @@
|
|
|
243
243
|
justify-content: center;
|
|
244
244
|
overflow: hidden;
|
|
245
245
|
border-radius: 100%;
|
|
246
|
-
background: var(--color-action-background-
|
|
247
|
-
border: 2px solid var(--color-action-border-
|
|
246
|
+
background: var(--color-action-background-light-normal);
|
|
247
|
+
border: 2px solid var(--color-action-border-light-normal);
|
|
248
248
|
|
|
249
249
|
> * {
|
|
250
250
|
width: 100%;
|
|
@@ -272,35 +272,35 @@
|
|
|
272
272
|
|
|
273
273
|
&--checked &__frame,
|
|
274
274
|
&:has(input:checked) &__frame {
|
|
275
|
-
background: var(--color-action-background-
|
|
276
|
-
color: var(--color-action-text-
|
|
277
|
-
border-color: var(--color-action-background-
|
|
275
|
+
background: var(--color-action-background-dark-normal);
|
|
276
|
+
color: var(--color-action-text-light-normal);
|
|
277
|
+
border-color: var(--color-action-background-dark-normal);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
&--invalid &__frame {
|
|
281
|
-
background: var(--color-action-background-
|
|
281
|
+
background: var(--color-action-background-light-normal);
|
|
282
282
|
border-color: var(--core-color-cherry-500);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
&:hover &__frame {
|
|
286
286
|
background: var(--core-color-neutral-50);
|
|
287
|
-
border-color: var(--color-action-border-
|
|
287
|
+
border-color: var(--color-action-border-dark-plus1-hover);
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
&:active &__frame {
|
|
291
291
|
background: var(--core-color-neutral-100);
|
|
292
|
-
border-color: var(--color-action-border-
|
|
292
|
+
border-color: var(--color-action-border-dark-plus1-hover);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
&--checked:hover &__frame,
|
|
296
296
|
&:has(input:checked):hover &__frame {
|
|
297
|
-
background: var(--color-action-background-
|
|
297
|
+
background: var(--color-action-background-dark-plus1-hover);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
&--checked:active &__frame,
|
|
301
301
|
&:has(input:checked):active &__frame {
|
|
302
|
-
background: var(--color-action-background-
|
|
303
|
-
border-color: var(--color-action-background-
|
|
302
|
+
background: var(--color-action-background-dark-plus1-active);
|
|
303
|
+
border-color: var(--color-action-background-dark-plus1-active);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
&--invalid:hover &__frame {
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
&--invalid#{&}--checked &__frame,
|
|
317
317
|
&--invalid:has(input:checked) &__frame {
|
|
318
318
|
background: var(--core-color-cherry-50);
|
|
319
|
-
color: var(--color-base-text-
|
|
319
|
+
color: var(--color-base-text-dark);
|
|
320
320
|
border-color: var(--core-color-cherry-500);
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -333,8 +333,8 @@
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
&__input:focus-visible + &__frame {
|
|
336
|
-
outline: 4px solid var(--color-action-border-
|
|
337
|
-
border-color: var(--color-action-border-
|
|
336
|
+
outline: 4px solid var(--color-action-border-dark-focus);
|
|
337
|
+
border-color: var(--color-action-border-light-normal);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
&__icon {
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
justify-content: center;
|
|
344
344
|
|
|
345
345
|
svg {
|
|
346
|
-
fill: var(--color-action-graphics-
|
|
346
|
+
fill: var(--color-action-graphics-light-normal);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
package/scss/helsenorge.scss
CHANGED