@arkitektbedriftene/fe-lib 4.1.0 → 4.2.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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const Card: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
2
2
|
variant?: "primary" | undefined;
|
|
3
3
|
elevation?: "none" | "raised" | undefined;
|
|
4
|
+
rounded?: "md" | "none" | undefined;
|
|
5
|
+
border?: boolean | "true" | undefined;
|
|
4
6
|
}, {
|
|
5
7
|
lg: "(min-width: 1200px)";
|
|
6
8
|
print: "print";
|
|
@@ -2,6 +2,7 @@ import * as RCheckbox from "@radix-ui/react-checkbox";
|
|
|
2
2
|
import { type ComponentProps } from "react";
|
|
3
3
|
declare const Root: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>, {
|
|
4
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
5
|
+
color?: "primary" | "secondary" | undefined;
|
|
5
6
|
}, {
|
|
6
7
|
lg: "(min-width: 1200px)";
|
|
7
8
|
print: "print";
|
|
@@ -119,8 +120,9 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
|
|
|
119
120
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
120
121
|
export declare const Checkbox: ({ id, size, label, ...props }: {
|
|
121
122
|
label?: string | undefined;
|
|
122
|
-
} & Omit<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
123
|
+
} & Omit<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "color" | "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
123
124
|
size?: "sm" | "md" | "lg" | undefined;
|
|
125
|
+
color?: "primary" | "secondary" | undefined;
|
|
124
126
|
}, {
|
|
125
127
|
lg: "(min-width: 1200px)";
|
|
126
128
|
print: "print";
|
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as h, s as n, c as f } from "./stitches.config-00c23cdb.js";
|
|
2
|
-
import { a as Ae, g as
|
|
2
|
+
import { a as Ae, g as Ve } from "./stitches.config-00c23cdb.js";
|
|
3
3
|
import { jsx as t, jsxs as c, Fragment as K } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as g, createContext as U, useMemo as k, useContext as B, isValidElement as q, cloneElement as J, useState as Q, useId as w } from "react";
|
|
5
5
|
import { useFloating as Z, autoUpdate as _, offset as oo, flip as eo, shift as ro, useTransitionStyles as to, useClick as no, useHover as ao, safePolygon as io, useDismiss as so, useRole as lo, useInteractions as co, FloatingPortal as $o } from "@floating-ui/react";
|
|
@@ -517,7 +517,7 @@ const bo = h({
|
|
|
517
517
|
my: "$1",
|
|
518
518
|
mx: "$1",
|
|
519
519
|
backgroundColor: "$border"
|
|
520
|
-
}),
|
|
520
|
+
}), V = g(({ css: o, ...e }, r) => /* @__PURE__ */ t(
|
|
521
521
|
P,
|
|
522
522
|
{
|
|
523
523
|
ref: r,
|
|
@@ -539,7 +539,7 @@ const bo = h({
|
|
|
539
539
|
asChild: !0,
|
|
540
540
|
ref: a,
|
|
541
541
|
children: /* @__PURE__ */ c(
|
|
542
|
-
|
|
542
|
+
V,
|
|
543
543
|
{
|
|
544
544
|
variant: "transparent",
|
|
545
545
|
color: "primary",
|
|
@@ -563,7 +563,7 @@ const bo = h({
|
|
|
563
563
|
asChild: !0,
|
|
564
564
|
ref: a,
|
|
565
565
|
children: /* @__PURE__ */ t(
|
|
566
|
-
|
|
566
|
+
V,
|
|
567
567
|
{
|
|
568
568
|
variant: "transparent",
|
|
569
569
|
color: "primary",
|
|
@@ -576,7 +576,6 @@ const bo = h({
|
|
|
576
576
|
)), he = n("div", {
|
|
577
577
|
color: "$$cardText",
|
|
578
578
|
backgroundColor: "$$cardBackground",
|
|
579
|
-
borderRadius: "$md",
|
|
580
579
|
padding: "$4",
|
|
581
580
|
variants: {
|
|
582
581
|
variant: {
|
|
@@ -592,11 +591,32 @@ const bo = h({
|
|
|
592
591
|
raised: {
|
|
593
592
|
boxShadow: "$md"
|
|
594
593
|
}
|
|
594
|
+
},
|
|
595
|
+
rounded: {
|
|
596
|
+
none: {
|
|
597
|
+
borderRadius: "0"
|
|
598
|
+
},
|
|
599
|
+
md: {
|
|
600
|
+
borderRadius: "$md"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
border: {
|
|
604
|
+
true: {}
|
|
595
605
|
}
|
|
596
606
|
},
|
|
607
|
+
compoundVariants: [
|
|
608
|
+
{
|
|
609
|
+
variant: "primary",
|
|
610
|
+
border: !0,
|
|
611
|
+
css: {
|
|
612
|
+
border: "1px solid $gray200"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
],
|
|
597
616
|
defaultVariants: {
|
|
598
617
|
variant: "primary",
|
|
599
|
-
elevation: "raised"
|
|
618
|
+
elevation: "raised",
|
|
619
|
+
rounded: "md"
|
|
600
620
|
}
|
|
601
621
|
}), Mo = n("div", {
|
|
602
622
|
borderRadius: "$md",
|
|
@@ -669,7 +689,7 @@ const bo = h({
|
|
|
669
689
|
padding: "$4",
|
|
670
690
|
borderBottomRightRadius: "$md",
|
|
671
691
|
borderBottomLeftRadius: "$md"
|
|
672
|
-
}),
|
|
692
|
+
}), Vo = n("div", {
|
|
673
693
|
display: "flex",
|
|
674
694
|
variants: {
|
|
675
695
|
direction: {
|
|
@@ -704,7 +724,7 @@ const bo = h({
|
|
|
704
724
|
direction: "column",
|
|
705
725
|
gap: 4
|
|
706
726
|
}
|
|
707
|
-
}), D = /* @__PURE__ */ new Map(),
|
|
727
|
+
}), D = /* @__PURE__ */ new Map(), Wo = (o) => {
|
|
708
728
|
const e = D.get(o);
|
|
709
729
|
if (e)
|
|
710
730
|
return e;
|
|
@@ -750,7 +770,7 @@ const bo = h({
|
|
|
750
770
|
...r
|
|
751
771
|
}) => {
|
|
752
772
|
const a = k(
|
|
753
|
-
() => e ?
|
|
773
|
+
() => e ? Wo(e) : "$gray200",
|
|
754
774
|
[e]
|
|
755
775
|
);
|
|
756
776
|
return /* @__PURE__ */ t(Oo, { css: { backgroundColor: a, ...o }, ...r });
|
|
@@ -894,7 +914,7 @@ const bo = h({
|
|
|
894
914
|
}
|
|
895
915
|
}, Yo = {
|
|
896
916
|
IndicatorSeparator: () => null
|
|
897
|
-
},
|
|
917
|
+
}, W = ({
|
|
898
918
|
styles: o,
|
|
899
919
|
components: e,
|
|
900
920
|
error: r,
|
|
@@ -915,7 +935,7 @@ const bo = h({
|
|
|
915
935
|
[e]
|
|
916
936
|
);
|
|
917
937
|
return /* @__PURE__ */ t(ho, { components: s, styles: i, ...a });
|
|
918
|
-
}, Re = (o) => /* @__PURE__ */ t(
|
|
938
|
+
}, Re = (o) => /* @__PURE__ */ t(W, { ...o, isSearchable: !0 }), Te = ({
|
|
919
939
|
label: o,
|
|
920
940
|
css: e,
|
|
921
941
|
error: r,
|
|
@@ -934,7 +954,7 @@ const bo = h({
|
|
|
934
954
|
}
|
|
935
955
|
),
|
|
936
956
|
/* @__PURE__ */ t(
|
|
937
|
-
|
|
957
|
+
W,
|
|
938
958
|
{
|
|
939
959
|
...a,
|
|
940
960
|
error: r,
|
|
@@ -1097,12 +1117,8 @@ const bo = h({
|
|
|
1097
1117
|
gap: "$2",
|
|
1098
1118
|
flexShrink: 0,
|
|
1099
1119
|
color: "#fff",
|
|
1100
|
-
border: "2px solid $blue600",
|
|
1101
1120
|
backgroundColor: "transparent",
|
|
1102
1121
|
borderRadius: "$sm",
|
|
1103
|
-
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1104
|
-
backgroundColor: "$blue500"
|
|
1105
|
-
},
|
|
1106
1122
|
"&[data-disabled]": {
|
|
1107
1123
|
borderColor: "$gray200",
|
|
1108
1124
|
backgroundColor: "$gray100",
|
|
@@ -1122,10 +1138,25 @@ const bo = h({
|
|
|
1122
1138
|
width: "2rem",
|
|
1123
1139
|
height: "2rem"
|
|
1124
1140
|
}
|
|
1141
|
+
},
|
|
1142
|
+
color: {
|
|
1143
|
+
primary: {
|
|
1144
|
+
border: "2px solid $blue600",
|
|
1145
|
+
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1146
|
+
backgroundColor: "$blue500"
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
secondary: {
|
|
1150
|
+
border: "2px solid $gray900",
|
|
1151
|
+
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1152
|
+
backgroundColor: "$gray800"
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1125
1155
|
}
|
|
1126
1156
|
},
|
|
1127
1157
|
defaultVariants: {
|
|
1128
|
-
size: "md"
|
|
1158
|
+
size: "md",
|
|
1159
|
+
color: "primary"
|
|
1129
1160
|
}
|
|
1130
1161
|
}), Jo = n(F.Indicator, {
|
|
1131
1162
|
"[data-icon]": {
|
|
@@ -1218,7 +1249,7 @@ const bo = h({
|
|
|
1218
1249
|
labelProps: r,
|
|
1219
1250
|
size: a,
|
|
1220
1251
|
...i
|
|
1221
|
-
}) => /* @__PURE__ */ c(
|
|
1252
|
+
}) => /* @__PURE__ */ c(Vo, { direction: "row", align: "center", ...e, children: [
|
|
1222
1253
|
o && /* @__PURE__ */ t(oe, { size: a, ...r, children: o }),
|
|
1223
1254
|
/* @__PURE__ */ t(Zo, { ...i, children: /* @__PURE__ */ t(_o, {}) })
|
|
1224
1255
|
] });
|
|
@@ -1228,7 +1259,7 @@ export {
|
|
|
1228
1259
|
ce as Badge,
|
|
1229
1260
|
d as Box,
|
|
1230
1261
|
P as Button,
|
|
1231
|
-
|
|
1262
|
+
V as ButtonInToolbar,
|
|
1232
1263
|
he as Card,
|
|
1233
1264
|
He as Checkbox,
|
|
1234
1265
|
Re as Combobox,
|
|
@@ -1249,7 +1280,7 @@ export {
|
|
|
1249
1280
|
Ho as PopoverTrigger,
|
|
1250
1281
|
Te as Select,
|
|
1251
1282
|
ko as Spinner,
|
|
1252
|
-
|
|
1283
|
+
Vo as Stack,
|
|
1253
1284
|
Fe as Switch,
|
|
1254
1285
|
Be as TextArea,
|
|
1255
1286
|
De as TextInput,
|
|
@@ -1261,7 +1292,7 @@ export {
|
|
|
1261
1292
|
de as Tooltip,
|
|
1262
1293
|
f as css,
|
|
1263
1294
|
Ae as getCssText,
|
|
1264
|
-
|
|
1295
|
+
Ve as globalCss,
|
|
1265
1296
|
h as keyframes,
|
|
1266
1297
|
S as menuItemStyles,
|
|
1267
1298
|
n as styled
|