@taiv/ui 1.9.0 → 1.10.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/components/Info/Badge/Badge.d.ts +10 -8
- package/dist/components/Info/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Info/Badge/Badge.js +23 -45
- package/dist/components/Info/Badge/Badge.stories.d.ts +15 -0
- package/dist/components/Info/Badge/Badge.stories.d.ts.map +1 -0
- package/dist/components/Info/Badge/Badge.stories.js +92 -0
- package/dist/components/Info/Badge/sizes.d.ts +34 -0
- package/dist/components/Info/Badge/sizes.d.ts.map +1 -0
- package/dist/components/Info/Badge/sizes.js +24 -0
- package/dist/components/Info/Badge/variants.d.ts +6 -0
- package/dist/components/Info/Badge/variants.d.ts.map +1 -0
- package/dist/components/Info/Badge/variants.js +22 -0
- package/dist/components/Info/Modals/FormModal/FormModal.d.ts +16 -0
- package/dist/components/Info/Modals/FormModal/FormModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/FormModal/FormModal.js +59 -0
- package/dist/components/Info/Modals/FormModal/FormModal.stories.d.ts +14 -0
- package/dist/components/Info/Modals/FormModal/FormModal.stories.d.ts.map +1 -0
- package/dist/components/Info/Modals/FormModal/FormModal.stories.js +187 -0
- package/dist/components/Inputs/Buttons/Button/Button.d.ts +2 -2
- package/dist/components/Inputs/Buttons/Button/Button.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/Button/Button.js +3 -4
- package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts +2 -2
- package/dist/components/Inputs/Buttons/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/IconButton/IconButton.js +23 -4
- package/dist/components/Inputs/Buttons/shared/variants.d.ts +76 -188
- package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/shared/variants.js +49 -88
- package/dist/components/Layout/Table/Table.d.ts +3 -1
- package/dist/components/Layout/Table/Table.d.ts.map +1 -1
- package/dist/components/Layout/Table/Table.js +3 -3
- package/dist/components/Layout/Table/Table.stories.d.ts +3 -0
- package/dist/components/Layout/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/Layout/Table/Table.stories.js +60 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/hooks/useConfirmationModal.d.ts +1 -1
- package/dist/hooks/useConfirmationModal.d.ts.map +1 -1
- package/dist/hooks/useConfirmationModal.js +3 -1
- package/dist/hooks/useInfoModal.d.ts +1 -1
- package/dist/hooks/useInfoModal.d.ts.map +1 -1
- package/dist/hooks/useInfoModal.js +3 -1
- package/package.json +2 -3
|
@@ -2,11 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as MantineButton } from '@mantine/core';
|
|
3
3
|
import { fontBase, fontWeight } from '../../../../constants/font';
|
|
4
4
|
import { componentSizes } from './sizes';
|
|
5
|
-
import {
|
|
5
|
+
import { componentVariants } from '../shared/variants';
|
|
6
6
|
export const Button = ({ onClick, size = 'md', variant = 'primary', fullWidth = false, toggled = false, shadow = false, styles, ...props }) => {
|
|
7
|
-
const selectedVariant =
|
|
7
|
+
const selectedVariant = componentVariants[variant];
|
|
8
8
|
const selectedSize = componentSizes[size];
|
|
9
|
-
// Apply active styles for nav variant when isActive is true
|
|
10
9
|
const getVariantStyles = () => {
|
|
11
10
|
if (toggled) {
|
|
12
11
|
return {
|
|
@@ -19,13 +18,13 @@ export const Button = ({ onClick, size = 'md', variant = 'primary', fullWidth =
|
|
|
19
18
|
const style = {
|
|
20
19
|
root: {
|
|
21
20
|
borderRadius: '8px',
|
|
22
|
-
border: '1px solid white',
|
|
23
21
|
width: fullWidth ? '100%' : 'fit-content',
|
|
24
22
|
height: `${selectedSize.height}rem`,
|
|
25
23
|
padding: selectedSize.padding,
|
|
26
24
|
minWidth: `${selectedSize.minWidth}rem`,
|
|
27
25
|
fontSize: selectedSize.fontSize,
|
|
28
26
|
boxShadow: shadow ? '0px 4px 6px rgba(0, 0, 0, 0.1)' : 'none',
|
|
27
|
+
transition: 'background 0.1s ease-in-out',
|
|
29
28
|
...getVariantStyles(),
|
|
30
29
|
},
|
|
31
30
|
label: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ButtonProps as MantineButtonProps } from '@mantine/core';
|
|
3
3
|
import { componentSizes } from './sizes';
|
|
4
|
-
import {
|
|
4
|
+
import { componentVariants as baseVariants } from '../shared/variants';
|
|
5
5
|
export interface IconButtonProps extends Omit<MantineButtonProps, 'leftIcon' | 'rightIcon'> {
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
size?: keyof typeof componentSizes;
|
|
8
|
-
variant?: keyof typeof
|
|
8
|
+
variant?: keyof typeof baseVariants;
|
|
9
9
|
toggled?: boolean;
|
|
10
10
|
shadow?: boolean;
|
|
11
11
|
subtle?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAkB,MAAM,oBAAoB,CAAC;AAIvF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,WAAW,CAAC;IACzF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,UAAU,GAAI,0FAA0I,eAAe,4CA8DnL,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button as MantineButton } from '@mantine/core';
|
|
3
3
|
import { componentSizes } from './sizes';
|
|
4
|
-
import {
|
|
4
|
+
import { componentVariants as baseVariants, subtleVariants } from '../shared/variants';
|
|
5
5
|
import { neutral } from '../../../../constants/colors';
|
|
6
6
|
import { Tooltip } from '../../../Info/Tooltips/Tooltip/Tooltip';
|
|
7
7
|
export const IconButton = ({ onClick, size = 'md', variant = 'primary', toggled = false, shadow = false, subtle = false, tooltip = '', styles, children, ...props }) => {
|
|
8
|
-
const selectedVariant =
|
|
8
|
+
const selectedVariant = baseVariants[variant];
|
|
9
9
|
const selectedSize = componentSizes[size];
|
|
10
|
-
// Apply active styles for nav variant when isActive is true
|
|
11
10
|
const getVariantStyles = () => {
|
|
12
11
|
if (toggled) {
|
|
13
12
|
return {
|
|
@@ -17,15 +16,35 @@ export const IconButton = ({ onClick, size = 'md', variant = 'primary', toggled
|
|
|
17
16
|
}
|
|
18
17
|
return selectedVariant;
|
|
19
18
|
};
|
|
19
|
+
const getSubtleStyles = () => {
|
|
20
|
+
if (subtle) {
|
|
21
|
+
return {
|
|
22
|
+
...subtleVariants[variant],
|
|
23
|
+
border: `1px solid ${neutral[50]}`,
|
|
24
|
+
background: 'white',
|
|
25
|
+
'&:hover': {
|
|
26
|
+
background: neutral[50],
|
|
27
|
+
border: `1px solid ${neutral[50]}`,
|
|
28
|
+
},
|
|
29
|
+
'&:active': {
|
|
30
|
+
background: 'white',
|
|
31
|
+
},
|
|
32
|
+
'&:toggled': {
|
|
33
|
+
background: neutral[50],
|
|
34
|
+
border: `1px solid ${neutral[100]}`,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
20
39
|
const style = {
|
|
21
40
|
root: {
|
|
22
41
|
borderRadius: '8px',
|
|
23
|
-
border: subtle ? `1px solid ${neutral[50]}` : '1px solid white',
|
|
24
42
|
height: `${selectedSize.borderLength}rem`,
|
|
25
43
|
padding: selectedSize.padding,
|
|
26
44
|
width: `${selectedSize.borderLength}rem`,
|
|
27
45
|
boxShadow: shadow ? '0px 4px 6px rgba(0, 0, 0, 0.1)' : 'none',
|
|
28
46
|
...getVariantStyles(),
|
|
47
|
+
...getSubtleStyles(),
|
|
29
48
|
},
|
|
30
49
|
...styles,
|
|
31
50
|
};
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const componentVariants: {
|
|
2
2
|
readonly primary: {
|
|
3
3
|
readonly background: "linear-gradient(to right, #0081CE, #00A6F4)";
|
|
4
|
+
readonly border: "1px solid #00A6F4";
|
|
4
5
|
readonly color: "white";
|
|
5
6
|
readonly '&:hover': {
|
|
6
7
|
readonly background: "linear-gradient(to right, #0081CE, #0081CE)";
|
|
7
|
-
readonly transition: "background 0.3s ease-in-out";
|
|
8
8
|
};
|
|
9
9
|
readonly '&:active': {
|
|
10
10
|
readonly background: "white";
|
|
11
|
-
readonly border: "1px solid #
|
|
12
|
-
readonly color: "#
|
|
11
|
+
readonly border: "1px solid #0081CE";
|
|
12
|
+
readonly color: "#0081CE";
|
|
13
13
|
};
|
|
14
14
|
readonly '&:toggled': {
|
|
15
|
-
readonly background: "
|
|
15
|
+
readonly background: "#0081CE";
|
|
16
16
|
readonly color: "white";
|
|
17
17
|
};
|
|
18
18
|
readonly '&:disabled': {
|
|
19
19
|
readonly background: "#EDEDED";
|
|
20
|
+
readonly border: "1px solid #EDEDED";
|
|
20
21
|
readonly color: "#D9D9D9";
|
|
21
22
|
};
|
|
22
23
|
readonly '&[data-loading]': {
|
|
23
24
|
readonly '& .mantine-Button-icon svg': {
|
|
24
25
|
readonly stroke: "white";
|
|
25
26
|
};
|
|
27
|
+
readonly '&:before': {
|
|
28
|
+
readonly top: "-0.1rem";
|
|
29
|
+
readonly right: "-0.1rem";
|
|
30
|
+
readonly left: "-0.1rem";
|
|
31
|
+
readonly bottom: "-0.1rem";
|
|
32
|
+
readonly borderRadius: "8px";
|
|
33
|
+
};
|
|
26
34
|
};
|
|
27
35
|
};
|
|
28
36
|
readonly secondary: {
|
|
@@ -52,82 +60,116 @@ export declare const buttonVariants: {
|
|
|
52
60
|
readonly '& .mantine-Button-icon svg': {
|
|
53
61
|
readonly stroke: "#6D6D6D";
|
|
54
62
|
};
|
|
63
|
+
readonly '&:before': {
|
|
64
|
+
readonly top: "-0.1rem";
|
|
65
|
+
readonly right: "-0.1rem";
|
|
66
|
+
readonly left: "-0.1rem";
|
|
67
|
+
readonly bottom: "-0.1rem";
|
|
68
|
+
readonly borderRadius: "8px";
|
|
69
|
+
};
|
|
55
70
|
};
|
|
56
71
|
};
|
|
57
72
|
readonly cancel: {
|
|
58
73
|
readonly background: "#C10007";
|
|
59
74
|
readonly color: "white";
|
|
75
|
+
readonly border: "1px solid #C10007";
|
|
60
76
|
readonly '&:hover': {
|
|
61
77
|
readonly background: "#FB2C36";
|
|
78
|
+
readonly border: "1px solid #FB2C36";
|
|
62
79
|
};
|
|
63
80
|
readonly '&:active': {
|
|
64
81
|
readonly background: "white";
|
|
65
|
-
readonly border: "1px solid #
|
|
66
|
-
readonly color: "#
|
|
82
|
+
readonly border: "1px solid #FB2C36";
|
|
83
|
+
readonly color: "#FB2C36";
|
|
67
84
|
};
|
|
68
85
|
readonly '&:toggled': {
|
|
69
86
|
readonly background: "#FB2C36";
|
|
70
87
|
readonly color: "white";
|
|
71
88
|
};
|
|
72
89
|
readonly '&:disabled': {
|
|
73
|
-
readonly background: "#
|
|
74
|
-
readonly border: "1px solid #
|
|
75
|
-
readonly color: "
|
|
90
|
+
readonly background: "#EDEDED";
|
|
91
|
+
readonly border: "1px solid #EDEDED";
|
|
92
|
+
readonly color: "#D9D9D9";
|
|
76
93
|
};
|
|
77
94
|
readonly '&[data-loading]': {
|
|
78
95
|
readonly '& .mantine-Button-icon svg': {
|
|
79
96
|
readonly stroke: "white";
|
|
80
97
|
};
|
|
98
|
+
readonly '&:before': {
|
|
99
|
+
readonly top: "-0.1rem";
|
|
100
|
+
readonly right: "-0.1rem";
|
|
101
|
+
readonly left: "-0.1rem";
|
|
102
|
+
readonly bottom: "-0.1rem";
|
|
103
|
+
readonly borderRadius: "8px";
|
|
104
|
+
};
|
|
81
105
|
};
|
|
82
106
|
};
|
|
83
107
|
readonly success: {
|
|
84
108
|
readonly background: "#00A63E";
|
|
85
109
|
readonly color: "white";
|
|
110
|
+
readonly border: "1px solid #00A63E";
|
|
86
111
|
readonly '&:hover': {
|
|
87
112
|
readonly background: "#00C951";
|
|
113
|
+
readonly border: "1px solid #00C951";
|
|
88
114
|
};
|
|
89
115
|
readonly '&:active': {
|
|
90
116
|
readonly background: "white";
|
|
91
|
-
readonly border: "1px solid #
|
|
92
|
-
readonly color: "#
|
|
117
|
+
readonly border: "1px solid #00C951";
|
|
118
|
+
readonly color: "#00C951";
|
|
93
119
|
};
|
|
94
120
|
readonly '&:toggled': {
|
|
95
121
|
readonly background: "#00C951";
|
|
96
122
|
};
|
|
97
123
|
readonly '&:disabled': {
|
|
98
|
-
readonly background: "#
|
|
99
|
-
readonly border: "1px solid #
|
|
100
|
-
readonly color: "
|
|
124
|
+
readonly background: "#EDEDED";
|
|
125
|
+
readonly border: "1px solid #EDEDED";
|
|
126
|
+
readonly color: "#D9D9D9";
|
|
101
127
|
};
|
|
102
128
|
readonly '&[data-loading]': {
|
|
103
129
|
readonly '& .mantine-Button-icon svg': {
|
|
104
130
|
readonly stroke: "white";
|
|
105
131
|
};
|
|
132
|
+
readonly '&:before': {
|
|
133
|
+
readonly top: "-0.1rem";
|
|
134
|
+
readonly right: "-0.1rem";
|
|
135
|
+
readonly left: "-0.1rem";
|
|
136
|
+
readonly bottom: "-0.1rem";
|
|
137
|
+
readonly borderRadius: "8px";
|
|
138
|
+
};
|
|
106
139
|
};
|
|
107
140
|
};
|
|
108
141
|
readonly warning: {
|
|
109
142
|
readonly background: "#E17100";
|
|
110
143
|
readonly color: "white";
|
|
144
|
+
readonly border: "1px solid #E17100";
|
|
111
145
|
readonly '&:hover': {
|
|
112
146
|
readonly background: "#FE9A00";
|
|
147
|
+
readonly border: "1px solid #FE9A00";
|
|
113
148
|
};
|
|
114
149
|
readonly '&:active': {
|
|
115
150
|
readonly background: "white";
|
|
116
|
-
readonly border: "1px solid #
|
|
117
|
-
readonly color: "#
|
|
151
|
+
readonly border: "1px solid #FE9A00";
|
|
152
|
+
readonly color: "#FE9A00";
|
|
118
153
|
};
|
|
119
154
|
readonly '&:toggled': {
|
|
120
155
|
readonly background: "#FE9A00";
|
|
121
156
|
};
|
|
122
157
|
readonly '&:disabled': {
|
|
123
|
-
readonly background: "#
|
|
124
|
-
readonly border: "1px solid #
|
|
125
|
-
readonly color: "
|
|
158
|
+
readonly background: "#EDEDED";
|
|
159
|
+
readonly border: "1px solid #EDEDED";
|
|
160
|
+
readonly color: "#D9D9D9";
|
|
126
161
|
};
|
|
127
162
|
readonly '&[data-loading]': {
|
|
128
163
|
readonly '& .mantine-Button-icon svg': {
|
|
129
164
|
readonly stroke: "white";
|
|
130
165
|
};
|
|
166
|
+
readonly '&:before': {
|
|
167
|
+
readonly top: "-0.1rem";
|
|
168
|
+
readonly right: "-0.1rem";
|
|
169
|
+
readonly left: "-0.1rem";
|
|
170
|
+
readonly bottom: "-0.1rem";
|
|
171
|
+
readonly borderRadius: "8px";
|
|
172
|
+
};
|
|
131
173
|
};
|
|
132
174
|
};
|
|
133
175
|
readonly text: {
|
|
@@ -157,6 +199,13 @@ export declare const buttonVariants: {
|
|
|
157
199
|
readonly '& .mantine-Button-icon svg': {
|
|
158
200
|
readonly stroke: "#6D6D6D";
|
|
159
201
|
};
|
|
202
|
+
readonly '&:before': {
|
|
203
|
+
readonly top: "-0.1rem";
|
|
204
|
+
readonly right: "-0.1rem";
|
|
205
|
+
readonly left: "-0.1rem";
|
|
206
|
+
readonly bottom: "-0.1rem";
|
|
207
|
+
readonly borderRadius: "8px";
|
|
208
|
+
};
|
|
160
209
|
};
|
|
161
210
|
};
|
|
162
211
|
readonly nav: {
|
|
@@ -185,198 +234,37 @@ export declare const buttonVariants: {
|
|
|
185
234
|
readonly '& .mantine-Button-icon svg': {
|
|
186
235
|
readonly stroke: "#6D6D6D";
|
|
187
236
|
};
|
|
237
|
+
readonly '&:before': {
|
|
238
|
+
readonly top: "-0.1rem";
|
|
239
|
+
readonly right: "-0.1rem";
|
|
240
|
+
readonly left: "-0.1rem";
|
|
241
|
+
readonly bottom: "-0.1rem";
|
|
242
|
+
readonly borderRadius: "8px";
|
|
243
|
+
};
|
|
188
244
|
};
|
|
189
245
|
};
|
|
190
246
|
};
|
|
191
247
|
export declare const subtleVariants: {
|
|
192
248
|
readonly primary: {
|
|
193
|
-
readonly background: "white";
|
|
194
249
|
readonly color: "#00A6F4";
|
|
195
|
-
readonly '&:hover': {
|
|
196
|
-
readonly background: "#74D4FF";
|
|
197
|
-
readonly transition: "background 0.3s ease-in-out";
|
|
198
|
-
};
|
|
199
|
-
readonly '&:active': {
|
|
200
|
-
readonly background: "white";
|
|
201
|
-
readonly border: "1px solid #00A6F4";
|
|
202
|
-
readonly color: "#00A6F4";
|
|
203
|
-
};
|
|
204
|
-
readonly '&:toggled': {
|
|
205
|
-
readonly background: "#0081CE";
|
|
206
|
-
readonly color: "white";
|
|
207
|
-
};
|
|
208
|
-
readonly '&:disabled': {
|
|
209
|
-
readonly background: "#EDEDED";
|
|
210
|
-
readonly color: "#D9D9D9";
|
|
211
|
-
};
|
|
212
|
-
readonly '&[data-loading]': {
|
|
213
|
-
readonly '& .mantine-Button-icon svg': {
|
|
214
|
-
readonly stroke: "white";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
250
|
};
|
|
218
251
|
readonly secondary: {
|
|
219
|
-
readonly background: "white";
|
|
220
252
|
readonly color: "#6D6D6D";
|
|
221
|
-
readonly border: "1px solid #EDEDED";
|
|
222
|
-
readonly '&:hover': {
|
|
223
|
-
readonly background: "#D9D9D9";
|
|
224
|
-
readonly border: "1px solid #D9D9D9";
|
|
225
|
-
readonly color: "white";
|
|
226
|
-
};
|
|
227
|
-
readonly '&:active': {
|
|
228
|
-
readonly background: "#D9D9D9";
|
|
229
|
-
readonly border: "1px solid #6D6D6D";
|
|
230
|
-
readonly color: "#6D6D6D";
|
|
231
|
-
};
|
|
232
|
-
readonly '&:toggled': {
|
|
233
|
-
readonly background: "#D9D9D9";
|
|
234
|
-
readonly color: "neutral[200]";
|
|
235
|
-
};
|
|
236
|
-
readonly '&:disabled': {
|
|
237
|
-
readonly background: "#EDEDED";
|
|
238
|
-
readonly border: "1px solid #EDEDED";
|
|
239
|
-
readonly color: "#D9D9D9";
|
|
240
|
-
};
|
|
241
|
-
readonly '&[data-loading]': {
|
|
242
|
-
readonly '& .mantine-Button-icon svg': {
|
|
243
|
-
readonly stroke: "#6D6D6D";
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
253
|
};
|
|
247
254
|
readonly cancel: {
|
|
248
|
-
readonly background: "white";
|
|
249
255
|
readonly color: "#C10007";
|
|
250
|
-
readonly '&:hover': {
|
|
251
|
-
readonly background: "#FB2C36";
|
|
252
|
-
};
|
|
253
|
-
readonly '&:active': {
|
|
254
|
-
readonly background: "white";
|
|
255
|
-
readonly border: "1px solid #C10007";
|
|
256
|
-
readonly color: "#C10007";
|
|
257
|
-
};
|
|
258
|
-
readonly '&:toggled': {
|
|
259
|
-
readonly background: "#FB2C36";
|
|
260
|
-
readonly color: "white";
|
|
261
|
-
};
|
|
262
|
-
readonly '&:disabled': {
|
|
263
|
-
readonly background: "#FFD7D9";
|
|
264
|
-
readonly border: "1px solid #FFD7D9";
|
|
265
|
-
readonly color: "white";
|
|
266
|
-
};
|
|
267
|
-
readonly '&[data-loading]': {
|
|
268
|
-
readonly '& .mantine-Button-icon svg': {
|
|
269
|
-
readonly stroke: "white";
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
256
|
};
|
|
273
257
|
readonly success: {
|
|
274
|
-
readonly background: "white";
|
|
275
258
|
readonly color: "#00A63E";
|
|
276
|
-
readonly '&:hover': {
|
|
277
|
-
readonly background: "#00C951";
|
|
278
|
-
};
|
|
279
|
-
readonly '&:active': {
|
|
280
|
-
readonly background: "white";
|
|
281
|
-
readonly border: "1px solid #00A63E";
|
|
282
|
-
readonly color: "#00A63E";
|
|
283
|
-
};
|
|
284
|
-
readonly '&:toggled': {
|
|
285
|
-
readonly background: "#00C951";
|
|
286
|
-
};
|
|
287
|
-
readonly '&:disabled': {
|
|
288
|
-
readonly background: "#E6F4E7";
|
|
289
|
-
readonly border: "1px solid #E6F4E7";
|
|
290
|
-
readonly color: "white";
|
|
291
|
-
};
|
|
292
|
-
readonly '&[data-loading]': {
|
|
293
|
-
readonly '& .mantine-Button-icon svg': {
|
|
294
|
-
readonly stroke: "white";
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
259
|
};
|
|
298
260
|
readonly warning: {
|
|
299
|
-
readonly background: "white";
|
|
300
261
|
readonly color: "#E17100";
|
|
301
|
-
readonly '&:hover': {
|
|
302
|
-
readonly background: "#FE9A00";
|
|
303
|
-
};
|
|
304
|
-
readonly '&:active': {
|
|
305
|
-
readonly background: "white";
|
|
306
|
-
readonly border: "1px solid #E17100";
|
|
307
|
-
readonly color: "#E17100";
|
|
308
|
-
};
|
|
309
|
-
readonly '&:toggled': {
|
|
310
|
-
readonly background: "#FE9A00";
|
|
311
|
-
};
|
|
312
|
-
readonly '&:disabled': {
|
|
313
|
-
readonly background: "#FFE5B4";
|
|
314
|
-
readonly border: "1px solid #FFE5B4";
|
|
315
|
-
readonly color: "white";
|
|
316
|
-
};
|
|
317
|
-
readonly '&[data-loading]': {
|
|
318
|
-
readonly '& .mantine-Button-icon svg': {
|
|
319
|
-
readonly stroke: "white";
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
262
|
};
|
|
323
263
|
readonly text: {
|
|
324
|
-
readonly background: "transparent";
|
|
325
264
|
readonly color: "#6D6D6D";
|
|
326
|
-
readonly border: "none";
|
|
327
|
-
readonly padding: "0";
|
|
328
|
-
readonly height: "auto";
|
|
329
|
-
readonly minWidth: "unset";
|
|
330
|
-
readonly '&:hover': {
|
|
331
|
-
readonly background: "transparent";
|
|
332
|
-
readonly color: "#0081CE";
|
|
333
|
-
};
|
|
334
|
-
readonly '&:active': {
|
|
335
|
-
readonly background: "transparent";
|
|
336
|
-
readonly color: "#00A6F4";
|
|
337
|
-
};
|
|
338
|
-
readonly '&:toggled': {
|
|
339
|
-
readonly background: "transparent";
|
|
340
|
-
readonly color: "#0081CE";
|
|
341
|
-
};
|
|
342
|
-
readonly '&:disabled': {
|
|
343
|
-
readonly background: "transparent";
|
|
344
|
-
readonly color: "#D9D9D9";
|
|
345
|
-
};
|
|
346
|
-
readonly '&[data-loading]': {
|
|
347
|
-
readonly '& .mantine-Button-icon svg': {
|
|
348
|
-
readonly stroke: "#6D6D6D";
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
265
|
};
|
|
352
266
|
readonly nav: {
|
|
353
|
-
readonly background: "white";
|
|
354
|
-
readonly paddingLeft: "0.8rem";
|
|
355
267
|
readonly color: "#6D6D6D";
|
|
356
|
-
readonly border: "none";
|
|
357
|
-
readonly '& .mantine-Button-inner': {
|
|
358
|
-
readonly justifyContent: "flex-start";
|
|
359
|
-
};
|
|
360
|
-
readonly '&:hover': {
|
|
361
|
-
readonly background: "#EDEDED";
|
|
362
|
-
};
|
|
363
|
-
readonly '&:active': {
|
|
364
|
-
readonly background: "#D9D9D9";
|
|
365
|
-
readonly color: "#6D6D6D";
|
|
366
|
-
};
|
|
367
|
-
readonly '&:toggled': {
|
|
368
|
-
readonly background: "#EDEDED";
|
|
369
|
-
readonly color: "#6D6D6D";
|
|
370
|
-
};
|
|
371
|
-
readonly '&:disabled': {
|
|
372
|
-
readonly background: "#EDEDED";
|
|
373
|
-
readonly color: "#D9D9D9";
|
|
374
|
-
};
|
|
375
|
-
readonly '&[data-loading]': {
|
|
376
|
-
readonly '& .mantine-Button-icon svg': {
|
|
377
|
-
readonly stroke: "#6D6D6D";
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
268
|
};
|
|
381
269
|
};
|
|
382
270
|
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/shared/variants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/shared/variants.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyLpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CAQjB,CAAC"}
|