@rovula/ui 0.1.5 → 0.1.6
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/cjs/bundle.css +43 -13
- package/dist/cjs/bundle.js +5 -5
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Text/Text.d.ts +25 -1
- package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/cjs/types/utils/colors.d.ts +1 -1
- package/dist/components/Avatar/Avatar.styles.js +2 -2
- package/dist/components/Button/Buttons.stories.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Input/Input.styles.js +2 -2
- package/dist/components/InputFilter/InputFilter.js +2 -2
- package/dist/components/Label/Label.styles.js +4 -4
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Navbar/Navbar.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Text/Text.js +11 -1
- package/dist/components/Text/Text.stories.js +6 -6
- package/dist/components/TextArea/TextArea.styles.js +6 -6
- package/dist/components/TextInput/TextInput.stories.js +1 -1
- package/dist/components/TextInput/TextInput.styles.js +18 -18
- package/dist/components/Toast/Toast.js +2 -2
- package/dist/esm/bundle.css +43 -13
- package/dist/esm/bundle.js +5 -5
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Text/Text.d.ts +25 -1
- package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/esm/types/utils/colors.d.ts +1 -1
- package/dist/index.d.ts +26 -2
- package/dist/src/theme/global.css +152 -101
- package/dist/utils/colors.js +1 -1
- package/package.json +1 -1
- package/src/components/Avatar/Avatar.styles.ts +2 -2
- package/src/components/Button/Buttons.stories.tsx +2 -2
- package/src/components/Calendar/Calendar.tsx +1 -1
- package/src/components/Dropdown/Dropdown.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenu.tsx +6 -6
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Input/Input.styles.tsx +2 -2
- package/src/components/InputFilter/InputFilter.tsx +2 -2
- package/src/components/Label/Label.styles.ts +4 -4
- package/src/components/Menu/Menu.tsx +2 -2
- package/src/components/Navbar/Navbar.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Text/Text.stories.tsx +6 -6
- package/src/components/Text/Text.tsx +36 -1
- package/src/components/TextArea/TextArea.styles.ts +6 -6
- package/src/components/TextInput/TextInput.stories.tsx +3 -1
- package/src/components/TextInput/TextInput.styles.ts +18 -18
- package/src/components/Toast/Toast.tsx +2 -2
- package/src/theme/THEME_MAPPING.md +5 -5
- package/src/theme/global.css +1 -1
- package/src/theme/main-preset.js +49 -0
- package/src/theme/plugins/utilities/typography.js +40 -6
- package/src/theme/presets/colors.js +1 -1
- package/src/theme/themes/skyller/color.css +1 -1
- package/src/theme/themes/skyller/state.css +11 -11
- package/src/theme/themes/variable.css +78 -63
- package/src/theme/themes/xspector/color.css +1 -1
- package/src/theme/themes/xspector/state.css +11 -11
- package/src/theme/tokens/color.css +1 -1
- package/src/utils/colors.ts +1 -1
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export type TextProps = {
|
|
3
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "
|
|
3
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "subtitle3" | "subtitle4" | "subtitle5" | "subtitle6"
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use subtitle1 instead.
|
|
6
|
+
*/
|
|
7
|
+
| "subtitile1"
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use subtitle2 instead.
|
|
10
|
+
*/
|
|
11
|
+
| "subtitile2"
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use subtitle3 instead.
|
|
14
|
+
*/
|
|
15
|
+
| "subtitile3"
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use subtitle4 instead.
|
|
18
|
+
*/
|
|
19
|
+
| "subtitile4"
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use subtitle5 instead.
|
|
22
|
+
*/
|
|
23
|
+
| "subtitile5"
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use subtitle6 instead.
|
|
26
|
+
*/
|
|
27
|
+
| "subtitile6" | "body1" | "body2" | "body3" | "body4" | "small1" | "small2" | "small3" | "small4" | "small5" | "small6" | "small7" | "small8" | "small9" | "label1" | "label2" | "buttonL" | "buttonMS";
|
|
4
28
|
color?: "primary" | "secondary" | "success" | "tertiary" | "info" | "warning" | "error";
|
|
5
29
|
children?: React.ReactNode;
|
|
6
30
|
className?: string;
|
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
9
|
decorators: ((Story: import("@storybook/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
10
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitile1" | "subtitile2" | "subtitile3" | "subtitile4" | "subtitile5" | "subtitile6" | "body1" | "body2" | "body3" | "body4" | "small1" | "small2" | "small3" | "small4" | "small5" | "small6" | "small7" | "small8" | "small9" | "label1" | "label2" | "buttonL" | "buttonMS" | undefined;
|
|
10
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "subtitle3" | "subtitle4" | "subtitle5" | "subtitle6" | "subtitile1" | "subtitile2" | "subtitile3" | "subtitile4" | "subtitile5" | "subtitile6" | "body1" | "body2" | "body3" | "body4" | "small1" | "small2" | "small3" | "small4" | "small5" | "small6" | "small7" | "small8" | "small9" | "label1" | "label2" | "buttonL" | "buttonMS" | undefined;
|
|
11
11
|
color?: "primary" | "secondary" | "success" | "tertiary" | "info" | "warning" | "error" | undefined;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
className?: string | undefined;
|
|
@@ -225,7 +225,7 @@ export declare const THEME_COLOR_KEYS: {
|
|
|
225
225
|
readonly "base-workspace-stroke": "--base-color-workspace-stroke";
|
|
226
226
|
readonly "base-guideline-stroke": "--base-color-guideline-stroke";
|
|
227
227
|
readonly "base-popup": "--base-color-popup";
|
|
228
|
-
readonly "base-popup-highlight": "--base-color-popup-
|
|
228
|
+
readonly "base-popup-highlight": "--base-color-popup-highlight";
|
|
229
229
|
readonly "base-popup-curtain": "--base-color-popup-curtain";
|
|
230
230
|
readonly "base-popup-foreground": "--base-color-popup-foreground";
|
|
231
231
|
readonly "common-white": "--common-white";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
export const avatarVariants = cva([
|
|
3
|
-
"flex items-center justify-center bg-grey2-700 text-foreground typography-
|
|
3
|
+
"flex items-center justify-center bg-grey2-700 text-foreground typography-subtitle2 truncate",
|
|
4
4
|
], {
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
-
xxs: "w-[24px] h-[24px] typography-
|
|
7
|
+
xxs: "w-[24px] h-[24px] typography-subtitle3",
|
|
8
8
|
xs: "w-[32px] h-[32px]",
|
|
9
9
|
sm: "w-[40px] h-[40px]",
|
|
10
10
|
md: "w-[48px] h-[48px]",
|
|
@@ -90,7 +90,7 @@ export const ShapePreview = {
|
|
|
90
90
|
variant: "solid",
|
|
91
91
|
color: "primary",
|
|
92
92
|
},
|
|
93
|
-
render: (args) => (_jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "w-20 typography-
|
|
93
|
+
render: (args) => (_jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "w-20 typography-subtitle4", children: "Round" }), _jsx(Button, Object.assign({}, args, { shape: "round", size: "lg", title: "Large" })), _jsx(Button, Object.assign({}, args, { shape: "round", size: "md", title: "Medium" })), _jsx(Button, Object.assign({}, args, { shape: "round", size: "sm", title: "Small" }))] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "w-20 typography-subtitle4", children: "Capsule" }), _jsx(Button, Object.assign({}, args, { shape: "capsule", size: "lg", title: "Large" })), _jsx(Button, Object.assign({}, args, { shape: "capsule", size: "md", title: "Medium" })), _jsx(Button, Object.assign({}, args, { shape: "capsule", size: "sm", title: "Small" }))] })] })),
|
|
94
94
|
};
|
|
95
95
|
const previewColors = ["primary", "secondary", "tertiary", "info", "success", "warning", "error"];
|
|
96
96
|
const previewSizes = ["lg", "md", "sm"];
|
|
@@ -17,7 +17,7 @@ import { cn } from "@/utils/cn";
|
|
|
17
17
|
function Calendar(_a) {
|
|
18
18
|
var { className, classNames, showOutsideDays = true } = _a, props = __rest(_a, ["className", "classNames", "showOutsideDays"]);
|
|
19
19
|
const defaultClassNames = getDefaultClassNames();
|
|
20
|
-
return (_jsx(DayPicker, Object.assign({ showOutsideDays: showOutsideDays, captionLayout: "dropdown-years" }, props, { className: cn("bg-surface text-surface-foreground border-surface", className), classNames: Object.assign(Object.assign(Object.assign({}, defaultClassNames), { day_button: cn(defaultClassNames.day_button, "size-9"), day: "typography-
|
|
20
|
+
return (_jsx(DayPicker, Object.assign({ showOutsideDays: showOutsideDays, captionLayout: "dropdown-years" }, props, { className: cn("bg-surface text-surface-foreground border-surface", className), classNames: Object.assign(Object.assign(Object.assign({}, defaultClassNames), { day_button: cn(defaultClassNames.day_button, "size-9"), day: "typography-subtitle1 ", today: "text-bold text-surface-foreground [&_button]:rounded-full [&_button]:!border-primary [&_button]:!border [&_button]:!border-solid", selected: "bg-primary !text-primary-foreground rounded-full ", weekdays: "text-gray-400", month_caption: cn(defaultClassNames.month_caption, "h-[54px]"), outside: "text-gray-400", nav: cn(defaultClassNames.nav, "gap-6 absolute flex right-0"), chevron: "fill-primary", root: cn(defaultClassNames.root, "px-6 py-4"), caption_label: cn(defaultClassNames.caption_label, "gap-2 flex items-center"), months: "flex flex-col relative", disabled: "[&_button]:rounded-full [&_button]:!text-input-disable-text" }), classNames), styles: {
|
|
21
21
|
caption_label: {
|
|
22
22
|
zIndex: 1,
|
|
23
23
|
position: "relative",
|
|
@@ -127,8 +127,8 @@ const Dropdown = forwardRef((_a, ref) => {
|
|
|
127
127
|
value: option.value,
|
|
128
128
|
label: option.label,
|
|
129
129
|
handleOnClick: () => handleOptionClick(option),
|
|
130
|
-
className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-
|
|
131
|
-
"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-
|
|
130
|
+
className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]", {
|
|
131
|
+
"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5": (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value,
|
|
132
132
|
}, optionItemClassName),
|
|
133
133
|
}) }, option.value)),
|
|
134
134
|
};
|
|
@@ -25,7 +25,7 @@ const DropdownMenuSubTrigger = React.forwardRef((_a, ref) => {
|
|
|
25
25
|
var { className, inset, children } = _a, props = __rest(_a, ["className", "inset", "children"]);
|
|
26
26
|
return (_jsxs(DropdownMenuPrimitive.SubTrigger, Object.assign({ ref: ref, className: cn(
|
|
27
27
|
// "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-primary data-[state=open]:bg-primary",
|
|
28
|
-
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-
|
|
28
|
+
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]", "data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]", inset && "pl-8", className) }, props, { children: [children, _jsx(Icon, { type: "heroicons", name: "chevron-right", className: "ml-auto h-4 w-4" })] })));
|
|
29
29
|
});
|
|
30
30
|
DropdownMenuSubTrigger.displayName =
|
|
31
31
|
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
@@ -42,18 +42,18 @@ const DropdownMenuContent = React.forwardRef((_a, ref) => {
|
|
|
42
42
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
43
43
|
const DropdownMenuItem = React.forwardRef((_a, ref) => {
|
|
44
44
|
var { className, inset } = _a, props = __rest(_a, ["className", "inset"]);
|
|
45
|
-
return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-
|
|
45
|
+
return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]", "data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]", inset && "pl-8", className) }, props)));
|
|
46
46
|
});
|
|
47
47
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
48
48
|
const DropdownMenuCheckboxItem = React.forwardRef((_a, ref) => {
|
|
49
49
|
var { className, children, checked } = _a, props = __rest(_a, ["className", "children", "checked"]);
|
|
50
|
-
return (_jsxs(DropdownMenuPrimitive.CheckboxItem, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-
|
|
50
|
+
return (_jsxs(DropdownMenuPrimitive.CheckboxItem, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]", "data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5", "data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]", className), checked: checked }, props, { children: [_jsx("span", { className: "absolute left-4 flex items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Icon, { type: "heroicons", name: "check", className: "size-4" }) }) }), children] })));
|
|
51
51
|
});
|
|
52
52
|
DropdownMenuCheckboxItem.displayName =
|
|
53
53
|
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
54
54
|
const DropdownMenuRadioItem = React.forwardRef((_a, ref) => {
|
|
55
55
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
56
|
-
return (_jsxs(DropdownMenuPrimitive.RadioItem, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-
|
|
56
|
+
return (_jsxs(DropdownMenuPrimitive.RadioItem, Object.assign({ ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitle4 outline-none transition-colors data-[disabled]:pointer-events-none", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]", "data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitle5", "data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]", className) }, props, { children: [_jsx("span", { className: "absolute left-4 flex items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Icon, { type: "heroicons", name: "circle", className: "h-2 w-2 fill-current" }) }) }), children] })));
|
|
57
57
|
});
|
|
58
58
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
59
59
|
const DropdownMenuLabel = React.forwardRef((_a, ref) => {
|
|
@@ -6,6 +6,6 @@ const Footer = ({ children, className, variant = "default", copyright, center, l
|
|
|
6
6
|
const defaultLeft = leftNav || copyright;
|
|
7
7
|
const defaultCenter = isSimple ? copyright !== null && copyright !== void 0 ? copyright : center : center;
|
|
8
8
|
const defaultRight = isSimple ? null : rightNav;
|
|
9
|
-
return (_jsxs("footer", { className: cn("relative w-full px-4 py-6 box-border overflow-hidden typography-
|
|
9
|
+
return (_jsxs("footer", { className: cn("relative w-full px-4 py-6 box-border overflow-hidden typography-subtitle2 border-solid border-t-2 text-[var(--footer-text-color)] border-t-[var(--footer-border-color)]", isSimple ? "h-[var(--footer-height-simple)]" : "h-[var(--footer-height)]", { position }, className), children: [!isTransparent && (_jsx("div", { className: "absolute inset-0 -z-10 bg-[var(--footer-bg-color)]", "aria-hidden": true })), _jsx("div", { className: cn("absolute inset-0 -z-[5] pointer-events-none", className), "aria-hidden": true }), _jsx("div", { className: cn("relative mx-auto flex h-full items-center", isSimple ? "justify-center" : "justify-between", { container }, containerClassName), children: children !== null && children !== void 0 ? children : (isSimple ? (_jsx("div", { className: cn("text-center", centerClassName), children: defaultCenter })) : (_jsxs(_Fragment, { children: [_jsx("nav", { className: cn("flex w-1/2 items-center gap-x-[var(--footer-gap)] text-xl", leftNavClassName), children: copyright && leftNav ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "flex-shrink-0", children: copyright }), leftNav] })) : (defaultLeft) }), _jsx("div", { className: cn("flex flex-shrink-0 flex-wrap justify-center", centerClassName), children: defaultCenter }), _jsx("nav", { className: cn("flex w-1/2 justify-end gap-x-[var(--footer-gap)] text-xl", rightNavClassName), children: defaultRight })] }))) })] }));
|
|
10
10
|
};
|
|
11
11
|
export default Footer;
|
|
@@ -7,8 +7,8 @@ export const inputVariants = cva([
|
|
|
7
7
|
variants: {
|
|
8
8
|
size: {
|
|
9
9
|
sm: "p-2 px-3 typography-small1",
|
|
10
|
-
md: "py-2 px-3 typography-
|
|
11
|
-
lg: "p-4 typography-
|
|
10
|
+
md: "py-2 px-3 typography-subtitle4",
|
|
11
|
+
lg: "p-4 typography-subtitle1",
|
|
12
12
|
},
|
|
13
13
|
rounded: {
|
|
14
14
|
none: "rounded-none",
|
|
@@ -83,12 +83,12 @@ const InputFilter = forwardRef((_a, ref) => {
|
|
|
83
83
|
value: option.value,
|
|
84
84
|
label: option.label,
|
|
85
85
|
handleOnClick: () => handleOptionClick(option),
|
|
86
|
-
className: `p-4 typography-
|
|
86
|
+
className: `p-4 typography-subtitle4 hover:bg-gray-100 cursor-pointer flex items-center gap-3 ${selectedOptions.some((selected) => selected.value === option.value)
|
|
87
87
|
? "bg-gray-200"
|
|
88
88
|
: ""}`,
|
|
89
89
|
}) }, option.value));
|
|
90
90
|
}
|
|
91
|
-
return (_jsxs("li", { onMouseDown: () => handleOptionClick(option), className: `p-4 typography-
|
|
91
|
+
return (_jsxs("li", { onMouseDown: () => handleOptionClick(option), className: `p-4 typography-subtitle4 hover:bg-primary-hover-bg cursor-pointer flex items-center gap-3 ${selectedOptions.some((selected) => selected.value === option.value)
|
|
92
92
|
? "bg-base-popup-highlight"
|
|
93
93
|
: ""}`, children: [_jsx(Checkbox, { checked: selectedOptions.some((selected) => selected.value === option.value) }), option.label] }, option.value));
|
|
94
94
|
}), optionsFiltered.length === 0 && (_jsx("li", { className: "px-4 py-14 text-center text-input-text", children: "Not found" }))] }));
|
|
@@ -5,8 +5,8 @@ export const labelVariant = cva([
|
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
7
|
sm: "typography-small1",
|
|
8
|
-
md: "typography-
|
|
9
|
-
lg: "typography-
|
|
8
|
+
md: "typography-subtitle2",
|
|
9
|
+
lg: "typography-subtitle1",
|
|
10
10
|
},
|
|
11
11
|
disabled: {
|
|
12
12
|
true: "text-input-text-disabled ring-input-stroke-disabled placeholder:text-input-text-disabled peer-disabled:cursor-not-allowed",
|
|
@@ -34,7 +34,7 @@ export const labelVariant = cva([
|
|
|
34
34
|
isFloatable: true,
|
|
35
35
|
className: [
|
|
36
36
|
"left-3 -top-1.5 typography-label1 bg-input-label-background",
|
|
37
|
-
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
37
|
+
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent",
|
|
38
38
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
39
39
|
],
|
|
40
40
|
},
|
|
@@ -43,7 +43,7 @@ export const labelVariant = cva([
|
|
|
43
43
|
isFloatable: true,
|
|
44
44
|
className: [
|
|
45
45
|
"left-4 -top-1.5 typography-label1 bg-input-label-background",
|
|
46
|
-
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
46
|
+
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent",
|
|
47
47
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
48
48
|
],
|
|
49
49
|
},
|
|
@@ -45,8 +45,8 @@ export const MenuItem = forwardRef(({ option, visualType, isChecked, onSelect, c
|
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
47
47
|
};
|
|
48
|
-
return (_jsxs("div", { ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-
|
|
49
|
-
"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-
|
|
48
|
+
return (_jsxs("div", { ref: ref, className: cn("relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitle4 outline-none transition-colors", "bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]", "active:opacity-75", "hover:bg-[var(--dropdown-menu-hover-bg)] hover:text-[var(--dropdown-menu-hover-text)]", {
|
|
49
|
+
"bg-[var(--dropdown-menu-selected-bg)] text-[var(--dropdown-menu-selected-text)] typography-subtitle5": isChecked,
|
|
50
50
|
"pointer-events-none opacity-50": option.disabled,
|
|
51
51
|
"text-red-500": option.danger,
|
|
52
52
|
}, className), onMouseDown: option.disabled ? undefined : onSelect, children: [renderIndicator(), option.icon && _jsx("span", { className: "flex-shrink-0", children: option.icon }), option.label] }));
|
|
@@ -15,7 +15,7 @@ const Navbar = ({ children, className, variant = "default", scrollShadow = false
|
|
|
15
15
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
16
16
|
}, [scrollShadow]);
|
|
17
17
|
const isTransparent = variant === "transparent";
|
|
18
|
-
return (_jsxs("header", { className: cn("relative w-full px-4 py-6 h-[var(--navbar-height)] box-border overflow-hidden typography-
|
|
18
|
+
return (_jsxs("header", { className: cn("relative w-full px-4 py-6 h-[var(--navbar-height)] box-border overflow-hidden typography-subtitle2 border-solid border-b-2 text-[rgb(var(--navbar-text-color))] border-b-[rgb(var(--navbar-border-color))] transition-shadow duration-200", { position }, scrollShadow && isScrolled && "shadow-[var(--navbar-shadow-scrolled)]", className), children: [!isTransparent && (_jsx("div", { className: "absolute inset-0 -z-10 bg-[rgb(var(--navbar-bg-color))]", "aria-hidden": true })), _jsx("div", { className: cn("absolute inset-0 -z-[5] pointer-events-none", className), "aria-hidden": true }), _jsx("div", { className: cn("relative mx-auto flex h-full justify-between items-center", {
|
|
19
19
|
container,
|
|
20
20
|
}, containerClassName), children: children || (_jsxs(_Fragment, { children: [_jsx("nav", { className: cn("flex w-1/2 gap-x-[var(--navbar-gap)] text-xl", leftNavClassName), children: leftNav }), _jsx("div", { className: cn("flex flex-shrink-0 flex-wrap justify-center", centerClassName), children: center }), _jsx("nav", { className: cn("flex w-1/2 justify-end gap-x-[var(--navbar-gap)] text-xl", rightNavClassName), children: rightNav })] })) })] }));
|
|
21
21
|
};
|
|
@@ -70,7 +70,7 @@ const Tabs = ({ tabs = [], value, initialTab = 0, tabBarSize = 38, enableBorderL
|
|
|
70
70
|
justifyContent: tabMode === "justify" ? "stretch" : tabMode,
|
|
71
71
|
}, role: "tablist", children: [tabs.map((tab, index) => {
|
|
72
72
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
73
|
-
return (_jsxs("button", { ref: (el) => (tabRefs.current[index] = el), role: "tab", "aria-selected": index === activeTab, "aria-controls": `tab-content-${index}`, disabled: disabled || tab.disabled, id: `tab-${index}`, className: cn("flex justify-center flex-row items-center py-3 cursor-pointer transition-colors duration-300 box-border gap-1 flex-shrink-0 typography-
|
|
73
|
+
return (_jsxs("button", { ref: (el) => (tabRefs.current[index] = el), role: "tab", "aria-selected": index === activeTab, "aria-controls": `tab-content-${index}`, disabled: disabled || tab.disabled, id: `tab-${index}`, className: cn("flex justify-center flex-row items-center py-3 cursor-pointer transition-colors duration-300 box-border gap-1 flex-shrink-0 typography-subtitle6", {
|
|
74
74
|
"text-foreground": index === activeTab,
|
|
75
75
|
"text-text-grey-medium hover:text-text-grey-dark active:text-text-dark": index !== activeTab,
|
|
76
76
|
// -- disabled
|
|
@@ -26,11 +26,21 @@ const textVariants = cva(["text-foreground"], {
|
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
|
+
const deprecatedSubtitleVariantMap = {
|
|
30
|
+
subtitile1: "subtitle1",
|
|
31
|
+
subtitile2: "subtitle2",
|
|
32
|
+
subtitile3: "subtitle3",
|
|
33
|
+
subtitile4: "subtitle4",
|
|
34
|
+
subtitile5: "subtitle5",
|
|
35
|
+
subtitile6: "subtitle6",
|
|
36
|
+
};
|
|
29
37
|
// montserrat: ["Montserrat", "sans-serif"],
|
|
30
38
|
// poppins: ["Poppins", "sans-serif"], font-montserrat, font-poppins
|
|
31
39
|
// TODO font, fontBold, elipt
|
|
32
40
|
const Text = forwardRef((_a, ref) => {
|
|
41
|
+
var _b;
|
|
33
42
|
var { variant = "body1", tag: Tag = "p", children, className = "", color, style } = _a, props = __rest(_a, ["variant", "tag", "children", "className", "color", "style"]);
|
|
34
|
-
|
|
43
|
+
const normalizedVariant = (_b = deprecatedSubtitleVariantMap[variant]) !== null && _b !== void 0 ? _b : variant;
|
|
44
|
+
return (_jsx(Tag, Object.assign({ ref: ref, className: cn(`typography-${normalizedVariant}`, textVariants({ color }), className), style: style }, props, { children: children })));
|
|
35
45
|
});
|
|
36
46
|
export default Text;
|
|
@@ -21,12 +21,12 @@ const variant = [
|
|
|
21
21
|
"h4",
|
|
22
22
|
"h5",
|
|
23
23
|
"h6",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
24
|
+
"subtitle1",
|
|
25
|
+
"subtitle2",
|
|
26
|
+
"subtitle3",
|
|
27
|
+
"subtitle4",
|
|
28
|
+
"subtitle5",
|
|
29
|
+
"subtitle6",
|
|
30
30
|
"body1",
|
|
31
31
|
"body2",
|
|
32
32
|
"body3",
|
|
@@ -6,8 +6,8 @@ export const textareaVariant = cva([
|
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
8
8
|
sm: "p-2 px-3 typography-small1",
|
|
9
|
-
md: "py-2 px-3 typography-
|
|
10
|
-
lg: "p-4 typography-
|
|
9
|
+
md: "py-2 px-3 typography-subtitle4",
|
|
10
|
+
lg: "p-4 typography-subtitle1",
|
|
11
11
|
},
|
|
12
12
|
rounded: {
|
|
13
13
|
none: "rounded-none",
|
|
@@ -112,7 +112,7 @@ export const labelVariant = cva([
|
|
|
112
112
|
size: "md",
|
|
113
113
|
className: [
|
|
114
114
|
"left-3 -top-1.5 typography-label1 bg-input-label-bg",
|
|
115
|
-
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
115
|
+
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent",
|
|
116
116
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
117
117
|
],
|
|
118
118
|
},
|
|
@@ -121,7 +121,7 @@ export const labelVariant = cva([
|
|
|
121
121
|
size: "lg",
|
|
122
122
|
className: [
|
|
123
123
|
"left-4 -top-1.5 typography-label1 bg-input-label-bg",
|
|
124
|
-
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
124
|
+
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent",
|
|
125
125
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
126
126
|
],
|
|
127
127
|
},
|
|
@@ -138,14 +138,14 @@ export const labelVariant = cva([
|
|
|
138
138
|
isFloatingLabel: false,
|
|
139
139
|
size: "md",
|
|
140
140
|
className: [
|
|
141
|
-
"left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
141
|
+
"left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4",
|
|
142
142
|
],
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
isFloatingLabel: false,
|
|
146
146
|
size: "lg",
|
|
147
147
|
className: [
|
|
148
|
-
"left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
148
|
+
"left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1",
|
|
149
149
|
],
|
|
150
150
|
},
|
|
151
151
|
],
|
|
@@ -78,7 +78,7 @@ export const CustomIcon = {
|
|
|
78
78
|
};
|
|
79
79
|
const KeepFooterSpaceDemo = () => {
|
|
80
80
|
const [hasError, setHasError] = useState(false);
|
|
81
|
-
return (_jsxs("div", { className: "flex flex-col gap-8 w-full max-w-md", children: [_jsxs("p", { className: "text-sm text-text-grey-dark", children: ["Use ", _jsx("code", { children: "keepFooterSpace" }), " to always reserve space for the footer/helper area, preventing layout shift when an error or helper text is shown or hidden."] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs("label", { className: "flex items-center gap-2 cursor-pointer", children: [_jsx("input", { type: "checkbox", checked: hasError, onChange: (e) => setHasError(e.target.checked) }), "Show error message"] }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { children: [_jsx("h4", { className: "text-sm font-medium mb-2 text-text-grey-dark", children: "With keepFooterSpace (layout stays stable)" }), _jsx(TextInput, { id: "with-keep", label: "Email", keepFooterSpace: true, error: hasError, errorMessage: hasError ? "Please enter a valid email address" : undefined })] }), _jsxs("div", { children: [_jsx("h4", { className: "text-sm font-medium mb-2 text-text-grey-dark", children: "Without keepFooterSpace (layout shifts when error appears)" }), _jsx(TextInput, { id: "no-keep", label: "Email", error: hasError, errorMessage: hasError ? "Please enter a valid email address" : undefined })] }), _jsx("div", {})] })] })] }));
|
|
81
|
+
return (_jsxs("div", { className: "flex flex-col gap-8 w-full max-w-md", children: [_jsxs("p", { className: "text-sm text-text-grey-dark", children: ["Use ", _jsx("code", { children: "keepFooterSpace" }), " to always reserve space for the footer/helper area, preventing layout shift when an error or helper text is shown or hidden."] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs("label", { className: "flex items-center gap-2 cursor-pointer", children: [_jsx("input", { type: "checkbox", checked: hasError, onChange: (e) => setHasError(e.target.checked) }), "Show error message"] }), _jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs("div", { children: [_jsx("h4", { className: "text-sm font-medium mb-2 text-text-grey-dark", children: "With keepFooterSpace (layout stays stable)" }), _jsx(TextInput, { id: "with-keep", label: "Email", keepFooterSpace: true, size: "lg", error: hasError, errorMessage: hasError ? "Please enter a valid email address" : undefined })] }), _jsxs("div", { children: [_jsx("h4", { className: "text-sm font-medium mb-2 text-text-grey-dark", children: "Without keepFooterSpace (layout shifts when error appears)" }), _jsx(TextInput, { id: "no-keep", label: "Email", size: "lg", error: hasError, errorMessage: hasError ? "Please enter a valid email address" : undefined })] }), _jsx("div", {})] })] })] }));
|
|
82
82
|
};
|
|
83
83
|
export const KeepFooterSpace = {
|
|
84
84
|
args: {
|
|
@@ -8,8 +8,8 @@ export const inputVariant = cva([
|
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
sm: "p-2 px-3 typography-small1",
|
|
11
|
-
md: "py-2 px-3 typography-
|
|
12
|
-
lg: "p-4 typography-
|
|
11
|
+
md: "py-2 px-3 typography-subtitle4",
|
|
12
|
+
lg: "p-4 typography-subtitle1",
|
|
13
13
|
},
|
|
14
14
|
rounded: {
|
|
15
15
|
none: "rounded-none",
|
|
@@ -133,7 +133,7 @@ export const inputVariant = cva([
|
|
|
133
133
|
},
|
|
134
134
|
});
|
|
135
135
|
export const labelVariant = cva([
|
|
136
|
-
"absolute block duration-450 transition-all px-[2px] text-input-default-text",
|
|
136
|
+
"absolute block select-none duration-450 transition-all px-[2px] text-input-default-text",
|
|
137
137
|
"peer-focus:text-input-default-text peer-focus:bg-input-label-bg", // TODO bg
|
|
138
138
|
], {
|
|
139
139
|
variants: {
|
|
@@ -174,7 +174,7 @@ export const labelVariant = cva([
|
|
|
174
174
|
size: "md",
|
|
175
175
|
className: [
|
|
176
176
|
"left-3 -top-1.5 typography-label1 bg-input-label-bg",
|
|
177
|
-
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
177
|
+
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent",
|
|
178
178
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
179
179
|
],
|
|
180
180
|
},
|
|
@@ -183,7 +183,7 @@ export const labelVariant = cva([
|
|
|
183
183
|
size: "lg",
|
|
184
184
|
className: [
|
|
185
185
|
"left-4 -top-1.5 typography-label1 bg-input-label-bg",
|
|
186
|
-
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
186
|
+
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent",
|
|
187
187
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
188
188
|
],
|
|
189
189
|
},
|
|
@@ -200,14 +200,14 @@ export const labelVariant = cva([
|
|
|
200
200
|
isFloatingLabel: false,
|
|
201
201
|
size: "md",
|
|
202
202
|
className: [
|
|
203
|
-
"left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
203
|
+
"left-3 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4",
|
|
204
204
|
],
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
isFloatingLabel: false,
|
|
208
208
|
size: "lg",
|
|
209
209
|
className: [
|
|
210
|
-
"left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
210
|
+
"left-4 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1",
|
|
211
211
|
],
|
|
212
212
|
},
|
|
213
213
|
// --------------
|
|
@@ -227,7 +227,7 @@ export const labelVariant = cva([
|
|
|
227
227
|
size: "md",
|
|
228
228
|
className: [
|
|
229
229
|
"left-9 -top-1.5 typography-label1 bg-input-label-bg",
|
|
230
|
-
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
230
|
+
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent",
|
|
231
231
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
232
232
|
],
|
|
233
233
|
},
|
|
@@ -237,7 +237,7 @@ export const labelVariant = cva([
|
|
|
237
237
|
size: "lg",
|
|
238
238
|
className: [
|
|
239
239
|
"left-11 -top-1.5 typography-label1 bg-input-label-bg",
|
|
240
|
-
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
240
|
+
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent",
|
|
241
241
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
242
242
|
],
|
|
243
243
|
},
|
|
@@ -255,7 +255,7 @@ export const labelVariant = cva([
|
|
|
255
255
|
hasSearchIcon: true,
|
|
256
256
|
size: "md",
|
|
257
257
|
className: [
|
|
258
|
-
"left-9 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
258
|
+
"left-9 peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4",
|
|
259
259
|
],
|
|
260
260
|
},
|
|
261
261
|
{
|
|
@@ -263,7 +263,7 @@ export const labelVariant = cva([
|
|
|
263
263
|
hasSearchIcon: true,
|
|
264
264
|
size: "lg",
|
|
265
265
|
className: [
|
|
266
|
-
"left-11 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
266
|
+
"left-11 peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1",
|
|
267
267
|
],
|
|
268
268
|
},
|
|
269
269
|
// -------- hasLeftSectionIcon ------
|
|
@@ -283,7 +283,7 @@ export const labelVariant = cva([
|
|
|
283
283
|
size: "md",
|
|
284
284
|
className: [
|
|
285
285
|
"left-[46px] -top-1.5 typography-label1 bg-input-label-bg",
|
|
286
|
-
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
286
|
+
"peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4 peer-placeholder-shown:bg-transparent",
|
|
287
287
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
288
288
|
],
|
|
289
289
|
},
|
|
@@ -293,7 +293,7 @@ export const labelVariant = cva([
|
|
|
293
293
|
size: "lg",
|
|
294
294
|
className: [
|
|
295
295
|
"left-[72px] -top-1.5 typography-label1 bg-input-label-bg",
|
|
296
|
-
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
296
|
+
"peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1 peer-placeholder-shown:bg-transparent",
|
|
297
297
|
"peer-focus:-top-1.5 peer-focus:typography-label1",
|
|
298
298
|
],
|
|
299
299
|
},
|
|
@@ -311,7 +311,7 @@ export const labelVariant = cva([
|
|
|
311
311
|
hasLeftSectionIcon: true,
|
|
312
312
|
size: "md",
|
|
313
313
|
className: [
|
|
314
|
-
"left-[46px] peer-placeholder-shown:top-2 peer-placeholder-shown:typography-
|
|
314
|
+
"left-[46px] peer-placeholder-shown:top-2 peer-placeholder-shown:typography-subtitle4",
|
|
315
315
|
],
|
|
316
316
|
},
|
|
317
317
|
{
|
|
@@ -319,7 +319,7 @@ export const labelVariant = cva([
|
|
|
319
319
|
hasLeftSectionIcon: true,
|
|
320
320
|
size: "lg",
|
|
321
321
|
className: [
|
|
322
|
-
"left-[72px] peer-placeholder-shown:top-4 peer-placeholder-shown:typography-
|
|
322
|
+
"left-[72px] peer-placeholder-shown:top-4 peer-placeholder-shown:typography-subtitle1",
|
|
323
323
|
],
|
|
324
324
|
},
|
|
325
325
|
],
|
|
@@ -336,8 +336,8 @@ export const helperTextVariant = cva(["typography-small1 flex flex-row items-cen
|
|
|
336
336
|
variants: {
|
|
337
337
|
size: {
|
|
338
338
|
sm: "mt-1",
|
|
339
|
-
md: "mt-
|
|
340
|
-
lg: "mt-
|
|
339
|
+
md: "mt-1",
|
|
340
|
+
lg: "mt-1",
|
|
341
341
|
},
|
|
342
342
|
disabled: {
|
|
343
343
|
true: "text-input-disable-text",
|
|
@@ -395,7 +395,7 @@ export const inlineStartIconWrapperVariant = cva([
|
|
|
395
395
|
size: "md",
|
|
396
396
|
},
|
|
397
397
|
});
|
|
398
|
-
export const iconActionVariant = cva(["cursor-pointer z-50"], {
|
|
398
|
+
export const iconActionVariant = cva(["cursor-pointer z-50 select-none"], {
|
|
399
399
|
variants: {
|
|
400
400
|
size: {
|
|
401
401
|
sm: "size-3",
|
|
@@ -41,12 +41,12 @@ const ToastClose = React.forwardRef((_a, ref) => {
|
|
|
41
41
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
42
42
|
const ToastTitle = React.forwardRef((_a, ref) => {
|
|
43
43
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
44
|
-
return (_jsx(ToastPrimitives.Title, Object.assign({ ref: ref, className: cn("typography-
|
|
44
|
+
return (_jsx(ToastPrimitives.Title, Object.assign({ ref: ref, className: cn("typography-subtitle6", className) }, props)));
|
|
45
45
|
});
|
|
46
46
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
47
47
|
const ToastDescription = React.forwardRef((_a, ref) => {
|
|
48
48
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
49
|
-
return (_jsx(ToastPrimitives.Description, Object.assign({ ref: ref, className: cn("typography-
|
|
49
|
+
return (_jsx(ToastPrimitives.Description, Object.assign({ ref: ref, className: cn("typography-subtitle4 text-grey-light", className) }, props)));
|
|
50
50
|
});
|
|
51
51
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
52
52
|
export { ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
|