@vygruppen/spor-react 13.1.3 → 13.1.4
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +2 -2
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +26 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +26 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/input/PasswordInput.tsx +1 -1
- package/src/popover/index.tsx +9 -3
- package/src/theme/slot-recipes/menu.ts +4 -0
- package/src/theme/slot-recipes/popover.ts +1 -2
- package/src/theme/slot-recipes/table.ts +0 -1
- package/src/tooltip.tsx +13 -6
package/dist/index.d.cts
CHANGED
|
@@ -4031,8 +4031,10 @@ declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
|
|
|
4031
4031
|
declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
|
|
4032
4032
|
ref?: React.Ref<HTMLButtonElement>;
|
|
4033
4033
|
}) => react_jsx_runtime.JSX.Element;
|
|
4034
|
-
type TooltipProps = Tooltip$1.ContentProps
|
|
4035
|
-
|
|
4034
|
+
type TooltipProps = Tooltip$1.ContentProps & {
|
|
4035
|
+
showArrow?: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipProps & {
|
|
4036
4038
|
ref?: React.Ref<HTMLDivElement>;
|
|
4037
4039
|
}) => react_jsx_runtime.JSX.Element;
|
|
4038
4040
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4031,8 +4031,10 @@ declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
|
|
|
4031
4031
|
declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
|
|
4032
4032
|
ref?: React.Ref<HTMLButtonElement>;
|
|
4033
4033
|
}) => react_jsx_runtime.JSX.Element;
|
|
4034
|
-
type TooltipProps = Tooltip$1.ContentProps
|
|
4035
|
-
|
|
4034
|
+
type TooltipProps = Tooltip$1.ContentProps & {
|
|
4035
|
+
showArrow?: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipProps & {
|
|
4036
4038
|
ref?: React.Ref<HTMLDivElement>;
|
|
4037
4039
|
}) => react_jsx_runtime.JSX.Element;
|
|
4038
4040
|
|
package/dist/index.mjs
CHANGED
|
@@ -4581,7 +4581,7 @@ var PasswordInput = ({
|
|
|
4581
4581
|
Input,
|
|
4582
4582
|
{
|
|
4583
4583
|
ref,
|
|
4584
|
-
startElement
|
|
4584
|
+
startElement,
|
|
4585
4585
|
label,
|
|
4586
4586
|
type: visible ? "text" : "password",
|
|
4587
4587
|
endElement: /* @__PURE__ */ jsx(
|
|
@@ -6376,7 +6376,16 @@ var PopoverTrigger = ({
|
|
|
6376
6376
|
...props
|
|
6377
6377
|
}) => {
|
|
6378
6378
|
const isStringChild = typeof children === "string";
|
|
6379
|
-
return /* @__PURE__ */ jsx(
|
|
6379
|
+
return /* @__PURE__ */ jsx(
|
|
6380
|
+
Popover$1.Trigger,
|
|
6381
|
+
{
|
|
6382
|
+
ref,
|
|
6383
|
+
asChild: !isStringChild,
|
|
6384
|
+
width: isStringChild ? void 0 : "fit-content",
|
|
6385
|
+
...props,
|
|
6386
|
+
children: isStringChild ? children : /* @__PURE__ */ jsx(Box, { children })
|
|
6387
|
+
}
|
|
6388
|
+
);
|
|
6380
6389
|
};
|
|
6381
6390
|
var PopoverContent = ({
|
|
6382
6391
|
ref,
|
|
@@ -6394,14 +6403,14 @@ var PopoverContent = ({
|
|
|
6394
6403
|
}, [showCloseButton, open]);
|
|
6395
6404
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsxs(Popover$1.Content, { ref, ...props, children: [
|
|
6396
6405
|
/* @__PURE__ */ jsx(Popover$1.Arrow, {}),
|
|
6406
|
+
/* @__PURE__ */ jsx(Popover$1.Body, { ...props, children }),
|
|
6397
6407
|
showCloseButton && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Popover$1.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
6398
6408
|
CloseButton,
|
|
6399
6409
|
{
|
|
6400
6410
|
className: colorMode === "dark" ? "light" : "dark",
|
|
6401
6411
|
ref: closeButtonRef
|
|
6402
6412
|
}
|
|
6403
|
-
) }) })
|
|
6404
|
-
/* @__PURE__ */ jsx(Popover$1.Body, { ...props, children })
|
|
6413
|
+
) }) })
|
|
6405
6414
|
] }) }) });
|
|
6406
6415
|
};
|
|
6407
6416
|
var ProgressDot = ({ isActive }) => {
|
|
@@ -10361,6 +10370,7 @@ var menuSlotRecipe = defineSlotRecipe({
|
|
|
10361
10370
|
display: "flex",
|
|
10362
10371
|
justifyContent: "space-between",
|
|
10363
10372
|
gap: 1.5,
|
|
10373
|
+
cursor: "pointer",
|
|
10364
10374
|
_hover: {
|
|
10365
10375
|
backgroundColor: "surface.accent.hover"
|
|
10366
10376
|
},
|
|
@@ -10388,19 +10398,22 @@ var menuSlotRecipe = defineSlotRecipe({
|
|
|
10388
10398
|
radioItem: {
|
|
10389
10399
|
display: "flex",
|
|
10390
10400
|
justifyContent: "space-between",
|
|
10391
|
-
gap: 2
|
|
10401
|
+
gap: 2,
|
|
10402
|
+
cursor: "pointer"
|
|
10392
10403
|
},
|
|
10393
10404
|
triggerItem: {
|
|
10394
10405
|
display: "flex",
|
|
10395
10406
|
justifyContent: "space-between",
|
|
10396
10407
|
gap: 1.5,
|
|
10397
|
-
alignItems: "center"
|
|
10408
|
+
alignItems: "center",
|
|
10409
|
+
cursor: "pointer"
|
|
10398
10410
|
},
|
|
10399
10411
|
checkboxItem: {
|
|
10400
10412
|
display: "flex",
|
|
10401
10413
|
gap: 2,
|
|
10402
10414
|
alignItems: "center",
|
|
10403
|
-
width: "full"
|
|
10415
|
+
width: "full",
|
|
10416
|
+
cursor: "pointer"
|
|
10404
10417
|
}
|
|
10405
10418
|
},
|
|
10406
10419
|
variants: {
|
|
@@ -10598,7 +10611,7 @@ var popoverSlotRecipe = defineSlotRecipe({
|
|
|
10598
10611
|
content: {
|
|
10599
10612
|
position: "relative",
|
|
10600
10613
|
display: "flex",
|
|
10601
|
-
flexDirection: "row
|
|
10614
|
+
flexDirection: "row",
|
|
10602
10615
|
color: "text.brand",
|
|
10603
10616
|
gap: "0.625rem",
|
|
10604
10617
|
padding: "0.563rem 0.75rem",
|
|
@@ -11383,8 +11396,7 @@ var tableSlotRecipe = defineSlotRecipe({
|
|
|
11383
11396
|
cell: {
|
|
11384
11397
|
...numericStyles,
|
|
11385
11398
|
paddingX: 1.5,
|
|
11386
|
-
paddingY: 1
|
|
11387
|
-
width: "100%"
|
|
11399
|
+
paddingY: 1
|
|
11388
11400
|
},
|
|
11389
11401
|
footer: {
|
|
11390
11402
|
fontWeight: "medium"
|
|
@@ -12629,16 +12641,17 @@ var TooltipTrigger = ({
|
|
|
12629
12641
|
...props
|
|
12630
12642
|
}) => {
|
|
12631
12643
|
const isStringChild = typeof children === "string";
|
|
12632
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, {
|
|
12644
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { ref, asChild: !isStringChild, ...props, children: isStringChild ? children : /* @__PURE__ */ jsx(Box, { width: "fit-content", children }) });
|
|
12633
12645
|
};
|
|
12634
12646
|
var TooltipContent = ({
|
|
12635
12647
|
ref,
|
|
12636
12648
|
children,
|
|
12649
|
+
showArrow = false,
|
|
12637
12650
|
...props
|
|
12638
12651
|
}) => {
|
|
12639
12652
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, { children: /* @__PURE__ */ jsxs(Tooltip$1.Content, { ref, ...props, children: [
|
|
12640
|
-
/* @__PURE__ */ jsx(Tooltip$1.Arrow, {}),
|
|
12641
|
-
|
|
12653
|
+
showArrow && /* @__PURE__ */ jsx(Tooltip$1.Arrow, { children: /* @__PURE__ */ jsx(Tooltip$1.ArrowTip, {}) }),
|
|
12654
|
+
children
|
|
12642
12655
|
] }) }) });
|
|
12643
12656
|
};
|
|
12644
12657
|
|