@ctlyst.id/voila-ui 11.0.7 → 11.0.9

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.js CHANGED
@@ -467,6 +467,7 @@ var accordion_trigger_default = AccordionTrigger;
467
467
 
468
468
  // src/components/alert/alert.tsx
469
469
  var import_icons = require("@ctlyst.id/icons");
470
+ var import_v22 = require("@ctlyst.id/icons/v2");
470
471
  var import_voila_ui_core6 = require("@ctlyst.id/voila-ui-core");
471
472
  var import_clsx10 = __toESM(require("clsx"));
472
473
  var import_react10 = require("react");
@@ -493,7 +494,7 @@ var Alert = (0, import_react10.forwardRef)(
493
494
  case "warning":
494
495
  return import_icons.IconWarning;
495
496
  default:
496
- return import_icons.IconInfo;
497
+ return import_v22.Info;
497
498
  }
498
499
  };
499
500
  const AlertIcon = getAlertIcon();
@@ -829,12 +830,12 @@ var import_react_spring3 = require("react-spring");
829
830
  var import_react_use_gesture = require("react-use-gesture");
830
831
 
831
832
  // src/components/bottom-sheet/bottom-sheet.header.tsx
832
- var import_v23 = require("@ctlyst.id/icons/v2");
833
+ var import_v24 = require("@ctlyst.id/icons/v2");
833
834
  var import_voila_ui_core8 = require("@ctlyst.id/voila-ui-core");
834
835
  var import_react18 = require("react");
835
836
 
836
837
  // src/components/close-button/close-button.tsx
837
- var import_v22 = require("@ctlyst.id/icons/v2");
838
+ var import_v23 = require("@ctlyst.id/icons/v2");
838
839
  var import_voila_ui_core7 = require("@ctlyst.id/voila-ui-core");
839
840
  var import_clsx16 = __toESM(require("clsx"));
840
841
  var import_react17 = require("react");
@@ -860,7 +861,7 @@ var CloseButton = (0, import_react17.forwardRef)(
860
861
  disabled: isDisabled,
861
862
  style,
862
863
  ...props,
863
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(box_default, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_v22.CloseLarge, { size: iconSize, color: isDisabled ? import_voila_ui_core7.theme.colors.grey1 : import_voila_ui_core7.theme.colors.black }) })
864
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(box_default, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_v23.CloseLarge, { size: iconSize, color: isDisabled ? import_voila_ui_core7.theme.colors.grey1 : import_voila_ui_core7.theme.colors.black }) })
864
865
  }
865
866
  );
866
867
  }
@@ -887,7 +888,7 @@ var BottomSheetHeader = (0, import_react18.forwardRef)(
887
888
  header || /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(flex_default, { alignItems: "center", justifyContent: "space-between", pt: hasHandleBar ? "$16" : "$8", pb: "$8", gap: "$16", children: [
888
889
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(flex_default, { alignItems: "center", gap: "$16", children: [
889
890
  showBack && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
890
- import_v23.ChevronLeftLarge,
891
+ import_v24.ChevronLeftLarge,
891
892
  {
892
893
  cursor: "pointer",
893
894
  onClick: onBack,
@@ -2520,7 +2521,7 @@ Button.displayName = "Button";
2520
2521
  var button_default = Button;
2521
2522
 
2522
2523
  // src/components/checkbox/checkbox.tsx
2523
- var import_v24 = require("@ctlyst.id/icons/v2");
2524
+ var import_v25 = require("@ctlyst.id/icons/v2");
2524
2525
  var import_react_checkbox = require("@radix-ui/react-checkbox");
2525
2526
  var import_react33 = require("react");
2526
2527
 
@@ -2574,8 +2575,8 @@ var Checkbox = (0, import_react33.forwardRef)(
2574
2575
  },
2575
2576
  ...props,
2576
2577
  children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react_checkbox.Indicator, { className: checkboxIndicator, children: [
2577
- checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_v24.MinusLarge, { color: "white", className: checkboxIcon }),
2578
- checked === true && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_v24.CheckLarge, { color: "white", className: checkboxIcon })
2578
+ checked === "indeterminate" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_v25.MinusLarge, { color: "white", className: checkboxIcon }),
2579
+ checked === true && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_v25.CheckLarge, { color: "white", className: checkboxIcon })
2579
2580
  ] })
2580
2581
  }
2581
2582
  ),
@@ -2917,7 +2918,7 @@ Divider.displayName = "Divider";
2917
2918
  var divider_default = Divider;
2918
2919
 
2919
2920
  // src/components/form/input.tsx
2920
- var import_v25 = require("@ctlyst.id/icons/v2");
2921
+ var import_v26 = require("@ctlyst.id/icons/v2");
2921
2922
  var import_voila_ui_core11 = require("@ctlyst.id/voila-ui-core");
2922
2923
  var import_clsx23 = __toESM(require("clsx"));
2923
2924
  var import_react46 = require("react");
@@ -3066,7 +3067,7 @@ var Input = (0, import_react46.forwardRef)(
3066
3067
  className: (0, import_clsx23.default)(isClearable && !isLoading && !hasIcon && clearStyle),
3067
3068
  children: [
3068
3069
  hasIcon && !isLoading && icon,
3069
- isClearable && !isLoading && !hasIcon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_v25.CloseLarge, { size: 24, "data-test-id": `clear-input-${props["data-test-id"]}`, onClick: onClear }),
3070
+ isClearable && !isLoading && !hasIcon && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_v26.CloseLarge, { size: 24, "data-test-id": `clear-input-${props["data-test-id"]}`, onClick: onClear }),
3070
3071
  isLoading && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(spinner_default, { color: import_voila_ui_core11.theme.colors.green1 })
3071
3072
  ]
3072
3073
  }
@@ -4359,7 +4360,7 @@ var SelectListItem = ({ renderer, item, itemIndex }) => {
4359
4360
  var select_list_item_default = SelectListItem;
4360
4361
 
4361
4362
  // src/components/select/select-toggle.tsx
4362
- var import_v26 = require("@ctlyst.id/icons/v2");
4363
+ var import_v27 = require("@ctlyst.id/icons/v2");
4363
4364
  var import_voila_ui_core13 = require("@ctlyst.id/voila-ui-core");
4364
4365
  var import_jsx_runtime61 = require("react/jsx-runtime");
4365
4366
  var SelectToggle = ({ renderer, "data-test-id": dataTestId = "CT_Component_IconChev" }) => {
@@ -4372,7 +4373,7 @@ var SelectToggle = ({ renderer, "data-test-id": dataTestId = "CT_Component_IconC
4372
4373
  });
4373
4374
  }
4374
4375
  const iconColor = import_voila_ui_core13.theme.colors.black;
4375
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: toggleStyle, "data-test-id": dataTestId, "data-disabled": disabled, children: isOpen ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_v26.ChevronUpLarge, { color: iconColor, size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_v26.ChevronDownLarge, { color: iconColor, size: 16 }) });
4376
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: toggleStyle, "data-test-id": dataTestId, "data-disabled": disabled, children: isOpen ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_v27.ChevronUpLarge, { color: iconColor, size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_v27.ChevronDownLarge, { color: iconColor, size: 16 }) });
4376
4377
  };
4377
4378
  var select_toggle_default = SelectToggle;
4378
4379
 
@@ -4917,7 +4918,7 @@ var RadioGroupDefault = ({ className, children, ...props }) => {
4917
4918
  var radio_group_default = RadioGroupDefault;
4918
4919
 
4919
4920
  // src/components/search/search.tsx
4920
- var import_v27 = require("@ctlyst.id/icons/v2");
4921
+ var import_v28 = require("@ctlyst.id/icons/v2");
4921
4922
  var import_clsx37 = __toESM(require("clsx"));
4922
4923
  var import_react63 = require("react");
4923
4924
 
@@ -4965,7 +4966,7 @@ var Search = (0, import_react63.forwardRef)(
4965
4966
  return false;
4966
4967
  }, [isFocused, value, withIcon]);
4967
4968
  return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(box_default, { className: container, children: [
4968
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(leftIconContainer), children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_v27.Search, { size: 24 }) }),
4969
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(leftIconContainer), children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_v28.Search, { size: 24 }) }),
4969
4970
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4970
4971
  "input",
4971
4972
  {
@@ -4979,7 +4980,7 @@ var Search = (0, import_react63.forwardRef)(
4979
4980
  ...props
4980
4981
  }
4981
4982
  ),
4982
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(rightIconContainer), children: shouldShowXicon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(closeIconContainer), onMouseDown: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_v27.CloseLarge, { "data-test-id": "icon-close-search", onMouseDown: onClear, cursor: "pointer", size: 24 }) }) : icon })
4983
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(rightIconContainer), children: shouldShowXicon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(box_default, { className: (0, import_clsx37.default)(closeIconContainer), onMouseDown: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_v28.CloseLarge, { "data-test-id": "icon-close-search", onMouseDown: onClear, cursor: "pointer", size: 24 }) }) : icon })
4983
4984
  ] });
4984
4985
  }
4985
4986
  );
@@ -4987,7 +4988,7 @@ Search.displayName = "Search";
4987
4988
  var search_default = Search;
4988
4989
 
4989
4990
  // src/components/switch/switch.tsx
4990
- var import_v28 = require("@ctlyst.id/icons/v2");
4991
+ var import_v29 = require("@ctlyst.id/icons/v2");
4991
4992
  var import_react_switch = require("@radix-ui/react-switch");
4992
4993
  var import_clsx38 = __toESM(require("clsx"));
4993
4994
  var import_react64 = require("react");
@@ -5023,7 +5024,7 @@ var Switch = (0, import_react64.forwardRef)(
5023
5024
  variant: size
5024
5025
  })
5025
5026
  ),
5026
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_v28.Check, { className: checkThumb, size: ICON_SIZE[size] })
5027
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_v29.Check, { className: checkThumb, size: ICON_SIZE[size] })
5027
5028
  }
5028
5029
  )
5029
5030
  }