@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,9 +1,9 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
3
|
import { Typography } from "../Typography/Typography.js";
|
|
4
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
5
|
import "../../../config/i18n.js";
|
|
6
|
-
import {
|
|
6
|
+
import { tagDefinition } from "./tag.cva.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { Button } from "react-aria-components";
|
|
@@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
|
|
|
12
12
|
var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
|
|
13
13
|
const uiConfig = UIConfig.useConfig();
|
|
14
14
|
const { textVariant = uiConfig.tag.textVariant, textSize = uiConfig.tag.textSize } = props;
|
|
15
|
-
const tagCva =
|
|
15
|
+
const tagCva = UIOverrides.useCva("tag.cva", tagDefinition);
|
|
16
16
|
const { t } = useTranslation("ui");
|
|
17
17
|
const buttonProps = {
|
|
18
18
|
isDisabled,
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const tagDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly color: {
|
|
6
|
+
readonly primary: ["bg-interactive-subtle-primary-idle text-interactive-subtle-primary-on-idle", "hover:bg-interactive-subtle-primary-hover hover:text-interactive-subtle-primary-on-hover", "pressed:bg-interactive-subtle-primary-pressed pressed:text-interactive-subtle-primary-on-pressed", "disabled:bg-interactive-subtle-primary-disabled disabled:text-interactive-subtle-primary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
|
|
7
|
+
readonly secondary: ["bg-interactive-subtle-secondary-idle text-interactive-subtle-secondary-on-idle", "hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover", "pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed", "disabled:bg-interactive-subtle-secondary-disabled disabled:text-interactive-subtle-secondary-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
|
|
8
|
+
readonly success: ["bg-interactive-subtle-success-idle text-interactive-subtle-success-on-idle", "hover:bg-interactive-subtle-success-hover hover:text-interactive-subtle-success-on-hover", "pressed:bg-interactive-subtle-success-pressed pressed:text-interactive-subtle-success-on-pressed", "disabled:bg-interactive-subtle-success-disabled disabled:text-interactive-subtle-success-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
|
|
9
|
+
readonly warning: ["bg-interactive-subtle-warning-idle text-interactive-subtle-warning-on-idle", "hover:bg-interactive-subtle-warning-hover hover:text-interactive-subtle-warning-on-hover", "pressed:bg-interactive-subtle-warning-pressed pressed:text-interactive-subtle-warning-on-pressed", "disabled:bg-interactive-subtle-warning-disabled disabled:text-interactive-subtle-warning-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
|
|
10
|
+
readonly error: ["bg-interactive-subtle-error-idle text-interactive-subtle-error-on-idle", "hover:bg-interactive-subtle-error-hover hover:text-interactive-subtle-error-on-hover", "pressed:bg-interactive-subtle-error-pressed pressed:text-interactive-subtle-error-on-pressed", "disabled:bg-interactive-subtle-error-disabled disabled:text-interactive-subtle-error-on-disabled", "focus-visible:outline-interactive-contained-primary-focus"];
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export type TagConfig = NonNullable<typeof tagDefinition.config>;
|
|
15
|
+
export interface TagVariantProps extends UIOverrides.VariantProps<TagConfig> {
|
|
6
16
|
}
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
2
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
3
|
//#region src/components/text/Tag/tag.cva.ts
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
4
|
+
var tagDefinition = UIOverrides.defineConfig({
|
|
5
|
+
base: [
|
|
6
|
+
uiOutlineClass,
|
|
7
|
+
"inline-flex items-center gap-list-gap-icon-to-label",
|
|
8
|
+
"p-pill-height-s px-1-5",
|
|
9
|
+
"rounded-pill-rounding-default",
|
|
10
|
+
"overflow-hidden",
|
|
11
|
+
"disabled:cursor-default"
|
|
12
|
+
],
|
|
13
|
+
config: {
|
|
14
|
+
variants: { color: {
|
|
15
|
+
primary: [
|
|
16
|
+
"bg-interactive-subtle-primary-idle text-interactive-subtle-primary-on-idle",
|
|
17
|
+
"hover:bg-interactive-subtle-primary-hover hover:text-interactive-subtle-primary-on-hover",
|
|
18
|
+
"pressed:bg-interactive-subtle-primary-pressed pressed:text-interactive-subtle-primary-on-pressed",
|
|
19
|
+
"disabled:bg-interactive-subtle-primary-disabled disabled:text-interactive-subtle-primary-on-disabled",
|
|
20
|
+
"focus-visible:outline-interactive-contained-primary-focus"
|
|
21
|
+
],
|
|
22
|
+
secondary: [
|
|
23
|
+
"bg-interactive-subtle-secondary-idle text-interactive-subtle-secondary-on-idle",
|
|
24
|
+
"hover:bg-interactive-subtle-secondary-hover hover:text-interactive-subtle-secondary-on-hover",
|
|
25
|
+
"pressed:bg-interactive-subtle-secondary-pressed pressed:text-interactive-subtle-secondary-on-pressed",
|
|
26
|
+
"disabled:bg-interactive-subtle-secondary-disabled disabled:text-interactive-subtle-secondary-on-disabled",
|
|
27
|
+
"focus-visible:outline-interactive-contained-primary-focus"
|
|
28
|
+
],
|
|
29
|
+
success: [
|
|
30
|
+
"bg-interactive-subtle-success-idle text-interactive-subtle-success-on-idle",
|
|
31
|
+
"hover:bg-interactive-subtle-success-hover hover:text-interactive-subtle-success-on-hover",
|
|
32
|
+
"pressed:bg-interactive-subtle-success-pressed pressed:text-interactive-subtle-success-on-pressed",
|
|
33
|
+
"disabled:bg-interactive-subtle-success-disabled disabled:text-interactive-subtle-success-on-disabled",
|
|
34
|
+
"focus-visible:outline-interactive-contained-primary-focus"
|
|
35
|
+
],
|
|
36
|
+
warning: [
|
|
37
|
+
"bg-interactive-subtle-warning-idle text-interactive-subtle-warning-on-idle",
|
|
38
|
+
"hover:bg-interactive-subtle-warning-hover hover:text-interactive-subtle-warning-on-hover",
|
|
39
|
+
"pressed:bg-interactive-subtle-warning-pressed pressed:text-interactive-subtle-warning-on-pressed",
|
|
40
|
+
"disabled:bg-interactive-subtle-warning-disabled disabled:text-interactive-subtle-warning-on-disabled",
|
|
41
|
+
"focus-visible:outline-interactive-contained-primary-focus"
|
|
42
|
+
],
|
|
43
|
+
error: [
|
|
44
|
+
"bg-interactive-subtle-error-idle text-interactive-subtle-error-on-idle",
|
|
45
|
+
"hover:bg-interactive-subtle-error-hover hover:text-interactive-subtle-error-on-hover",
|
|
46
|
+
"pressed:bg-interactive-subtle-error-pressed pressed:text-interactive-subtle-error-on-pressed",
|
|
47
|
+
"disabled:bg-interactive-subtle-error-disabled disabled:text-interactive-subtle-error-on-disabled",
|
|
48
|
+
"focus-visible:outline-interactive-contained-primary-focus"
|
|
49
|
+
]
|
|
50
|
+
} },
|
|
51
|
+
defaultVariants: { color: "primary" }
|
|
52
|
+
}
|
|
50
53
|
});
|
|
51
54
|
//#endregion
|
|
52
|
-
export {
|
|
55
|
+
export { tagDefinition };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
+
import { typographyDefinition } from "./typography.cva.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/text/Typography/Typography.tsx
|
|
5
5
|
var Typography = ({ as = "p", className, ...props }) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(as, {
|
|
7
|
-
className:
|
|
7
|
+
className: UIOverrides.useCva("typography.cva", typographyDefinition)({
|
|
8
8
|
...props,
|
|
9
9
|
sizeMobile: props.sizeMobile ?? props.size,
|
|
10
10
|
className
|
|
@@ -1,8 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const typographyDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly "headline-1": "md:text-desktop-headline-1";
|
|
7
|
+
readonly "title-1": "md:text-desktop-title-1";
|
|
8
|
+
readonly "title-2": "md:text-desktop-title-2";
|
|
9
|
+
readonly "title-3": "md:text-desktop-title-3";
|
|
10
|
+
readonly "title-4": "md:text-desktop-title-4";
|
|
11
|
+
readonly "title-5": "md:text-desktop-title-5";
|
|
12
|
+
readonly "title-6": "md:text-desktop-title-6";
|
|
13
|
+
readonly "body-1": "md:text-desktop-body-1";
|
|
14
|
+
readonly "body-2": "md:text-desktop-body-2";
|
|
15
|
+
readonly "body-3": "md:text-desktop-body-3";
|
|
16
|
+
readonly "body-4": "md:text-desktop-body-4";
|
|
17
|
+
readonly "label-1": "md:text-label-1";
|
|
18
|
+
readonly "label-2": "md:text-label-2";
|
|
19
|
+
readonly "label-3": "md:text-label-3";
|
|
20
|
+
};
|
|
21
|
+
readonly sizeMobile: {
|
|
22
|
+
readonly "headline-1": "text-mobile-headline-1";
|
|
23
|
+
readonly "title-1": "text-mobile-title-1";
|
|
24
|
+
readonly "title-2": "text-mobile-title-2";
|
|
25
|
+
readonly "title-3": "text-mobile-title-3";
|
|
26
|
+
readonly "title-4": "text-mobile-title-4";
|
|
27
|
+
readonly "title-5": "text-mobile-title-5";
|
|
28
|
+
readonly "title-6": "text-mobile-title-6";
|
|
29
|
+
readonly "body-1": "text-mobile-body-1";
|
|
30
|
+
readonly "body-2": "text-mobile-body-2";
|
|
31
|
+
readonly "body-3": "text-mobile-body-3";
|
|
32
|
+
readonly "body-4": "text-mobile-body-4";
|
|
33
|
+
readonly "label-1": "text-label-1";
|
|
34
|
+
readonly "label-2": "text-label-2";
|
|
35
|
+
readonly "label-3": "text-label-3";
|
|
36
|
+
};
|
|
37
|
+
readonly variant: {
|
|
38
|
+
readonly default: "";
|
|
39
|
+
readonly "prominent-1": "";
|
|
40
|
+
readonly "default-italic": "italic";
|
|
41
|
+
readonly "prominent-1-italic": "italic";
|
|
42
|
+
readonly "prominent-2": "";
|
|
43
|
+
readonly "prominent-2-italic": "italic";
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export type TypographyConfig = NonNullable<typeof typographyDefinition.config>;
|
|
48
|
+
export interface TypographyVariantProps extends UIOverrides.VariantProps<TypographyConfig> {
|
|
8
49
|
}
|
|
@@ -1,126 +1,129 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
//#region src/components/text/Typography/typography.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
var typographyDefinition = UIOverrides.defineConfig({
|
|
4
|
+
base: [""],
|
|
5
|
+
config: {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
"headline-1": "md:text-desktop-headline-1",
|
|
9
|
+
"title-1": "md:text-desktop-title-1",
|
|
10
|
+
"title-2": "md:text-desktop-title-2",
|
|
11
|
+
"title-3": "md:text-desktop-title-3",
|
|
12
|
+
"title-4": "md:text-desktop-title-4",
|
|
13
|
+
"title-5": "md:text-desktop-title-5",
|
|
14
|
+
"title-6": "md:text-desktop-title-6",
|
|
15
|
+
"body-1": "md:text-desktop-body-1",
|
|
16
|
+
"body-2": "md:text-desktop-body-2",
|
|
17
|
+
"body-3": "md:text-desktop-body-3",
|
|
18
|
+
"body-4": "md:text-desktop-body-4",
|
|
19
|
+
"label-1": "md:text-label-1",
|
|
20
|
+
"label-2": "md:text-label-2",
|
|
21
|
+
"label-3": "md:text-label-3"
|
|
22
|
+
},
|
|
23
|
+
sizeMobile: {
|
|
24
|
+
"headline-1": "text-mobile-headline-1",
|
|
25
|
+
"title-1": "text-mobile-title-1",
|
|
26
|
+
"title-2": "text-mobile-title-2",
|
|
27
|
+
"title-3": "text-mobile-title-3",
|
|
28
|
+
"title-4": "text-mobile-title-4",
|
|
29
|
+
"title-5": "text-mobile-title-5",
|
|
30
|
+
"title-6": "text-mobile-title-6",
|
|
31
|
+
"body-1": "text-mobile-body-1",
|
|
32
|
+
"body-2": "text-mobile-body-2",
|
|
33
|
+
"body-3": "text-mobile-body-3",
|
|
34
|
+
"body-4": "text-mobile-body-4",
|
|
35
|
+
"label-1": "text-label-1",
|
|
36
|
+
"label-2": "text-label-2",
|
|
37
|
+
"label-3": "text-label-3"
|
|
38
|
+
},
|
|
39
|
+
variant: {
|
|
40
|
+
default: "",
|
|
41
|
+
"prominent-1": "",
|
|
42
|
+
"default-italic": "italic",
|
|
43
|
+
"prominent-1-italic": "italic",
|
|
44
|
+
"prominent-2": "",
|
|
45
|
+
"prominent-2-italic": "italic"
|
|
46
|
+
}
|
|
20
47
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
variant: ["prominent-1", "prominent-1-italic"],
|
|
101
|
-
className: "font-semibold"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
size: [
|
|
105
|
-
"body-1",
|
|
106
|
-
"body-2",
|
|
107
|
-
"body-3",
|
|
108
|
-
"body-4"
|
|
109
|
-
],
|
|
110
|
-
variant: ["prominent-1", "prominent-1-italic"],
|
|
111
|
-
className: "font-medium"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
size: [
|
|
115
|
-
"body-1",
|
|
116
|
-
"body-2",
|
|
117
|
-
"body-3",
|
|
118
|
-
"body-4"
|
|
119
|
-
],
|
|
120
|
-
variant: ["prominent-2", "prominent-2-italic"],
|
|
121
|
-
className: "font-semibold"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
48
|
+
compoundVariants: [
|
|
49
|
+
{
|
|
50
|
+
size: [
|
|
51
|
+
"headline-1",
|
|
52
|
+
"title-1",
|
|
53
|
+
"title-2",
|
|
54
|
+
"title-3",
|
|
55
|
+
"title-4",
|
|
56
|
+
"title-5",
|
|
57
|
+
"title-6"
|
|
58
|
+
],
|
|
59
|
+
className: "font-geist"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
size: [
|
|
63
|
+
"body-1",
|
|
64
|
+
"body-2",
|
|
65
|
+
"body-3",
|
|
66
|
+
"body-4",
|
|
67
|
+
"label-1",
|
|
68
|
+
"label-2",
|
|
69
|
+
"label-3"
|
|
70
|
+
],
|
|
71
|
+
className: "font-inter"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
size: [
|
|
75
|
+
"headline-1",
|
|
76
|
+
"title-1",
|
|
77
|
+
"title-2",
|
|
78
|
+
"title-3",
|
|
79
|
+
"title-4",
|
|
80
|
+
"title-5",
|
|
81
|
+
"title-6",
|
|
82
|
+
"label-1",
|
|
83
|
+
"label-2",
|
|
84
|
+
"label-3"
|
|
85
|
+
],
|
|
86
|
+
variant: ["default", "default-italic"],
|
|
87
|
+
className: "font-medium"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
size: [
|
|
91
|
+
"headline-1",
|
|
92
|
+
"title-1",
|
|
93
|
+
"title-2",
|
|
94
|
+
"title-3",
|
|
95
|
+
"title-4",
|
|
96
|
+
"title-5",
|
|
97
|
+
"title-6",
|
|
98
|
+
"label-1",
|
|
99
|
+
"label-2",
|
|
100
|
+
"label-3"
|
|
101
|
+
],
|
|
102
|
+
variant: ["prominent-1", "prominent-1-italic"],
|
|
103
|
+
className: "font-semibold"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
size: [
|
|
107
|
+
"body-1",
|
|
108
|
+
"body-2",
|
|
109
|
+
"body-3",
|
|
110
|
+
"body-4"
|
|
111
|
+
],
|
|
112
|
+
variant: ["prominent-1", "prominent-1-italic"],
|
|
113
|
+
className: "font-medium"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
size: [
|
|
117
|
+
"body-1",
|
|
118
|
+
"body-2",
|
|
119
|
+
"body-3",
|
|
120
|
+
"body-4"
|
|
121
|
+
],
|
|
122
|
+
variant: ["prominent-2", "prominent-2-italic"],
|
|
123
|
+
className: "font-semibold"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
124
127
|
});
|
|
125
128
|
//#endregion
|
|
126
|
-
export {
|
|
129
|
+
export { typographyDefinition };
|