@bubo-squared/ui-framework 0.2.23 → 0.2.25

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
@@ -148,6 +148,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
148
148
  destructive: [
149
149
  "btn-destructive",
150
150
  "focus-ring-error"
151
+ ],
152
+ "destructive-outline": [
153
+ "btn-destructive-outline",
154
+ "focus-ring-error-outline"
151
155
  ]
152
156
  },
153
157
  size: {
@@ -374,7 +378,7 @@ var IconButtonGroup = (props) => {
374
378
  "aria-label": item.ariaLabel,
375
379
  disabled: item.disabled,
376
380
  className: cn(
377
- "rounded-none border-1 border-(--border-secondary) text-primary ",
381
+ "rounded-none border-1 border-secondary text-primary ",
378
382
  index === 0 && "rounded-l-6",
379
383
  index === items.length - 1 && "rounded-r-6",
380
384
  index > 0 && "-ml-px"
@@ -551,7 +555,7 @@ var Accordion = React6.forwardRef(
551
555
  AccordionPrimitive.Item,
552
556
  {
553
557
  value: "item",
554
- className: cn(bordered ? "border rounded-4" : "border-b", "border-(--border-secondary) px-4"),
558
+ className: cn(bordered ? "border rounded-4" : "border-b", "border-secondary px-4"),
555
559
  children: [
556
560
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
557
561
  AccordionPrimitive.Trigger,
@@ -585,7 +589,7 @@ var import_class_variance_authority6 = require("class-variance-authority");
585
589
  var import_icons2 = require("@bubo-squared/icons");
586
590
  var import_jsx_runtime9 = require("react/jsx-runtime");
587
591
  var avatarVariants = (0, import_class_variance_authority6.cva)(
588
- "relative inline-flex items-center justify-center rounded-full border-(--border-secondary) border-1 bg-(--background-primary) text-primary overflow-hidden hover:border-(--focus-secondary) focus-visible:border-(--focus-primary) focus-visible:outline-none",
592
+ "relative inline-flex items-center justify-center rounded-full border-secondary border-1 bg-(--background-primary) text-primary overflow-hidden hover:border-(--focus-secondary) focus-visible:border-(--focus-primary) focus-visible:outline-none",
589
593
  {
590
594
  variants: {
591
595
  size: {
@@ -734,24 +738,24 @@ var import_react_slot5 = require("@radix-ui/react-slot");
734
738
  var import_class_variance_authority7 = require("class-variance-authority");
735
739
  var import_jsx_runtime11 = require("react/jsx-runtime");
736
740
  var badgeVariants = (0, import_class_variance_authority7.cva)(
737
- "inline-flex items-center justify-center rounded-4 leading-none whitespace-nowrap gap-1 px-1 py-0",
741
+ "inline-flex items-center justify-center rounded-4 leading-none whitespace-nowrap gap-1 py-0",
738
742
  {
739
743
  variants: {
740
744
  size: {
741
- sm: "px-1 paragraph-sm",
742
- md: "px-1 paragraph-md",
743
- lg: "px-1.5 subtitle",
744
- xl: "px-2 h6-title"
745
+ sm: "px-1.5 paragraph-sm",
746
+ md: "px-2 paragraph-md",
747
+ lg: "px-2 subtitle",
748
+ xl: "px-2.5 h6-title"
745
749
  },
746
750
  variant: {
747
751
  primary: "bg-(--background-secondary) text-primary",
748
- secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-primary",
752
+ secondary: "bg-(--background-primary) border-1 border-primary text-primary",
749
753
  active: "bg-ac-lilac text-badge-black",
750
754
  informal: "bg-ac-neon-blue text-badge-black",
751
755
  success: "bg-ac-neon-green text-badge-black",
752
756
  warning: "bg-ac-light-orange text-badge-black",
753
757
  error: "bg-s-error-300 text-badge-black",
754
- disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-primary-disabled",
758
+ disabled: "bg-(--background-primary-disabled) border-1 border-primary-disabled text-primary-disabled",
755
759
  "double-default": "bg-(--background-secondary) text-primary",
756
760
  "double-current": "bg-color-ac-lilac text-badge-black"
757
761
  }
@@ -806,12 +810,12 @@ var badgeDigitVariants = (0, import_class_variance_authority8.cva)(
806
810
  },
807
811
  variant: {
808
812
  primary: "bg-(--background-brand)",
809
- secondary: "bg-(--background-primary) border-1 border-(--border-secondary) text-(--color-secondary)",
813
+ secondary: "bg-(--background-primary) border-1 border-secondary text-primary",
810
814
  informal: "bg-(--background-informal)",
811
815
  success: "bg-(--background-success)",
812
816
  warning: "bg-(--background-warning)",
813
817
  error: "bg-(--background-error)",
814
- disabled: "bg-(--background-primary) border-1 border-(--border-primary-disabled) text-primary-disabled"
818
+ disabled: "bg-(--background-primary) border-1 border-primary-disabled text-primary-disabled"
815
819
  }
816
820
  },
817
821
  defaultVariants: {
@@ -1280,7 +1284,7 @@ var import_react_slot6 = require("@radix-ui/react-slot");
1280
1284
  var import_class_variance_authority11 = require("class-variance-authority");
1281
1285
  var import_jsx_runtime19 = require("react/jsx-runtime");
1282
1286
  var tagVariants = (0, import_class_variance_authority11.cva)(
1283
- "inline-flex flex-row items-center justify-center rounded-6 gap-2 px-3 overflow-hidden border-1 border-(--border-secondary) bg-(--background-neutral) focus:border-(--border-brand) focus-ring-primary ",
1287
+ "inline-flex flex-row items-center justify-center rounded-6 gap-2 px-3 overflow-hidden border-1 border-secondary bg-(--background-neutral) focus:border-brand focus-ring-primary ",
1284
1288
  {
1285
1289
  variants: {
1286
1290
  size: {
@@ -1293,7 +1297,7 @@ var tagVariants = (0, import_class_variance_authority11.cva)(
1293
1297
  }
1294
1298
  }
1295
1299
  );
1296
- var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
1300
+ var disabledTag = "pointer-events-none border-secondary-disabled bg-(--background-neutral-disabled) text-primary-disabled";
1297
1301
  var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
1298
1302
  var Tag = React17.forwardRef(
1299
1303
  (props, ref) => {
@@ -1340,7 +1344,7 @@ var import_icons5 = require("@bubo-squared/icons");
1340
1344
 
1341
1345
  // src/components/ui/dropdown-styles.ts
1342
1346
  var import_class_variance_authority12 = require("class-variance-authority");
1343
- var dropdownSurfaceClass = "z-50 rounded-4 border border-(--border-secondary-hover) bg-(--background-neutral) shadow-card-md";
1347
+ var dropdownSurfaceClass = "z-50 rounded-4 border border-secondary-hover bg-(--background-neutral) shadow-card-md";
1344
1348
  var dropdownScrollClass = "max-h-79 overflow-y-auto dropdown-scrollbar";
1345
1349
  var dropdownRowVariants = (0, import_class_variance_authority12.cva)(
1346
1350
  "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) text-left text-primary cursor-pointer hover:bg-(--background-secondary)",
@@ -1601,15 +1605,15 @@ var Checkbox = React20.forwardRef(({ label, className, ...props }, forwardedRef)
1601
1605
  {
1602
1606
  ref: forwardedRef,
1603
1607
  className: cn(
1604
- "group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-primary-inverse",
1608
+ "group flex h-5 w-5 items-center justify-center rounded-2 border border-secondary bg-(--background-neutral) text-primary-inverse",
1605
1609
  "data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-button-white data-[state=checked]:border-none",
1606
1610
  "data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-button-white data-[state=indeterminate]:border-none",
1607
1611
  "data-[state=checked]:hover:bg-(--background-brand-hover) data-[state=indeterminate]:hover:bg-(--background-brand-hover)",
1608
- "focus-visible:border-(--border-brand)",
1612
+ "focus-visible:border-brand",
1609
1613
  "disabled:bg-(--background-primary-disabled) disabled:border-none disabled:text-(--icon-primary-disabled)",
1610
1614
  "data-[state=checked]:disabled:bg-(--background-primary-disabled) data-[state=checked]:disabled:border-none data-[state=checked]:disabled:text-(--icon-primary-disabled)",
1611
1615
  "data-[state=indeterminate]:disabled:bg-(--background-primary-disabled) data-[state=indeterminate]:disabled:border-none data-[state=indeterminate]:disabled:text-(--icon-primary-disabled)",
1612
- "focus-ring-primary hover:cursor-pointer hover:border-(--border-secondary-hover)",
1616
+ "focus-ring-primary hover:cursor-pointer hover:border-secondary-hover",
1613
1617
  className
1614
1618
  ),
1615
1619
  ...props,
@@ -1633,7 +1637,7 @@ var React21 = __toESM(require("react"), 1);
1633
1637
  var import_class_variance_authority13 = require("class-variance-authority");
1634
1638
  var import_jsx_runtime23 = require("react/jsx-runtime");
1635
1639
  var inputShellVariants = (0, import_class_variance_authority13.cva)(
1636
- "group flex w-full items-center rounded-4 border bg-(--background-primary) text-left cursor-text border-(--border-secondary)",
1640
+ "group flex w-full items-center rounded-4 border bg-(--background-primary) text-left cursor-text border-secondary",
1637
1641
  {
1638
1642
  variants: {
1639
1643
  size: {
@@ -1648,7 +1652,7 @@ var inputShellVariants = (0, import_class_variance_authority13.cva)(
1648
1652
  error: "input-error"
1649
1653
  },
1650
1654
  disabled: {
1651
- true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-primary-disabled cursor-default"
1655
+ true: "bg-(--background-primary-disabled) border-secondary-disabled text-primary-disabled cursor-default"
1652
1656
  }
1653
1657
  },
1654
1658
  defaultVariants: {
@@ -2032,7 +2036,7 @@ var import_class_variance_authority15 = require("class-variance-authority");
2032
2036
  var import_icons8 = require("@bubo-squared/icons");
2033
2037
  var import_jsx_runtime26 = require("react/jsx-runtime");
2034
2038
  var selectTriggerVariants = (0, import_class_variance_authority15.cva)(
2035
- "group flex w-full items-center justify-between rounded-4 border bg-(--background-primary) p-2 text-left transition-colors cursor-pointer hover:bg-(--background-primary-hover) disabled:bg-(--background-primary-disabled) disabled:text-primary-disabled disabled:cursor-default",
2039
+ "group flex w-full items-center justify-between rounded-4 border bg-(--background-primary) p-2 text-left transition-[background-color] cursor-pointer hover:bg-(--background-primary-hover) disabled:bg-(--background-primary-disabled) disabled:text-primary-disabled disabled:cursor-default",
2036
2040
  {
2037
2041
  variants: {
2038
2042
  size: {
@@ -2807,7 +2811,7 @@ function ScrollBar({
2807
2811
  // src/components/Inputs/PhoneInput.tsx
2808
2812
  var import_class_variance_authority18 = require("class-variance-authority");
2809
2813
  var import_jsx_runtime33 = require("react/jsx-runtime");
2810
- var inputBase = "h-full rounded-4 border-(--border-secondary) bg-(--background-primary) hover:border-(--border-secondary-hover)";
2814
+ var inputBase = "h-full rounded-4 border-secondary bg-(--background-primary) hover:border-secondary-hover";
2811
2815
  var sizeBase = (0, import_class_variance_authority18.cva)(
2812
2816
  "flex w-full",
2813
2817
  {
@@ -2830,7 +2834,7 @@ var inputTextVariants2 = (0, import_class_variance_authority18.cva)("", {
2830
2834
  xl: "h6-title"
2831
2835
  },
2832
2836
  disabled: {
2833
- true: "text-primary-disabled border-(--border-secondary-disabled)"
2837
+ true: "text-primary-disabled border-secondary-disabled"
2834
2838
  }
2835
2839
  },
2836
2840
  defaultVariants: {
@@ -2872,7 +2876,7 @@ var countryOptionVariants = (0, import_class_variance_authority18.cva)(
2872
2876
  }
2873
2877
  );
2874
2878
  var PhoneInput = React31.forwardRef(
2875
- (props, ref) => {
2879
+ (props, forwardedRef) => {
2876
2880
  const {
2877
2881
  className,
2878
2882
  onChange,
@@ -2886,6 +2890,11 @@ var PhoneInput = React31.forwardRef(
2886
2890
  status = "default",
2887
2891
  ...rest
2888
2892
  } = props;
2893
+ const wrapperRef = React31.useRef(null);
2894
+ const focusNumberInput = React31.useCallback(() => {
2895
+ const el = wrapperRef.current?.querySelector("input");
2896
+ el?.focus();
2897
+ }, []);
2889
2898
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2890
2899
  Field,
2891
2900
  {
@@ -2895,16 +2904,29 @@ var PhoneInput = React31.forwardRef(
2895
2904
  status,
2896
2905
  disabled,
2897
2906
  className,
2898
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("w-full", wrapperStatusClass[status]), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2907
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref: wrapperRef, className: cn("w-full", wrapperStatusClass[status]), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2899
2908
  RPNInput.default,
2900
2909
  {
2901
- ref,
2910
+ ref: forwardedRef,
2902
2911
  className: cn(
2903
2912
  sizeBase({ size }),
2904
2913
  inputTextVariants2({ size, disabled })
2905
2914
  ),
2906
2915
  flagComponent: FlagComponent,
2907
- countrySelectComponent: (countrySelectProps) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CountrySelect, { ...countrySelectProps, size }),
2916
+ countrySelectComponent: (countrySelectProps) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2917
+ CountrySelect,
2918
+ {
2919
+ ...countrySelectProps,
2920
+ size,
2921
+ onAfterSelect: () => {
2922
+ requestAnimationFrame(() => {
2923
+ requestAnimationFrame(() => {
2924
+ focusNumberInput();
2925
+ });
2926
+ });
2927
+ }
2928
+ }
2929
+ ),
2908
2930
  inputComponent: InputComponent,
2909
2931
  smartCaret: false,
2910
2932
  value: value || void 0,
@@ -2939,7 +2961,8 @@ var CountrySelect = ({
2939
2961
  value: selectedCountry,
2940
2962
  options: countryList,
2941
2963
  onChange,
2942
- size = "md"
2964
+ size = "md",
2965
+ onAfterSelect
2943
2966
  }) => {
2944
2967
  const scrollAreaRef = React31.useRef(null);
2945
2968
  const [searchValue, setSearchValue] = React31.useState("");
@@ -3023,7 +3046,10 @@ var CountrySelect = ({
3023
3046
  countryName: label,
3024
3047
  selectedCountry,
3025
3048
  onChange,
3026
- onSelectComplete: () => setIsOpen(false),
3049
+ onSelectComplete: () => {
3050
+ setIsOpen(false);
3051
+ onAfterSelect?.();
3052
+ },
3027
3053
  size
3028
3054
  },
3029
3055
  value
@@ -3137,24 +3163,24 @@ var RadioGroup = React32.forwardRef((props, forwardedRef) => {
3137
3163
  className: cn(
3138
3164
  "flex items-center justify-center shrink-0 h-5 w-5 rounded-full border bg-(--background-primary) transition-all",
3139
3165
  // 1: enabled, unchecked, unfocused, unhovered
3140
- "group-data-[state=unchecked]:border-(--border-secondary)",
3166
+ "group-data-[state=unchecked]:border-secondary",
3141
3167
  // 2: enabled, checked, unfocused, unhovered
3142
- "group-data-[state=checked]:border-(--border-brand)",
3168
+ "group-data-[state=checked]:border-brand",
3143
3169
  // 3: enabled, unchecked, hovered, unfocused
3144
- "group-data-[state=unchecked]:group-hover:border-(--border-secondary-hover)",
3170
+ "group-data-[state=unchecked]:group-hover:border-secondary-hover",
3145
3171
  // 4: enabled, checked, hovered, unfocused
3146
- "group-data-[state=checked]:group-hover:border-(--border-brand-hover)",
3172
+ "group-data-[state=checked]:group-hover:border-brand-hover",
3147
3173
  "group-data-[state=checked]:group-hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
3148
3174
  // 5: enabled, unchecked, focused (override 1/3)
3149
- "group-data-[state=unchecked]:group-focus-visible:border-(--border-secondary-hover)",
3175
+ "group-data-[state=unchecked]:group-focus-visible:border-secondary-hover",
3150
3176
  // 6: enabled, checked, focused (override 2/4)
3151
- "group-data-[state=checked]:group-focus-visible:border-(--border-brand-focus)",
3177
+ "group-data-[state=checked]:group-focus-visible:border-brand-focus",
3152
3178
  "group-data-[state=checked]:group-focus-visible:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-primary)]",
3153
3179
  // 7: disabled, unchecked (override everything above)
3154
3180
  "group-[&[data-disabled][data-state=unchecked]]:border-none",
3155
3181
  "group-[&[data-disabled][data-state=unchecked]]:bg-(--background-primary-disabled)",
3156
3182
  // 8: disabled, checked (override everything above)
3157
- "group-[&[data-disabled][data-state=checked]]:border-(--border-primary-disabled)",
3183
+ "group-[&[data-disabled][data-state=checked]]:border-primary-disabled",
3158
3184
  "group-[&[data-disabled][data-state=checked]]:bg-(--background-primary-disabled)"
3159
3185
  ),
3160
3186
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
@@ -3625,15 +3651,27 @@ var Slider = React35.forwardRef((props, forwardedRef) => {
3625
3651
  }
3626
3652
  return rounded.toFixed(2);
3627
3653
  };
3628
- const formatDisplayValue = (val) => {
3654
+ const formatFallbackText = (val) => {
3629
3655
  const value2 = val ?? min;
3630
- if (tooltipFormatter) return tooltipFormatter(value2);
3631
3656
  if (showPercentage) {
3632
3657
  const percent = valueToPercent(value2);
3633
3658
  return `${formatNumber(percent)}%`;
3634
3659
  }
3635
3660
  return formatNumber(value2);
3636
3661
  };
3662
+ const formatDisplayNode = (val) => {
3663
+ const value2 = val ?? min;
3664
+ if (tooltipFormatter) return tooltipFormatter(value2);
3665
+ return formatFallbackText(value2);
3666
+ };
3667
+ const formatAriaValueText = (val) => {
3668
+ const fallback = formatFallbackText(val);
3669
+ if (!tooltipFormatter) return fallback;
3670
+ const node = tooltipFormatter(val ?? min);
3671
+ if (typeof node === "string") return node;
3672
+ if (typeof node === "number") return String(node);
3673
+ return fallback;
3674
+ };
3637
3675
  const formatNumericLabel = () => {
3638
3676
  if (isRange && secondary !== void 0) {
3639
3677
  if (!tooltipFormatter && showPercentage && display === "numeric") {
@@ -3641,14 +3679,18 @@ var Slider = React35.forwardRef((props, forwardedRef) => {
3641
3679
  const second = formatNumber(valueToPercent(secondary));
3642
3680
  return `${first} - ${second}`;
3643
3681
  }
3644
- return `${formatDisplayValue(primary)} - ${formatDisplayValue(secondary)}`;
3682
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3683
+ formatDisplayNode(primary),
3684
+ " - ",
3685
+ formatDisplayNode(secondary)
3686
+ ] });
3645
3687
  }
3646
- return formatDisplayValue(primary);
3688
+ return formatDisplayNode(primary);
3647
3689
  };
3648
3690
  const trackHeight = 32;
3649
3691
  const thumbWidth = 18;
3650
3692
  const thumbRadius = thumbWidth / 2;
3651
- const renderHandle = (index, percent, ariaValueText) => {
3693
+ const renderHandle = (index, percent, tooltipContent, ariaValueText) => {
3652
3694
  const val = index === 0 ? primary : secondary;
3653
3695
  const isDragging = draggingThumbIndex === index;
3654
3696
  const isTooltipVisible = showTooltip && (hoveredThumbIndex === index || draggingThumbIndex === index || focusedThumbIndex === index);
@@ -3701,7 +3743,7 @@ var Slider = React35.forwardRef((props, forwardedRef) => {
3701
3743
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3702
3744
  Tooltip,
3703
3745
  {
3704
- title: ariaValueText,
3746
+ title: tooltipContent,
3705
3747
  placement: tooltipPlacement === "top" ? "top" : "bottom",
3706
3748
  offset: 8,
3707
3749
  open: isTooltipVisible,
@@ -3763,8 +3805,18 @@ var Slider = React35.forwardRef((props, forwardedRef) => {
3763
3805
  }
3764
3806
  }
3765
3807
  ),
3766
- renderHandle(0, primaryPercent, formatDisplayValue(primary)),
3767
- isRange && secondary !== void 0 && renderHandle(1, secondaryPercent, formatDisplayValue(secondary))
3808
+ renderHandle(
3809
+ 0,
3810
+ primaryPercent,
3811
+ formatDisplayNode(primary),
3812
+ formatAriaValueText(primary)
3813
+ ),
3814
+ isRange && secondary !== void 0 && renderHandle(
3815
+ 1,
3816
+ secondaryPercent,
3817
+ formatDisplayNode(secondary),
3818
+ formatAriaValueText(secondary)
3819
+ )
3768
3820
  ]
3769
3821
  }
3770
3822
  ) }),
@@ -3848,8 +3900,8 @@ var TextArea = React36.forwardRef((props, forwardedRef) => {
3848
3900
  const textareaId = id ?? generatedId;
3849
3901
  const statusBorderClass = {
3850
3902
  default: "",
3851
- success: "border-(--border-success)",
3852
- error: "border-(--border-error)"
3903
+ success: "border-success",
3904
+ error: "border-error"
3853
3905
  };
3854
3906
  const statusShellClass = {
3855
3907
  default: "input-default",
@@ -3895,9 +3947,9 @@ var TextArea = React36.forwardRef((props, forwardedRef) => {
3895
3947
  {
3896
3948
  className: cn(
3897
3949
  "relative flex w-full rounded-4 border bg-(--background-primary) cursor-text",
3898
- "border-(--border-secondary)",
3950
+ "border-secondary",
3899
3951
  statusShellClass[status],
3900
- disabled && "bg-(--background-primary-disabled) border-(--border-secondary-disabled) cursor-default",
3952
+ disabled && "bg-(--background-primary-disabled) border-secondary-disabled cursor-default",
3901
3953
  statusBorderClass[status],
3902
3954
  className
3903
3955
  ),
@@ -4145,16 +4197,16 @@ var Toggle = React38.forwardRef((props, forwardedRef) => {
4145
4197
  // Knob position
4146
4198
  "justify-start peer-checked:justify-end",
4147
4199
  // 1: enabled, unchecked, unhovered, unfocused
4148
- "border-(--border-secondary)",
4200
+ "border-secondary",
4149
4201
  // 3: enabled, unchecked, hovered, unfocused
4150
- "hover:border-(--border-secondary-hover)",
4202
+ "hover:border-secondary-hover",
4151
4203
  // 2: enabled, checked, unhovered, unfocused
4152
- "peer-checked:border-(--border-brand)",
4204
+ "peer-checked:border-brand",
4153
4205
  // 4: enabled, checked, hovered, unfocused
4154
- "peer-checked:hover:border-(--border-brand-hover)",
4206
+ "peer-checked:hover:border-brand-hover",
4155
4207
  "peer-checked:hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
4156
4208
  // 5: enabled, unchecked, unhovered, focused
4157
- "peer-focus-visible:border-(--border-brand-focus)",
4209
+ "peer-focus-visible:border-brand-focus",
4158
4210
  // 6: enabled, checked, unhovered, focused
4159
4211
  "peer-checked:peer-focus-visible:bg-(--background-brand-focus)",
4160
4212
  "peer-checked:peer-focus-visible:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-primary)]",
@@ -4163,7 +4215,7 @@ var Toggle = React38.forwardRef((props, forwardedRef) => {
4163
4215
  "peer-disabled:border-none",
4164
4216
  "peer-disabled:shadow-none",
4165
4217
  // 8: disabled, checked (override)
4166
- "peer-disabled:peer-checked:border-(--border-primary-disabled)",
4218
+ "peer-disabled:peer-checked:border-primary-disabled",
4167
4219
  // Disable hover when disabled
4168
4220
  "peer-disabled:pointer-events-none",
4169
4221
  // Knob on (enabled)
@@ -4222,7 +4274,7 @@ var WebsiteInput = React39.forwardRef((props, forwardedRef) => {
4222
4274
  const baseClass = cn(
4223
4275
  "[&>span]:w-[unset] hover:bg-[unset]",
4224
4276
  !disabled && "[&:not(:focus-within):hover]:shadow-[0_0_0_var(--focus-ring-spread)_var(--background-secondary-hover)]",
4225
- disabled && "bg-[unset] hover:shadow-none hover:border-(--border-secondary-disabled) border-(--border-secondary-disabled)",
4277
+ disabled && "bg-[unset] hover:shadow-none hover:border-secondary-disabled border-secondary-disabled",
4226
4278
  spanHeightClass
4227
4279
  );
4228
4280
  const addonTextClass = cn(
@@ -4233,9 +4285,9 @@ var WebsiteInput = React39.forwardRef((props, forwardedRef) => {
4233
4285
  const baseAddonClass = cn(
4234
4286
  "flex items-center gap-2 px-2 h-full",
4235
4287
  // layout + padding
4236
- "border-(--border-secondary)",
4288
+ "border-secondary",
4237
4289
  // divider color
4238
- disabled && "border-(--border-secondary-disabled) hover:border-(--border-secondary-disabled)",
4290
+ disabled && "border-secondary-disabled hover:border-secondary-disabled",
4239
4291
  isLeading ? "border-r" : "border-l"
4240
4292
  );
4241
4293
  const iconWrapperClass = cn(
@@ -4498,7 +4550,7 @@ var Breadcrumbs = React43.forwardRef(
4498
4550
  DropdownMenuContent,
4499
4551
  {
4500
4552
  align: "start",
4501
- className: "bg-(--background-neutral) border-(--border-secondary-hover) shadow-card-md rounded-4",
4553
+ className: "bg-(--background-neutral) border-secondary-hover shadow-card-md rounded-4",
4502
4554
  children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DropdownMenuGroup, { children: hiddenItems.map((hidden, hiddenIndex) => {
4503
4555
  const hiddenKey = React43.isValidElement(hidden) && hidden.key != null ? String(hidden.key) : `hidden-${hiddenIndex}`;
4504
4556
  if (React43.isValidElement(hidden)) {