@bubo-squared/ui-framework 0.1.94 → 0.1.96

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
@@ -304,7 +304,7 @@ var IconButtonGroup = (props) => {
304
304
  "aria-label": item.ariaLabel,
305
305
  disabled: item.disabled,
306
306
  className: cn(
307
- "rounded-none border-1 border-(--border-secondary) text-(--text-primary) ",
307
+ "rounded-none border-1 border-(--border-secondary) text-primary ",
308
308
  index === 0 && "rounded-l-6",
309
309
  index === items.length - 1 && "rounded-r-6",
310
310
  index > 0 && "-ml-px"
@@ -450,7 +450,7 @@ var import_class_variance_authority6 = require("class-variance-authority");
450
450
  var import_icons = require("@bubo-squared/icons");
451
451
  var import_jsx_runtime8 = require("react/jsx-runtime");
452
452
  var avatarVariants = (0, import_class_variance_authority6.cva)(
453
- "relative inline-flex items-center justify-center rounded-full border-(--border-secondary) border-1 bg-(--background-primary) text-(--text-primary) overflow-hidden hover:border-(--focus-secondary) focus-visible:border-(--focus-primary) focus-visible:outline-none",
453
+ "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",
454
454
  {
455
455
  variants: {
456
456
  size: {
@@ -469,7 +469,7 @@ var avatarVariants = (0, import_class_variance_authority6.cva)(
469
469
  }
470
470
  );
471
471
  var avatarInitialsVariants = (0, import_class_variance_authority6.cva)(
472
- "flex items-center justify-center text-(--text-primary) leading-none ",
472
+ "flex items-center justify-center text-primary leading-none ",
473
473
  {
474
474
  variants: {
475
475
  size: {
@@ -560,16 +560,16 @@ var badgeVariants = (0, import_class_variance_authority7.cva)(
560
560
  xl: "px-2 h6-title"
561
561
  },
562
562
  variant: {
563
- primary: "bg-(--background-secondary) text-(--text-primary)",
564
- secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-(--text-primary)",
565
- active: "bg-(--color-ac-lilac) text-(--text-neutral-badge-black)",
566
- informal: "bg-(--color-ac-neon-blue) text-(--text-neutral-badge-black)",
567
- success: "bg-(--color-ac-neon-green) text-(--text-neutral-badge-black)",
568
- warning: "bg-(--color-ac-light-orange) text-(--text-neutral-badge-black)",
569
- error: "bg-(--color-s-error-300) text-(--text-neutral-badge-black)",
570
- disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-(--text-primary-disabled)",
571
- "double-default": "bg-(--background-secondary) text-(--text-primary)",
572
- "double-current": "bg-(--color-ac-lilac) text-(--text-neutral-badge-black)"
563
+ primary: "bg-(--background-secondary) text-primary",
564
+ secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-primary",
565
+ active: "bg-ac-lilac text-badge-black",
566
+ informal: "bg-ac-neon-blue text-badge-black",
567
+ success: "bg-ac-neon-green text-badge-black",
568
+ warning: "bg-ac-light-orange text-badge-black",
569
+ error: "bg-s-error-300 text-badge-black",
570
+ disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-primary-disabled",
571
+ "double-default": "bg-(--background-secondary) text-primary",
572
+ "double-current": "bg-color-ac-lilac text-badge-black"
573
573
  }
574
574
  },
575
575
  defaultVariants: {
@@ -621,12 +621,12 @@ var badgeDigitVariants = (0, import_class_variance_authority8.cva)(
621
621
  },
622
622
  variant: {
623
623
  primary: "bg-(--background-brand)",
624
- secondary: "bg-(--background-primary) border-1 border-(--border-secondary) text-(--text-secondary)",
624
+ secondary: "bg-(--background-primary) border-1 border-(--border-secondary) text-(--color-secondary)",
625
625
  informal: "bg-(--background-informal)",
626
626
  success: "bg-(--background-success)",
627
627
  warning: "bg-(--background-warning)",
628
628
  error: "bg-(--background-error)",
629
- disabled: "bg-(--background-primary) border-1 border-(--border-primary-disabled) text-(--text-primary-disabled)"
629
+ disabled: "bg-(--background-primary) border-1 border-(--border-primary-disabled) text-primary-disabled"
630
630
  }
631
631
  },
632
632
  defaultVariants: {
@@ -664,7 +664,7 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
664
664
  var badgeDotVariants = (0, import_class_variance_authority9.cva)("rounded-12 size-3", {
665
665
  variants: {
666
666
  status: {
667
- disabled: "bg-(--text-primary)",
667
+ disabled: "bg-(--color-primary)",
668
668
  informal: "bg-(--background-informal)",
669
669
  "success/online": "bg-(--background-success)",
670
670
  warning: "bg-(--background-warning)",
@@ -692,7 +692,7 @@ var BadgeStatus = React10.forwardRef(
692
692
  dotClassName,
693
693
  ...rest
694
694
  } = props;
695
- const textClasses = active ? "caption-medium text-(--text-primary)" : "caption-medium text-(--text-primary-disabled)";
695
+ const textClasses = active ? "caption-medium text-primary" : "caption-medium text-primary-disabled";
696
696
  const dotClasses = active ? "bg-(--background-informal)" : "bg-(--background-primary)";
697
697
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
698
698
  "div",
@@ -723,7 +723,6 @@ BadgeStatus.displayName = "BadgeStatus";
723
723
  var React11 = require("react");
724
724
  var import_icons2 = require("@bubo-squared/icons");
725
725
  var import_jsx_runtime13 = require("react/jsx-runtime");
726
- var lineClassBase = "flex-1 bg-(--border-secondary) h-px";
727
726
  var gapBySize = {
728
727
  sm: "gap-2",
729
728
  md: "gap-3",
@@ -739,50 +738,74 @@ var textClassBySize = {
739
738
  var Divider = (props) => {
740
739
  const resolvedType = props.type ?? "default";
741
740
  const resolvedSize = props.size ?? "sm";
741
+ const resolvedOrientation = props.orientation ?? "horizontal";
742
+ const ariaOrientation = resolvedOrientation === "vertical" ? "vertical" : "horizontal";
742
743
  const showCenter = resolvedType !== "default";
743
- const lineClass = lineClassBase;
744
+ const lineClass = resolvedOrientation === "vertical" ? "flex-1 bg-(--border-secondary) w-px" : "flex-1 bg-(--border-secondary) h-px";
744
745
  const wrapperClass = cn(
745
- "flex w-full items-center",
746
+ "flex items-center",
747
+ resolvedOrientation === "vertical" ? "h-full flex-col" : "w-full",
746
748
  showCenter ? gapBySize[resolvedSize] : "gap-0",
747
749
  props.className
748
750
  );
749
751
  if (props.type === void 0 || props.type === "default") {
750
752
  const {
751
753
  type: _type,
754
+ orientation: _orientation,
752
755
  size: _size,
753
756
  label: _label,
754
757
  className: _className,
755
758
  ...divProps
756
759
  } = props;
757
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: wrapperClass, ...divProps, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }) });
760
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
761
+ "div",
762
+ {
763
+ className: wrapperClass,
764
+ role: "separator",
765
+ "aria-orientation": ariaOrientation,
766
+ ...divProps,
767
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
768
+ }
769
+ );
758
770
  }
759
771
  if (props.type === "text") {
760
772
  const {
761
773
  type: _type,
774
+ orientation: _orientation,
762
775
  size: _size,
763
776
  label,
764
777
  className: _className,
765
778
  ...divProps
766
779
  } = props;
767
780
  const textLabel = label ? label : "OR";
768
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: wrapperClass, ...divProps, children: [
769
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
770
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
771
- "span",
772
- {
773
- className: cn(
774
- textClassBySize[resolvedSize],
775
- "text-(--text-secondary)"
781
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
782
+ "div",
783
+ {
784
+ className: wrapperClass,
785
+ role: "separator",
786
+ "aria-orientation": ariaOrientation,
787
+ ...divProps,
788
+ children: [
789
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
790
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
791
+ "span",
792
+ {
793
+ className: cn(
794
+ textClassBySize[resolvedSize],
795
+ "text-(--color-secondary)"
796
+ ),
797
+ children: textLabel
798
+ }
776
799
  ),
777
- children: textLabel
778
- }
779
- ),
780
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
781
- ] });
800
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
801
+ ]
802
+ }
803
+ );
782
804
  }
783
805
  if (props.type === "iconButton") {
784
806
  const {
785
807
  type: _type,
808
+ orientation: _orientation,
786
809
  size: _size,
787
810
  icon,
788
811
  iconButtonVariant,
@@ -791,38 +814,65 @@ var Divider = (props) => {
791
814
  className: _className,
792
815
  ...divProps
793
816
  } = props;
794
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: wrapperClass, ...divProps, children: [
795
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
796
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
797
- IconButton,
798
- {
799
- variant: iconButtonVariant ?? "secondary",
800
- size: resolvedSize,
801
- "aria-label": ariaLabel ?? "More options",
802
- icon: icon ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_icons2.TargetIcon, {}),
803
- onClick: onIconClick
804
- }
805
- ),
806
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
807
- ] });
817
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
818
+ "div",
819
+ {
820
+ className: wrapperClass,
821
+ role: "separator",
822
+ "aria-orientation": ariaOrientation,
823
+ ...divProps,
824
+ children: [
825
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
826
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
827
+ IconButton,
828
+ {
829
+ variant: iconButtonVariant ?? "secondary",
830
+ size: resolvedSize,
831
+ "aria-label": ariaLabel ?? "More options",
832
+ icon: icon ?? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_icons2.TargetIcon, {}),
833
+ onClick: onIconClick
834
+ }
835
+ ),
836
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
837
+ ]
838
+ }
839
+ );
808
840
  }
809
841
  if (props.type === "iconButtonGroup") {
810
842
  const {
811
843
  type: _type,
844
+ orientation: _orientation,
812
845
  size: _size,
813
846
  iconGroupItems,
814
847
  className: _className,
815
848
  ...divProps
816
849
  } = props;
817
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: wrapperClass, ...divProps, children: [
818
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
819
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconButtonGroup, { items: iconGroupItems, size: resolvedSize }),
820
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
821
- ] });
850
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
851
+ "div",
852
+ {
853
+ className: wrapperClass,
854
+ role: "separator",
855
+ "aria-orientation": ariaOrientation,
856
+ ...divProps,
857
+ children: [
858
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
859
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
860
+ IconButtonGroup,
861
+ {
862
+ className: resolvedOrientation === "vertical" ? "flex-col" : "flex-row",
863
+ items: iconGroupItems,
864
+ size: resolvedSize
865
+ }
866
+ ),
867
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
868
+ ]
869
+ }
870
+ );
822
871
  }
823
872
  if (props.type === "button") {
824
873
  const {
825
874
  type: _type,
875
+ orientation: _orientation,
826
876
  size: _size,
827
877
  buttonLabel,
828
878
  onButtonClick,
@@ -830,19 +880,28 @@ var Divider = (props) => {
830
880
  className: _className,
831
881
  ...divProps
832
882
  } = props;
833
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: wrapperClass, ...divProps, children: [
834
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
835
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
836
- Button,
837
- {
838
- variant: buttonVariant ?? "secondary",
839
- size: resolvedSize,
840
- onClick: onButtonClick,
841
- children: buttonLabel
842
- }
843
- ),
844
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
845
- ] });
883
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
884
+ "div",
885
+ {
886
+ className: wrapperClass,
887
+ role: "separator",
888
+ "aria-orientation": ariaOrientation,
889
+ ...divProps,
890
+ children: [
891
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass }),
892
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
893
+ Button,
894
+ {
895
+ variant: buttonVariant ?? "secondary",
896
+ size: resolvedSize,
897
+ onClick: onButtonClick,
898
+ children: buttonLabel
899
+ }
900
+ ),
901
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: lineClass })
902
+ ]
903
+ }
904
+ );
846
905
  }
847
906
  return null;
848
907
  };
@@ -884,8 +943,8 @@ var Progress = React12.forwardRef(
884
943
  ...rest,
885
944
  children: [
886
945
  showLabel && label && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
887
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "paragraph-s-bold text-(--text-primary)", children: label }),
888
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "footnote text-(--text-secondary)", children: percentageLabel })
946
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "paragraph-s-bold text-primary", children: label }),
947
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "footnote text-(--color-secondary)", children: percentageLabel })
889
948
  ] }),
890
949
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cn("w-full bg-(--chart-mono) overflow-hidden", barHeightClasses), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
891
950
  "div",
@@ -897,7 +956,7 @@ var Progress = React12.forwardRef(
897
956
  style: { width: `${clamped}%` }
898
957
  }
899
958
  ) }),
900
- showHint && hint && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "caption text-(--text-secondary)", children: hint })
959
+ showHint && hint && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "caption text-(--color-secondary)", children: hint })
901
960
  ]
902
961
  }
903
962
  );
@@ -911,7 +970,7 @@ var import_class_variance_authority10 = require("class-variance-authority");
911
970
  var import_icons3 = require("@bubo-squared/icons");
912
971
  var import_jsx_runtime15 = require("react/jsx-runtime");
913
972
  var iconStatusVariants = (0, import_class_variance_authority10.cva)(
914
- "inline-flex size-5 items-center justify-center rounded-full border-1 border-(--text-primary-inverse) p-1",
973
+ "inline-flex size-5 items-center justify-center rounded-full border-1 border-(--color-primary-inverse) p-1",
915
974
  {
916
975
  variants: {
917
976
  variant: {
@@ -929,10 +988,10 @@ var iconStatusVariants = (0, import_class_variance_authority10.cva)(
929
988
  );
930
989
  var presenceDotBase = "inline-flex h-5 w-5 items-center justify-center";
931
990
  var presenceDotByVariant = {
932
- offline: "bg-(--background-primary) border-1 border-(--text-primary-inverse)",
933
- online: "bg-(--background-success) border-1 border-(--text-primary-inverse)",
934
- away: "bg-(--background-warning) border-1 border-(--text-primary-inverse)",
935
- busy: "bg-(--background-error) border-1 border-(--text-primary-inverse)"
991
+ offline: "bg-(--background-primary) border-1 border-(--color-primary-inverse)",
992
+ online: "bg-(--background-success) border-1 border-(--color-primary-inverse)",
993
+ away: "bg-(--background-warning) border-1 border-(--color-primary-inverse)",
994
+ busy: "bg-(--background-error) border-1 border-(--color-primary-inverse)"
936
995
  };
937
996
  var StatusAvatar = React13.forwardRef((props, ref) => {
938
997
  const { variant = "verified", className, ...rest } = props;
@@ -959,11 +1018,11 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
959
1018
  className: cn(iconStatusVariants({ variant: iconVariant }), className),
960
1019
  ...rest,
961
1020
  children: [
962
- iconVariant === "verified" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CheckIcon, { className: "size-3 text-(--text-button-white)" }),
963
- iconVariant === "bookmark" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.BookmarkCheckIcon, { className: "size-3 text-(--text-button-white)" }),
964
- iconVariant === "favorite" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.StarIcon, { className: "size-3 text-(--text-button-white)" }),
965
- iconVariant === "add" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.PlusIcon, { className: "size-3 text-(--text-button-white)" }),
966
- iconVariant === "remove" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CrossIcon, { className: "size-3 text-(--text-button-white)" })
1021
+ iconVariant === "verified" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CheckIcon, { className: "size-3 text-button-white" }),
1022
+ iconVariant === "bookmark" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.BookmarkCheckIcon, { className: "size-3 text-button-white" }),
1023
+ iconVariant === "favorite" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.StarIcon, { className: "size-3 text-button-white" }),
1024
+ iconVariant === "add" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.PlusIcon, { className: "size-3 text-button-white" }),
1025
+ iconVariant === "remove" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CrossIcon, { className: "size-3 text-button-white" })
967
1026
  ]
968
1027
  }
969
1028
  );
@@ -989,8 +1048,8 @@ var tagVariants = (0, import_class_variance_authority11.cva)(
989
1048
  }
990
1049
  }
991
1050
  );
992
- var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-(--text-primary-disabled)";
993
- var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-(--text-primary)";
1051
+ var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
1052
+ var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
994
1053
  var Tag = React14.forwardRef(
995
1054
  (props, ref) => {
996
1055
  const {
@@ -1014,10 +1073,10 @@ var Tag = React14.forwardRef(
1014
1073
  children: [
1015
1074
  leading && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: iconClasses, children: leading }),
1016
1075
  value ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-row gap-1 items-center", children: [
1017
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-(--text-primary) paragraph-l mb-0! cursor-default font-normal", children: label }),
1018
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-(--text-primary) paragraph-l mb-0! cursor-default font-normal", children: ":" }),
1019
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-(--text-primary) paragraph-l-medium mb-0! cursor-default font-medium", children: value })
1020
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-(--text-primary) paragraph-l mb-0! cursor-default", children: label }),
1076
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: label }),
1077
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: ":" }),
1078
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l-medium mb-0! cursor-default font-medium", children: value })
1079
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default", children: label }),
1021
1080
  trailing && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: iconClasses, children: trailing })
1022
1081
  ]
1023
1082
  }
@@ -1037,9 +1096,9 @@ function Checkbox({ label, className, ...props }) {
1037
1096
  CheckboxPrimitive.Root,
1038
1097
  {
1039
1098
  className: cn(
1040
- "group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-(--text-primary)",
1041
- "data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-(--text-button-white) data-[state=checked]:border-none",
1042
- "data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-(--text-button-white) data-[state=indeterminate]:border-none",
1099
+ "group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-primary-inverse",
1100
+ "data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-button-white data-[state=checked]:border-none",
1101
+ "data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-button-white data-[state=indeterminate]:border-none",
1043
1102
  "data-[state=checked]:hover:bg-(--background-brand-hover) data-[state=indeterminate]:hover:bg-(--background-brand-hover)",
1044
1103
  "focus-visible:border-(--border-brand)",
1045
1104
  "disabled:bg-(--background-primary-disabled) disabled:border-none disabled:text-(--icon-primary-disabled)",
@@ -1055,7 +1114,7 @@ function Checkbox({ label, className, ...props }) {
1055
1114
  ] })
1056
1115
  }
1057
1116
  ),
1058
- label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "paragraph-m-medium text-(--text-primary)", children: label })
1117
+ label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "paragraph-m-medium text-primary", children: label })
1059
1118
  ] });
1060
1119
  }
1061
1120
 
@@ -1066,7 +1125,7 @@ var import_icons6 = require("@bubo-squared/icons");
1066
1125
  var import_jsx_runtime18 = require("react/jsx-runtime");
1067
1126
  var dropdownWrapperBase = "flex flex-col gap-2 items-start";
1068
1127
  var dropdownTriggerVariants = (0, import_class_variance_authority12.cva)(
1069
- "group flex w-full items-center justify-between rounded-4 border bg-(--background-primary) px-3 py-2 text-left transition-colors cursor-pointer focus-ring-primary focus:border-(--border-brand) hover:bg-(--background-primary-hover) disabled:bg-(--background-primary) disabled:border-(--border-secondary-disabled) disabled:text-(--text-primary-disabled) disabled:cursor-default",
1128
+ "group flex w-full items-center justify-between rounded-4 border bg-(--background-primary) px-3 py-2 text-left transition-colors cursor-pointer focus-ring-primary focus:border-(--border-brand) hover:bg-(--background-primary-hover) disabled:bg-(--background-primary) disabled:border-(--border-secondary-disabled) disabled:text-primary-disabled disabled:cursor-default",
1070
1129
  {
1071
1130
  variants: {
1072
1131
  size: {
@@ -1092,11 +1151,11 @@ var dropdownTextVariants = (0, import_class_variance_authority12.cva)("truncate"
1092
1151
  "extra-large": "h6-title"
1093
1152
  },
1094
1153
  hasValue: {
1095
- false: "text-(--text-secondary)",
1096
- true: "text-(--text-primary)"
1154
+ false: "text-(--color-secondary)",
1155
+ true: "text-primary"
1097
1156
  },
1098
1157
  disabled: {
1099
- true: "text-(--text-primary-disabled)"
1158
+ true: "text-primary-disabled"
1100
1159
  }
1101
1160
  },
1102
1161
  defaultVariants: {
@@ -1187,7 +1246,7 @@ var Dropdown = (props) => {
1187
1246
  id: labelId,
1188
1247
  className: cn(
1189
1248
  "paragraph-s",
1190
- disabled ? "text-(--text-primary-disabled)" : "text-(--text-primary)"
1249
+ disabled ? "text-primary-disabled" : "text-primary"
1191
1250
  ),
1192
1251
  children: label
1193
1252
  }
@@ -1249,7 +1308,7 @@ var Dropdown = (props) => {
1249
1308
  "button",
1250
1309
  {
1251
1310
  type: "button",
1252
- className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-l text-(--text-primary) hover:bg-(--background-secondary)",
1311
+ className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-l text-primary hover:bg-(--background-secondary)",
1253
1312
  role: "option",
1254
1313
  "aria-selected": selected,
1255
1314
  onClick: () => handleSelect(opt.value),
@@ -1267,7 +1326,7 @@ var Dropdown = (props) => {
1267
1326
  id: hintId,
1268
1327
  className: cn(
1269
1328
  "caption",
1270
- disabled ? "text-(--text-primary-disabled)" : "text-(--text-secondary)"
1329
+ disabled ? "text-primary-disabled" : "text-(--color-secondary)"
1271
1330
  ),
1272
1331
  children: hint
1273
1332
  }
@@ -1293,8 +1352,8 @@ var Field = (props) => {
1293
1352
  const fieldId = React17.useId();
1294
1353
  const labelId = label ? `${fieldId}-label` : void 0;
1295
1354
  const hintId = hint ? `${fieldId}-hint` : void 0;
1296
- const hintColorClass = disabled ? "text-(--text-primary-disabled)" : status === "success" ? "text-(--text-success)" : status === "error" ? "text-(--text-error)" : "text-(--text-secondary)";
1297
- const labelColorClass = disabled ? "text-(--text-primary-disabled)" : "text-(--text-primary)";
1355
+ const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
1356
+ const labelColorClass = disabled ? "text-primary-disabled" : "text-primary";
1298
1357
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: cn(fieldBase, className), children: [
1299
1358
  label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1300
1359
  "label",
@@ -1326,7 +1385,7 @@ var React18 = __toESM(require("react"), 1);
1326
1385
  var import_jsx_runtime20 = require("react/jsx-runtime");
1327
1386
  var Input = React18.forwardRef(
1328
1387
  ({ className, type, variant = "default", ...props }, ref) => {
1329
- const base = "text-(--text-primary) placeholder:text-(--text-secondary) disabled:text-(--text-primary-disabled) disabled:placeholder:text-(--text-primary-disabled) selection:bg-primary selection:text-primary-foreground file:text-foreground";
1388
+ const base = "text-primary placeholder:text-(--color-secondary) disabled:text-primary-disabled disabled:placeholder:text-primary-disabled selection:bg-primary selection:text-primary-foreground file:text-foreground";
1330
1389
  const defaultStyles = "dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 shadow-xs transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 focus-visible:border-ring focus-visible:ring-0 focus-visible:shadow-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive";
1331
1390
  const bareStyles = "bg-transparent outline-none w-full";
1332
1391
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
@@ -1365,7 +1424,7 @@ var inputShellVariants = (0, import_class_variance_authority13.cva)(
1365
1424
  error: "input-error"
1366
1425
  },
1367
1426
  disabled: {
1368
- true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-(--text-primary-disabled) cursor-default"
1427
+ true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-primary-disabled cursor-default"
1369
1428
  }
1370
1429
  },
1371
1430
  defaultVariants: {
@@ -1401,8 +1460,8 @@ var passwordTextVariants = (0, import_class_variance_authority14.cva)("truncate"
1401
1460
  "extra-large": "h6-title"
1402
1461
  },
1403
1462
  disabled: {
1404
- true: "text-(--text-primary-disabled)",
1405
- false: "text-(--text-primary)"
1463
+ true: "text-primary-disabled",
1464
+ false: "text-primary"
1406
1465
  }
1407
1466
  },
1408
1467
  defaultVariants: {
@@ -1436,7 +1495,7 @@ var actionButtonVariants = (0, import_class_variance_authority14.cva)(
1436
1495
  "extra-large": "paragraph-m"
1437
1496
  },
1438
1497
  disabled: {
1439
- true: "cursor-default text-(--text-primary-disabled) hover:text-(--text-primary-disabled)"
1498
+ true: "cursor-default text-primary-disabled hover:text-primary-disabled"
1440
1499
  }
1441
1500
  },
1442
1501
  defaultVariants: {
@@ -1650,13 +1709,13 @@ function CommandInput({
1650
1709
  "data-slot": "command-input-wrapper",
1651
1710
  className: "flex h-9 items-center gap-2 border-b px-3",
1652
1711
  children: [
1653
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons7.SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--text-secondary)" }),
1712
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons7.SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--color-secondary)" }),
1654
1713
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1655
1714
  import_cmdk.Command.Input,
1656
1715
  {
1657
1716
  "data-slot": "command-input",
1658
1717
  className: cn(
1659
- "placeholder:text-(--text-secondary) text-(--text-primary) flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1718
+ "placeholder:text-(--color-secondary) text-primary flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
1660
1719
  className
1661
1720
  ),
1662
1721
  ...props
@@ -1843,7 +1902,7 @@ var inputTextVariants = (0, import_class_variance_authority16.cva)("", {
1843
1902
  "extra-large": "h6-title"
1844
1903
  },
1845
1904
  disabled: {
1846
- true: "text-(--text-primary-disabled) border-(--border-secondary-disabled)"
1905
+ true: "text-primary-disabled border-(--border-secondary-disabled)"
1847
1906
  }
1848
1907
  },
1849
1908
  defaultVariants: {
@@ -1942,7 +2001,7 @@ var CountrySelect = ({
1942
2001
  {
1943
2002
  type: "button",
1944
2003
  variant: "outline",
1945
- className: cn(inputBase, "flex gap-1 rounded-4 px-3 focus:z-10 mr-(--space-12) text-(--text-primary-disabled) hover:text-(--text-primary-hover) focus:text-(--text-primary-focus)"),
2004
+ className: cn(inputBase, "flex gap-1 rounded-4 px-3 focus:z-10 mr-(--space-12) text-primary-disabled hover:text-(--color-primary-hover) focus:text-(--color-primary-focus)"),
1946
2005
  disabled,
1947
2006
  children: [
1948
2007
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
@@ -1992,7 +2051,7 @@ var CountrySelect = ({
1992
2051
  ),
1993
2052
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CommandList, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ScrollArea, { ref: scrollAreaRef, className: "h-72", children: [
1994
2053
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CommandEmpty, { children: "No country found." }),
1995
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CommandGroup, { className: "[&>div>div]:pl-4 [&>div>div]:pr-2 [&>div>div]:py-2 [&>div>div]:border-b [&>div>div]:border-b-(--border-secondary) [&>div>div]:cursor-pointer [&>div>div]:hover:bg-(--background-primary-hover) [&>div>div]:text-(--text-primary) [&>div>div]:hover:text-(--text-primary) p-0 pr-4", children: countryList.map(
2054
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CommandGroup, { className: "[&>div>div]:pl-4 [&>div>div]:pr-2 [&>div>div]:py-2 [&>div>div]:border-b [&>div>div]:border-b-(--border-secondary) [&>div>div]:cursor-pointer [&>div>div]:hover:bg-(--background-primary-hover) [&>div>div]:text-primary [&>div>div]:hover:text-primary p-0 pr-4", children: countryList.map(
1996
2055
  ({ value, label }) => value ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1997
2056
  CountrySelectOption,
1998
2057
  {
@@ -2028,7 +2087,7 @@ var CountrySelectOption = (props) => {
2028
2087
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2029
2088
  CommandItem,
2030
2089
  {
2031
- className: "gap-2 data-[selected=true]:text-(--text-primary)",
2090
+ className: "gap-2 data-[selected=true]:text-primary",
2032
2091
  onSelect: handleSelect,
2033
2092
  children: [
2034
2093
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FlagComponent, { country, countryName }),
@@ -2078,8 +2137,8 @@ var RadioGroup = ({
2078
2137
  "span",
2079
2138
  {
2080
2139
  className: cn(
2081
- "paragraph-s text-(--text-primary)",
2082
- disabled && "text-(--text-primary-disabled)"
2140
+ "paragraph-s text-primary",
2141
+ disabled && "text-primary-disabled"
2083
2142
  ),
2084
2143
  children: label
2085
2144
  }
@@ -2158,8 +2217,8 @@ var RadioGroup = ({
2158
2217
  "span",
2159
2218
  {
2160
2219
  className: cn(
2161
- "paragraph-s text-(--text-primary)",
2162
- "group-data-[disabled]:text-(--text-primary-disabled) whitespace-nowrap"
2220
+ "paragraph-s text-primary",
2221
+ "group-data-[disabled]:text-primary-disabled whitespace-nowrap"
2163
2222
  ),
2164
2223
  children: option.label
2165
2224
  }
@@ -2177,8 +2236,8 @@ var RadioGroup = ({
2177
2236
  {
2178
2237
  id: hintId,
2179
2238
  className: cn(
2180
- "caption text-(--text-secondary)",
2181
- disabled && "text-(--text-primary-disabled)"
2239
+ "caption text-(--color-secondary)",
2240
+ disabled && "text-primary-disabled"
2182
2241
  ),
2183
2242
  children: hint ?? "\xA0"
2184
2243
  }
@@ -2529,7 +2588,7 @@ var Slider = (props) => {
2529
2588
  {
2530
2589
  className: cn(
2531
2590
  "paragraph-s",
2532
- disabled ? "text-(--text-primary-disabled)" : "text-(--text-primary)"
2591
+ disabled ? "text-primary-disabled" : "text-primary"
2533
2592
  ),
2534
2593
  children: labelText
2535
2594
  }
@@ -2621,8 +2680,8 @@ var Slider = (props) => {
2621
2680
  "p",
2622
2681
  {
2623
2682
  className: cn(
2624
- "paragraph-s text-(--text-primary)",
2625
- disabled && "text-(--text-primary-disabled)"
2683
+ "paragraph-s text-primary",
2684
+ disabled && "text-primary-disabled"
2626
2685
  ),
2627
2686
  children: formatNumericLabel()
2628
2687
  }
@@ -2690,8 +2749,8 @@ var TextArea = (props) => {
2690
2749
  success: "focus-within:border-(--border-success) focus-within:hover:border-(--border-success) focus-within:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-success)]",
2691
2750
  error: "focus-within:border-(--border-error) focus-within:hover:border-(--border-error) focus-within:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-error)]"
2692
2751
  };
2693
- const hintColorClass = disabled ? "text-(--text-primary-disabled)" : status === "success" ? "text-(--text-success)" : status === "error" ? "text-(--text-error)" : "text-(--text-secondary)";
2694
- const counterColorClass = disabled ? "text-(--text-primary-disabled)" : status === "success" ? "text-(--text-success)" : status === "error" ? "text-(--text-error)" : "text-(--text-primary)";
2752
+ const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
2753
+ const counterColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-primary";
2695
2754
  const handleResizePointerDown = (event) => {
2696
2755
  if (disabled) return;
2697
2756
  if (event.button !== 0) return;
@@ -2724,7 +2783,7 @@ var TextArea = (props) => {
2724
2783
  id: labelId,
2725
2784
  className: cn(
2726
2785
  "paragraph-s",
2727
- disabled ? "text-(--text-primary-disabled)" : "text-(--text-primary)"
2786
+ disabled ? "text-primary-disabled" : "text-primary"
2728
2787
  ),
2729
2788
  children: label
2730
2789
  }
@@ -2763,7 +2822,7 @@ var TextArea = (props) => {
2763
2822
  maxLength: effectiveMaxLength,
2764
2823
  className: cn(
2765
2824
  "paragraph-m bg-transparent outline-none w-full h-full resize-none px-2 py-2 pr-8",
2766
- disabled ? "text-(--text-primary-disabled)" : hasValue ? "text-(--text-primary)" : "text-(--text-secondary)",
2825
+ disabled ? "text-primary-disabled" : hasValue ? "text-primary" : "text-(--color-secondary)",
2767
2826
  showCharacterLimit && "pr-16"
2768
2827
  ),
2769
2828
  ...textareaProps
@@ -3022,8 +3081,8 @@ var Toggle = (props) => {
3022
3081
  "span",
3023
3082
  {
3024
3083
  className: cn(
3025
- "paragraph-s text-(--text-primary)",
3026
- disabled && "text-(--text-primary-disabled)"
3084
+ "paragraph-s text-primary",
3085
+ disabled && "text-primary-disabled"
3027
3086
  ),
3028
3087
  children: label
3029
3088
  }
@@ -3057,7 +3116,7 @@ var WebsiteInput = (props) => {
3057
3116
  const addonTextClass = cn(
3058
3117
  "flex mb-0!",
3059
3118
  size === "extra-large" ? "paragraph-m" : "paragraph-s",
3060
- disabled ? "text-(--text-primary-disabled)" : "text-(--text-primary) group-hover:text-(--text-primary-hover) group-focus-within:text-(--text-primary-focus)"
3119
+ disabled ? "text-primary-disabled" : "text-primary group-hover:text-(--color-primary-hover) group-focus-within:text-(--color-primary-focus)"
3061
3120
  );
3062
3121
  const baseAddonClass = cn(
3063
3122
  "flex items-center gap-2 px-2 h-full",
@@ -3211,8 +3270,8 @@ var breadcrumbTextVariants = (0, import_class_variance_authority19.cva)(
3211
3270
  {
3212
3271
  variants: {
3213
3272
  variant: {
3214
- colored: "text-(--text-brand) group-hover:text-(--text-brand-hover) group-focus-visible:text-(--text-brand-focus) group-disabled:text-(--text-brand-disabled)",
3215
- flat: "text-(--text-primary) group-hover:text-(--text-primary-hover) group-focus-visible:text-(--text-primary-focus) group-disabled:text-(--text-primary-disabled)"
3273
+ colored: "text-(--color-brand) group-hover:text-(--color-brand-hover) group-focus-visible:text-(--color-brand-focus) group-disabled:text-(--color-brand-disabled)",
3274
+ flat: "text-primary group-hover:text-(--color-primary-hover) group-focus-visible:text-(--color-primary-focus) group-disabled:text-primary-disabled"
3216
3275
  }
3217
3276
  },
3218
3277
  defaultVariants: {
@@ -3343,7 +3402,7 @@ var logoTextSizeVariants = (0, import_class_variance_authority21.cva)("", {
3343
3402
  }
3344
3403
  });
3345
3404
  var Logo = ({ className, textColor, variant = "inline" }) => {
3346
- const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-(--text-primary)";
3405
+ const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-primary";
3347
3406
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
3348
3407
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
3349
3408
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })