@helsenorge/designsystem-react 8.6.0-beta.1 → 9.0.0-beta.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 (88) hide show
  1. package/Button.js +7 -7
  2. package/Button.js.map +1 -1
  3. package/CHANGELOG.md +1 -1
  4. package/Checkbox.js +42 -42
  5. package/Checkbox.js.map +1 -1
  6. package/ErrorWrapper.js.map +1 -1
  7. package/FormGroup.js +30 -30
  8. package/FormGroup.js.map +1 -1
  9. package/Icon.js +21 -21
  10. package/Icon.js.map +1 -1
  11. package/Input.js +98 -88
  12. package/Input.js.map +1 -1
  13. package/Label.js +9 -9
  14. package/Label.js.map +1 -1
  15. package/MaxCharacters.js +2 -2
  16. package/MaxCharacters.js.map +1 -1
  17. package/RadioButton.js +61 -61
  18. package/RadioButton.js.map +1 -1
  19. package/Select.js +34 -33
  20. package/Select.js.map +1 -1
  21. package/StatusDot.js +15 -15
  22. package/StatusDot.js.map +1 -1
  23. package/TabList.js +88 -53
  24. package/TabList.js.map +1 -1
  25. package/TabPanel.js +7 -7
  26. package/TabPanel.js.map +1 -1
  27. package/Textarea.js +59 -58
  28. package/Textarea.js.map +1 -1
  29. package/Trigger.js +33 -33
  30. package/Trigger.js.map +1 -1
  31. package/components/Button/Button.d.ts +2 -2
  32. package/components/Checkbox/Checkbox.d.ts +4 -3
  33. package/components/Checkbox/styles.module.scss +0 -14
  34. package/components/Checkbox/styles.module.scss.d.ts +0 -1
  35. package/components/Dropdown/Dropdown.d.ts +2 -2
  36. package/components/Dropdown/index.js +25 -25
  37. package/components/Dropdown/index.js.map +1 -1
  38. package/components/ErrorWrapper/ErrorWrapper.d.ts +3 -0
  39. package/components/ExpanderList/ExpanderList.d.ts +4 -6
  40. package/components/ExpanderList/index.js +118 -126
  41. package/components/ExpanderList/index.js.map +1 -1
  42. package/components/ExpanderList/styles.module.scss +164 -53
  43. package/components/ExpanderList/styles.module.scss.d.ts +29 -5
  44. package/components/FormGroup/FormGroup.d.ts +2 -2
  45. package/components/Icon/Icon.d.ts +4 -4
  46. package/components/Icons/NoAccess.js +7 -7
  47. package/components/Icons/NoAccess.js.map +1 -1
  48. package/components/Input/Input.d.ts +4 -3
  49. package/components/Label/Label.d.ts +4 -4
  50. package/components/Label/SubLabel.d.ts +2 -2
  51. package/components/MaxCharacters/MaxCharacters.d.ts +2 -2
  52. package/components/RadioButton/RadioButton.d.ts +5 -4
  53. package/components/RadioButton/styles.module.scss +0 -15
  54. package/components/RadioButton/styles.module.scss.d.ts +0 -1
  55. package/components/Select/Select.d.ts +4 -3
  56. package/components/SharingStatus/SharingStatus.d.ts +1 -1
  57. package/components/SharingStatus/index.js +5 -5
  58. package/components/SharingStatus/index.js.map +1 -1
  59. package/components/SharingStatus/styles.module.scss +0 -16
  60. package/components/SharingStatus/styles.module.scss.d.ts +0 -4
  61. package/components/StatusDot/StatusDot.d.ts +3 -3
  62. package/components/StatusDot/index.js +3 -3
  63. package/components/Tabs/TabList/TabList.d.ts +3 -3
  64. package/components/Tabs/TabList/styles.module.scss +63 -51
  65. package/components/Tabs/TabList/styles.module.scss.d.ts +7 -3
  66. package/components/Tabs/TabPanel/TabPanel.d.ts +1 -2
  67. package/components/Tabs/TabPanel/styles.module.scss +11 -26
  68. package/components/Tabs/TabPanel/styles.module.scss.d.ts +0 -2
  69. package/components/Tabs/Tabs.d.ts +3 -3
  70. package/components/Tabs/index.js +57 -72
  71. package/components/Tabs/index.js.map +1 -1
  72. package/components/Tabs/styles.module.scss +5 -9
  73. package/components/Tabs/styles.module.scss.d.ts +0 -1
  74. package/components/Textarea/Textarea.d.ts +4 -3
  75. package/components/Toggle/index.js +1222 -1180
  76. package/components/Toggle/index.js.map +1 -1
  77. package/components/Trigger/Trigger.d.ts +2 -2
  78. package/components/Validation/index.js +38 -32
  79. package/components/Validation/index.js.map +1 -1
  80. package/constants.d.ts +1 -1
  81. package/constants.js +1 -1
  82. package/constants.js.map +1 -1
  83. package/docs/FormExample/FormExample.d.ts +2 -1
  84. package/index.js +23 -23
  85. package/package.json +4 -4
  86. package/utils/component.d.ts +1 -0
  87. package/utils/component.js +7 -3
  88. package/utils/component.js.map +1 -1
@@ -1,25 +1,49 @@
1
1
  export type Styles = {
2
2
  'expander-list': string;
3
3
  'expander-list__item': string;
4
+ 'expander-list__item--fill': string;
5
+ 'expander-list__item--fill--blueberry': string;
6
+ 'expander-list__item--fill--cherry': string;
7
+ 'expander-list__item--fill--neutral': string;
8
+ 'expander-list__item--fill--white': string;
9
+ 'expander-list__item--fill-negative': string;
4
10
  'expander-list__item--line': string;
11
+ 'expander-list__item--line--blueberry': string;
12
+ 'expander-list__item--line--cherry': string;
13
+ 'expander-list__item--line--neutral': string;
14
+ 'expander-list__item--line--white': string;
5
15
  'expander-list__item--outline': string;
16
+ 'expander-list__item--outline--blueberry': string;
17
+ 'expander-list__item--outline--cherry': string;
18
+ 'expander-list__item--outline--neutral': string;
19
+ 'expander-list__item--outline--white': string;
6
20
  'expander-list-link': string;
7
21
  'expander-list-link__chevron': string;
8
22
  'expander-list-link__icon': string;
9
23
  'expander-list-link__main-content': string;
10
24
  'expander-list-link__main-content--expanded': string;
11
25
  'expander-list-link__main-content--padding': string;
12
- 'expander-list-link--absolute': string;
13
- 'expander-list-link--banana': string;
14
26
  'expander-list-link--blueberry': string;
15
27
  'expander-list-link--cherry': string;
16
28
  'expander-list-link--closed': string;
17
29
  'expander-list-link--fill': string;
18
- 'expander-list-link--kiwi': string;
30
+ 'expander-list-link--fill--blueberry': string;
31
+ 'expander-list-link--fill--cherry': string;
32
+ 'expander-list-link--fill--neutral': string;
33
+ 'expander-list-link--fill--white': string;
34
+ 'expander-list-link--fill-negative': string;
19
35
  'expander-list-link--large': string;
36
+ 'expander-list-link--line--blueberry': string;
37
+ 'expander-list-link--line--cherry': string;
38
+ 'expander-list-link--line--neutral': string;
39
+ 'expander-list-link--line--white': string;
20
40
  'expander-list-link--neutral': string;
21
- 'expander-list-link--plum': string;
22
- 'expander-list-link--sticky': string;
41
+ 'expander-list-link--open': string;
42
+ 'expander-list-link--outline': string;
43
+ 'expander-list-link--outline--blueberry': string;
44
+ 'expander-list-link--outline--cherry': string;
45
+ 'expander-list-link--outline--neutral': string;
46
+ 'expander-list-link--outline--white': string;
23
47
  'expander-list-link--white': string;
24
48
  };
25
49
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormMode, FormSize } from '../../constants';
2
+ import { FormOnColor, FormSize } from '../../constants';
3
3
  export type FormGroupTags = 'fieldset' | 'div';
4
4
  export interface FormGroupProps {
5
5
  /** title for the the fieldset */
@@ -15,7 +15,7 @@ export interface FormGroupProps {
15
15
  /** Adds custom classes to the fieldset element. */
16
16
  fieldsetClassName?: string;
17
17
  /** Changes the visuals of the formgroup */
18
- mode?: keyof typeof FormMode;
18
+ onColor?: keyof typeof FormOnColor;
19
19
  /** Changes the visuals of the formgroup */
20
20
  size?: keyof typeof FormSize;
21
21
  /** Error message */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { FormMode, IconSize } from '../../constants';
3
- import { StatusDotModes } from '../StatusDot';
2
+ import { FormOnColor, IconSize } from '../../constants';
3
+ import { StatusDotOnColor } from '../StatusDot';
4
4
  export type SvgIcon = React.FC<SvgPathProps>;
5
5
  export interface BaseIconProps {
6
6
  ariaLabel?: string;
@@ -10,7 +10,7 @@ export interface BaseIconProps {
10
10
  className?: string;
11
11
  isHovered?: boolean;
12
12
  /** Defines the color of the icon */
13
- mode?: keyof typeof FormMode | StatusDotModes;
13
+ onColor?: keyof typeof FormOnColor | StatusDotOnColor;
14
14
  /** Sets the data-testid attribute. */
15
15
  testId?: string;
16
16
  }
@@ -20,7 +20,7 @@ export interface IconProps extends BaseIconProps {
20
20
  export interface SvgPathProps {
21
21
  size: IconSize;
22
22
  isHovered: boolean;
23
- mode?: keyof typeof FormMode | StatusDotModes;
23
+ onColor?: keyof typeof FormOnColor | StatusDotOnColor;
24
24
  }
25
25
  interface IconConfig {
26
26
  size: IconSize;
@@ -1,14 +1,14 @@
1
1
  import { jsxs as a, Fragment as m, jsx as l } from "react/jsx-runtime";
2
- import { FormMode as s } from "../../constants.js";
2
+ import { FormOnColor as s } from "../../constants.js";
3
3
  import { g as h } from "../../Icon.js";
4
- const x = ({ size: o, isHovered: r, mode: t }) => {
5
- const d = /* @__PURE__ */ l(
4
+ const M = ({ size: e, isHovered: r, onColor: t }) => {
5
+ const n = /* @__PURE__ */ l(
6
6
  "path",
7
7
  {
8
8
  fillRule: "evenodd",
9
9
  d: "M11.7 25.3h24.6v-2.6H11.7v2.6ZM24 8.231C15.305 8.231 8.232 15.305 8.232 24S15.305 39.769 24 39.769 39.769 32.695 39.769 24 32.695 8.231 24 8.231Z"
10
10
  }
11
- ), n = /* @__PURE__ */ l(
11
+ ), d = /* @__PURE__ */ l(
12
12
  "path",
13
13
  {
14
14
  fillRule: "evenodd",
@@ -26,7 +26,7 @@ const x = ({ size: o, isHovered: r, mode: t }) => {
26
26
  fillRule: "evenodd",
27
27
  d: "M10.358 25.642h27.284v-3.284H10.358v3.284ZM24 7.958C15.154 7.958 7.957 15.154 7.957 24c0 8.846 7.197 16.043 16.043 16.043S40.044 32.846 40.044 24 32.846 7.958 24 7.958Z"
28
28
  }
29
- ), e = /* @__PURE__ */ a(m, { children: [
29
+ ), o = /* @__PURE__ */ a(m, { children: [
30
30
  t === s.ondark && /* @__PURE__ */ l("circle", { cx: "24", cy: "24", r: "17", fill: "white" }),
31
31
  /* @__PURE__ */ l(
32
32
  "path",
@@ -36,9 +36,9 @@ const x = ({ size: o, isHovered: r, mode: t }) => {
36
36
  }
37
37
  )
38
38
  ] });
39
- return h({ size: o, isHovered: r, normal: d, normalHover: n, xSmall: v, xSmallHover: c, xxSmall: e, xxSmallHover: e });
39
+ return h({ size: e, isHovered: r, normal: n, normalHover: d, xSmall: v, xSmallHover: c, xxSmall: o, xxSmallHover: o });
40
40
  };
41
41
  export {
42
- x as default
42
+ M as default
43
43
  };
44
44
  //# sourceMappingURL=NoAccess.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NoAccess.js","sources":["../../../src/components/Icons/NoAccess.tsx"],"sourcesContent":["import React from 'react';\n\nimport { FormMode } from '../../constants';\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst NoAccess: React.FC<SvgPathProps> = ({ size, isHovered, mode }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path\n fillRule={'evenodd'}\n d=\"M11.7 25.3h24.6v-2.6H11.7v2.6ZM24 8.231C15.305 8.231 8.232 15.305 8.232 24S15.305 39.769 24 39.769 39.769 32.695 39.769 24 32.695 8.231 24 8.231Z\"\n />\n );\n\n const normalHover = (\n <path\n fillRule={'evenodd'}\n d=\"M9.95 25.3h28.1v-2.6H9.95v2.6ZM24 8.231C15.305 8.231 8.231 15.305 8.231 24S15.305 39.769 24 39.769 39.769 32.695 39.769 24 32.695 8.231 24 8.231Z\"\n />\n );\n\n const xSmall = (\n <path\n fillRule={'evenodd'}\n d=\"M12.253 25.642h23.495v-3.284H12.253v3.284ZM24 7.958C15.154 7.958 7.957 15.154 7.957 24c0 8.846 7.197 16.043 16.043 16.043S40.044 32.846 40.044 24 32.846 7.958 24 7.958Z\"\n />\n );\n\n const xSmallHover = (\n <path\n fillRule={'evenodd'}\n d=\"M10.358 25.642h27.284v-3.284H10.358v3.284ZM24 7.958C15.154 7.958 7.957 15.154 7.957 24c0 8.846 7.197 16.043 16.043 16.043S40.044 32.846 40.044 24 32.846 7.958 24 7.958Z\"\n />\n );\n\n const xxSmall = (\n <>\n {mode === FormMode.ondark && <circle cx=\"24\" cy=\"24\" r=\"17\" fill=\"white\" />}\n <path\n fillRule={'evenodd'}\n d=\"M13.4 26.1h21.2v-4.2H13.4v4.2ZM24 9C15.728 9 9 15.728 9 24s6.728 15 15 15c8.27 0 15-6.728 15-15S32.27 9 24 9Z\"\n />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover, xxSmall, xxSmallHover: xxSmall });\n};\n\nexport default NoAccess;\n"],"names":["NoAccess","size","isHovered","mode","normal","jsx","normalHover","xSmall","xSmallHover","xxSmall","jsxs","Fragment","FormMode","getIcon"],"mappings":";;;AAKA,MAAMA,IAAmC,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,MAAAC,QAA6C;AACxG,QAAMC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAC,IACJ,gBAAAD;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAE,IACJ,gBAAAF;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAG,IACJ,gBAAAH;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAI,IAED,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAASR,MAAAS,EAAS,UAAU,gBAAAP,EAAC,UAAO,EAAA,IAAG,MAAK,IAAG,MAAK,GAAE,MAAK,MAAK,QAAQ,CAAA;AAAA,IACzE,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,UAAU;AAAA,QACV,GAAE;AAAA,MAAA;AAAA,IACJ;AAAA,EACF,EAAA,CAAA;AAGK,SAAAQ,EAAQ,EAAE,MAAAZ,GAAM,WAAAC,GAAW,QAAAE,GAAQ,aAAAE,GAAa,QAAAC,GAAQ,aAAAC,GAAa,SAAAC,GAAS,cAAcA,EAAS,CAAA;AAC9G;"}
1
+ {"version":3,"file":"NoAccess.js","sources":["../../../src/components/Icons/NoAccess.tsx"],"sourcesContent":["import React from 'react';\n\nimport { FormOnColor } from '../../constants';\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst NoAccess: React.FC<SvgPathProps> = ({ size, isHovered, onColor }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path\n fillRule={'evenodd'}\n d=\"M11.7 25.3h24.6v-2.6H11.7v2.6ZM24 8.231C15.305 8.231 8.232 15.305 8.232 24S15.305 39.769 24 39.769 39.769 32.695 39.769 24 32.695 8.231 24 8.231Z\"\n />\n );\n\n const normalHover = (\n <path\n fillRule={'evenodd'}\n d=\"M9.95 25.3h28.1v-2.6H9.95v2.6ZM24 8.231C15.305 8.231 8.231 15.305 8.231 24S15.305 39.769 24 39.769 39.769 32.695 39.769 24 32.695 8.231 24 8.231Z\"\n />\n );\n\n const xSmall = (\n <path\n fillRule={'evenodd'}\n d=\"M12.253 25.642h23.495v-3.284H12.253v3.284ZM24 7.958C15.154 7.958 7.957 15.154 7.957 24c0 8.846 7.197 16.043 16.043 16.043S40.044 32.846 40.044 24 32.846 7.958 24 7.958Z\"\n />\n );\n\n const xSmallHover = (\n <path\n fillRule={'evenodd'}\n d=\"M10.358 25.642h27.284v-3.284H10.358v3.284ZM24 7.958C15.154 7.958 7.957 15.154 7.957 24c0 8.846 7.197 16.043 16.043 16.043S40.044 32.846 40.044 24 32.846 7.958 24 7.958Z\"\n />\n );\n\n const xxSmall = (\n <>\n {onColor === FormOnColor.ondark && <circle cx=\"24\" cy=\"24\" r=\"17\" fill=\"white\" />}\n <path\n fillRule={'evenodd'}\n d=\"M13.4 26.1h21.2v-4.2H13.4v4.2ZM24 9C15.728 9 9 15.728 9 24s6.728 15 15 15c8.27 0 15-6.728 15-15S32.27 9 24 9Z\"\n />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover, xxSmall, xxSmallHover: xxSmall });\n};\n\nexport default NoAccess;\n"],"names":["NoAccess","size","isHovered","onColor","normal","jsx","normalHover","xSmall","xSmallHover","xxSmall","jsxs","Fragment","FormOnColor","getIcon"],"mappings":";;;AAKA,MAAMA,IAAmC,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,SAAAC,QAAgD;AAC3G,QAAMC,IACJ,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAC,IACJ,gBAAAD;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAE,IACJ,gBAAAF;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAG,IACJ,gBAAAH;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,GAAE;AAAA,IAAA;AAAA,EAAA,GAIAI,IAED,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAYR,MAAAS,EAAY,UAAU,gBAAAP,EAAC,UAAO,EAAA,IAAG,MAAK,IAAG,MAAK,GAAE,MAAK,MAAK,QAAQ,CAAA;AAAA,IAC/E,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,UAAU;AAAA,QACV,GAAE;AAAA,MAAA;AAAA,IACJ;AAAA,EACF,EAAA,CAAA;AAGK,SAAAQ,EAAQ,EAAE,MAAAZ,GAAM,WAAAC,GAAW,QAAAE,GAAQ,aAAAE,GAAa,QAAAC,GAAQ,aAAAC,GAAa,SAAAC,GAAS,cAAcA,EAAS,CAAA;AAC9G;"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { FormMode, FormSize } from '../../constants';
2
+ import { FormOnColor, FormSize } from '../../constants';
3
+ import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
3
4
  import { SvgIcon } from '../Icon';
4
5
  import { IconName } from '../Icons/IconNames';
5
- export interface InputProps extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'readOnly' | 'autoComplete' | 'name' | 'placeholder' | 'defaultValue' | 'required' | 'value' | 'min' | 'max' | 'aria-describedby' | 'aria-labelledby' | 'onBlur' | 'onClick' | 'onChange' | 'onFocus' | 'onKeyDown' | 'autoFocus'> {
6
+ export interface InputProps extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'readOnly' | 'autoComplete' | 'name' | 'placeholder' | 'defaultValue' | 'required' | 'value' | 'min' | 'max' | 'aria-describedby' | 'aria-labelledby' | 'onBlur' | 'onClick' | 'onChange' | 'onFocus' | 'onKeyDown' | 'autoFocus'> {
6
7
  /** The number at which the input field starts when you increment or decrement it */
7
8
  baseIncrementValue?: number;
8
9
  /** Adds custom classes to the element. */
@@ -24,7 +25,7 @@ export interface InputProps extends Pick<React.InputHTMLAttributes<HTMLInputElem
24
25
  /** Ref that is placed on the inputWrapper */
25
26
  inputWrapperRef?: React.RefObject<HTMLDivElement>;
26
27
  /** Changes the color profile of the input */
27
- mode?: keyof typeof FormMode;
28
+ onColor?: keyof typeof FormOnColor;
28
29
  /** Changes the visuals of the input */
29
30
  size?: keyof typeof FormSize;
30
31
  /** Label of the input */
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { FormMode } from '../../constants';
2
+ import { FormOnColor } from '../../constants';
3
3
  export type LabelText = {
4
4
  hideFromScreenReader?: boolean;
5
5
  text: string;
@@ -23,7 +23,7 @@ export interface LabelProps {
23
23
  /** Array of main label strings. Can be of type semibold or normal */
24
24
  labelTexts: LabelText[];
25
25
  /** Array of sublabel strings. Can be of type semibold or normal */
26
- mode?: keyof typeof FormMode;
26
+ onColor?: keyof typeof FormOnColor;
27
27
  /** StatusDot placed underneath the last sublabel */
28
28
  statusDot?: React.ReactNode;
29
29
  /** Sublabel component */
@@ -34,7 +34,7 @@ export interface LabelProps {
34
34
  testId?: string;
35
35
  }
36
36
  export declare const getLabelText: (label: React.ReactNode) => string;
37
- export declare const renderLabel: (label: React.ReactNode, inputId: string, mode: FormMode) => React.ReactNode;
38
- export declare const renderLabelAsParent: (label: React.ReactNode, children: React.ReactNode, inputId: string, mode: FormMode, labelClassName?: string, labelTextClassName?: string, sublabelWrapperClassName?: string, large?: boolean) => React.ReactNode;
37
+ export declare const renderLabel: (label: React.ReactNode, inputId: string, onColor: FormOnColor) => React.ReactNode;
38
+ export declare const renderLabelAsParent: (label: React.ReactNode, children: React.ReactNode, inputId: string, onColor: FormOnColor, labelClassName?: string, labelTextClassName?: string, sublabelWrapperClassName?: string, large?: boolean) => React.ReactNode;
39
39
  declare const Label: FunctionComponent<LabelProps>;
40
40
  export default Label;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { LabelText } from './Label';
3
- import { FormMode } from '../../constants';
3
+ import { FormOnColor } from '../../constants';
4
4
  export interface SublabelProps {
5
5
  /** Adds custom classes to the element. */
6
6
  className?: string;
7
7
  /** id that is placed on the wrapper */
8
8
  id: string;
9
9
  /** Array of sublabel strings. Can be of type semibold or normal */
10
- mode?: FormMode;
10
+ onColor?: FormOnColor;
11
11
  /** Array of sublabel strings. Can be of type semibold or normal */
12
12
  sublabelTexts?: LabelText[];
13
13
  /** Sets the data-testid attribute. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FormMode } from '../../constants';
2
+ import { FormOnColor } from '../../constants';
3
3
  interface MaxCharactersProps {
4
4
  /** Current input length */
5
5
  length: number;
@@ -8,7 +8,7 @@ interface MaxCharactersProps {
8
8
  /** The text is displayed in the end of the text-counter */
9
9
  maxText?: string;
10
10
  /** Changes the visuals of the textarea */
11
- mode?: keyof typeof FormMode;
11
+ onColor?: keyof typeof FormOnColor;
12
12
  /** Max width of the component */
13
13
  maxWidth?: string;
14
14
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { FormMode, FormSize } from '../../constants';
3
- export interface RadioButtonProps extends Pick<React.InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'defaultChecked' | 'required' | 'onChange'> {
2
+ import { FormOnColor, FormSize } from '../../constants';
3
+ import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
4
+ export interface RadioButtonProps extends ErrorWrapperClassNameProps, Pick<React.InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'value' | 'disabled' | 'checked' | 'defaultChecked' | 'required' | 'onChange'> {
4
5
  /** Adds custom classes to the element. */
5
6
  className?: string;
6
7
  /** The <Label/> next to the radioButton - sublabels kan ikke kombineres med large variant */
@@ -10,7 +11,7 @@ export interface RadioButtonProps extends Pick<React.InputHTMLAttributes<HTMLInp
10
11
  /** input id of the radioButton */
11
12
  inputId?: string;
12
13
  /** Changes the visuals of the radioButton */
13
- mode?: keyof typeof FormMode;
14
+ onColor?: keyof typeof FormOnColor;
14
15
  /** Changes the visuals of the radioButton. Large version only works when used inside a FormGroup wrapper. */
15
16
  size?: keyof typeof FormSize;
16
17
  /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */
@@ -22,6 +23,6 @@ export interface RadioButtonProps extends Pick<React.InputHTMLAttributes<HTMLInp
22
23
  /** Sets the data-testid attribute. */
23
24
  testId?: string;
24
25
  }
25
- export declare const getRadioLabelClasses: (radioId: string, mode: FormMode, large: boolean, checkedRadioId?: string) => string | undefined;
26
+ export declare const getRadioLabelClasses: (radioId: string, onColor: FormOnColor, large: boolean, checkedRadioId?: string) => string | undefined;
26
27
  export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
27
28
  export default RadioButton;
@@ -25,21 +25,6 @@
25
25
  .radio-button-wrapper {
26
26
  cursor: pointer;
27
27
 
28
- &--with-error {
29
- padding: getSpacer(s) getSpacer(2xs) getSpacer(m);
30
- background-color: $cherry100;
31
- margin-left: -0.75rem;
32
- border-left: 0.25rem solid $cherry600;
33
-
34
- @media (min-width: map.get($grid-breakpoints, md)) {
35
- padding: getSpacer(s) getSpacer(m) getSpacer(l);
36
- }
37
- }
38
-
39
- &--with-error#{&}__large {
40
- padding: getSpacer(m);
41
- }
42
-
43
28
  &__large {
44
29
  margin: getSpacer(2xs) 0;
45
30
 
@@ -24,7 +24,6 @@ export type Styles = {
24
24
  'radio-button-wrapper__large--invalid': string;
25
25
  'radio-button-wrapper__large--on-blueberry': string;
26
26
  'radio-button-wrapper__large--selected': string;
27
- 'radio-button-wrapper--with-error': string;
28
27
  'radiobutton-sublabel-wrapper': string;
29
28
  };
30
29
 
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { FormMode } from '../../constants';
2
+ import { FormOnColor } from '../../constants';
3
+ import { ErrorWrapperClassNameProps } from '../ErrorWrapper';
3
4
  type SelectConcept = 'normal' | 'transparent';
4
- export interface SelectProps extends Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'aria-describedby' | 'name' | 'disabled' | 'required' | 'value' | 'onChange' | 'autoComplete'> {
5
+ export interface SelectProps extends ErrorWrapperClassNameProps, Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'aria-describedby' | 'name' | 'disabled' | 'required' | 'value' | 'onChange' | 'autoComplete'> {
5
6
  /** Sets the content of the select element. */
6
7
  children: React.ReactNode;
7
8
  /** Adds custom classes to the element. */
@@ -11,7 +12,7 @@ export interface SelectProps extends Pick<React.SelectHTMLAttributes<HTMLSelectE
11
12
  /** The label text above the select */
12
13
  label?: React.ReactNode;
13
14
  /** Changes the visuals of the component */
14
- mode?: keyof typeof FormMode;
15
+ onColor?: keyof typeof FormOnColor;
15
16
  /** Activates Error style for the select component - This is can be true while errorText is empty, when in a FormGroup */
16
17
  error?: boolean;
17
18
  /** Error text to show above the component */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PaletteNames } from '../../theme/palette';
3
3
  import { SvgIcon } from '../Icon';
4
- export type SharingStatusColor = Extract<PaletteNames, 'kiwi' | 'cherry' | 'neutral' | 'blueberry' | 'banana'>;
4
+ export type SharingStatusColor = Extract<PaletteNames, 'kiwi' | 'cherry' | 'neutral'>;
5
5
  export interface SharingStatusProps {
6
6
  /** Color choices represent variants of sharingstatus */
7
7
  color?: SharingStatusColor;
@@ -4,16 +4,16 @@ import { AnalyticsId as u, IconSize as g } from "../../constants.js";
4
4
  import { palette as _ } from "../../theme/palette.js";
5
5
  import { I as f } from "../../Icon.js";
6
6
  import s from "./styles.module.scss";
7
- const w = (e) => {
8
- const { color: r = "blueberry", icon: l, children: o, className: n, testId: i, wrapText: c } = e, m = t(s["sharing-status"], n), d = t(s["sharing-status__dot"], s[`sharing-status__dot--${r}`]), h = t(s["sharing-status__label"], s[`sharing-status__label--${r}`], {
7
+ const y = (l) => {
8
+ const { color: r = "neutral", icon: o, children: e, className: n, testId: i, wrapText: c } = l, m = t(s["sharing-status"], n), d = t(s["sharing-status__dot"], s[`sharing-status__dot--${r}`]), h = t(s["sharing-status__label"], s[`sharing-status__label--${r}`], {
9
9
  [s["sharing-status__label--wrap"]]: c
10
10
  });
11
11
  return /* @__PURE__ */ p("span", { className: m, "data-testid": i, "data-analyticsid": u.SharingStatus, children: [
12
- /* @__PURE__ */ a("span", { className: d, children: /* @__PURE__ */ a(f, { color: _.white, svgIcon: l, size: g.XXSmall }) }),
13
- /* @__PURE__ */ a("span", { className: h, children: o })
12
+ /* @__PURE__ */ a("span", { className: d, children: /* @__PURE__ */ a(f, { color: _.white, svgIcon: o, size: g.XXSmall }) }),
13
+ /* @__PURE__ */ a("span", { className: h, children: e })
14
14
  ] });
15
15
  };
16
16
  export {
17
- w as default
17
+ y as default
18
18
  };
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/SharingStatus/SharingStatus.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { PaletteNames, palette } from '../../theme/palette';\nimport Icon, { SvgIcon } from '../Icon';\n\nimport styles from './styles.module.scss';\n\nexport type SharingStatusColor = Extract<PaletteNames, 'kiwi' | 'cherry' | 'neutral' | 'blueberry' | 'banana'>;\n\nexport interface SharingStatusProps {\n /** Color choices represent variants of sharingstatus */\n color?: SharingStatusColor;\n /** Adds custom classes to the element. */\n className?: string;\n /** Icon to be displayed next to the sharingstatus */\n icon: SvgIcon;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the text placed to the right of the sharingstatus */\n children: string;\n /** turn on and off word wrapping */\n wrapText?: boolean;\n}\n\nconst SharingStatus: React.FC<SharingStatusProps> = props => {\n const { color = 'blueberry', icon, children, className, testId, wrapText } = props;\n\n const sharingStatusClasses = classNames(styles['sharing-status'], className);\n const dotClasses = classNames(styles['sharing-status__dot'], styles[`sharing-status__dot--${color}`]);\n const labelClasses = classNames(styles['sharing-status__label'], styles[`sharing-status__label--${color}`], {\n [styles['sharing-status__label--wrap']]: wrapText,\n });\n\n return (\n <span className={sharingStatusClasses} data-testid={testId} data-analyticsid={AnalyticsId.SharingStatus}>\n <span className={dotClasses}>\n <Icon color={palette.white} svgIcon={icon} size={IconSize.XXSmall} />\n </span>\n <span className={labelClasses}>{children}</span>\n </span>\n );\n};\n\nexport default SharingStatus;\n"],"names":["SharingStatus","props","color","icon","children","className","testId","wrapText","sharingStatusClasses","classNames","styles","dotClasses","labelClasses","jsxs","AnalyticsId","jsx","Icon","palette","IconSize"],"mappings":";;;;;;AA2BA,MAAMA,IAA8C,CAASC,MAAA;AACrD,QAAA,EAAE,OAAAC,IAAQ,aAAa,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,GAAQ,UAAAC,EAAa,IAAAN,GAEvEO,IAAuBC,EAAWC,EAAO,gBAAgB,GAAGL,CAAS,GACrEM,IAAaF,EAAWC,EAAO,qBAAqB,GAAGA,EAAO,wBAAwBR,CAAK,EAAE,CAAC,GAC9FU,IAAeH,EAAWC,EAAO,uBAAuB,GAAGA,EAAO,0BAA0BR,CAAK,EAAE,GAAG;AAAA,IAC1G,CAACQ,EAAO,6BAA6B,CAAC,GAAGH;AAAA,EAAA,CAC1C;AAGC,SAAA,gBAAAM,EAAC,UAAK,WAAWL,GAAsB,eAAaF,GAAQ,oBAAkBQ,EAAY,eACxF,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWJ,GACf,UAAA,gBAAAI,EAACC,GAAK,EAAA,OAAOC,EAAQ,OAAO,SAASd,GAAM,MAAMe,EAAS,QAAS,CAAA,GACrE;AAAA,IACC,gBAAAH,EAAA,QAAA,EAAK,WAAWH,GAAe,UAAAR,EAAS,CAAA;AAAA,EAC3C,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/SharingStatus/SharingStatus.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { PaletteNames, palette } from '../../theme/palette';\nimport Icon, { SvgIcon } from '../Icon';\n\nimport styles from './styles.module.scss';\n\nexport type SharingStatusColor = Extract<PaletteNames, 'kiwi' | 'cherry' | 'neutral'>;\n\nexport interface SharingStatusProps {\n /** Color choices represent variants of sharingstatus */\n color?: SharingStatusColor;\n /** Adds custom classes to the element. */\n className?: string;\n /** Icon to be displayed next to the sharingstatus */\n icon: SvgIcon;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the text placed to the right of the sharingstatus */\n children: string;\n /** turn on and off word wrapping */\n wrapText?: boolean;\n}\n\nconst SharingStatus: React.FC<SharingStatusProps> = props => {\n const { color = 'neutral', icon, children, className, testId, wrapText } = props;\n\n const sharingStatusClasses = classNames(styles['sharing-status'], className);\n const dotClasses = classNames(styles['sharing-status__dot'], styles[`sharing-status__dot--${color}`]);\n const labelClasses = classNames(styles['sharing-status__label'], styles[`sharing-status__label--${color}`], {\n [styles['sharing-status__label--wrap']]: wrapText,\n });\n\n return (\n <span className={sharingStatusClasses} data-testid={testId} data-analyticsid={AnalyticsId.SharingStatus}>\n <span className={dotClasses}>\n <Icon color={palette.white} svgIcon={icon} size={IconSize.XXSmall} />\n </span>\n <span className={labelClasses}>{children}</span>\n </span>\n );\n};\n\nexport default SharingStatus;\n"],"names":["SharingStatus","props","color","icon","children","className","testId","wrapText","sharingStatusClasses","classNames","styles","dotClasses","labelClasses","jsxs","AnalyticsId","jsx","Icon","palette","IconSize"],"mappings":";;;;;;AA2BA,MAAMA,IAA8C,CAASC,MAAA;AACrD,QAAA,EAAE,OAAAC,IAAQ,WAAW,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,GAAQ,UAAAC,EAAa,IAAAN,GAErEO,IAAuBC,EAAWC,EAAO,gBAAgB,GAAGL,CAAS,GACrEM,IAAaF,EAAWC,EAAO,qBAAqB,GAAGA,EAAO,wBAAwBR,CAAK,EAAE,CAAC,GAC9FU,IAAeH,EAAWC,EAAO,uBAAuB,GAAGA,EAAO,0BAA0BR,CAAK,EAAE,GAAG;AAAA,IAC1G,CAACQ,EAAO,6BAA6B,CAAC,GAAGH;AAAA,EAAA,CAC1C;AAGC,SAAA,gBAAAM,EAAC,UAAK,WAAWL,GAAsB,eAAaF,GAAQ,oBAAkBQ,EAAY,eACxF,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAK,EAAA,WAAWJ,GACf,UAAA,gBAAAI,EAACC,GAAK,EAAA,OAAOC,EAAQ,OAAO,SAASd,GAAM,MAAMe,EAAS,QAAS,CAAA,GACrE;AAAA,IACC,gBAAAH,EAAA,QAAA,EAAK,WAAWH,GAAe,UAAAR,EAAS,CAAA;AAAA,EAC3C,EAAA,CAAA;AAEJ;"}
@@ -36,14 +36,6 @@ $dot-size: 1.765rem;
36
36
  &--neutral {
37
37
  background: $neutral700;
38
38
  }
39
-
40
- &--blueberry {
41
- background: $blueberry500;
42
- }
43
-
44
- &--banana {
45
- background: $banana700;
46
- }
47
39
  }
48
40
 
49
41
  &__label {
@@ -64,13 +56,5 @@ $dot-size: 1.765rem;
64
56
  &--neutral {
65
57
  color: $neutral700;
66
58
  }
67
-
68
- &--blueberry {
69
- color: $blueberry500;
70
- }
71
-
72
- &--banana {
73
- color: $banana700;
74
- }
75
59
  }
76
60
  }
@@ -1,14 +1,10 @@
1
1
  export type Styles = {
2
2
  'sharing-status': string;
3
3
  'sharing-status__dot': string;
4
- 'sharing-status__dot--banana': string;
5
- 'sharing-status__dot--blueberry': string;
6
4
  'sharing-status__dot--cherry': string;
7
5
  'sharing-status__dot--kiwi': string;
8
6
  'sharing-status__dot--neutral': string;
9
7
  'sharing-status__label': string;
10
- 'sharing-status__label--banana': string;
11
- 'sharing-status__label--blueberry': string;
12
8
  'sharing-status__label--cherry': string;
13
9
  'sharing-status__label--kiwi': string;
14
10
  'sharing-status__label--neutral': string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare enum StatusDotModes {
2
+ export declare enum StatusDotOnColor {
3
3
  onwhite = "onwhite",
4
4
  ondark = "ondark"
5
5
  }
@@ -17,7 +17,7 @@ export declare enum StatusDotVariant {
17
17
  }
18
18
  export interface StatusDotIconProps {
19
19
  /** Defines the color of the icon */
20
- mode?: keyof typeof StatusDotModes;
20
+ onColor?: keyof typeof StatusDotOnColor;
21
21
  /** The variant defines style formatting and what icon to use */
22
22
  variant?: keyof typeof StatusDotVariant;
23
23
  }
@@ -25,7 +25,7 @@ export interface StatusDotProps {
25
25
  /** id that is placed on the wrapper */
26
26
  id?: string;
27
27
  /** Defines the color mode, onwhite, ondark etc. */
28
- mode?: keyof typeof StatusDotModes;
28
+ onColor?: keyof typeof StatusDotOnColor;
29
29
  /** Visual variants for the statusdot */
30
30
  variant?: keyof typeof StatusDotVariant;
31
31
  /** Text placed to the right of the statusdot */
@@ -1,8 +1,8 @@
1
1
  import { S as a } from "../../StatusDot.js";
2
- import { a as r, b as e } from "../../StatusDot.js";
2
+ import { a as s, b as u } from "../../StatusDot.js";
3
3
  export {
4
- r as StatusDotModes,
5
- e as StatusDotVariant,
4
+ s as StatusDotOnColor,
5
+ u as StatusDotVariant,
6
6
  a as default
7
7
  };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { TabsColors, TabsType } from '../Tabs';
2
+ import { TabsColors, TabsOnColor } from '../Tabs';
3
3
  interface TabListProps {
4
4
  children: React.ReactNode;
5
5
  onTabListClick: (index: number) => void;
6
6
  selectedTab: number;
7
- color?: TabsColors;
8
- type?: TabsType;
7
+ color: TabsColors;
8
+ onColor: TabsOnColor;
9
9
  }
10
10
  declare const TabList: React.FC<TabListProps>;
11
11
  export default TabList;
@@ -6,6 +6,7 @@
6
6
  $tab-list: &;
7
7
  $colors: 'blueberry', 'neutral', 'white';
8
8
 
9
+ position: relative;
9
10
  display: flex;
10
11
  flex-direction: row;
11
12
  gap: 0.25rem;
@@ -14,13 +15,44 @@
14
15
  overflow: hidden;
15
16
  height: 3rem;
16
17
  margin: 0;
17
- margin-bottom: -1px;
18
18
  background-color: var(--color-base-background-white);
19
+ padding-left: 0.5rem;
20
+ padding-right: 0.5rem;
21
+ margin-bottom: -1px;
22
+
23
+ @media (min-width: map.get($grid-breakpoints, md)) {
24
+ padding-left: 0;
25
+ padding-right: 0;
26
+
27
+ #{$tab-list}__tab {
28
+ &--selected {
29
+ height: 3rem;
30
+ }
31
+ }
32
+ }
33
+
34
+ @each $color in $colors {
35
+ .tab-list__tab--selected#{$tab-list}__tab--#{$color} {
36
+ background-color: var(--color-base-background-#{$color});
37
+ }
38
+ }
39
+
40
+ &--onwhite {
41
+ background-color: var(--color-base-background-white);
42
+ }
43
+
44
+ &--onblueberry {
45
+ background-color: var(--color-base-background-blueberry);
46
+ }
47
+
48
+ &--onneutral {
49
+ background-color: var(--color-base-background-neutral);
50
+ }
19
51
 
20
52
  &__tab {
21
53
  display: flex;
22
54
  align-items: start;
23
- background-color: transparent;
55
+ background-color: var(--color-base-background-white);
24
56
  height: 3rem;
25
57
  text-align: start;
26
58
  font-size: 1.25rem;
@@ -33,12 +65,6 @@
33
65
  position: relative;
34
66
  z-index: 0;
35
67
 
36
- @each $color in $colors {
37
- &--#{$color} {
38
- background-color: var(--color-base-background-#{$color});
39
- }
40
- }
41
-
42
68
  &--selected {
43
69
  overflow: visible;
44
70
  z-index: 1;
@@ -56,43 +82,14 @@
56
82
  }
57
83
  }
58
84
 
59
- &--normal {
60
- padding-left: 0.5rem;
61
-
62
- @media (min-width: map.get($grid-breakpoints, md)) {
63
- padding-left: 1rem;
64
- }
65
- }
66
-
67
- &--framed {
68
- padding-left: 0.5rem;
69
-
70
- @media (min-width: map.get($grid-breakpoints, md)) {
71
- padding-left: 0;
72
- }
73
-
74
- #{$tab-list}__tab {
75
- background-color: var(--color-base-background-white);
76
-
77
- &--first {
78
- // This is in order to look nice when the first tab is not selected
79
- height: 3.5rem;
80
- }
81
-
82
- &--selected {
83
- height: 3rem;
84
- }
85
- }
86
-
87
- @each $color in $colors {
88
- .tab-list__tab--selected#{$tab-list}__tab--#{$color} {
89
- background-color: var(--color-base-background-#{$color});
90
- }
85
+ .tab-list__tab {
86
+ &:focus-visible {
87
+ outline: 4px solid var(--color-action-border-onlight-focus);
88
+ outline-offset: -4px;
91
89
  }
92
90
  }
93
91
 
94
- // Because the button states should be the same for all types
95
- .tab-list__tab {
92
+ .tab-list__tab--not-selected {
96
93
  &:hover {
97
94
  background-color: var(--color-action-background-ondark-hover);
98
95
 
@@ -103,16 +100,31 @@
103
100
 
104
101
  &:active {
105
102
  background-color: var(--color-action-background-ondark-selected);
106
-
107
- &#{$tab-list}__tab--blueberry {
108
- background-color: var(--color-action-background-ondark-hoverselected);
109
- }
110
103
  }
104
+ }
111
105
 
112
- &:focus-visible {
113
- background-color: var(--color-base-background-blueberry);
114
- outline: 4px solid var(--color-action-border-onlight-focus);
115
- outline-offset: -4px;
116
- }
106
+ &__fade-start,
107
+ &__fade-end {
108
+ position: absolute;
109
+ top: 0;
110
+ width: 15px;
111
+ height: 47px;
112
+ z-index: 10;
113
+ }
114
+
115
+ &__fade-start {
116
+ left: 0;
117
+ mask-image: linear-gradient(to right, #000f, #0000);
118
+ }
119
+
120
+ &__fade-end {
121
+ right: 0;
122
+ mask-image: linear-gradient(to left, #000f, #0000);
123
+ }
124
+
125
+ &__border {
126
+ position: relative;
127
+ height: 1px;
128
+ background-color: var(--color-action-border-onlight-focus);
117
129
  }
118
130
  }
@@ -1,14 +1,18 @@
1
1
  export type Styles = {
2
2
  'tab-list': string;
3
+ 'tab-list__border': string;
4
+ 'tab-list__fade-end': string;
5
+ 'tab-list__fade-start': string;
3
6
  'tab-list__tab': string;
4
7
  'tab-list__tab__title-and-icon': string;
5
8
  'tab-list__tab--blueberry': string;
6
- 'tab-list__tab--first': string;
7
9
  'tab-list__tab--neutral': string;
10
+ 'tab-list__tab--not-selected': string;
8
11
  'tab-list__tab--selected': string;
9
12
  'tab-list__tab--white': string;
10
- 'tab-list--framed': string;
11
- 'tab-list--normal': string;
13
+ 'tab-list--onblueberry': string;
14
+ 'tab-list--onneutral': string;
15
+ 'tab-list--onwhite': string;
12
16
  };
13
17
 
14
18
  export type ClassNames = keyof Styles;