@vygruppen/spor-react 12.8.1 → 12.8.3

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@12.8.1 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.8.3 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 291.88 KB
15
- ESM dist/icons/index.mjs 110.00 B
16
- ESM dist/index.mjs.map 625.34 KB
17
- ESM dist/icons/index.mjs.map 157.00 B
18
- ESM ⚡️ Build success in 3045ms
19
- CJS dist/index.cjs 312.56 KB
14
+ CJS dist/index.cjs 313.52 KB
20
15
  CJS dist/icons/index.cjs 381.00 B
21
16
  CJS dist/icons/index.cjs.map 157.00 B
22
- CJS dist/index.cjs.map 625.34 KB
23
- CJS ⚡️ Build success in 3045ms
24
- DTS ⚡️ Build success in 31801ms
17
+ CJS dist/index.cjs.map 627.10 KB
18
+ CJS ⚡️ Build success in 3142ms
19
+ ESM dist/index.mjs 292.69 KB
20
+ ESM dist/icons/index.mjs 110.00 B
21
+ ESM dist/index.mjs.map 627.10 KB
22
+ ESM dist/icons/index.mjs.map 157.00 B
23
+ ESM ⚡️ Build success in 3146ms
24
+ DTS ⚡️ Build success in 30320ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 156.09 KB
26
+ DTS dist/index.d.ts 156.38 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 156.09 KB
28
+ DTS dist/index.d.cts 156.38 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.8.1 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.8.3 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d76d180: Add new component, Tooltip, that looks similar to Popover, but is triggered on hover.
8
+
9
+ ## 12.8.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 286dbdc: Improve type definitions for Field and CheckboxGroup components:
14
+
15
+ - CheckboxGroup: Make `direction` optional.
16
+ - Field: Ensure `onClick` is included in props.
17
+
3
18
  ## 12.8.1
4
19
 
5
20
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -7624,7 +7624,6 @@ var fieldSlotRecipe = react.defineSlotRecipe({
7624
7624
  width: "fit-content",
7625
7625
  position: "absolute",
7626
7626
  top: "100%",
7627
- // position below parent
7628
7627
  left: 3,
7629
7628
  zIndex: "dropdown",
7630
7629
  maxWidth: "50ch",
@@ -8552,6 +8551,7 @@ var popoverSlotRecipe = react.defineSlotRecipe({
8552
8551
  position: "relative",
8553
8552
  display: "flex",
8554
8553
  flexDirection: "row-reverse",
8554
+ color: "text.inverted",
8555
8555
  gap: "0.625rem",
8556
8556
  padding: "0.563rem 0.75rem",
8557
8557
  textStyle: "sm",
@@ -9761,7 +9761,8 @@ var slotRecipes = {
9761
9761
  travelTag: travelTagSlotRecipe,
9762
9762
  toast: toastSlotRecipe,
9763
9763
  checkboxCard: choiceChipSlotRecipe,
9764
- collapsible: collapsibleSlotRecipe
9764
+ collapsible: collapsibleSlotRecipe,
9765
+ tooltip: popoverSlotRecipe
9765
9766
  };
9766
9767
  var animations = react.defineTokens.animations({
9767
9768
  spin: {
@@ -10577,6 +10578,21 @@ var themes = {
10577
10578
  )
10578
10579
  };
10579
10580
  var system = themes["VyDigital" /* VyDigital */];
10581
+ var Tooltip = react.Tooltip.Root;
10582
+ var TooltipTrigger = React27.forwardRef(({ children, ...props }, ref) => {
10583
+ const isStringChild = typeof children === "string";
10584
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ...props, ref, asChild: !isStringChild, children });
10585
+ });
10586
+ TooltipTrigger.displayName = "TooltipTrigger";
10587
+ var TooltipContent = React27.forwardRef(
10588
+ ({ children, ...props }, ref) => {
10589
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Tooltip.Content, { ref, ...props, children: [
10590
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, {}),
10591
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Content, { ...props, children })
10592
+ ] }) }) });
10593
+ }
10594
+ );
10595
+ TooltipContent.displayName = "TooltipContent";
10580
10596
 
10581
10597
  Object.defineProperty(exports, "Box", {
10582
10598
  enumerable: true,
@@ -10952,6 +10968,9 @@ exports.Text = Text3;
10952
10968
  exports.TextLink = TextLink;
10953
10969
  exports.Textarea = Textarea;
10954
10970
  exports.TimePicker = TimePicker;
10971
+ exports.Tooltip = Tooltip;
10972
+ exports.TooltipContent = TooltipContent;
10973
+ exports.TooltipTrigger = TooltipTrigger;
10955
10974
  exports.TravelTag = TravelTag;
10956
10975
  exports.VyLogo = VyLogo;
10957
10976
  exports.VyLogoPride = VyLogoPride;