@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@13.1.3 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.1.4 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -11,18 +11,18 @@ CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- ESM dist/index.mjs 338.27 KB
15
14
  ESM dist/icons/index.mjs 110.00 B
16
- ESM dist/index.mjs.map 720.59 KB
15
+ ESM dist/index.mjs 338.58 KB
17
16
  ESM dist/icons/index.mjs.map 157.00 B
18
- ESM ⚡️ Build success in 2927ms
19
- CJS dist/index.cjs 362.31 KB
17
+ ESM dist/index.mjs.map 721.19 KB
18
+ ESM ⚡️ Build success in 2721ms
19
+ CJS dist/index.cjs 362.66 KB
20
20
  CJS dist/icons/index.cjs 381.00 B
21
+ CJS dist/index.cjs.map 721.19 KB
21
22
  CJS dist/icons/index.cjs.map 157.00 B
22
- CJS dist/index.cjs.map 720.59 KB
23
- CJS ⚡️ Build success in 2928ms
24
- DTS ⚡️ Build success in 21478ms
23
+ CJS ⚡️ Build success in 2721ms
24
+ DTS ⚡️ Build success in 21770ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 143.27 KB
26
+ DTS dist/index.d.ts 143.31 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 143.27 KB
28
+ DTS dist/index.d.cts 143.31 KB
@@ -1,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@13.1.3 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@13.1.4 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
- ◇ injected env (0) from .env // tip: secrets for agents [www.dotenvx.com]
5
+ ◇ injected env (0) from .env // tip: auth for agents [www.vestauth.com]
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 13.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ab364d0: Fix positioning of popover/tooltip-content when used together with more advanced components as triggers.
8
+ - 126094e: Table: fix table cells width to avoid render conflict with tableLayout fixed
9
+ - cd92694: Make cursor showing pointer in the menu component
10
+
3
11
  ## 13.1.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -4600,7 +4600,7 @@ var PasswordInput = ({
4600
4600
  Input,
4601
4601
  {
4602
4602
  ref,
4603
- startElement: startElement && startElement,
4603
+ startElement,
4604
4604
  label,
4605
4605
  type: visible ? "text" : "password",
4606
4606
  endElement: /* @__PURE__ */ jsxRuntime.jsx(
@@ -6395,7 +6395,16 @@ var PopoverTrigger = ({
6395
6395
  ...props
6396
6396
  }) => {
6397
6397
  const isStringChild = typeof children === "string";
6398
- return /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Trigger, { ...props, ref, asChild: !isStringChild, children });
6398
+ return /* @__PURE__ */ jsxRuntime.jsx(
6399
+ react.Popover.Trigger,
6400
+ {
6401
+ ref,
6402
+ asChild: !isStringChild,
6403
+ width: isStringChild ? void 0 : "fit-content",
6404
+ ...props,
6405
+ children: isStringChild ? children : /* @__PURE__ */ jsxRuntime.jsx(react.Box, { children })
6406
+ }
6407
+ );
6399
6408
  };
6400
6409
  var PopoverContent = ({
6401
6410
  ref,
@@ -6413,14 +6422,14 @@ var PopoverContent = ({
6413
6422
  }, [showCloseButton, open]);
6414
6423
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Popover.Content, { ref, ...props, children: [
6415
6424
  /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Arrow, {}),
6425
+ /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children }),
6416
6426
  showCloseButton && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
6417
6427
  CloseButton,
6418
6428
  {
6419
6429
  className: colorMode === "dark" ? "light" : "dark",
6420
6430
  ref: closeButtonRef
6421
6431
  }
6422
- ) }) }),
6423
- /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children })
6432
+ ) }) })
6424
6433
  ] }) }) });
6425
6434
  };
6426
6435
  var ProgressDot = ({ isActive }) => {
@@ -10380,6 +10389,7 @@ var menuSlotRecipe = react.defineSlotRecipe({
10380
10389
  display: "flex",
10381
10390
  justifyContent: "space-between",
10382
10391
  gap: 1.5,
10392
+ cursor: "pointer",
10383
10393
  _hover: {
10384
10394
  backgroundColor: "surface.accent.hover"
10385
10395
  },
@@ -10407,19 +10417,22 @@ var menuSlotRecipe = react.defineSlotRecipe({
10407
10417
  radioItem: {
10408
10418
  display: "flex",
10409
10419
  justifyContent: "space-between",
10410
- gap: 2
10420
+ gap: 2,
10421
+ cursor: "pointer"
10411
10422
  },
10412
10423
  triggerItem: {
10413
10424
  display: "flex",
10414
10425
  justifyContent: "space-between",
10415
10426
  gap: 1.5,
10416
- alignItems: "center"
10427
+ alignItems: "center",
10428
+ cursor: "pointer"
10417
10429
  },
10418
10430
  checkboxItem: {
10419
10431
  display: "flex",
10420
10432
  gap: 2,
10421
10433
  alignItems: "center",
10422
- width: "full"
10434
+ width: "full",
10435
+ cursor: "pointer"
10423
10436
  }
10424
10437
  },
10425
10438
  variants: {
@@ -10617,7 +10630,7 @@ var popoverSlotRecipe = react.defineSlotRecipe({
10617
10630
  content: {
10618
10631
  position: "relative",
10619
10632
  display: "flex",
10620
- flexDirection: "row-reverse",
10633
+ flexDirection: "row",
10621
10634
  color: "text.brand",
10622
10635
  gap: "0.625rem",
10623
10636
  padding: "0.563rem 0.75rem",
@@ -11402,8 +11415,7 @@ var tableSlotRecipe = react.defineSlotRecipe({
11402
11415
  cell: {
11403
11416
  ...numericStyles,
11404
11417
  paddingX: 1.5,
11405
- paddingY: 1,
11406
- width: "100%"
11418
+ paddingY: 1
11407
11419
  },
11408
11420
  footer: {
11409
11421
  fontWeight: "medium"
@@ -12648,16 +12660,17 @@ var TooltipTrigger = ({
12648
12660
  ...props
12649
12661
  }) => {
12650
12662
  const isStringChild = typeof children === "string";
12651
- return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ...props, ref, asChild: !isStringChild, children });
12663
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ref, asChild: !isStringChild, ...props, children: isStringChild ? children : /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width: "fit-content", children }) });
12652
12664
  };
12653
12665
  var TooltipContent = ({
12654
12666
  ref,
12655
12667
  children,
12668
+ showArrow = false,
12656
12669
  ...props
12657
12670
  }) => {
12658
12671
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Tooltip.Content, { ref, ...props, children: [
12659
- /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, {}),
12660
- /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Content, { ...props, children })
12672
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.ArrowTip, {}) }),
12673
+ children
12661
12674
  ] }) }) });
12662
12675
  };
12663
12676