@rovula/ui 0.0.14 → 0.0.16
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 +16 -0
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +4 -5
- package/dist/cjs/types/components/Avatar/index.d.ts +3 -0
- package/dist/cjs/types/components/Navbar/Navbar.d.ts +1 -1
- package/dist/cjs/types/components/Navbar/Navbar.stories.d.ts +1 -9
- package/dist/cjs/types/components/Navbar/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts +6 -0
- package/dist/components/ActionButton/ActionButton.js +0 -1
- package/dist/components/Avatar/index.js +3 -0
- package/dist/components/Navbar/index.js +2 -0
- package/dist/esm/bundle.css +16 -0
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Avatar/Avatar.d.ts +4 -5
- package/dist/esm/types/components/Avatar/index.d.ts +3 -0
- package/dist/esm/types/components/Navbar/Navbar.d.ts +1 -1
- package/dist/esm/types/components/Navbar/Navbar.stories.d.ts +1 -9
- package/dist/esm/types/components/Navbar/index.d.ts +2 -0
- package/dist/esm/types/index.d.ts +6 -0
- package/dist/index.d.ts +62 -2
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +16 -0
- package/dist/theme/global.css +16 -0
- package/dist/theme/presets/colors.js +16 -0
- package/package.json +1 -1
- package/src/components/ActionButton/ActionButton.tsx +0 -2
- package/src/components/Avatar/Avatar.tsx +4 -4
- package/src/components/Avatar/index.ts +4 -0
- package/src/components/Navbar/Navbar.tsx +1 -1
- package/src/components/Navbar/index.ts +3 -0
- package/src/index.ts +6 -0
- package/src/theme/global.css +16 -0
- package/src/theme/presets/colors.js +16 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { AvatarImage } from "./AvatarBase";
|
|
3
2
|
type BaseAvatarProps = {
|
|
4
3
|
imageUrl?: string;
|
|
5
4
|
text?: string;
|
|
@@ -13,20 +12,20 @@ type BaseAvatarProps = {
|
|
|
13
12
|
fallbackClassName?: string;
|
|
14
13
|
style?: React.CSSProperties;
|
|
15
14
|
};
|
|
16
|
-
type
|
|
15
|
+
type AvatarTextProps = {
|
|
17
16
|
text: string;
|
|
18
17
|
type: "text";
|
|
19
18
|
} & BaseAvatarProps;
|
|
20
|
-
type
|
|
19
|
+
type AvatarImageProps = {
|
|
21
20
|
imageUrl: string;
|
|
22
21
|
fallback: React.ReactNode;
|
|
23
22
|
type: "image";
|
|
24
23
|
} & BaseAvatarProps;
|
|
25
|
-
type
|
|
24
|
+
type AvatarIconProps = {
|
|
26
25
|
icon: string;
|
|
27
26
|
type: "icon";
|
|
28
27
|
} & BaseAvatarProps;
|
|
29
|
-
export type AvatarProps =
|
|
28
|
+
export type AvatarProps = AvatarTextProps | AvatarImageProps | AvatarIconProps;
|
|
30
29
|
export declare const formatAvatarName: (text: string) => string;
|
|
31
30
|
declare const Avatar: React.FC<AvatarProps>;
|
|
32
31
|
export default Avatar;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: React.FC<
|
|
5
|
-
position?: "static" | "sticky" | undefined;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
leftNav?: React.ReactNode;
|
|
8
|
-
rightNav?: React.ReactNode;
|
|
9
|
-
center?: React.ReactNode;
|
|
10
|
-
container?: boolean | undefined;
|
|
11
|
-
className?: string | undefined;
|
|
12
|
-
}>;
|
|
4
|
+
component: React.FC<import("./Navbar").NavbarProps>;
|
|
13
5
|
tags: string[];
|
|
14
6
|
parameters: {
|
|
15
7
|
layout: string;
|
|
@@ -7,6 +7,9 @@ export { default as Dropdown } from "./components/Dropdown/Dropdown";
|
|
|
7
7
|
export { Checkbox } from "./components/Checkbox/Checkbox";
|
|
8
8
|
export { Label } from "./components/Label/Label";
|
|
9
9
|
export { Input } from "./components/Input/Input";
|
|
10
|
+
export { Navbar } from "./components/Navbar";
|
|
11
|
+
export { default as ActionButton } from "./components/ActionButton/ActionButton";
|
|
12
|
+
export { Avatar, AvatarGroup } from "./components/Avatar";
|
|
10
13
|
export * from "./components/Table/Table";
|
|
11
14
|
export * from "./components/DataTable/DataTable";
|
|
12
15
|
export * from "./components/Dialog/Dialog";
|
|
@@ -14,5 +17,8 @@ export * from "./components/AlertDialog/AlertDialog";
|
|
|
14
17
|
export type { ButtonProps } from "./components/Button/Button";
|
|
15
18
|
export type { InputProps } from "./components/TextInput/TextInput";
|
|
16
19
|
export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
|
|
20
|
+
export type { NavbarProps } from "./components/Navbar/Navbar";
|
|
21
|
+
export type { AvatarProps } from "./components/Avatar/Avatar";
|
|
22
|
+
export type { AvatarGroupProps } from "./components/Avatar/AvatarGroup";
|
|
17
23
|
export { resloveTimestamp, getStartDateOfDay, getEndDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, } from "./utils/datetime";
|
|
18
24
|
export { cn } from "./utils/cn";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React__default, { ReactElement, ReactNode, FC } from 'react';
|
|
3
3
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
4
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
5
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -165,6 +165,66 @@ declare const Input: React__default.ForwardRefExoticComponent<{
|
|
|
165
165
|
className?: string | undefined;
|
|
166
166
|
} & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
167
167
|
|
|
168
|
+
type NavbarProps = {
|
|
169
|
+
position?: "static" | "sticky";
|
|
170
|
+
children?: ReactNode;
|
|
171
|
+
leftNav?: ReactNode;
|
|
172
|
+
rightNav?: ReactNode;
|
|
173
|
+
center?: ReactNode;
|
|
174
|
+
container?: boolean;
|
|
175
|
+
className?: string;
|
|
176
|
+
};
|
|
177
|
+
declare const Navbar: FC<NavbarProps>;
|
|
178
|
+
|
|
179
|
+
declare const ActionButton: React__default.ForwardRefExoticComponent<{
|
|
180
|
+
title?: string | undefined;
|
|
181
|
+
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
182
|
+
variant?: "solid" | "outline" | "icon" | undefined;
|
|
183
|
+
disabled?: boolean | undefined;
|
|
184
|
+
active?: boolean | undefined;
|
|
185
|
+
children?: React__default.ReactNode;
|
|
186
|
+
className?: string | undefined;
|
|
187
|
+
} & React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
188
|
+
|
|
189
|
+
type BaseAvatarProps = {
|
|
190
|
+
imageUrl?: string;
|
|
191
|
+
text?: string;
|
|
192
|
+
fallback?: React.ReactNode;
|
|
193
|
+
icon?: React.ReactNode;
|
|
194
|
+
children?: React.ReactNode;
|
|
195
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg";
|
|
196
|
+
rounded?: "full" | "normal" | "none";
|
|
197
|
+
className?: string;
|
|
198
|
+
imageClassName?: string;
|
|
199
|
+
fallbackClassName?: string;
|
|
200
|
+
style?: React.CSSProperties;
|
|
201
|
+
};
|
|
202
|
+
type AvatarTextProps = {
|
|
203
|
+
text: string;
|
|
204
|
+
type: "text";
|
|
205
|
+
} & BaseAvatarProps;
|
|
206
|
+
type AvatarImageProps = {
|
|
207
|
+
imageUrl: string;
|
|
208
|
+
fallback: React.ReactNode;
|
|
209
|
+
type: "image";
|
|
210
|
+
} & BaseAvatarProps;
|
|
211
|
+
type AvatarIconProps = {
|
|
212
|
+
icon: string;
|
|
213
|
+
type: "icon";
|
|
214
|
+
} & BaseAvatarProps;
|
|
215
|
+
type AvatarProps = AvatarTextProps | AvatarImageProps | AvatarIconProps;
|
|
216
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
217
|
+
|
|
218
|
+
type AvatarGroupProps = {
|
|
219
|
+
maxDisplay?: number;
|
|
220
|
+
borderWidth?: number;
|
|
221
|
+
borderColor?: string;
|
|
222
|
+
remainingText?: string;
|
|
223
|
+
children?: ReactNode;
|
|
224
|
+
remainingAvatar?: ReactNode;
|
|
225
|
+
};
|
|
226
|
+
declare const AvatarGroup: FC<AvatarGroupProps>;
|
|
227
|
+
|
|
168
228
|
declare const Table: React.ForwardRefExoticComponent<{
|
|
169
229
|
rootRef?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
170
230
|
} & React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
@@ -231,4 +291,4 @@ declare const getTimestampUTC: (date: Date) => number;
|
|
|
231
291
|
|
|
232
292
|
declare function cn(...inputs: ClassValue[]): string;
|
|
233
293
|
|
|
234
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Button, type ButtonProps, Checkbox, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownProps, Input, type InputProps, Label, type Options, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
|
294
|
+
export { ActionButton, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, Checkbox, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownProps, Input, type InputProps, Label, Navbar, type NavbarProps, type Options, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Text, TextInput, cn, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,9 @@ export { default as Dropdown } from "./components/Dropdown/Dropdown";
|
|
|
9
9
|
export { Checkbox } from "./components/Checkbox/Checkbox";
|
|
10
10
|
export { Label } from "./components/Label/Label";
|
|
11
11
|
export { Input } from "./components/Input/Input";
|
|
12
|
+
export { Navbar } from "./components/Navbar";
|
|
13
|
+
export { default as ActionButton } from "./components/ActionButton/ActionButton";
|
|
14
|
+
export { Avatar, AvatarGroup } from "./components/Avatar";
|
|
12
15
|
export * from "./components/Table/Table";
|
|
13
16
|
export * from "./components/DataTable/DataTable";
|
|
14
17
|
export * from "./components/Dialog/Dialog";
|
|
@@ -628,28 +628,44 @@ video {
|
|
|
628
628
|
/* #161C24 */
|
|
629
629
|
--grey-default: var(--grey-100);
|
|
630
630
|
--grey-foreground: var(--white);
|
|
631
|
+
--info-lighter: 208 242 255;
|
|
632
|
+
--info-light: 116 202 255;
|
|
631
633
|
--info-100: 41 152 255;
|
|
632
634
|
/* #2998FF */
|
|
633
635
|
--info-120: 33 122 204;
|
|
634
636
|
/* #217ACC */
|
|
637
|
+
--info-dark: 12 83 183;
|
|
638
|
+
--info-darker: 4 41 122;
|
|
635
639
|
--info-default: var(--info-100);
|
|
636
640
|
--info-foreground: var(--white);
|
|
641
|
+
--success-lighter: 233 252 212;
|
|
642
|
+
--success-light: 170 242 127;
|
|
637
643
|
--success-100: 84 214 44;
|
|
638
644
|
/* #54D62C */
|
|
639
645
|
--success-120: 67 171 35;
|
|
640
646
|
/* #43AB23 */
|
|
647
|
+
--success-dark: 34 154 22;
|
|
648
|
+
--success-darker:8 102 13;
|
|
641
649
|
--success-default: var(--success-100);
|
|
642
650
|
--success-foreground: var(--white);
|
|
651
|
+
--warning-lighter: 255 247 205;
|
|
652
|
+
--warning-light:255 225 106;
|
|
643
653
|
--warning-100: 255 193 7;
|
|
644
654
|
/* #FFC107 */
|
|
645
655
|
--warning-120: 204 154 6;
|
|
646
656
|
/* #CC9A06 */
|
|
657
|
+
--warning-dark: 183 129 3;
|
|
658
|
+
--warning-darker: 122 79 1;
|
|
647
659
|
--warning-default: var(--warning-100);
|
|
648
660
|
--warning-foreground: var(--white);
|
|
661
|
+
--error-lighter: 255 231 217;
|
|
662
|
+
--error-light: 255 164 141;
|
|
649
663
|
--error-100: 255 77 53;
|
|
650
664
|
/* #FF4D35 */
|
|
651
665
|
--error-120: 204 62 42;
|
|
652
666
|
/* #CC3E2A */
|
|
667
|
+
--error-dark: 183 33 54;
|
|
668
|
+
--error-darker: 122 12 46;
|
|
653
669
|
--error-default: var(--error-100);
|
|
654
670
|
--error-foreground: var(--white);
|
|
655
671
|
--main-transparent-primary: 1 1 68;
|
package/dist/theme/global.css
CHANGED
|
@@ -108,23 +108,39 @@
|
|
|
108
108
|
--grey-default: var(--grey-100);
|
|
109
109
|
--grey-foreground: var(--white);
|
|
110
110
|
|
|
111
|
+
--info-lighter: 208 242 255;
|
|
112
|
+
--info-light: 116 202 255;
|
|
111
113
|
--info-100: 41 152 255; /* #2998FF */
|
|
112
114
|
--info-120: 33 122 204; /* #217ACC */
|
|
115
|
+
--info-dark: 12 83 183;
|
|
116
|
+
--info-darker: 4 41 122;
|
|
113
117
|
--info-default: var(--info-100);
|
|
114
118
|
--info-foreground: var(--white);
|
|
115
119
|
|
|
120
|
+
--success-lighter: 233 252 212;
|
|
121
|
+
--success-light: 170 242 127;
|
|
116
122
|
--success-100: 84 214 44; /* #54D62C */
|
|
117
123
|
--success-120: 67 171 35; /* #43AB23 */
|
|
124
|
+
--success-dark: 34 154 22;
|
|
125
|
+
--success-darker:8 102 13;
|
|
118
126
|
--success-default: var(--success-100);
|
|
119
127
|
--success-foreground: var(--white);
|
|
120
128
|
|
|
129
|
+
--warning-lighter: 255 247 205;
|
|
130
|
+
--warning-light:255 225 106;
|
|
121
131
|
--warning-100: 255 193 7; /* #FFC107 */
|
|
122
132
|
--warning-120: 204 154 6; /* #CC9A06 */
|
|
133
|
+
--warning-dark: 183 129 3;
|
|
134
|
+
--warning-darker: 122 79 1;
|
|
123
135
|
--warning-default: var(--warning-100);
|
|
124
136
|
--warning-foreground: var(--white);
|
|
125
137
|
|
|
138
|
+
--error-lighter: 255 231 217;
|
|
139
|
+
--error-light: 255 164 141;
|
|
126
140
|
--error-100: 255 77 53; /* #FF4D35 */
|
|
127
141
|
--error-120: 204 62 42; /* #CC3E2A */
|
|
142
|
+
--error-dark: 183 33 54;
|
|
143
|
+
--error-darker: 122 12 46;
|
|
128
144
|
--error-default: var(--error-100);
|
|
129
145
|
--error-foreground: var(--white);
|
|
130
146
|
|
|
@@ -118,26 +118,42 @@ module.exports = {
|
|
|
118
118
|
foreground: "rgb(var(--grey2-foreground) / <alpha-value>)",
|
|
119
119
|
},
|
|
120
120
|
info: {
|
|
121
|
+
lighter: "rgb(var(--info-lighter)) / <alpha-value>)",
|
|
122
|
+
light: "rgb(var(--info-light)) / <alpha-value>)",
|
|
121
123
|
100: "rgb(var(--info-100)) / <alpha-value>)",
|
|
122
124
|
120: "rgb(var(--info-120)) / <alpha-value>)",
|
|
125
|
+
dark: "rgb(var(--info-dark)) / <alpha-value>)",
|
|
126
|
+
darker: "rgb(var(--info-darker)) / <alpha-value>)",
|
|
123
127
|
DEFAULT: "rgb(var(--info-default) / <alpha-value>)",
|
|
124
128
|
foreground: "rgb(var(--info-foreground) / <alpha-value>)",
|
|
125
129
|
},
|
|
126
130
|
success: {
|
|
131
|
+
lighter: "rgb(var(--success-lighter)) / <alpha-value>)",
|
|
132
|
+
light: "rgb(var(--success-light)) / <alpha-value>)",
|
|
127
133
|
100: "rgb(var(--success-100)) / <alpha-value>)",
|
|
128
134
|
120: "rgb(var(--success-120)) / <alpha-value>)",
|
|
135
|
+
dark: "rgb(var(--success-dark)) / <alpha-value>)",
|
|
136
|
+
darker: "rgb(var(--success-darker)) / <alpha-value>)",
|
|
129
137
|
DEFAULT: "rgb(var(--success-default) / <alpha-value>)",
|
|
130
138
|
foreground: "rgb(var(--success-foreground) / <alpha-value>)",
|
|
131
139
|
},
|
|
132
140
|
warning: {
|
|
141
|
+
lighter: "rgb(var(--warning-lighter)) / <alpha-value>)",
|
|
142
|
+
light: "rgb(var(--warning-light)) / <alpha-value>)",
|
|
133
143
|
100: "rgb(var(--warning-100) / <alpha-value>)",
|
|
134
144
|
120: "rgb(var(--warning-120) / <alpha-value>)",
|
|
145
|
+
dark: "rgb(var(--warning-dark)) / <alpha-value>)",
|
|
146
|
+
darker: "rgb(var(--warning-darker)) / <alpha-value>)",
|
|
135
147
|
DEFAULT: "rgb(var(--warning-default) / <alpha-value>)",
|
|
136
148
|
foreground: "rgb(var(--warning-foreground) / <alpha-value>)",
|
|
137
149
|
},
|
|
138
150
|
error: {
|
|
151
|
+
lighter: "rgb(var(--error-lighter)) / <alpha-value>)",
|
|
152
|
+
light: "rgb(var(--error-light)) / <alpha-value>)",
|
|
139
153
|
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
140
154
|
120: "rgb(var(--error-120) / <alpha-value>)",
|
|
155
|
+
dark: "rgb(var(--error-dark)) / <alpha-value>)",
|
|
156
|
+
darker: "rgb(var(--error-darker)) / <alpha-value>)",
|
|
141
157
|
DEFAULT: "rgb(var(--error-100) / <alpha-value>)",
|
|
142
158
|
foreground: "rgb(var(--error-foreground) / <alpha-value>)",
|
|
143
159
|
},
|
package/package.json
CHANGED
|
@@ -19,23 +19,23 @@ type BaseAvatarProps = {
|
|
|
19
19
|
style?: React.CSSProperties;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
type
|
|
22
|
+
type AvatarTextProps = {
|
|
23
23
|
text: string;
|
|
24
24
|
type: "text";
|
|
25
25
|
} & BaseAvatarProps;
|
|
26
26
|
|
|
27
|
-
type
|
|
27
|
+
type AvatarImageProps = {
|
|
28
28
|
imageUrl: string;
|
|
29
29
|
fallback: React.ReactNode;
|
|
30
30
|
type: "image";
|
|
31
31
|
} & BaseAvatarProps;
|
|
32
32
|
|
|
33
|
-
type
|
|
33
|
+
type AvatarIconProps = {
|
|
34
34
|
icon: string;
|
|
35
35
|
type: "icon";
|
|
36
36
|
} & BaseAvatarProps;
|
|
37
37
|
|
|
38
|
-
export type AvatarProps =
|
|
38
|
+
export type AvatarProps = AvatarTextProps | AvatarImageProps | AvatarIconProps;
|
|
39
39
|
|
|
40
40
|
export const formatAvatarName = (text: string) => {
|
|
41
41
|
if (!text.length) return "-";
|
package/src/index.ts
CHANGED
|
@@ -9,6 +9,9 @@ export { default as Dropdown } from "./components/Dropdown/Dropdown";
|
|
|
9
9
|
export { Checkbox } from "./components/Checkbox/Checkbox";
|
|
10
10
|
export { Label } from "./components/Label/Label";
|
|
11
11
|
export { Input } from "./components/Input/Input";
|
|
12
|
+
export { Navbar } from "./components/Navbar";
|
|
13
|
+
export { default as ActionButton } from "./components/ActionButton/ActionButton";
|
|
14
|
+
export { Avatar, AvatarGroup } from "./components/Avatar";
|
|
12
15
|
export * from "./components/Table/Table";
|
|
13
16
|
export * from "./components/DataTable/DataTable";
|
|
14
17
|
export * from "./components/Dialog/Dialog";
|
|
@@ -18,6 +21,9 @@ export * from "./components/AlertDialog/AlertDialog";
|
|
|
18
21
|
export type { ButtonProps } from "./components/Button/Button";
|
|
19
22
|
export type { InputProps } from "./components/TextInput/TextInput";
|
|
20
23
|
export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
|
|
24
|
+
export type { NavbarProps } from "./components/Navbar/Navbar";
|
|
25
|
+
export type { AvatarProps } from "./components/Avatar/Avatar";
|
|
26
|
+
export type { AvatarGroupProps } from "./components/Avatar/AvatarGroup";
|
|
21
27
|
|
|
22
28
|
// UTILS
|
|
23
29
|
export {
|
package/src/theme/global.css
CHANGED
|
@@ -108,23 +108,39 @@
|
|
|
108
108
|
--grey-default: var(--grey-100);
|
|
109
109
|
--grey-foreground: var(--white);
|
|
110
110
|
|
|
111
|
+
--info-lighter: 208 242 255;
|
|
112
|
+
--info-light: 116 202 255;
|
|
111
113
|
--info-100: 41 152 255; /* #2998FF */
|
|
112
114
|
--info-120: 33 122 204; /* #217ACC */
|
|
115
|
+
--info-dark: 12 83 183;
|
|
116
|
+
--info-darker: 4 41 122;
|
|
113
117
|
--info-default: var(--info-100);
|
|
114
118
|
--info-foreground: var(--white);
|
|
115
119
|
|
|
120
|
+
--success-lighter: 233 252 212;
|
|
121
|
+
--success-light: 170 242 127;
|
|
116
122
|
--success-100: 84 214 44; /* #54D62C */
|
|
117
123
|
--success-120: 67 171 35; /* #43AB23 */
|
|
124
|
+
--success-dark: 34 154 22;
|
|
125
|
+
--success-darker:8 102 13;
|
|
118
126
|
--success-default: var(--success-100);
|
|
119
127
|
--success-foreground: var(--white);
|
|
120
128
|
|
|
129
|
+
--warning-lighter: 255 247 205;
|
|
130
|
+
--warning-light:255 225 106;
|
|
121
131
|
--warning-100: 255 193 7; /* #FFC107 */
|
|
122
132
|
--warning-120: 204 154 6; /* #CC9A06 */
|
|
133
|
+
--warning-dark: 183 129 3;
|
|
134
|
+
--warning-darker: 122 79 1;
|
|
123
135
|
--warning-default: var(--warning-100);
|
|
124
136
|
--warning-foreground: var(--white);
|
|
125
137
|
|
|
138
|
+
--error-lighter: 255 231 217;
|
|
139
|
+
--error-light: 255 164 141;
|
|
126
140
|
--error-100: 255 77 53; /* #FF4D35 */
|
|
127
141
|
--error-120: 204 62 42; /* #CC3E2A */
|
|
142
|
+
--error-dark: 183 33 54;
|
|
143
|
+
--error-darker: 122 12 46;
|
|
128
144
|
--error-default: var(--error-100);
|
|
129
145
|
--error-foreground: var(--white);
|
|
130
146
|
|
|
@@ -118,26 +118,42 @@ module.exports = {
|
|
|
118
118
|
foreground: "rgb(var(--grey2-foreground) / <alpha-value>)",
|
|
119
119
|
},
|
|
120
120
|
info: {
|
|
121
|
+
lighter: "rgb(var(--info-lighter)) / <alpha-value>)",
|
|
122
|
+
light: "rgb(var(--info-light)) / <alpha-value>)",
|
|
121
123
|
100: "rgb(var(--info-100)) / <alpha-value>)",
|
|
122
124
|
120: "rgb(var(--info-120)) / <alpha-value>)",
|
|
125
|
+
dark: "rgb(var(--info-dark)) / <alpha-value>)",
|
|
126
|
+
darker: "rgb(var(--info-darker)) / <alpha-value>)",
|
|
123
127
|
DEFAULT: "rgb(var(--info-default) / <alpha-value>)",
|
|
124
128
|
foreground: "rgb(var(--info-foreground) / <alpha-value>)",
|
|
125
129
|
},
|
|
126
130
|
success: {
|
|
131
|
+
lighter: "rgb(var(--success-lighter)) / <alpha-value>)",
|
|
132
|
+
light: "rgb(var(--success-light)) / <alpha-value>)",
|
|
127
133
|
100: "rgb(var(--success-100)) / <alpha-value>)",
|
|
128
134
|
120: "rgb(var(--success-120)) / <alpha-value>)",
|
|
135
|
+
dark: "rgb(var(--success-dark)) / <alpha-value>)",
|
|
136
|
+
darker: "rgb(var(--success-darker)) / <alpha-value>)",
|
|
129
137
|
DEFAULT: "rgb(var(--success-default) / <alpha-value>)",
|
|
130
138
|
foreground: "rgb(var(--success-foreground) / <alpha-value>)",
|
|
131
139
|
},
|
|
132
140
|
warning: {
|
|
141
|
+
lighter: "rgb(var(--warning-lighter)) / <alpha-value>)",
|
|
142
|
+
light: "rgb(var(--warning-light)) / <alpha-value>)",
|
|
133
143
|
100: "rgb(var(--warning-100) / <alpha-value>)",
|
|
134
144
|
120: "rgb(var(--warning-120) / <alpha-value>)",
|
|
145
|
+
dark: "rgb(var(--warning-dark)) / <alpha-value>)",
|
|
146
|
+
darker: "rgb(var(--warning-darker)) / <alpha-value>)",
|
|
135
147
|
DEFAULT: "rgb(var(--warning-default) / <alpha-value>)",
|
|
136
148
|
foreground: "rgb(var(--warning-foreground) / <alpha-value>)",
|
|
137
149
|
},
|
|
138
150
|
error: {
|
|
151
|
+
lighter: "rgb(var(--error-lighter)) / <alpha-value>)",
|
|
152
|
+
light: "rgb(var(--error-light)) / <alpha-value>)",
|
|
139
153
|
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
140
154
|
120: "rgb(var(--error-120) / <alpha-value>)",
|
|
155
|
+
dark: "rgb(var(--error-dark)) / <alpha-value>)",
|
|
156
|
+
darker: "rgb(var(--error-darker)) / <alpha-value>)",
|
|
141
157
|
DEFAULT: "rgb(var(--error-100) / <alpha-value>)",
|
|
142
158
|
foreground: "rgb(var(--error-foreground) / <alpha-value>)",
|
|
143
159
|
},
|