@bubo-squared/ui-framework 0.1.94 → 0.1.95
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 +80 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +80 -80
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
564
|
-
secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-
|
|
565
|
-
active: "bg-
|
|
566
|
-
informal: "bg-
|
|
567
|
-
success: "bg-
|
|
568
|
-
warning: "bg-
|
|
569
|
-
error: "bg-
|
|
570
|
-
disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-
|
|
571
|
-
"double-default": "bg-(--background-secondary) text-
|
|
572
|
-
"double-current": "bg-
|
|
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-(--
|
|
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-
|
|
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-(--
|
|
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-
|
|
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",
|
|
@@ -772,7 +772,7 @@ var Divider = (props) => {
|
|
|
772
772
|
{
|
|
773
773
|
className: cn(
|
|
774
774
|
textClassBySize[resolvedSize],
|
|
775
|
-
"text-(--
|
|
775
|
+
"text-(--color-secondary)"
|
|
776
776
|
),
|
|
777
777
|
children: textLabel
|
|
778
778
|
}
|
|
@@ -884,8 +884,8 @@ var Progress = React12.forwardRef(
|
|
|
884
884
|
...rest,
|
|
885
885
|
children: [
|
|
886
886
|
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-
|
|
888
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "footnote text-(--
|
|
887
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "paragraph-s-bold text-primary", children: label }),
|
|
888
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "footnote text-(--color-secondary)", children: percentageLabel })
|
|
889
889
|
] }),
|
|
890
890
|
/* @__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
891
|
"div",
|
|
@@ -897,7 +897,7 @@ var Progress = React12.forwardRef(
|
|
|
897
897
|
style: { width: `${clamped}%` }
|
|
898
898
|
}
|
|
899
899
|
) }),
|
|
900
|
-
showHint && hint && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "caption text-(--
|
|
900
|
+
showHint && hint && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "caption text-(--color-secondary)", children: hint })
|
|
901
901
|
]
|
|
902
902
|
}
|
|
903
903
|
);
|
|
@@ -911,7 +911,7 @@ var import_class_variance_authority10 = require("class-variance-authority");
|
|
|
911
911
|
var import_icons3 = require("@bubo-squared/icons");
|
|
912
912
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
913
913
|
var iconStatusVariants = (0, import_class_variance_authority10.cva)(
|
|
914
|
-
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--
|
|
914
|
+
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--color-primary-inverse) p-1",
|
|
915
915
|
{
|
|
916
916
|
variants: {
|
|
917
917
|
variant: {
|
|
@@ -929,10 +929,10 @@ var iconStatusVariants = (0, import_class_variance_authority10.cva)(
|
|
|
929
929
|
);
|
|
930
930
|
var presenceDotBase = "inline-flex h-5 w-5 items-center justify-center";
|
|
931
931
|
var presenceDotByVariant = {
|
|
932
|
-
offline: "bg-(--background-primary) border-1 border-(--
|
|
933
|
-
online: "bg-(--background-success) border-1 border-(--
|
|
934
|
-
away: "bg-(--background-warning) border-1 border-(--
|
|
935
|
-
busy: "bg-(--background-error) border-1 border-(--
|
|
932
|
+
offline: "bg-(--background-primary) border-1 border-(--color-primary-inverse)",
|
|
933
|
+
online: "bg-(--background-success) border-1 border-(--color-primary-inverse)",
|
|
934
|
+
away: "bg-(--background-warning) border-1 border-(--color-primary-inverse)",
|
|
935
|
+
busy: "bg-(--background-error) border-1 border-(--color-primary-inverse)"
|
|
936
936
|
};
|
|
937
937
|
var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
938
938
|
const { variant = "verified", className, ...rest } = props;
|
|
@@ -959,11 +959,11 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
959
959
|
className: cn(iconStatusVariants({ variant: iconVariant }), className),
|
|
960
960
|
...rest,
|
|
961
961
|
children: [
|
|
962
|
-
iconVariant === "verified" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CheckIcon, { className: "size-3 text-
|
|
963
|
-
iconVariant === "bookmark" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.BookmarkCheckIcon, { className: "size-3 text-
|
|
964
|
-
iconVariant === "favorite" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.StarIcon, { className: "size-3 text-
|
|
965
|
-
iconVariant === "add" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.PlusIcon, { className: "size-3 text-
|
|
966
|
-
iconVariant === "remove" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CrossIcon, { className: "size-3 text-
|
|
962
|
+
iconVariant === "verified" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CheckIcon, { className: "size-3 text-button-white" }),
|
|
963
|
+
iconVariant === "bookmark" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.BookmarkCheckIcon, { className: "size-3 text-button-white" }),
|
|
964
|
+
iconVariant === "favorite" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.StarIcon, { className: "size-3 text-button-white" }),
|
|
965
|
+
iconVariant === "add" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.PlusIcon, { className: "size-3 text-button-white" }),
|
|
966
|
+
iconVariant === "remove" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons3.CrossIcon, { className: "size-3 text-button-white" })
|
|
967
967
|
]
|
|
968
968
|
}
|
|
969
969
|
);
|
|
@@ -989,8 +989,8 @@ var tagVariants = (0, import_class_variance_authority11.cva)(
|
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
);
|
|
992
|
-
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-
|
|
993
|
-
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-
|
|
992
|
+
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
|
|
993
|
+
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
|
|
994
994
|
var Tag = React14.forwardRef(
|
|
995
995
|
(props, ref) => {
|
|
996
996
|
const {
|
|
@@ -1014,10 +1014,10 @@ var Tag = React14.forwardRef(
|
|
|
1014
1014
|
children: [
|
|
1015
1015
|
leading && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: iconClasses, children: leading }),
|
|
1016
1016
|
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-
|
|
1018
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-
|
|
1019
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-
|
|
1020
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-
|
|
1017
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: label }),
|
|
1018
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: ":" }),
|
|
1019
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l-medium mb-0! cursor-default font-medium", children: value })
|
|
1020
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-primary paragraph-l mb-0! cursor-default", children: label }),
|
|
1021
1021
|
trailing && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: iconClasses, children: trailing })
|
|
1022
1022
|
]
|
|
1023
1023
|
}
|
|
@@ -1037,9 +1037,9 @@ function Checkbox({ label, className, ...props }) {
|
|
|
1037
1037
|
CheckboxPrimitive.Root,
|
|
1038
1038
|
{
|
|
1039
1039
|
className: cn(
|
|
1040
|
-
"group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-
|
|
1041
|
-
"data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-
|
|
1042
|
-
"data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-
|
|
1040
|
+
"group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-primary-inverse",
|
|
1041
|
+
"data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-button-white data-[state=checked]:border-none",
|
|
1042
|
+
"data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-button-white data-[state=indeterminate]:border-none",
|
|
1043
1043
|
"data-[state=checked]:hover:bg-(--background-brand-hover) data-[state=indeterminate]:hover:bg-(--background-brand-hover)",
|
|
1044
1044
|
"focus-visible:border-(--border-brand)",
|
|
1045
1045
|
"disabled:bg-(--background-primary-disabled) disabled:border-none disabled:text-(--icon-primary-disabled)",
|
|
@@ -1055,7 +1055,7 @@ function Checkbox({ label, className, ...props }) {
|
|
|
1055
1055
|
] })
|
|
1056
1056
|
}
|
|
1057
1057
|
),
|
|
1058
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "paragraph-m-medium text-
|
|
1058
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "paragraph-m-medium text-primary", children: label })
|
|
1059
1059
|
] });
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
@@ -1066,7 +1066,7 @@ var import_icons6 = require("@bubo-squared/icons");
|
|
|
1066
1066
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1067
1067
|
var dropdownWrapperBase = "flex flex-col gap-2 items-start";
|
|
1068
1068
|
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-
|
|
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-primary-disabled disabled:cursor-default",
|
|
1070
1070
|
{
|
|
1071
1071
|
variants: {
|
|
1072
1072
|
size: {
|
|
@@ -1092,11 +1092,11 @@ var dropdownTextVariants = (0, import_class_variance_authority12.cva)("truncate"
|
|
|
1092
1092
|
"extra-large": "h6-title"
|
|
1093
1093
|
},
|
|
1094
1094
|
hasValue: {
|
|
1095
|
-
false: "text-(--
|
|
1096
|
-
true: "text-
|
|
1095
|
+
false: "text-(--color-secondary)",
|
|
1096
|
+
true: "text-primary"
|
|
1097
1097
|
},
|
|
1098
1098
|
disabled: {
|
|
1099
|
-
true: "text-
|
|
1099
|
+
true: "text-primary-disabled"
|
|
1100
1100
|
}
|
|
1101
1101
|
},
|
|
1102
1102
|
defaultVariants: {
|
|
@@ -1187,7 +1187,7 @@ var Dropdown = (props) => {
|
|
|
1187
1187
|
id: labelId,
|
|
1188
1188
|
className: cn(
|
|
1189
1189
|
"paragraph-s",
|
|
1190
|
-
disabled ? "text-
|
|
1190
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
1191
1191
|
),
|
|
1192
1192
|
children: label
|
|
1193
1193
|
}
|
|
@@ -1249,7 +1249,7 @@ var Dropdown = (props) => {
|
|
|
1249
1249
|
"button",
|
|
1250
1250
|
{
|
|
1251
1251
|
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-
|
|
1252
|
+
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
1253
|
role: "option",
|
|
1254
1254
|
"aria-selected": selected,
|
|
1255
1255
|
onClick: () => handleSelect(opt.value),
|
|
@@ -1267,7 +1267,7 @@ var Dropdown = (props) => {
|
|
|
1267
1267
|
id: hintId,
|
|
1268
1268
|
className: cn(
|
|
1269
1269
|
"caption",
|
|
1270
|
-
disabled ? "text-
|
|
1270
|
+
disabled ? "text-primary-disabled" : "text-(--color-secondary)"
|
|
1271
1271
|
),
|
|
1272
1272
|
children: hint
|
|
1273
1273
|
}
|
|
@@ -1293,8 +1293,8 @@ var Field = (props) => {
|
|
|
1293
1293
|
const fieldId = React17.useId();
|
|
1294
1294
|
const labelId = label ? `${fieldId}-label` : void 0;
|
|
1295
1295
|
const hintId = hint ? `${fieldId}-hint` : void 0;
|
|
1296
|
-
const hintColorClass = disabled ? "text-
|
|
1297
|
-
const labelColorClass = disabled ? "text-
|
|
1296
|
+
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
1297
|
+
const labelColorClass = disabled ? "text-primary-disabled" : "text-primary";
|
|
1298
1298
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: cn(fieldBase, className), children: [
|
|
1299
1299
|
label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1300
1300
|
"label",
|
|
@@ -1326,7 +1326,7 @@ var React18 = __toESM(require("react"), 1);
|
|
|
1326
1326
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1327
1327
|
var Input = React18.forwardRef(
|
|
1328
1328
|
({ className, type, variant = "default", ...props }, ref) => {
|
|
1329
|
-
const base = "text-
|
|
1329
|
+
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
1330
|
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
1331
|
const bareStyles = "bg-transparent outline-none w-full";
|
|
1332
1332
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -1365,7 +1365,7 @@ var inputShellVariants = (0, import_class_variance_authority13.cva)(
|
|
|
1365
1365
|
error: "input-error"
|
|
1366
1366
|
},
|
|
1367
1367
|
disabled: {
|
|
1368
|
-
true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-
|
|
1368
|
+
true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-primary-disabled cursor-default"
|
|
1369
1369
|
}
|
|
1370
1370
|
},
|
|
1371
1371
|
defaultVariants: {
|
|
@@ -1401,8 +1401,8 @@ var passwordTextVariants = (0, import_class_variance_authority14.cva)("truncate"
|
|
|
1401
1401
|
"extra-large": "h6-title"
|
|
1402
1402
|
},
|
|
1403
1403
|
disabled: {
|
|
1404
|
-
true: "text-
|
|
1405
|
-
false: "text-
|
|
1404
|
+
true: "text-primary-disabled",
|
|
1405
|
+
false: "text-primary"
|
|
1406
1406
|
}
|
|
1407
1407
|
},
|
|
1408
1408
|
defaultVariants: {
|
|
@@ -1436,7 +1436,7 @@ var actionButtonVariants = (0, import_class_variance_authority14.cva)(
|
|
|
1436
1436
|
"extra-large": "paragraph-m"
|
|
1437
1437
|
},
|
|
1438
1438
|
disabled: {
|
|
1439
|
-
true: "cursor-default text-
|
|
1439
|
+
true: "cursor-default text-primary-disabled hover:text-primary-disabled"
|
|
1440
1440
|
}
|
|
1441
1441
|
},
|
|
1442
1442
|
defaultVariants: {
|
|
@@ -1650,13 +1650,13 @@ function CommandInput({
|
|
|
1650
1650
|
"data-slot": "command-input-wrapper",
|
|
1651
1651
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1652
1652
|
children: [
|
|
1653
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons7.SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--
|
|
1653
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons7.SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--color-secondary)" }),
|
|
1654
1654
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1655
1655
|
import_cmdk.Command.Input,
|
|
1656
1656
|
{
|
|
1657
1657
|
"data-slot": "command-input",
|
|
1658
1658
|
className: cn(
|
|
1659
|
-
"placeholder:text-(--
|
|
1659
|
+
"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
1660
|
className
|
|
1661
1661
|
),
|
|
1662
1662
|
...props
|
|
@@ -1843,7 +1843,7 @@ var inputTextVariants = (0, import_class_variance_authority16.cva)("", {
|
|
|
1843
1843
|
"extra-large": "h6-title"
|
|
1844
1844
|
},
|
|
1845
1845
|
disabled: {
|
|
1846
|
-
true: "text-
|
|
1846
|
+
true: "text-primary-disabled border-(--border-secondary-disabled)"
|
|
1847
1847
|
}
|
|
1848
1848
|
},
|
|
1849
1849
|
defaultVariants: {
|
|
@@ -1942,7 +1942,7 @@ var CountrySelect = ({
|
|
|
1942
1942
|
{
|
|
1943
1943
|
type: "button",
|
|
1944
1944
|
variant: "outline",
|
|
1945
|
-
className: cn(inputBase, "flex gap-1 rounded-4 px-3 focus:z-10 mr-(--space-12) text-
|
|
1945
|
+
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
1946
|
disabled,
|
|
1947
1947
|
children: [
|
|
1948
1948
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
@@ -1992,7 +1992,7 @@ var CountrySelect = ({
|
|
|
1992
1992
|
),
|
|
1993
1993
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CommandList, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ScrollArea, { ref: scrollAreaRef, className: "h-72", children: [
|
|
1994
1994
|
/* @__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-
|
|
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-primary [&>div>div]:hover:text-primary p-0 pr-4", children: countryList.map(
|
|
1996
1996
|
({ value, label }) => value ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1997
1997
|
CountrySelectOption,
|
|
1998
1998
|
{
|
|
@@ -2028,7 +2028,7 @@ var CountrySelectOption = (props) => {
|
|
|
2028
2028
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
2029
2029
|
CommandItem,
|
|
2030
2030
|
{
|
|
2031
|
-
className: "gap-2 data-[selected=true]:text-
|
|
2031
|
+
className: "gap-2 data-[selected=true]:text-primary",
|
|
2032
2032
|
onSelect: handleSelect,
|
|
2033
2033
|
children: [
|
|
2034
2034
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(FlagComponent, { country, countryName }),
|
|
@@ -2078,8 +2078,8 @@ var RadioGroup = ({
|
|
|
2078
2078
|
"span",
|
|
2079
2079
|
{
|
|
2080
2080
|
className: cn(
|
|
2081
|
-
"paragraph-s text-
|
|
2082
|
-
disabled && "text-
|
|
2081
|
+
"paragraph-s text-primary",
|
|
2082
|
+
disabled && "text-primary-disabled"
|
|
2083
2083
|
),
|
|
2084
2084
|
children: label
|
|
2085
2085
|
}
|
|
@@ -2158,8 +2158,8 @@ var RadioGroup = ({
|
|
|
2158
2158
|
"span",
|
|
2159
2159
|
{
|
|
2160
2160
|
className: cn(
|
|
2161
|
-
"paragraph-s text-
|
|
2162
|
-
"group-data-[disabled]:text-
|
|
2161
|
+
"paragraph-s text-primary",
|
|
2162
|
+
"group-data-[disabled]:text-primary-disabled whitespace-nowrap"
|
|
2163
2163
|
),
|
|
2164
2164
|
children: option.label
|
|
2165
2165
|
}
|
|
@@ -2177,8 +2177,8 @@ var RadioGroup = ({
|
|
|
2177
2177
|
{
|
|
2178
2178
|
id: hintId,
|
|
2179
2179
|
className: cn(
|
|
2180
|
-
"caption text-(--
|
|
2181
|
-
disabled && "text-
|
|
2180
|
+
"caption text-(--color-secondary)",
|
|
2181
|
+
disabled && "text-primary-disabled"
|
|
2182
2182
|
),
|
|
2183
2183
|
children: hint ?? "\xA0"
|
|
2184
2184
|
}
|
|
@@ -2529,7 +2529,7 @@ var Slider = (props) => {
|
|
|
2529
2529
|
{
|
|
2530
2530
|
className: cn(
|
|
2531
2531
|
"paragraph-s",
|
|
2532
|
-
disabled ? "text-
|
|
2532
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
2533
2533
|
),
|
|
2534
2534
|
children: labelText
|
|
2535
2535
|
}
|
|
@@ -2621,8 +2621,8 @@ var Slider = (props) => {
|
|
|
2621
2621
|
"p",
|
|
2622
2622
|
{
|
|
2623
2623
|
className: cn(
|
|
2624
|
-
"paragraph-s text-
|
|
2625
|
-
disabled && "text-
|
|
2624
|
+
"paragraph-s text-primary",
|
|
2625
|
+
disabled && "text-primary-disabled"
|
|
2626
2626
|
),
|
|
2627
2627
|
children: formatNumericLabel()
|
|
2628
2628
|
}
|
|
@@ -2690,8 +2690,8 @@ var TextArea = (props) => {
|
|
|
2690
2690
|
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
2691
|
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
2692
|
};
|
|
2693
|
-
const hintColorClass = disabled ? "text-
|
|
2694
|
-
const counterColorClass = disabled ? "text-
|
|
2693
|
+
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
2694
|
+
const counterColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-primary";
|
|
2695
2695
|
const handleResizePointerDown = (event) => {
|
|
2696
2696
|
if (disabled) return;
|
|
2697
2697
|
if (event.button !== 0) return;
|
|
@@ -2724,7 +2724,7 @@ var TextArea = (props) => {
|
|
|
2724
2724
|
id: labelId,
|
|
2725
2725
|
className: cn(
|
|
2726
2726
|
"paragraph-s",
|
|
2727
|
-
disabled ? "text-
|
|
2727
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
2728
2728
|
),
|
|
2729
2729
|
children: label
|
|
2730
2730
|
}
|
|
@@ -2763,7 +2763,7 @@ var TextArea = (props) => {
|
|
|
2763
2763
|
maxLength: effectiveMaxLength,
|
|
2764
2764
|
className: cn(
|
|
2765
2765
|
"paragraph-m bg-transparent outline-none w-full h-full resize-none px-2 py-2 pr-8",
|
|
2766
|
-
disabled ? "text-
|
|
2766
|
+
disabled ? "text-primary-disabled" : hasValue ? "text-primary" : "text-(--color-secondary)",
|
|
2767
2767
|
showCharacterLimit && "pr-16"
|
|
2768
2768
|
),
|
|
2769
2769
|
...textareaProps
|
|
@@ -3022,8 +3022,8 @@ var Toggle = (props) => {
|
|
|
3022
3022
|
"span",
|
|
3023
3023
|
{
|
|
3024
3024
|
className: cn(
|
|
3025
|
-
"paragraph-s text-
|
|
3026
|
-
disabled && "text-
|
|
3025
|
+
"paragraph-s text-primary",
|
|
3026
|
+
disabled && "text-primary-disabled"
|
|
3027
3027
|
),
|
|
3028
3028
|
children: label
|
|
3029
3029
|
}
|
|
@@ -3057,7 +3057,7 @@ var WebsiteInput = (props) => {
|
|
|
3057
3057
|
const addonTextClass = cn(
|
|
3058
3058
|
"flex mb-0!",
|
|
3059
3059
|
size === "extra-large" ? "paragraph-m" : "paragraph-s",
|
|
3060
|
-
disabled ? "text-
|
|
3060
|
+
disabled ? "text-primary-disabled" : "text-primary group-hover:text-(--color-primary-hover) group-focus-within:text-(--color-primary-focus)"
|
|
3061
3061
|
);
|
|
3062
3062
|
const baseAddonClass = cn(
|
|
3063
3063
|
"flex items-center gap-2 px-2 h-full",
|
|
@@ -3211,8 +3211,8 @@ var breadcrumbTextVariants = (0, import_class_variance_authority19.cva)(
|
|
|
3211
3211
|
{
|
|
3212
3212
|
variants: {
|
|
3213
3213
|
variant: {
|
|
3214
|
-
colored: "text-(--
|
|
3215
|
-
flat: "text-
|
|
3214
|
+
colored: "text-(--color-brand) group-hover:text-(--color-brand-hover) group-focus-visible:text-(--color-brand-focus) group-disabled:text-(--color-brand-disabled)",
|
|
3215
|
+
flat: "text-primary group-hover:text-(--color-primary-hover) group-focus-visible:text-(--color-primary-focus) group-disabled:text-primary-disabled"
|
|
3216
3216
|
}
|
|
3217
3217
|
},
|
|
3218
3218
|
defaultVariants: {
|
|
@@ -3343,7 +3343,7 @@ var logoTextSizeVariants = (0, import_class_variance_authority21.cva)("", {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
});
|
|
3345
3345
|
var Logo = ({ className, textColor, variant = "inline" }) => {
|
|
3346
|
-
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-
|
|
3346
|
+
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-primary";
|
|
3347
3347
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
|
|
3348
3348
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
|
|
3349
3349
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })
|