@arkitektbedriftene/fe-lib 0.4.7 → 0.4.9

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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const ButtonStyled: import("@stitches/react/types/styled-component").StyledComponent<"button", {
3
3
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
4
- size?: "md" | "lg" | undefined;
4
+ size?: "sm" | "md" | "lg" | undefined;
5
5
  variant?: "outline" | "transparent" | "primary" | undefined;
6
6
  icon?: boolean | "true" | undefined;
7
7
  }, {
@@ -123,7 +123,7 @@ export declare const NavBarItem: ({ children, active, ...props }: {
123
123
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
124
124
  }, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
125
125
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
126
- size?: "md" | "lg" | undefined;
126
+ size?: "sm" | "md" | "lg" | undefined;
127
127
  variant?: "outline" | "transparent" | "primary" | undefined;
128
128
  icon?: boolean | "true" | undefined;
129
129
  }, {
@@ -349,7 +349,7 @@ export declare const ButtonInToolbar: import("react").ForwardRefExoticComponent<
349
349
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
350
350
  }, "color" | "css" | "size" | "icon" | "variant"> & import("@stitches/react/types/styled-component").TransformProps<{
351
351
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
352
- size?: "md" | "lg" | undefined;
352
+ size?: "sm" | "md" | "lg" | undefined;
353
353
  variant?: "outline" | "transparent" | "primary" | undefined;
354
354
  icon?: boolean | "true" | undefined;
355
355
  }, {
package/dist/ui.es.js CHANGED
@@ -1,165 +1,81 @@
1
- import { P as d, w as i, x as c } from "./TextInput-f8076813.js";
2
- import { C as B, E as P, B as R, m as O, G as z, H as A, q as $, v as N, r as j, D as G, K as H, a as L, n as q, p as E, M as J, N as K, I as V, O as W, S as Q, t as U, k as X, T as Y, l as Z, b as _, d as F, c as oo, A as ro, z as ao, y as eo, J as so, s as to } from "./TextInput-f8076813.js";
3
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
4
- import { useState as u, useMemo as t } from "react";
5
- import m from "react-select";
1
+ import { P as t, y as n, z as l, R as p } from "./TextInput-c4d1672c.js";
2
+ import { H as D, I as B, B as M, m as y, J as h, K as w, C as O, q as P, v as k, L as A, D as N, U as $, a as j, n as z, p as G, M as H, N as R, r as q, O as E, S as J, t as K, k as L, T as Q, l as U, b as F, d as V, c as W, G as X, E as Y, A as Z, Q as _, s as oo } from "./TextInput-c4d1672c.js";
3
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
4
+ import { useState as m } from "react";
6
5
  import "react-dom";
7
6
  import "@radix-ui/react-toolbar";
8
- import "./index.esm-969855d2.js";
7
+ import "./index.esm-b848a615.js";
9
8
  import "@radix-ui/react-dropdown-menu";
10
- const T = ({ children: o, content: r }) => {
11
- const [a, s] = u(!1);
12
- return /* @__PURE__ */ p(
13
- d,
9
+ import "react-select";
10
+ const v = ({ children: o, content: a }) => {
11
+ const [s, r] = m(!1);
12
+ return /* @__PURE__ */ i(
13
+ t,
14
14
  {
15
- open: a,
16
- onOpenChange: s,
15
+ open: s,
16
+ onOpenChange: r,
17
17
  trigger: "hover",
18
18
  placement: "top",
19
19
  offset: { mainAxis: 8 },
20
20
  role: "tooltip",
21
21
  children: [
22
- /* @__PURE__ */ e(i, { children: o }),
23
- /* @__PURE__ */ e(c, { overlayCardProps: {
22
+ /* @__PURE__ */ e(n, { children: o }),
23
+ /* @__PURE__ */ e(l, { overlayCardProps: {
24
24
  css: {
25
25
  background: "rgba(0,0,0, 0.9)",
26
26
  color: "#fff",
27
27
  fontSize: "$sm",
28
28
  padding: "$1 $2"
29
29
  }
30
- }, children: r })
30
+ }, children: a })
31
31
  ]
32
32
  }
33
33
  );
34
- }, g = {
35
- container: (o) => ({
36
- ...o,
37
- minWidth: "200px"
38
- }),
39
- control: (o, { isFocused: r }) => ({
40
- ...o,
41
- "&:hover": {},
42
- border: r ? "1px solid var(--colors-blue300)" : "1px solid var(--colors-gray300)",
43
- outline: "none",
44
- borderRadius: "var(--radii-sm)",
45
- boxShadow: r ? "0 0 0 4px var(--colors-blue100)" : "none"
46
- }),
47
- menu: (o) => ({
48
- ...o,
49
- boxShadow: "var(--shadows-overlayCard)",
50
- borderRadius: "var(--radii-md)",
51
- border: "none",
52
- padding: "var(--space-1)"
53
- }),
54
- option: (o, { isFocused: r, isSelected: a }) => ({
55
- ...o,
56
- background: r ? "var(--colors-gray100)" : a ? "var(--colors-blue100)" : "transparent",
57
- "&:active": {
58
- background: "var(--colors-gray200)"
59
- },
60
- borderRadius: "var(--radii-sm)",
61
- color: "var(--colors-text)"
62
- }),
63
- menuList: (o) => ({
64
- ...o,
65
- padding: 0
66
- }),
67
- multiValueRemove: (o) => ({
68
- ...o,
69
- background: "transparent",
70
- color: "var(--colors-text)",
71
- "&:hover": {
72
- background: "var(--colors-red200)",
73
- color: "var(--colors-red800)"
74
- }
75
- }),
76
- clearIndicator: (o) => ({
77
- ...o,
78
- paddingLeft: 0,
79
- paddingRight: 0
80
- }),
81
- menuPortal: (o) => ({
82
- ...o,
83
- zIndex: "var(--zIndices-overlayCard)"
84
- })
85
- }, v = {
86
- IndicatorSeparator: () => null
87
- }, n = ({
88
- styles: o,
89
- components: r,
90
- ...a
91
- }) => {
92
- const s = t(
93
- () => ({
94
- ...g,
95
- ...o
96
- }),
97
- [o]
98
- ), l = t(
99
- () => ({
100
- ...v,
101
- ...r
102
- }),
103
- [r]
104
- );
105
- return /* @__PURE__ */ e(m, { components: l, styles: s, ...a });
106
- }, M = ({
107
- clearable: o = !0,
108
- multi: r = !1,
109
- ...a
110
- }) => (o = r ? !1 : o, /* @__PURE__ */ e(
111
- n,
34
+ }, x = ({ clearable: o, ...a }) => /* @__PURE__ */ e(
35
+ p,
112
36
  {
113
37
  ...a,
114
38
  isClearable: o,
115
- isMulti: r,
116
- isSearchable: !0
117
- }
118
- )), w = ({ clearable: o, ...r }) => /* @__PURE__ */ e(
119
- n,
120
- {
121
- ...r,
122
- isClearable: o,
123
39
  isSearchable: !1,
124
40
  isMulti: !1
125
41
  }
126
42
  );
127
43
  export {
128
- B as Alert,
129
- P as Badge,
130
- R as Box,
131
- O as Button,
132
- z as ButtonInToolbar,
133
- A as Card,
134
- M as Combobox,
135
- $ as Dialog,
136
- N as DialogActions,
137
- j as DialogHeader,
138
- G as DropdownMenu,
139
- H as DropdownMenuCheckboxItem,
140
- L as DropdownMenuIconItem,
141
- q as DropdownMenuItem,
142
- E as DropdownMenuSeparator,
143
- J as MenuOverlayCard,
144
- K as NavBar,
145
- V as NavBarItem,
146
- W as OverlayCard,
147
- d as Popover,
148
- c as PopoverContent,
149
- i as PopoverTrigger,
150
- w as Select,
151
- Q as Spinner,
152
- U as TextInput,
153
- X as Toolbar,
154
- Y as ToolbarButton,
155
- Z as ToolbarSeparator,
156
- _ as ToolbarToggleGroup,
157
- F as ToolbarToggleItem,
158
- T as Tooltip,
159
- oo as css,
160
- ro as getCssText,
161
- ao as globalCss,
162
- eo as keyframes,
163
- so as menuItemStyles,
164
- to as styled
44
+ D as Alert,
45
+ B as Badge,
46
+ M as Box,
47
+ y as Button,
48
+ h as ButtonInToolbar,
49
+ w as Card,
50
+ O as Combobox,
51
+ P as Dialog,
52
+ k as DialogActions,
53
+ A as DialogHeader,
54
+ N as DropdownMenu,
55
+ $ as DropdownMenuCheckboxItem,
56
+ j as DropdownMenuIconItem,
57
+ z as DropdownMenuItem,
58
+ G as DropdownMenuSeparator,
59
+ H as MenuOverlayCard,
60
+ R as NavBar,
61
+ q as NavBarItem,
62
+ E as OverlayCard,
63
+ t as Popover,
64
+ l as PopoverContent,
65
+ n as PopoverTrigger,
66
+ x as Select,
67
+ J as Spinner,
68
+ K as TextInput,
69
+ L as Toolbar,
70
+ Q as ToolbarButton,
71
+ U as ToolbarSeparator,
72
+ F as ToolbarToggleGroup,
73
+ V as ToolbarToggleItem,
74
+ v as Tooltip,
75
+ W as css,
76
+ X as getCssText,
77
+ Y as globalCss,
78
+ Z as keyframes,
79
+ _ as menuItemStyles,
80
+ oo as styled
165
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {