@arkitektbedriftene/fe-lib 0.3.18 → 0.3.20

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.
@@ -115,7 +115,6 @@ declare const AlertStyled: import("@stitches/react/types/styled-component").Styl
115
115
  zIndices: {
116
116
  toast: number;
117
117
  overlayCard: number;
118
- modal: number;
119
118
  };
120
119
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
121
120
  type AlertProps = React.ComponentProps<typeof AlertStyled> & {
@@ -113,6 +113,5 @@ export declare const Badge: import("@stitches/react/types/styled-component").Sty
113
113
  zIndices: {
114
114
  toast: number;
115
115
  overlayCard: number;
116
- modal: number;
117
116
  };
118
117
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
@@ -111,6 +111,5 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
111
111
  zIndices: {
112
112
  toast: number;
113
113
  overlayCard: number;
114
- modal: number;
115
114
  };
116
115
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
@@ -117,7 +117,6 @@ declare const ButtonStyled: import("@stitches/react/types/styled-component").Sty
117
117
  zIndices: {
118
118
  toast: number;
119
119
  overlayCard: number;
120
- modal: number;
121
120
  };
122
121
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
123
122
  type ButtonProps = React.ComponentProps<typeof ButtonStyled> & {
@@ -0,0 +1,118 @@
1
+ export declare const Card: import("@stitches/react/types/styled-component").StyledComponent<"div", {
2
+ variant?: "primary" | undefined;
3
+ elevation?: "none" | "raised" | undefined;
4
+ }, {
5
+ lg: "(min-width: 1200px)";
6
+ print: "print";
7
+ }, import("@stitches/react/types/css-util").CSS<{
8
+ lg: "(min-width: 1200px)";
9
+ print: "print";
10
+ }, {
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;
77
+ };
78
+ fontSizes: {
79
+ xs: string;
80
+ sm: string;
81
+ md: string;
82
+ lg: string;
83
+ xl: string;
84
+ "2xl": string;
85
+ "3xl": string;
86
+ };
87
+ fontWeights: {
88
+ normal: string;
89
+ medium: string;
90
+ bold: string;
91
+ };
92
+ space: {
93
+ 1: string;
94
+ 2: string;
95
+ 3: string;
96
+ 4: string;
97
+ 6: string;
98
+ 8: string;
99
+ };
100
+ shadows: {
101
+ xs: string;
102
+ sm: string;
103
+ md: string;
104
+ lg: string;
105
+ overlayCard: string;
106
+ };
107
+ radii: {
108
+ xs: string;
109
+ sm: string;
110
+ md: string;
111
+ mdmd: string;
112
+ full: string;
113
+ };
114
+ zIndices: {
115
+ toast: number;
116
+ overlayCard: number;
117
+ };
118
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
@@ -121,7 +121,6 @@ export declare const DropdownMenuSeparator: import("@stitches/react/types/styled
121
121
  zIndices: {
122
122
  toast: number;
123
123
  overlayCard: number;
124
- modal: number;
125
124
  };
126
125
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
127
126
  export declare const DropdownMenuItem: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RDropdown.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
@@ -237,7 +236,6 @@ export declare const DropdownMenuItem: import("@stitches/react/types/styled-comp
237
236
  zIndices: {
238
237
  toast: number;
239
238
  overlayCard: number;
240
- modal: number;
241
239
  };
242
240
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
243
241
  export declare const DropdownMenuIconItem: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RDropdown.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
@@ -353,7 +351,6 @@ export declare const DropdownMenuIconItem: import("@stitches/react/types/styled-
353
351
  zIndices: {
354
352
  toast: number;
355
353
  overlayCard: number;
356
- modal: number;
357
354
  };
358
355
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
359
356
  export declare const DropdownMenuCheckboxItem: ({ value, onChange, children, }: {
@@ -111,7 +111,6 @@ export declare const MenuOverlayCard: import("@stitches/react/types/styled-compo
111
111
  zIndices: {
112
112
  toast: number;
113
113
  overlayCard: number;
114
- modal: number;
115
114
  };
116
115
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>, {}, {
117
116
  lg: "(min-width: 1200px)";
@@ -226,7 +225,6 @@ export declare const MenuOverlayCard: import("@stitches/react/types/styled-compo
226
225
  zIndices: {
227
226
  toast: number;
228
227
  overlayCard: number;
229
- modal: number;
230
228
  };
231
229
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
232
230
  export declare const menuItemStyles: import("@stitches/react/types/styled-component").CssComponent<never, {}, {
@@ -342,6 +340,5 @@ export declare const menuItemStyles: import("@stitches/react/types/styled-compon
342
340
  zIndices: {
343
341
  toast: number;
344
342
  overlayCard: number;
345
- modal: number;
346
343
  };
347
344
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
@@ -112,7 +112,6 @@ export declare const OverlayCard: import("@stitches/react/types/styled-component
112
112
  zIndices: {
113
113
  toast: number;
114
114
  overlayCard: number;
115
- modal: number;
116
115
  };
117
116
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
118
117
  export type OverlayCardProps = React.ComponentProps<typeof OverlayCard>;
@@ -135,7 +135,6 @@ export declare const PopoverContent: ({ children, overlayCardProps }: {
135
135
  zIndices: {
136
136
  toast: number;
137
137
  overlayCard: number;
138
- modal: number;
139
138
  };
140
139
  }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
141
140
  }) | undefined;
@@ -118,7 +118,6 @@ export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<Omi
118
118
  zIndices: {
119
119
  toast: number;
120
120
  overlayCard: number;
121
- modal: number;
122
121
  };
123
122
  }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
124
123
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -113,7 +113,6 @@ export declare const Toolbar: import("@stitches/react/types/styled-component").S
113
113
  zIndices: {
114
114
  toast: number;
115
115
  overlayCard: number;
116
- modal: number;
117
116
  };
118
117
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
119
118
  export declare const ToolbarToggleGroup: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<(T.ToolbarToggleGroupSingleProps | T.ToolbarToggleGroupMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, {}, {
@@ -229,7 +228,6 @@ export declare const ToolbarToggleGroup: import("@stitches/react/types/styled-co
229
228
  zIndices: {
230
229
  toast: number;
231
230
  overlayCard: number;
232
- modal: number;
233
231
  };
234
232
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
235
233
  export declare const ToolbarSeparator: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<T.ToolbarSeparatorProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
@@ -345,7 +343,6 @@ export declare const ToolbarSeparator: import("@stitches/react/types/styled-comp
345
343
  zIndices: {
346
344
  toast: number;
347
345
  overlayCard: number;
348
- modal: number;
349
346
  };
350
347
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
351
348
  export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
@@ -469,7 +466,6 @@ export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<
469
466
  zIndices: {
470
467
  toast: number;
471
468
  overlayCard: number;
472
- modal: number;
473
469
  };
474
470
  }, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
475
471
  } & {
@@ -112,7 +112,6 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
112
112
  zIndices: {
113
113
  toast: number;
114
114
  overlayCard: number;
115
- modal: number;
116
115
  };
117
116
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
118
117
  variants?: {
@@ -238,7 +237,6 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
238
237
  zIndices: {
239
238
  toast: number;
240
239
  overlayCard: number;
241
- modal: number;
242
240
  };
243
241
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function | {
244
242
  [name: string]: unknown;
@@ -352,7 +350,6 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
352
350
  zIndices: {
353
351
  toast: number;
354
352
  overlayCard: number;
355
- modal: number;
356
353
  };
357
354
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
358
355
  variants?: {
@@ -479,7 +476,6 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
479
476
  zIndices: {
480
477
  toast: number;
481
478
  overlayCard: number;
482
- modal: number;
483
479
  };
484
480
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>;
485
481
  }) => {
@@ -601,7 +597,6 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
601
597
  zIndices: {
602
598
  toast: number;
603
599
  overlayCard: number;
604
- modal: number;
605
600
  };
606
601
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>;
607
602
  } : K extends `@property ${string}` ? import("@stitches/react/types/css").AtRule.Property : import("@stitches/react/types/css-util").CSS<{
@@ -714,6 +709,5 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
714
709
  zIndices: {
715
710
  toast: number;
716
711
  overlayCard: number;
717
- modal: number;
718
712
  };
719
713
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>; })[]) => () => string;
package/dist/ui/ui.d.ts CHANGED
@@ -8,5 +8,6 @@ export * from './components/Box';
8
8
  export * from './components/Tooltip';
9
9
  export * from './components/Badge';
10
10
  export * from './components/Toolbar';
11
+ export * from './components/Card';
11
12
  export * from './components/Menu/Menu';
12
13
  export * from './components/Menu/DropdownMenu';
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { P as t, m as n, n as p } from "./DropdownMenu-cae60146.js";
2
- import { A as y, t as C, B as I, r as M, v as S, D as w, z as B, a as D, y as h, x as O, M as P, O as k, S as A, k as $, T as j, l as z, b as q, d as G, c as E, q as F, p as H, w as J, s as K } from "./DropdownMenu-cae60146.js";
1
+ import { P as t, m as n, n as p } from "./DropdownMenu-7a3b57bd.js";
2
+ import { A as x, t as y, B as I, r as M, v as S, C as w, D as B, z as D, a as h, y as O, x as P, M as k, O as A, S as $, k as j, T as z, l as q, b as G, d as E, c as F, q as H, p as J, w as K, s as L } from "./DropdownMenu-7a3b57bd.js";
3
3
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
4
4
  import { useState as m } from "react";
5
5
  import "react-dom";
@@ -32,31 +32,32 @@ const T = ({ children: r, content: a }) => {
32
32
  );
33
33
  };
34
34
  export {
35
- y as Alert,
36
- C as Badge,
35
+ x as Alert,
36
+ y as Badge,
37
37
  I as Box,
38
38
  M as Button,
39
39
  S as ButtonInToolbar,
40
- w as DropdownMenu,
41
- B as DropdownMenuCheckboxItem,
42
- D as DropdownMenuIconItem,
43
- h as DropdownMenuItem,
44
- O as DropdownMenuSeparator,
45
- P as MenuOverlayCard,
46
- k as OverlayCard,
40
+ w as Card,
41
+ B as DropdownMenu,
42
+ D as DropdownMenuCheckboxItem,
43
+ h as DropdownMenuIconItem,
44
+ O as DropdownMenuItem,
45
+ P as DropdownMenuSeparator,
46
+ k as MenuOverlayCard,
47
+ A as OverlayCard,
47
48
  t as Popover,
48
49
  p as PopoverContent,
49
50
  n as PopoverTrigger,
50
- A as Spinner,
51
- $ as Toolbar,
52
- j as ToolbarButton,
53
- z as ToolbarSeparator,
54
- q as ToolbarToggleGroup,
55
- G as ToolbarToggleItem,
51
+ $ as Spinner,
52
+ j as Toolbar,
53
+ z as ToolbarButton,
54
+ q as ToolbarSeparator,
55
+ G as ToolbarToggleGroup,
56
+ E as ToolbarToggleItem,
56
57
  T as Tooltip,
57
- E as css,
58
- F as globalCss,
59
- H as keyframes,
60
- J as menuItemStyles,
61
- K as styled
58
+ F as css,
59
+ H as globalCss,
60
+ J as keyframes,
61
+ K as menuItemStyles,
62
+ L as styled
62
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {