@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
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../scss/breakpoints' as breakpoints;
|
|
3
|
-
@import '../../../scss/supernova/styles/spacers.css';
|
|
4
3
|
|
|
5
4
|
.select {
|
|
6
5
|
select {
|
|
7
6
|
outline: none;
|
|
8
7
|
text-align: right;
|
|
9
8
|
text-align-last: right;
|
|
10
|
-
color: var(--color-action-text-
|
|
9
|
+
color: var(--color-action-text-dark-normal);
|
|
11
10
|
padding-right: 3rem;
|
|
12
11
|
height: 2.75rem;
|
|
13
12
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../../scss/font-settings' as fontSettings;
|
|
3
3
|
@use '../../../scss/breakpoints' as breakpoints;
|
|
4
|
-
@import '../../../scss/supernova/styles/colors.css';
|
|
5
|
-
@import '../../../scss/supernova/styles/spacers.css';
|
|
6
4
|
|
|
7
5
|
.loader-spinner {
|
|
8
6
|
display: inline-flex;
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
position: relative;
|
|
14
12
|
display: inline-flex;
|
|
15
13
|
flex-shrink: 0;
|
|
16
|
-
stroke: var(--color-action-graphics-
|
|
14
|
+
stroke: var(--color-action-graphics-dark-normal);
|
|
17
15
|
top: 6px;
|
|
18
16
|
|
|
19
17
|
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
@@ -22,6 +20,6 @@
|
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
&__text {
|
|
25
|
-
color: var(--color-base-text-
|
|
23
|
+
color: var(--color-base-text-dark);
|
|
26
24
|
}
|
|
27
25
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../scss/breakpoints' as breakpoints;
|
|
3
3
|
@use '../../scss/font-mixins' as fonts;
|
|
4
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
5
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
6
4
|
|
|
7
5
|
.help-details {
|
|
8
6
|
@include fonts.help-text;
|
|
9
7
|
|
|
10
|
-
color: var(--color-base-text-
|
|
11
|
-
background-color: var(--color-help-background
|
|
8
|
+
color: var(--color-base-text-dark);
|
|
9
|
+
background-color: var(--color-help-background);
|
|
12
10
|
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
13
11
|
border-radius: 0.25rem;
|
|
14
12
|
position: relative;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type HelpPanelVariants = 'normal' | '
|
|
1
|
+
export type HelpPanelVariants = 'normal' | 'subdued';
|
|
2
2
|
export interface HelpPanelProps {
|
|
3
3
|
/** The content of the component */
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/** Sets the visual variant */
|
|
6
6
|
variant?: HelpPanelVariants;
|
|
7
7
|
/** Adds custom classes to the element. */
|
|
8
8
|
className?: string;
|
|
@@ -9,10 +9,7 @@ import styles from "./styles.module.scss";
|
|
|
9
9
|
//#region src/components/HelpPanel/HelpPanel.tsx
|
|
10
10
|
var HelpPanel = ({ className, variant = "normal", testId, children, title }) => {
|
|
11
11
|
const isMobile = useIsMobileBreakpoint();
|
|
12
|
-
const containerClassName = classNames(styles["help-panel"], {
|
|
13
|
-
[styles["help-panel--compact"]]: variant === "compact",
|
|
14
|
-
[styles["help-panel--subdued"]]: variant === "subdued"
|
|
15
|
-
}, className);
|
|
12
|
+
const containerClassName = classNames(styles["help-panel"], { [styles["help-panel--subdued"]]: variant === "subdued" }, className);
|
|
16
13
|
const renderContent = () => {
|
|
17
14
|
const titleElement = title && /* @__PURE__ */ jsx(Title_default, {
|
|
18
15
|
testId: "titleId",
|
|
@@ -21,19 +18,6 @@ var HelpPanel = ({ className, variant = "normal", testId, children, title }) =>
|
|
|
21
18
|
children: title
|
|
22
19
|
});
|
|
23
20
|
const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;
|
|
24
|
-
if (variant === "compact") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
25
|
-
className: classNames(styles["help-panel__icon"], styles["help-panel__icon--compact"]),
|
|
26
|
-
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
27
|
-
svgIcon: HandWaving,
|
|
28
|
-
size: iconSize
|
|
29
|
-
})
|
|
30
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
31
|
-
className: classNames(styles["help-panel__content"], styles["help-panel__content--compact"]),
|
|
32
|
-
children: [title && /* @__PURE__ */ jsx("div", {
|
|
33
|
-
className: styles["help-panel__title-wrapper"],
|
|
34
|
-
children: titleElement
|
|
35
|
-
}), children]
|
|
36
|
-
})] });
|
|
37
21
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
38
22
|
className: styles["help-panel__icon"],
|
|
39
23
|
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpPanelVariants = 'normal' | '
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpPanelVariants = 'normal' | 'subdued';\n\nexport interface HelpPanelProps {\n /** The content of the component */\n children: React.ReactNode;\n /** Sets the visual variant */\n variant?: HelpPanelVariants;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets title if needed */\n title?: string;\n}\n\nconst HelpPanel: React.FC<HelpPanelProps> = ({ className, variant = 'normal', testId, children, title }) => {\n const isMobile = useIsMobileBreakpoint();\n\n const containerClassName = classNames(\n styles['help-panel'],\n {\n [styles['help-panel--subdued']]: variant === 'subdued',\n },\n className\n );\n\n const renderContent = (): React.ReactNode => {\n const titleElement = title && (\n <Title testId=\"titleId\" htmlMarkup={'h2'} appearance={'title6'}>\n {title}\n </Title>\n );\n\n const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;\n\n return (\n <>\n <div className={styles['help-panel__icon']}>{<Icon svgIcon={HandWaving} size={iconSize} />}</div>\n <div className={styles['help-panel__content']}>\n <div className={styles['help-panel__title-wrapper']}>{titleElement}</div>\n {children}\n </div>\n </>\n );\n };\n\n return (\n <div className={containerClassName} data-testid={testId}>\n {renderContent()}\n </div>\n );\n};\n\nexport default HelpPanel;\n","import HelpPanel from './HelpPanel';\nexport * from './HelpPanel';\nexport default HelpPanel;\n"],"mappings":";;;;;;;;;AAyBA,IAAM,aAAuC,EAAE,WAAW,UAAU,UAAU,QAAQ,UAAU,YAAY;CAC1G,MAAM,WAAW,sBAAsB;CAEvC,MAAM,qBAAqB,WACzB,OAAO,eACP,GACG,OAAO,yBAAyB,YAAY,UAC/C,GACA,SACF;CAEA,MAAM,sBAAuC;EAC3C,MAAM,eAAe,SACnB,oBAAC,eAAD;GAAO,QAAO;GAAU,YAAY;GAAM,YAAY;GACnD,UAAA;EACI,CAAA;EAGT,MAAM,WAAW,WAAW,SAAS,SAAS,SAAS;EAEvD,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAW,OAAO;GAAsB,UAAA,oBAAC,cAAD;IAAM,SAAS;IAAY,MAAM;GAAW,CAAA;EAAO,CAAA,GAChG,qBAAC,OAAD;GAAK,WAAW,OAAO;GAAvB,UAAA,CACE,oBAAC,OAAD;IAAK,WAAW,OAAO;IAA+B,UAAA;GAAkB,CAAA,GACvE,QACE;EACL,CAAA,CAAA,EAAA,CAAA;CAEN;CAEA,OACE,oBAAC,OAAD;EAAK,WAAW;EAAoB,eAAa;EAC9C,UAAA,cAAc;CACZ,CAAA;AAET;;;AC3DA,IAAA,oBAAe"}
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
@use '../../scss/font-mixins' as fonts;
|
|
3
3
|
@use '../../scss/screen-reader' as *;
|
|
4
4
|
@use '../../scss/breakpoints' as breakpoints;
|
|
5
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
6
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
7
5
|
|
|
8
6
|
.help-panel {
|
|
9
7
|
display: flex;
|
|
10
8
|
flex-direction: row;
|
|
11
9
|
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
12
|
-
background-color: var(--color-help-background
|
|
10
|
+
background-color: var(--color-help-background);
|
|
13
11
|
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
14
12
|
|
|
15
13
|
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
@@ -20,27 +18,14 @@
|
|
|
20
18
|
padding: var(--core-space-s) var(--core-space-m) var(--core-space-m);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
&--compact {
|
|
24
|
-
padding: var(--core-space-2xs) var(--core-space-s);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
21
|
&--subdued {
|
|
28
22
|
background-color: transparent;
|
|
29
23
|
}
|
|
30
24
|
|
|
31
|
-
&--white {
|
|
32
|
-
background-color: var(--color-base-background-white);
|
|
33
|
-
border: 1px solid var(--color-base-border-onlight-subtle);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
25
|
&__content {
|
|
37
26
|
@include fonts.help-text;
|
|
38
27
|
|
|
39
28
|
margin-top: 0.625rem;
|
|
40
|
-
|
|
41
|
-
&--compact {
|
|
42
|
-
margin-top: 0.625rem;
|
|
43
|
-
}
|
|
44
29
|
}
|
|
45
30
|
|
|
46
31
|
&__icon {
|
|
@@ -53,14 +38,9 @@
|
|
|
53
38
|
margin-right: var(--core-space-2xs);
|
|
54
39
|
}
|
|
55
40
|
|
|
56
|
-
@media (min-width: map.get(breakpoints.$grid-breakpoints,
|
|
41
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, xl)) {
|
|
57
42
|
margin-right: var(--core-space-s);
|
|
58
43
|
}
|
|
59
|
-
|
|
60
|
-
&--compact {
|
|
61
|
-
margin-right: var(--core-space-2xs);
|
|
62
|
-
margin-bottom: 0;
|
|
63
|
-
}
|
|
64
44
|
}
|
|
65
45
|
|
|
66
46
|
&__title-wrapper {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
'help-panel': string;
|
|
3
3
|
'help-panel__content': string;
|
|
4
|
-
'help-panel__content--compact': string;
|
|
5
4
|
'help-panel__icon': string;
|
|
6
|
-
'help-panel__icon--compact': string;
|
|
7
5
|
'help-panel__title-wrapper': string;
|
|
8
|
-
'help-panel--compact': string;
|
|
9
6
|
'help-panel--subdued': string;
|
|
10
|
-
'help-panel--white': string;
|
|
11
7
|
};
|
|
12
8
|
|
|
13
9
|
export type ClassNames = keyof Styles;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../scss/font-mixins' as fonts;
|
|
3
3
|
@use '../../scss/breakpoints' as breakpoints;
|
|
4
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
5
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
6
4
|
|
|
7
5
|
.wrapper {
|
|
8
6
|
position: relative;
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
grid-template-columns: [icon] auto [content] 1fr;
|
|
14
12
|
width: 100%;
|
|
15
13
|
overflow: hidden;
|
|
16
|
-
background-color: var(--color-help-background
|
|
14
|
+
background-color: var(--color-help-background);
|
|
17
15
|
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
18
16
|
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
19
17
|
|
|
@@ -30,7 +28,7 @@
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
&--subdued {
|
|
33
|
-
background-color: var(--color-base-background-
|
|
31
|
+
background-color: var(--color-base-background-light);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
&--collapsed {
|
|
@@ -106,20 +104,20 @@
|
|
|
106
104
|
font-style: normal;
|
|
107
105
|
font-weight: 600;
|
|
108
106
|
line-height: 120%; // 1.2rem
|
|
109
|
-
background-color: var(--color-help-graphics
|
|
107
|
+
background-color: var(--color-help-graphics);
|
|
110
108
|
|
|
111
109
|
&:hover {
|
|
112
|
-
background-color: var(--color-help-graphics-
|
|
110
|
+
background-color: var(--color-help-graphics-plus2);
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
&:active {
|
|
116
|
-
background-color: var(--color-help-graphics-
|
|
114
|
+
background-color: var(--color-help-graphics-plus1);
|
|
117
115
|
}
|
|
118
116
|
|
|
119
117
|
&:focus-visible {
|
|
120
|
-
border: 1px solid var(--color-base-graphics-
|
|
118
|
+
border: 1px solid var(--color-base-graphics-light);
|
|
121
119
|
outline: none;
|
|
122
|
-
box-shadow: 0 0 0 3px var(--color-base-graphics-
|
|
120
|
+
box-shadow: 0 0 0 3px var(--color-base-graphics-dark);
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
123
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type HelpTriggerIconSizes = 'inherit' | '
|
|
1
|
+
export type HelpTriggerIconSizes = 'inherit' | 'normal' | 'large' | 'xlarge';
|
|
2
2
|
export type HelpTriggerIconTags = 'button' | 'span';
|
|
3
3
|
export type HelpTriggerWeights = 'normal' | 'strong';
|
|
4
4
|
export interface HelpTriggerIconProps extends Pick<React.InputHTMLAttributes<HTMLButtonElement>, 'onClick' | 'aria-haspopup' | 'aria-controls' | 'aria-expanded'> {
|
|
@@ -13,7 +13,7 @@ export interface HelpTriggerIconProps extends Pick<React.InputHTMLAttributes<HTM
|
|
|
13
13
|
/** Adds custom classes to the element. */
|
|
14
14
|
className?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Size of the Icon. Default:
|
|
16
|
+
* Size of the Icon. Default: normal.
|
|
17
17
|
*/
|
|
18
18
|
size?: HelpTriggerIconSizes;
|
|
19
19
|
/** Sets the data-testid attribute. */
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../scss/breakpoints' as breakpoints;
|
|
3
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
4
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
5
3
|
|
|
6
|
-
$trigger-
|
|
4
|
+
$trigger-normal-size: 1.25rem;
|
|
7
5
|
$trigger-large-size: 1.5rem;
|
|
8
6
|
$trigger-xl-size: 2rem;
|
|
9
|
-
$trigger-
|
|
7
|
+
$trigger-normal-margin: 0.125rem;
|
|
10
8
|
$trigger-large-margin: 0.25rem;
|
|
11
9
|
$trigger-xl-margin: 0.25rem;
|
|
12
|
-
$outline-
|
|
10
|
+
$outline-normal-width: 2px;
|
|
13
11
|
$outline-large-width: 2.2px;
|
|
14
12
|
$outline-xl-width: 2.5px;
|
|
15
13
|
$outline-focus-inner-width: 2px;
|
|
@@ -69,23 +67,23 @@ $outline-focus-outer-width: 5px;
|
|
|
69
67
|
$outline-width: clamp(0px, 0.3em, 3px);
|
|
70
68
|
|
|
71
69
|
inset: calc(-1 * (#{$outline-width}/ 3));
|
|
72
|
-
box-shadow: inset 0 0 0 #{$outline-width} var(--color-action-border-
|
|
70
|
+
box-shadow: inset 0 0 0 #{$outline-width} var(--color-action-border-dark-focus);
|
|
73
71
|
z-index: 1;
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
|
|
78
|
-
&--
|
|
76
|
+
&--normal {
|
|
79
77
|
svg {
|
|
80
|
-
width: $trigger-
|
|
81
|
-
height: $trigger-
|
|
78
|
+
width: $trigger-normal-size;
|
|
79
|
+
height: $trigger-normal-size;
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
&--large {
|
|
86
84
|
svg {
|
|
87
|
-
height: $trigger-
|
|
88
|
-
width: $trigger-
|
|
85
|
+
height: $trigger-normal-size;
|
|
86
|
+
width: $trigger-normal-size;
|
|
89
87
|
|
|
90
88
|
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
91
89
|
height: $trigger-large-size;
|
|
@@ -94,23 +92,23 @@ $outline-focus-outer-width: 5px;
|
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
&--
|
|
98
|
-
margin: $trigger-
|
|
95
|
+
&--normal#{&}--is-button {
|
|
96
|
+
margin: $trigger-normal-margin;
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
&--large#{&}--is-button {
|
|
102
|
-
margin: $trigger-
|
|
100
|
+
margin: $trigger-normal-margin;
|
|
103
101
|
|
|
104
102
|
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
105
103
|
margin: $trigger-large-margin;
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
&--
|
|
107
|
+
&--normal#{&}--is-button,
|
|
110
108
|
&--large#{&}--is-button {
|
|
111
109
|
&:focus-visible {
|
|
112
110
|
box-shadow: none;
|
|
113
|
-
outline: 3px solid var(--color-action-border-
|
|
111
|
+
outline: 3px solid var(--color-action-border-dark-focus);
|
|
114
112
|
outline-offset: -2px;
|
|
115
113
|
}
|
|
116
114
|
}
|
|
@@ -132,7 +130,7 @@ $outline-focus-outer-width: 5px;
|
|
|
132
130
|
|
|
133
131
|
&:focus-visible {
|
|
134
132
|
box-shadow: none;
|
|
135
|
-
outline: 3.5px solid var(--color-action-border-
|
|
133
|
+
outline: 3.5px solid var(--color-action-border-dark-focus);
|
|
136
134
|
outline-offset: -2px;
|
|
137
135
|
}
|
|
138
136
|
|
|
@@ -152,22 +150,22 @@ $outline-focus-outer-width: 5px;
|
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
&--strong {
|
|
155
|
-
background-color: var(--color-help-graphics
|
|
153
|
+
background-color: var(--color-help-graphics);
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
&--strong#{&}--is-button {
|
|
159
157
|
&:hover {
|
|
160
|
-
background-color: var(--color-help-graphics-
|
|
158
|
+
background-color: var(--color-help-graphics-plus2);
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
&:active {
|
|
164
|
-
background-color: var(--color-help-graphics
|
|
162
|
+
background-color: var(--color-help-graphics);
|
|
165
163
|
}
|
|
166
164
|
|
|
167
165
|
&:focus-visible {
|
|
168
166
|
box-shadow:
|
|
169
|
-
0 0 0 #{$outline-focus-inner-width} var(--color-base-graphics-
|
|
170
|
-
0 0 0 calc(#{$outline-focus-outer-width}) var(--color-action-border-
|
|
167
|
+
0 0 0 #{$outline-focus-inner-width} var(--color-base-graphics-light),
|
|
168
|
+
0 0 0 calc(#{$outline-focus-outer-width}) var(--color-action-border-dark-focus);
|
|
171
169
|
outline: none;
|
|
172
170
|
|
|
173
171
|
&::after {
|
|
@@ -3,7 +3,7 @@ export type Styles = {
|
|
|
3
3
|
'help-trigger-icon--inherit': string;
|
|
4
4
|
'help-trigger-icon--is-button': string;
|
|
5
5
|
'help-trigger-icon--large': string;
|
|
6
|
-
'help-trigger-icon--
|
|
6
|
+
'help-trigger-icon--normal': string;
|
|
7
7
|
'help-trigger-icon--strong': string;
|
|
8
8
|
'help-trigger-icon--xlarge': string;
|
|
9
9
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../scss/breakpoints' as breakpoints;
|
|
3
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
4
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
5
3
|
|
|
6
4
|
$trigger-medium-size: 1.25rem;
|
|
7
5
|
$trigger-large-size: 1.5rem;
|
|
@@ -12,7 +10,7 @@ $outline-xl-width: 2.5px;
|
|
|
12
10
|
|
|
13
11
|
.help-trigger-inline {
|
|
14
12
|
display: inline;
|
|
15
|
-
color: var(--color-help-graphics
|
|
13
|
+
color: var(--color-help-graphics);
|
|
16
14
|
cursor: pointer;
|
|
17
15
|
text-align: start;
|
|
18
16
|
text-decoration: none;
|
|
@@ -25,12 +23,12 @@ $outline-xl-width: 2.5px;
|
|
|
25
23
|
|
|
26
24
|
&:hover,
|
|
27
25
|
&:active {
|
|
28
|
-
color: var(--color-help-graphics-
|
|
26
|
+
color: var(--color-help-graphics-plus2);
|
|
29
27
|
background-color: var(--color-help-background-transparent-onlight-hover);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
&:focus-visible {
|
|
33
|
-
outline: 3px solid var(--color-action-border-
|
|
31
|
+
outline: 3px solid var(--color-action-border-dark-focus);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
&:active {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../scss/breakpoints' as breakpoints;
|
|
3
3
|
@use '../../scss/font-mixins' as fonts;
|
|
4
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
5
|
-
@import '../../scss/supernova/styles/spacers.css';
|
|
6
4
|
|
|
7
5
|
$trigger-medium-size: 1.25rem;
|
|
8
6
|
$trigger-large-size: 1.5rem;
|
|
@@ -22,7 +20,7 @@ $outline-xl-width: 2.5px;
|
|
|
22
20
|
border: 0;
|
|
23
21
|
min-width: 4.6rem;
|
|
24
22
|
min-height: 2.75rem;
|
|
25
|
-
color: var(--color-help-graphics
|
|
23
|
+
color: var(--color-help-graphics);
|
|
26
24
|
padding: 0 var(--core-space-3xs);
|
|
27
25
|
font-size: 1rem;
|
|
28
26
|
font-weight: 600;
|
|
@@ -36,12 +34,12 @@ $outline-xl-width: 2.5px;
|
|
|
36
34
|
|
|
37
35
|
&:hover,
|
|
38
36
|
&:active {
|
|
39
|
-
color: var(--color-help-graphics-
|
|
37
|
+
color: var(--color-help-graphics-plus2);
|
|
40
38
|
background-color: var(--color-help-background-transparent-onlight-hover);
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
&:focus-visible {
|
|
44
|
-
outline: 3px solid var(--color-action-border-
|
|
42
|
+
outline: 3px solid var(--color-action-border-dark-focus);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
&:active {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
@use '../../scss/screen-reader' as *;
|
|
5
5
|
@import '../../scss/breakpoints';
|
|
6
6
|
@import '../../scss/grid';
|
|
7
|
-
@import '../../scss/supernova/styles/colors.css';
|
|
8
7
|
|
|
9
8
|
.highlightpanel {
|
|
10
9
|
$colors: 'neutral', 'blueberry', 'cherry';
|
|
@@ -33,8 +32,8 @@
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
&--white {
|
|
36
|
-
background-color: var(--color-base-background-
|
|
37
|
-
border: 1px solid var(--color-base-border-
|
|
35
|
+
background-color: var(--color-base-background-light);
|
|
36
|
+
border: 1px solid var(--color-base-border-light);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__content {
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { AriaLabelAttributes } from '../../utils/accessibility';
|
|
2
2
|
interface HorizontalScrollProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Bredden på elementet som potensielt vil scrolle horisontalt i px
|
|
6
|
-
*/
|
|
7
|
-
childWidth: number;
|
|
8
4
|
/** Sets the data-testid attribute. */
|
|
9
5
|
testId?: string;
|
|
10
6
|
}
|
|
@@ -14,15 +14,12 @@ $gradient:
|
|
|
14
14
|
|
|
15
15
|
&__viewport {
|
|
16
16
|
display: flex;
|
|
17
|
+
overflow: auto hidden;
|
|
17
18
|
|
|
18
19
|
&:focus-visible {
|
|
19
20
|
outline: spacers.getSpacer(4xs) solid palette.$black;
|
|
20
21
|
outline-offset: -1px;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
&--overflow {
|
|
24
|
-
overflow: auto hidden;
|
|
25
|
-
}
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
&__indicator {
|
|
@@ -1394,43 +1394,47 @@ var AdditionalIconInformation_default = {
|
|
|
1394
1394
|
},
|
|
1395
1395
|
starstroke: {
|
|
1396
1396
|
alternativeName: "",
|
|
1397
|
-
categories: ""
|
|
1397
|
+
categories: "System, Snarvei"
|
|
1398
1398
|
},
|
|
1399
1399
|
starfill: {
|
|
1400
1400
|
alternativeName: "",
|
|
1401
|
-
categories: ""
|
|
1401
|
+
categories: "System, Snarvei"
|
|
1402
1402
|
},
|
|
1403
1403
|
measuringtape: {
|
|
1404
1404
|
alternativeName: "",
|
|
1405
|
-
categories: ""
|
|
1405
|
+
categories: "Generisk"
|
|
1406
1406
|
},
|
|
1407
1407
|
thumbsup: {
|
|
1408
1408
|
alternativeName: "Tommel Opp",
|
|
1409
|
-
categories: ""
|
|
1409
|
+
categories: "Generisk"
|
|
1410
1410
|
},
|
|
1411
1411
|
thumbsdown: {
|
|
1412
1412
|
alternativeName: "Tommel Ned",
|
|
1413
|
-
categories: ""
|
|
1413
|
+
categories: "Generisk"
|
|
1414
1414
|
},
|
|
1415
1415
|
consentdocument: {
|
|
1416
1416
|
alternativeName: "",
|
|
1417
|
-
categories: ""
|
|
1417
|
+
categories: "Generisk"
|
|
1418
1418
|
},
|
|
1419
1419
|
healthcarepersonnelsecurity: {
|
|
1420
1420
|
alternativeName: "",
|
|
1421
|
-
categories: ""
|
|
1421
|
+
categories: "Generisk"
|
|
1422
1422
|
},
|
|
1423
1423
|
historydocument: {
|
|
1424
1424
|
alternativeName: "",
|
|
1425
|
-
categories: ""
|
|
1425
|
+
categories: "Generisk"
|
|
1426
1426
|
},
|
|
1427
1427
|
personcommunication: {
|
|
1428
1428
|
alternativeName: "",
|
|
1429
|
-
categories: ""
|
|
1429
|
+
categories: "Generisk"
|
|
1430
1430
|
},
|
|
1431
1431
|
persondocument: {
|
|
1432
1432
|
alternativeName: "",
|
|
1433
|
-
categories: ""
|
|
1433
|
+
categories: "Generisk"
|
|
1434
|
+
},
|
|
1435
|
+
yesno: {
|
|
1436
|
+
alternativeName: "",
|
|
1437
|
+
categories: "Generisk"
|
|
1434
1438
|
}
|
|
1435
1439
|
};
|
|
1436
1440
|
//#endregion
|