@vygruppen/spor-react 13.1.3 → 13.2.0

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/dist/index.cjs CHANGED
@@ -3757,31 +3757,69 @@ var CheckboxGroup = (props) => {
3757
3757
  const { direction = "row", children, gap = 1, ...rest } = props;
3758
3758
  return /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxGroup, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { direction, gap, children }) });
3759
3759
  };
3760
+ var ChoiceChipContext = React13.createContext({
3761
+ variant: "core",
3762
+ size: "sm"
3763
+ });
3764
+ var useChoiceChipContext = () => React13.useContext(ChoiceChipContext);
3760
3765
  var ChoiceChip = ({
3761
3766
  ref,
3762
- children,
3763
- icon,
3764
- onCheckedChange,
3765
- ...rootProps
3767
+ ...props
3766
3768
  }) => {
3767
- return /* @__PURE__ */ jsxRuntime.jsx(
3768
- react.CheckboxCard.Root,
3769
+ const { children, inputProps, icon, variant, size, css, ...rest } = props;
3770
+ const { variant: contextVariant, size: contextSize } = useChoiceChipContext();
3771
+ const uniqueId = React13.useId();
3772
+ const itemControlId = `radio-card-item-control-${uniqueId}`;
3773
+ const inputHasAriaLabel = (inputProps == null ? void 0 : inputProps["aria-labelledby"]) || (inputProps == null ? void 0 : inputProps["aria-label"]);
3774
+ const finalVariant = variant ?? contextVariant;
3775
+ const finalSize = size ?? contextSize;
3776
+ const recipe = react.useSlotRecipe({ key: "choiceChip" });
3777
+ const styles = recipe({
3778
+ variant: finalVariant,
3779
+ size: finalSize
3780
+ });
3781
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Item, { ...rest, css: { ...css, ...styles.item }, children: [
3782
+ /* @__PURE__ */ jsxRuntime.jsx(
3783
+ react.RadioCard.ItemHiddenInput,
3784
+ {
3785
+ "aria-labelledby": inputHasAriaLabel ? inputProps == null ? void 0 : inputProps["aria-labelledby"] : itemControlId,
3786
+ ref,
3787
+ ...inputProps
3788
+ }
3789
+ ),
3790
+ /* @__PURE__ */ jsxRuntime.jsx(
3791
+ react.RadioCard.ItemControl,
3792
+ {
3793
+ id: itemControlId,
3794
+ "aria-hidden": true,
3795
+ css: styles.itemControl,
3796
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.RadioCard.ItemContext, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(react.RadioCard.Label, { css: styles.label, children: [
3797
+ checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
3798
+ children
3799
+ ] }) })
3800
+ }
3801
+ )
3802
+ ] });
3803
+ };
3804
+ var ChoiceChipGroup = ({
3805
+ ref,
3806
+ ...props
3807
+ }) => {
3808
+ const { children, variant, size, css, ...rest } = props;
3809
+ const recipe = react.useSlotRecipe({ key: "choiceChip" });
3810
+ const styles = recipe({ variant, size });
3811
+ return /* @__PURE__ */ jsxRuntime.jsx(ChoiceChipContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsxRuntime.jsx(
3812
+ react.RadioCard.Root,
3769
3813
  {
3770
- ...rootProps,
3771
- ...onCheckedChange && {
3772
- onCheckedChange: (details) => onCheckedChange(!!details.checked)
3773
- },
3774
- children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3775
- /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
3776
- /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
3777
- icon && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { width: "24px", children: checked ? icon.checked : icon.default }),
3778
- rootProps.chipType !== "icon" && children,
3779
- rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
3780
- ] }) }) })
3781
- ] }) })
3814
+ css: { ...styles.root, ...css },
3815
+ ref,
3816
+ variant,
3817
+ ...rest,
3818
+ children
3782
3819
  }
3783
- );
3820
+ ) });
3784
3821
  };
3822
+ var ChoiceChipLabel = react.RadioCard.Label;
3785
3823
  var Popover = ({
3786
3824
  ref,
3787
3825
  children,
@@ -4038,6 +4076,31 @@ var FieldsetLegend = react.Fieldset.Legend;
4038
4076
  var FieldsetContent = react.Fieldset.Content;
4039
4077
  var FieldsetHelperText = react.Fieldset.HelperText;
4040
4078
  var FieldsetErrorText = react.Fieldset.ErrorText;
4079
+ var FilterChip = ({
4080
+ ref,
4081
+ children,
4082
+ icon,
4083
+ onCheckedChange,
4084
+ ...rootProps
4085
+ }) => {
4086
+ return /* @__PURE__ */ jsxRuntime.jsx(
4087
+ react.CheckboxCard.Root,
4088
+ {
4089
+ ...rootProps,
4090
+ ...onCheckedChange && {
4091
+ onCheckedChange: (details) => onCheckedChange(!!details.checked)
4092
+ },
4093
+ children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Context, { children: ({ checked }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4094
+ /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.HiddenInput, { ref }),
4095
+ /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.CheckboxCard.Content, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.CheckboxCard.Label, { children: [
4096
+ checked ? (icon == null ? void 0 : icon.checked) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.checked }) : (icon == null ? void 0 : icon.default) && /* @__PURE__ */ jsxRuntime.jsx(react.Span, { children: icon.default }),
4097
+ rootProps.chipType !== "icon" && children,
4098
+ rootProps.chipType === "filter" && checked && /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {})
4099
+ ] }) }) })
4100
+ ] }) })
4101
+ }
4102
+ );
4103
+ };
4041
4104
  var InputChip = ({
4042
4105
  startIcon,
4043
4106
  endIcon,
@@ -4600,7 +4663,7 @@ var PasswordInput = ({
4600
4663
  Input,
4601
4664
  {
4602
4665
  ref,
4603
- startElement: startElement && startElement,
4666
+ startElement,
4604
4667
  label,
4605
4668
  type: visible ? "text" : "password",
4606
4669
  endElement: /* @__PURE__ */ jsxRuntime.jsx(
@@ -6395,7 +6458,16 @@ var PopoverTrigger = ({
6395
6458
  ...props
6396
6459
  }) => {
6397
6460
  const isStringChild = typeof children === "string";
6398
- return /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Trigger, { ...props, ref, asChild: !isStringChild, children });
6461
+ return /* @__PURE__ */ jsxRuntime.jsx(
6462
+ react.Popover.Trigger,
6463
+ {
6464
+ ref,
6465
+ asChild: !isStringChild,
6466
+ width: isStringChild ? void 0 : "fit-content",
6467
+ ...props,
6468
+ children: isStringChild ? children : /* @__PURE__ */ jsxRuntime.jsx(react.Box, { children })
6469
+ }
6470
+ );
6399
6471
  };
6400
6472
  var PopoverContent = ({
6401
6473
  ref,
@@ -6413,14 +6485,14 @@ var PopoverContent = ({
6413
6485
  }, [showCloseButton, open]);
6414
6486
  return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Popover.Content, { ref, ...props, children: [
6415
6487
  /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Arrow, {}),
6488
+ /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children }),
6416
6489
  showCloseButton && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
6417
6490
  CloseButton,
6418
6491
  {
6419
6492
  className: colorMode === "dark" ? "light" : "dark",
6420
6493
  ref: closeButtonRef
6421
6494
  }
6422
- ) }) }),
6423
- /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { ...props, children })
6495
+ ) }) })
6424
6496
  ] }) }) });
6425
6497
  };
6426
6498
  var ProgressDot = ({ isActive }) => {
@@ -7823,7 +7895,8 @@ var radioCardAnatomy = anatomy.createAnatomy("radio-card").parts(
7823
7895
  "label",
7824
7896
  "itemText",
7825
7897
  "itemDescription",
7826
- "itemContent"
7898
+ "itemContent",
7899
+ "itemControl"
7827
7900
  );
7828
7901
  var radioAnatomy = anatomy.createAnatomy("radio").parts(
7829
7902
  "root",
@@ -8604,38 +8677,30 @@ var checkboxSlotRecipe = react.defineSlotRecipe({
8604
8677
  }
8605
8678
  });
8606
8679
  var choiceChipSlotRecipe = react.defineSlotRecipe({
8607
- slots: checkboxCardAnatomy.keys(),
8608
- className: "chakra-checkbox-card",
8680
+ className: "spor-choice-chip",
8681
+ slots: radioCardAnatomy.keys(),
8609
8682
  base: {
8610
8683
  root: {
8611
- display: "inline-flex",
8612
- alignItems: "center",
8613
- boxAlign: "center",
8614
- cursor: "pointer",
8684
+ display: "flex",
8685
+ flexDirection: "row",
8686
+ gap: "1",
8687
+ width: "fit-content"
8688
+ },
8689
+ item: {
8690
+ display: "flex-inline",
8615
8691
  transitionProperty: "all",
8616
- borderRadius: "xl",
8617
8692
  transitionDuration: "fast",
8618
- paddingInlineStart: "2",
8619
- paddingInlineEnd: "2",
8620
- outline: "1px solid",
8621
- outlineColor: "outline.core",
8622
8693
  _checked: {
8623
- backgroundColor: "surface.brand",
8624
- borderRadius: "sm",
8625
8694
  outline: "none",
8626
- color: "text.brand",
8695
+ _focusVisible: {
8696
+ outline: "2px solid",
8697
+ outlineColor: "outline.focus",
8698
+ outlineOffset: "1px"
8699
+ },
8627
8700
  _hover: {
8628
- backgroundColor: "surface.brand.hover",
8629
- _active: {
8630
- backgroundColor: "surface.brand.active"
8631
- }
8701
+ outline: "none"
8632
8702
  }
8633
8703
  },
8634
- _focusVisible: {
8635
- outline: "2px solid",
8636
- outlineColor: "outline.focus",
8637
- outlineOffset: "1px"
8638
- },
8639
8704
  _disabled: {
8640
8705
  pointerEvents: "none",
8641
8706
  boxShadow: "none",
@@ -8660,32 +8725,44 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8660
8725
  }
8661
8726
  }
8662
8727
  },
8728
+ itemControl: {
8729
+ display: "flex",
8730
+ alignItems: "center",
8731
+ justifyContent: "center"
8732
+ },
8663
8733
  label: {
8664
8734
  display: "flex",
8665
8735
  alignItems: "center",
8736
+ justifyContent: "center",
8666
8737
  gap: "1"
8667
8738
  }
8668
8739
  },
8669
8740
  variants: {
8670
8741
  size: {
8671
8742
  xs: {
8672
- root: {
8743
+ item: {
8744
+ borderRadius: "xl",
8673
8745
  _checked: {
8674
- borderRadius: "0.563rem"
8675
- },
8746
+ borderRadius: "9px"
8747
+ }
8748
+ },
8749
+ itemControl: {
8676
8750
  height: 5,
8677
8751
  paddingX: 1.5
8678
8752
  },
8679
8753
  label: {
8680
8754
  fontSize: { base: "mobile.sm", sm: "desktop.sm" },
8681
- fontWeight: "medium"
8755
+ fontWeight: "regular"
8682
8756
  }
8683
8757
  },
8684
8758
  sm: {
8685
- root: {
8759
+ item: {
8760
+ borderRadius: "xl",
8686
8761
  _checked: {
8687
8762
  borderRadius: "sm"
8688
- },
8763
+ }
8764
+ },
8765
+ itemControl: {
8689
8766
  height: 6,
8690
8767
  paddingX: 2
8691
8768
  },
@@ -8695,10 +8772,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8695
8772
  }
8696
8773
  },
8697
8774
  md: {
8698
- root: {
8775
+ item: {
8776
+ borderRadius: "xl",
8699
8777
  _checked: {
8700
8778
  borderRadius: "sm"
8701
- },
8779
+ }
8780
+ },
8781
+ itemControl: {
8702
8782
  height: 7,
8703
8783
  paddingX: 2
8704
8784
  },
@@ -8708,10 +8788,13 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8708
8788
  }
8709
8789
  },
8710
8790
  lg: {
8711
- root: {
8791
+ item: {
8792
+ borderRadius: "xl",
8712
8793
  _checked: {
8713
8794
  borderRadius: "md"
8714
- },
8795
+ }
8796
+ },
8797
+ itemControl: {
8715
8798
  height: 8,
8716
8799
  paddingX: 3
8717
8800
  },
@@ -8723,9 +8806,18 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8723
8806
  },
8724
8807
  variant: {
8725
8808
  core: {
8726
- root: {
8727
- color: "text.core",
8728
- outlineColor: "outline.core",
8809
+ itemControl: {
8810
+ _checked: {
8811
+ backgroundColor: "surface.brand",
8812
+ color: "text.brand",
8813
+ outline: "none",
8814
+ _hover: {
8815
+ backgroundColor: "surface.brand.hover",
8816
+ _active: {
8817
+ backgroundColor: "surface.brand.active"
8818
+ }
8819
+ }
8820
+ },
8729
8821
  _hover: {
8730
8822
  outline: "2px solid",
8731
8823
  outlineColor: "outline.core.hover",
@@ -8738,10 +8830,22 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8738
8830
  }
8739
8831
  },
8740
8832
  accent: {
8741
- root: {
8833
+ itemControl: {
8742
8834
  backgroundColor: "surface.accent",
8743
8835
  color: "text.accent",
8744
8836
  outline: "none",
8837
+ border: "none",
8838
+ _checked: {
8839
+ backgroundColor: "surface.brand",
8840
+ color: "text.brand",
8841
+ outline: "none",
8842
+ _hover: {
8843
+ backgroundColor: "surface.brand.hover",
8844
+ _active: {
8845
+ backgroundColor: "surface.brand.active"
8846
+ }
8847
+ }
8848
+ },
8745
8849
  _hover: {
8746
8850
  backgroundColor: "surface.accent.hover",
8747
8851
  _active: {
@@ -8751,12 +8855,23 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8751
8855
  }
8752
8856
  },
8753
8857
  floating: {
8754
- root: {
8858
+ itemControl: {
8755
8859
  backgroundColor: "surface.floating",
8756
8860
  outline: "1px solid",
8757
8861
  outlineColor: "outline.floating",
8758
8862
  color: "text.floating",
8759
8863
  boxShadow: "sm",
8864
+ _checked: {
8865
+ backgroundColor: "surface.brand",
8866
+ color: "text.brand",
8867
+ outline: "none",
8868
+ _hover: {
8869
+ backgroundColor: "surface.brand.hover",
8870
+ _active: {
8871
+ backgroundColor: "surface.brand.active"
8872
+ }
8873
+ }
8874
+ },
8760
8875
  _hover: {
8761
8876
  backgroundColor: "surface.floating.hover",
8762
8877
  outline: "1px solid",
@@ -8769,17 +8884,11 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
8769
8884
  }
8770
8885
  }
8771
8886
  }
8772
- },
8773
- chipType: {
8774
- icon: {},
8775
- choice: {},
8776
- filter: {}
8777
8887
  }
8778
8888
  },
8779
8889
  defaultVariants: {
8780
8890
  size: "sm",
8781
- variant: "core",
8782
- chipType: "choice"
8891
+ variant: "core"
8783
8892
  }
8784
8893
  });
8785
8894
  var collapsibleSlotRecipe = react.defineSlotRecipe({
@@ -9501,6 +9610,186 @@ var fieldSlotRecipe = react.defineSlotRecipe({
9501
9610
  }
9502
9611
  }
9503
9612
  });
9613
+ var filterChipSlotRecipe = react.defineSlotRecipe({
9614
+ slots: checkboxCardAnatomy.keys(),
9615
+ className: "chakra-checkbox-card",
9616
+ base: {
9617
+ root: {
9618
+ display: "inline-flex",
9619
+ alignItems: "center",
9620
+ boxAlign: "center",
9621
+ cursor: "pointer",
9622
+ transitionProperty: "all",
9623
+ borderRadius: "xl",
9624
+ transitionDuration: "fast",
9625
+ paddingInlineStart: "2",
9626
+ paddingInlineEnd: "2",
9627
+ outline: "1px solid",
9628
+ outlineColor: "outline.core",
9629
+ _checked: {
9630
+ backgroundColor: "surface.brand",
9631
+ borderRadius: "sm",
9632
+ outline: "none",
9633
+ color: "text.brand",
9634
+ _hover: {
9635
+ outline: "none",
9636
+ backgroundColor: "surface.brand.hover",
9637
+ _active: {
9638
+ backgroundColor: "surface.brand.active"
9639
+ }
9640
+ }
9641
+ },
9642
+ _focusVisible: {
9643
+ outline: "2px solid",
9644
+ outlineColor: "outline.focus",
9645
+ outlineOffset: "1px"
9646
+ },
9647
+ _disabled: {
9648
+ pointerEvents: "none",
9649
+ boxShadow: "none",
9650
+ backgroundColor: "surface.disabled",
9651
+ color: "text.disabled",
9652
+ outline: "none",
9653
+ _hover: {
9654
+ backgroundColor: "surface.disabled",
9655
+ boxShadow: "none",
9656
+ color: "text.disabled"
9657
+ },
9658
+ _checked: {
9659
+ cursor: "not-allowed",
9660
+ boxShadow: "none",
9661
+ color: "text.disabled",
9662
+ backgroundColor: "surface.disabled",
9663
+ _hover: {
9664
+ backgroundColor: "surface.disabled",
9665
+ boxShadow: "none",
9666
+ color: "text.disabled"
9667
+ }
9668
+ }
9669
+ }
9670
+ },
9671
+ label: {
9672
+ display: "flex",
9673
+ alignItems: "center",
9674
+ gap: "1"
9675
+ }
9676
+ },
9677
+ variants: {
9678
+ size: {
9679
+ xs: {
9680
+ root: {
9681
+ _checked: {
9682
+ borderRadius: "0.563rem"
9683
+ },
9684
+ height: 5,
9685
+ paddingX: 1.5
9686
+ },
9687
+ label: {
9688
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
9689
+ fontWeight: "medium"
9690
+ }
9691
+ },
9692
+ sm: {
9693
+ root: {
9694
+ _checked: {
9695
+ borderRadius: "sm"
9696
+ },
9697
+ height: 6,
9698
+ paddingX: 2
9699
+ },
9700
+ label: {
9701
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
9702
+ fontWeight: "bold"
9703
+ }
9704
+ },
9705
+ md: {
9706
+ root: {
9707
+ _checked: {
9708
+ borderRadius: "sm"
9709
+ },
9710
+ height: 7,
9711
+ paddingX: 2
9712
+ },
9713
+ label: {
9714
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
9715
+ fontWeight: "bold"
9716
+ }
9717
+ },
9718
+ lg: {
9719
+ root: {
9720
+ _checked: {
9721
+ borderRadius: "md"
9722
+ },
9723
+ height: 8,
9724
+ paddingX: 3
9725
+ },
9726
+ label: {
9727
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
9728
+ fontWeight: "bold"
9729
+ }
9730
+ }
9731
+ },
9732
+ variant: {
9733
+ core: {
9734
+ root: {
9735
+ color: "text.core",
9736
+ outlineColor: "outline.core",
9737
+ _hover: {
9738
+ outline: "2px solid",
9739
+ outlineColor: "outline.core.hover",
9740
+ _active: {
9741
+ outline: "1px solid",
9742
+ outlineColor: "outline.core",
9743
+ backgroundColor: "surface.core.active"
9744
+ }
9745
+ }
9746
+ }
9747
+ },
9748
+ accent: {
9749
+ root: {
9750
+ backgroundColor: "surface.accent",
9751
+ color: "text.accent",
9752
+ outline: "none",
9753
+ _hover: {
9754
+ backgroundColor: "surface.accent.hover",
9755
+ _active: {
9756
+ backgroundColor: "surface.accent.active"
9757
+ }
9758
+ }
9759
+ }
9760
+ },
9761
+ floating: {
9762
+ root: {
9763
+ backgroundColor: "surface.floating",
9764
+ outline: "1px solid",
9765
+ outlineColor: "outline.floating",
9766
+ color: "text.floating",
9767
+ boxShadow: "sm",
9768
+ _hover: {
9769
+ backgroundColor: "surface.floating.hover",
9770
+ outline: "1px solid",
9771
+ outlineColor: "outline.floating.hover",
9772
+ _active: {
9773
+ backgroundColor: "surface.floating.active",
9774
+ outline: "1px solid",
9775
+ outlineColor: "outline.floating"
9776
+ }
9777
+ }
9778
+ }
9779
+ }
9780
+ },
9781
+ chipType: {
9782
+ icon: {},
9783
+ choice: {},
9784
+ filter: {}
9785
+ }
9786
+ },
9787
+ defaultVariants: {
9788
+ size: "sm",
9789
+ variant: "core",
9790
+ chipType: "choice"
9791
+ }
9792
+ });
9504
9793
  var floatingActionButtonSlotRecipe = react.defineSlotRecipe({
9505
9794
  slots: floatingActionButtonAnatomy.keys(),
9506
9795
  className: "spor-floating-action-button",
@@ -10380,6 +10669,7 @@ var menuSlotRecipe = react.defineSlotRecipe({
10380
10669
  display: "flex",
10381
10670
  justifyContent: "space-between",
10382
10671
  gap: 1.5,
10672
+ cursor: "pointer",
10383
10673
  _hover: {
10384
10674
  backgroundColor: "surface.accent.hover"
10385
10675
  },
@@ -10407,19 +10697,22 @@ var menuSlotRecipe = react.defineSlotRecipe({
10407
10697
  radioItem: {
10408
10698
  display: "flex",
10409
10699
  justifyContent: "space-between",
10410
- gap: 2
10700
+ gap: 2,
10701
+ cursor: "pointer"
10411
10702
  },
10412
10703
  triggerItem: {
10413
10704
  display: "flex",
10414
10705
  justifyContent: "space-between",
10415
10706
  gap: 1.5,
10416
- alignItems: "center"
10707
+ alignItems: "center",
10708
+ cursor: "pointer"
10417
10709
  },
10418
10710
  checkboxItem: {
10419
10711
  display: "flex",
10420
10712
  gap: 2,
10421
10713
  alignItems: "center",
10422
- width: "full"
10714
+ width: "full",
10715
+ cursor: "pointer"
10423
10716
  }
10424
10717
  },
10425
10718
  variants: {
@@ -10617,7 +10910,7 @@ var popoverSlotRecipe = react.defineSlotRecipe({
10617
10910
  content: {
10618
10911
  position: "relative",
10619
10912
  display: "flex",
10620
- flexDirection: "row-reverse",
10913
+ flexDirection: "row",
10621
10914
  color: "text.brand",
10622
10915
  gap: "0.625rem",
10623
10916
  padding: "0.563rem 0.75rem",
@@ -11402,8 +11695,7 @@ var tableSlotRecipe = react.defineSlotRecipe({
11402
11695
  cell: {
11403
11696
  ...numericStyles,
11404
11697
  paddingX: 1.5,
11405
- paddingY: 1,
11406
- width: "100%"
11698
+ paddingY: 1
11407
11699
  },
11408
11700
  footer: {
11409
11701
  fontWeight: "medium"
@@ -11810,11 +12102,12 @@ var slotRecipes = {
11810
12102
  tabs: tabsSlotRecipe,
11811
12103
  travelTag: travelTagSlotRecipe,
11812
12104
  toast: toastSlotRecipe,
11813
- checkboxCard: choiceChipSlotRecipe,
12105
+ checkboxCard: filterChipSlotRecipe,
11814
12106
  collapsible: collapsibleSlotRecipe,
11815
12107
  tooltip: popoverSlotRecipe,
11816
12108
  tag: inputChipSlotRecipe,
11817
- menu: menuSlotRecipe
12109
+ menu: menuSlotRecipe,
12110
+ choiceChip: choiceChipSlotRecipe
11818
12111
  };
11819
12112
  var animations = react.defineTokens.animations({
11820
12113
  spin: {
@@ -12648,16 +12941,17 @@ var TooltipTrigger = ({
12648
12941
  ...props
12649
12942
  }) => {
12650
12943
  const isStringChild = typeof children === "string";
12651
- return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ...props, ref, asChild: !isStringChild, children });
12944
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Trigger, { ref, asChild: !isStringChild, ...props, children: isStringChild ? children : /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width: "fit-content", children }) });
12652
12945
  };
12653
12946
  var TooltipContent = ({
12654
12947
  ref,
12655
12948
  children,
12949
+ showArrow = false,
12656
12950
  ...props
12657
12951
  }) => {
12658
12952
  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 })
12953
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.Arrow, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Tooltip.ArrowTip, {}) }),
12954
+ children
12661
12955
  ] }) }) });
12662
12956
  };
12663
12957
 
@@ -12937,6 +13231,8 @@ exports.CargonetLogo = CargonetLogo;
12937
13231
  exports.Checkbox = Checkbox;
12938
13232
  exports.CheckboxGroup = CheckboxGroup;
12939
13233
  exports.ChoiceChip = ChoiceChip;
13234
+ exports.ChoiceChipGroup = ChoiceChipGroup;
13235
+ exports.ChoiceChipLabel = ChoiceChipLabel;
12940
13236
  exports.Clipboard = Clipboard;
12941
13237
  exports.ClipboardButton = ClipboardButton;
12942
13238
  exports.CloseButton = CloseButton;
@@ -12988,6 +13284,7 @@ exports.FieldsetContent = FieldsetContent;
12988
13284
  exports.FieldsetErrorText = FieldsetErrorText;
12989
13285
  exports.FieldsetHelperText = FieldsetHelperText;
12990
13286
  exports.FieldsetLegend = FieldsetLegend;
13287
+ exports.FilterChip = FilterChip;
12991
13288
  exports.FloatingActionButton = FloatingActionButton;
12992
13289
  exports.Heading = Heading;
12993
13290
  exports.IconButton = IconButton;