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