@rovula/ui 0.0.22 → 0.0.24
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 +143 -0
- package/dist/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/dist/cjs/types/components/DropdownMenu/DropdownMenu.stories.d.ts +54 -0
- 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/DropdownMenu/DropdownMenu.js +74 -0
- package/dist/components/DropdownMenu/DropdownMenu.stories.js +116 -0
- package/dist/components/Tabs/Tabs.js +0 -1
- package/dist/components/Text/Text.js +20 -4
- package/dist/esm/bundle.css +143 -0
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/dist/esm/types/components/DropdownMenu/DropdownMenu.stories.d.ts +54 -0
- 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 +247 -1
- 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/themes/xspector/baseline.css +2 -1
- package/dist/theme/themes/xspector/color.css +2 -1
- package/dist/theme/themes/xspector/components/dropdown-menu.css +28 -0
- package/dist/theme/tokens/baseline.css +2 -1
- package/dist/theme/tokens/color.css +1 -0
- package/dist/theme/tokens/components/dropdown-menu.css +27 -0
- package/dist/theme/tokens/typography.css +21 -0
- package/package.json +8 -3
- package/src/components/Button/Button.tsx +1 -4
- package/src/components/Collapsible/Collapsible.tsx +1 -1
- package/src/components/DropdownMenu/DropdownMenu.stories.tsx +394 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +222 -0
- package/src/components/Slider/Slider.tsx +0 -1
- package/src/components/Tabs/Tabs.tsx +0 -1
- package/src/components/Text/Text.tsx +37 -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/themes/xspector/baseline.css +2 -1
- package/src/theme/themes/xspector/color.css +2 -1
- package/src/theme/themes/xspector/components/dropdown-menu.css +28 -0
- package/src/theme/tokens/baseline.css +2 -1
- package/src/theme/tokens/color.css +1 -0
- package/src/theme/tokens/components/dropdown-menu.css +27 -0
- package/src/theme/tokens/typography.css +21 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
5
|
+
|
|
6
|
+
import { cn } from "@/utils/cn";
|
|
7
|
+
import Icon from "../Icon/Icon";
|
|
8
|
+
|
|
9
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
10
|
+
|
|
11
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
12
|
+
|
|
13
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
14
|
+
|
|
15
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
16
|
+
|
|
17
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
18
|
+
|
|
19
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
20
|
+
|
|
21
|
+
const DropdownMenuSubTrigger = React.forwardRef<
|
|
22
|
+
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
|
|
23
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
24
|
+
inset?: boolean;
|
|
25
|
+
}
|
|
26
|
+
>(({ className, inset, children, ...props }, ref) => (
|
|
27
|
+
<DropdownMenuPrimitive.SubTrigger
|
|
28
|
+
ref={ref}
|
|
29
|
+
className={cn(
|
|
30
|
+
// "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",
|
|
31
|
+
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-4 typography-subtitile4 outline-none transition-colors data-[disabled]:pointer-events-none",
|
|
32
|
+
"bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]",
|
|
33
|
+
"active:opacity-75",
|
|
34
|
+
"focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]",
|
|
35
|
+
"data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",
|
|
36
|
+
inset && "pl-8",
|
|
37
|
+
className
|
|
38
|
+
)}
|
|
39
|
+
{...props}
|
|
40
|
+
>
|
|
41
|
+
{children}
|
|
42
|
+
<Icon type="heroicons" name="chevron-right" className="ml-auto h-4 w-4" />
|
|
43
|
+
</DropdownMenuPrimitive.SubTrigger>
|
|
44
|
+
));
|
|
45
|
+
DropdownMenuSubTrigger.displayName =
|
|
46
|
+
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
47
|
+
|
|
48
|
+
const DropdownMenuSubContent = React.forwardRef<
|
|
49
|
+
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
|
|
50
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
|
|
51
|
+
>(({ className, ...props }, ref) => (
|
|
52
|
+
<DropdownMenuPrimitive.SubContent
|
|
53
|
+
ref={ref}
|
|
54
|
+
className={cn(
|
|
55
|
+
"z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground shadow-[var(--dropdown-menu-shadow)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
56
|
+
className
|
|
57
|
+
)}
|
|
58
|
+
{...props}
|
|
59
|
+
/>
|
|
60
|
+
));
|
|
61
|
+
DropdownMenuSubContent.displayName =
|
|
62
|
+
DropdownMenuPrimitive.SubContent.displayName;
|
|
63
|
+
|
|
64
|
+
const DropdownMenuContent = React.forwardRef<
|
|
65
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
|
|
66
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
|
|
67
|
+
>(({ className, sideOffset = 4, ...props }, ref) => (
|
|
68
|
+
<DropdownMenuPrimitive.Portal>
|
|
69
|
+
<DropdownMenuPrimitive.Content
|
|
70
|
+
ref={ref}
|
|
71
|
+
sideOffset={sideOffset}
|
|
72
|
+
className={cn(
|
|
73
|
+
"z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground shadow-[0px_2px_24px_0px_rgba(145,_158,_171,_0.24)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
74
|
+
className
|
|
75
|
+
)}
|
|
76
|
+
{...props}
|
|
77
|
+
/>
|
|
78
|
+
</DropdownMenuPrimitive.Portal>
|
|
79
|
+
));
|
|
80
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
81
|
+
|
|
82
|
+
const DropdownMenuItem = React.forwardRef<
|
|
83
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
|
|
84
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
|
|
85
|
+
inset?: boolean;
|
|
86
|
+
}
|
|
87
|
+
>(({ className, inset, ...props }, ref) => (
|
|
88
|
+
<DropdownMenuPrimitive.Item
|
|
89
|
+
ref={ref}
|
|
90
|
+
className={cn(
|
|
91
|
+
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitile4 outline-none transition-colors data-[disabled]:pointer-events-none",
|
|
92
|
+
"bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]",
|
|
93
|
+
"active:opacity-75",
|
|
94
|
+
"focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]",
|
|
95
|
+
"data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",
|
|
96
|
+
inset && "pl-8",
|
|
97
|
+
className
|
|
98
|
+
)}
|
|
99
|
+
{...props}
|
|
100
|
+
/>
|
|
101
|
+
));
|
|
102
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
103
|
+
|
|
104
|
+
const DropdownMenuCheckboxItem = React.forwardRef<
|
|
105
|
+
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
|
|
106
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
|
|
107
|
+
>(({ className, children, checked, ...props }, ref) => (
|
|
108
|
+
<DropdownMenuPrimitive.CheckboxItem
|
|
109
|
+
ref={ref}
|
|
110
|
+
className={cn(
|
|
111
|
+
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitile4 outline-none transition-colors data-[disabled]:pointer-events-none",
|
|
112
|
+
"bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]",
|
|
113
|
+
"active:opacity-75",
|
|
114
|
+
"focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]",
|
|
115
|
+
"data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitile5",
|
|
116
|
+
"data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",
|
|
117
|
+
className
|
|
118
|
+
)}
|
|
119
|
+
checked={checked}
|
|
120
|
+
{...props}
|
|
121
|
+
>
|
|
122
|
+
<span className="absolute left-4 flex items-center justify-center">
|
|
123
|
+
<DropdownMenuPrimitive.ItemIndicator>
|
|
124
|
+
<Icon type="heroicons" name="check" className="size-4" />
|
|
125
|
+
</DropdownMenuPrimitive.ItemIndicator>
|
|
126
|
+
</span>
|
|
127
|
+
{children}
|
|
128
|
+
</DropdownMenuPrimitive.CheckboxItem>
|
|
129
|
+
));
|
|
130
|
+
DropdownMenuCheckboxItem.displayName =
|
|
131
|
+
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
132
|
+
|
|
133
|
+
const DropdownMenuRadioItem = React.forwardRef<
|
|
134
|
+
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
|
|
135
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
|
|
136
|
+
>(({ className, children, ...props }, ref) => (
|
|
137
|
+
<DropdownMenuPrimitive.RadioItem
|
|
138
|
+
ref={ref}
|
|
139
|
+
className={cn(
|
|
140
|
+
"relative flex gap-3 cursor-pointer select-none box-border items-center py-4 pl-9 pr-xxl typography-subtitile4 outline-none transition-colors data-[disabled]:pointer-events-none",
|
|
141
|
+
"bg-[var(--dropdown-menu-default-bg)] text-[var(--dropdown-menu-default-text)]",
|
|
142
|
+
"active:opacity-75",
|
|
143
|
+
"focus:!bg-[var(--dropdown-menu-hover-bg)] focus:!text-[var(--dropdown-menu-hover-text)]",
|
|
144
|
+
"data-[state='checked']:bg-[var(--dropdown-menu-selected-bg)] data-[state='checked']:text-[var(--dropdown-menu-selected-text)] data-[state='checked']:typography-subtitile5",
|
|
145
|
+
"data-[disabled]:!bg-[var(--dropdown-menu-disabled-bg)] data-[disabled]:!text-[var(--dropdown-menu-disabled-text)]",
|
|
146
|
+
className
|
|
147
|
+
)}
|
|
148
|
+
{...props}
|
|
149
|
+
>
|
|
150
|
+
<span className="absolute left-4 flex items-center justify-center">
|
|
151
|
+
<DropdownMenuPrimitive.ItemIndicator>
|
|
152
|
+
<Icon type="heroicons" name="circle" className="h-2 w-2 fill-current" />
|
|
153
|
+
</DropdownMenuPrimitive.ItemIndicator>
|
|
154
|
+
</span>
|
|
155
|
+
{children}
|
|
156
|
+
</DropdownMenuPrimitive.RadioItem>
|
|
157
|
+
));
|
|
158
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
159
|
+
|
|
160
|
+
const DropdownMenuLabel = React.forwardRef<
|
|
161
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
|
|
162
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
|
|
163
|
+
inset?: boolean;
|
|
164
|
+
}
|
|
165
|
+
>(({ className, inset, ...props }, ref) => (
|
|
166
|
+
<DropdownMenuPrimitive.Label
|
|
167
|
+
ref={ref}
|
|
168
|
+
className={cn(
|
|
169
|
+
"px-3 py-2 typography-small4 text-text-grey-medium",
|
|
170
|
+
inset && "pl-8",
|
|
171
|
+
className
|
|
172
|
+
)}
|
|
173
|
+
{...props}
|
|
174
|
+
/>
|
|
175
|
+
));
|
|
176
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
177
|
+
|
|
178
|
+
const DropdownMenuSeparator = React.forwardRef<
|
|
179
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
|
|
180
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
|
|
181
|
+
>(({ className, ...props }, ref) => (
|
|
182
|
+
<DropdownMenuPrimitive.Separator
|
|
183
|
+
ref={ref}
|
|
184
|
+
className={cn(
|
|
185
|
+
"-mx-2 my-2 h-px bg-[var(--dropdown-menu-seperator-bg)]",
|
|
186
|
+
className
|
|
187
|
+
)}
|
|
188
|
+
{...props}
|
|
189
|
+
/>
|
|
190
|
+
));
|
|
191
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
192
|
+
|
|
193
|
+
const DropdownMenuShortcut = ({
|
|
194
|
+
className,
|
|
195
|
+
...props
|
|
196
|
+
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
197
|
+
return (
|
|
198
|
+
<span
|
|
199
|
+
className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
|
|
200
|
+
{...props}
|
|
201
|
+
/>
|
|
202
|
+
);
|
|
203
|
+
};
|
|
204
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
205
|
+
|
|
206
|
+
export {
|
|
207
|
+
DropdownMenu,
|
|
208
|
+
DropdownMenuTrigger,
|
|
209
|
+
DropdownMenuContent,
|
|
210
|
+
DropdownMenuItem,
|
|
211
|
+
DropdownMenuCheckboxItem,
|
|
212
|
+
DropdownMenuRadioItem,
|
|
213
|
+
DropdownMenuLabel,
|
|
214
|
+
DropdownMenuSeparator,
|
|
215
|
+
DropdownMenuShortcut,
|
|
216
|
+
DropdownMenuGroup,
|
|
217
|
+
DropdownMenuPortal,
|
|
218
|
+
DropdownMenuSub,
|
|
219
|
+
DropdownMenuSubContent,
|
|
220
|
+
DropdownMenuSubTrigger,
|
|
221
|
+
DropdownMenuRadioGroup,
|
|
222
|
+
};
|
|
@@ -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: {
|
|
@@ -58,29 +63,39 @@ const textVariants = cva(["text-foreground"], {
|
|
|
58
63
|
},
|
|
59
64
|
});
|
|
60
65
|
|
|
66
|
+
// montserrat: ["Montserrat", "sans-serif"],
|
|
67
|
+
// poppins: ["Poppins", "sans-serif"], font-montserrat, font-poppins
|
|
61
68
|
// TODO font, fontBold, elipt
|
|
62
|
-
const Text =
|
|
63
|
-
|
|
69
|
+
const Text = <T extends React.ElementType = "p">(
|
|
70
|
+
{
|
|
64
71
|
variant = "body1",
|
|
65
72
|
tag: Tag = "p",
|
|
66
73
|
children,
|
|
67
74
|
className = "",
|
|
68
75
|
color,
|
|
69
76
|
style,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
...props
|
|
78
|
+
}: TextProps<T>,
|
|
79
|
+
ref: React.Ref<any>
|
|
80
|
+
) => {
|
|
81
|
+
return (
|
|
82
|
+
<Tag
|
|
83
|
+
ref={ref}
|
|
84
|
+
className={cn(
|
|
85
|
+
`typography-${variant}`,
|
|
86
|
+
textVariants({ color }),
|
|
87
|
+
className
|
|
88
|
+
)}
|
|
89
|
+
style={style}
|
|
90
|
+
{...props}
|
|
91
|
+
>
|
|
92
|
+
{children}
|
|
93
|
+
</Tag>
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const ForwardedText = forwardRef(Text) as TextComponent<any>;
|
|
98
|
+
|
|
99
|
+
ForwardedText.displayName = "Text";
|
|
85
100
|
|
|
86
|
-
export default
|
|
101
|
+
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: #282c31;
|
|
24
24
|
--base-color-bg3: #d8d8d8;
|
|
25
25
|
--base-color-workspace-stroke: #e2e2e2;
|
|
26
|
+
--base-color-guideline-stroke: #c5c5c5;
|
|
26
27
|
--base-color-popup: #2d2e30;
|
|
27
28
|
--base-color-popup-hightlight: #343638;
|
|
28
29
|
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
--primary-foreground: var(--common-white);
|
|
64
65
|
--secondary-foreground: var(--common-white);
|
|
65
66
|
|
|
66
|
-
--base-color-popup-foreground: var(--
|
|
67
|
+
--base-color-popup-foreground: var(--text-grey-light);
|
|
67
68
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:root[data-theme="xspector"] {
|
|
2
|
+
/* ------------------------------------------------------------------ */
|
|
3
|
+
/* DropdownMenu Component Tokens */
|
|
4
|
+
/* ------------------------------------------------------------------ */
|
|
5
|
+
/* Naming Convention: --[component]-[state]-[property] */
|
|
6
|
+
/* Element: [default, hover, selected, disabled] */
|
|
7
|
+
/* ------------------------------------------------------------------ */
|
|
8
|
+
|
|
9
|
+
--dropdown-menu-seperator-bg: var(--other-transparency-white-08);
|
|
10
|
+
--dropdown-menu-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.12);
|
|
11
|
+
|
|
12
|
+
/* Default State */
|
|
13
|
+
--dropdown-menu-default-bg: transparent;
|
|
14
|
+
--dropdown-menu-default-text: inherit;
|
|
15
|
+
|
|
16
|
+
/* Hover State */
|
|
17
|
+
--dropdown-menu-hover-bg: var(--other-transparency-white-08);
|
|
18
|
+
--dropdown-menu-hover-text: inherit;
|
|
19
|
+
|
|
20
|
+
/* Selected State */
|
|
21
|
+
--dropdown-menu-selected-bg: var(--grey-grey-150);
|
|
22
|
+
--dropdown-menu-selected-text: inherit;
|
|
23
|
+
|
|
24
|
+
/* Disabled State */
|
|
25
|
+
--dropdown-menu-disabled-bg: transparent;
|
|
26
|
+
--dropdown-menu-disabled-text: var(--grey-grey-140);
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -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);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* ------------------------------------------------------------------ */
|
|
3
|
+
/* DropdownMenu Component Tokens */
|
|
4
|
+
/* ------------------------------------------------------------------ */
|
|
5
|
+
/* Naming Convention: --[component]-[state]-[property] */
|
|
6
|
+
/* Element: [default, hover, selected, disabled] */
|
|
7
|
+
/* ------------------------------------------------------------------ */
|
|
8
|
+
|
|
9
|
+
--dropdown-menu-seperator-bg: var(--base-color-workspace-stroke);
|
|
10
|
+
--dropdown-menu-shadow: 0px 2px 24px 0px rgba(145, 158, 171, 0.24);
|
|
11
|
+
|
|
12
|
+
/* Default State */
|
|
13
|
+
--dropdown-menu-default-bg: transparent;
|
|
14
|
+
--dropdown-menu-default-text: inherit;
|
|
15
|
+
|
|
16
|
+
/* Hover State */
|
|
17
|
+
--dropdown-menu-hover-bg: var(--state-color-primary-hover-bg);
|
|
18
|
+
--dropdown-menu-hover-text: inherit;
|
|
19
|
+
|
|
20
|
+
/* Selected State */
|
|
21
|
+
--dropdown-menu-selected-bg: transparent;
|
|
22
|
+
--dropdown-menu-selected-text: inherit;
|
|
23
|
+
|
|
24
|
+
/* Disabled State */
|
|
25
|
+
--dropdown-menu-disabled-bg: transparent;
|
|
26
|
+
--dropdown-menu-disabled-text: var(--state-color-disable-outline);
|
|
27
|
+
}
|
|
@@ -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;
|