@helsenorge/designsystem-react 15.7.1 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/lib/Button.js +2 -2
  2. package/lib/Button.js.map +1 -1
  3. package/lib/CHANGELOG.md +2657 -996
  4. package/lib/Close.js +1 -1
  5. package/lib/Close.js.map +1 -1
  6. package/lib/Drawer.js +2 -4
  7. package/lib/Drawer.js.map +1 -1
  8. package/lib/DrawerNavigation.js +1 -0
  9. package/lib/DrawerNavigation.js.map +1 -1
  10. package/lib/Duolist.js +5 -1
  11. package/lib/Duolist.js.map +1 -1
  12. package/lib/ElementHeader.js.map +1 -1
  13. package/lib/FilterLinkList.js +1 -1
  14. package/lib/FilterLinkList.js.map +1 -1
  15. package/lib/FormGroup.js +3 -3
  16. package/lib/FormGroup.js.map +1 -1
  17. package/lib/HelpDetails.js +1 -1
  18. package/lib/HelpTriggerIcon.js +2 -2
  19. package/lib/HelpTriggerIcon.js.map +1 -1
  20. package/lib/HelpTriggerStandalone.js +1 -1
  21. package/lib/HelpTriggerStandalone.js.map +1 -1
  22. package/lib/LazyIcon.js +1 -0
  23. package/lib/LazyIcon.js.map +1 -1
  24. package/lib/LazyIllustration.js +2 -0
  25. package/lib/LazyIllustration.js.map +1 -1
  26. package/lib/LinkList.js +10 -10
  27. package/lib/LinkList.js.map +1 -1
  28. package/lib/ListEditMode.js +1 -1
  29. package/lib/ListEditMode.js.map +1 -1
  30. package/lib/PopOver.js +2 -2
  31. package/lib/PopOver.js.map +1 -1
  32. package/lib/Radio.js +65 -55
  33. package/lib/Radio.js.map +1 -1
  34. package/lib/Radio2.js +74 -0
  35. package/lib/Radio2.js.map +1 -0
  36. package/lib/RadioMarker.js +2 -2
  37. package/lib/RadioMarker.js.map +1 -1
  38. package/lib/TabList.js +5 -5
  39. package/lib/TabList.js.map +1 -1
  40. package/lib/Toggle.js +2 -2
  41. package/lib/Toggle.js.map +1 -1
  42. package/lib/VisualRadio.js +1 -1
  43. package/lib/VisualRadio.js.map +1 -1
  44. package/lib/components/AnchorLink/styles.module.scss +3 -4
  45. package/lib/components/ArticleTeaser/styles.module.scss +12 -12
  46. package/lib/components/Button/Button.d.ts +1 -1
  47. package/lib/components/Button/styles.module.scss +111 -60
  48. package/lib/components/Button/styles.module.scss.d.ts +1 -1
  49. package/lib/components/Checkbox/CheckboxMarker/styles.module.scss +6 -6
  50. package/lib/components/Chip/styles.module.scss +2 -3
  51. package/lib/components/Close/styles.module.scss +2 -3
  52. package/lib/components/DictionaryTrigger/index.js +26 -1
  53. package/lib/{DictionaryTrigger.js.map → components/DictionaryTrigger/index.js.map} +1 -1
  54. package/lib/components/DictionaryTrigger/styles.module.scss +6 -8
  55. package/lib/components/Drawer/Drawer.d.ts +0 -4
  56. package/lib/components/Drawer/DrawerBackButton.module.scss +1 -2
  57. package/lib/components/Drawer/styles.module.scss +6 -3
  58. package/lib/components/Dropdown/SingleSelect/styles.module.scss +0 -2
  59. package/lib/components/Dropdown/index.js +9 -17
  60. package/lib/components/Dropdown/index.js.map +1 -1
  61. package/lib/components/Dropdown/styles.module.scss +12 -14
  62. package/lib/components/Duolist/Duolist.d.ts +14 -2
  63. package/lib/components/Duolist/styles.module.scss +32 -8
  64. package/lib/components/Duolist/styles.module.scss.d.ts +3 -0
  65. package/lib/components/ElementHeader/ElementHeader.d.ts +1 -1
  66. package/lib/components/ElementHeader/styles.module.scss +1 -1
  67. package/lib/components/EmptyState/styles.module.scss +1 -2
  68. package/lib/components/ErrorWrapper/styles.module.scss +3 -3
  69. package/lib/components/Expander/styles.module.scss +0 -2
  70. package/lib/components/Expander/styles.module.scss.d.ts +1 -1
  71. package/lib/components/ExpanderList/index.js +20 -19
  72. package/lib/components/ExpanderList/index.js.map +1 -1
  73. package/lib/components/ExpanderList/styles.module.scss +10 -11
  74. package/lib/components/FavoriteButton/index.js +3 -3
  75. package/lib/components/FavoriteButton/index.js.map +1 -1
  76. package/lib/components/FavoriteButton/styles.module.scss +0 -1
  77. package/lib/components/Filter/FilterButton/styles.module.scss +5 -6
  78. package/lib/components/Filter/FilterButtonAndChipsWrapper/styles.module.scss +0 -1
  79. package/lib/components/Filter/FilterDrawer/styles.module.scss +0 -1
  80. package/lib/components/Filter/FilterLinkList/FilterLinkList.module.scss +5 -6
  81. package/lib/components/Filter/FilterOverviewSearch/styles.module.scss +1 -4
  82. package/lib/components/Filter/FilterSearch/styles.module.scss +14 -15
  83. package/lib/components/Filter/FilterSort/styles.module.scss +1 -2
  84. package/lib/components/Filter/FilterStateWrapper/styles.module.scss +0 -2
  85. package/lib/components/Filter/LoaderSpinner/styles.module.scss +2 -4
  86. package/lib/components/FormFieldTag/styles.module.scss +0 -1
  87. package/lib/components/FormGroup/styles.module.scss +0 -1
  88. package/lib/components/HelpBubble/styles.module.scss +0 -1
  89. package/lib/components/HelpDetails/styles.module.scss +2 -4
  90. package/lib/components/HelpDrawer/styles.module.scss +1 -2
  91. package/lib/components/HelpPanel/HelpPanel.d.ts +2 -2
  92. package/lib/components/HelpPanel/index.js +1 -17
  93. package/lib/components/HelpPanel/index.js.map +1 -1
  94. package/lib/components/HelpPanel/styles.module.scss +2 -22
  95. package/lib/components/HelpPanel/styles.module.scss.d.ts +0 -4
  96. package/lib/components/HelpTeaser/styles.module.scss +7 -9
  97. package/lib/components/HelpTriggerIcon/HelpTriggerIcon.d.ts +2 -2
  98. package/lib/components/HelpTriggerIcon/styles.module.scss +20 -22
  99. package/lib/components/HelpTriggerIcon/styles.module.scss.d.ts +1 -1
  100. package/lib/components/HelpTriggerInline/styles.module.scss +3 -5
  101. package/lib/components/HelpTriggerStandalone/styles.module.scss +3 -5
  102. package/lib/components/HighlightPanel/styles.module.scss +2 -3
  103. package/lib/components/Icons/AdditionalIconInformation.d.ts +4 -0
  104. package/lib/components/Icons/AdditionalIconInformation.js +14 -10
  105. package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
  106. package/lib/components/Icons/HealthcarePersonnelSecurity.js +4 -4
  107. package/lib/components/Icons/HealthcarePersonnelSecurity.js.map +1 -1
  108. package/lib/components/Icons/HistoryDocument.js +6 -7
  109. package/lib/components/Icons/HistoryDocument.js.map +1 -1
  110. package/lib/components/Icons/IconNames.d.ts +1 -1
  111. package/lib/components/Icons/IconNames.js +1 -0
  112. package/lib/components/Icons/IconNames.js.map +1 -1
  113. package/lib/components/Icons/YesNo.d.ts +3 -0
  114. package/lib/components/Icons/YesNo.js +53 -0
  115. package/lib/components/Icons/YesNo.js.map +1 -0
  116. package/lib/components/Illustrations/IllustrationNames.d.ts +1 -1
  117. package/lib/components/Illustrations/IllustrationNames.js +2 -0
  118. package/lib/components/Illustrations/IllustrationNames.js.map +1 -1
  119. package/lib/components/Illustrations/MoveAway.d.ts +11 -0
  120. package/lib/components/Illustrations/MoveAway.js +18 -0
  121. package/lib/components/Illustrations/MoveAway.js.map +1 -0
  122. package/lib/components/Illustrations/MoveAwayMedium.d.ts +3 -0
  123. package/lib/components/Illustrations/MoveAwayMedium.js +114 -0
  124. package/lib/components/Illustrations/MoveAwayMedium.js.map +1 -0
  125. package/lib/components/InfoTeaser/styles.module.scss +6 -8
  126. package/lib/components/Label/styles.module.scss +1 -1
  127. package/lib/components/LinkList/LinkList.d.ts +1 -1
  128. package/lib/components/LinkList/styles.module.scss +9 -11
  129. package/lib/components/LinkList/styles.module.scss.d.ts +1 -1
  130. package/lib/components/ListEditMode/styles.module.scss +5 -7
  131. package/lib/components/Loader/Loader.d.ts +1 -1
  132. package/lib/components/Loader/index.js +4 -4
  133. package/lib/components/Loader/index.js.map +1 -1
  134. package/lib/components/Loader/styles.module.scss +7 -7
  135. package/lib/components/Loader/styles.module.scss.d.ts +3 -3
  136. package/lib/components/Modal/constants.d.ts +1 -1
  137. package/lib/components/Modal/index.js +2 -2
  138. package/lib/components/Modal/index.js.map +1 -1
  139. package/lib/components/Modal/styles.module.scss +14 -19
  140. package/lib/components/Modal/styles.module.scss.d.ts +2 -3
  141. package/lib/components/Panel/index.js +1 -1
  142. package/lib/components/Panel/index.js.map +1 -1
  143. package/lib/components/Panel/styles.module.scss +15 -16
  144. package/lib/components/Panel/styles.module.scss.d.ts +1 -1
  145. package/lib/components/PopMenu/index.js +7 -4
  146. package/lib/components/PopMenu/index.js.map +1 -1
  147. package/lib/components/PopOver/styles.module.scss +1 -3
  148. package/lib/components/Progressbar/Progressbar.d.ts +1 -1
  149. package/lib/components/Progressbar/constants.d.ts +1 -1
  150. package/lib/components/Progressbar/index.js +4 -4
  151. package/lib/components/Progressbar/index.js.map +1 -1
  152. package/lib/components/Radio/Radio.d.ts +28 -0
  153. package/lib/components/Radio/index.d.ts +3 -0
  154. package/lib/components/Radio/index.js +7 -0
  155. package/lib/components/Radio/index.js.map +1 -0
  156. package/lib/components/{RadioButton → Radio}/styles.module.scss +8 -9
  157. package/lib/components/Radio/styles.module.scss.d.ts +26 -0
  158. package/lib/components/ServiceMessage/styles.module.scss +20 -22
  159. package/lib/components/Slider/styles.module.scss +1 -2
  160. package/lib/components/StatusDot/styles.module.scss +4 -5
  161. package/lib/components/StickyNote/index.js +2 -2
  162. package/lib/components/StickyNote/index.js.map +1 -1
  163. package/lib/components/StickyNote/styles.module.scss +9 -10
  164. package/lib/components/Tabs/TabList/styles.module.scss +20 -18
  165. package/lib/components/Tabs/TabPanel/styles.module.scss +2 -3
  166. package/lib/components/Tabs/styles.module.scss +0 -1
  167. package/lib/components/Tag/styles.module.scss +0 -1
  168. package/lib/components/Tile/styles.module.scss +5 -7
  169. package/lib/components/Toast/styles.module.scss +0 -1
  170. package/lib/components/Toggle/styles.module.scss +9 -10
  171. package/lib/components/Validation/index.js +2 -2
  172. package/lib/components/Validation/index.js.map +1 -1
  173. package/lib/components/VisualCheckboxCloud/Checkbox/styles.module.scss +0 -2
  174. package/lib/components/VisualCheckboxCloud/styles.module.scss +0 -1
  175. package/lib/components/VisualCheckboxGroup/VisualCheckbox/styles.module.scss +0 -2
  176. package/lib/components/VisualCheckboxGroup/styles.module.scss +0 -1
  177. package/lib/components/VisualContentgroupWithImage/styles.module.scss +0 -1
  178. package/lib/components/VisualRadioCloud/Radio/index.js +1 -1
  179. package/lib/components/VisualRadioCloud/Radio/styles.module.scss +0 -2
  180. package/lib/components/VisualRadioCloud/index.js +1 -1
  181. package/lib/components/VisualRadioCloud/styles.module.scss +0 -1
  182. package/lib/components/VisualRadioGroup/VisualRadio/styles.module.scss +0 -2
  183. package/lib/components/VisualRadioGroup/styles.module.scss +0 -1
  184. package/lib/constants.d.ts +2 -3
  185. package/lib/constants.js +2 -3
  186. package/lib/constants.js.map +1 -1
  187. package/lib/floating-ui.react.js +1 -458
  188. package/lib/floating-ui.react.js.map +1 -1
  189. package/lib/hooks/useDismissablePopover.d.ts +20 -0
  190. package/lib/hooks/useDismissablePopover.js +66 -0
  191. package/lib/hooks/useDismissablePopover.js.map +1 -0
  192. package/lib/hooks/useOutsideEvent.d.ts +3 -0
  193. package/lib/hooks/useOutsideEvent.js +24 -3
  194. package/lib/hooks/useOutsideEvent.js.map +1 -1
  195. package/lib/hooks/useReturnFocusOnClose.d.ts +7 -0
  196. package/lib/hooks/useReturnFocusOnClose.js +22 -0
  197. package/lib/hooks/useReturnFocusOnClose.js.map +1 -0
  198. package/lib/index.d.ts +2 -0
  199. package/lib/index.js +3 -1
  200. package/lib/scss/_visual-form.scss +47 -47
  201. package/lib/scss/helsenorge.scss +1 -0
  202. package/lib/scss/supernova/styles/colors.css +177 -122
  203. package/lib/scss/supernova/styles/typography.css +58 -51
  204. package/lib/scss/supernova-legacy/index.css +2 -0
  205. package/lib/scss/supernova-legacy/styles/legacy-colors.css +111 -0
  206. package/lib/utils/formSpacing.js +3 -3
  207. package/lib/utils/formSpacing.js.map +1 -1
  208. package/package.json +8 -14
  209. package/scss/_visual-form.scss +47 -47
  210. package/scss/helsenorge.scss +1 -0
  211. package/scss/supernova/styles/colors.css +177 -122
  212. package/scss/supernova/styles/typography.css +58 -51
  213. package/scss/supernova-legacy/index.css +2 -0
  214. package/scss/supernova-legacy/styles/legacy-colors.css +111 -0
  215. package/lib/DictionaryTrigger.js +0 -27
  216. package/lib/RadioButton.js +0 -84
  217. package/lib/RadioButton.js.map +0 -1
  218. package/lib/components/HelpTooltip/HelpTooltip.d.ts +0 -12
  219. package/lib/components/HelpTooltip/index.d.ts +0 -3
  220. package/lib/components/HelpTooltip/index.js +0 -48
  221. package/lib/components/HelpTooltip/index.js.map +0 -1
  222. package/lib/components/RadioButton/RadioButton.d.ts +0 -28
  223. package/lib/components/RadioButton/index.d.ts +0 -3
  224. package/lib/components/RadioButton/index.js +0 -7
  225. package/lib/components/RadioButton/index.js.map +0 -1
  226. package/lib/components/RadioButton/styles.module.scss.d.ts +0 -26
  227. package/lib/designsystem-react.css +0 -273
  228. /package/lib/components/{RadioButton → Radio}/RadioMarker/RadioMarker.d.ts +0 -0
  229. /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss +0 -0
  230. /package/lib/components/{RadioButton → Radio}/RadioMarker/styles.module.scss.d.ts +0 -0
@@ -1,27 +0,0 @@
1
- import { AnalyticsId } from "./constants.js";
2
- import classNames from "classnames";
3
- import { jsx } from "react/jsx-runtime";
4
- import styles from "./components/DictionaryTrigger/styles.module.scss";
5
- //#region src/components/DictionaryTrigger/DictionaryTrigger.tsx
6
- var DictionaryTrigger = (props) => {
7
- const { children, selected = false, className, testId, ref, ...rest } = props;
8
- const triggerClasses = classNames(styles.dictionarytrigger, className);
9
- return /* @__PURE__ */ jsx("button", {
10
- type: "button",
11
- "data-testid": testId,
12
- "data-analyticsid": AnalyticsId.DictionaryTrigger,
13
- className: triggerClasses,
14
- "aria-expanded": selected,
15
- ref,
16
- ...rest,
17
- children
18
- });
19
- };
20
- DictionaryTrigger.displayName = "DictionaryTrigger";
21
- //#endregion
22
- //#region src/components/DictionaryTrigger/index.ts
23
- var DictionaryTrigger_default = DictionaryTrigger;
24
- //#endregion
25
- export { DictionaryTrigger_default as t };
26
-
27
- //# sourceMappingURL=DictionaryTrigger.js.map
@@ -1,84 +0,0 @@
1
- import uuid from "./utils/uuid.js";
2
- import { AnalyticsId, FormOnColor, FormSize } from "./constants.js";
3
- import { useIdWithFallback } from "./hooks/useIdWithFallback.js";
4
- import { getAriaDescribedBy } from "./utils/accessibility.js";
5
- import { t as ErrorWrapper_default } from "./ErrorWrapper.js";
6
- import { r as renderLabelAsParent, t as getLabelText } from "./utils2.js";
7
- import { t as RadioMarker } from "./RadioMarker.js";
8
- import classNames from "classnames";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- import radioButtonStyles from "./components/RadioButton/styles.module.scss";
11
- //#region src/components/RadioButton/RadioButton.tsx
12
- var RadioButton = (props) => {
13
- const { className, defaultChecked, onChange, disabled, label, inputId = uuid(), onColor = FormOnColor.onwhite, name = inputId, size, errorText, errorTextId: errorTextIdProp, error = !!errorText, errorWrapperClassName, value = getLabelText(label), testId, required, labelClassNames, ref, ...rest } = props;
14
- const invalid = error || onColor === FormOnColor.oninvalid;
15
- const onDark = onColor === FormOnColor.ondark;
16
- const onGrey = onColor === FormOnColor.ongrey;
17
- const onBlueberry = onColor === FormOnColor.onblueberry;
18
- const onCherry = onColor === FormOnColor.oninvalid;
19
- const isLarge = size === FormSize.large;
20
- const errorTextId = useIdWithFallback(errorTextIdProp);
21
- const radioButtonWrapperClasses = classNames(radioButtonStyles["radio-button-wrapper"], {
22
- [radioButtonStyles["radio-button-wrapper__large"]]: isLarge,
23
- [radioButtonStyles["radio-button-wrapper__large--invalid"]]: isLarge && onCherry,
24
- [radioButtonStyles["radio-button-wrapper__large--on-blueberry"]]: isLarge && onBlueberry
25
- });
26
- const radioButtonLabelClasses = classNames(radioButtonStyles["radio-button-label"], {
27
- [radioButtonStyles["radio-button-label--disabled"]]: disabled,
28
- [radioButtonStyles["radio-button-label--on-dark"]]: onDark,
29
- [radioButtonStyles["radio-button-label--invalid"]]: invalid,
30
- [radioButtonStyles["radio-button-label__large"]]: isLarge,
31
- [radioButtonStyles["radio-button-label__large--disabled"]]: isLarge && disabled,
32
- [radioButtonStyles["radio-button-label__large--on-grey"]]: isLarge && onGrey,
33
- [radioButtonStyles["radio-button-label__large--on-blueberry"]]: isLarge && onBlueberry,
34
- [radioButtonStyles["radio-button-label__large--invalid"]]: isLarge && onCherry
35
- }, labelClassNames);
36
- const radioButtonClasses = classNames(radioButtonStyles["radio-button"], className);
37
- const getLabelContent = () => /* @__PURE__ */ jsxs("span", {
38
- className: radioButtonStyles["radio-button__marker-wrapper"],
39
- children: [/* @__PURE__ */ jsx("input", {
40
- ...rest,
41
- id: inputId,
42
- name,
43
- className: radioButtonClasses,
44
- type: "radio",
45
- disabled,
46
- value,
47
- ref,
48
- defaultChecked,
49
- "aria-describedby": getAriaDescribedBy(props, errorTextId),
50
- required,
51
- onChange
52
- }), /* @__PURE__ */ jsx(RadioMarker, {
53
- disabled,
54
- error: invalid,
55
- onColor,
56
- size
57
- })]
58
- });
59
- return /* @__PURE__ */ jsx(ErrorWrapper_default, {
60
- className: errorWrapperClassName,
61
- errorText,
62
- errorTextId,
63
- children: /* @__PURE__ */ jsx("div", {
64
- "data-testid": testId,
65
- "data-analyticsid": AnalyticsId.RadioButton,
66
- className: radioButtonWrapperClasses,
67
- children: renderLabelAsParent({
68
- label,
69
- children: getLabelContent(),
70
- inputId,
71
- onColor,
72
- labelClassName: radioButtonLabelClasses,
73
- sublabelWrapperClassName: radioButtonStyles["radiobutton-sublabel-wrapper"],
74
- large: isLarge,
75
- afterLabelChildrenClassName: radioButtonStyles["radiobutton-afterlabelchildren-wrapper"]
76
- })
77
- })
78
- });
79
- };
80
- RadioButton.displayName = "RadioButton";
81
- //#endregion
82
- export { RadioButton as t };
83
-
84
- //# sourceMappingURL=RadioButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton.js","names":[],"sources":["../src/components/RadioButton/RadioButton.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { ErrorWrapperClassNameProps } from '../ErrorWrapper';\n\nimport RadioMarker from './RadioMarker/RadioMarker';\nimport { AnalyticsId, FormOnColor, FormSize } from '../../constants';\nimport { useIdWithFallback } from '../../hooks/useIdWithFallback';\nimport { getAriaDescribedBy } from '../../utils/accessibility';\nimport { uuid } from '../../utils/uuid';\nimport ErrorWrapper from '../ErrorWrapper';\nimport { getLabelText, renderLabelAsParent } from '../Label/utils';\n\nimport radioButtonStyles from './styles.module.scss';\n\nexport interface RadioButtonProps\n extends\n ErrorWrapperClassNameProps,\n Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'defaultChecked' | 'required' | 'onChange'\n > {\n /** Adds custom classes to the element. */\n className?: string;\n /** The <Label/> next to the radioButton - sublabels kan ikke kombineres med large variant */\n label: React.ReactNode;\n /** Adds custom classes to the label element. */\n labelClassNames?: string;\n /** input id of the radioButton */\n inputId?: string;\n /** Changes the visuals of the radioButton */\n onColor?: keyof typeof FormOnColor;\n /** Changes the visuals of the radioButton. Large version only works when used inside a FormGroup wrapper. */\n size?: keyof typeof FormSize;\n /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */\n error?: boolean;\n /** Error text to show above the component */\n errorText?: string;\n /** Error text id */\n errorTextId?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Ref passed to the input element */\n ref?: React.Ref<HTMLInputElement | null>;\n}\n\nexport const RadioButton: React.FC<RadioButtonProps> = props => {\n const {\n className,\n defaultChecked,\n onChange,\n disabled,\n label,\n inputId = uuid(),\n onColor = FormOnColor.onwhite,\n name = inputId,\n size,\n errorText,\n errorTextId: errorTextIdProp,\n error = !!errorText,\n errorWrapperClassName,\n value = getLabelText(label),\n testId,\n required,\n labelClassNames,\n ref,\n ...rest\n } = props;\n const invalid = error || onColor === FormOnColor.oninvalid;\n const onDark = onColor === FormOnColor.ondark;\n const onGrey = onColor === FormOnColor.ongrey;\n const onBlueberry = onColor === FormOnColor.onblueberry;\n const onCherry = onColor === FormOnColor.oninvalid;\n const isLarge = size === FormSize.large;\n\n const errorTextId = useIdWithFallback(errorTextIdProp);\n\n const radioButtonWrapperClasses = classNames(radioButtonStyles['radio-button-wrapper'], {\n [radioButtonStyles['radio-button-wrapper__large']]: isLarge,\n [radioButtonStyles['radio-button-wrapper__large--invalid']]: isLarge && onCherry,\n [radioButtonStyles['radio-button-wrapper__large--on-blueberry']]: isLarge && onBlueberry,\n });\n const radioButtonLabelClasses = classNames(\n radioButtonStyles['radio-button-label'],\n {\n [radioButtonStyles['radio-button-label--disabled']]: disabled,\n [radioButtonStyles['radio-button-label--on-dark']]: onDark,\n [radioButtonStyles['radio-button-label--invalid']]: invalid,\n [radioButtonStyles['radio-button-label__large']]: isLarge,\n [radioButtonStyles['radio-button-label__large--disabled']]: isLarge && disabled,\n [radioButtonStyles['radio-button-label__large--on-grey']]: isLarge && onGrey,\n [radioButtonStyles['radio-button-label__large--on-blueberry']]: isLarge && onBlueberry,\n [radioButtonStyles['radio-button-label__large--invalid']]: isLarge && onCherry,\n },\n labelClassNames\n );\n const radioButtonClasses = classNames(radioButtonStyles['radio-button'], className);\n\n const getLabelContent = (): React.ReactNode => (\n <span className={radioButtonStyles['radio-button__marker-wrapper']}>\n <input\n {...rest}\n id={inputId}\n name={name}\n className={radioButtonClasses}\n type=\"radio\"\n disabled={disabled}\n value={value}\n ref={ref}\n defaultChecked={defaultChecked}\n aria-describedby={getAriaDescribedBy(props, errorTextId)}\n required={required}\n onChange={onChange}\n />\n <RadioMarker disabled={disabled} error={invalid} onColor={onColor} size={size} />\n </span>\n );\n\n return (\n <ErrorWrapper className={errorWrapperClassName} errorText={errorText} errorTextId={errorTextId}>\n <div data-testid={testId} data-analyticsid={AnalyticsId.RadioButton} className={radioButtonWrapperClasses}>\n {renderLabelAsParent({\n label: label,\n children: getLabelContent(),\n inputId: inputId,\n onColor: onColor as FormOnColor,\n labelClassName: radioButtonLabelClasses,\n sublabelWrapperClassName: radioButtonStyles['radiobutton-sublabel-wrapper'],\n large: isLarge,\n afterLabelChildrenClassName: radioButtonStyles['radiobutton-afterlabelchildren-wrapper'],\n })}\n </div>\n </ErrorWrapper>\n );\n};\n\nRadioButton.displayName = 'RadioButton';\n\nexport default RadioButton;\n"],"mappings":";;;;;;;;;;;AA6CA,IAAa,eAA0C,UAAS;CAC9D,MAAM,EACJ,WACA,gBACA,UACA,UACA,OACA,UAAU,KAAK,GACf,UAAU,YAAY,SACtB,OAAO,SACP,MACA,WACA,aAAa,iBACb,QAAQ,CAAC,CAAC,WACV,uBACA,QAAQ,aAAa,KAAK,GAC1B,QACA,UACA,iBACA,KACA,GAAG,SACD;CACJ,MAAM,UAAU,SAAS,YAAY,YAAY;CACjD,MAAM,SAAS,YAAY,YAAY;CACvC,MAAM,SAAS,YAAY,YAAY;CACvC,MAAM,cAAc,YAAY,YAAY;CAC5C,MAAM,WAAW,YAAY,YAAY;CACzC,MAAM,UAAU,SAAS,SAAS;CAElC,MAAM,cAAc,kBAAkB,eAAe;CAErD,MAAM,4BAA4B,WAAW,kBAAkB,yBAAyB;GACrF,kBAAkB,iCAAiC;GACnD,kBAAkB,0CAA0C,WAAW;GACvE,kBAAkB,+CAA+C,WAAW;CAC/E,CAAC;CACD,MAAM,0BAA0B,WAC9B,kBAAkB,uBAClB;GACG,kBAAkB,kCAAkC;GACpD,kBAAkB,iCAAiC;GACnD,kBAAkB,iCAAiC;GACnD,kBAAkB,+BAA+B;GACjD,kBAAkB,yCAAyC,WAAW;GACtE,kBAAkB,wCAAwC,WAAW;GACrE,kBAAkB,6CAA6C,WAAW;GAC1E,kBAAkB,wCAAwC,WAAW;CACxE,GACA,eACF;CACA,MAAM,qBAAqB,WAAW,kBAAkB,iBAAiB,SAAS;CAElF,MAAM,wBACJ,qBAAC,QAAD;EAAM,WAAW,kBAAkB;EAAnC,UAAA,CACE,oBAAC,SAAD;GACE,GAAI;GACJ,IAAI;GACE;GACN,WAAW;GACX,MAAK;GACK;GACH;GACF;GACW;GAChB,oBAAkB,mBAAmB,OAAO,WAAW;GAC7C;GACA;EACX,CAAA,GACD,oBAAC,aAAD;GAAuB;GAAU,OAAO;GAAkB;GAAe;EAAO,CAAA,CAC5E;;CAGR,OACE,oBAAC,sBAAD;EAAc,WAAW;EAAkC;EAAwB;EACjF,UAAA,oBAAC,OAAD;GAAK,eAAa;GAAQ,oBAAkB,YAAY;GAAa,WAAW;GAC7E,UAAA,oBAAoB;IACZ;IACP,UAAU,gBAAgB;IACjB;IACA;IACT,gBAAgB;IAChB,0BAA0B,kBAAkB;IAC5C,OAAO;IACP,6BAA6B,kBAAkB;GACjD,CAAC;EACE,CAAA;CACO,CAAA;AAElB;AAEA,YAAY,cAAc"}
@@ -1,12 +0,0 @@
1
- import { FloatingDelayGroup } from '@floating-ui/react';
2
- export interface HelpTooltipProps {
3
- /** Ordet som skal ha en tilhørende tooltip. Det skal bare sendes inn string som children. Er satt til ReactNode for å kunne brukes i CMSet. */
4
- children: React.ReactNode;
5
- /** Teksten som skal vises i boblen som åpnes */
6
- description: React.ReactNode;
7
- /** Valgfri test-id */
8
- testId?: string;
9
- }
10
- export declare const HelpTooltip: React.FC<HelpTooltipProps>;
11
- export declare const HelpTooltipDelayGroup: typeof FloatingDelayGroup;
12
- export default HelpTooltip;
@@ -1,3 +0,0 @@
1
- import { default as HelpTooltip } from './HelpTooltip';
2
- export * from './HelpTooltip';
3
- export default HelpTooltip;
@@ -1,48 +0,0 @@
1
- import { t as DictionaryTrigger_default } from "../../DictionaryTrigger.js";
2
- import { a as useDismiss, c as useHover, l as useInteractions, n as FloatingDelayGroup, o as useFloating, s as useFocus } from "../../floating-ui.react.js";
3
- import { t as PopOver_default } from "../../PopOver.js";
4
- import { useId, useRef, useState } from "react";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
- //#region src/components/HelpTooltip/HelpTooltip.tsx
7
- var HelpTooltip = ({ children, description, testId }) => {
8
- const popoverId = useId();
9
- const [showTooltip, setShowTooltip] = useState(false);
10
- const wordRef = useRef(null);
11
- const { refs, context } = useFloating({
12
- open: showTooltip,
13
- elements: { reference: wordRef.current },
14
- onOpenChange: setShowTooltip
15
- });
16
- const hover = useHover(context, { move: false });
17
- const focus = useFocus(context);
18
- const dismiss = useDismiss(context);
19
- const { getReferenceProps } = useInteractions([
20
- hover,
21
- focus,
22
- dismiss
23
- ]);
24
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DictionaryTrigger_default, {
25
- ref: wordRef,
26
- ...getReferenceProps(),
27
- selected: showTooltip,
28
- "aria-describedby": popoverId,
29
- "data-testid": testId,
30
- children
31
- }), /* @__PURE__ */ jsx(PopOver_default, {
32
- role: "tooltip",
33
- ref: refs.setFloating,
34
- id: popoverId,
35
- show: showTooltip,
36
- testId,
37
- controllerRef: wordRef,
38
- children: description
39
- })] });
40
- };
41
- var HelpTooltipDelayGroup = FloatingDelayGroup;
42
- //#endregion
43
- //#region src/components/HelpTooltip/index.ts
44
- var HelpTooltip_default = HelpTooltip;
45
- //#endregion
46
- export { HelpTooltip, HelpTooltipDelayGroup, HelpTooltip_default as default };
47
-
48
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTooltip/HelpTooltip.tsx","../../../src/components/HelpTooltip/index.ts"],"sourcesContent":["import { useState, useRef, useId } from 'react';\n\nimport { useFloating, useHover, useFocus, useDismiss, useInteractions, FloatingDelayGroup } from '@floating-ui/react';\n\nimport DictionaryTrigger from '../DictionaryTrigger';\nimport PopOver from '../PopOver';\n\nexport interface HelpTooltipProps {\n /** Ordet som skal ha en tilhørende tooltip. Det skal bare sendes inn string som children. Er satt til ReactNode for å kunne brukes i CMSet. */\n children: React.ReactNode;\n /** Teksten som skal vises i boblen som åpnes */\n description: React.ReactNode;\n /** Valgfri test-id */\n testId?: string;\n}\n\nexport const HelpTooltip: React.FC<HelpTooltipProps> = ({ children, description, testId }) => {\n const popoverId = useId();\n const [showTooltip, setShowTooltip] = useState(false);\n\n const wordRef = useRef<HTMLButtonElement>(null);\n const { refs, context } = useFloating({\n open: showTooltip,\n elements: {\n reference: wordRef.current,\n },\n onOpenChange: setShowTooltip,\n });\n\n const hover = useHover(context, { move: false });\n const focus = useFocus(context);\n const dismiss = useDismiss(context);\n\n const { getReferenceProps } = useInteractions([hover, focus, dismiss]);\n\n return (\n <>\n <DictionaryTrigger ref={wordRef} {...getReferenceProps()} selected={showTooltip} aria-describedby={popoverId} data-testid={testId}>\n {children}\n </DictionaryTrigger>\n <PopOver role=\"tooltip\" ref={refs.setFloating} id={popoverId} show={showTooltip} testId={testId} controllerRef={wordRef}>\n {description}\n </PopOver>\n </>\n );\n};\n\nexport const HelpTooltipDelayGroup = FloatingDelayGroup;\n\nexport default HelpTooltip;\n","import HelpTooltip from './HelpTooltip';\nexport * from './HelpTooltip';\nexport default HelpTooltip;\n"],"mappings":";;;;;;AAgBA,IAAa,eAA2C,EAAE,UAAU,aAAa,aAAa;CAC5F,MAAM,YAAY,MAAM;CACxB,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CAEpD,MAAM,UAAU,OAA0B,IAAI;CAC9C,MAAM,EAAE,MAAM,YAAY,YAAY;EACpC,MAAM;EACN,UAAU,EACR,WAAW,QAAQ,QACrB;EACA,cAAc;CAChB,CAAC;CAED,MAAM,QAAQ,SAAS,SAAS,EAAE,MAAM,MAAM,CAAC;CAC/C,MAAM,QAAQ,SAAS,OAAO;CAC9B,MAAM,UAAU,WAAW,OAAO;CAElC,MAAM,EAAE,sBAAsB,gBAAgB;EAAC;EAAO;EAAO;CAAO,CAAC;CAErE,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,2BAAD;EAAmB,KAAK;EAAS,GAAI,kBAAkB;EAAG,UAAU;EAAa,oBAAkB;EAAW,eAAa;EACxH;CACgB,CAAA,GACnB,oBAAC,iBAAD;EAAS,MAAK;EAAU,KAAK,KAAK;EAAa,IAAI;EAAW,MAAM;EAAqB;EAAQ,eAAe;EAC7G,UAAA;CACM,CAAA,CACT,EAAA,CAAA;AAEN;AAEA,IAAa,wBAAwB;;;AC7CrC,IAAA,sBAAe"}
@@ -1,28 +0,0 @@
1
- import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
2
- import { FormOnColor, FormSize } from '../../constants';
3
- export interface RadioButtonProps extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'defaultChecked' | 'required' | 'onChange'> {
4
- /** Adds custom classes to the element. */
5
- className?: string;
6
- /** The <Label/> next to the radioButton - sublabels kan ikke kombineres med large variant */
7
- label: React.ReactNode;
8
- /** Adds custom classes to the label element. */
9
- labelClassNames?: string;
10
- /** input id of the radioButton */
11
- inputId?: string;
12
- /** Changes the visuals of the radioButton */
13
- onColor?: keyof typeof FormOnColor;
14
- /** Changes the visuals of the radioButton. Large version only works when used inside a FormGroup wrapper. */
15
- size?: keyof typeof FormSize;
16
- /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */
17
- error?: boolean;
18
- /** Error text to show above the component */
19
- errorText?: string;
20
- /** Error text id */
21
- errorTextId?: string;
22
- /** Sets the data-testid attribute. */
23
- testId?: string;
24
- /** Ref passed to the input element */
25
- ref?: React.Ref<HTMLInputElement | null>;
26
- }
27
- export declare const RadioButton: React.FC<RadioButtonProps>;
28
- export default RadioButton;
@@ -1,3 +0,0 @@
1
- import { default as RadioButton } from './RadioButton';
2
- export * from './RadioButton';
3
- export default RadioButton;
@@ -1,7 +0,0 @@
1
- import { t as RadioButton } from "../../RadioButton.js";
2
- //#region src/components/RadioButton/index.ts
3
- var RadioButton_default = RadioButton;
4
- //#endregion
5
- export { RadioButton, RadioButton_default as default };
6
-
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/RadioButton/index.ts"],"sourcesContent":["import RadioButton from './RadioButton';\nexport * from './RadioButton';\nexport default RadioButton;\n"],"mappings":";;AAEA,IAAA,sBAAe"}
@@ -1,26 +0,0 @@
1
- export type Styles = {
2
- 'radio-button': string;
3
- 'radio-button__marker-wrapper': string;
4
- 'radio-button-errors': string;
5
- 'radio-button-label': string;
6
- 'radio-button-label__large': string;
7
- 'radio-button-label__large--disabled': string;
8
- 'radio-button-label__large--invalid': string;
9
- 'radio-button-label__large--on-blueberry': string;
10
- 'radio-button-label__large--on-grey': string;
11
- 'radio-button-label--disabled': string;
12
- 'radio-button-label--invalid': string;
13
- 'radio-button-label--on-dark': string;
14
- 'radio-button-wrapper': string;
15
- 'radio-button-wrapper__large': string;
16
- 'radio-button-wrapper__large--invalid': string;
17
- 'radio-button-wrapper__large--on-blueberry': string;
18
- 'radiobutton-afterlabelchildren-wrapper': string;
19
- 'radiobutton-sublabel-wrapper': string;
20
- };
21
-
22
- export type ClassNames = keyof Styles;
23
-
24
- declare const styles: Styles;
25
-
26
- export default styles;
@@ -1,273 +0,0 @@
1
- /* stylelint-disable color-hex-length */
2
- /* stylelint-disable comment-empty-line-before */
3
- /* stylelint-disable scss/operator-no-unspaced */
4
-
5
- /**
6
- * This file was generated automatically by Supernova.io and should not be changed manually.
7
- * To modify the format or content of this file, please contact your design system team.
8
- */
9
-
10
- :root {
11
- --color-action-graphics-onlight: #188097;
12
- --color-action-graphics-onlight-hover: #126f87;
13
- --core-color-banana-50: #fdf8df;
14
- --core-color-banana-100: #fcf2bf;
15
- --core-color-banana-200: #f9ea9f;
16
- --core-color-banana-300: #f5e080;
17
- --core-color-banana-400: #ebc840;
18
- --core-color-banana-500: #ddab06;
19
- --core-color-banana-600: #c59302;
20
- --core-color-banana-700: #ab7c00;
21
- --core-color-banana-800: #916500;
22
- --core-color-banana-900: #764f00;
23
- --core-color-blueberry-50: #e4f7f9;
24
- --core-color-blueberry-100: #cae7ed;
25
- --core-color-blueberry-200: #afdae3;
26
- --core-color-blueberry-300: #7abecc;
27
- --core-color-blueberry-400: #58aabb;
28
- --core-color-blueberry-500: #188097;
29
- --core-color-blueberry-600: #126f87;
30
- --core-color-blueberry-700: #08667c;
31
- --core-color-blueberry-800: #06596c;
32
- --core-color-blueberry-900: #084350;
33
- --core-color-cherry-50: #fff2ea;
34
- --core-color-cherry-100: #f7e1d2;
35
- --core-color-cherry-200: #eec0a5;
36
- --core-color-cherry-300: #e39376;
37
- --core-color-cherry-400: #d56147;
38
- --core-color-cherry-500: #c83521;
39
- --core-color-cherry-600: #b62e1c;
40
- --core-color-cherry-700: #a31f0e;
41
- --core-color-cherry-800: #912112;
42
- --core-color-cherry-900: #7e1c0e;
43
- --core-color-kiwi-50: #e6f8ee;
44
- --core-color-kiwi-100: #c2edd6;
45
- --core-color-kiwi-200: #9de2bf;
46
- --core-color-kiwi-300: #79d6aa;
47
- --core-color-kiwi-400: #56ca96;
48
- --core-color-kiwi-500: #33be84;
49
- --core-color-kiwi-600: #10b172;
50
- --core-color-kiwi-700: #0ca161;
51
- --core-color-kiwi-800: #099150;
52
- --core-color-kiwi-900: #078141;
53
- --core-color-neutral-50: #f5f3f3;
54
- --core-color-neutral-100: #eae7e7;
55
- --core-color-neutral-200: #d6d4d3;
56
- --core-color-neutral-300: #bdbab9;
57
- --core-color-neutral-400: #aaa8a6;
58
- --core-color-neutral-500: #989693;
59
- --core-color-neutral-600: #7d7c79;
60
- --core-color-neutral-700: #62625f;
61
- --core-color-neutral-800: #474745;
62
- --core-color-neutral-900: #2b2c2b;
63
- --core-color-plum-50: #f4ecfe;
64
- --core-color-plum-100: #e5d5fb;
65
- --core-color-plum-200: #cfb1f6;
66
- --core-color-plum-300: #b388ec;
67
- --core-color-plum-400: #9862df;
68
- --core-color-plum-500: #7c3fcb;
69
- --core-color-plum-600: #6c36b3;
70
- --core-color-plum-700: #5c27a1;
71
- --core-color-plum-800: #4c1b8c;
72
- --core-color-plum-900: #3c1471;
73
- --core-color-black: #000000;
74
- --core-color-white: #ffffff;
75
- --color-action-border-ondark: #ffffff;
76
- --color-action-text-ondark: #ffffff;
77
- --color-action-graphics-ondark: #ffffff;
78
- --color-notification-background-info: #e4f7f9;
79
- --color-notification-background-error: #fff2ea;
80
- --color-notification-background-warning: #fdf8df;
81
- --color-notification-background-success: #e6f8ee;
82
- --color-notification-border-info: #08667c;
83
- --color-notification-border-error: #a31f0e;
84
- --color-notification-border-warning: #ab7c00;
85
- --color-notification-border-success: #078141;
86
- --color-notification-graphics-info: #08667c;
87
- --color-notification-graphics-error: #a31f0e;
88
- --color-notification-graphics-warning: #ab7c00;
89
- --color-notification-graphics-success: #078141;
90
- --color-notification-status-info: #188097;
91
- --color-notification-status-error: #c83521;
92
- --color-notification-status-warning: #ebc840;
93
- --color-notification-status-success: #099150;
94
- --color-disabled-background: #d6d4d3;
95
- --color-disabled-text: #62625f;
96
- --color-disabled-border: #7d7c79;
97
- --color-destructive-background-emphasized: #f7e1d2;
98
- --color-destructive-background-normal: #fff2ea;
99
- --color-destructive-graphics-normal: #c83521;
100
- --color-destructive-graphics-hover: #b62e1c;
101
- --color-destructive-text-normal: #b62e1c;
102
- --color-destructive-text-hover: #a31f0e;
103
- --color-help-background-normal: #f4ecfe;
104
- --color-help-graphics-normal: #5c27a1;
105
- --color-help-border-normal: #5c27a1;
106
- --color-disabled-graphics: #62625f;
107
- --color-destructive-border-normal: #c83521;
108
- --color-action-border-ondark-hover: #e4f7f9;
109
- --color-action-graphics-ondark-hover: #e4f7f9;
110
-
111
- /* Hoverfarge for bakgrunn på interaktive elementer - onLight */
112
- --color-action-background-transparent-onlight-hover: #126f8721;
113
-
114
- /* Hoverfarge for bakgrunn på interaktive elementer - onLight selected */
115
- --color-action-background-transparent-onlight-hoverselected: #126f872b;
116
- --color-action-border-ondark-focus: #ffffff;
117
- --color-disabled-border-ondark: #d6d4d3;
118
- --color-disabled-graphics-ondark: #d6d4d3;
119
- --color-disabled-text-ondark: #ffffff;
120
- --color-action-text-onlight: #126f87;
121
- --color-action-text-onlight-hover: #08667c;
122
- --color-action-border-onlight: #188097;
123
- --color-action-border-onlight-hover: #08667c;
124
- --color-action-border-onlight-focus: #000000;
125
- --color-action-background-ondark: #ffffff;
126
- --color-action-background-ondark-hover: #e4f7f9;
127
- --color-action-background-ondark-selected: #cae7ed;
128
- --color-action-background-ondark-hoverselected: #afdae3;
129
- --color-action-background-onlight: #188097;
130
- --color-action-background-onlight-hover: #08667c;
131
-
132
- /* Hoverfarge for bakgrunn på interaktive elementer - hvor hover skal eksistere på forskjellige fargebakgrunner */
133
- --color-action-background-transparent-ondark-hover: #00000026;
134
- --color-action-background-transparent-onmulticolor-hover: #00000013;
135
-
136
- /* Activefarge for bakgrunn på interaktive elementer - hvor hover skal eksistere på forskjellige fargebakgrunner */
137
- --color-action-background-transparent-ondark-hoverselected: #000000bf;
138
- --color-action-background-transparent-onmulticolor-active: #00000026;
139
- --color-base-background-blueberry: #e4f7f9;
140
- --color-base-background-cherry: #fff2ea;
141
- --color-base-background-neutral: #f5f3f3;
142
- --color-base-background-white: #ffffff;
143
- --color-base-background-dark-blueberry: #188097;
144
- --color-base-background-dark-cherry: #c83521;
145
- --color-base-background-dark-neutral: #2b2c2b;
146
- --color-base-text-onlight: #000000;
147
- --color-base-text-ondark: #ffffff;
148
- --color-base-border-ondark: #d6d4d3;
149
- --color-base-border-onlight: #7d7c79;
150
- --color-base-border-onlight-emphasized: #62625f;
151
- --color-base-graphics-onlight: #000000;
152
- --color-base-graphics-ondark: #ffffff;
153
- --brandcolor-white: #ffffff;
154
- --brandcolor-black: #000000;
155
- --brandcolor-neutral-verylight: #f5f3f3;
156
- --brandcolor-neutral-light: #eae7e7;
157
- --brandcolor-neutral-mediumlight: #d6d4d3;
158
- --brandcolor-neutral-medium: #989693;
159
- --brandcolor-neutral-dark: #62625f;
160
- --brandcolor-neutral-verydark: #2b2c2b;
161
- --brandcolor-blueberry-verylight: #e4f7f9;
162
- --brandcolor-blueberry-light: #cae7ed;
163
- --brandcolor-blueberry-mediumlight: #afdae3;
164
- --brandcolor-blueberry-medium: #188097;
165
- --brandcolor-blueberry-mediumdark: #126f87;
166
- --brandcolor-blueberry-dark: #08667c;
167
- --brandcolor-cherry-verylight: #fff2ea;
168
- --brandcolor-cherry-light: #f7e1d2;
169
- --brandcolor-cherry-medium: #c83521;
170
- --brandcolor-cherry-mediumdark: #b62e1c;
171
- --brandcolor-cherry-dark: #a31f0e;
172
-
173
- /* Placeholdertext in input- and textarea-controls */
174
- --color-placeholder-text-onlight: #62625f;
175
- --color-base-border-onlight-subtle: #d6d4d3;
176
- --color-base-border-neutral: #d6d4d3;
177
- --color-base-border-blueberry: #afdae3;
178
- --color-base-border-cherry: #eec0a5;
179
-
180
- /* In a few cases where coloured text is required to stress the semantics of an information notification text */
181
- --color-notification-text-info: #08667c;
182
-
183
- /* In a few cases where coloured text is required to stress the semantics of an error notification text */
184
- --color-notification-text-error: #a31f0e;
185
- --color-notification-text-warning: #916500;
186
- --color-notification-text-success: #078141;
187
- --color-base-border-neutral-emphasized: #bdbab9;
188
- --color-notification-status-draft: #7d7c79;
189
-
190
- /* hoverstate on help components on white background */
191
- --color-help-background-transparent-onlight-hover: #6c36b31a;
192
- --color-help-background-transparent-onlight-hover-selected: #6c38b333;
193
- --color-help-background-transparent-onlight-active: #6c38b34d;
194
- --color-action-background-transparent-onlight-active: #126f874d;
195
-
196
- /* Background outside of modal and bottomsheet to mask inactive screen-area */
197
- --color-shadow-pagemask: #2c2b2cb8;
198
- --color-help-border-subtle-wcag: #9862df;
199
- --color-help-graphics-dark: #4c1b8c;
200
- --color-help-border-dark: #4c1b8c;
201
- --color-help-graphics-verydark: #3c1471;
202
- --color-help-border-verydark: #3c1471;
203
- --color-action-background-onlight-active: #06596c;
204
- --color-action-background-like-transparent-but-opaque-onlight-hover: #e0ecef;
205
- --color-action-background-like-transparent-but-opaque-onlight-hoverselected: #d7e7eb;
206
- --color-action-background-stroke-onlight: #126f87;
207
- --component-stickynote-background-normal-light: #fdf8df;
208
- --component-stickynote-background-normal-medium: #fcf2bf;
209
- --component-stickynote-background-normal-dark: #f9ea9f;
210
- --component-stickynote-border-normal: #916500;
211
- --component-stickynote-border-error: #d56147;
212
- --component-stickynote-background-error-dark: #eec0a5;
213
- --component-stickynote-background-error-medium: #f7e1d2;
214
- --component-stickynote-background-error-light: #fff2ea;
215
- --color-base-text-onlight-subdued: #474745;
216
- --component-stickynote-background-fold-error-dark: #e39376;
217
- --component-stickynote-background-fold-error-light: #f7e1d2;
218
- --component-stickynote-background-fold-error-medium: #eec0a5;
219
- --component-stickynote-background-fold-normal-light: #fcf2bf;
220
- --component-stickynote-background-fold-normal-medium: #f9ea9f;
221
- --component-stickynote-background-fold-normal-dark: #ebc840;
222
- --component-stickynote-background-transparent-onlight-hover: #ebc84021;
223
- --component-stickynote-background-transparent-onlight-active: #ebc8404d;
224
- --component-stickynote-background-transparent-error-hover: #d5614721;
225
- --component-stickynote-background-transparent-error-active: #d5614740;
226
- --component-listelements-background-neutral-light: #f5f3f3;
227
- --component-listelements-background-neutral-medium: #eae7e7;
228
- --component-listelements-background-neutral-dark: #d6d4d3;
229
- --component-listelements-border-neutral-light: #eae7e7;
230
- --component-listelements-background-blueberry-light: #e4f7f9;
231
- --component-listelements-background-blueberry-medium: #cae7ed;
232
- --component-listelements-border-blueberry-light: #cae7ed;
233
- --component-listelements-background-blueberry-dark: #afdae3;
234
- --component-listelements-border-blueberry-normal: #188097;
235
- --component-listelements-background-cherry-light: #fff2ea;
236
- --component-listelements-background-cherry-medium: #f7e1d2;
237
- --component-listelements-border-cherry-light: #f7e1d2;
238
- --component-listelements-background-cherry-dark: #eec0a5;
239
- --component-listelements-border-cherry-normal: #d56147;
240
- --component-listelements-border-neutral-normal: #7d7c79;
241
- --component-statusdot-graphics-banana-ondark: #f5e080;
242
- --component-statusdot-graphics-banana-onlight: #ab7c00;
243
- --component-statusdot-graphics-blueberry-ondark: #afdae3;
244
- --component-statusdot-graphics-blueberry-onlight: #188097;
245
- --component-statusdot-graphics-cherry-ondark: #f7e1d2;
246
- --component-statusdot-graphics-cherry-onlight: #a31f0e;
247
- --component-statusdot-graphics-kiwi-ondark: #9de2bf;
248
- --component-statusdot-graphics-kiwi-onlight: #078141;
249
- --component-statusdot-graphics-neutral-ondark: #f5f3f3;
250
- --component-statusdot-graphics-neutral-onlight: #7d7c79;
251
- --color-action-graphics-emphasized-onlight: #08667c;
252
- --color-base-background-stroke-dark-cherry: #b62e1c;
253
- --color-base-background-stroke-dark-blueberry: #126f87;
254
- --color-base-background-stroke-dark-neutral: #000000;
255
- --color-destructive-graphics-emphasized-onlight: #a31f0e;
256
- --component-listelements-background-neutral-verydark: #bdbab9;
257
- --component-listelements-background-blueberry-verydark: #7abecc;
258
- --component-listelements-border-neutral-ondark: #ffffff;
259
- --component-listelements-background-cherry-verydark: #e39376;
260
- --color-notification-background-info-hover: #cae7ed;
261
- --color-notification-background-info-active: #afdae3;
262
- --color-notification-background-error-hover: #f7e1d2;
263
- --color-notification-background-error-active: #eec0a5;
264
- --color-notification-background-warning-hover: #fcf2bf;
265
- --color-notification-background-warning-active: #f9ea9f;
266
- --color-notification-background-success-hover: #c2edd6;
267
- --color-notification-background-success-active: #9de2bf;
268
- --color-lightbox-background-transparent-ondark-hover: #00000026;
269
- --color-lightbox-background-transparent-ondark-hoverselected: #000000bf;
270
- --component-lightbox-background-transparent-ondark-hover: #00000026;
271
- --component-lightbox-background-transparent-ondark-hoverselected: #000000bf;
272
- }
273
- /*$vite$:1*/