@cntyclub/ui-react 0.8.1 → 0.8.2

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
@@ -7569,6 +7569,11 @@ function ToggleGroupSeparator({
7569
7569
  }
7570
7570
  );
7571
7571
  }
7572
+ var SEGMENT_SIZE = {
7573
+ sm: "h-8 px-3.5 sm:h-7",
7574
+ default: "h-9 px-4 sm:h-8",
7575
+ lg: "h-10 px-5 sm:h-9"
7576
+ };
7572
7577
  function SegmentedControl({
7573
7578
  value,
7574
7579
  onValueChange,
@@ -7589,7 +7594,15 @@ function SegmentedControl({
7589
7594
  },
7590
7595
  size,
7591
7596
  variant,
7592
- children: options.map((option) => /* @__PURE__ */ jsx(Toggle2, { value: option.value, children: option.label }, option.value))
7597
+ children: options.map((option) => /* @__PURE__ */ jsx(
7598
+ Toggle2,
7599
+ {
7600
+ value: option.value,
7601
+ className: SEGMENT_SIZE[size],
7602
+ children: option.label
7603
+ },
7604
+ option.value
7605
+ ))
7593
7606
  }
7594
7607
  );
7595
7608
  }