@telepix-lab/telepix-ui 0.3.7 → 0.4.1

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.
@@ -200,7 +200,7 @@ var VisuallyHidden = React.forwardRef(
200
200
  }
201
201
  );
202
202
  VisuallyHidden.displayName = NAME$1;
203
- var Root$3 = VisuallyHidden;
203
+ var Root$4 = VisuallyHidden;
204
204
 
205
205
  // packages/react/context/src/create-context.tsx
206
206
  function createContext2(rootComponentName, defaultContext) {
@@ -1962,7 +1962,7 @@ var DialogTrigger$1 = React.forwardRef(
1962
1962
  "aria-haspopup": "dialog",
1963
1963
  "aria-expanded": context.open,
1964
1964
  "aria-controls": context.contentId,
1965
- "data-state": getState$3(context.open),
1965
+ "data-state": getState$4(context.open),
1966
1966
  ...triggerProps,
1967
1967
  ref: composedTriggerRef,
1968
1968
  onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
@@ -2002,7 +2002,7 @@ var DialogOverlayImpl = React.forwardRef(
2002
2002
  /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot$3, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
2003
2003
  Primitive.div,
2004
2004
  {
2005
- "data-state": getState$3(context.open),
2005
+ "data-state": getState$4(context.open),
2006
2006
  ...overlayProps,
2007
2007
  ref: forwardedRef,
2008
2008
  style: { pointerEvents: "auto", ...overlayProps.style }
@@ -2118,7 +2118,7 @@ var DialogContentImpl = React.forwardRef(
2118
2118
  id: context.contentId,
2119
2119
  "aria-describedby": context.descriptionId,
2120
2120
  "aria-labelledby": context.titleId,
2121
- "data-state": getState$3(context.open),
2121
+ "data-state": getState$4(context.open),
2122
2122
  ...contentProps,
2123
2123
  ref: composedRefs,
2124
2124
  onDismiss: () => context.onOpenChange(false)
@@ -2168,7 +2168,7 @@ var DialogClose$1 = React.forwardRef(
2168
2168
  }
2169
2169
  );
2170
2170
  DialogClose$1.displayName = CLOSE_NAME$1;
2171
- function getState$3(open) {
2171
+ function getState$4(open) {
2172
2172
  return open ? "open" : "closed";
2173
2173
  }
2174
2174
  var TITLE_WARNING_NAME = "DialogTitleWarning";
@@ -2205,7 +2205,7 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
2205
2205
  }, [MESSAGE, contentRef, descriptionId]);
2206
2206
  return null;
2207
2207
  };
2208
- var Root$2 = Dialog$1;
2208
+ var Root$3 = Dialog$1;
2209
2209
  var Trigger$4 = DialogTrigger$1;
2210
2210
  var Portal$3 = DialogPortal$1;
2211
2211
  var Overlay = DialogOverlay;
@@ -2356,7 +2356,7 @@ var CheckboxTrigger = React.forwardRef(
2356
2356
  role: "checkbox",
2357
2357
  "aria-checked": isIndeterminate$1(checked) ? "mixed" : checked,
2358
2358
  "aria-required": required,
2359
- "data-state": getState$2(checked),
2359
+ "data-state": getState$3(checked),
2360
2360
  "data-disabled": disabled ? "" : void 0,
2361
2361
  disabled,
2362
2362
  value,
@@ -2436,7 +2436,7 @@ var CheckboxIndicator = React.forwardRef(
2436
2436
  children: /* @__PURE__ */ jsx(
2437
2437
  Primitive.span,
2438
2438
  {
2439
- "data-state": getState$2(context.checked),
2439
+ "data-state": getState$3(context.checked),
2440
2440
  "data-disabled": context.disabled ? "" : void 0,
2441
2441
  ...indicatorProps,
2442
2442
  ref: forwardedRef,
@@ -2448,7 +2448,7 @@ var CheckboxIndicator = React.forwardRef(
2448
2448
  }
2449
2449
  );
2450
2450
  CheckboxIndicator.displayName = INDICATOR_NAME$2;
2451
- var BUBBLE_INPUT_NAME$2 = "CheckboxBubbleInput";
2451
+ var BUBBLE_INPUT_NAME$3 = "CheckboxBubbleInput";
2452
2452
  var CheckboxBubbleInput = React.forwardRef(
2453
2453
  ({ __scopeCheckbox, ...props }, forwardedRef) => {
2454
2454
  const {
@@ -2463,7 +2463,7 @@ var CheckboxBubbleInput = React.forwardRef(
2463
2463
  form,
2464
2464
  bubbleInput,
2465
2465
  setBubbleInput
2466
- } = useCheckboxContext(BUBBLE_INPUT_NAME$2, __scopeCheckbox);
2466
+ } = useCheckboxContext(BUBBLE_INPUT_NAME$3, __scopeCheckbox);
2467
2467
  const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
2468
2468
  const prevChecked = usePrevious(checked);
2469
2469
  const controlSize = useSize(control);
@@ -2515,14 +2515,14 @@ var CheckboxBubbleInput = React.forwardRef(
2515
2515
  );
2516
2516
  }
2517
2517
  );
2518
- CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME$2;
2518
+ CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME$3;
2519
2519
  function isFunction(value) {
2520
2520
  return typeof value === "function";
2521
2521
  }
2522
2522
  function isIndeterminate$1(checked) {
2523
2523
  return checked === "indeterminate";
2524
2524
  }
2525
- function getState$2(checked) {
2525
+ function getState$3(checked) {
2526
2526
  return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
2527
2527
  }
2528
2528
 
@@ -4712,7 +4712,7 @@ var Arrow$1 = React.forwardRef((props, forwardedRef) => {
4712
4712
  );
4713
4713
  });
4714
4714
  Arrow$1.displayName = NAME;
4715
- var Root$1 = Arrow$1;
4715
+ var Root$2 = Arrow$1;
4716
4716
 
4717
4717
  var POPPER_NAME = "Popper";
4718
4718
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
@@ -4920,7 +4920,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
4920
4920
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
4921
4921
  },
4922
4922
  children: /* @__PURE__ */ jsx(
4923
- Root$1,
4923
+ Root$2,
4924
4924
  {
4925
4925
  ...arrowProps,
4926
4926
  ref: forwardedRef,
@@ -5186,7 +5186,7 @@ function focusFirst$1(candidates, preventScroll = false) {
5186
5186
  function wrapArray$2(array, startIndex) {
5187
5187
  return array.map((_, index) => array[(startIndex + index) % array.length]);
5188
5188
  }
5189
- var Root = RovingFocusGroup;
5189
+ var Root$1 = RovingFocusGroup;
5190
5190
  var Item$1 = RovingFocusGroupItem;
5191
5191
 
5192
5192
  var SELECTION_KEYS$1 = ["Enter", " "];
@@ -5437,7 +5437,7 @@ var MenuContentImpl = React.forwardRef(
5437
5437
  onInteractOutside,
5438
5438
  onDismiss,
5439
5439
  children: /* @__PURE__ */ jsx(
5440
- Root,
5440
+ Root$1,
5441
5441
  {
5442
5442
  asChild: true,
5443
5443
  ...rovingFocusGroupScope,
@@ -6355,7 +6355,7 @@ var PopoverTrigger = React.forwardRef(
6355
6355
  "aria-haspopup": "dialog",
6356
6356
  "aria-expanded": context.open,
6357
6357
  "aria-controls": context.contentId,
6358
- "data-state": getState$1(context.open),
6358
+ "data-state": getState$2(context.open),
6359
6359
  ...triggerProps,
6360
6360
  ref: composedTriggerRef,
6361
6361
  onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
@@ -6498,7 +6498,7 @@ var PopoverContentImpl = React.forwardRef(
6498
6498
  children: /* @__PURE__ */ jsx(
6499
6499
  Content,
6500
6500
  {
6501
- "data-state": getState$1(context.open),
6501
+ "data-state": getState$2(context.open),
6502
6502
  role: "dialog",
6503
6503
  id: context.contentId,
6504
6504
  ...popperScope,
@@ -6549,7 +6549,7 @@ var PopoverArrow = React.forwardRef(
6549
6549
  }
6550
6550
  );
6551
6551
  PopoverArrow.displayName = ARROW_NAME$2;
6552
- function getState$1(open) {
6552
+ function getState$2(open) {
6553
6553
  return open ? "open" : "closed";
6554
6554
  }
6555
6555
  var Root2$2 = Popover;
@@ -6583,7 +6583,7 @@ var Radio = React.forwardRef(
6583
6583
  type: "button",
6584
6584
  role: "radio",
6585
6585
  "aria-checked": checked,
6586
- "data-state": getState(checked),
6586
+ "data-state": getState$1(checked),
6587
6587
  "data-disabled": disabled ? "" : void 0,
6588
6588
  disabled,
6589
6589
  value,
@@ -6624,7 +6624,7 @@ var RadioIndicator = React.forwardRef(
6624
6624
  return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(
6625
6625
  Primitive.span,
6626
6626
  {
6627
- "data-state": getState(context.checked),
6627
+ "data-state": getState$1(context.checked),
6628
6628
  "data-disabled": context.disabled ? "" : void 0,
6629
6629
  ...indicatorProps,
6630
6630
  ref: forwardedRef
@@ -6633,7 +6633,7 @@ var RadioIndicator = React.forwardRef(
6633
6633
  }
6634
6634
  );
6635
6635
  RadioIndicator.displayName = INDICATOR_NAME;
6636
- var BUBBLE_INPUT_NAME$1 = "RadioBubbleInput";
6636
+ var BUBBLE_INPUT_NAME$2 = "RadioBubbleInput";
6637
6637
  var RadioBubbleInput = React.forwardRef(
6638
6638
  ({
6639
6639
  __scopeRadio,
@@ -6682,8 +6682,8 @@ var RadioBubbleInput = React.forwardRef(
6682
6682
  );
6683
6683
  }
6684
6684
  );
6685
- RadioBubbleInput.displayName = BUBBLE_INPUT_NAME$1;
6686
- function getState(checked) {
6685
+ RadioBubbleInput.displayName = BUBBLE_INPUT_NAME$2;
6686
+ function getState$1(checked) {
6687
6687
  return checked ? "checked" : "unchecked";
6688
6688
  }
6689
6689
  var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
@@ -6728,7 +6728,7 @@ var RadioGroup$1 = React.forwardRef(
6728
6728
  value,
6729
6729
  onValueChange: setValue,
6730
6730
  children: /* @__PURE__ */ jsx(
6731
- Root,
6731
+ Root$1,
6732
6732
  {
6733
6733
  asChild: true,
6734
6734
  ...rovingFocusGroupScope,
@@ -7861,7 +7861,7 @@ var SelectArrow = React.forwardRef(
7861
7861
  }
7862
7862
  );
7863
7863
  SelectArrow.displayName = ARROW_NAME$1;
7864
- var BUBBLE_INPUT_NAME = "SelectBubbleInput";
7864
+ var BUBBLE_INPUT_NAME$1 = "SelectBubbleInput";
7865
7865
  var SelectBubbleInput = React.forwardRef(
7866
7866
  ({ __scopeSelect, value, ...props }, forwardedRef) => {
7867
7867
  const ref = React.useRef(null);
@@ -7893,7 +7893,7 @@ var SelectBubbleInput = React.forwardRef(
7893
7893
  );
7894
7894
  }
7895
7895
  );
7896
- SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
7896
+ SelectBubbleInput.displayName = BUBBLE_INPUT_NAME$1;
7897
7897
  function shouldShowPlaceholder(value) {
7898
7898
  return value === "" || value === void 0;
7899
7899
  }
@@ -7951,6 +7951,147 @@ var ItemText = SelectItemText;
7951
7951
  var ItemIndicator = SelectItemIndicator;
7952
7952
  var Separator = SelectSeparator$1;
7953
7953
 
7954
+ var SWITCH_NAME = "Switch";
7955
+ var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
7956
+ var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
7957
+ var Switch$1 = React.forwardRef(
7958
+ (props, forwardedRef) => {
7959
+ const {
7960
+ __scopeSwitch,
7961
+ name,
7962
+ checked: checkedProp,
7963
+ defaultChecked,
7964
+ required,
7965
+ disabled,
7966
+ value = "on",
7967
+ onCheckedChange,
7968
+ form,
7969
+ ...switchProps
7970
+ } = props;
7971
+ const [button, setButton] = React.useState(null);
7972
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
7973
+ const hasConsumerStoppedPropagationRef = React.useRef(false);
7974
+ const isFormControl = button ? form || !!button.closest("form") : true;
7975
+ const [checked, setChecked] = useControllableState({
7976
+ prop: checkedProp,
7977
+ defaultProp: defaultChecked ?? false,
7978
+ onChange: onCheckedChange,
7979
+ caller: SWITCH_NAME
7980
+ });
7981
+ return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled, children: [
7982
+ /* @__PURE__ */ jsx(
7983
+ Primitive.button,
7984
+ {
7985
+ type: "button",
7986
+ role: "switch",
7987
+ "aria-checked": checked,
7988
+ "aria-required": required,
7989
+ "data-state": getState(checked),
7990
+ "data-disabled": disabled ? "" : void 0,
7991
+ disabled,
7992
+ value,
7993
+ ...switchProps,
7994
+ ref: composedRefs,
7995
+ onClick: composeEventHandlers(props.onClick, (event) => {
7996
+ setChecked((prevChecked) => !prevChecked);
7997
+ if (isFormControl) {
7998
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
7999
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
8000
+ }
8001
+ })
8002
+ }
8003
+ ),
8004
+ isFormControl && /* @__PURE__ */ jsx(
8005
+ SwitchBubbleInput,
8006
+ {
8007
+ control: button,
8008
+ bubbles: !hasConsumerStoppedPropagationRef.current,
8009
+ name,
8010
+ value,
8011
+ checked,
8012
+ required,
8013
+ disabled,
8014
+ form,
8015
+ style: { transform: "translateX(-100%)" }
8016
+ }
8017
+ )
8018
+ ] });
8019
+ }
8020
+ );
8021
+ Switch$1.displayName = SWITCH_NAME;
8022
+ var THUMB_NAME = "SwitchThumb";
8023
+ var SwitchThumb = React.forwardRef(
8024
+ (props, forwardedRef) => {
8025
+ const { __scopeSwitch, ...thumbProps } = props;
8026
+ const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
8027
+ return /* @__PURE__ */ jsx(
8028
+ Primitive.span,
8029
+ {
8030
+ "data-state": getState(context.checked),
8031
+ "data-disabled": context.disabled ? "" : void 0,
8032
+ ...thumbProps,
8033
+ ref: forwardedRef
8034
+ }
8035
+ );
8036
+ }
8037
+ );
8038
+ SwitchThumb.displayName = THUMB_NAME;
8039
+ var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
8040
+ var SwitchBubbleInput = React.forwardRef(
8041
+ ({
8042
+ __scopeSwitch,
8043
+ control,
8044
+ checked,
8045
+ bubbles = true,
8046
+ ...props
8047
+ }, forwardedRef) => {
8048
+ const ref = React.useRef(null);
8049
+ const composedRefs = useComposedRefs(ref, forwardedRef);
8050
+ const prevChecked = usePrevious(checked);
8051
+ const controlSize = useSize(control);
8052
+ React.useEffect(() => {
8053
+ const input = ref.current;
8054
+ if (!input) return;
8055
+ const inputProto = window.HTMLInputElement.prototype;
8056
+ const descriptor = Object.getOwnPropertyDescriptor(
8057
+ inputProto,
8058
+ "checked"
8059
+ );
8060
+ const setChecked = descriptor.set;
8061
+ if (prevChecked !== checked && setChecked) {
8062
+ const event = new Event("click", { bubbles });
8063
+ setChecked.call(input, checked);
8064
+ input.dispatchEvent(event);
8065
+ }
8066
+ }, [prevChecked, checked, bubbles]);
8067
+ return /* @__PURE__ */ jsx(
8068
+ "input",
8069
+ {
8070
+ type: "checkbox",
8071
+ "aria-hidden": true,
8072
+ defaultChecked: checked,
8073
+ ...props,
8074
+ tabIndex: -1,
8075
+ ref: composedRefs,
8076
+ style: {
8077
+ ...props.style,
8078
+ ...controlSize,
8079
+ position: "absolute",
8080
+ pointerEvents: "none",
8081
+ opacity: 0,
8082
+ margin: 0
8083
+ }
8084
+ }
8085
+ );
8086
+ }
8087
+ );
8088
+ SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
8089
+ function getState(checked) {
8090
+ return checked ? "checked" : "unchecked";
8091
+ }
8092
+ var Root = Switch$1;
8093
+ var Thumb = SwitchThumb;
8094
+
7954
8095
  var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
7955
8096
  createPopperScope
7956
8097
  ]);
@@ -8282,7 +8423,7 @@ var TooltipContentImpl = React.forwardRef(
8282
8423
  },
8283
8424
  children: [
8284
8425
  /* @__PURE__ */ jsx(Slottable, { children }),
8285
- /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$3, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
8426
+ /* @__PURE__ */ jsx(VisuallyHiddenContentContextProvider, { scope: __scopeTooltip, isInside: true, children: /* @__PURE__ */ jsx(Root$4, { id: context.contentId, role: "tooltip", children: ariaLabel || children }) })
8286
8427
  ]
8287
8428
  }
8288
8429
  )
@@ -8441,6 +8582,28 @@ function _objectWithoutPropertiesLoose(source, excluded) {
8441
8582
  return target;
8442
8583
  }
8443
8584
 
8585
+ var _excluded$F = ["color"];
8586
+ var BoxIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
8587
+ var _ref$color = _ref.color,
8588
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
8589
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
8590
+
8591
+ return createElement("svg", Object.assign({
8592
+ width: "15",
8593
+ height: "15",
8594
+ viewBox: "0 0 15 15",
8595
+ fill: "none",
8596
+ xmlns: "http://www.w3.org/2000/svg"
8597
+ }, props, {
8598
+ ref: forwardedRef
8599
+ }), createElement("path", {
8600
+ d: "M12.5 2H2.5C2.22386 2 2 2.22386 2 2.5V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V2.5C13 2.22386 12.7761 2 12.5 2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",
8601
+ fill: color,
8602
+ fillRule: "evenodd",
8603
+ clipRule: "evenodd"
8604
+ }));
8605
+ });
8606
+
8444
8607
  var _excluded$N = ["color"];
8445
8608
  var CaretDownIcon = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
8446
8609
  var _ref$color = _ref.color,
@@ -12002,13 +12165,13 @@ const createLucideIcon = (iconName, iconNode) => {
12002
12165
  */
12003
12166
 
12004
12167
 
12005
- const __iconNode$6 = [
12168
+ const __iconNode$4 = [
12006
12169
  ["path", { d: "M8 2v4", key: "1cmpym" }],
12007
12170
  ["path", { d: "M16 2v4", key: "4m81vk" }],
12008
12171
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
12009
12172
  ["path", { d: "M3 10h18", key: "8toen8" }]
12010
12173
  ];
12011
- const Calendar$1 = createLucideIcon("calendar", __iconNode$6);
12174
+ const Calendar$1 = createLucideIcon("calendar", __iconNode$4);
12012
12175
 
12013
12176
  /**
12014
12177
  * @license lucide-react v0.513.0 - ISC
@@ -12018,8 +12181,8 @@ const Calendar$1 = createLucideIcon("calendar", __iconNode$6);
12018
12181
  */
12019
12182
 
12020
12183
 
12021
- const __iconNode$5 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
12022
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$5);
12184
+ const __iconNode$3 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
12185
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$3);
12023
12186
 
12024
12187
  /**
12025
12188
  * @license lucide-react v0.513.0 - ISC
@@ -12029,8 +12192,8 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$5);
12029
12192
  */
12030
12193
 
12031
12194
 
12032
- const __iconNode$4 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
12033
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode$4);
12195
+ const __iconNode$2 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
12196
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$2);
12034
12197
 
12035
12198
  /**
12036
12199
  * @license lucide-react v0.513.0 - ISC
@@ -12040,38 +12203,11 @@ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$4);
12040
12203
  */
12041
12204
 
12042
12205
 
12043
- const __iconNode$3 = [
12044
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
12045
- ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
12046
- ];
12047
- const SquareCheck = createLucideIcon("square-check", __iconNode$3);
12048
-
12049
- /**
12050
- * @license lucide-react v0.513.0 - ISC
12051
- *
12052
- * This source code is licensed under the ISC license.
12053
- * See the LICENSE file in the root directory of this source tree.
12054
- */
12055
-
12056
-
12057
- const __iconNode$2 = [
12206
+ const __iconNode$1 = [
12058
12207
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
12059
12208
  ["path", { d: "M8 12h8", key: "1wcyev" }]
12060
12209
  ];
12061
- const SquareMinus = createLucideIcon("square-minus", __iconNode$2);
12062
-
12063
- /**
12064
- * @license lucide-react v0.513.0 - ISC
12065
- *
12066
- * This source code is licensed under the ISC license.
12067
- * See the LICENSE file in the root directory of this source tree.
12068
- */
12069
-
12070
-
12071
- const __iconNode$1 = [
12072
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
12073
- ];
12074
- const Square = createLucideIcon("square", __iconNode$1);
12210
+ const SquareMinus = createLucideIcon("square-minus", __iconNode$1);
12075
12211
 
12076
12212
  /**
12077
12213
  * @license lucide-react v0.513.0 - ISC
@@ -12109,15 +12245,14 @@ const Checkbox = forwardRef(({ label, labelClassName, wrapperClassName, ...rest
12109
12245
  setChecked(isChecked ?? defaultChecked);
12110
12246
  }, [isChecked, defaultChecked]);
12111
12247
  const randomId = useId$1();
12112
- const checkboxIconClass = cn("size-4 fill-transparent stroke-comp-mono-default", checked && "stroke-comp-mono-selected", disabled && "stroke-comp-disabled cursor-default");
12113
12248
  const renderCheckboxIcon = (checked, disabled) => {
12114
12249
  if (disabled) {
12115
- return jsx(SquareMinus, { className: checkboxIconClass });
12250
+ return (jsx(SquareMinus, { className: "size-full fill-transparent text-comp-disabled cursor-default" }));
12116
12251
  }
12117
12252
  else if (checked) {
12118
- return jsx(SquareCheck, { className: checkboxIconClass });
12253
+ return (jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "size-full fill-transparent text-comp-mono-selected", children: jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 2.1821C1 1.52924 1.52925 1 2.1821 1H13.6879C14.3408 1 14.87 1.52925 14.87 2.1821V13.6879C14.87 14.3408 14.3408 14.87 13.6879 14.87H2.1821C1.52924 14.87 1 14.3408 1 13.6879V2.1821ZM11.3429 4.58303C11.6121 4.76774 11.6805 5.13566 11.4958 5.4048L7.38613 11.393C7.28127 11.5457 7.11082 11.6405 6.9257 11.6489C6.74058 11.6574 6.56222 11.5785 6.44391 11.4359L4.0914 8.59999C3.88299 8.34876 3.9177 7.97614 4.16894 7.76772C4.42018 7.55931 4.79279 7.59403 5.00121 7.84526L6.85419 10.079L10.5211 4.73591C10.7059 4.46676 11.0738 4.39832 11.3429 4.58303Z", fill: "currentColor" }) }));
12119
12254
  }
12120
- return jsx(Square, { className: checkboxIconClass });
12255
+ return (jsx(BoxIcon, { className: "size-full fill-transparent text-comp-mono-default" }));
12121
12256
  };
12122
12257
  const onCheckedChange = (value) => {
12123
12258
  setChecked(value);
@@ -12186,14 +12321,14 @@ const CardFooter = forwardRef(({ className, ...rest }, ref) => {
12186
12321
  * </DialogContent>
12187
12322
  * </Dialog>
12188
12323
  */
12189
- const Dialog = Root$2;
12324
+ const Dialog = Root$3;
12190
12325
  const DialogTrigger = (props) => {
12191
12326
  return (jsx(Trigger$4, { className: props.className, ...props, "data-slot": "dialog-trigger", asChild: true, children: props.children }));
12192
12327
  };
12193
12328
  const DialogPortal = Portal$3;
12194
12329
  const DialogClose = Close;
12195
12330
  const DialogContent = ({ className, children, ...rest }) => {
12196
- return (jsxs(Portal$3, { children: [jsx(Overlay, { className: "fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in" }), jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsx(Root$3, {}) }), jsx(Description, {}), jsx(Card, { children: children })] })] }));
12331
+ return (jsxs(Portal$3, { children: [jsx(Overlay, { className: "fixed top-0 bottom-0 left-0 right-0 bg-pure-black-50 inset-0 z-[1000] animate-fade-in" }), jsxs(Content$1, { className: cn("fixed top-1/2 left-1/2 z-[1001] transform -translate-x-1/2 -translate-y-1/2 animate-content-fade-in", className), ...rest, children: [jsx(Title, { "data-slot": "dialog-title", ...rest, children: jsx(Root$4, {}) }), jsx(Description, {}), jsx(Card, { children: children })] })] }));
12197
12332
  };
12198
12333
  const DialogDescription = (props) => {
12199
12334
  return jsx(CardBody, { ...props, children: props.children });
@@ -12739,7 +12874,7 @@ var dayjs_min = {exports: {}};
12739
12874
  var dayjs_minExports = dayjs_min.exports;
12740
12875
  var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
12741
12876
 
12742
- const DatePicker = ({ size = "regular", placeholder = "Pick a date", format = "YYYY. MM. DD.", value, mode = "single", onChange, isInstantClose = false, open: openProp, onOpenChange: onOpenChangeProp, disabled, ...rest }) => {
12877
+ const DatePicker = ({ size = "regular", placeholder = "Pick a date", format = "YYYY. MM. DD.", value, mode = "single", onChange, isInstantClose = false, open: openProp, onOpenChange: onOpenChangeProp, disabled, popoverContentClassName, ...rest }) => {
12743
12878
  const [inputValue, setInputValue] = useState(value);
12744
12879
  const [open, setOpen] = useState(openProp || false);
12745
12880
  const handleSelect = (date) => {
@@ -12779,7 +12914,7 @@ const DatePicker = ({ size = "regular", placeholder = "Pick a date", format = "Y
12779
12914
  }
12780
12915
  return placeholder ?? "";
12781
12916
  };
12782
- return (jsxs(Root2$2, { open: open, onOpenChange: handleOpenChange, children: [jsx(Trigger$2, { asChild: true, children: jsx(Button, { size: size, fullWidth: true, variant: "outline", leftIcon: jsx(Calendar$1, { size: 20 }), className: "justify-start", disabled: disabled, children: getDateToFormatString(inputValue) }) }), jsx(Content2$2, { sideOffset: 10, align: "start", ...rest, children: mode === "single" ? (jsx(Calendar, { mode: "single", ...rest, selected: inputValue, onSelect: handleSelect })) : mode === "multiple" ? (jsx(Calendar, { mode: "multiple", ...rest, selected: Array.isArray(inputValue) ? inputValue : [], onSelect: handleSelect })) : (jsx(Calendar, { mode: "range", ...rest, selected: inputValue, onSelect: handleSelect })) })] }));
12917
+ return (jsxs(Root2$2, { open: open, onOpenChange: handleOpenChange, children: [jsx(Trigger$2, { asChild: true, children: jsx(Button, { size: size, fullWidth: true, variant: "outline", leftIcon: jsx(Calendar$1, { size: 20 }), className: "justify-start", disabled: disabled, children: getDateToFormatString(inputValue) }) }), jsx(Content2$2, { sideOffset: 10, align: "start", className: cn("z-10", popoverContentClassName), ...rest, children: mode === "single" ? (jsx(Calendar, { mode: "single", ...rest, selected: inputValue, onSelect: handleSelect })) : mode === "multiple" ? (jsx(Calendar, { mode: "multiple", ...rest, selected: Array.isArray(inputValue) ? inputValue : [], onSelect: handleSelect })) : (jsx(Calendar, { mode: "range", ...rest, selected: inputValue, onSelect: handleSelect })) })] }));
12783
12918
  };
12784
12919
 
12785
12920
  const ContextMenu = Root2$3;
@@ -12923,4 +13058,233 @@ const Autocomplete = ({ placeholder, data, value, displayValue, onSelect, onChan
12923
13058
  : undefined }), showSuggestions && (jsx("ul", { id: "autocomplete-suggestions", role: "listbox", className: cn("absolute top-calc(100%-10px) left-0 z-[20] p-2 bg-page-l1 shadow-medium border border-border-overlay rounded-lg w-[calc(100%-16px)]", contentClassName), children: filteredResults.length > 0 ? (filteredResults.map((item, index) => (jsx(AutocompleteContentItem, { item: item, index: index, highlightedIndex: highlightedIndex, onClick: handleItemClick, displayValue: displayValue, inputValue: inputValue, className: itemClassName }, displayValue(item) + index)))) : (jsx("li", { "data-no-results": true, className: "rounded-sm p-2 bg-fill-mono-default text-comp-mono-default text-body leading-body-compact font-medium list-none text-center", children: noResultsMessage })) }))] }));
12924
13059
  };
12925
13060
 
12926
- export { Autocomplete, Calendar, Checkbox, ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemIndicator, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTrigger, HORIZONTAL_TAB_SIZES, HorizontalTab, HorizontalTabs, InteractiveListItem, InteractiveListItemActions, InteractiveListItemContent, InteractiveListItemIcon, MULTIPLE_SELECT_SIZES, ModeTab, ModeTabs, MultipleSelect, MultipleSelectContent, MultipleSelectTrigger, MultipleSelectValue, RadioGroup, RadioItem, SELECT_TRIGGER_SIZES, SELECT_TRIGGER_VARIANTS, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, TOOLTIP_SHORT_SIZES, TOOLTIP_SHORT_VARIANTS, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tooltip, TooltipArrow, TooltipContent, TooltipDescription, TooltipFooter, TooltipHeader, TooltipTrigger, VERTICAL_MENU_SIZES, VERTICAL_MENU_VARIANTS, VerticalMenu, VerticalMenus };
13061
+ const SWITCH_VARIANTS = {
13062
+ FILLED: "filled",
13063
+ OUTLINED: "outlined",
13064
+ };
13065
+ const SWITCH_SIZES = {
13066
+ SMALL: "small",
13067
+ REGULAR: "regular",
13068
+ };
13069
+
13070
+ const TEXT_VARIANTS = {
13071
+ BOLD3XLARGEBOLD: "bold3XLargeBold",
13072
+ BOLD2XLARGEBOLDCOMPACT: "bold2XLargeBoldCompact",
13073
+ BOLD2XLARGEBOLD: "bold2XLargeBold",
13074
+ BOLDXLARGEBOLDCOMPACT: "boldXLargeBoldCompact",
13075
+ BOLDXLARGEBOLD: "boldXLargeBold",
13076
+ BOLDLARGEBOLDCOMPACT: "boldLargeBoldCompact",
13077
+ BOLDLARGEBOLD: "boldLargeBold",
13078
+ BOLDBASEBOLDCOMPACT: "boldBaseBoldCompact",
13079
+ BOLDBASEBOLD: "boldBaseBold",
13080
+ BOLDBODYBOLDCOMPACT: "boldBodyBoldCompact",
13081
+ BOLDBODYBOLD: "boldBodyBold",
13082
+ BOLDLABELBOLDCOMPACT: "boldLabelBoldCompact",
13083
+ BOLDLABELBOLD: "boldLabelBold",
13084
+ BOLDXSMALLBOLD: "boldXSmallBold",
13085
+ SEMIBOLDBASESEMIBOLDCOMPACT: "semiBoldBaseSemiBoldCompact",
13086
+ SEMIBOLDBASESEMIBOLD: "semiBoldBaseSemiBold",
13087
+ SEMIBOLDBODYSEMIBOLDCOMPACT: "semiBoldBodySemiBoldCompact",
13088
+ SEMIBOLDBODYSEMIBOLD: "semiBoldBodySemiBold",
13089
+ SEMIBOLDLABELSEMIBOLDCOMPACT: "semiBoldLabelSemiBoldCompact",
13090
+ MED3XLARGEMED: "med3XLargeMed",
13091
+ MEDXLARGEMED: "medXLargeMed",
13092
+ MEDLARGEMED: "medLargeMed",
13093
+ MEDBASEMEDCOMPACT: "medBaseMedCompact",
13094
+ MEDBASEMED: "medBaseMed",
13095
+ MEDBODYMEDCOMPACT: "medBodyMedCompact",
13096
+ MEDBODYMED: "medBodyMed",
13097
+ MEDLABELMEDCOMPACT: "medLabelMedCompact",
13098
+ MEDLABELMED: "medLabelMed",
13099
+ MEDXSMALLMED: "medXSmallMed",
13100
+ REGULAR3XLARGE: "regular3XLarge",
13101
+ REGULAR2XLARGE: "regular2XLarge",
13102
+ REGULARXLARGE: "regularXLarge",
13103
+ REGULARLARGECOMPACT: "regularLargeCompact",
13104
+ REGULARLARGE: "regularLarge",
13105
+ REGULARBASECOMPACT: "regularBaseCompact",
13106
+ REGULARBASE: "regularBase",
13107
+ REGULARBODYCOMPACT: "regularBodyCompact",
13108
+ REGULARBODY: "regularBody",
13109
+ REGULARLABELCOMPACT: "regularLabelCompact",
13110
+ REGULARLABEL: "regularLabel",
13111
+ REGULARXSMALL: "regularXSmall",
13112
+ };
13113
+
13114
+ const Text = ({ children, className, size, weight, align, variant = "regularBase", color, as: Component = "p", }) => {
13115
+ const getFontWeightClass = (weight) => {
13116
+ switch (weight) {
13117
+ case "bold":
13118
+ return "font-bold";
13119
+ case "semibold":
13120
+ return "font-semibold";
13121
+ case "medium":
13122
+ return "font-medium";
13123
+ case "regular":
13124
+ return "font-normal";
13125
+ case "light":
13126
+ return "font-light";
13127
+ case "extralight":
13128
+ return "font-extralight";
13129
+ case "thin":
13130
+ return "font-thin";
13131
+ default:
13132
+ return "font-normal";
13133
+ }
13134
+ };
13135
+ const getSizeClass = (size) => {
13136
+ switch (size) {
13137
+ case "xxxl":
13138
+ return "text-xxxl";
13139
+ case "xxl":
13140
+ return "text-xxl";
13141
+ case "xl":
13142
+ return "text-xl";
13143
+ case "large":
13144
+ return "text-large";
13145
+ case "base":
13146
+ return "text-base";
13147
+ case "body":
13148
+ return "text-body";
13149
+ case "label":
13150
+ return "text-label";
13151
+ case "xsmall":
13152
+ return "text-xsmall";
13153
+ default:
13154
+ return "text-base";
13155
+ }
13156
+ };
13157
+ const getAlignClass = (align) => {
13158
+ switch (align) {
13159
+ case "left":
13160
+ return "text-left";
13161
+ case "center":
13162
+ return "text-center";
13163
+ case "right":
13164
+ return "text-right";
13165
+ case "justify":
13166
+ return "text-justify";
13167
+ default:
13168
+ return "text-left";
13169
+ }
13170
+ };
13171
+ const getVariantClass = (variant) => {
13172
+ switch (variant) {
13173
+ case TEXT_VARIANTS.BOLD3XLARGEBOLD:
13174
+ return "text-xxxl font-bold leading-xxxl";
13175
+ case TEXT_VARIANTS.BOLD2XLARGEBOLDCOMPACT:
13176
+ return "text-xxl font-bold leading-xxl-compact";
13177
+ case TEXT_VARIANTS.BOLD2XLARGEBOLD:
13178
+ return "text-xxl font-bold leading-xxl";
13179
+ case TEXT_VARIANTS.BOLDXLARGEBOLDCOMPACT:
13180
+ return "text-xl font-bold leading-xl-compact";
13181
+ case TEXT_VARIANTS.BOLDXLARGEBOLD:
13182
+ return "text-xl font-bold leading-xl";
13183
+ case TEXT_VARIANTS.BOLDLARGEBOLDCOMPACT:
13184
+ return "text-large font-bold leading-large-compact";
13185
+ case TEXT_VARIANTS.BOLDLARGEBOLD:
13186
+ return "text-large font-bold leading-large";
13187
+ case TEXT_VARIANTS.BOLDBASEBOLDCOMPACT:
13188
+ return "text-base font-bold leading-base-compact";
13189
+ case TEXT_VARIANTS.BOLDBASEBOLD:
13190
+ return "text-base font-bold leading-base";
13191
+ case TEXT_VARIANTS.BOLDBODYBOLDCOMPACT:
13192
+ return "text-body font-bold leading-body-compact";
13193
+ case TEXT_VARIANTS.BOLDBODYBOLD:
13194
+ return "text-body font-bold leading-body";
13195
+ case TEXT_VARIANTS.BOLDLABELBOLDCOMPACT:
13196
+ return "text-label font-bold leading-label-compact";
13197
+ case TEXT_VARIANTS.BOLDLABELBOLD:
13198
+ return "text-label font-bold leading-label";
13199
+ case TEXT_VARIANTS.BOLDXSMALLBOLD:
13200
+ return "text-xsmall font-bold leading-xsmall";
13201
+ case TEXT_VARIANTS.SEMIBOLDBASESEMIBOLDCOMPACT:
13202
+ return "text-base font-semibold leading-base-compact";
13203
+ case TEXT_VARIANTS.SEMIBOLDBASESEMIBOLD:
13204
+ return "text-base font-semibold leading-base";
13205
+ case TEXT_VARIANTS.SEMIBOLDBODYSEMIBOLDCOMPACT:
13206
+ return "text-body font-semibold leading-body-compact";
13207
+ case TEXT_VARIANTS.SEMIBOLDBODYSEMIBOLD:
13208
+ return "text-body font-semibold leading-body";
13209
+ case TEXT_VARIANTS.SEMIBOLDLABELSEMIBOLDCOMPACT:
13210
+ return "text-label font-semibold leading-label-compact";
13211
+ case TEXT_VARIANTS.MED3XLARGEMED:
13212
+ return "text-xxxl font-medium leading-xxxl";
13213
+ case TEXT_VARIANTS.MEDXLARGEMED:
13214
+ return "text-xl font-medium leading-xl";
13215
+ case TEXT_VARIANTS.MEDLARGEMED:
13216
+ return "text-large font-medium leading-large";
13217
+ case TEXT_VARIANTS.MEDBASEMEDCOMPACT:
13218
+ return "text-base font-medium leading-base-compact";
13219
+ case TEXT_VARIANTS.MEDBASEMED:
13220
+ return "text-base font-medium leading-base";
13221
+ case TEXT_VARIANTS.MEDBODYMEDCOMPACT:
13222
+ return "text-body font-medium leading-body-compact";
13223
+ case TEXT_VARIANTS.MEDBODYMED:
13224
+ return "text-body font-medium leading-body";
13225
+ case TEXT_VARIANTS.MEDLABELMEDCOMPACT:
13226
+ return "text-label font-medium leading-label-compact";
13227
+ case TEXT_VARIANTS.MEDLABELMED:
13228
+ return "text-label font-medium leading-label";
13229
+ case TEXT_VARIANTS.MEDXSMALLMED:
13230
+ return "text-xsmall font-medium leading-xsmall";
13231
+ case TEXT_VARIANTS.REGULAR3XLARGE:
13232
+ return "text-xxxl font-normal leading-xxxl";
13233
+ case TEXT_VARIANTS.REGULAR2XLARGE:
13234
+ return "text-xxl font-normal leading-xxl";
13235
+ case TEXT_VARIANTS.REGULARXLARGE:
13236
+ return "text-xl font-normal leading-xl";
13237
+ case TEXT_VARIANTS.REGULARLARGE:
13238
+ return "text-large font-normal leading-large";
13239
+ case TEXT_VARIANTS.REGULARLARGECOMPACT:
13240
+ return "text-large font-normal leading-large-compact";
13241
+ case TEXT_VARIANTS.REGULARBASE:
13242
+ return "text-base font-normal leading-base";
13243
+ case TEXT_VARIANTS.REGULARBASECOMPACT:
13244
+ return "text-base font-normal leading-base-compact";
13245
+ case TEXT_VARIANTS.REGULARBODY:
13246
+ return "text-body font-normal leading-body";
13247
+ case TEXT_VARIANTS.REGULARBODYCOMPACT:
13248
+ return "text-body font-normal leading-body-compact";
13249
+ case TEXT_VARIANTS.REGULARLABEL:
13250
+ return "text-label font-normal leading-label";
13251
+ case TEXT_VARIANTS.REGULARLABELCOMPACT:
13252
+ return "text-label font-normal leading-label-compact";
13253
+ case TEXT_VARIANTS.REGULARXSMALL:
13254
+ return "text-xsmall font-normal leading-xsmall";
13255
+ default:
13256
+ return "text-base font-normal leading-base";
13257
+ }
13258
+ };
13259
+ return (jsx(Component, { style: color ? { color } : undefined, className: cn("m-0 p-0 text-comp-mono-default", getVariantClass(variant), size && getSizeClass(size), weight && getFontWeightClass(weight), align && getAlignClass(align), className), children: children }));
13260
+ };
13261
+ Text.displayName = "Text";
13262
+
13263
+ const FilledSwitch = (props) => {
13264
+ const { size, checked, thumbClassName, ...rest } = props;
13265
+ return (jsxs(Root, { className: cn("flex items-center gap-1 bg-page-l2 rounded-lg relative", size === SWITCH_SIZES.REGULAR && "p-1.5 w-[68px] h-9", size === SWITCH_SIZES.SMALL && "p-1 w-[59px] h-7"), checked: checked, ...rest, children: [jsx(Thumb, { className: cn("rounded-sm absolute transition-all duration-100", size === SWITCH_SIZES.REGULAR &&
13266
+ "size-6 left-1.5 data-[state=checked]:left-[37px]", size === SWITCH_SIZES.SMALL &&
13267
+ "size-5 left-1 data-[state=checked]:left-[35px]", checked ? "bg-fill-accent-selected" : "bg-fill-mono-subtle-selected", thumbClassName) }), checked ? (jsx(Text, { variant: "medLabelMedCompact", className: "text-comp-mono-selected py-1 px-[5px] text-left w-full", as: "div", children: "ON" })) : (jsx(Text, { variant: "medLabelMedCompact", className: "text-comp-mono-subtle-default py-1 px-0.5 text-right w-full", as: "div", children: "OFF" }))] }));
13268
+ };
13269
+ const OutlinedSwitch = (props) => {
13270
+ const { size, checked, thumbClassName, ...rest } = props;
13271
+ return (jsxs(Root, { className: cn("group border shadow-inner p-1 relative rounded-[20px]", checked
13272
+ ? "bg-fill-accent-default hover:bg-fill-accent-hovered border-transparent"
13273
+ : "bg-fill-mono-default hover:bg-fill-mono-hovered border-border-divider hover:border-border-bound", size === SWITCH_SIZES.REGULAR && "w-[74px] h-9", size === SWITCH_SIZES.SMALL && "w-[60px] h-7"), checked: checked, ...rest, children: [jsx(Thumb, { className: cn("absolute transition-all duration-100 top-[3px] rounded-full left-1 bg-border-divider data-[state=checked]:bg-comp-accent-default shadow-basic group-hover:bg-border-bound data-[state=checked]:group-hover:bg-comp-accent-hovered", size === SWITCH_SIZES.REGULAR &&
13274
+ "size-7 data-[state=checked]:left-[42px] group-hover:shadow-large", size === SWITCH_SIZES.SMALL &&
13275
+ "size-5 data-[state=checked]:left-[36px] group-hover:shadow-basic", thumbClassName) }), checked ? (jsx(Text, { variant: size === SWITCH_SIZES.REGULAR
13276
+ ? "boldBodyBoldCompact"
13277
+ : "boldLabelBoldCompact", className: "text-comp-accent-default pl-2 text-left group-hover:text-comp-accent-hovered", as: "div", children: "ON" })) : (jsx(Text, { variant: size === SWITCH_SIZES.REGULAR
13278
+ ? "medBodyMedCompact"
13279
+ : "medLabelMedCompact", className: cn("text-comp-mono-subtle-default text-right group-hover:text-comp-mono-subtle-hovered", size === SWITCH_SIZES.REGULAR && "pr-1.5", size === SWITCH_SIZES.SMALL && "pr-[3px]"), as: "div", children: "OFF" }))] }));
13280
+ };
13281
+ const Switch = (props) => {
13282
+ const [checked, setChecked] = useState(props.checked);
13283
+ const handleCheckedChange = (value) => {
13284
+ setChecked(value);
13285
+ props.onCheckedChange?.(value);
13286
+ };
13287
+ return (jsxs(Fragment, { children: [props.variant === SWITCH_VARIANTS.FILLED && (jsx(FilledSwitch, { checked: checked, onCheckedChange: handleCheckedChange, ...props })), props.variant === SWITCH_VARIANTS.OUTLINED && (jsx(OutlinedSwitch, { checked: checked, onCheckedChange: handleCheckedChange, ...props }))] }));
13288
+ };
13289
+
13290
+ export { Autocomplete, Calendar, Checkbox, ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemIndicator, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTrigger, HORIZONTAL_TAB_SIZES, HorizontalTab, HorizontalTabs, InteractiveListItem, InteractiveListItemActions, InteractiveListItemContent, InteractiveListItemIcon, MULTIPLE_SELECT_SIZES, ModeTab, ModeTabs, MultipleSelect, MultipleSelectContent, MultipleSelectTrigger, MultipleSelectValue, RadioGroup, RadioItem, SELECT_TRIGGER_SIZES, SELECT_TRIGGER_VARIANTS, SWITCH_SIZES, SWITCH_VARIANTS, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, Switch, TOOLTIP_SHORT_SIZES, TOOLTIP_SHORT_VARIANTS, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tooltip, TooltipArrow, TooltipContent, TooltipDescription, TooltipFooter, TooltipHeader, TooltipTrigger, VERTICAL_MENU_SIZES, VERTICAL_MENU_VARIANTS, VerticalMenu, VerticalMenus };