@factorearth/component-library 3.8.6-alpha.0 → 3.10.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Atoms/Tab/Tab.js +2 -2
- package/dist/Atoms/Tab/Tab.js.map +1 -1
- package/dist/Organisms/Modal/Modal.d.ts +7 -1
- package/dist/Organisms/Modal/Modal.js +34 -14
- package/dist/Organisms/Modal/Modal.js.map +1 -1
- package/dist/Theme/ThemeProvider.js +28 -0
- package/dist/Theme/ThemeProvider.js.map +1 -1
- package/dist/Theme/tokens.json +96 -98
- package/dist/Theme/types.d.ts +14 -0
- package/package.json +2 -2
package/dist/Atoms/Tab/Tab.js
CHANGED
|
@@ -21,8 +21,8 @@ const Label = styled.p `
|
|
|
21
21
|
function Tab(props) {
|
|
22
22
|
const { colors, handleClick, label, selected, closeButton, newTabButton, ...remainingProps } = props;
|
|
23
23
|
return (React.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px" } },
|
|
24
|
-
React.createElement(TabDiv, { colors: colors, selected: selected, role: !selected ? "button" : undefined,
|
|
25
|
-
React.createElement(Label, { colors: colors, selected: selected, onClick: !selected ? handleClick : undefined }, label),
|
|
24
|
+
React.createElement(TabDiv, { colors: colors, selected: selected, role: !selected ? "button" : undefined, ...remainingProps },
|
|
25
|
+
React.createElement(Label, { "aria-label": `${label} tab`, colors: colors, selected: selected, onClick: !selected ? handleClick : undefined }, label),
|
|
26
26
|
closeButton && closeButton),
|
|
27
27
|
newTabButton && newTabButton));
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../lib/Atoms/Tab/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAyC;;;;;;;eAOnD,CAAC,EAA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AW,IAAI,WAAW,CACpB;QACN,YAAY,IAAI,YAAY,CACzB,CACN,CAAC;AACH,CAAC;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
3
3
|
import { Colors } from "../../Theme/types";
|
|
4
|
+
export type ToastVariant = "primary" | "success" | "destructive" | "warning" | "info";
|
|
4
5
|
export declare const StyledDialog: import("@emotion/styled").StyledComponent<Dialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement> & {
|
|
5
6
|
theme?: import("@emotion/react").Theme;
|
|
6
7
|
} & {
|
|
7
8
|
colorPalette: Colors;
|
|
9
|
+
toast?: ToastVariant;
|
|
8
10
|
}, {}, {}>;
|
|
9
11
|
export declare const StyledContent: import("@emotion/styled").StyledComponent<Dialog.DialogContentProps & React.RefAttributes<HTMLDivElement> & {
|
|
10
12
|
theme?: import("@emotion/react").Theme;
|
|
11
13
|
} & {
|
|
12
14
|
colorPalette: Colors;
|
|
15
|
+
toast?: ToastVariant;
|
|
13
16
|
}, {}, {}>;
|
|
14
17
|
export declare const DialogContainer: import("@emotion/styled").StyledComponent<{
|
|
15
18
|
theme?: import("@emotion/react").Theme;
|
|
@@ -44,15 +47,18 @@ interface ModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDi
|
|
|
44
47
|
children: React.ReactNode;
|
|
45
48
|
colorPalette: Colors;
|
|
46
49
|
setOpen: (open: boolean) => void;
|
|
50
|
+
toast?: ToastVariant;
|
|
51
|
+
timeout?: number;
|
|
47
52
|
}
|
|
48
53
|
export declare const Modal: (props: ModalProps) => React.JSX.Element;
|
|
49
|
-
interface ConfirmationModalProps {
|
|
54
|
+
interface ConfirmationModalProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
50
55
|
colorPalette: Colors;
|
|
51
56
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
52
57
|
confirmTitle: string;
|
|
53
58
|
confirmText: string;
|
|
54
59
|
handleSubmit: any;
|
|
55
60
|
open: boolean;
|
|
61
|
+
toast?: ToastVariant;
|
|
56
62
|
}
|
|
57
63
|
export declare const ConfirmationModal: (props: ConfirmationModalProps) => React.JSX.Element;
|
|
58
64
|
export {};
|
|
@@ -3,8 +3,9 @@ import * as Dialog from "@radix-ui/react-dialog";
|
|
|
3
3
|
import styled from "@emotion/styled";
|
|
4
4
|
import { Button } from "../../Atoms/Buttons/Button";
|
|
5
5
|
import { FiX } from "react-icons/fi";
|
|
6
|
+
import { useEffect } from "react";
|
|
6
7
|
export const StyledDialog = styled(Dialog.Overlay) `
|
|
7
|
-
|
|
8
|
+
${({ colorPalette, toast }) => !toast && `background-color: ${colorPalette.background.secondary}`};
|
|
8
9
|
opacity: 0.8;
|
|
9
10
|
position: absolute;
|
|
10
11
|
inset: 0;
|
|
@@ -12,12 +13,13 @@ export const StyledDialog = styled(Dialog.Overlay) `
|
|
|
12
13
|
z-index: 1000;
|
|
13
14
|
`;
|
|
14
15
|
export const StyledContent = styled(Dialog.Content) `
|
|
15
|
-
|
|
16
|
+
${({ colorPalette, toast }) => !toast
|
|
17
|
+
? `background-color: ${colorPalette.background.primary}; color: ${colorPalette.text.primary};`
|
|
18
|
+
: `background-color: ${colorPalette.toastBackground[toast]}; color: ${colorPalette.toastText[toast]};`};
|
|
16
19
|
box-shadow: ${({ colorPalette }) => `${colorPalette.background.secondary} 0px 5px 15px`};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
top: 50%;
|
|
20
|
+
${({ toast }) => !toast && `border-radius: 4px;`};
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: ${({ toast }) => (toast ? "64px" : "50%")};
|
|
21
23
|
left: 50%;
|
|
22
24
|
transform: translate(-50%, -50%);
|
|
23
25
|
max-height: 85vh;
|
|
@@ -26,6 +28,7 @@ export const StyledContent = styled(Dialog.Content) `
|
|
|
26
28
|
display: flex;
|
|
27
29
|
flex-direction: column;
|
|
28
30
|
min-width: 300px;
|
|
31
|
+
${({ toast }) => toast && `width: 100%;`};
|
|
29
32
|
gap: 16px;
|
|
30
33
|
:focus {
|
|
31
34
|
outline: none;
|
|
@@ -42,6 +45,7 @@ export const DialogContainer = styled.div `
|
|
|
42
45
|
export const ModalTitleContainer = styled.div `
|
|
43
46
|
display: flex;
|
|
44
47
|
justify-content: space-between;
|
|
48
|
+
align-items: center;
|
|
45
49
|
width: 100%;
|
|
46
50
|
`;
|
|
47
51
|
export const ModalTitle = styled.div `
|
|
@@ -81,23 +85,39 @@ export const ModalInputBox = styled.div `
|
|
|
81
85
|
gap: 8px;
|
|
82
86
|
`;
|
|
83
87
|
export const Modal = (props) => {
|
|
84
|
-
const { open, children, colorPalette, setOpen, ...htmlProps } = props;
|
|
88
|
+
const { open, children, colorPalette, setOpen, toast, timeout, ...htmlProps } = props;
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
let timer;
|
|
91
|
+
if (open && toast) {
|
|
92
|
+
timer = setTimeout(() => {
|
|
93
|
+
setOpen(false);
|
|
94
|
+
}, timeout || 5000);
|
|
95
|
+
}
|
|
96
|
+
return () => {
|
|
97
|
+
if (timer) {
|
|
98
|
+
clearTimeout(timer);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}, [open]);
|
|
85
102
|
return (React.createElement(Dialog.Root, { open: open, modal: true },
|
|
86
103
|
React.createElement(Dialog.Portal, null,
|
|
87
104
|
React.createElement(Dialog.Title, null),
|
|
88
|
-
React.createElement(StyledDialog, { colorPalette: colorPalette }),
|
|
89
|
-
React.createElement(StyledContent, { ...htmlProps, colorPalette: colorPalette, onInteractOutside: () =>
|
|
105
|
+
React.createElement(StyledDialog, { colorPalette: colorPalette, toast: toast }),
|
|
106
|
+
React.createElement(StyledContent, { ...htmlProps, colorPalette: colorPalette, onInteractOutside: () => {
|
|
107
|
+
if (toast)
|
|
108
|
+
setOpen(true);
|
|
109
|
+
}, onPointerDownOutside: () => setOpen(false), toast: toast }, children))));
|
|
90
110
|
};
|
|
91
111
|
export const ConfirmationModal = (props) => {
|
|
92
|
-
const { colorPalette, setOpen, confirmTitle, confirmText, handleSubmit, open, } = props;
|
|
93
|
-
return (React.createElement(Modal, { colorPalette: colorPalette, open: open, setOpen: setOpen },
|
|
94
|
-
React.createElement(DialogContainer,
|
|
112
|
+
const { colorPalette, setOpen, confirmTitle, confirmText, handleSubmit, open, toast, ...htmlProps } = props;
|
|
113
|
+
return (React.createElement(Modal, { colorPalette: colorPalette, open: open, setOpen: setOpen, ...htmlProps, toast: toast },
|
|
114
|
+
React.createElement(DialogContainer, { ...(toast ? { style: { padding: "24px" } } : {}) },
|
|
95
115
|
React.createElement(ModalTitleContainer, null,
|
|
96
116
|
React.createElement(ModalTitle, null, confirmTitle),
|
|
97
117
|
React.createElement(FiX, { onClick: () => setOpen(false), size: 24 })),
|
|
98
118
|
React.createElement(ModelSubHeading, null, confirmText),
|
|
99
|
-
React.createElement(ModalFooter, null,
|
|
119
|
+
!toast && (React.createElement(ModalFooter, null,
|
|
100
120
|
React.createElement(Button, { colorPalette: colorPalette, variant: "filled", label: "Ok", onClick: handleSubmit }),
|
|
101
|
-
React.createElement(Button, { colorPalette: colorPalette, variant: "destructive", label: "Cancel", onClick: () => setOpen(false) })))));
|
|
121
|
+
React.createElement(Button, { colorPalette: colorPalette, variant: "destructive", label: "Cancel", onClick: () => setOpen(false) }))))));
|
|
102
122
|
};
|
|
103
123
|
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../lib/Organisms/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACp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tB,oBAAC,eAAe,QAAE,WAAW,CAAmB;YAC/C,CAAC,KAAK,IAAI,CACV,oBAAC,WAAW;gBACX,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,IAAI,EACV,OAAO,EAAE,YAAY,GACpB;gBACF,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAC5B,CACW,CACd,CACgB,CACX,CACR,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -122,6 +122,20 @@ export const lightTheme = {
|
|
|
122
122
|
selected: white["100"],
|
|
123
123
|
notSelected: grey["800"],
|
|
124
124
|
},
|
|
125
|
+
toastText: {
|
|
126
|
+
success: green["300"],
|
|
127
|
+
destructive: red["400"],
|
|
128
|
+
info: blue["500"],
|
|
129
|
+
warning: orange["300"],
|
|
130
|
+
primary: grey["1100"],
|
|
131
|
+
},
|
|
132
|
+
toastBackground: {
|
|
133
|
+
success: green["100"],
|
|
134
|
+
destructive: red["100"],
|
|
135
|
+
info: blue["100"],
|
|
136
|
+
warning: orange["100"],
|
|
137
|
+
primary: grey["200"],
|
|
138
|
+
},
|
|
125
139
|
theme: "light",
|
|
126
140
|
};
|
|
127
141
|
export const darkTheme = {
|
|
@@ -202,6 +216,20 @@ export const darkTheme = {
|
|
|
202
216
|
selected: grey["1200"],
|
|
203
217
|
notSelected: grey["400"],
|
|
204
218
|
},
|
|
219
|
+
toastText: {
|
|
220
|
+
success: green["300"],
|
|
221
|
+
destructive: red["400"],
|
|
222
|
+
info: blue["500"],
|
|
223
|
+
warning: orange["300"],
|
|
224
|
+
primary: grey["1100"],
|
|
225
|
+
},
|
|
226
|
+
toastBackground: {
|
|
227
|
+
success: green["100"],
|
|
228
|
+
destructive: red["100"],
|
|
229
|
+
info: blue["100"],
|
|
230
|
+
warning: orange["100"],
|
|
231
|
+
primary: grey["200"],
|
|
232
|
+
},
|
|
205
233
|
theme: "dark",
|
|
206
234
|
};
|
|
207
235
|
const ThemeContext = createContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../lib/Theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../lib/Theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,MAAM,MAAM,eAAe,CAAC;AAInC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAoB;IAC1E,IAAI,EAAE;QACL,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK;QAC3D,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK;QACzD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK;QAC1D,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK;QACnD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,CAAC,KAAK;QACxD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK;KACzD;IACD,KAAK,EAAE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,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE;QACzE,6BACC,KAAK,EAAE;gBACN,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO;gBACzC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO;aACzB,IAEA,QAAQ,CACJ,CACiB,CACxB,CAAC;AACH,CAAC,CAAC"}
|
package/dist/Theme/tokens.json
CHANGED
|
@@ -164,16 +164,102 @@
|
|
|
164
164
|
"value": "20",
|
|
165
165
|
"type": "borderRadius"
|
|
166
166
|
},
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
167
|
+
"Typography": {
|
|
168
|
+
"Jumbo": {
|
|
169
|
+
"value": {
|
|
170
|
+
"role": "heading",
|
|
171
|
+
"ariaLevel": "1",
|
|
172
|
+
"fontWeight": "700",
|
|
173
|
+
"fontSize": "61px",
|
|
174
|
+
"letterSpacing": "0",
|
|
175
|
+
"lineHeight": "133px"
|
|
176
|
+
},
|
|
177
|
+
"type": "typography"
|
|
178
|
+
},
|
|
179
|
+
"Heading 1": {
|
|
180
|
+
"value": {
|
|
181
|
+
"role": "heading",
|
|
182
|
+
"ariaLevel": "1",
|
|
183
|
+
"fontSize": "47px",
|
|
184
|
+
"lineHeight": "133%",
|
|
185
|
+
"letterSpacing": "0",
|
|
186
|
+
"fontWeight": "700"
|
|
187
|
+
},
|
|
188
|
+
"type": "typography"
|
|
189
|
+
},
|
|
190
|
+
"Heading 2": {
|
|
191
|
+
"value": {
|
|
192
|
+
"role": "heading",
|
|
193
|
+
"ariaLevel": "2",
|
|
194
|
+
"fontSize": "36px",
|
|
195
|
+
"lineHeight": "133%",
|
|
196
|
+
"letterSpacing": "0",
|
|
197
|
+
"fontWeight": "700"
|
|
198
|
+
},
|
|
199
|
+
"type": "typography"
|
|
200
|
+
},
|
|
201
|
+
"Heading 3": {
|
|
202
|
+
"value": {
|
|
203
|
+
"role": "heading",
|
|
204
|
+
"ariaLevel": "3",
|
|
205
|
+
"fontWeight": "700",
|
|
206
|
+
"fontSize": "27px",
|
|
207
|
+
"lineHeight": "133%",
|
|
208
|
+
"letterSpacing": "0"
|
|
209
|
+
},
|
|
210
|
+
"type": "typography"
|
|
211
|
+
},
|
|
212
|
+
"Heading 4": {
|
|
213
|
+
"value": {
|
|
214
|
+
"role": "heading",
|
|
215
|
+
"ariaLevel": "4",
|
|
216
|
+
"fontSize": "21px",
|
|
217
|
+
"lineHeight": "133%",
|
|
218
|
+
"letterSpacing": "0",
|
|
219
|
+
"fontWeight": "700"
|
|
220
|
+
},
|
|
221
|
+
"type": "typography"
|
|
222
|
+
},
|
|
223
|
+
"Paragraphy Body": {
|
|
224
|
+
"value": {
|
|
225
|
+
"role": "paragraph",
|
|
226
|
+
"fontSize": "16px",
|
|
227
|
+
"lineHeight": "133%",
|
|
228
|
+
"letterSpacing": "0",
|
|
229
|
+
"fontWeight": "400"
|
|
230
|
+
},
|
|
231
|
+
"type": "typography"
|
|
232
|
+
},
|
|
233
|
+
"Small": {
|
|
234
|
+
"value": {
|
|
235
|
+
"role": "paragraph",
|
|
236
|
+
"fontSize": "14px",
|
|
237
|
+
"lineHeight": "133%",
|
|
238
|
+
"letterSpacing": "0",
|
|
239
|
+
"fontWeight": "400"
|
|
240
|
+
},
|
|
241
|
+
"type": "typography"
|
|
242
|
+
},
|
|
243
|
+
"Label": {
|
|
244
|
+
"value": {
|
|
245
|
+
"role": "paragraph",
|
|
246
|
+
"fontSize": "12px",
|
|
247
|
+
"lineHeight": "133%",
|
|
248
|
+
"letterSpacing": "0",
|
|
249
|
+
"fontWeight": "700"
|
|
250
|
+
},
|
|
251
|
+
"type": "typography"
|
|
252
|
+
},
|
|
253
|
+
"Legal": {
|
|
254
|
+
"value": {
|
|
255
|
+
"role": "paragraph",
|
|
256
|
+
"fontSize": "9px",
|
|
257
|
+
"lineHeight": "133%",
|
|
258
|
+
"fontWeight": "400",
|
|
259
|
+
"letterSpacing": "0"
|
|
260
|
+
},
|
|
261
|
+
"type": "typography"
|
|
262
|
+
}
|
|
177
263
|
},
|
|
178
264
|
"System ": {
|
|
179
265
|
"SF Compact": {
|
|
@@ -184,94 +270,6 @@
|
|
|
184
270
|
"Thin": {
|
|
185
271
|
"value": ".5",
|
|
186
272
|
"type": "borderWidth"
|
|
187
|
-
},
|
|
188
|
-
"Heading 1": {
|
|
189
|
-
"value": {
|
|
190
|
-
"fontFamily": "{System .SF Compact}",
|
|
191
|
-
"fontWeight": "Bold",
|
|
192
|
-
"fontSize": "47",
|
|
193
|
-
"lineHeight": "{133}",
|
|
194
|
-
"letterSpacing": "0",
|
|
195
|
-
"paragraphSpacing": "0"
|
|
196
|
-
},
|
|
197
|
-
"type": "typography"
|
|
198
|
-
},
|
|
199
|
-
"Heading 2": {
|
|
200
|
-
"value": {
|
|
201
|
-
"fontFamily": "{System .SF Compact}",
|
|
202
|
-
"fontWeight": "Bold",
|
|
203
|
-
"fontSize": "36",
|
|
204
|
-
"lineHeight": "{133}",
|
|
205
|
-
"letterSpacing": "0",
|
|
206
|
-
"paragraphSpacing": "0"
|
|
207
|
-
},
|
|
208
|
-
"type": "typography"
|
|
209
|
-
},
|
|
210
|
-
"Heading 3": {
|
|
211
|
-
"value": {
|
|
212
|
-
"fontFamily": "{System .SF Compact}",
|
|
213
|
-
"fontWeight": "Bold",
|
|
214
|
-
"fontSize": "27",
|
|
215
|
-
"lineHeight": "{133}",
|
|
216
|
-
"letterSpacing": "0",
|
|
217
|
-
"paragraphSpacing": "0"
|
|
218
|
-
},
|
|
219
|
-
"type": "typography"
|
|
220
|
-
},
|
|
221
|
-
"Heading 4": {
|
|
222
|
-
"value": {
|
|
223
|
-
"fontFamily": "{System .SF Compact}",
|
|
224
|
-
"fontWeight": "Bold",
|
|
225
|
-
"fontSize": "21",
|
|
226
|
-
"lineHeight": "{133}",
|
|
227
|
-
"letterSpacing": "0",
|
|
228
|
-
"paragraphSpacing": "0"
|
|
229
|
-
},
|
|
230
|
-
"type": "typography"
|
|
231
|
-
},
|
|
232
|
-
"Paragraphy Body": {
|
|
233
|
-
"value": {
|
|
234
|
-
"fontFamily": "{System .SF Compact}",
|
|
235
|
-
"fontWeight": "Regular",
|
|
236
|
-
"fontSize": "16",
|
|
237
|
-
"lineHeight": "{133}",
|
|
238
|
-
"letterSpacing": "0",
|
|
239
|
-
"paragraphSpacing": "0"
|
|
240
|
-
},
|
|
241
|
-
"type": "typography"
|
|
242
|
-
},
|
|
243
|
-
"Small": {
|
|
244
|
-
"value": {
|
|
245
|
-
"fontFamily": "{System .SF Compact}",
|
|
246
|
-
"fontWeight": "Regular",
|
|
247
|
-
"fontSize": "14",
|
|
248
|
-
"lineHeight": "{133}",
|
|
249
|
-
"letterSpacing": "0",
|
|
250
|
-
"paragraphSpacing": "0"
|
|
251
|
-
},
|
|
252
|
-
"type": "typography"
|
|
253
|
-
},
|
|
254
|
-
"Label": {
|
|
255
|
-
"value": {
|
|
256
|
-
"fontFamily": "{System .SF Compact}",
|
|
257
|
-
"fontWeight": "Bold",
|
|
258
|
-
"fontSize": "12",
|
|
259
|
-
"lineHeight": "{133}",
|
|
260
|
-
"letterSpacing": "0",
|
|
261
|
-
"paragraphSpacing": "0"
|
|
262
|
-
},
|
|
263
|
-
"type": "typography"
|
|
264
|
-
},
|
|
265
|
-
"Legal": {
|
|
266
|
-
"value": {
|
|
267
|
-
"fontFamily": "{System .SF Compact}",
|
|
268
|
-
"fontWeight": "Regular",
|
|
269
|
-
"fontSize": "9",
|
|
270
|
-
"lineHeight": "{133}",
|
|
271
|
-
"paragraphSpacing": "0",
|
|
272
|
-
"paragraphIndent": "0"
|
|
273
|
-
},
|
|
274
|
-
"type": "typography"
|
|
275
273
|
}
|
|
276
274
|
},
|
|
277
275
|
"$themes": [],
|
package/dist/Theme/types.d.ts
CHANGED
|
@@ -127,6 +127,20 @@ export interface Colors {
|
|
|
127
127
|
icon: string;
|
|
128
128
|
disabled: string;
|
|
129
129
|
};
|
|
130
|
+
toastText: {
|
|
131
|
+
success: string;
|
|
132
|
+
destructive: string;
|
|
133
|
+
info: string;
|
|
134
|
+
primary: string;
|
|
135
|
+
warning: string;
|
|
136
|
+
};
|
|
137
|
+
toastBackground: {
|
|
138
|
+
success: string;
|
|
139
|
+
destructive: string;
|
|
140
|
+
info: string;
|
|
141
|
+
primary: string;
|
|
142
|
+
warning: string;
|
|
143
|
+
};
|
|
130
144
|
theme: "light" | "dark";
|
|
131
145
|
}
|
|
132
146
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-alpha.0",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "655f9a999fbaebcf5113fbc7cc5d92fb51775c37",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@emotion/react": "^11.13.0",
|
|
52
52
|
"@emotion/styled": "^11.13.0",
|