@rovula/ui 0.0.22 → 0.0.23
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 +30 -0
- package/dist/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Text/Text.d.ts +6 -5
- package/dist/cjs/types/components/Text/Text.stories.d.ts +2 -10
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Text/Text.js +18 -4
- package/dist/esm/bundle.css +30 -0
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Text/Text.d.ts +6 -5
- package/dist/esm/types/components/Text/Text.stories.d.ts +2 -10
- package/dist/index.d.ts +6 -5
- package/dist/src/theme/global.css +58 -0
- package/dist/theme/main-preset.js +24 -0
- package/dist/theme/plugins/utilities/typography.js +9 -0
- package/dist/theme/presets/colors.js +6 -0
- package/dist/theme/tokens/color.css +1 -0
- package/dist/theme/tokens/typography.css +21 -0
- package/package.json +1 -1
- package/src/components/Button/Button.tsx +1 -4
- package/src/components/Collapsible/Collapsible.tsx +1 -1
- package/src/components/Slider/Slider.tsx +0 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Text/Text.tsx +35 -22
- package/src/theme/main-preset.js +24 -0
- package/src/theme/plugins/utilities/typography.js +9 -0
- package/src/theme/presets/colors.js +6 -0
- package/src/theme/tokens/color.css +1 -0
- package/src/theme/tokens/typography.css +21 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export type TextProps = {
|
|
2
|
+
export type TextProps<T extends React.ElementType> = {
|
|
3
3
|
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitile1" | "subtitile2" | "subtitile3" | "subtitile4" | "subtitile5" | "subtitile6" | "body1" | "body2" | "body3" | "body4" | "small1" | "small2" | "small3" | "small4" | "small5" | "label1" | "label2" | "buttonL" | "buttonMS";
|
|
4
4
|
color?: "primary" | "secondary" | "success" | "tertiary" | "info" | "warning" | "error";
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
tag?:
|
|
7
|
+
tag?: T;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
id?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
} & React.ComponentProps<T>;
|
|
11
|
+
type TextComponent<T extends React.ElementType> = React.ForwardRefExoticComponent<TextProps<T> & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
declare const ForwardedText: TextComponent<any>;
|
|
13
|
+
export default ForwardedText;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.ForwardRefExoticComponent<
|
|
4
|
+
component: React.ForwardRefExoticComponent<any>;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
9
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
10
|
-
|
|
11
|
-
color?: "primary" | "secondary" | "tertiary" | "success" | "info" | "warning" | "error" | undefined;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
tag?: keyof JSX.IntrinsicElements | undefined;
|
|
15
|
-
style?: React.CSSProperties | undefined;
|
|
16
|
-
id?: string | undefined;
|
|
17
|
-
ref?: React.LegacyRef<keyof JSX.IntrinsicElements | undefined> | undefined;
|
|
18
|
-
key?: React.Key | null | undefined;
|
|
10
|
+
[x: string]: any;
|
|
19
11
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
20
12
|
};
|
|
21
13
|
export default meta;
|
package/dist/index.d.ts
CHANGED
|
@@ -80,16 +80,17 @@ declare const TextInput: React__default.ForwardRefExoticComponent<{
|
|
|
80
80
|
labelClassName?: string | undefined;
|
|
81
81
|
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
82
82
|
|
|
83
|
-
type TextProps = {
|
|
83
|
+
type TextProps<T extends React__default.ElementType> = {
|
|
84
84
|
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitile1" | "subtitile2" | "subtitile3" | "subtitile4" | "subtitile5" | "subtitile6" | "body1" | "body2" | "body3" | "body4" | "small1" | "small2" | "small3" | "small4" | "small5" | "label1" | "label2" | "buttonL" | "buttonMS";
|
|
85
85
|
color?: "primary" | "secondary" | "success" | "tertiary" | "info" | "warning" | "error";
|
|
86
86
|
children?: React__default.ReactNode;
|
|
87
87
|
className?: string;
|
|
88
|
-
tag?:
|
|
88
|
+
tag?: T;
|
|
89
89
|
style?: React__default.CSSProperties;
|
|
90
90
|
id?: string;
|
|
91
|
-
}
|
|
92
|
-
|
|
91
|
+
} & React__default.ComponentProps<T>;
|
|
92
|
+
type TextComponent<T extends React__default.ElementType> = React__default.ForwardRefExoticComponent<TextProps<T> & React__default.RefAttributes<HTMLElement>>;
|
|
93
|
+
declare const ForwardedText: TextComponent<any>;
|
|
93
94
|
|
|
94
95
|
type Tab = {
|
|
95
96
|
label: string;
|
|
@@ -408,4 +409,4 @@ declare const getTimestampUTC: (date: Date) => number;
|
|
|
408
409
|
|
|
409
410
|
declare function cn(...inputs: ClassValue[]): string;
|
|
410
411
|
|
|
411
|
-
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownProps, Icon, Input, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
|
412
|
+
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Calendar, Checkbox, Collapsible, DataTable, type DataTableProps, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownProps, Icon, Input, type InputProps, Label, Loading, Navbar, type NavbarProps, type Options, Popover, PopoverContent, PopoverTrigger, ProgressBar, Search, type SearchProps, Slider, type SliderProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, ForwardedText as Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
|
@@ -217,6 +217,7 @@
|
|
|
217
217
|
--base-color-bg2: #f5f5f5;
|
|
218
218
|
--base-color-bg3: #d8d8d8;
|
|
219
219
|
--base-color-workspace-stroke: #e2e2e2;
|
|
220
|
+
--base-color-guideline-stroke: #c5c5c5;
|
|
220
221
|
--base-color-popup: #ffffff;
|
|
221
222
|
--base-color-popup-hightlight: #343638;
|
|
222
223
|
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
@@ -488,6 +489,27 @@
|
|
|
488
489
|
--small5-style: normal;
|
|
489
490
|
--small5-line-height: 12px;
|
|
490
491
|
--small5-line-height-rem: 0.75rem;
|
|
492
|
+
--small6-family: "Montserrat";
|
|
493
|
+
--small6-size: 10px;
|
|
494
|
+
--small6-size-rem: 0.625rem;
|
|
495
|
+
--small6-weight: 600;
|
|
496
|
+
--small6-style: normal;
|
|
497
|
+
--small6-line-height: 12px;
|
|
498
|
+
--small6-line-height-rem: 0.75rem;
|
|
499
|
+
--small7-family: "Montserrat";
|
|
500
|
+
--small7-size: 8px;
|
|
501
|
+
--small7-size-rem: 0.5rem;
|
|
502
|
+
--small7-weight: 600;
|
|
503
|
+
--small7-style: normal;
|
|
504
|
+
--small7-line-height: 10px;
|
|
505
|
+
--small7-line-height-rem: 0.625rem;
|
|
506
|
+
--small8-family: "Montserrat";
|
|
507
|
+
--small8-size: 8px;
|
|
508
|
+
--small8-size-rem: 0.5rem;
|
|
509
|
+
--small8-weight: 700;
|
|
510
|
+
--small8-style: normal;
|
|
511
|
+
--small8-line-height: 10px;
|
|
512
|
+
--small8-line-height-rem: 0.625rem;
|
|
491
513
|
--label-label1-family: "Montserrat";
|
|
492
514
|
--label-label1-size: 12px;
|
|
493
515
|
--label-label1-size-rem: 0.75rem;
|
|
@@ -3738,6 +3760,24 @@ body {
|
|
|
3738
3760
|
font-weight: var(--small5-weight, 500);
|
|
3739
3761
|
}
|
|
3740
3762
|
|
|
3763
|
+
.text-small6 {
|
|
3764
|
+
font-size: var(--small5-size, 10px);
|
|
3765
|
+
line-height: var(--small6-line-height, 12px);
|
|
3766
|
+
font-weight: var(--small6-weight, 600);
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
.text-small7 {
|
|
3770
|
+
font-size: var(--small7-size, 8px);
|
|
3771
|
+
line-height: var(--small7-line-height, 10px);
|
|
3772
|
+
font-weight: var(--small7-weight, 600);
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
.text-small8 {
|
|
3776
|
+
font-size: var(--small8-size, 8px);
|
|
3777
|
+
line-height: var(--small8-line-height, 10px);
|
|
3778
|
+
font-weight: var(--small8-weight, 700);
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3741
3781
|
.text-subtitile1 {
|
|
3742
3782
|
font-size: var(--subtitle1-size, 16px);
|
|
3743
3783
|
line-height: var(--subtitle1-line-height, 24px);
|
|
@@ -4377,6 +4417,24 @@ body {
|
|
|
4377
4417
|
font-weight: var(--small5-weight, 500);
|
|
4378
4418
|
}
|
|
4379
4419
|
|
|
4420
|
+
.typography-small6 {
|
|
4421
|
+
font-size: var(--small5-size, 10px);
|
|
4422
|
+
line-height: var(--small6-line-height, 12px);
|
|
4423
|
+
font-weight: var(--small6-weight, 600);
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
.typography-small7 {
|
|
4427
|
+
font-size: var(--small7-size, 8px);
|
|
4428
|
+
line-height: var(--small7-line-height, 10px);
|
|
4429
|
+
font-weight: var(--small7-weight, 600);
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
.typography-small8 {
|
|
4433
|
+
font-size: var(--small8-size, 8px);
|
|
4434
|
+
line-height: var(--small8-line-height, 10px);
|
|
4435
|
+
font-weight: var(--small8-weight, 700);
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4380
4438
|
.typography-label1 {
|
|
4381
4439
|
font-size: var(--label-label1-size, 12px);
|
|
4382
4440
|
line-height: var(--label-label1-line-height, 12px);
|
|
@@ -180,6 +180,30 @@ module.exports = {
|
|
|
180
180
|
fontFamily: "var(--small5-family, 'Poppins')",
|
|
181
181
|
},
|
|
182
182
|
],
|
|
183
|
+
small6: [
|
|
184
|
+
"var(--small5-size, 10px)",
|
|
185
|
+
{
|
|
186
|
+
lineHeight: "var(--small6-line-height, 12px)",
|
|
187
|
+
fontWeight: "var(--small6-weight, 600)",
|
|
188
|
+
fontFamily: "var(--small6-family, 'Poppins')",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
small7: [
|
|
192
|
+
"var(--small7-size, 8px)",
|
|
193
|
+
{
|
|
194
|
+
lineHeight: "var(--small7-line-height, 10px)",
|
|
195
|
+
fontWeight: "var(--small7-weight, 600)",
|
|
196
|
+
fontFamily: "var(--small7-family, 'Poppins')",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
small8: [
|
|
200
|
+
"var(--small8-size, 8px)",
|
|
201
|
+
{
|
|
202
|
+
lineHeight: "var(--small8-line-height, 10px)",
|
|
203
|
+
fontWeight: "var(--small8-weight, 700)",
|
|
204
|
+
fontFamily: "var(--small8-family, 'Poppins')",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
183
207
|
label1: [
|
|
184
208
|
"var(--label-label1-size, 12px)",
|
|
185
209
|
{
|
|
@@ -65,6 +65,15 @@ module.exports = plugin(function ({ addUtilities }) {
|
|
|
65
65
|
".typography-small5": {
|
|
66
66
|
"@apply text-small5": {},
|
|
67
67
|
},
|
|
68
|
+
".typography-small6": {
|
|
69
|
+
"@apply text-small6": {},
|
|
70
|
+
},
|
|
71
|
+
".typography-small7": {
|
|
72
|
+
"@apply text-small7": {},
|
|
73
|
+
},
|
|
74
|
+
".typography-small8": {
|
|
75
|
+
"@apply text-small8": {},
|
|
76
|
+
},
|
|
68
77
|
".typography-label1": {
|
|
69
78
|
"@apply text-label1": {},
|
|
70
79
|
},
|
|
@@ -81,6 +81,12 @@ module.exports = {
|
|
|
81
81
|
"--base-color-popup-foreground"
|
|
82
82
|
),
|
|
83
83
|
"base-stroke": withColorMixin("--base-color-workspace-stroke"),
|
|
84
|
+
"base-workspace-stroke": withColorMixin(
|
|
85
|
+
"--base-color-workspace-stroke"
|
|
86
|
+
),
|
|
87
|
+
"base-guideline-stroke": withColorMixin(
|
|
88
|
+
"--base-color-guideline-stroke"
|
|
89
|
+
),
|
|
84
90
|
|
|
85
91
|
"common-white": withColorMixin("--common-white"),
|
|
86
92
|
"common-black": withColorMixin("--common-black"),
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
--base-color-bg2: #f5f5f5;
|
|
24
24
|
--base-color-bg3: #d8d8d8;
|
|
25
25
|
--base-color-workspace-stroke: #e2e2e2;
|
|
26
|
+
--base-color-guideline-stroke: #c5c5c5;
|
|
26
27
|
--base-color-popup: #ffffff;
|
|
27
28
|
--base-color-popup-hightlight: #343638;
|
|
28
29
|
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
@@ -147,6 +147,27 @@
|
|
|
147
147
|
--small5-style: normal;
|
|
148
148
|
--small5-line-height: 12px;
|
|
149
149
|
--small5-line-height-rem: 0.75rem;
|
|
150
|
+
--small6-family: "Montserrat";
|
|
151
|
+
--small6-size: 10px;
|
|
152
|
+
--small6-size-rem: 0.625rem;
|
|
153
|
+
--small6-weight: 600;
|
|
154
|
+
--small6-style: normal;
|
|
155
|
+
--small6-line-height: 12px;
|
|
156
|
+
--small6-line-height-rem: 0.75rem;
|
|
157
|
+
--small7-family: "Montserrat";
|
|
158
|
+
--small7-size: 8px;
|
|
159
|
+
--small7-size-rem: 0.5rem;
|
|
160
|
+
--small7-weight: 600;
|
|
161
|
+
--small7-style: normal;
|
|
162
|
+
--small7-line-height: 10px;
|
|
163
|
+
--small7-line-height-rem: 0.625rem;
|
|
164
|
+
--small8-family: "Montserrat";
|
|
165
|
+
--small8-size: 8px;
|
|
166
|
+
--small8-size-rem: 0.5rem;
|
|
167
|
+
--small8-weight: 700;
|
|
168
|
+
--small8-style: normal;
|
|
169
|
+
--small8-line-height: 10px;
|
|
170
|
+
--small8-line-height-rem: 0.625rem;
|
|
150
171
|
--label-label1-family: "Montserrat";
|
|
151
172
|
--label-label1-size: 12px;
|
|
152
173
|
--label-label1-size-rem: 0.75rem;
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactElement, forwardRef } from "react";
|
|
2
2
|
import { buttonVariants } from "./Button.styles";
|
|
3
3
|
import { cn } from "@/utils/cn";
|
|
4
|
-
import { title } from "process";
|
|
5
|
-
import { ref } from "yup";
|
|
6
4
|
import Loading from "../Loading/Loading";
|
|
7
|
-
import { EyeIcon } from "@heroicons/react/16/solid";
|
|
8
5
|
|
|
9
6
|
export type ButtonProps = {
|
|
10
7
|
title?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef,
|
|
1
|
+
import React, { forwardRef, useEffect, useRef, useState } from "react";
|
|
2
2
|
import { ChevronDownIcon } from "@heroicons/react/16/solid";
|
|
3
3
|
import { CollapsibleProvider, useCollapsible } from "./CollapsibleContext";
|
|
4
4
|
import { cn } from "@/utils/cn";
|
|
@@ -4,7 +4,6 @@ import * as React from "react";
|
|
|
4
4
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
5
5
|
|
|
6
6
|
import { cn } from "@/utils/cn";
|
|
7
|
-
import ActionButton from "../ActionButton/ActionButton";
|
|
8
7
|
|
|
9
8
|
const Slider = React.forwardRef<
|
|
10
9
|
React.ElementRef<typeof SliderPrimitive.Root>,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cn } from "@/utils/cn";
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
|
|
5
|
-
export type TextProps = {
|
|
5
|
+
export type TextProps<T extends React.ElementType> = {
|
|
6
6
|
variant?:
|
|
7
7
|
| "h1"
|
|
8
8
|
| "h2"
|
|
@@ -39,10 +39,15 @@ export type TextProps = {
|
|
|
39
39
|
| "error";
|
|
40
40
|
children?: React.ReactNode;
|
|
41
41
|
className?: string;
|
|
42
|
-
tag?:
|
|
42
|
+
tag?: T;
|
|
43
43
|
style?: React.CSSProperties;
|
|
44
44
|
id?: string;
|
|
45
|
-
}
|
|
45
|
+
} & React.ComponentProps<T>;
|
|
46
|
+
|
|
47
|
+
type TextComponent<T extends React.ElementType> =
|
|
48
|
+
React.ForwardRefExoticComponent<
|
|
49
|
+
TextProps<T> & React.RefAttributes<HTMLElement>
|
|
50
|
+
>;
|
|
46
51
|
|
|
47
52
|
const textVariants = cva(["text-foreground"], {
|
|
48
53
|
variants: {
|
|
@@ -59,28 +64,36 @@ const textVariants = cva(["text-foreground"], {
|
|
|
59
64
|
});
|
|
60
65
|
|
|
61
66
|
// TODO font, fontBold, elipt
|
|
62
|
-
const Text =
|
|
63
|
-
|
|
67
|
+
const Text = <T extends React.ElementType = "p">(
|
|
68
|
+
{
|
|
64
69
|
variant = "body1",
|
|
65
70
|
tag: Tag = "p",
|
|
66
71
|
children,
|
|
67
72
|
className = "",
|
|
68
73
|
color,
|
|
69
74
|
style,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
...props
|
|
76
|
+
}: TextProps<T>,
|
|
77
|
+
ref: React.Ref<any>
|
|
78
|
+
) => {
|
|
79
|
+
return (
|
|
80
|
+
<Tag
|
|
81
|
+
ref={ref}
|
|
82
|
+
className={cn(
|
|
83
|
+
`typography-${variant}`,
|
|
84
|
+
textVariants({ color }),
|
|
85
|
+
className
|
|
86
|
+
)}
|
|
87
|
+
style={style}
|
|
88
|
+
{...props}
|
|
89
|
+
>
|
|
90
|
+
{children}
|
|
91
|
+
</Tag>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const ForwardedText = forwardRef(Text) as TextComponent<any>;
|
|
96
|
+
|
|
97
|
+
ForwardedText.displayName = "Text";
|
|
85
98
|
|
|
86
|
-
export default
|
|
99
|
+
export default ForwardedText;
|
package/src/theme/main-preset.js
CHANGED
|
@@ -180,6 +180,30 @@ module.exports = {
|
|
|
180
180
|
fontFamily: "var(--small5-family, 'Poppins')",
|
|
181
181
|
},
|
|
182
182
|
],
|
|
183
|
+
small6: [
|
|
184
|
+
"var(--small5-size, 10px)",
|
|
185
|
+
{
|
|
186
|
+
lineHeight: "var(--small6-line-height, 12px)",
|
|
187
|
+
fontWeight: "var(--small6-weight, 600)",
|
|
188
|
+
fontFamily: "var(--small6-family, 'Poppins')",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
small7: [
|
|
192
|
+
"var(--small7-size, 8px)",
|
|
193
|
+
{
|
|
194
|
+
lineHeight: "var(--small7-line-height, 10px)",
|
|
195
|
+
fontWeight: "var(--small7-weight, 600)",
|
|
196
|
+
fontFamily: "var(--small7-family, 'Poppins')",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
small8: [
|
|
200
|
+
"var(--small8-size, 8px)",
|
|
201
|
+
{
|
|
202
|
+
lineHeight: "var(--small8-line-height, 10px)",
|
|
203
|
+
fontWeight: "var(--small8-weight, 700)",
|
|
204
|
+
fontFamily: "var(--small8-family, 'Poppins')",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
183
207
|
label1: [
|
|
184
208
|
"var(--label-label1-size, 12px)",
|
|
185
209
|
{
|
|
@@ -65,6 +65,15 @@ module.exports = plugin(function ({ addUtilities }) {
|
|
|
65
65
|
".typography-small5": {
|
|
66
66
|
"@apply text-small5": {},
|
|
67
67
|
},
|
|
68
|
+
".typography-small6": {
|
|
69
|
+
"@apply text-small6": {},
|
|
70
|
+
},
|
|
71
|
+
".typography-small7": {
|
|
72
|
+
"@apply text-small7": {},
|
|
73
|
+
},
|
|
74
|
+
".typography-small8": {
|
|
75
|
+
"@apply text-small8": {},
|
|
76
|
+
},
|
|
68
77
|
".typography-label1": {
|
|
69
78
|
"@apply text-label1": {},
|
|
70
79
|
},
|
|
@@ -81,6 +81,12 @@ module.exports = {
|
|
|
81
81
|
"--base-color-popup-foreground"
|
|
82
82
|
),
|
|
83
83
|
"base-stroke": withColorMixin("--base-color-workspace-stroke"),
|
|
84
|
+
"base-workspace-stroke": withColorMixin(
|
|
85
|
+
"--base-color-workspace-stroke"
|
|
86
|
+
),
|
|
87
|
+
"base-guideline-stroke": withColorMixin(
|
|
88
|
+
"--base-color-guideline-stroke"
|
|
89
|
+
),
|
|
84
90
|
|
|
85
91
|
"common-white": withColorMixin("--common-white"),
|
|
86
92
|
"common-black": withColorMixin("--common-black"),
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
--base-color-bg2: #f5f5f5;
|
|
24
24
|
--base-color-bg3: #d8d8d8;
|
|
25
25
|
--base-color-workspace-stroke: #e2e2e2;
|
|
26
|
+
--base-color-guideline-stroke: #c5c5c5;
|
|
26
27
|
--base-color-popup: #ffffff;
|
|
27
28
|
--base-color-popup-hightlight: #343638;
|
|
28
29
|
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
@@ -147,6 +147,27 @@
|
|
|
147
147
|
--small5-style: normal;
|
|
148
148
|
--small5-line-height: 12px;
|
|
149
149
|
--small5-line-height-rem: 0.75rem;
|
|
150
|
+
--small6-family: "Montserrat";
|
|
151
|
+
--small6-size: 10px;
|
|
152
|
+
--small6-size-rem: 0.625rem;
|
|
153
|
+
--small6-weight: 600;
|
|
154
|
+
--small6-style: normal;
|
|
155
|
+
--small6-line-height: 12px;
|
|
156
|
+
--small6-line-height-rem: 0.75rem;
|
|
157
|
+
--small7-family: "Montserrat";
|
|
158
|
+
--small7-size: 8px;
|
|
159
|
+
--small7-size-rem: 0.5rem;
|
|
160
|
+
--small7-weight: 600;
|
|
161
|
+
--small7-style: normal;
|
|
162
|
+
--small7-line-height: 10px;
|
|
163
|
+
--small7-line-height-rem: 0.625rem;
|
|
164
|
+
--small8-family: "Montserrat";
|
|
165
|
+
--small8-size: 8px;
|
|
166
|
+
--small8-size-rem: 0.5rem;
|
|
167
|
+
--small8-weight: 700;
|
|
168
|
+
--small8-style: normal;
|
|
169
|
+
--small8-line-height: 10px;
|
|
170
|
+
--small8-line-height-rem: 0.625rem;
|
|
150
171
|
--label-label1-family: "Montserrat";
|
|
151
172
|
--label-label1-size: 12px;
|
|
152
173
|
--label-label1-size-rem: 0.75rem;
|