@povio/ui 2.3.3 → 3.0.0
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/components/Breadcrumbs/Breadcrumbs.js +11 -11
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +40 -14
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +21 -18
- package/dist/components/Menu/MenuItem.js +4 -4
- package/dist/components/Menu/MenuMobile.js +6 -6
- package/dist/components/Menu/MenuPopover.js +8 -8
- package/dist/components/Menu/menu.cva.d.ts +35 -13
- package/dist/components/Menu/menu.cva.js +30 -24
- package/dist/components/buttons/Button/Button.js +7 -7
- package/dist/components/buttons/Button/button.cva.d.ts +95 -26
- package/dist/components/buttons/Button/button.cva.js +601 -589
- package/dist/components/buttons/PillButton/PillButton.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -9
- package/dist/components/buttons/PillButton/pillButton.cva.js +247 -239
- package/dist/components/buttons/shared/ButtonContent.js +3 -3
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +3 -5
- package/dist/components/buttons/shared/buttonContent.cva.js +1 -8
- package/dist/components/inputs/Checkbox/Checkbox.js +2 -2
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +4 -4
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +23 -10
- package/dist/components/inputs/Checkbox/checkbox.cva.js +46 -40
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +4 -4
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -3
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +4 -4
- package/dist/components/inputs/File/shared/InputUploadContent.js +3 -3
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +26 -9
- package/dist/components/inputs/File/shared/fileUpload.cva.js +48 -40
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +23 -6
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +29 -20
- package/dist/components/inputs/FormField/FormFieldError.js +3 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +3 -3
- package/dist/components/inputs/FormField/FormFieldLabel.js +6 -6
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldError.cva.js +11 -8
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +11 -8
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +3 -3
- package/dist/components/inputs/Input/TextArea/TextArea.js +4 -4
- package/dist/components/inputs/Input/TextInput/TextInput.js +3 -3
- package/dist/components/inputs/Input/shared/InputContent.js +5 -5
- package/dist/components/inputs/RadioGroup/RadioGroup.js +4 -4
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +12 -6
- package/dist/components/inputs/RadioGroup/radio.cva.js +27 -24
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +4 -4
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +3 -3
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -6
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +21 -18
- package/dist/components/inputs/TextEditor/TextEditor.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -3
- package/dist/components/inputs/Toggle/Toggle.js +4 -4
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +12 -6
- package/dist/components/inputs/Toggle/toggle.cva.js +24 -21
- package/dist/components/inputs/shared/CheckContent.js +3 -3
- package/dist/components/inputs/shared/input.cva.d.ts +55 -16
- package/dist/components/inputs/shared/input.cva.js +279 -271
- package/dist/components/inputs/shared/label.cva.d.ts +15 -6
- package/dist/components/inputs/shared/label.cva.js +28 -25
- package/dist/components/navigation/Accordion/Accordion.js +3 -3
- package/dist/components/navigation/Accordion/AccordionItem.js +11 -11
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +109 -44
- package/dist/components/navigation/Accordion/accordion.cva.js +114 -84
- package/dist/components/navigation/Stepper/Stepper.js +3 -3
- package/dist/components/navigation/Stepper/StepperItem.js +12 -12
- package/dist/components/navigation/Stepper/StepperSeparator.js +3 -3
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +86 -30
- package/dist/components/navigation/Stepper/stepper.cva.js +104 -83
- package/dist/components/overlays/Modal/Modal.js +5 -5
- package/dist/components/overlays/Modal/modal.cva.d.ts +34 -9
- package/dist/components/overlays/Modal/modal.cva.js +38 -27
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -3
- package/dist/components/overlays/Tooltip/Tooltip.js +9 -9
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +45 -17
- package/dist/components/overlays/Tooltip/tooltip.cva.js +38 -26
- package/dist/components/segment/Segment.js +4 -4
- package/dist/components/segment/SegmentItem.js +4 -4
- package/dist/components/segment/segment.cva.d.ts +18 -7
- package/dist/components/segment/segment.cva.js +24 -21
- package/dist/components/shared/popover.cva.d.ts +7 -3
- package/dist/components/shared/popover.cva.js +3 -3
- package/dist/components/status/Alert/Alert.js +6 -6
- package/dist/components/status/Alert/alert.cva.d.ts +18 -6
- package/dist/components/status/Alert/alert.cva.js +60 -57
- package/dist/components/status/Loader/loader.cva.d.ts +23 -4
- package/dist/components/status/Loader/loader.cva.js +22 -13
- package/dist/components/status/Toast/Toast.js +6 -7
- package/dist/components/status/Toast/toast.cva.d.ts +61 -10
- package/dist/components/status/Toast/toast.cva.js +129 -64
- package/dist/components/status/shared/status.cva.d.ts +30 -8
- package/dist/components/status/shared/status.cva.js +56 -50
- package/dist/components/table/CellText.js +3 -3
- package/dist/components/table/HeaderText.js +3 -3
- package/dist/components/table/Table.js +6 -6
- package/dist/components/table/table.cva.d.ts +52 -19
- package/dist/components/table/table.cva.js +44 -35
- package/dist/components/text/Link/Link.js +3 -3
- package/dist/components/text/Link/link.cva.d.ts +11 -5
- package/dist/components/text/Link/link.cva.js +8 -5
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/components/text/Tag/tag.cva.d.ts +15 -5
- package/dist/components/text/Tag/tag.cva.js +51 -48
- package/dist/components/text/Typography/Typography.js +3 -3
- package/dist/components/text/Typography/typography.cva.d.ts +48 -7
- package/dist/components/text/Typography/typography.cva.js +125 -122
- package/dist/config/uiOverrides.context.d.ts +174 -0
- package/dist/config/uiOverrides.context.js +73 -0
- package/dist/index.d.ts +29 -1
- package/dist/index.js +30 -2
- package/dist/utils/style-merge.util.d.ts +43 -0
- package/dist/utils/style-merge.util.js +233 -0
- package/dist/utils/style-merge.util.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/uiStyle.context.d.ts +0 -162
- package/dist/config/uiStyle.context.js +0 -30
|
@@ -1,37 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const stepperDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly orientation: {
|
|
6
|
+
readonly horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal";
|
|
7
|
+
readonly vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export type StepperConfig = NonNullable<typeof stepperDefinition.config>;
|
|
12
|
+
export interface StepperVariantProps extends UIOverrides.VariantProps<StepperConfig> {
|
|
6
13
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
export declare const stepperItemDefinition: {
|
|
15
|
+
base: string[];
|
|
16
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
17
|
+
readonly contentOrientation: {
|
|
18
|
+
readonly horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left";
|
|
19
|
+
readonly vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center";
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export type StepperItemConfig = NonNullable<typeof stepperItemDefinition.config>;
|
|
24
|
+
export interface StepperItemVariantProps extends UIOverrides.VariantProps<StepperItemConfig> {
|
|
11
25
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
export declare const stepperIconDefinition: {
|
|
27
|
+
base: string[];
|
|
28
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
29
|
+
readonly status: {
|
|
30
|
+
readonly completed: ["border border-interactive-outlined-primary-outline-idle border-solid bg-interactive-contained-primary-idle", "group-hover:border-interactive-outlined-primary-outline-hover group-hover:bg-interactive-contained-primary-hover", "group-pressed:border-interactive-outlined-primary-outline-pressed group-pressed:bg-interactive-contained-primary-pressed"];
|
|
31
|
+
readonly active: "border border-interactive-outlined-primary-on-idle border-solid bg-interactive-outlined-primary-idle";
|
|
32
|
+
readonly todo: "border border-interactive-outlined-primary-outline-disabled border-solid bg-interactive-outlined-primary-disabled";
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export type StepperIconConfig = NonNullable<typeof stepperIconDefinition.config>;
|
|
37
|
+
export interface StepperIconVariantProps extends UIOverrides.VariantProps<StepperIconConfig> {
|
|
16
38
|
}
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
39
|
+
export declare const stepperNumberDefinition: {
|
|
40
|
+
base: string[];
|
|
41
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
42
|
+
readonly status: {
|
|
43
|
+
readonly completed: "";
|
|
44
|
+
readonly active: "text-interactive-outlined-primary-on-idle";
|
|
45
|
+
readonly todo: "text-interactive-outlined-primary-on-disabled";
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export type StepperNumberConfig = NonNullable<typeof stepperNumberDefinition.config>;
|
|
50
|
+
export interface StepperNumberVariantProps extends UIOverrides.VariantProps<StepperNumberConfig> {
|
|
21
51
|
}
|
|
22
|
-
export declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
export declare const stepperTitleDefinition: {
|
|
53
|
+
base: string[];
|
|
54
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
55
|
+
readonly status: {
|
|
56
|
+
readonly completed: ["text-interactive-text-secondary-idle", "group-hover:text-interactive-text-secondary-hover", "group-pressed:text-interactive-text-secondary-pressed"];
|
|
57
|
+
readonly active: "text-interactive-text-primary-idle";
|
|
58
|
+
readonly todo: "text-interactive-text-secondary-disabled";
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
export type StepperTitleConfig = NonNullable<typeof stepperTitleDefinition.config>;
|
|
63
|
+
export interface StepperTitleVariantProps extends UIOverrides.VariantProps<StepperTitleConfig> {
|
|
26
64
|
}
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
65
|
+
export declare const stepperSubtextDefinition: {
|
|
66
|
+
base: string[];
|
|
67
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
68
|
+
readonly status: {
|
|
69
|
+
readonly completed: ["text-interactive-text-secondary-idle", "group-hover:text-interactive-text-secondary-hover", "group-pressed:text-interactive-text-secondary-pressed"];
|
|
70
|
+
readonly active: "text-interactive-text-secondary-idle";
|
|
71
|
+
readonly todo: "text-interactive-text-secondary-disabled";
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
export type StepperSubtextConfig = NonNullable<typeof stepperSubtextDefinition.config>;
|
|
76
|
+
export interface StepperSubtextVariantProps extends UIOverrides.VariantProps<StepperSubtextConfig> {
|
|
31
77
|
}
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
78
|
+
export declare const stepperSeparatorDefinition: {
|
|
79
|
+
base: string[];
|
|
80
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
81
|
+
readonly orientation: {
|
|
82
|
+
readonly horizontal: "h-px min-w-4 flex-1";
|
|
83
|
+
readonly vertical: "min-h-16 w-px";
|
|
84
|
+
};
|
|
85
|
+
readonly contentOrientation: {
|
|
86
|
+
readonly horizontal: "";
|
|
87
|
+
readonly vertical: "";
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
export type StepperSeparatorConfig = NonNullable<typeof stepperSeparatorDefinition.config>;
|
|
92
|
+
export interface StepperSeparatorVariantProps extends UIOverrides.VariantProps<StepperSeparatorConfig> {
|
|
37
93
|
}
|
|
@@ -1,95 +1,116 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
//#region src/components/navigation/Stepper/stepper.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
var stepperDefinition = UIOverrides.defineConfig({
|
|
4
|
+
base: [""],
|
|
5
|
+
config: {
|
|
6
|
+
variants: { orientation: {
|
|
7
|
+
horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal",
|
|
8
|
+
vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical"
|
|
9
|
+
} },
|
|
10
|
+
defaultVariants: { orientation: "horizontal" }
|
|
11
|
+
}
|
|
9
12
|
});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
var stepperItemDefinition = UIOverrides.defineConfig({
|
|
14
|
+
base: ["flex shrink-0"],
|
|
15
|
+
config: {
|
|
16
|
+
variants: { contentOrientation: {
|
|
17
|
+
horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left",
|
|
18
|
+
vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { contentOrientation: "horizontal" }
|
|
21
|
+
}
|
|
16
22
|
});
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
var stepperIconDefinition = UIOverrides.defineConfig({
|
|
24
|
+
base: ["inline-flex size-5 shrink-0 items-center justify-center rounded-stepper-rounding-icon"],
|
|
25
|
+
config: {
|
|
26
|
+
variants: { status: {
|
|
27
|
+
completed: [
|
|
28
|
+
"border border-interactive-outlined-primary-outline-idle border-solid bg-interactive-contained-primary-idle",
|
|
29
|
+
"group-hover:border-interactive-outlined-primary-outline-hover group-hover:bg-interactive-contained-primary-hover",
|
|
30
|
+
"group-pressed:border-interactive-outlined-primary-outline-pressed group-pressed:bg-interactive-contained-primary-pressed"
|
|
31
|
+
],
|
|
32
|
+
active: "border border-interactive-outlined-primary-on-idle border-solid bg-interactive-outlined-primary-idle",
|
|
33
|
+
todo: "border border-interactive-outlined-primary-outline-disabled border-solid bg-interactive-outlined-primary-disabled"
|
|
34
|
+
} },
|
|
35
|
+
defaultVariants: { status: "todo" }
|
|
36
|
+
}
|
|
28
37
|
});
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
var stepperNumberDefinition = UIOverrides.defineConfig({
|
|
39
|
+
base: ["text-center align-middle"],
|
|
40
|
+
config: {
|
|
41
|
+
variants: { status: {
|
|
42
|
+
completed: "",
|
|
43
|
+
active: "text-interactive-outlined-primary-on-idle",
|
|
44
|
+
todo: "text-interactive-outlined-primary-on-disabled"
|
|
45
|
+
} },
|
|
46
|
+
defaultVariants: { status: "todo" }
|
|
47
|
+
}
|
|
36
48
|
});
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
var stepperTitleDefinition = UIOverrides.defineConfig({
|
|
50
|
+
base: [""],
|
|
51
|
+
config: {
|
|
52
|
+
variants: { status: {
|
|
53
|
+
completed: [
|
|
54
|
+
"text-interactive-text-secondary-idle",
|
|
55
|
+
"group-hover:text-interactive-text-secondary-hover",
|
|
56
|
+
"group-pressed:text-interactive-text-secondary-pressed"
|
|
57
|
+
],
|
|
58
|
+
active: "text-interactive-text-primary-idle",
|
|
59
|
+
todo: "text-interactive-text-secondary-disabled"
|
|
60
|
+
} },
|
|
61
|
+
defaultVariants: { status: "todo" }
|
|
62
|
+
}
|
|
48
63
|
});
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
var stepperSubtextDefinition = UIOverrides.defineConfig({
|
|
65
|
+
base: [""],
|
|
66
|
+
config: {
|
|
67
|
+
variants: { status: {
|
|
68
|
+
completed: [
|
|
69
|
+
"text-interactive-text-secondary-idle",
|
|
70
|
+
"group-hover:text-interactive-text-secondary-hover",
|
|
71
|
+
"group-pressed:text-interactive-text-secondary-pressed"
|
|
72
|
+
],
|
|
73
|
+
active: "text-interactive-text-secondary-idle",
|
|
74
|
+
todo: "text-interactive-text-secondary-disabled"
|
|
75
|
+
} },
|
|
76
|
+
defaultVariants: { status: "todo" }
|
|
77
|
+
}
|
|
60
78
|
});
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
var stepperSeparatorDefinition = UIOverrides.defineConfig({
|
|
80
|
+
base: ["bg-elevation-outline-default-1"],
|
|
81
|
+
config: {
|
|
82
|
+
variants: {
|
|
83
|
+
orientation: {
|
|
84
|
+
horizontal: "h-px min-w-4 flex-1",
|
|
85
|
+
vertical: "min-h-16 w-px"
|
|
86
|
+
},
|
|
87
|
+
contentOrientation: {
|
|
88
|
+
horizontal: "",
|
|
89
|
+
vertical: ""
|
|
90
|
+
}
|
|
66
91
|
},
|
|
67
|
-
|
|
68
|
-
horizontal: "",
|
|
69
|
-
vertical: ""
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
defaultVariants: {
|
|
73
|
-
orientation: "horizontal",
|
|
74
|
-
contentOrientation: "horizontal"
|
|
75
|
-
},
|
|
76
|
-
compoundVariants: [
|
|
77
|
-
{
|
|
92
|
+
defaultVariants: {
|
|
78
93
|
orientation: "horizontal",
|
|
79
|
-
contentOrientation: "
|
|
80
|
-
className: "mt-stepper-horizontal-line-top self-start"
|
|
94
|
+
contentOrientation: "horizontal"
|
|
81
95
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
compoundVariants: [
|
|
97
|
+
{
|
|
98
|
+
orientation: "horizontal",
|
|
99
|
+
contentOrientation: "vertical",
|
|
100
|
+
className: "mt-stepper-horizontal-line-top self-start"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
orientation: "vertical",
|
|
104
|
+
contentOrientation: "vertical",
|
|
105
|
+
className: "self-center"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
orientation: "vertical",
|
|
109
|
+
contentOrientation: "horizontal",
|
|
110
|
+
className: "ml-stepper-vertical-line-side"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
93
114
|
});
|
|
94
115
|
//#endregion
|
|
95
|
-
export {
|
|
116
|
+
export { stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
3
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
4
|
import "../../../config/i18n.js";
|
|
5
|
-
import {
|
|
5
|
+
import { modalContentDefinition, modalMainDefinition, modalOverlayDefinition } from "./modal.cva.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { Dialog, Modal, ModalOverlay } from "react-aria-components";
|
|
@@ -10,9 +10,9 @@ import { useTranslation } from "react-i18next";
|
|
|
10
10
|
//#region src/components/overlays/Modal/Modal.tsx
|
|
11
11
|
var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside }) => {
|
|
12
12
|
const { t } = useTranslation("ui");
|
|
13
|
-
const modalMainCva =
|
|
14
|
-
const modalContentCva =
|
|
15
|
-
const modalOverlayCva =
|
|
13
|
+
const modalMainCva = UIOverrides.useCva("modal.mainCva", modalMainDefinition);
|
|
14
|
+
const modalContentCva = UIOverrides.useCva("modal.contentCva", modalContentDefinition);
|
|
15
|
+
const modalOverlayCva = UIOverrides.useCva("modal.overlayCva", modalOverlayDefinition);
|
|
16
16
|
return /* @__PURE__ */ jsx(ModalOverlay, {
|
|
17
17
|
UNSTABLE_portalContainer: portalContainerRef?.current,
|
|
18
18
|
className: modalOverlayCva({
|
|
@@ -1,12 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const modalContentDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly aside: {
|
|
6
|
+
readonly left: "h-screen rounded-none border-r";
|
|
7
|
+
readonly right: "h-screen rounded-none border-l";
|
|
8
|
+
readonly center: "rounded-modal-rounding-default border";
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export type ModalConfig = NonNullable<typeof modalContentDefinition.config>;
|
|
13
|
+
export interface ModalVariantProps extends UIOverrides.VariantProps<ModalConfig> {
|
|
3
14
|
}
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
15
|
+
export declare const modalOverlayDefinition: {
|
|
16
|
+
base: string[];
|
|
17
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
18
|
+
readonly aside: {
|
|
19
|
+
readonly left: "p-0";
|
|
20
|
+
readonly right: "p-0";
|
|
21
|
+
readonly center: "p-4";
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
7
25
|
export declare const modalOverlay: (props?: ({
|
|
8
|
-
aside?: "left" | "right" | "center" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
export declare const modalMain: (props?: ({
|
|
11
|
-
aside?: "left" | "right" | "center" | null | undefined;
|
|
26
|
+
readonly aside?: "left" | "right" | "center" | null | undefined;
|
|
12
27
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
28
|
+
export declare const modalMainDefinition: {
|
|
29
|
+
base: string[];
|
|
30
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
31
|
+
readonly aside: {
|
|
32
|
+
readonly left: "entering:animate-drawer-enter-left exiting:animate-drawer-exit-left justify-start";
|
|
33
|
+
readonly right: "entering:animate-drawer-enter-right exiting:animate-drawer-exit-right justify-end";
|
|
34
|
+
readonly center: "justify-center";
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
@@ -1,33 +1,44 @@
|
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
2
|
import { cva } from "class-variance-authority";
|
|
2
3
|
//#region src/components/overlays/Modal/modal.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
var modalContentDefinition = UIOverrides.defineConfig({
|
|
5
|
+
base: [
|
|
6
|
+
"relative flex flex-col items-center gap-modal-gap-content px-modal-side-mobile py-modal-height-mobile md:px-modal-side-desktop md:py-modal-height-desktop",
|
|
7
|
+
"w-fit max-w-full [&>*]:max-w-full",
|
|
8
|
+
"border-elevation-outline-default-1 bg-elevation-fill-default-1 outline-none",
|
|
9
|
+
"pointer-events-auto"
|
|
10
|
+
],
|
|
11
|
+
config: {
|
|
12
|
+
variants: { aside: {
|
|
13
|
+
left: "h-screen rounded-none border-r",
|
|
14
|
+
right: "h-screen rounded-none border-l",
|
|
15
|
+
center: "rounded-modal-rounding-default border"
|
|
16
|
+
} },
|
|
17
|
+
defaultVariants: { aside: "center" }
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
var modalOverlayDefinition = UIOverrides.defineConfig({
|
|
21
|
+
base: ["fixed inset-0 z-10 flex h-(--visual-viewport-height) w-screen overflow-y-auto bg-support-overlay"],
|
|
22
|
+
config: {
|
|
23
|
+
variants: { aside: {
|
|
24
|
+
left: "p-0",
|
|
25
|
+
right: "p-0",
|
|
26
|
+
center: "p-4"
|
|
27
|
+
} },
|
|
28
|
+
defaultVariants: { aside: "center" }
|
|
29
|
+
}
|
|
23
30
|
});
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
var modalOverlay = cva(modalOverlayDefinition.base, modalOverlayDefinition.config);
|
|
32
|
+
var modalMainDefinition = UIOverrides.defineConfig({
|
|
33
|
+
base: ["pointer-events-none my-auto flex w-full"],
|
|
34
|
+
config: {
|
|
35
|
+
variants: { aside: {
|
|
36
|
+
left: "entering:animate-drawer-enter-left exiting:animate-drawer-exit-left justify-start",
|
|
37
|
+
right: "entering:animate-drawer-enter-right exiting:animate-drawer-exit-right justify-end",
|
|
38
|
+
center: "justify-center"
|
|
39
|
+
} },
|
|
40
|
+
defaultVariants: { aside: "center" }
|
|
41
|
+
}
|
|
31
42
|
});
|
|
32
43
|
//#endregion
|
|
33
|
-
export {
|
|
44
|
+
export { modalContentDefinition, modalMainDefinition, modalOverlay, modalOverlayDefinition };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { BottomSheet } from "../BottomSheet/BottomSheet.js";
|
|
3
3
|
import { useBreakpoint } from "../../../hooks/useBreakpoint.js";
|
|
4
|
-
import {
|
|
4
|
+
import { popoverDefinition } from "../../shared/popover.cva.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
8
8
|
//#region src/components/overlays/ResponsivePopover/ResponsivePopover.tsx
|
|
9
9
|
var ResponsivePopover = ({ trigger, isOpen, onOpenChange, children, popoverClassName, sheetLabel }) => {
|
|
10
|
-
const popoverCva =
|
|
10
|
+
const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
|
|
11
11
|
if (!useBreakpoint("md")) return /* @__PURE__ */ jsx(BottomSheet, {
|
|
12
12
|
isOpen,
|
|
13
13
|
onOpenChange,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PointerHorizontalIcon } from "../../../assets/icons/PointerHorizontal.js";
|
|
2
2
|
import { PointerVerticalIcon } from "../../../assets/icons/PointerVertical.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
4
|
+
import { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition } from "./tooltip.cva.js";
|
|
5
5
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
@@ -21,10 +21,10 @@ var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
var Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }) => {
|
|
24
|
-
const tooltipCva
|
|
25
|
-
const tooltipPointerHorizontalCva
|
|
26
|
-
const tooltipPointerVerticalCva
|
|
27
|
-
const tooltipTextCva
|
|
24
|
+
const tooltipCva = UIOverrides.useCva("tooltip.cva", tooltipDefinition);
|
|
25
|
+
const tooltipPointerHorizontalCva = UIOverrides.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalDefinition);
|
|
26
|
+
const tooltipPointerVerticalCva = UIOverrides.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalDefinition);
|
|
27
|
+
const tooltipTextCva = UIOverrides.useCva("tooltip.textCva", tooltipTextDefinition);
|
|
28
28
|
const Trigger = isNonInteractiveTrigger ? CustomTrigger : Fragment$1;
|
|
29
29
|
return /* @__PURE__ */ jsxs(TooltipTrigger, {
|
|
30
30
|
delay: delay ?? 0,
|
|
@@ -36,15 +36,15 @@ var Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonIn
|
|
|
36
36
|
children
|
|
37
37
|
}) : /* @__PURE__ */ jsx(Trigger, { children }), /* @__PURE__ */ jsxs(Tooltip, {
|
|
38
38
|
...tooltipProps,
|
|
39
|
-
className: tooltipCva
|
|
39
|
+
className: tooltipCva({
|
|
40
40
|
color,
|
|
41
41
|
className: tooltipProps.className
|
|
42
42
|
}),
|
|
43
43
|
offset: 13,
|
|
44
|
-
children: [/* @__PURE__ */ jsxs(OverlayArrow, { children: [/* @__PURE__ */ jsx(PointerHorizontalIcon, { className: tooltipPointerHorizontalCva
|
|
44
|
+
children: [/* @__PURE__ */ jsxs(OverlayArrow, { children: [/* @__PURE__ */ jsx(PointerHorizontalIcon, { className: tooltipPointerHorizontalCva({ color }) }), /* @__PURE__ */ jsx(PointerVerticalIcon, { className: tooltipPointerVerticalCva({ color }) })] }), /* @__PURE__ */ jsx(Typography, {
|
|
45
45
|
size: "body-4",
|
|
46
46
|
variant: "prominent-1",
|
|
47
|
-
className: tooltipTextCva
|
|
47
|
+
className: tooltipTextCva({ color }),
|
|
48
48
|
children: text
|
|
49
49
|
})]
|
|
50
50
|
})]
|
|
@@ -1,21 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const tooltipDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly color: {
|
|
6
|
+
readonly default: ["bg-interactive-contained-secondary-idle"];
|
|
7
|
+
readonly error: ["w-max bg-elevation-fill-error-1"];
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export type TooltipConfig = NonNullable<typeof tooltipDefinition.config>;
|
|
12
|
+
export interface TooltipVariantProps extends UIOverrides.VariantProps<TooltipConfig> {
|
|
6
13
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
export declare const tooltipPointerHorizontalDefinition: {
|
|
15
|
+
base: string[];
|
|
16
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
17
|
+
readonly color: {
|
|
18
|
+
readonly default: ["text-interactive-contained-secondary-idle"];
|
|
19
|
+
readonly error: ["text-elevation-fill-error-1"];
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export type TooltipPointerHorizontalConfig = NonNullable<typeof tooltipPointerHorizontalDefinition.config>;
|
|
24
|
+
export interface TooltipPointerHorizontalVariantProps extends UIOverrides.VariantProps<TooltipPointerHorizontalConfig> {
|
|
11
25
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
export declare const tooltipPointerVerticalDefinition: {
|
|
27
|
+
base: string[];
|
|
28
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
29
|
+
readonly color: {
|
|
30
|
+
readonly default: ["text-interactive-contained-secondary-idle"];
|
|
31
|
+
readonly error: ["text-elevation-fill-error-1"];
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
export type TooltipPointerVerticalConfig = NonNullable<typeof tooltipPointerVerticalDefinition.config>;
|
|
36
|
+
export interface TooltipPointerVerticalVariantProps extends UIOverrides.VariantProps<TooltipPointerVerticalConfig> {
|
|
16
37
|
}
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
38
|
+
export declare const tooltipTextDefinition: {
|
|
39
|
+
base: string[];
|
|
40
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
41
|
+
readonly color: {
|
|
42
|
+
readonly default: ["text-interactive-contained-secondary-on-idle"];
|
|
43
|
+
readonly error: ["text-text-error-inverted-1"];
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export type TooltipTextConfig = NonNullable<typeof tooltipTextDefinition.config>;
|
|
48
|
+
export interface TooltipTextVariantProps extends UIOverrides.VariantProps<TooltipTextConfig> {
|
|
21
49
|
}
|