@arkitektbedriftene/fe-lib 4.3.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/elements/components/CompanyLogo.d.ts +8 -14
  2. package/dist/elements/elements.d.ts +1 -1
  3. package/dist/elements.d.ts +1 -0
  4. package/dist/elements.es.js +23 -23
  5. package/dist/icons.d.ts +1 -0
  6. package/dist/icons.es.js +3 -4
  7. package/dist/{index.esm-fa9e6ea7.js → index.esm-Dzt91gSZ.js} +29 -32
  8. package/dist/normalize.css.d.ts +1 -1
  9. package/dist/oidc/impersonate.d.ts +1 -1
  10. package/dist/oidc/oidc.d.ts +6 -6
  11. package/dist/oidc.d.ts +1 -0
  12. package/dist/oidc.es.js +5 -5
  13. package/dist/rich-text/Editor.d.ts +13 -18
  14. package/dist/rich-text/Plugins/Image/ImageComponent.d.ts +1 -1
  15. package/dist/rich-text/Plugins/Image/ImageNode.d.ts +2 -3
  16. package/dist/rich-text/Plugins/Image/ImagePlugin.d.ts +3 -3
  17. package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +3 -3
  18. package/dist/rich-text/Plugins/LinkTargetNode.d.ts +2 -2
  19. package/dist/rich-text/Plugins/ParsePlugin.d.ts +2 -2
  20. package/dist/rich-text/Plugins/RutineLinkNode.d.ts +12 -12
  21. package/dist/rich-text/Toolbar/Toolbar.d.ts +3 -119
  22. package/dist/rich-text/config.d.ts +9 -8
  23. package/dist/rich-text/editorContext.d.ts +7 -7
  24. package/dist/rich-text/getSelectedNode.d.ts +1 -1
  25. package/dist/rich-text/state.d.ts +5 -5
  26. package/dist/rich-text/styles.d.ts +100 -94
  27. package/dist/rich-text/theme.d.ts +1 -1
  28. package/dist/rich-text/trim.d.ts +3 -3
  29. package/dist/rich-text.d.ts +1 -0
  30. package/dist/rich-text.es.js +257 -249
  31. package/dist/ui/components/Alert.d.ts +95 -96
  32. package/dist/ui/components/Avatar.d.ts +97 -215
  33. package/dist/ui/components/Badge.d.ts +94 -94
  34. package/dist/ui/components/Box.d.ts +94 -94
  35. package/dist/ui/components/Button.d.ts +95 -96
  36. package/dist/ui/components/Card.d.ts +94 -94
  37. package/dist/ui/components/Dialog.d.ts +284 -400
  38. package/dist/ui/components/Form/Checkbox.d.ts +97 -216
  39. package/dist/ui/components/Form/Combobox.d.ts +2 -2
  40. package/dist/ui/components/Form/ReactSelect.d.ts +4 -2
  41. package/dist/ui/components/Form/Select.d.ts +3 -3
  42. package/dist/ui/components/Form/Switch.d.ts +195 -549
  43. package/dist/ui/components/Form/TextArea.d.ts +96 -97
  44. package/dist/ui/components/Form/TextInput.d.ts +96 -97
  45. package/dist/ui/components/Form/text.d.ts +188 -188
  46. package/dist/ui/components/Menu/DropdownMenu.d.ts +287 -287
  47. package/dist/ui/components/Menu/Menu.d.ts +281 -281
  48. package/dist/ui/components/NavBar.d.ts +98 -222
  49. package/dist/ui/components/OverlayCard.d.ts +94 -95
  50. package/dist/ui/components/Popover.d.ts +7 -124
  51. package/dist/ui/components/Spinner.d.ts +95 -96
  52. package/dist/ui/components/Stack.d.ts +95 -95
  53. package/dist/ui/components/Toolbar.d.ts +381 -382
  54. package/dist/ui/stitches.config.d.ts +569 -568
  55. package/dist/ui.css.d.ts +1 -1
  56. package/dist/ui.d.ts +1 -0
  57. package/dist/ui.es.js +54 -55
  58. package/package.json +5 -17
  59. package/dist/colors/colors.d.ts +0 -18
  60. package/dist/colors.d.ts +0 -1
  61. package/dist/colors.es.js +0 -20
  62. package/dist/hooks/hooks.d.ts +0 -2
  63. package/dist/hooks.d.ts +0 -1
  64. package/dist/hooks.es.js +0 -4
  65. package/dist/index.d.ts +0 -1
  66. package/dist/index.es.js +0 -4
  67. /package/dist/{stitches.config-00c23cdb.js → stitches.config-CEYOm13b.js} +0 -0
@@ -1,232 +1,232 @@
1
- export declare const textCss: import("@stitches/react/types/styled-component").CssComponent<never, {}, {
1
+ export declare const textCss: import('@stitches/react/types/styled-component').CssComponent<never, {}, {
2
2
  lg: "(min-width: 1200px)";
3
3
  print: "print";
4
- }, import("@stitches/react/types/css-util").CSS<{
4
+ }, import('@stitches/react/types/css-util').CSS<{
5
5
  lg: "(min-width: 1200px)";
6
6
  print: "print";
7
7
  }, {
8
8
  colors: {
9
- gray50: string;
10
- gray100: string;
11
- gray200: string;
12
- gray300: string;
13
- gray400: string;
14
- gray500: string;
15
- gray600: string;
16
- gray700: string;
17
- gray800: string;
18
- gray900: string;
19
- blue50: string;
20
- blue100: string;
21
- blue200: string;
22
- blue300: string;
23
- blue400: string;
24
- blue500: string;
25
- blue600: string;
26
- blue700: string;
27
- blue800: string;
28
- blue900: string;
29
- yellow50: string;
30
- yellow100: string;
31
- yellow200: string;
32
- yellow300: string;
33
- yellow400: string;
34
- yellow500: string;
35
- yellow600: string;
36
- yellow700: string;
37
- yellow800: string;
38
- yellow900: string;
39
- orange500: string;
40
- red50: string;
41
- red100: string;
42
- red200: string;
43
- red300: string;
44
- red400: string;
45
- red500: string;
46
- red600: string;
47
- red700: string;
48
- red800: string;
49
- red900: string;
50
- green50: string;
51
- green100: string;
52
- green200: string;
53
- green300: string;
54
- green400: string;
55
- green500: string;
56
- green600: string;
57
- green700: string;
58
- green800: string;
59
- green900: string;
60
- primaryTextOnLightBg: string;
61
- primaryBg: string;
62
- primaryBgHover: string;
63
- primaryTextOnWhite: string;
64
- bodyGray: string;
65
- hoverDarker: string;
66
- borderDarker: string;
67
- selectedDarker: string;
68
- selectedOnBodyGray: string;
69
- darkGrayBg: string;
70
- border: string;
71
- text: string;
72
- secondaryText: string;
73
- focusRing: string;
9
+ gray50: "#F9FAFA";
10
+ gray100: "#EBEEEE";
11
+ gray200: "#CFD6D7";
12
+ gray300: "#B3BEC0";
13
+ gray400: "#97A6A8";
14
+ gray500: "#7C8E91";
15
+ gray600: "#627578";
16
+ gray700: "#4F5F61";
17
+ gray800: "#414D4F";
18
+ gray900: "#2C3435";
19
+ blue50: "#F7FBFB";
20
+ blue100: "#E3F0F2";
21
+ blue200: "#BADADF";
22
+ blue300: "#92C5CC";
23
+ blue400: "#67AEB8";
24
+ blue500: "#3C97A3";
25
+ blue600: "#1F7D8A";
26
+ blue700: "#19656F";
27
+ blue800: "#14525B";
28
+ blue900: "#0E383E";
29
+ yellow50: "#FDFAEF";
30
+ yellow100: "#F9EDCA";
31
+ yellow200: "#EFD27A";
32
+ yellow300: "#E5B626";
33
+ yellow400: "#C89E1C";
34
+ yellow500: "#AA8618";
35
+ yellow600: "#8C6E14";
36
+ yellow700: "#715910";
37
+ yellow800: "#5C490D";
38
+ yellow900: "#3E3109";
39
+ orange500: "#D1721C";
40
+ red50: "#FDF9F9";
41
+ red100: "#F7EBEB";
42
+ red200: "#EBCECD";
43
+ red300: "#DFB1B0";
44
+ red400: "#D39392";
45
+ red500: "#C67473";
46
+ red600: "#B85250";
47
+ red700: "#A92F2D";
48
+ red800: "#901F1E";
49
+ red900: "#631614";
50
+ green50: "#F8FAF9";
51
+ green100: "#E7F0EA";
52
+ green200: "#C5D9CB";
53
+ green300: "#A4C4AD";
54
+ green400: "#82AD8D";
55
+ green500: "#60976F";
56
+ green600: "#3C7F4E";
57
+ green700: "#296839";
58
+ green800: "#21552F";
59
+ green900: "#163920";
60
+ primaryTextOnLightBg: "#194b58";
61
+ primaryBg: "$blue600";
62
+ primaryBgHover: "$blue700";
63
+ primaryTextOnWhite: "$blue600";
64
+ bodyGray: "$gray100";
65
+ hoverDarker: "hsla(214deg, 25%, 21%, 0.06)";
66
+ borderDarker: "hsla(214deg, 25%, 21%, 0.1)";
67
+ selectedDarker: "hsla(214deg, 25%, 21%, 0.06)";
68
+ selectedOnBodyGray: "hsl(214deg, 35%, 80%)";
69
+ darkGrayBg: "#1f2937";
70
+ border: "hsl(214deg, 25%, 80%)";
71
+ text: "#1f2937";
72
+ secondaryText: "$gray500";
73
+ focusRing: "hsla(214deg, 15%, 10%, 0.6)";
74
74
  };
75
75
  fontSizes: {
76
- xs: string;
77
- sm: string;
78
- md: string;
79
- lg: string;
80
- xl: string;
81
- "2xl": string;
82
- "3xl": string;
76
+ xs: "0.75rem";
77
+ sm: "0.875rem";
78
+ md: "1rem";
79
+ lg: "1.125rem";
80
+ xl: "1.25rem";
81
+ "2xl": "1.5rem";
82
+ "3xl": "1.875rem";
83
83
  };
84
84
  fontWeights: {
85
- normal: string;
86
- medium: string;
87
- bold: string;
85
+ normal: "var(--ui-font-weight-normal)";
86
+ medium: "var(--ui-font-weight-semibold)";
87
+ bold: "var(--ui-font-weight-bold)";
88
88
  };
89
89
  space: {
90
- 1: string;
91
- 2: string;
92
- 3: string;
93
- 4: string;
94
- 6: string;
95
- 8: string;
90
+ 1: "0.25rem";
91
+ 2: "0.5rem";
92
+ 3: "0.75rem";
93
+ 4: "1rem";
94
+ 6: "1.5rem";
95
+ 8: "2rem";
96
96
  };
97
97
  shadows: {
98
- xs: string;
99
- sm: string;
100
- md: string;
101
- lg: string;
102
- overlayCard: string;
98
+ xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
99
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
100
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
101
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
102
+ overlayCard: "0 5px 50px 0px rgb(0 0 0 / 0.15), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
103
103
  };
104
104
  radii: {
105
- xs: string;
106
- sm: string;
107
- md: string;
108
- mdmd: string;
109
- full: string;
105
+ xs: "0.125rem";
106
+ sm: "0.25rem";
107
+ md: "0.5rem";
108
+ mdmd: "calc(0.5rem - 0.125rem)";
109
+ full: "9999px";
110
110
  };
111
111
  zIndices: {
112
112
  toast: number;
113
113
  overlayCard: number;
114
114
  };
115
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
116
- export declare const textWrapperCss: import("@stitches/react/types/styled-component").CssComponent<never, {
115
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
116
+ export declare const textWrapperCss: import('@stitches/react/types/styled-component').CssComponent<never, {
117
117
  error?: boolean | "true" | undefined;
118
118
  }, {
119
119
  lg: "(min-width: 1200px)";
120
120
  print: "print";
121
- }, import("@stitches/react/types/css-util").CSS<{
121
+ }, import('@stitches/react/types/css-util').CSS<{
122
122
  lg: "(min-width: 1200px)";
123
123
  print: "print";
124
124
  }, {
125
125
  colors: {
126
- gray50: string;
127
- gray100: string;
128
- gray200: string;
129
- gray300: string;
130
- gray400: string;
131
- gray500: string;
132
- gray600: string;
133
- gray700: string;
134
- gray800: string;
135
- gray900: string;
136
- blue50: string;
137
- blue100: string;
138
- blue200: string;
139
- blue300: string;
140
- blue400: string;
141
- blue500: string;
142
- blue600: string;
143
- blue700: string;
144
- blue800: string;
145
- blue900: string;
146
- yellow50: string;
147
- yellow100: string;
148
- yellow200: string;
149
- yellow300: string;
150
- yellow400: string;
151
- yellow500: string;
152
- yellow600: string;
153
- yellow700: string;
154
- yellow800: string;
155
- yellow900: string;
156
- orange500: string;
157
- red50: string;
158
- red100: string;
159
- red200: string;
160
- red300: string;
161
- red400: string;
162
- red500: string;
163
- red600: string;
164
- red700: string;
165
- red800: string;
166
- red900: string;
167
- green50: string;
168
- green100: string;
169
- green200: string;
170
- green300: string;
171
- green400: string;
172
- green500: string;
173
- green600: string;
174
- green700: string;
175
- green800: string;
176
- green900: string;
177
- primaryTextOnLightBg: string;
178
- primaryBg: string;
179
- primaryBgHover: string;
180
- primaryTextOnWhite: string;
181
- bodyGray: string;
182
- hoverDarker: string;
183
- borderDarker: string;
184
- selectedDarker: string;
185
- selectedOnBodyGray: string;
186
- darkGrayBg: string;
187
- border: string;
188
- text: string;
189
- secondaryText: string;
190
- focusRing: string;
126
+ gray50: "#F9FAFA";
127
+ gray100: "#EBEEEE";
128
+ gray200: "#CFD6D7";
129
+ gray300: "#B3BEC0";
130
+ gray400: "#97A6A8";
131
+ gray500: "#7C8E91";
132
+ gray600: "#627578";
133
+ gray700: "#4F5F61";
134
+ gray800: "#414D4F";
135
+ gray900: "#2C3435";
136
+ blue50: "#F7FBFB";
137
+ blue100: "#E3F0F2";
138
+ blue200: "#BADADF";
139
+ blue300: "#92C5CC";
140
+ blue400: "#67AEB8";
141
+ blue500: "#3C97A3";
142
+ blue600: "#1F7D8A";
143
+ blue700: "#19656F";
144
+ blue800: "#14525B";
145
+ blue900: "#0E383E";
146
+ yellow50: "#FDFAEF";
147
+ yellow100: "#F9EDCA";
148
+ yellow200: "#EFD27A";
149
+ yellow300: "#E5B626";
150
+ yellow400: "#C89E1C";
151
+ yellow500: "#AA8618";
152
+ yellow600: "#8C6E14";
153
+ yellow700: "#715910";
154
+ yellow800: "#5C490D";
155
+ yellow900: "#3E3109";
156
+ orange500: "#D1721C";
157
+ red50: "#FDF9F9";
158
+ red100: "#F7EBEB";
159
+ red200: "#EBCECD";
160
+ red300: "#DFB1B0";
161
+ red400: "#D39392";
162
+ red500: "#C67473";
163
+ red600: "#B85250";
164
+ red700: "#A92F2D";
165
+ red800: "#901F1E";
166
+ red900: "#631614";
167
+ green50: "#F8FAF9";
168
+ green100: "#E7F0EA";
169
+ green200: "#C5D9CB";
170
+ green300: "#A4C4AD";
171
+ green400: "#82AD8D";
172
+ green500: "#60976F";
173
+ green600: "#3C7F4E";
174
+ green700: "#296839";
175
+ green800: "#21552F";
176
+ green900: "#163920";
177
+ primaryTextOnLightBg: "#194b58";
178
+ primaryBg: "$blue600";
179
+ primaryBgHover: "$blue700";
180
+ primaryTextOnWhite: "$blue600";
181
+ bodyGray: "$gray100";
182
+ hoverDarker: "hsla(214deg, 25%, 21%, 0.06)";
183
+ borderDarker: "hsla(214deg, 25%, 21%, 0.1)";
184
+ selectedDarker: "hsla(214deg, 25%, 21%, 0.06)";
185
+ selectedOnBodyGray: "hsl(214deg, 35%, 80%)";
186
+ darkGrayBg: "#1f2937";
187
+ border: "hsl(214deg, 25%, 80%)";
188
+ text: "#1f2937";
189
+ secondaryText: "$gray500";
190
+ focusRing: "hsla(214deg, 15%, 10%, 0.6)";
191
191
  };
192
192
  fontSizes: {
193
- xs: string;
194
- sm: string;
195
- md: string;
196
- lg: string;
197
- xl: string;
198
- "2xl": string;
199
- "3xl": string;
193
+ xs: "0.75rem";
194
+ sm: "0.875rem";
195
+ md: "1rem";
196
+ lg: "1.125rem";
197
+ xl: "1.25rem";
198
+ "2xl": "1.5rem";
199
+ "3xl": "1.875rem";
200
200
  };
201
201
  fontWeights: {
202
- normal: string;
203
- medium: string;
204
- bold: string;
202
+ normal: "var(--ui-font-weight-normal)";
203
+ medium: "var(--ui-font-weight-semibold)";
204
+ bold: "var(--ui-font-weight-bold)";
205
205
  };
206
206
  space: {
207
- 1: string;
208
- 2: string;
209
- 3: string;
210
- 4: string;
211
- 6: string;
212
- 8: string;
207
+ 1: "0.25rem";
208
+ 2: "0.5rem";
209
+ 3: "0.75rem";
210
+ 4: "1rem";
211
+ 6: "1.5rem";
212
+ 8: "2rem";
213
213
  };
214
214
  shadows: {
215
- xs: string;
216
- sm: string;
217
- md: string;
218
- lg: string;
219
- overlayCard: string;
215
+ xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
216
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
217
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
218
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
219
+ overlayCard: "0 5px 50px 0px rgb(0 0 0 / 0.15), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
220
220
  };
221
221
  radii: {
222
- xs: string;
223
- sm: string;
224
- md: string;
225
- mdmd: string;
226
- full: string;
222
+ xs: "0.125rem";
223
+ sm: "0.25rem";
224
+ md: "0.5rem";
225
+ mdmd: "calc(0.5rem - 0.125rem)";
226
+ full: "9999px";
227
227
  };
228
228
  zIndices: {
229
229
  toast: number;
230
230
  overlayCard: number;
231
231
  };
232
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
232
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;