@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,247 +1,123 @@
1
- import type { ReactNode } from "react";
2
- import { Button } from "./Button";
3
- declare const Bar: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
1
+ import { ReactNode } from 'react';
2
+ import { Button } from './Button';
3
+ declare const Bar: import('@stitches/react/types/styled-component').StyledComponent<"div", {}, {
4
4
  lg: "(min-width: 1200px)";
5
5
  print: "print";
6
- }, import("@stitches/react/types/css-util").CSS<{
6
+ }, import('@stitches/react/types/css-util').CSS<{
7
7
  lg: "(min-width: 1200px)";
8
8
  print: "print";
9
9
  }, {
10
10
  colors: {
11
- gray50: string;
12
- gray100: string;
13
- gray200: string;
14
- gray300: string;
15
- gray400: string;
16
- gray500: string;
17
- gray600: string;
18
- gray700: string;
19
- gray800: string;
20
- gray900: string;
21
- blue50: string;
22
- blue100: string;
23
- blue200: string;
24
- blue300: string;
25
- blue400: string;
26
- blue500: string;
27
- blue600: string;
28
- blue700: string;
29
- blue800: string;
30
- blue900: string;
31
- yellow50: string;
32
- yellow100: string;
33
- yellow200: string;
34
- yellow300: string;
35
- yellow400: string;
36
- yellow500: string;
37
- yellow600: string;
38
- yellow700: string;
39
- yellow800: string;
40
- yellow900: string;
41
- orange500: string;
42
- red50: string;
43
- red100: string;
44
- red200: string;
45
- red300: string;
46
- red400: string;
47
- red500: string;
48
- red600: string;
49
- red700: string;
50
- red800: string;
51
- red900: string;
52
- green50: string;
53
- green100: string;
54
- green200: string;
55
- green300: string;
56
- green400: string;
57
- green500: string;
58
- green600: string;
59
- green700: string;
60
- green800: string;
61
- green900: string;
62
- primaryTextOnLightBg: string;
63
- primaryBg: string;
64
- primaryBgHover: string;
65
- primaryTextOnWhite: string;
66
- bodyGray: string;
67
- hoverDarker: string;
68
- borderDarker: string;
69
- selectedDarker: string;
70
- selectedOnBodyGray: string;
71
- darkGrayBg: string;
72
- border: string;
73
- text: string;
74
- secondaryText: string;
75
- focusRing: string;
11
+ gray50: "#F9FAFA";
12
+ gray100: "#EBEEEE";
13
+ gray200: "#CFD6D7";
14
+ gray300: "#B3BEC0";
15
+ gray400: "#97A6A8";
16
+ gray500: "#7C8E91";
17
+ gray600: "#627578";
18
+ gray700: "#4F5F61";
19
+ gray800: "#414D4F";
20
+ gray900: "#2C3435";
21
+ blue50: "#F7FBFB";
22
+ blue100: "#E3F0F2";
23
+ blue200: "#BADADF";
24
+ blue300: "#92C5CC";
25
+ blue400: "#67AEB8";
26
+ blue500: "#3C97A3";
27
+ blue600: "#1F7D8A";
28
+ blue700: "#19656F";
29
+ blue800: "#14525B";
30
+ blue900: "#0E383E";
31
+ yellow50: "#FDFAEF";
32
+ yellow100: "#F9EDCA";
33
+ yellow200: "#EFD27A";
34
+ yellow300: "#E5B626";
35
+ yellow400: "#C89E1C";
36
+ yellow500: "#AA8618";
37
+ yellow600: "#8C6E14";
38
+ yellow700: "#715910";
39
+ yellow800: "#5C490D";
40
+ yellow900: "#3E3109";
41
+ orange500: "#D1721C";
42
+ red50: "#FDF9F9";
43
+ red100: "#F7EBEB";
44
+ red200: "#EBCECD";
45
+ red300: "#DFB1B0";
46
+ red400: "#D39392";
47
+ red500: "#C67473";
48
+ red600: "#B85250";
49
+ red700: "#A92F2D";
50
+ red800: "#901F1E";
51
+ red900: "#631614";
52
+ green50: "#F8FAF9";
53
+ green100: "#E7F0EA";
54
+ green200: "#C5D9CB";
55
+ green300: "#A4C4AD";
56
+ green400: "#82AD8D";
57
+ green500: "#60976F";
58
+ green600: "#3C7F4E";
59
+ green700: "#296839";
60
+ green800: "#21552F";
61
+ green900: "#163920";
62
+ primaryTextOnLightBg: "#194b58";
63
+ primaryBg: "$blue600";
64
+ primaryBgHover: "$blue700";
65
+ primaryTextOnWhite: "$blue600";
66
+ bodyGray: "$gray100";
67
+ hoverDarker: "hsla(214deg, 25%, 21%, 0.06)";
68
+ borderDarker: "hsla(214deg, 25%, 21%, 0.1)";
69
+ selectedDarker: "hsla(214deg, 25%, 21%, 0.06)";
70
+ selectedOnBodyGray: "hsl(214deg, 35%, 80%)";
71
+ darkGrayBg: "#1f2937";
72
+ border: "hsl(214deg, 25%, 80%)";
73
+ text: "#1f2937";
74
+ secondaryText: "$gray500";
75
+ focusRing: "hsla(214deg, 15%, 10%, 0.6)";
76
76
  };
77
77
  fontSizes: {
78
- xs: string;
79
- sm: string;
80
- md: string;
81
- lg: string;
82
- xl: string;
83
- "2xl": string;
84
- "3xl": string;
78
+ xs: "0.75rem";
79
+ sm: "0.875rem";
80
+ md: "1rem";
81
+ lg: "1.125rem";
82
+ xl: "1.25rem";
83
+ "2xl": "1.5rem";
84
+ "3xl": "1.875rem";
85
85
  };
86
86
  fontWeights: {
87
- normal: string;
88
- medium: string;
89
- bold: string;
87
+ normal: "var(--ui-font-weight-normal)";
88
+ medium: "var(--ui-font-weight-semibold)";
89
+ bold: "var(--ui-font-weight-bold)";
90
90
  };
91
91
  space: {
92
- 1: string;
93
- 2: string;
94
- 3: string;
95
- 4: string;
96
- 6: string;
97
- 8: string;
92
+ 1: "0.25rem";
93
+ 2: "0.5rem";
94
+ 3: "0.75rem";
95
+ 4: "1rem";
96
+ 6: "1.5rem";
97
+ 8: "2rem";
98
98
  };
99
99
  shadows: {
100
- xs: string;
101
- sm: string;
102
- md: string;
103
- lg: string;
104
- overlayCard: string;
100
+ xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
101
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
102
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
103
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
104
+ 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)";
105
105
  };
106
106
  radii: {
107
- xs: string;
108
- sm: string;
109
- md: string;
110
- mdmd: string;
111
- full: string;
107
+ xs: "0.125rem";
108
+ sm: "0.25rem";
109
+ md: "0.5rem";
110
+ mdmd: "calc(0.5rem - 0.125rem)";
111
+ full: "9999px";
112
112
  };
113
113
  zIndices: {
114
114
  toast: number;
115
115
  overlayCard: number;
116
116
  };
117
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
117
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
118
118
  export declare const NavBar: (props: React.ComponentProps<typeof Bar>) => import("react/jsx-runtime").JSX.Element;
119
119
  export declare const NavBarItem: ({ children, active, ...props }: {
120
120
  children: ReactNode;
121
- active?: boolean | undefined;
122
- } & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
123
- color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
124
- size?: "sm" | "md" | "lg" | undefined;
125
- variant?: "outline" | "transparent" | "primary" | undefined;
126
- icon?: boolean | "true" | undefined;
127
- }, {
128
- lg: "(min-width: 1200px)";
129
- print: "print";
130
- }> & {
131
- css?: import("@stitches/react/types/css-util").CSS<{
132
- lg: "(min-width: 1200px)";
133
- print: "print";
134
- }, {
135
- colors: {
136
- gray50: string;
137
- gray100: string;
138
- gray200: string;
139
- gray300: string;
140
- gray400: string;
141
- gray500: string;
142
- gray600: string;
143
- gray700: string;
144
- gray800: string;
145
- gray900: string;
146
- blue50: string;
147
- blue100: string;
148
- blue200: string;
149
- blue300: string;
150
- blue400: string;
151
- blue500: string;
152
- blue600: string;
153
- blue700: string;
154
- blue800: string;
155
- blue900: string;
156
- yellow50: string;
157
- yellow100: string;
158
- yellow200: string;
159
- yellow300: string;
160
- yellow400: string;
161
- yellow500: string;
162
- yellow600: string;
163
- yellow700: string;
164
- yellow800: string;
165
- yellow900: string;
166
- orange500: string;
167
- red50: string;
168
- red100: string;
169
- red200: string;
170
- red300: string;
171
- red400: string;
172
- red500: string;
173
- red600: string;
174
- red700: string;
175
- red800: string;
176
- red900: string;
177
- green50: string;
178
- green100: string;
179
- green200: string;
180
- green300: string;
181
- green400: string;
182
- green500: string;
183
- green600: string;
184
- green700: string;
185
- green800: string;
186
- green900: string;
187
- primaryTextOnLightBg: string;
188
- primaryBg: string;
189
- primaryBgHover: string;
190
- primaryTextOnWhite: string;
191
- bodyGray: string;
192
- hoverDarker: string;
193
- borderDarker: string;
194
- selectedDarker: string;
195
- selectedOnBodyGray: string;
196
- darkGrayBg: string;
197
- border: string;
198
- text: string;
199
- secondaryText: string;
200
- focusRing: string;
201
- };
202
- fontSizes: {
203
- xs: string;
204
- sm: string;
205
- md: string;
206
- lg: string;
207
- xl: string;
208
- "2xl": string;
209
- "3xl": string;
210
- };
211
- fontWeights: {
212
- normal: string;
213
- medium: string;
214
- bold: string;
215
- };
216
- space: {
217
- 1: string;
218
- 2: string;
219
- 3: string;
220
- 4: string;
221
- 6: string;
222
- 8: string;
223
- };
224
- shadows: {
225
- xs: string;
226
- sm: string;
227
- md: string;
228
- lg: string;
229
- overlayCard: string;
230
- };
231
- radii: {
232
- xs: string;
233
- sm: string;
234
- md: string;
235
- mdmd: string;
236
- full: string;
237
- };
238
- zIndices: {
239
- toast: number;
240
- overlayCard: number;
241
- };
242
- }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
243
- } & {
244
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
245
- isLoading?: boolean | undefined;
246
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
121
+ active?: boolean;
122
+ } & React.ComponentProps<typeof Button>) => import("react/jsx-runtime").JSX.Element;
247
123
  export {};
@@ -1,117 +1,116 @@
1
- /// <reference types="react" />
2
- export declare const OverlayCard: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
1
+ export declare const OverlayCard: import('@stitches/react/types/styled-component').StyledComponent<"div", {}, {
3
2
  lg: "(min-width: 1200px)";
4
3
  print: "print";
5
- }, import("@stitches/react/types/css-util").CSS<{
4
+ }, import('@stitches/react/types/css-util').CSS<{
6
5
  lg: "(min-width: 1200px)";
7
6
  print: "print";
8
7
  }, {
9
8
  colors: {
10
- gray50: string;
11
- gray100: string;
12
- gray200: string;
13
- gray300: string;
14
- gray400: string;
15
- gray500: string;
16
- gray600: string;
17
- gray700: string;
18
- gray800: string;
19
- gray900: string;
20
- blue50: string;
21
- blue100: string;
22
- blue200: string;
23
- blue300: string;
24
- blue400: string;
25
- blue500: string;
26
- blue600: string;
27
- blue700: string;
28
- blue800: string;
29
- blue900: string;
30
- yellow50: string;
31
- yellow100: string;
32
- yellow200: string;
33
- yellow300: string;
34
- yellow400: string;
35
- yellow500: string;
36
- yellow600: string;
37
- yellow700: string;
38
- yellow800: string;
39
- yellow900: string;
40
- orange500: string;
41
- red50: string;
42
- red100: string;
43
- red200: string;
44
- red300: string;
45
- red400: string;
46
- red500: string;
47
- red600: string;
48
- red700: string;
49
- red800: string;
50
- red900: string;
51
- green50: string;
52
- green100: string;
53
- green200: string;
54
- green300: string;
55
- green400: string;
56
- green500: string;
57
- green600: string;
58
- green700: string;
59
- green800: string;
60
- green900: string;
61
- primaryTextOnLightBg: string;
62
- primaryBg: string;
63
- primaryBgHover: string;
64
- primaryTextOnWhite: string;
65
- bodyGray: string;
66
- hoverDarker: string;
67
- borderDarker: string;
68
- selectedDarker: string;
69
- selectedOnBodyGray: string;
70
- darkGrayBg: string;
71
- border: string;
72
- text: string;
73
- secondaryText: string;
74
- 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)";
75
74
  };
76
75
  fontSizes: {
77
- xs: string;
78
- sm: string;
79
- md: string;
80
- lg: string;
81
- xl: string;
82
- "2xl": string;
83
- "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";
84
83
  };
85
84
  fontWeights: {
86
- normal: string;
87
- medium: string;
88
- bold: string;
85
+ normal: "var(--ui-font-weight-normal)";
86
+ medium: "var(--ui-font-weight-semibold)";
87
+ bold: "var(--ui-font-weight-bold)";
89
88
  };
90
89
  space: {
91
- 1: string;
92
- 2: string;
93
- 3: string;
94
- 4: string;
95
- 6: string;
96
- 8: string;
90
+ 1: "0.25rem";
91
+ 2: "0.5rem";
92
+ 3: "0.75rem";
93
+ 4: "1rem";
94
+ 6: "1.5rem";
95
+ 8: "2rem";
97
96
  };
98
97
  shadows: {
99
- xs: string;
100
- sm: string;
101
- md: string;
102
- lg: string;
103
- 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)";
104
103
  };
105
104
  radii: {
106
- xs: string;
107
- sm: string;
108
- md: string;
109
- mdmd: string;
110
- full: string;
105
+ xs: "0.125rem";
106
+ sm: "0.25rem";
107
+ md: "0.5rem";
108
+ mdmd: "calc(0.5rem - 0.125rem)";
109
+ full: "9999px";
111
110
  };
112
111
  zIndices: {
113
112
  toast: number;
114
113
  overlayCard: number;
115
114
  };
116
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
115
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
117
116
  export type OverlayCardProps = React.ComponentProps<typeof OverlayCard>;