@arkitektbedriftene/fe-lib 0.3.0 → 0.3.2

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.
@@ -1,6 +1,6 @@
1
1
  import { type CreateEditorArgs, type SerializedEditorState } from "lexical";
2
2
  export declare const isJSON: (str: string) => boolean;
3
- export declare const stateToHTML: (state: SerializedEditorState | string | null, nodes: CreateEditorArgs["nodes"], options?: {
3
+ export declare const stateToHTML: (state: SerializedEditorState | string | null | undefined, nodes: CreateEditorArgs["nodes"], options?: {
4
4
  maxLines?: number | null;
5
5
  onlyMainContent?: boolean;
6
6
  }) => {
@@ -0,0 +1,127 @@
1
+ import type * as Stitches from "@stitches/react";
2
+ declare const ButtonStyled: import("@stitches/react/types/styled-component").StyledComponent<"button", {
3
+ color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
4
+ size?: "md" | "lg" | undefined;
5
+ variant?: "outline" | "solid" | "transparent" | undefined;
6
+ }, {
7
+ lg: "(min-width: 1200px)";
8
+ print: "print";
9
+ }, import("@stitches/react/types/css-util").CSS<{
10
+ lg: "(min-width: 1200px)";
11
+ print: "print";
12
+ }, {
13
+ colors: {
14
+ gray50: string;
15
+ gray100: string;
16
+ gray200: string;
17
+ gray300: string;
18
+ gray400: string;
19
+ gray500: string;
20
+ gray600: string;
21
+ gray700: string;
22
+ gray800: string;
23
+ gray900: string;
24
+ blue50: string;
25
+ blue100: string;
26
+ blue200: string;
27
+ blue300: string;
28
+ blue400: string;
29
+ blue500: string;
30
+ blue600: string;
31
+ blue700: string;
32
+ blue800: string;
33
+ blue900: string;
34
+ yellow50: string;
35
+ yellow100: string;
36
+ yellow200: string;
37
+ yellow300: string;
38
+ yellow400: string;
39
+ yellow500: string;
40
+ yellow600: string;
41
+ yellow700: string;
42
+ yellow800: string;
43
+ yellow900: string;
44
+ orange500: string;
45
+ red50: string;
46
+ red100: string;
47
+ red200: string;
48
+ red300: string;
49
+ red400: string;
50
+ red500: string;
51
+ red600: string;
52
+ red700: string;
53
+ red800: string;
54
+ red900: string;
55
+ green50: string;
56
+ green100: string;
57
+ green200: string;
58
+ green300: string;
59
+ green400: string;
60
+ green500: string;
61
+ green600: string;
62
+ green700: string;
63
+ green800: string;
64
+ green900: string;
65
+ primaryTextOnLightBg: string;
66
+ primaryBg: string;
67
+ primaryBgHover: string;
68
+ primaryTextOnWhite: string;
69
+ bodyGray: string;
70
+ hoverDarker: string;
71
+ borderDarker: string;
72
+ selectedDarker: string;
73
+ selectedOnBodyGray: string;
74
+ darkGrayBg: string;
75
+ border: string;
76
+ text: string;
77
+ secondaryText: string;
78
+ focusRing: string;
79
+ };
80
+ fontSizes: {
81
+ xs: string;
82
+ sm: string;
83
+ md: string;
84
+ lg: string;
85
+ xl: string;
86
+ "2xl": string;
87
+ "3xl": string;
88
+ };
89
+ fontWeights: {
90
+ normal: string;
91
+ medium: string;
92
+ bold: string;
93
+ };
94
+ space: {
95
+ 1: string;
96
+ 2: string;
97
+ 3: string;
98
+ 4: string;
99
+ 6: string;
100
+ 8: string;
101
+ };
102
+ shadows: {
103
+ xs: string;
104
+ sm: string;
105
+ md: string;
106
+ lg: string;
107
+ overlayCard: string;
108
+ };
109
+ radii: {
110
+ xs: string;
111
+ sm: string;
112
+ md: string;
113
+ mdmd: string;
114
+ full: string;
115
+ };
116
+ zIndices: {
117
+ toast: number;
118
+ overlayCard: number;
119
+ modal: number;
120
+ };
121
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
122
+ type ButtonProps = React.ComponentPropsWithRef<"button"> & Stitches.VariantProps<typeof ButtonStyled> & {
123
+ css?: Stitches.CSS;
124
+ isLoading?: boolean;
125
+ };
126
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
127
+ export {};
@@ -0,0 +1,125 @@
1
+ import type * as Stitches from "@stitches/react";
2
+ declare const SpinnerStyled: import("@stitches/react/types/styled-component").StyledComponent<"div", {
3
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
4
+ color?: "inherit" | "dark" | "light" | undefined;
5
+ }, {
6
+ lg: "(min-width: 1200px)";
7
+ print: "print";
8
+ }, import("@stitches/react/types/css-util").CSS<{
9
+ lg: "(min-width: 1200px)";
10
+ print: "print";
11
+ }, {
12
+ 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;
78
+ };
79
+ fontSizes: {
80
+ xs: string;
81
+ sm: string;
82
+ md: string;
83
+ lg: string;
84
+ xl: string;
85
+ "2xl": string;
86
+ "3xl": string;
87
+ };
88
+ fontWeights: {
89
+ normal: string;
90
+ medium: string;
91
+ bold: string;
92
+ };
93
+ space: {
94
+ 1: string;
95
+ 2: string;
96
+ 3: string;
97
+ 4: string;
98
+ 6: string;
99
+ 8: string;
100
+ };
101
+ shadows: {
102
+ xs: string;
103
+ sm: string;
104
+ md: string;
105
+ lg: string;
106
+ overlayCard: string;
107
+ };
108
+ radii: {
109
+ xs: string;
110
+ sm: string;
111
+ md: string;
112
+ mdmd: string;
113
+ full: string;
114
+ };
115
+ zIndices: {
116
+ toast: number;
117
+ overlayCard: number;
118
+ modal: number;
119
+ };
120
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
121
+ type SpinnerProps = React.ComponentPropsWithRef<"div"> & Stitches.VariantProps<typeof SpinnerStyled> & {
122
+ css?: Stitches.CSS;
123
+ };
124
+ export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
125
+ export {};