@helsenorge/designsystem-react 9.4.3 → 10.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 (66) hide show
  1. package/Avatar.js +4 -4
  2. package/Avatar.js.map +1 -1
  3. package/CHANGELOG.md +1245 -745
  4. package/HighlightPanel.js +5 -2
  5. package/HighlightPanel.js.map +1 -1
  6. package/Label.js +3 -3
  7. package/Label.js.map +1 -1
  8. package/LinkList.js +13 -4
  9. package/LinkList.js.map +1 -1
  10. package/ListHeader.js +9 -40
  11. package/ListHeader.js.map +1 -1
  12. package/PopOver.js +1 -1
  13. package/PopOver.js.map +1 -1
  14. package/TabList.js +3 -1
  15. package/TabList.js.map +1 -1
  16. package/Title.js +2 -1
  17. package/Title.js.map +1 -1
  18. package/components/Avatar/Avatar.d.ts +4 -4
  19. package/components/Badge/styles.module.scss +1 -6
  20. package/components/Chip/styles.module.scss +0 -1
  21. package/components/EmptyState/EmptyBoxBeeCompact.d.ts +4 -0
  22. package/components/EmptyState/EmptyBoxBeeMedium.d.ts +4 -0
  23. package/components/EmptyState/EmptyBoxBeeSmall.d.ts +4 -0
  24. package/components/EmptyState/EmptyState.d.ts +18 -0
  25. package/components/EmptyState/index.js +315 -155
  26. package/components/EmptyState/index.js.map +1 -1
  27. package/components/EmptyState/styles.module.scss +26 -10
  28. package/components/EmptyState/styles.module.scss.d.ts +3 -1
  29. package/components/ExpanderHierarchy/expander.module.scss +1 -1
  30. package/components/ExpanderHierarchy/styles.module.scss +1 -1
  31. package/components/FormGroup/styles.module.scss +1 -1
  32. package/components/Input/styles.module.scss +5 -5
  33. package/components/Label/Label.d.ts +2 -2
  34. package/components/Label/styles.module.scss +4 -10
  35. package/components/Label/styles.module.scss.d.ts +1 -1
  36. package/components/LinkList/LinkList.d.ts +3 -3
  37. package/components/LinkList/styles.module.scss +120 -40
  38. package/components/LinkList/styles.module.scss.d.ts +18 -5
  39. package/components/ListHeader/styles.module.scss +40 -117
  40. package/components/ListHeader/styles.module.scss.d.ts +1 -21
  41. package/components/PanelList/styles.module.scss +0 -1
  42. package/components/StepButtons/styles.module.scss +0 -1
  43. package/components/Tabs/TabList/TabItem.d.ts +1 -0
  44. package/components/Tabs/TabPanel/styles.module.scss +0 -1
  45. package/components/Tabs/Tabs.d.ts +0 -3
  46. package/components/Tabs/index.js.map +1 -1
  47. package/components/Tag/styles.module.scss +0 -1
  48. package/components/Textarea/styles.module.scss +3 -2
  49. package/components/Title/Title.d.ts +2 -2
  50. package/components/Title/styles.module.scss +5 -1
  51. package/components/Title/styles.module.scss.d.ts +1 -0
  52. package/components/Toggle/Toggle.d.ts +1 -1
  53. package/components/Toggle/index.js +17 -17
  54. package/components/Toggle/index.js.map +1 -1
  55. package/components/Toggle/styles.module.scss +5 -5
  56. package/components/Toggle/styles.module.scss.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/scss/_body.scss +2 -7
  59. package/scss/_font-mixins.scss +186 -0
  60. package/scss/_font-settings.scss +0 -2
  61. package/scss/_input.scss +1 -0
  62. package/scss/typography.module.scss +27 -27
  63. package/scss/typography.module.scss.d.ts +6 -1
  64. package/scss/typography.stories.tsx +18 -2
  65. package/components/EmptyState/NobodyHome.d.ts +0 -3
  66. package/scss/_title.scss +0 -78
@@ -1,21 +1,34 @@
1
1
  export type Styles = {
2
2
  'link-list': string;
3
3
  'link-list__anchor': string;
4
- 'link-list__anchor--banana': string;
5
- 'link-list__anchor--black': string;
6
4
  'link-list__anchor--blueberry': string;
7
5
  'link-list__anchor--button': string;
8
6
  'link-list__anchor--cherry': string;
9
7
  'link-list__anchor--fill': string;
10
- 'link-list__anchor--kiwi': string;
8
+ 'link-list__anchor--fill--blueberry': string;
9
+ 'link-list__anchor--fill--cherry': string;
10
+ 'link-list__anchor--fill--neutral': string;
11
+ 'link-list__anchor--fill--white': string;
12
+ 'link-list__anchor--fill-negative': string;
11
13
  'link-list__anchor--large': string;
14
+ 'link-list__anchor--line--blueberry': string;
15
+ 'link-list__anchor--line--cherry': string;
16
+ 'link-list__anchor--line--neutral': string;
17
+ 'link-list__anchor--line--white': string;
12
18
  'link-list__anchor--medium': string;
13
19
  'link-list__anchor--neutral': string;
14
- 'link-list__anchor--plum': string;
20
+ 'link-list__anchor--outline': string;
21
+ 'link-list__anchor--outline--blueberry': string;
22
+ 'link-list__anchor--outline--cherry': string;
23
+ 'link-list__anchor--outline--neutral': string;
24
+ 'link-list__anchor--outline--white': string;
15
25
  'link-list__anchor--small': string;
16
26
  'link-list__anchor--white': string;
17
27
  'link-list__list-item--line': string;
18
- 'link-list__list-item--outline': string;
28
+ 'link-list__list-item--outline--blueberry': string;
29
+ 'link-list__list-item--outline--cherry': string;
30
+ 'link-list__list-item--outline--neutral': string;
31
+ 'link-list__list-item--outline--white': string;
19
32
  };
20
33
 
21
34
  export type ClassNames = keyof Styles;
@@ -1,48 +1,33 @@
1
1
  @use 'sass:map';
2
2
  @import '../../scss/spacers';
3
3
  @import '../../scss/breakpoints';
4
- @import '../../scss/font-settings';
5
4
  @import '../../scss/palette';
6
5
 
7
6
  .list-header {
8
- display: flex;
7
+ display: grid;
8
+ grid-template:
9
+ 'icon text badge chevron' 4rem
10
+ '. text . .' auto / min-content auto min-content min-content;
11
+ column-gap: getSpacer(2xs);
12
+ margin-left: getSpacer(2xs);
13
+ margin-right: getSpacer(2xs);
9
14
  width: 100%;
10
- padding-right: getSpacer(2xs);
11
- padding-left: getSpacer(2xs);
15
+ height: 100%;
12
16
  text-align: left;
13
- align-items: center;
14
-
15
- &--for-element-content {
16
- align-content: flex-start;
17
- padding-top: getSpacer(s);
18
- padding-bottom: getSpacer(s);
19
- }
20
-
21
- &--top-align-content {
22
- align-items: flex-start;
23
- }
24
17
 
25
18
  &__title {
26
19
  font-size: inherit;
27
20
  font-weight: inherit;
28
21
  line-height: inherit;
29
- padding: 0;
30
- margin: 0;
31
22
  }
32
23
 
33
24
  &__content {
34
- border-bottom: 1px solid transparent;
35
- display: flex;
36
- align-items: center;
37
25
  width: 100%;
38
-
39
- &--string {
40
- margin: getSpacer(xs) 0;
41
-
42
- @media (min-width: map.get($grid-breakpoints, md)) {
43
- margin: getSpacer(s) 0;
44
- }
45
- }
26
+ height: 100%;
27
+ grid-area: text;
28
+ align-self: center;
29
+ padding-top: 1.125rem;
30
+ padding-bottom: 1.125rem;
46
31
 
47
32
  &--element {
48
33
  display: flex;
@@ -50,10 +35,6 @@
50
35
  flex-direction: column;
51
36
  }
52
37
 
53
- &--spacing {
54
- margin-left: getSpacer(s);
55
- }
56
-
57
38
  :focus > &,
58
39
  :focus-visible > & {
59
40
  border-color: $black;
@@ -61,104 +42,46 @@
61
42
  }
62
43
 
63
44
  &__icon,
64
- &__avatar {
65
- display: flex;
66
- align-items: center;
67
-
68
- &--for-element-content {
69
- &--medium {
70
- height: $lineheight-size-sm;
71
- }
72
-
73
- &--large {
74
- height: $lineheight-size-md;
75
- }
76
-
77
- @media (min-width: map.get($grid-breakpoints, md)) {
78
- &--medium {
79
- height: $lineheight-size-md;
80
- }
45
+ &__icon svg,
46
+ &__avatar,
47
+ &__badge-container,
48
+ &__chevron,
49
+ &__chevron svg {
50
+ align-self: center;
51
+ }
81
52
 
82
- &--large {
83
- height: $lineheight-size-lg;
84
- }
85
- }
86
- }
53
+ &__icon,
54
+ &__avatar {
55
+ grid-area: icon;
87
56
  }
88
57
 
89
58
  &__icon {
90
- &--for-string-content {
91
- margin: getSpacer(3xs) getSpacer(2xs) getSpacer(3xs) 0;
92
-
93
- @media (min-width: map.get($grid-breakpoints, md)) {
94
- margin: getSpacer(2xs) getSpacer(2xs) getSpacer(2xs) 0;
95
- }
96
- }
97
-
98
- &--for-element-content {
99
- margin: 0 getSpacer(2xs) 0 0;
100
- }
59
+ height: 100%;
101
60
  }
102
61
 
103
- &__avatar {
104
- &--for-string-content {
105
- margin: getSpacer(3xs) getSpacer(s) getSpacer(3xs) 0;
106
-
107
- @media (min-width: map.get($grid-breakpoints, md)) {
108
- margin: getSpacer(2xs) getSpacer(s) getSpacer(2xs) 0;
109
- }
110
- }
62
+ &__chevron {
63
+ grid-area: chevron;
64
+ height: 100%;
65
+ }
111
66
 
112
- &--for-element-content {
113
- margin: 0 getSpacer(s) 0 0;
114
- }
67
+ &__chevron svg,
68
+ &__icon svg {
69
+ height: 100%;
115
70
  }
116
71
 
117
- &__chevron,
118
- &__badge {
72
+ &__badge-container {
73
+ grid-area: badge;
119
74
  display: flex;
75
+ flex-flow: row;
120
76
  align-items: center;
121
- margin-left: getSpacer(2xs);
122
-
123
- &--for-string-content {
124
- margin: getSpacer(3xs) 0 getSpacer(3xs) auto;
125
-
126
- @media (min-width: map.get($grid-breakpoints, md)) {
127
- margin: getSpacer(2xs) 0 getSpacer(2xs) auto;
128
- }
129
- }
130
-
131
- // Height needs to be same as line-height
132
- &--small {
133
- height: $lineheight-size-xs;
134
- }
135
-
136
- &--medium {
137
- height: $lineheight-size-sm;
138
- }
139
-
140
- &--large {
141
- height: $lineheight-size-md;
142
- }
143
-
144
- @media (min-width: map.get($grid-breakpoints, md)) {
145
- &--small {
146
- height: $lineheight-size-sm;
147
- }
148
-
149
- &--medium {
150
- height: $lineheight-size-md;
151
- }
152
-
153
- &--large {
154
- height: $lineheight-size-lg;
155
- }
156
- }
77
+ gap: 0.5rem;
78
+ height: 100%;
157
79
  }
158
- }
159
80
 
160
- .statusDot {
161
- padding: 1rem;
81
+ &__badge:has(svg),
82
+ &__badge svg {
83
+ height: 100%;
84
+ }
162
85
  }
163
86
 
164
87
  .text-wrapper {
@@ -1,33 +1,13 @@
1
1
  export type Styles = {
2
2
  'list-header': string;
3
3
  'list-header__avatar': string;
4
- 'list-header__avatar--for-element-content': string;
5
- 'list-header__avatar--for-element-content--large': string;
6
- 'list-header__avatar--for-element-content--medium': string;
7
- 'list-header__avatar--for-string-content': string;
8
4
  'list-header__badge': string;
9
- 'list-header__badge--for-string-content': string;
10
- 'list-header__badge--large': string;
11
- 'list-header__badge--medium': string;
12
- 'list-header__badge--small': string;
5
+ 'list-header__badge-container': string;
13
6
  'list-header__chevron': string;
14
- 'list-header__chevron--for-string-content': string;
15
- 'list-header__chevron--large': string;
16
- 'list-header__chevron--medium': string;
17
- 'list-header__chevron--small': string;
18
7
  'list-header__content': string;
19
8
  'list-header__content--element': string;
20
- 'list-header__content--spacing': string;
21
- 'list-header__content--string': string;
22
9
  'list-header__icon': string;
23
- 'list-header__icon--for-element-content': string;
24
- 'list-header__icon--for-element-content--large': string;
25
- 'list-header__icon--for-element-content--medium': string;
26
- 'list-header__icon--for-string-content': string;
27
10
  'list-header__title': string;
28
- 'list-header--for-element-content': string;
29
- 'list-header--top-align-content': string;
30
- statusDot: string;
31
11
  'text-wrapper': string;
32
12
  'text-wrapper__text--emphasised': string;
33
13
  'text-wrapper--sub-level': string;
@@ -2,7 +2,6 @@
2
2
  @import '../../scss/spacers';
3
3
  @import '../../scss/breakpoints';
4
4
  @import '../../scss/palette';
5
- @import '../../scss/font-settings';
6
5
 
7
6
  .panel-list {
8
7
  &__panel:not(:last-child) {
@@ -2,7 +2,6 @@
2
2
  @import '../../scss/spacers';
3
3
  @import '../../scss/breakpoints';
4
4
  @import '../../scss/palette';
5
- @import '../../scss/font-settings';
6
5
  @import '../../scss/screen-reader';
7
6
 
8
7
  .stepbuttons {
@@ -7,6 +7,7 @@ interface TabItemProps {
7
7
  color: TabsColors;
8
8
  selectedTab: number;
9
9
  tabRefs: React.MutableRefObject<React.RefObject<HTMLButtonElement>[] | null | undefined>;
10
+ tabListVisible: boolean;
10
11
  onTabListClick: (index: number) => void;
11
12
  }
12
13
  declare const TabItem: React.FC<TabItemProps>;
@@ -1,7 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @import '../../../scss/spacers';
3
3
  @import '../../../scss/palette';
4
- @import '../../../scss/font-settings';
5
4
  @import '../../../scss/breakpoints';
6
5
  @import '../../../scss/supernova/styles/colors';
7
6
 
@@ -4,7 +4,6 @@ import { PaletteNames } from '../../theme/palette';
4
4
  export type { TabProps } from './Tab';
5
5
  export type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;
6
6
  export type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';
7
- export type TabsTouchBehaviour = 'swipe' | 'none';
8
7
  export interface TabsProps {
9
8
  children?: React.ReactNode;
10
9
  /** Controlled state for Tabs component */
@@ -19,8 +18,6 @@ export interface TabsProps {
19
18
  onColor?: TabsOnColor;
20
19
  /** Whether the tab list should be sticky */
21
20
  sticky?: boolean;
22
- /** Determines how Tabs respons to touch events. */
23
- touchBehaviour?: TabsTouchBehaviour;
24
21
  /** Sets the data-testid attribute. */
25
22
  testId?: string;
26
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport designsystemlayout from '../../scss/layout.module.scss';\nimport { PaletteNames } from '../../theme/palette';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\nexport type TabsTouchBehaviour = 'swipe' | 'none';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Determines how Tabs respons to touch events. */\n touchBehaviour?: TabsTouchBehaviour;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n }\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n >\n <TabList onTabListClick={(index: number) => onValueChange(index)} selectedTab={activeTabIndex} color={color} onColor={onColorUsed}>\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n"],"names":[],"mappings":";;;;;;;AAqCA,MAAM,WAAgC,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,SAAS;AAAA,EACT;AACF,MAAM;AACJ,QAAM,eAAe,cAAc;AACnC,QAAM,CAAC,mBAAmB,oBAAoB,IAAI,SAAS,CAAC;AACtD,QAAA,UAAU,OAAuB,IAAI;AACrC,QAAA,cAAc,OAAuB,IAAI;AACzC,QAAA,aAAa,OAAuB,IAAI;AAE9C,MAAI,cAA2B;AAC/B,MAAI,UAAU,SAAS;AACP,kBAAA;AAAA,EAAA;AAGV,QAAA,gBAAgB,CAAC,aAA2B;AAChD,QAAI,CAAC,cAAc;AACjB,2BAAqB,QAAQ;AAAA,IAAA;AAAA,EAEjC;AAEM,QAAA,iBAAiB,eAAe,YAAY;AAGhD,SAAA,qBAAC,OAAI,EAAA,WAAW,WAAW,WAAW,qBAAqB,mBAAmB,oBAAoB,CAAC,GAAG,eAAa,QACjH,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,WAAW,WAAW,OAAO,kBAAkB,GAAG;AAAA,UAChD,CAAC,OAAO,0BAA0B,CAAC,GAAG;AAAA,QAAA,CACvC;AAAA,QAED,UAAA;AAAA,UAAA,oBAAC,SAAQ,EAAA,gBAAgB,CAAC,UAAkB,cAAc,KAAK,GAAG,aAAa,gBAAgB,OAAc,SAAS,aACnH,SACH,CAAA;AAAA,UACC,oBAAA,OAAA,EAAI,WAAW,WAAW,OAAO,eAAe,GAAG,OAAO,kBAAkB,KAAK,EAAE,CAAC,EAAG,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1F;AAAA,IACA,oBAAC,OAAI,EAAA,KAAK,SAAS,OAAO,EAAE,WAAW,QAAA,GACrC,UAAA,oBAAC,UAAS,EAAA,KAAK,aAAa,OAAc,SAAS,kBAAkB,GAClE,UAAM,MAAA,SAAS,QAAQ,QAAQ,EAAE,cAAc,EAClD,CAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;AAKA,MAAM,OAAO;AACb,KAAK,cAAc;AACnB,KAAK,MAAM;AACX,KAAK,IAAI,cAAc;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport designsystemlayout from '../../scss/layout.module.scss';\nimport { PaletteNames } from '../../theme/palette';\n\nimport styles from './styles.module.scss';\n\nexport type { TabProps } from './Tab';\nexport type TabsColors = Extract<PaletteNames, 'blueberry' | 'neutral' | 'white'>;\nexport type TabsOnColor = 'onblueberry' | 'onneutral' | 'onwhite';\n\nexport interface TabsProps {\n children?: React.ReactNode;\n /** Controlled state for Tabs component */\n activeTab?: number;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the color of the tabs. Default: white */\n color?: TabsColors;\n /** Sets wether the component should use the container-breakout class. Default: true */\n containerBreakout?: boolean;\n /** Sets the background color of the tabs. Can only be used when the color is set to white. Default: onwhite */\n onColor?: TabsOnColor;\n /** Whether the tab list should be sticky */\n sticky?: boolean;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst TabsRoot: React.FC<TabsProps> = ({\n activeTab,\n children,\n className,\n color = 'white',\n containerBreakout = true,\n onColor = 'onwhite',\n sticky = true,\n testId,\n}) => {\n const isControlled = activeTab !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(0);\n const tabsRef = useRef<HTMLDivElement>(null);\n const tabPanelRef = useRef<HTMLDivElement>(null);\n const tabListRef = useRef<HTMLDivElement>(null);\n\n let onColorUsed: TabsOnColor = 'onwhite';\n if (color === 'white') {\n onColorUsed = onColor;\n }\n\n const onValueChange = (newValue: number): void => {\n if (!isControlled) {\n setUncontrolledValue(newValue);\n }\n };\n\n const activeTabIndex = isControlled ? activeTab : uncontrolledValue;\n\n return (\n <div className={classNames(className, containerBreakout && designsystemlayout['container-breakout'])} data-testid={testId}>\n <div\n ref={tabListRef}\n className={classNames(styles['tab-list-wrapper'], {\n [styles['tab-list-wrapper--sticky']]: sticky,\n })}\n >\n <TabList onTabListClick={(index: number) => onValueChange(index)} selectedTab={activeTabIndex} color={color} onColor={onColorUsed}>\n {children}\n </TabList>\n <div className={classNames(styles['panel-wrapper'], styles[`panel-wrapper--${color}`])}></div>\n </div>\n <div ref={tabsRef} style={{ marginTop: '-50px' }}>\n <TabPanel ref={tabPanelRef} color={color} isFirst={activeTabIndex == 0}>\n {React.Children.toArray(children)[activeTabIndex]}\n </TabPanel>\n </div>\n </div>\n );\n};\n\ntype TabsComponent = typeof TabsRoot & {\n Tab: typeof Tab;\n};\nconst Tabs = TabsRoot as TabsComponent;\nTabs.displayName = 'Tabs';\nTabs.Tab = Tab;\nTabs.Tab.displayName = 'Tabs.Tab';\n\nexport default Tabs;\n"],"names":[],"mappings":";;;;;;;AAkCA,MAAM,WAAgC,CAAC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,UAAU;AAAA,EACV,SAAS;AAAA,EACT;AACF,MAAM;AACJ,QAAM,eAAe,cAAc;AACnC,QAAM,CAAC,mBAAmB,oBAAoB,IAAI,SAAS,CAAC;AACtD,QAAA,UAAU,OAAuB,IAAI;AACrC,QAAA,cAAc,OAAuB,IAAI;AACzC,QAAA,aAAa,OAAuB,IAAI;AAE9C,MAAI,cAA2B;AAC/B,MAAI,UAAU,SAAS;AACP,kBAAA;AAAA,EAAA;AAGV,QAAA,gBAAgB,CAAC,aAA2B;AAChD,QAAI,CAAC,cAAc;AACjB,2BAAqB,QAAQ;AAAA,IAAA;AAAA,EAEjC;AAEM,QAAA,iBAAiB,eAAe,YAAY;AAGhD,SAAA,qBAAC,OAAI,EAAA,WAAW,WAAW,WAAW,qBAAqB,mBAAmB,oBAAoB,CAAC,GAAG,eAAa,QACjH,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,WAAW,WAAW,OAAO,kBAAkB,GAAG;AAAA,UAChD,CAAC,OAAO,0BAA0B,CAAC,GAAG;AAAA,QAAA,CACvC;AAAA,QAED,UAAA;AAAA,UAAA,oBAAC,SAAQ,EAAA,gBAAgB,CAAC,UAAkB,cAAc,KAAK,GAAG,aAAa,gBAAgB,OAAc,SAAS,aACnH,SACH,CAAA;AAAA,UACC,oBAAA,OAAA,EAAI,WAAW,WAAW,OAAO,eAAe,GAAG,OAAO,kBAAkB,KAAK,EAAE,CAAC,EAAG,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1F;AAAA,IACA,oBAAC,OAAI,EAAA,KAAK,SAAS,OAAO,EAAE,WAAW,QAAA,GACrC,UAAA,oBAAC,UAAS,EAAA,KAAK,aAAa,OAAc,SAAS,kBAAkB,GAClE,UAAM,MAAA,SAAS,QAAQ,QAAQ,EAAE,cAAc,EAClD,CAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;AAKA,MAAM,OAAO;AACb,KAAK,cAAc;AACnB,KAAK,MAAM;AACX,KAAK,IAAI,cAAc;"}
@@ -2,7 +2,6 @@
2
2
  @import '../../scss/spacers';
3
3
  @import '../../scss/breakpoints';
4
4
  @import '../../scss/palette';
5
- @import '../../scss/font-settings';
6
5
 
7
6
  .tag {
8
7
  $tag: &;
@@ -1,8 +1,8 @@
1
1
  @import '../../scss/spacers';
2
2
  @import '../../scss/breakpoints';
3
3
  @import '../../scss/palette';
4
- @import '../../scss/font-settings';
5
4
  @import '../../scss/input';
5
+ @import '../../scss/font-mixins';
6
6
 
7
7
  .textarea {
8
8
  @include input-wrapper;
@@ -16,7 +16,8 @@
16
16
  @include input-container;
17
17
 
18
18
  &__input {
19
- line-height: 28px;
19
+ @include input-text;
20
+
20
21
  height: auto;
21
22
  padding: 16px;
22
23
  resize: none;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export type TitleTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';
3
- export type TitleAppearances = 'titleFeature' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5';
2
+ export type TitleTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
3
+ export type TitleAppearances = 'titleFeature' | 'title1' | 'title2' | 'title3' | 'title4' | 'title5' | 'title6';
4
4
  export interface TitleProps {
5
5
  children: React.ReactNode;
6
6
  /** Gives a unique id to the title */
@@ -1,4 +1,4 @@
1
- @import '../../scss/title';
1
+ @import '../../scss/font-mixins';
2
2
 
3
3
  .title {
4
4
  overflow-wrap: break-word;
@@ -29,4 +29,8 @@
29
29
  &--title5 {
30
30
  @include title5;
31
31
  }
32
+
33
+ &--title6 {
34
+ @include title6;
35
+ }
32
36
  }
@@ -6,6 +6,7 @@ export type Styles = {
6
6
  'title--title3': string;
7
7
  'title--title4': string;
8
8
  'title--title5': string;
9
+ 'title--title6': string;
9
10
  };
10
11
 
11
12
  export type ClassNames = keyof Styles;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  export type LabelText = {
3
3
  text: string;
4
- type?: 'semibold' | 'normal';
4
+ type?: 'subdued' | 'normal';
5
5
  };
6
6
  export declare enum TogglePosition {
7
7
  left = "left",
@@ -2450,7 +2450,7 @@ class MotionValue {
2450
2450
  * @internal
2451
2451
  */
2452
2452
  constructor(init, options = {}) {
2453
- this.version = "11.13.1";
2453
+ this.version = "11.14.3";
2454
2454
  this.canTrackVelocity = null;
2455
2455
  this.events = {};
2456
2456
  this.updateAndNotify = (v, render = true) => {
@@ -2783,20 +2783,6 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
2783
2783
  }
2784
2784
  return animations;
2785
2785
  }
2786
- function resolveElements(elementOrSelector, scope, selectorCache) {
2787
- var _a;
2788
- if (elementOrSelector instanceof Element) {
2789
- return [elementOrSelector];
2790
- } else if (typeof elementOrSelector === "string") {
2791
- let root = document;
2792
- if (scope) {
2793
- root = scope.current;
2794
- }
2795
- const elements = (_a = selectorCache === null || selectorCache === void 0 ? void 0 : selectorCache[elementOrSelector]) !== null && _a !== void 0 ? _a : root.querySelectorAll(elementOrSelector);
2796
- return elements ? Array.from(elements) : [];
2797
- }
2798
- return Array.from(elementOrSelector);
2799
- }
2800
2786
  const createAxis = () => ({ min: 0, max: 0 });
2801
2787
  const createBox = () => ({
2802
2788
  x: createAxis(),
@@ -2832,6 +2818,20 @@ function animateSingleValue(value, keyframes2, options) {
2832
2818
  motionValue$1.start(animateMotionValue("", motionValue$1, keyframes2, options));
2833
2819
  return motionValue$1.animation;
2834
2820
  }
2821
+ function resolveElements(elementOrSelector, scope, selectorCache) {
2822
+ var _a;
2823
+ if (elementOrSelector instanceof Element) {
2824
+ return [elementOrSelector];
2825
+ } else if (typeof elementOrSelector === "string") {
2826
+ let root = document;
2827
+ if (scope) {
2828
+ root = scope.current;
2829
+ }
2830
+ const elements = (_a = selectorCache === null || selectorCache === void 0 ? void 0 : selectorCache[elementOrSelector]) !== null && _a !== void 0 ? _a : root.querySelectorAll(elementOrSelector);
2831
+ return elements ? Array.from(elements) : [];
2832
+ }
2833
+ return Array.from(elementOrSelector);
2834
+ }
2835
2835
  const isBrowser = typeof window !== "undefined";
2836
2836
  function isControllingVariants(props) {
2837
2837
  return isAnimationControls(props.animate) || variantProps.some((name) => isVariantLabel(props[name]));
@@ -3098,7 +3098,7 @@ function updateMotionValuesFromProps(element, next, prev) {
3098
3098
  if (isMotionValue(nextValue)) {
3099
3099
  element.addValue(key, nextValue);
3100
3100
  if (process.env.NODE_ENV === "development") {
3101
- warnOnce(nextValue.version === "11.13.1", `Attempting to mix Motion versions ${nextValue.version} with 11.13.1 may not work as expected.`);
3101
+ warnOnce(nextValue.version === "11.14.3", `Attempting to mix Motion versions ${nextValue.version} with 11.14.3 may not work as expected.`);
3102
3102
  }
3103
3103
  } else if (isMotionValue(prevValue)) {
3104
3104
  element.addValue(key, motionValue(nextValue, { owner: element }));
@@ -4036,7 +4036,7 @@ const Toggle = ({
4036
4036
  }),
4037
4037
  children: label.map((labelText) => {
4038
4038
  const labelClassNames = classNames({
4039
- [styles["toggle-container__label__text--semibold"]]: labelText.type === "semibold"
4039
+ [styles["toggle-container__label__text--subdued"]]: labelText.type === "subdued"
4040
4040
  });
4041
4041
  return /* @__PURE__ */ jsx("span", { className: labelClassNames, children: labelText.text }, labelId + labelText.text);
4042
4042
  })