@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.js
CHANGED
|
@@ -237,7 +237,7 @@ var IconButtonGroup = (props) => {
|
|
|
237
237
|
"aria-label": item.ariaLabel,
|
|
238
238
|
disabled: item.disabled,
|
|
239
239
|
className: cn(
|
|
240
|
-
"rounded-none border-1 border-(--border-secondary) text-
|
|
240
|
+
"rounded-none border-1 border-(--border-secondary) text-primary ",
|
|
241
241
|
index === 0 && "rounded-l-6",
|
|
242
242
|
index === items.length - 1 && "rounded-r-6",
|
|
243
243
|
index > 0 && "-ml-px"
|
|
@@ -383,7 +383,7 @@ import { cva as cva6 } from "class-variance-authority";
|
|
|
383
383
|
import { UserIcon } from "@bubo-squared/icons";
|
|
384
384
|
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
385
385
|
var avatarVariants = cva6(
|
|
386
|
-
"relative inline-flex items-center justify-center rounded-full border-(--border-secondary) border-1 bg-(--background-primary) text-
|
|
386
|
+
"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",
|
|
387
387
|
{
|
|
388
388
|
variants: {
|
|
389
389
|
size: {
|
|
@@ -402,7 +402,7 @@ var avatarVariants = cva6(
|
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
404
|
var avatarInitialsVariants = cva6(
|
|
405
|
-
"flex items-center justify-center text-
|
|
405
|
+
"flex items-center justify-center text-primary leading-none ",
|
|
406
406
|
{
|
|
407
407
|
variants: {
|
|
408
408
|
size: {
|
|
@@ -493,16 +493,16 @@ var badgeVariants = cva7(
|
|
|
493
493
|
xl: "px-2 h6-title"
|
|
494
494
|
},
|
|
495
495
|
variant: {
|
|
496
|
-
primary: "bg-(--background-secondary) text-
|
|
497
|
-
secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-
|
|
498
|
-
active: "bg-
|
|
499
|
-
informal: "bg-
|
|
500
|
-
success: "bg-
|
|
501
|
-
warning: "bg-
|
|
502
|
-
error: "bg-
|
|
503
|
-
disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-
|
|
504
|
-
"double-default": "bg-(--background-secondary) text-
|
|
505
|
-
"double-current": "bg-
|
|
496
|
+
primary: "bg-(--background-secondary) text-primary",
|
|
497
|
+
secondary: "bg-(--background-primary) border-1 border-(--border-primary) text-primary",
|
|
498
|
+
active: "bg-ac-lilac text-badge-black",
|
|
499
|
+
informal: "bg-ac-neon-blue text-badge-black",
|
|
500
|
+
success: "bg-ac-neon-green text-badge-black",
|
|
501
|
+
warning: "bg-ac-light-orange text-badge-black",
|
|
502
|
+
error: "bg-s-error-300 text-badge-black",
|
|
503
|
+
disabled: "bg-(--background-primary-disabled) border-1 border-(--border-primary-disabled) text-primary-disabled",
|
|
504
|
+
"double-default": "bg-(--background-secondary) text-primary",
|
|
505
|
+
"double-current": "bg-color-ac-lilac text-badge-black"
|
|
506
506
|
}
|
|
507
507
|
},
|
|
508
508
|
defaultVariants: {
|
|
@@ -554,12 +554,12 @@ var badgeDigitVariants = cva8(
|
|
|
554
554
|
},
|
|
555
555
|
variant: {
|
|
556
556
|
primary: "bg-(--background-brand)",
|
|
557
|
-
secondary: "bg-(--background-primary) border-1 border-(--border-secondary) text-(--
|
|
557
|
+
secondary: "bg-(--background-primary) border-1 border-(--border-secondary) text-(--color-secondary)",
|
|
558
558
|
informal: "bg-(--background-informal)",
|
|
559
559
|
success: "bg-(--background-success)",
|
|
560
560
|
warning: "bg-(--background-warning)",
|
|
561
561
|
error: "bg-(--background-error)",
|
|
562
|
-
disabled: "bg-(--background-primary) border-1 border-(--border-primary-disabled) text-
|
|
562
|
+
disabled: "bg-(--background-primary) border-1 border-(--border-primary-disabled) text-primary-disabled"
|
|
563
563
|
}
|
|
564
564
|
},
|
|
565
565
|
defaultVariants: {
|
|
@@ -597,7 +597,7 @@ import { jsx as jsx11 } from "react/jsx-runtime";
|
|
|
597
597
|
var badgeDotVariants = cva9("rounded-12 size-3", {
|
|
598
598
|
variants: {
|
|
599
599
|
status: {
|
|
600
|
-
disabled: "bg-(--
|
|
600
|
+
disabled: "bg-(--color-primary)",
|
|
601
601
|
informal: "bg-(--background-informal)",
|
|
602
602
|
"success/online": "bg-(--background-success)",
|
|
603
603
|
warning: "bg-(--background-warning)",
|
|
@@ -625,7 +625,7 @@ var BadgeStatus = React10.forwardRef(
|
|
|
625
625
|
dotClassName,
|
|
626
626
|
...rest
|
|
627
627
|
} = props;
|
|
628
|
-
const textClasses = active ? "caption-medium text-
|
|
628
|
+
const textClasses = active ? "caption-medium text-primary" : "caption-medium text-primary-disabled";
|
|
629
629
|
const dotClasses = active ? "bg-(--background-informal)" : "bg-(--background-primary)";
|
|
630
630
|
return /* @__PURE__ */ jsxs6(
|
|
631
631
|
"div",
|
|
@@ -705,7 +705,7 @@ var Divider = (props) => {
|
|
|
705
705
|
{
|
|
706
706
|
className: cn(
|
|
707
707
|
textClassBySize[resolvedSize],
|
|
708
|
-
"text-(--
|
|
708
|
+
"text-(--color-secondary)"
|
|
709
709
|
),
|
|
710
710
|
children: textLabel
|
|
711
711
|
}
|
|
@@ -817,8 +817,8 @@ var Progress = React12.forwardRef(
|
|
|
817
817
|
...rest,
|
|
818
818
|
children: [
|
|
819
819
|
showLabel && label && /* @__PURE__ */ jsxs8("div", { className: "flex w-full items-center justify-between", children: [
|
|
820
|
-
/* @__PURE__ */ jsx14("span", { className: "paragraph-s-bold text-
|
|
821
|
-
/* @__PURE__ */ jsx14("span", { className: "footnote text-(--
|
|
820
|
+
/* @__PURE__ */ jsx14("span", { className: "paragraph-s-bold text-primary", children: label }),
|
|
821
|
+
/* @__PURE__ */ jsx14("span", { className: "footnote text-(--color-secondary)", children: percentageLabel })
|
|
822
822
|
] }),
|
|
823
823
|
/* @__PURE__ */ jsx14("div", { className: cn("w-full bg-(--chart-mono) overflow-hidden", barHeightClasses), children: /* @__PURE__ */ jsx14(
|
|
824
824
|
"div",
|
|
@@ -830,7 +830,7 @@ var Progress = React12.forwardRef(
|
|
|
830
830
|
style: { width: `${clamped}%` }
|
|
831
831
|
}
|
|
832
832
|
) }),
|
|
833
|
-
showHint && hint && /* @__PURE__ */ jsx14("p", { className: "caption text-(--
|
|
833
|
+
showHint && hint && /* @__PURE__ */ jsx14("p", { className: "caption text-(--color-secondary)", children: hint })
|
|
834
834
|
]
|
|
835
835
|
}
|
|
836
836
|
);
|
|
@@ -850,7 +850,7 @@ import {
|
|
|
850
850
|
} from "@bubo-squared/icons";
|
|
851
851
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
852
852
|
var iconStatusVariants = cva10(
|
|
853
|
-
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--
|
|
853
|
+
"inline-flex size-5 items-center justify-center rounded-full border-1 border-(--color-primary-inverse) p-1",
|
|
854
854
|
{
|
|
855
855
|
variants: {
|
|
856
856
|
variant: {
|
|
@@ -868,10 +868,10 @@ var iconStatusVariants = cva10(
|
|
|
868
868
|
);
|
|
869
869
|
var presenceDotBase = "inline-flex h-5 w-5 items-center justify-center";
|
|
870
870
|
var presenceDotByVariant = {
|
|
871
|
-
offline: "bg-(--background-primary) border-1 border-(--
|
|
872
|
-
online: "bg-(--background-success) border-1 border-(--
|
|
873
|
-
away: "bg-(--background-warning) border-1 border-(--
|
|
874
|
-
busy: "bg-(--background-error) border-1 border-(--
|
|
871
|
+
offline: "bg-(--background-primary) border-1 border-(--color-primary-inverse)",
|
|
872
|
+
online: "bg-(--background-success) border-1 border-(--color-primary-inverse)",
|
|
873
|
+
away: "bg-(--background-warning) border-1 border-(--color-primary-inverse)",
|
|
874
|
+
busy: "bg-(--background-error) border-1 border-(--color-primary-inverse)"
|
|
875
875
|
};
|
|
876
876
|
var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
877
877
|
const { variant = "verified", className, ...rest } = props;
|
|
@@ -898,11 +898,11 @@ var StatusAvatar = React13.forwardRef((props, ref) => {
|
|
|
898
898
|
className: cn(iconStatusVariants({ variant: iconVariant }), className),
|
|
899
899
|
...rest,
|
|
900
900
|
children: [
|
|
901
|
-
iconVariant === "verified" && /* @__PURE__ */ jsx15(CheckIcon, { className: "size-3 text-
|
|
902
|
-
iconVariant === "bookmark" && /* @__PURE__ */ jsx15(BookmarkCheckIcon, { className: "size-3 text-
|
|
903
|
-
iconVariant === "favorite" && /* @__PURE__ */ jsx15(StarIcon, { className: "size-3 text-
|
|
904
|
-
iconVariant === "add" && /* @__PURE__ */ jsx15(PlusIcon, { className: "size-3 text-
|
|
905
|
-
iconVariant === "remove" && /* @__PURE__ */ jsx15(CrossIcon, { className: "size-3 text-
|
|
901
|
+
iconVariant === "verified" && /* @__PURE__ */ jsx15(CheckIcon, { className: "size-3 text-button-white" }),
|
|
902
|
+
iconVariant === "bookmark" && /* @__PURE__ */ jsx15(BookmarkCheckIcon, { className: "size-3 text-button-white" }),
|
|
903
|
+
iconVariant === "favorite" && /* @__PURE__ */ jsx15(StarIcon, { className: "size-3 text-button-white" }),
|
|
904
|
+
iconVariant === "add" && /* @__PURE__ */ jsx15(PlusIcon, { className: "size-3 text-button-white" }),
|
|
905
|
+
iconVariant === "remove" && /* @__PURE__ */ jsx15(CrossIcon, { className: "size-3 text-button-white" })
|
|
906
906
|
]
|
|
907
907
|
}
|
|
908
908
|
);
|
|
@@ -928,8 +928,8 @@ var tagVariants = cva11(
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-
|
|
932
|
-
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-
|
|
931
|
+
var disabledTag = "pointer-events-none border-(--border-secondary-disabled) bg-(--background-neutral-disabled) text-primary-disabled";
|
|
932
|
+
var iconClasses = "flex items-center justify-center w-5 h-5 [&>*]:w-5 [&>*]:h-5 shrink-0 text-primary";
|
|
933
933
|
var Tag = React14.forwardRef(
|
|
934
934
|
(props, ref) => {
|
|
935
935
|
const {
|
|
@@ -953,10 +953,10 @@ var Tag = React14.forwardRef(
|
|
|
953
953
|
children: [
|
|
954
954
|
leading && /* @__PURE__ */ jsx16("div", { className: iconClasses, children: leading }),
|
|
955
955
|
value ? /* @__PURE__ */ jsxs10("div", { className: "flex flex-row gap-1 items-center", children: [
|
|
956
|
-
/* @__PURE__ */ jsx16("span", { className: "text-
|
|
957
|
-
/* @__PURE__ */ jsx16("span", { className: "text-
|
|
958
|
-
/* @__PURE__ */ jsx16("span", { className: "text-
|
|
959
|
-
] }) : /* @__PURE__ */ jsx16("span", { className: "text-
|
|
956
|
+
/* @__PURE__ */ jsx16("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: label }),
|
|
957
|
+
/* @__PURE__ */ jsx16("span", { className: "text-primary paragraph-l mb-0! cursor-default font-normal", children: ":" }),
|
|
958
|
+
/* @__PURE__ */ jsx16("span", { className: "text-primary paragraph-l-medium mb-0! cursor-default font-medium", children: value })
|
|
959
|
+
] }) : /* @__PURE__ */ jsx16("span", { className: "text-primary paragraph-l mb-0! cursor-default", children: label }),
|
|
960
960
|
trailing && /* @__PURE__ */ jsx16("div", { className: iconClasses, children: trailing })
|
|
961
961
|
]
|
|
962
962
|
}
|
|
@@ -976,9 +976,9 @@ function Checkbox({ label, className, ...props }) {
|
|
|
976
976
|
CheckboxPrimitive.Root,
|
|
977
977
|
{
|
|
978
978
|
className: cn(
|
|
979
|
-
"group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-
|
|
980
|
-
"data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-
|
|
981
|
-
"data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-
|
|
979
|
+
"group flex h-5 w-5 items-center justify-center rounded-2 border border-(--border-secondary) bg-(--background-neutral) text-primary-inverse",
|
|
980
|
+
"data-[state=checked]:bg-(--background-brand) data-[state=checked]:text-button-white data-[state=checked]:border-none",
|
|
981
|
+
"data-[state=indeterminate]:bg-(--background-brand) data-[state=indeterminate]:text-button-white data-[state=indeterminate]:border-none",
|
|
982
982
|
"data-[state=checked]:hover:bg-(--background-brand-hover) data-[state=indeterminate]:hover:bg-(--background-brand-hover)",
|
|
983
983
|
"focus-visible:border-(--border-brand)",
|
|
984
984
|
"disabled:bg-(--background-primary-disabled) disabled:border-none disabled:text-(--icon-primary-disabled)",
|
|
@@ -994,7 +994,7 @@ function Checkbox({ label, className, ...props }) {
|
|
|
994
994
|
] })
|
|
995
995
|
}
|
|
996
996
|
),
|
|
997
|
-
label && /* @__PURE__ */ jsx17("span", { className: "paragraph-m-medium text-
|
|
997
|
+
label && /* @__PURE__ */ jsx17("span", { className: "paragraph-m-medium text-primary", children: label })
|
|
998
998
|
] });
|
|
999
999
|
}
|
|
1000
1000
|
|
|
@@ -1005,7 +1005,7 @@ import { ChevronDownIcon } from "@bubo-squared/icons";
|
|
|
1005
1005
|
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1006
1006
|
var dropdownWrapperBase = "flex flex-col gap-2 items-start";
|
|
1007
1007
|
var dropdownTriggerVariants = cva12(
|
|
1008
|
-
"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-
|
|
1008
|
+
"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",
|
|
1009
1009
|
{
|
|
1010
1010
|
variants: {
|
|
1011
1011
|
size: {
|
|
@@ -1031,11 +1031,11 @@ var dropdownTextVariants = cva12("truncate", {
|
|
|
1031
1031
|
"extra-large": "h6-title"
|
|
1032
1032
|
},
|
|
1033
1033
|
hasValue: {
|
|
1034
|
-
false: "text-(--
|
|
1035
|
-
true: "text-
|
|
1034
|
+
false: "text-(--color-secondary)",
|
|
1035
|
+
true: "text-primary"
|
|
1036
1036
|
},
|
|
1037
1037
|
disabled: {
|
|
1038
|
-
true: "text-
|
|
1038
|
+
true: "text-primary-disabled"
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
1041
|
defaultVariants: {
|
|
@@ -1126,7 +1126,7 @@ var Dropdown = (props) => {
|
|
|
1126
1126
|
id: labelId,
|
|
1127
1127
|
className: cn(
|
|
1128
1128
|
"paragraph-s",
|
|
1129
|
-
disabled ? "text-
|
|
1129
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
1130
1130
|
),
|
|
1131
1131
|
children: label
|
|
1132
1132
|
}
|
|
@@ -1188,7 +1188,7 @@ var Dropdown = (props) => {
|
|
|
1188
1188
|
"button",
|
|
1189
1189
|
{
|
|
1190
1190
|
type: "button",
|
|
1191
|
-
className: "flex w-full items-center gap-2 pl-(--space-8) pr-(--space-16) py-(--space-8) text-left paragraph-l text-
|
|
1191
|
+
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)",
|
|
1192
1192
|
role: "option",
|
|
1193
1193
|
"aria-selected": selected,
|
|
1194
1194
|
onClick: () => handleSelect(opt.value),
|
|
@@ -1206,7 +1206,7 @@ var Dropdown = (props) => {
|
|
|
1206
1206
|
id: hintId,
|
|
1207
1207
|
className: cn(
|
|
1208
1208
|
"caption",
|
|
1209
|
-
disabled ? "text-
|
|
1209
|
+
disabled ? "text-primary-disabled" : "text-(--color-secondary)"
|
|
1210
1210
|
),
|
|
1211
1211
|
children: hint
|
|
1212
1212
|
}
|
|
@@ -1232,8 +1232,8 @@ var Field = (props) => {
|
|
|
1232
1232
|
const fieldId = React17.useId();
|
|
1233
1233
|
const labelId = label ? `${fieldId}-label` : void 0;
|
|
1234
1234
|
const hintId = hint ? `${fieldId}-hint` : void 0;
|
|
1235
|
-
const hintColorClass = disabled ? "text-
|
|
1236
|
-
const labelColorClass = disabled ? "text-
|
|
1235
|
+
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
1236
|
+
const labelColorClass = disabled ? "text-primary-disabled" : "text-primary";
|
|
1237
1237
|
return /* @__PURE__ */ jsxs13("div", { className: cn(fieldBase, className), children: [
|
|
1238
1238
|
label && /* @__PURE__ */ jsx19(
|
|
1239
1239
|
"label",
|
|
@@ -1265,7 +1265,7 @@ import * as React18 from "react";
|
|
|
1265
1265
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1266
1266
|
var Input = React18.forwardRef(
|
|
1267
1267
|
({ className, type, variant = "default", ...props }, ref) => {
|
|
1268
|
-
const base = "text-
|
|
1268
|
+
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";
|
|
1269
1269
|
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";
|
|
1270
1270
|
const bareStyles = "bg-transparent outline-none w-full";
|
|
1271
1271
|
return /* @__PURE__ */ jsx20(
|
|
@@ -1304,7 +1304,7 @@ var inputShellVariants = cva13(
|
|
|
1304
1304
|
error: "input-error"
|
|
1305
1305
|
},
|
|
1306
1306
|
disabled: {
|
|
1307
|
-
true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-
|
|
1307
|
+
true: "bg-(--background-primary-disabled) border-(--border-secondary-disabled) text-primary-disabled cursor-default"
|
|
1308
1308
|
}
|
|
1309
1309
|
},
|
|
1310
1310
|
defaultVariants: {
|
|
@@ -1340,8 +1340,8 @@ var passwordTextVariants = cva14("truncate", {
|
|
|
1340
1340
|
"extra-large": "h6-title"
|
|
1341
1341
|
},
|
|
1342
1342
|
disabled: {
|
|
1343
|
-
true: "text-
|
|
1344
|
-
false: "text-
|
|
1343
|
+
true: "text-primary-disabled",
|
|
1344
|
+
false: "text-primary"
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
1347
|
defaultVariants: {
|
|
@@ -1375,7 +1375,7 @@ var actionButtonVariants = cva14(
|
|
|
1375
1375
|
"extra-large": "paragraph-m"
|
|
1376
1376
|
},
|
|
1377
1377
|
disabled: {
|
|
1378
|
-
true: "cursor-default text-
|
|
1378
|
+
true: "cursor-default text-primary-disabled hover:text-primary-disabled"
|
|
1379
1379
|
}
|
|
1380
1380
|
},
|
|
1381
1381
|
defaultVariants: {
|
|
@@ -1589,13 +1589,13 @@ function CommandInput({
|
|
|
1589
1589
|
"data-slot": "command-input-wrapper",
|
|
1590
1590
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1591
1591
|
children: [
|
|
1592
|
-
/* @__PURE__ */ jsx25(SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--
|
|
1592
|
+
/* @__PURE__ */ jsx25(SearchIcon, { className: "size-4 shrink-0 opacity-50 text-(--color-secondary)" }),
|
|
1593
1593
|
/* @__PURE__ */ jsx25(
|
|
1594
1594
|
CommandPrimitive.Input,
|
|
1595
1595
|
{
|
|
1596
1596
|
"data-slot": "command-input",
|
|
1597
1597
|
className: cn(
|
|
1598
|
-
"placeholder:text-(--
|
|
1598
|
+
"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",
|
|
1599
1599
|
className
|
|
1600
1600
|
),
|
|
1601
1601
|
...props
|
|
@@ -1782,7 +1782,7 @@ var inputTextVariants = cva16("", {
|
|
|
1782
1782
|
"extra-large": "h6-title"
|
|
1783
1783
|
},
|
|
1784
1784
|
disabled: {
|
|
1785
|
-
true: "text-
|
|
1785
|
+
true: "text-primary-disabled border-(--border-secondary-disabled)"
|
|
1786
1786
|
}
|
|
1787
1787
|
},
|
|
1788
1788
|
defaultVariants: {
|
|
@@ -1881,7 +1881,7 @@ var CountrySelect = ({
|
|
|
1881
1881
|
{
|
|
1882
1882
|
type: "button",
|
|
1883
1883
|
variant: "outline",
|
|
1884
|
-
className: cn(inputBase, "flex gap-1 rounded-4 px-3 focus:z-10 mr-(--space-12) text-
|
|
1884
|
+
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)"),
|
|
1885
1885
|
disabled,
|
|
1886
1886
|
children: [
|
|
1887
1887
|
/* @__PURE__ */ jsx28(
|
|
@@ -1931,7 +1931,7 @@ var CountrySelect = ({
|
|
|
1931
1931
|
),
|
|
1932
1932
|
/* @__PURE__ */ jsx28(CommandList, { children: /* @__PURE__ */ jsxs18(ScrollArea, { ref: scrollAreaRef, className: "h-72", children: [
|
|
1933
1933
|
/* @__PURE__ */ jsx28(CommandEmpty, { children: "No country found." }),
|
|
1934
|
-
/* @__PURE__ */ jsx28(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-
|
|
1934
|
+
/* @__PURE__ */ jsx28(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(
|
|
1935
1935
|
({ value, label }) => value ? /* @__PURE__ */ jsx28(
|
|
1936
1936
|
CountrySelectOption,
|
|
1937
1937
|
{
|
|
@@ -1967,7 +1967,7 @@ var CountrySelectOption = (props) => {
|
|
|
1967
1967
|
return /* @__PURE__ */ jsxs18(
|
|
1968
1968
|
CommandItem,
|
|
1969
1969
|
{
|
|
1970
|
-
className: "gap-2 data-[selected=true]:text-
|
|
1970
|
+
className: "gap-2 data-[selected=true]:text-primary",
|
|
1971
1971
|
onSelect: handleSelect,
|
|
1972
1972
|
children: [
|
|
1973
1973
|
/* @__PURE__ */ jsx28(FlagComponent, { country, countryName }),
|
|
@@ -2017,8 +2017,8 @@ var RadioGroup = ({
|
|
|
2017
2017
|
"span",
|
|
2018
2018
|
{
|
|
2019
2019
|
className: cn(
|
|
2020
|
-
"paragraph-s text-
|
|
2021
|
-
disabled && "text-
|
|
2020
|
+
"paragraph-s text-primary",
|
|
2021
|
+
disabled && "text-primary-disabled"
|
|
2022
2022
|
),
|
|
2023
2023
|
children: label
|
|
2024
2024
|
}
|
|
@@ -2097,8 +2097,8 @@ var RadioGroup = ({
|
|
|
2097
2097
|
"span",
|
|
2098
2098
|
{
|
|
2099
2099
|
className: cn(
|
|
2100
|
-
"paragraph-s text-
|
|
2101
|
-
"group-data-[disabled]:text-
|
|
2100
|
+
"paragraph-s text-primary",
|
|
2101
|
+
"group-data-[disabled]:text-primary-disabled whitespace-nowrap"
|
|
2102
2102
|
),
|
|
2103
2103
|
children: option.label
|
|
2104
2104
|
}
|
|
@@ -2116,8 +2116,8 @@ var RadioGroup = ({
|
|
|
2116
2116
|
{
|
|
2117
2117
|
id: hintId,
|
|
2118
2118
|
className: cn(
|
|
2119
|
-
"caption text-(--
|
|
2120
|
-
disabled && "text-
|
|
2119
|
+
"caption text-(--color-secondary)",
|
|
2120
|
+
disabled && "text-primary-disabled"
|
|
2121
2121
|
),
|
|
2122
2122
|
children: hint ?? "\xA0"
|
|
2123
2123
|
}
|
|
@@ -2468,7 +2468,7 @@ var Slider = (props) => {
|
|
|
2468
2468
|
{
|
|
2469
2469
|
className: cn(
|
|
2470
2470
|
"paragraph-s",
|
|
2471
|
-
disabled ? "text-
|
|
2471
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
2472
2472
|
),
|
|
2473
2473
|
children: labelText
|
|
2474
2474
|
}
|
|
@@ -2560,8 +2560,8 @@ var Slider = (props) => {
|
|
|
2560
2560
|
"p",
|
|
2561
2561
|
{
|
|
2562
2562
|
className: cn(
|
|
2563
|
-
"paragraph-s text-
|
|
2564
|
-
disabled && "text-
|
|
2563
|
+
"paragraph-s text-primary",
|
|
2564
|
+
disabled && "text-primary-disabled"
|
|
2565
2565
|
),
|
|
2566
2566
|
children: formatNumericLabel()
|
|
2567
2567
|
}
|
|
@@ -2629,8 +2629,8 @@ var TextArea = (props) => {
|
|
|
2629
2629
|
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)]",
|
|
2630
2630
|
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)]"
|
|
2631
2631
|
};
|
|
2632
|
-
const hintColorClass = disabled ? "text-
|
|
2633
|
-
const counterColorClass = disabled ? "text-
|
|
2632
|
+
const hintColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-(--color-secondary)";
|
|
2633
|
+
const counterColorClass = disabled ? "text-primary-disabled" : status === "success" ? "text-(--color-success)" : status === "error" ? "text-(--color-error)" : "text-primary";
|
|
2634
2634
|
const handleResizePointerDown = (event) => {
|
|
2635
2635
|
if (disabled) return;
|
|
2636
2636
|
if (event.button !== 0) return;
|
|
@@ -2663,7 +2663,7 @@ var TextArea = (props) => {
|
|
|
2663
2663
|
id: labelId,
|
|
2664
2664
|
className: cn(
|
|
2665
2665
|
"paragraph-s",
|
|
2666
|
-
disabled ? "text-
|
|
2666
|
+
disabled ? "text-primary-disabled" : "text-primary"
|
|
2667
2667
|
),
|
|
2668
2668
|
children: label
|
|
2669
2669
|
}
|
|
@@ -2702,7 +2702,7 @@ var TextArea = (props) => {
|
|
|
2702
2702
|
maxLength: effectiveMaxLength,
|
|
2703
2703
|
className: cn(
|
|
2704
2704
|
"paragraph-m bg-transparent outline-none w-full h-full resize-none px-2 py-2 pr-8",
|
|
2705
|
-
disabled ? "text-
|
|
2705
|
+
disabled ? "text-primary-disabled" : hasValue ? "text-primary" : "text-(--color-secondary)",
|
|
2706
2706
|
showCharacterLimit && "pr-16"
|
|
2707
2707
|
),
|
|
2708
2708
|
...textareaProps
|
|
@@ -2961,8 +2961,8 @@ var Toggle = (props) => {
|
|
|
2961
2961
|
"span",
|
|
2962
2962
|
{
|
|
2963
2963
|
className: cn(
|
|
2964
|
-
"paragraph-s text-
|
|
2965
|
-
disabled && "text-
|
|
2964
|
+
"paragraph-s text-primary",
|
|
2965
|
+
disabled && "text-primary-disabled"
|
|
2966
2966
|
),
|
|
2967
2967
|
children: label
|
|
2968
2968
|
}
|
|
@@ -2996,7 +2996,7 @@ var WebsiteInput = (props) => {
|
|
|
2996
2996
|
const addonTextClass = cn(
|
|
2997
2997
|
"flex mb-0!",
|
|
2998
2998
|
size === "extra-large" ? "paragraph-m" : "paragraph-s",
|
|
2999
|
-
disabled ? "text-
|
|
2999
|
+
disabled ? "text-primary-disabled" : "text-primary group-hover:text-(--color-primary-hover) group-focus-within:text-(--color-primary-focus)"
|
|
3000
3000
|
);
|
|
3001
3001
|
const baseAddonClass = cn(
|
|
3002
3002
|
"flex items-center gap-2 px-2 h-full",
|
|
@@ -3150,8 +3150,8 @@ var breadcrumbTextVariants = cva19(
|
|
|
3150
3150
|
{
|
|
3151
3151
|
variants: {
|
|
3152
3152
|
variant: {
|
|
3153
|
-
colored: "text-(--
|
|
3154
|
-
flat: "text-
|
|
3153
|
+
colored: "text-(--color-brand) group-hover:text-(--color-brand-hover) group-focus-visible:text-(--color-brand-focus) group-disabled:text-(--color-brand-disabled)",
|
|
3154
|
+
flat: "text-primary group-hover:text-(--color-primary-hover) group-focus-visible:text-(--color-primary-focus) group-disabled:text-primary-disabled"
|
|
3155
3155
|
}
|
|
3156
3156
|
},
|
|
3157
3157
|
defaultVariants: {
|
|
@@ -3282,7 +3282,7 @@ var logoTextSizeVariants = cva21("", {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
});
|
|
3284
3284
|
var Logo = ({ className, textColor, variant = "inline" }) => {
|
|
3285
|
-
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-
|
|
3285
|
+
const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-primary";
|
|
3286
3286
|
return /* @__PURE__ */ jsxs29("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
|
|
3287
3287
|
/* @__PURE__ */ jsx39(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
|
|
3288
3288
|
/* @__PURE__ */ jsx39(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })
|