@arkitektbedriftene/fe-lib 4.1.1 → 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.
- package/dist/ui/components/Card.d.ts +2 -0
- package/dist/ui.es.js +36 -16
- package/package.json +1 -1
|
@@ -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";
|
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,
|
|
@@ -1229,7 +1249,7 @@ const bo = h({
|
|
|
1229
1249
|
labelProps: r,
|
|
1230
1250
|
size: a,
|
|
1231
1251
|
...i
|
|
1232
|
-
}) => /* @__PURE__ */ c(
|
|
1252
|
+
}) => /* @__PURE__ */ c(Vo, { direction: "row", align: "center", ...e, children: [
|
|
1233
1253
|
o && /* @__PURE__ */ t(oe, { size: a, ...r, children: o }),
|
|
1234
1254
|
/* @__PURE__ */ t(Zo, { ...i, children: /* @__PURE__ */ t(_o, {}) })
|
|
1235
1255
|
] });
|
|
@@ -1239,7 +1259,7 @@ export {
|
|
|
1239
1259
|
ce as Badge,
|
|
1240
1260
|
d as Box,
|
|
1241
1261
|
P as Button,
|
|
1242
|
-
|
|
1262
|
+
V as ButtonInToolbar,
|
|
1243
1263
|
he as Card,
|
|
1244
1264
|
He as Checkbox,
|
|
1245
1265
|
Re as Combobox,
|
|
@@ -1260,7 +1280,7 @@ export {
|
|
|
1260
1280
|
Ho as PopoverTrigger,
|
|
1261
1281
|
Te as Select,
|
|
1262
1282
|
ko as Spinner,
|
|
1263
|
-
|
|
1283
|
+
Vo as Stack,
|
|
1264
1284
|
Fe as Switch,
|
|
1265
1285
|
Be as TextArea,
|
|
1266
1286
|
De as TextInput,
|
|
@@ -1272,7 +1292,7 @@ export {
|
|
|
1272
1292
|
de as Tooltip,
|
|
1273
1293
|
f as css,
|
|
1274
1294
|
Ae as getCssText,
|
|
1275
|
-
|
|
1295
|
+
Ve as globalCss,
|
|
1276
1296
|
h as keyframes,
|
|
1277
1297
|
S as menuItemStyles,
|
|
1278
1298
|
n as styled
|