@vygruppen/spor-react 13.1.2 → 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.2 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
- CJS dist/index.cjs 361.36 KB
15
- CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 719.37 KB
17
- CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2677ms
19
- ESM dist/index.mjs 337.34 KB
20
14
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 719.37 KB
15
+ ESM dist/index.mjs 338.58 KB
22
16
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2682ms
24
- DTS ⚡️ Build success in 20448ms
17
+ ESM dist/index.mjs.map 721.19 KB
18
+ ESM ⚡️ Build success in 2721ms
19
+ CJS dist/index.cjs 362.66 KB
20
+ CJS dist/icons/index.cjs 381.00 B
21
+ CJS dist/index.cjs.map 721.19 KB
22
+ CJS dist/icons/index.cjs.map 157.00 B
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.2 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: multiple files { path: ['.env.local', '.env'] }
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,21 @@
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
+
11
+ ## 13.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 15b5e35: Update Vy-logo to use correct colors in darkmode
16
+ - Updated dependencies [65651f0]
17
+ - @vygruppen/spor-design-tokens@5.0.2
18
+
3
19
  ## 13.1.2
4
20
 
5
21
  ### 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(
@@ -5652,7 +5652,18 @@ var VyLogo = ({
5652
5652
  fillRule: "evenodd",
5653
5653
  clipRule: "evenodd",
5654
5654
  d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
5655
- fill: fillForAccent
5655
+ fill: fillForAccent,
5656
+ display: { _light: "block", _dark: "none" }
5657
+ }
5658
+ ),
5659
+ /* @__PURE__ */ jsxRuntime.jsx(
5660
+ Path,
5661
+ {
5662
+ fillRule: "evenodd",
5663
+ clipRule: "evenodd",
5664
+ d: "M98.49.07h-1.82c-2.98 0-4.6 1.49-5.63 5.06l-6.52 21.79a18.22 18.22 0 0 1-1.67 3.96c.57.78 1.17 1.26 1.76 1.38 1.13-.96 2.06-2.75 2.89-5.46l6.49-21.67c.9-3.1 2.23-4.63 4.5-4.98a.04.04 0 0 0 0-.08Z",
5665
+ fill: "main",
5666
+ display: { _light: "none", _dark: "block" }
5656
5667
  }
5657
5668
  ),
5658
5669
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5704,7 +5715,16 @@ var VyLogo = ({
5704
5715
  Path,
5705
5716
  {
5706
5717
  d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
5707
- fill: fillForAccent
5718
+ fill: fillForAccent,
5719
+ display: { _light: "block", _dark: "none" }
5720
+ }
5721
+ ),
5722
+ /* @__PURE__ */ jsxRuntime.jsx(
5723
+ Path,
5724
+ {
5725
+ d: "M53.78 1.44a4.64 4.64 0 0 0-4.17.93A10.79 10.79 0 0 0 46.19 8L34.53 47.72c-.58 1.93-1.2 3.75-2.56 4.87-.62.5-1.4.86-2.39 1.01a.04.04 0 0 0 0 .08h1.8c1.57 0 2.69-.41 3.53-1.1 1.36-1.1 1.98-2.93 2.56-4.86L49.05 8.3c.73-2.74 1.95-4.63 3.43-5.9.43-.36.88-.68 1.35-.95l-.05-.01Z",
5726
+ fill: "main",
5727
+ display: { _light: "none", _dark: "block" }
5708
5728
  }
5709
5729
  )
5710
5730
  ] }),
@@ -6375,7 +6395,16 @@ var PopoverTrigger = ({
6375
6395
  ...props
6376
6396
  }) => {
6377
6397
  const isStringChild = typeof children === "string";
6378
- 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
+ );
6379
6408
  };
6380
6409
  var PopoverContent = ({
6381
6410
  ref,
@@ -6393,14 +6422,14 @@ var PopoverContent = ({
6393
6422
  }, [showCloseButton, open]);
6394
6423
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Popover.Content, { ref, ...props, children: [
6395
6424
  /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Arrow, {}),
6425
+ /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children }),
6396
6426
  showCloseButton && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
6397
6427
  CloseButton,
6398
6428
  {
6399
6429
  className: colorMode === "dark" ? "light" : "dark",
6400
6430
  ref: closeButtonRef
6401
6431
  }
6402
- ) }) }),
6403
- /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children })
6432
+ ) }) })
6404
6433
  ] }) }) });
6405
6434
  };
6406
6435
  var ProgressDot = ({ isActive }) => {
@@ -10360,6 +10389,7 @@ var menuSlotRecipe = react.defineSlotRecipe({
10360
10389
  display: "flex",
10361
10390
  justifyContent: "space-between",
10362
10391
  gap: 1.5,
10392
+ cursor: "pointer",
10363
10393
  _hover: {
10364
10394
  backgroundColor: "surface.accent.hover"
10365
10395
  },
@@ -10387,19 +10417,22 @@ var menuSlotRecipe = react.defineSlotRecipe({
10387
10417
  radioItem: {
10388
10418
  display: "flex",
10389
10419
  justifyContent: "space-between",
10390
- gap: 2
10420
+ gap: 2,
10421
+ cursor: "pointer"
10391
10422
  },
10392
10423
  triggerItem: {
10393
10424
  display: "flex",
10394
10425
  justifyContent: "space-between",
10395
10426
  gap: 1.5,
10396
- alignItems: "center"
10427
+ alignItems: "center",
10428
+ cursor: "pointer"
10397
10429
  },
10398
10430
  checkboxItem: {
10399
10431
  display: "flex",
10400
10432
  gap: 2,
10401
10433
  alignItems: "center",
10402
- width: "full"
10434
+ width: "full",
10435
+ cursor: "pointer"
10403
10436
  }
10404
10437
  },
10405
10438
  variants: {
@@ -10597,7 +10630,7 @@ var popoverSlotRecipe = react.defineSlotRecipe({
10597
10630
  content: {
10598
10631
  position: "relative",
10599
10632
  display: "flex",
10600
- flexDirection: "row-reverse",
10633
+ flexDirection: "row",
10601
10634
  color: "text.brand",
10602
10635
  gap: "0.625rem",
10603
10636
  padding: "0.563rem 0.75rem",
@@ -11382,8 +11415,7 @@ var tableSlotRecipe = react.defineSlotRecipe({
11382
11415
  cell: {
11383
11416
  ...numericStyles,
11384
11417
  paddingX: 1.5,
11385
- paddingY: 1,
11386
- width: "100%"
11418
+ paddingY: 1
11387
11419
  },
11388
11420
  footer: {
11389
11421
  fontWeight: "medium"
@@ -12628,16 +12660,17 @@ var TooltipTrigger = ({
12628
12660
  ...props
12629
12661
  }) => {
12630
12662
  const isStringChild = typeof children === "string";
12631
- 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 }) });
12632
12664
  };
12633
12665
  var TooltipContent = ({
12634
12666
  ref,
12635
12667
  children,
12668
+ showArrow = false,
12636
12669
  ...props
12637
12670
  }) => {
12638
12671
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Tooltip.Content, { ref, ...props, children: [
12639
- /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, {}),
12640
- /* @__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
12641
12674
  ] }) }) });
12642
12675
  };
12643
12676