@arkitektbedriftene/fe-lib 4.3.2 → 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 +452 -432
  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,125 +1,124 @@
1
- /// <reference types="react" />
2
- import type { CSS } from "@stitches/react";
3
- declare const Input: import("@stitches/react/types/styled-component").StyledComponent<"textarea", {}, {
1
+ import { CSS } from '@stitches/react';
2
+ declare const Input: import('@stitches/react/types/styled-component').StyledComponent<"textarea", {}, {
4
3
  lg: "(min-width: 1200px)";
5
4
  print: "print";
6
- }, import("@stitches/react/types/css-util").CSS<{
5
+ }, import('@stitches/react/types/css-util').CSS<{
7
6
  lg: "(min-width: 1200px)";
8
7
  print: "print";
9
8
  }, {
10
9
  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;
10
+ gray50: "#F9FAFA";
11
+ gray100: "#EBEEEE";
12
+ gray200: "#CFD6D7";
13
+ gray300: "#B3BEC0";
14
+ gray400: "#97A6A8";
15
+ gray500: "#7C8E91";
16
+ gray600: "#627578";
17
+ gray700: "#4F5F61";
18
+ gray800: "#414D4F";
19
+ gray900: "#2C3435";
20
+ blue50: "#F7FBFB";
21
+ blue100: "#E3F0F2";
22
+ blue200: "#BADADF";
23
+ blue300: "#92C5CC";
24
+ blue400: "#67AEB8";
25
+ blue500: "#3C97A3";
26
+ blue600: "#1F7D8A";
27
+ blue700: "#19656F";
28
+ blue800: "#14525B";
29
+ blue900: "#0E383E";
30
+ yellow50: "#FDFAEF";
31
+ yellow100: "#F9EDCA";
32
+ yellow200: "#EFD27A";
33
+ yellow300: "#E5B626";
34
+ yellow400: "#C89E1C";
35
+ yellow500: "#AA8618";
36
+ yellow600: "#8C6E14";
37
+ yellow700: "#715910";
38
+ yellow800: "#5C490D";
39
+ yellow900: "#3E3109";
40
+ orange500: "#D1721C";
41
+ red50: "#FDF9F9";
42
+ red100: "#F7EBEB";
43
+ red200: "#EBCECD";
44
+ red300: "#DFB1B0";
45
+ red400: "#D39392";
46
+ red500: "#C67473";
47
+ red600: "#B85250";
48
+ red700: "#A92F2D";
49
+ red800: "#901F1E";
50
+ red900: "#631614";
51
+ green50: "#F8FAF9";
52
+ green100: "#E7F0EA";
53
+ green200: "#C5D9CB";
54
+ green300: "#A4C4AD";
55
+ green400: "#82AD8D";
56
+ green500: "#60976F";
57
+ green600: "#3C7F4E";
58
+ green700: "#296839";
59
+ green800: "#21552F";
60
+ green900: "#163920";
61
+ primaryTextOnLightBg: "#194b58";
62
+ primaryBg: "$blue600";
63
+ primaryBgHover: "$blue700";
64
+ primaryTextOnWhite: "$blue600";
65
+ bodyGray: "$gray100";
66
+ hoverDarker: "hsla(214deg, 25%, 21%, 0.06)";
67
+ borderDarker: "hsla(214deg, 25%, 21%, 0.1)";
68
+ selectedDarker: "hsla(214deg, 25%, 21%, 0.06)";
69
+ selectedOnBodyGray: "hsl(214deg, 35%, 80%)";
70
+ darkGrayBg: "#1f2937";
71
+ border: "hsl(214deg, 25%, 80%)";
72
+ text: "#1f2937";
73
+ secondaryText: "$gray500";
74
+ focusRing: "hsla(214deg, 15%, 10%, 0.6)";
76
75
  };
77
76
  fontSizes: {
78
- xs: string;
79
- sm: string;
80
- md: string;
81
- lg: string;
82
- xl: string;
83
- "2xl": string;
84
- "3xl": string;
77
+ xs: "0.75rem";
78
+ sm: "0.875rem";
79
+ md: "1rem";
80
+ lg: "1.125rem";
81
+ xl: "1.25rem";
82
+ "2xl": "1.5rem";
83
+ "3xl": "1.875rem";
85
84
  };
86
85
  fontWeights: {
87
- normal: string;
88
- medium: string;
89
- bold: string;
86
+ normal: "var(--ui-font-weight-normal)";
87
+ medium: "var(--ui-font-weight-semibold)";
88
+ bold: "var(--ui-font-weight-bold)";
90
89
  };
91
90
  space: {
92
- 1: string;
93
- 2: string;
94
- 3: string;
95
- 4: string;
96
- 6: string;
97
- 8: string;
91
+ 1: "0.25rem";
92
+ 2: "0.5rem";
93
+ 3: "0.75rem";
94
+ 4: "1rem";
95
+ 6: "1.5rem";
96
+ 8: "2rem";
98
97
  };
99
98
  shadows: {
100
- xs: string;
101
- sm: string;
102
- md: string;
103
- lg: string;
104
- overlayCard: string;
99
+ xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
100
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
101
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
102
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
103
+ 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
104
  };
106
105
  radii: {
107
- xs: string;
108
- sm: string;
109
- md: string;
110
- mdmd: string;
111
- full: string;
106
+ xs: "0.125rem";
107
+ sm: "0.25rem";
108
+ md: "0.5rem";
109
+ mdmd: "calc(0.5rem - 0.125rem)";
110
+ full: "9999px";
112
111
  };
113
112
  zIndices: {
114
113
  toast: number;
115
114
  overlayCard: number;
116
115
  };
117
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
116
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
118
117
  type TextInputProps = React.ComponentProps<typeof Input> & {
119
118
  error?: boolean | string;
120
119
  css?: CSS;
121
120
  suffix?: string;
122
121
  label?: string;
123
122
  };
124
- export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
123
+ export declare const TextArea: import('react').ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
125
124
  export {};
@@ -1,125 +1,124 @@
1
- /// <reference types="react" />
2
- import type { CSS } from "@stitches/react";
3
- declare const Input: import("@stitches/react/types/styled-component").StyledComponent<"input", {}, {
1
+ import { CSS } from '@stitches/react';
2
+ declare const Input: import('@stitches/react/types/styled-component').StyledComponent<"input", {}, {
4
3
  lg: "(min-width: 1200px)";
5
4
  print: "print";
6
- }, import("@stitches/react/types/css-util").CSS<{
5
+ }, import('@stitches/react/types/css-util').CSS<{
7
6
  lg: "(min-width: 1200px)";
8
7
  print: "print";
9
8
  }, {
10
9
  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;
10
+ gray50: "#F9FAFA";
11
+ gray100: "#EBEEEE";
12
+ gray200: "#CFD6D7";
13
+ gray300: "#B3BEC0";
14
+ gray400: "#97A6A8";
15
+ gray500: "#7C8E91";
16
+ gray600: "#627578";
17
+ gray700: "#4F5F61";
18
+ gray800: "#414D4F";
19
+ gray900: "#2C3435";
20
+ blue50: "#F7FBFB";
21
+ blue100: "#E3F0F2";
22
+ blue200: "#BADADF";
23
+ blue300: "#92C5CC";
24
+ blue400: "#67AEB8";
25
+ blue500: "#3C97A3";
26
+ blue600: "#1F7D8A";
27
+ blue700: "#19656F";
28
+ blue800: "#14525B";
29
+ blue900: "#0E383E";
30
+ yellow50: "#FDFAEF";
31
+ yellow100: "#F9EDCA";
32
+ yellow200: "#EFD27A";
33
+ yellow300: "#E5B626";
34
+ yellow400: "#C89E1C";
35
+ yellow500: "#AA8618";
36
+ yellow600: "#8C6E14";
37
+ yellow700: "#715910";
38
+ yellow800: "#5C490D";
39
+ yellow900: "#3E3109";
40
+ orange500: "#D1721C";
41
+ red50: "#FDF9F9";
42
+ red100: "#F7EBEB";
43
+ red200: "#EBCECD";
44
+ red300: "#DFB1B0";
45
+ red400: "#D39392";
46
+ red500: "#C67473";
47
+ red600: "#B85250";
48
+ red700: "#A92F2D";
49
+ red800: "#901F1E";
50
+ red900: "#631614";
51
+ green50: "#F8FAF9";
52
+ green100: "#E7F0EA";
53
+ green200: "#C5D9CB";
54
+ green300: "#A4C4AD";
55
+ green400: "#82AD8D";
56
+ green500: "#60976F";
57
+ green600: "#3C7F4E";
58
+ green700: "#296839";
59
+ green800: "#21552F";
60
+ green900: "#163920";
61
+ primaryTextOnLightBg: "#194b58";
62
+ primaryBg: "$blue600";
63
+ primaryBgHover: "$blue700";
64
+ primaryTextOnWhite: "$blue600";
65
+ bodyGray: "$gray100";
66
+ hoverDarker: "hsla(214deg, 25%, 21%, 0.06)";
67
+ borderDarker: "hsla(214deg, 25%, 21%, 0.1)";
68
+ selectedDarker: "hsla(214deg, 25%, 21%, 0.06)";
69
+ selectedOnBodyGray: "hsl(214deg, 35%, 80%)";
70
+ darkGrayBg: "#1f2937";
71
+ border: "hsl(214deg, 25%, 80%)";
72
+ text: "#1f2937";
73
+ secondaryText: "$gray500";
74
+ focusRing: "hsla(214deg, 15%, 10%, 0.6)";
76
75
  };
77
76
  fontSizes: {
78
- xs: string;
79
- sm: string;
80
- md: string;
81
- lg: string;
82
- xl: string;
83
- "2xl": string;
84
- "3xl": string;
77
+ xs: "0.75rem";
78
+ sm: "0.875rem";
79
+ md: "1rem";
80
+ lg: "1.125rem";
81
+ xl: "1.25rem";
82
+ "2xl": "1.5rem";
83
+ "3xl": "1.875rem";
85
84
  };
86
85
  fontWeights: {
87
- normal: string;
88
- medium: string;
89
- bold: string;
86
+ normal: "var(--ui-font-weight-normal)";
87
+ medium: "var(--ui-font-weight-semibold)";
88
+ bold: "var(--ui-font-weight-bold)";
90
89
  };
91
90
  space: {
92
- 1: string;
93
- 2: string;
94
- 3: string;
95
- 4: string;
96
- 6: string;
97
- 8: string;
91
+ 1: "0.25rem";
92
+ 2: "0.5rem";
93
+ 3: "0.75rem";
94
+ 4: "1rem";
95
+ 6: "1.5rem";
96
+ 8: "2rem";
98
97
  };
99
98
  shadows: {
100
- xs: string;
101
- sm: string;
102
- md: string;
103
- lg: string;
104
- overlayCard: string;
99
+ xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)";
100
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
101
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
102
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
103
+ 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
104
  };
106
105
  radii: {
107
- xs: string;
108
- sm: string;
109
- md: string;
110
- mdmd: string;
111
- full: string;
106
+ xs: "0.125rem";
107
+ sm: "0.25rem";
108
+ md: "0.5rem";
109
+ mdmd: "calc(0.5rem - 0.125rem)";
110
+ full: "9999px";
112
111
  };
113
112
  zIndices: {
114
113
  toast: number;
115
114
  overlayCard: number;
116
115
  };
117
- }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
116
+ }, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
118
117
  type TextInputProps = React.ComponentProps<typeof Input> & {
119
118
  error?: boolean | string;
120
119
  css?: CSS;
121
120
  suffix?: string;
122
121
  label?: string;
123
122
  };
124
- export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
123
+ export declare const TextInput: import('react').ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
125
124
  export {};