@vygruppen/spor-react 12.8.2 → 12.8.5

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.2 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.8.5 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.85 KB
14
+ ESM dist/index.mjs 293.38 KB
15
15
  ESM dist/icons/index.mjs 110.00 B
16
- ESM dist/index.mjs.map 625.25 KB
17
16
  ESM dist/icons/index.mjs.map 157.00 B
18
- ESM ⚡️ Build success in 3028ms
19
- CJS dist/index.cjs 312.53 KB
17
+ ESM dist/index.mjs.map 628.34 KB
18
+ ESM ⚡️ Build success in 3041ms
19
+ CJS dist/index.cjs 314.21 KB
20
20
  CJS dist/icons/index.cjs 381.00 B
21
21
  CJS dist/icons/index.cjs.map 157.00 B
22
- CJS dist/index.cjs.map 625.25 KB
23
- CJS ⚡️ Build success in 3030ms
24
- DTS ⚡️ Build success in 28779ms
22
+ CJS dist/index.cjs.map 628.34 KB
23
+ CJS ⚡️ Build success in 3040ms
24
+ DTS ⚡️ Build success in 31071ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 155.95 KB
26
+ DTS dist/index.d.ts 156.34 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 155.95 KB
28
+ DTS dist/index.d.cts 156.34 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.8.2 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.8.5 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,23 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - e8d7d4d: Fix: Combobox, make sure combobox-props do not get spread to input.
8
+
9
+ ## 12.8.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 736a159: Fix Broken ARIA reference in combobox.
14
+
15
+ ## 12.8.3
16
+
17
+ ### Patch Changes
18
+
19
+ - d76d180: Add new component, Tooltip, that looks similar to Popover, but is triggered on hover.
20
+
3
21
  ## 12.8.2
4
22
 
5
23
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2616,6 +2616,17 @@ var Combobox = (props) => {
2616
2616
  inputRef: externalInputRef,
2617
2617
  children,
2618
2618
  variant,
2619
+ allowsEmptyCollection,
2620
+ onSelectionChange,
2621
+ inputValue,
2622
+ onInputChange,
2623
+ menuTrigger,
2624
+ allowsCustomValue,
2625
+ onFocusChange,
2626
+ defaultInputValue,
2627
+ defaultItems,
2628
+ defaultSelectedKey,
2629
+ onOpenChange,
2619
2630
  ...restProps
2620
2631
  } = props;
2621
2632
  const { contains } = reactAria.useFilter({ sensitivity: "base" });
@@ -2623,11 +2634,22 @@ var Combobox = (props) => {
2623
2634
  const inputRef = externalInputRef ?? fallbackInputRef;
2624
2635
  const listBoxRef = React27.useRef(null);
2625
2636
  const popoverRef = React27.useRef(null);
2626
- const listboxId = `${React27.useId()}-listbox`;
2637
+ const listboxId = React27.useId();
2627
2638
  const inputWidth = useInputWidth(inputRef);
2628
2639
  const state = reactStately.useComboBoxState({
2629
2640
  defaultFilter: contains,
2630
2641
  shouldCloseOnBlur: true,
2642
+ allowsEmptyCollection,
2643
+ onSelectionChange,
2644
+ inputValue,
2645
+ onInputChange,
2646
+ menuTrigger,
2647
+ allowsCustomValue,
2648
+ onFocusChange,
2649
+ defaultInputValue,
2650
+ defaultItems,
2651
+ defaultSelectedKey,
2652
+ onOpenChange,
2631
2653
  ...props
2632
2654
  });
2633
2655
  const comboBoxProps = {
@@ -2644,22 +2666,29 @@ var Combobox = (props) => {
2644
2666
  paddingTop,
2645
2667
  paddingLeft,
2646
2668
  paddingX,
2647
- paddingY,
2648
- leftIcon
2669
+ paddingY
2649
2670
  };
2650
- const {
2651
- inputProps: { ...inputProps },
2652
- listBoxProps
2653
- } = reactAria.useComboBox(
2671
+ const { inputProps, listBoxProps } = reactAria.useComboBox(
2654
2672
  {
2655
2673
  ...props,
2656
2674
  inputRef,
2657
2675
  listBoxRef,
2658
2676
  popoverRef,
2659
- label
2677
+ label,
2678
+ onSelectionChange,
2679
+ inputValue,
2680
+ onInputChange,
2681
+ menuTrigger,
2682
+ allowsCustomValue,
2683
+ onFocusChange,
2684
+ defaultInputValue,
2685
+ defaultItems,
2686
+ defaultSelectedKey,
2687
+ onOpenChange
2660
2688
  },
2661
2689
  state
2662
2690
  );
2691
+ const { "aria-labelledby": _, id: __, ...filteredInputProps } = inputProps;
2663
2692
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2664
2693
  /* @__PURE__ */ jsxRuntime.jsx(
2665
2694
  Input,
@@ -2682,7 +2711,7 @@ var Combobox = (props) => {
2682
2711
  borderBottomLeftRadius: state.isOpen && !loading ? 0 : borderBottomLeftRadius,
2683
2712
  borderBottomRightRadius: state.isOpen && !loading ? 0 : borderBottomRightRadius,
2684
2713
  _active: { backgroundColor: "core.surface.active" },
2685
- ...inputProps,
2714
+ ...filteredInputProps,
2686
2715
  startElement: leftIcon,
2687
2716
  endElement: loading ? /* @__PURE__ */ jsxRuntime.jsx(
2688
2717
  ColorSpinner,
@@ -8551,6 +8580,7 @@ var popoverSlotRecipe = react.defineSlotRecipe({
8551
8580
  position: "relative",
8552
8581
  display: "flex",
8553
8582
  flexDirection: "row-reverse",
8583
+ color: "text.inverted",
8554
8584
  gap: "0.625rem",
8555
8585
  padding: "0.563rem 0.75rem",
8556
8586
  textStyle: "sm",
@@ -9760,7 +9790,8 @@ var slotRecipes = {
9760
9790
  travelTag: travelTagSlotRecipe,
9761
9791
  toast: toastSlotRecipe,
9762
9792
  checkboxCard: choiceChipSlotRecipe,
9763
- collapsible: collapsibleSlotRecipe
9793
+ collapsible: collapsibleSlotRecipe,
9794
+ tooltip: popoverSlotRecipe
9764
9795
  };
9765
9796
  var animations = react.defineTokens.animations({
9766
9797
  spin: {
@@ -10576,6 +10607,21 @@ var themes = {
10576
10607
  )
10577
10608
  };
10578
10609
  var system = themes["VyDigital" /* VyDigital */];
10610
+ var Tooltip = react.Tooltip.Root;
10611
+ var TooltipTrigger = React27.forwardRef(({ children, ...props }, ref) => {
10612
+ const isStringChild = typeof children === "string";
10613
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ...props, ref, asChild: !isStringChild, children });
10614
+ });
10615
+ TooltipTrigger.displayName = "TooltipTrigger";
10616
+ var TooltipContent = React27.forwardRef(
10617
+ ({ children, ...props }, ref) => {
10618
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Tooltip.Content, { ref, ...props, children: [
10619
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, {}),
10620
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Content, { ...props, children })
10621
+ ] }) }) });
10622
+ }
10623
+ );
10624
+ TooltipContent.displayName = "TooltipContent";
10579
10625
 
10580
10626
  Object.defineProperty(exports, "Box", {
10581
10627
  enumerable: true,
@@ -10951,6 +10997,9 @@ exports.Text = Text3;
10951
10997
  exports.TextLink = TextLink;
10952
10998
  exports.Textarea = Textarea;
10953
10999
  exports.TimePicker = TimePicker;
11000
+ exports.Tooltip = Tooltip;
11001
+ exports.TooltipContent = TooltipContent;
11002
+ exports.TooltipTrigger = TooltipTrigger;
10954
11003
  exports.TravelTag = TravelTag;
10955
11004
  exports.VyLogo = VyLogo;
10956
11005
  exports.VyLogoPride = VyLogoPride;