cozy-ui 121.2.0 → 121.3.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/CHANGELOG.md +9 -0
- package/assets/icons/twake/illus/twake_workplace.svg +1 -0
- package/package.json +1 -1
- package/react/Buttons/Readme.md +37 -2
- package/react/Buttons/index.jsx +16 -3
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/TwakeWorkplace.jsx +83 -0
- package/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +24 -3
- package/react/MuiCozyTheme/overrides/twake/makeLightNormalOverrides.js +16 -1
- package/transpiled/react/Buttons/index.js +7 -4
- package/transpiled/react/Icons/TwakeWorkplace.js +86 -0
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkInvertedOverrides.d.ts +24 -3
- package/transpiled/react/MuiCozyTheme/overrides/makeDarkNormalOverrides.d.ts +24 -3
- package/transpiled/react/MuiCozyTheme/overrides/makeLightInvertedOverrides.d.ts +24 -3
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.d.ts +24 -3
- package/transpiled/react/MuiCozyTheme/overrides/makeLightNormalOverrides.js +24 -3
- package/transpiled/react/MuiCozyTheme/overrides/twake/makeDarkInvertedOverrides.d.ts +40 -4
- package/transpiled/react/MuiCozyTheme/overrides/twake/makeDarkNormalOverrides.d.ts +40 -4
- package/transpiled/react/MuiCozyTheme/overrides/twake/makeLightInvertedOverrides.d.ts +40 -4
- package/transpiled/react/MuiCozyTheme/overrides/twake/makeLightNormalOverrides.d.ts +40 -4
- package/transpiled/react/MuiCozyTheme/overrides/twake/makeLightNormalOverrides.js +16 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# [121.3.0](https://github.com/cozy/cozy-ui/compare/v121.2.0...v121.3.0) (2025-03-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add Workplace icon ([d48aa3f](https://github.com/cozy/cozy-ui/commit/d48aa3f))
|
|
7
|
+
* Adjust LinearProgress style ([4b4c160](https://github.com/cozy/cozy-ui/commit/4b4c160))
|
|
8
|
+
* **Buttons:** Add auto height for multiline purpose ([88a3181](https://github.com/cozy/cozy-ui/commit/88a3181))
|
|
9
|
+
|
|
1
10
|
# [121.2.0](https://github.com/cozy/cozy-ui/compare/v121.1.2...v121.2.0) (2025-03-20)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x=".498" y=".495" width="21.51" height="21.51" rx="6.563" fill="#fff"/><rect x=".498" y=".495" width="21.51" height="21.51" rx="6.563" fill="url(#paint0_linear_1573_14803)"/><rect x=".498" y=".495" width="21.51" height="21.51" rx="6.563" fill="url(#paint1_linear_1573_14803)"/><rect x=".498" y=".495" width="21.51" height="21.51" rx="6.563" fill="url(#paint2_linear_1573_14803)"/><path d="M11.281 3.7c.008.006.017.01.027.012l.014.002a.405.405 0 0 1 .156.05c.015.007.03.016.044.024l1.068.605 1.25.707.906.512.056.032a.487.487 0 0 1 .229.363l.002.1v3.145a.489.489 0 0 1-.71.401c-.017-.008-.034-.018-.05-.027l-1.606-.909-1.138-.642-.056-.032a.542.542 0 0 0-.178-.051h-.058a.462.462 0 0 0-.213.053c-.02.01-.038.021-.056.032l-1.215.696-1.458.835a3.52 3.52 0 0 1-.063.036.533.533 0 0 1-.176.058l-.07.002a.433.433 0 0 1-.195-.046.48.48 0 0 1-.283-.433V6.05a.483.483 0 0 1 .224-.404l.05-.029.86-.493 1.021-.585 1.033-.59.256-.147.056-.032a.553.553 0 0 1 .107-.044.53.53 0 0 1 .071-.013.048.048 0 0 0 .025-.012l.07-.002ZM3.767 12.474a.036.036 0 0 0 .026-.032.487.487 0 0 1 .27-.389l.652-.376 1.455-.84.566-.326.063-.036a.49.49 0 0 1 .702.418v3.209a.49.49 0 0 0 .213.394c.022.015.045.028.068.04l.62.348 1.278.714.792.442.062.035c.11.064.188.168.22.29a.463.463 0 0 1 .013.192.476.476 0 0 1-.224.35c-.02.013-.042.024-.063.036L8.411 18.08l-.704.386c-.019.01-.036.022-.057.031a.494.494 0 0 1-.48-.016l-.217-.127-2.877-1.692c-.019-.01-.036-.02-.055-.033a.487.487 0 0 1-.219-.306c-.005-.02-.007-.043-.01-.064a.028.028 0 0 0-.018-.02.04.04 0 0 0-.007-.003v-3.763ZM14.974 18.577a.078.078 0 0 0-.017-.012.533.533 0 0 0-.055-.016.47.47 0 0 1-.127-.049l-.069-.04-1.063-.613-1.573-.907-.05-.03a.477.477 0 0 1-.224-.4.477.477 0 0 1 .27-.448l.896-.514 1.21-.692.566-.325.074-.043a.487.487 0 0 0 .227-.35 1.02 1.02 0 0 0 .006-.115v-3.092c0-.024 0-.04.002-.058a.481.481 0 0 1 .356-.43.471.471 0 0 1 .113-.019.492.492 0 0 1 .285.084l.722.415 1.268.733.665.383.062.036c.085.051.151.127.19.218a.15.15 0 0 1 .015.048.083.083 0 0 0 .016.032v3.964a.032.032 0 0 0-.015.023.178.178 0 0 1-.017.055.48.48 0 0 1-.18.208.67.67 0 0 1-.062.035l-.978.56-2.18 1.25c-.018.012-.035.023-.055.032a.468.468 0 0 1-.127.05.389.389 0 0 0-.048.013.03.03 0 0 0-.016.014h-.087Z" fill="#fff"/><defs><linearGradient id="paint0_linear_1573_14803" x1="22.008" y1="13.042" x2=".498" y2="13.042" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#A033FF"/><stop offset=".61" stop-color="#0094FF"/><stop offset="1" stop-color="#4FB500"/></linearGradient><linearGradient id="paint1_linear_1573_14803" x1="10.356" y1="7.217" x2="3.634" y2="20.66" gradientUnits="userSpaceOnUse"><stop stop-color="#FFD600" stop-opacity="0"/><stop offset=".563" stop-color="#FFC700"/></linearGradient><linearGradient id="paint2_linear_1573_14803" x1="12.149" y1="13.042" x2="19.767" y2="21.109" gradientUnits="userSpaceOnUse"><stop offset=".03" stop-color="#FF3B30" stop-opacity="0"/><stop offset=".843" stop-color="#E73B2D"/></linearGradient></defs></svg>
|
package/package.json
CHANGED
package/react/Buttons/Readme.md
CHANGED
|
@@ -125,14 +125,14 @@ const iconPositions = ['startIcon', 'endIcon']
|
|
|
125
125
|
{variants.map(variant =>
|
|
126
126
|
<div key={variant}>
|
|
127
127
|
<Button
|
|
128
|
-
className="u-miw-auto u-w-2 u-h-2 u-bdrs-circle"
|
|
128
|
+
className="u-miw-auto u-mih-auto u-w-2 u-h-2 u-bdrs-circle"
|
|
129
129
|
classes={{ label: "u-flex u-w-auto" }}
|
|
130
130
|
size={isTwakeTheme() ? "small" : "medium"}
|
|
131
131
|
label={<Icon icon={StopIcon} size={12} />}
|
|
132
132
|
variant={variant}
|
|
133
133
|
/>
|
|
134
134
|
<Button
|
|
135
|
-
className="u-ml-1 u-miw-auto u-w-2 u-h-2 u-bdrs-circle"
|
|
135
|
+
className="u-ml-1 u-miw-auto u-mih-auto u-w-2 u-h-2 u-bdrs-circle"
|
|
136
136
|
classes={{ label: "u-flex u-w-auto" }}
|
|
137
137
|
label={<Icon icon={StopIcon} size={12} />}
|
|
138
138
|
size={isTwakeTheme() ? "small" : "medium"}
|
|
@@ -271,3 +271,38 @@ const colors = ['default', 'inherit', 'primary', 'secondary', 'success', 'error'
|
|
|
271
271
|
)}
|
|
272
272
|
</Grid>
|
|
273
273
|
```
|
|
274
|
+
|
|
275
|
+
### Auto height
|
|
276
|
+
|
|
277
|
+
```jsx
|
|
278
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
279
|
+
import Stack from 'cozy-ui/transpiled/react/Stack'
|
|
280
|
+
import Grid from 'cozy-ui/transpiled/react/Grid'
|
|
281
|
+
import Paper from 'cozy-ui/transpiled/react/Paper'
|
|
282
|
+
import Variants from 'cozy-ui/docs/components/Variants'
|
|
283
|
+
|
|
284
|
+
const buttonVariants = ['primary', 'secondary', 'ghost', 'text']
|
|
285
|
+
const sizes = ['small', 'medium', 'large']
|
|
286
|
+
const initialVariants = [{ autoHeight: false }]
|
|
287
|
+
|
|
288
|
+
;
|
|
289
|
+
|
|
290
|
+
<Variants initialVariants={initialVariants} screenshotAllVariants>
|
|
291
|
+
{variant => (
|
|
292
|
+
<Grid container>
|
|
293
|
+
{sizes.map(size =>
|
|
294
|
+
<Grid item xs={12} sm={4} className="u-mb-1" key={size}>
|
|
295
|
+
<Stack spacing="s">
|
|
296
|
+
<div>{size}</div>
|
|
297
|
+
{buttonVariants.map(buttonVariant =>
|
|
298
|
+
<div key={buttonVariant + size} className="u-w-4">
|
|
299
|
+
<Button label={`${buttonVariant} with long label`} variant={buttonVariant} size={size} height={variant.autoHeight ? 'auto' : 'default'} />
|
|
300
|
+
</div>
|
|
301
|
+
)}
|
|
302
|
+
</Stack>
|
|
303
|
+
</Grid>
|
|
304
|
+
)}
|
|
305
|
+
</Grid>
|
|
306
|
+
)}
|
|
307
|
+
</Variants>
|
|
308
|
+
```
|
package/react/Buttons/index.jsx
CHANGED
|
@@ -10,7 +10,17 @@ const CUSTOM_COLORS = ['success', 'error', 'warning', 'info']
|
|
|
10
10
|
|
|
11
11
|
const DefaultButton = forwardRef(
|
|
12
12
|
(
|
|
13
|
-
{
|
|
13
|
+
{
|
|
14
|
+
variant,
|
|
15
|
+
className,
|
|
16
|
+
color,
|
|
17
|
+
label,
|
|
18
|
+
busy,
|
|
19
|
+
disabled,
|
|
20
|
+
height,
|
|
21
|
+
endIcon,
|
|
22
|
+
...props
|
|
23
|
+
},
|
|
14
24
|
ref
|
|
15
25
|
) => {
|
|
16
26
|
const customColor = CUSTOM_COLORS.includes(color) ? color : 'primary'
|
|
@@ -24,6 +34,7 @@ const DefaultButton = forwardRef(
|
|
|
24
34
|
ref={ref}
|
|
25
35
|
className={cx(
|
|
26
36
|
{ [`customColor-${customColor}`]: customColor },
|
|
37
|
+
{ [`customSize-${height}`]: height },
|
|
27
38
|
className
|
|
28
39
|
)}
|
|
29
40
|
color={_color}
|
|
@@ -103,11 +114,13 @@ Buttons.propTypes = {
|
|
|
103
114
|
'error',
|
|
104
115
|
'warning',
|
|
105
116
|
'info'
|
|
106
|
-
])
|
|
117
|
+
]),
|
|
118
|
+
height: PropTypes.oneOf(['default', 'auto'])
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
Buttons.defaultProps = {
|
|
110
|
-
variant: 'primary'
|
|
122
|
+
variant: 'primary',
|
|
123
|
+
height: 'default'
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
export default Buttons
|
package/react/Icon/Readme.md
CHANGED
|
@@ -720,6 +720,7 @@ import ShareGrey08Icon from 'cozy-ui/transpiled/react/Icons/ShareGrey08'
|
|
|
720
720
|
import StoreIcon from 'cozy-ui/transpiled/react/Icons/Store'
|
|
721
721
|
import TopSelectIcon from 'cozy-ui/transpiled/react/Icons/TopSelect'
|
|
722
722
|
import TrashDuotoneIcon from 'cozy-ui/transpiled/react/Icons/TrashDuotone'
|
|
723
|
+
import TwakeWorkplace from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
|
|
723
724
|
|
|
724
725
|
const icons = [
|
|
725
726
|
AccountIcon,
|
|
@@ -768,7 +769,8 @@ const icons = [
|
|
|
768
769
|
ShareGrey08Icon,
|
|
769
770
|
StoreIcon,
|
|
770
771
|
TopSelectIcon,
|
|
771
|
-
TrashDuotoneIcon
|
|
772
|
+
TrashDuotoneIcon,
|
|
773
|
+
...(isTwakeTheme() ? [TwakeWorkplace] : []),
|
|
772
774
|
]
|
|
773
775
|
|
|
774
776
|
const wrapperStyle = {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/illus/workplace_twake.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgTwakeWorkplace(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 22 22" fill="none" {...props}>
|
|
7
|
+
<rect
|
|
8
|
+
x={0.498}
|
|
9
|
+
y={0.495}
|
|
10
|
+
width={21.51}
|
|
11
|
+
height={21.51}
|
|
12
|
+
rx={6.563}
|
|
13
|
+
fill="#fff"
|
|
14
|
+
/>
|
|
15
|
+
<rect
|
|
16
|
+
x={0.498}
|
|
17
|
+
y={0.495}
|
|
18
|
+
width={21.51}
|
|
19
|
+
height={21.51}
|
|
20
|
+
rx={6.563}
|
|
21
|
+
fill="url(#workplace_twake_svg__paint0_linear_1573_14803)"
|
|
22
|
+
/>
|
|
23
|
+
<rect
|
|
24
|
+
x={0.498}
|
|
25
|
+
y={0.495}
|
|
26
|
+
width={21.51}
|
|
27
|
+
height={21.51}
|
|
28
|
+
rx={6.563}
|
|
29
|
+
fill="url(#workplace_twake_svg__paint1_linear_1573_14803)"
|
|
30
|
+
/>
|
|
31
|
+
<rect
|
|
32
|
+
x={0.498}
|
|
33
|
+
y={0.495}
|
|
34
|
+
width={21.51}
|
|
35
|
+
height={21.51}
|
|
36
|
+
rx={6.563}
|
|
37
|
+
fill="url(#workplace_twake_svg__paint2_linear_1573_14803)"
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
d="M11.281 3.7c.008.006.017.01.027.012l.014.002a.405.405 0 01.156.05c.015.007.03.016.044.024l1.068.605 1.25.707.906.512.056.032a.487.487 0 01.229.363l.002.1v3.145a.489.489 0 01-.71.401c-.017-.008-.034-.018-.05-.027l-1.606-.909-1.138-.642-.056-.032a.542.542 0 00-.178-.051h-.058a.462.462 0 00-.213.053c-.02.01-.038.021-.056.032l-1.215.696-1.458.835a3.52 3.52 0 01-.063.036.533.533 0 01-.176.058l-.07.002a.433.433 0 01-.195-.046.48.48 0 01-.283-.433V6.05a.483.483 0 01.224-.404l.05-.029.86-.493 1.021-.585 1.033-.59.256-.147.056-.032a.553.553 0 01.107-.044.53.53 0 01.071-.013.048.048 0 00.025-.012l.07-.002zm-7.514 8.774a.036.036 0 00.026-.032.487.487 0 01.27-.389l.652-.376 1.455-.84.566-.326.063-.036a.49.49 0 01.702.418v3.209a.49.49 0 00.213.394.671.671 0 00.068.04l.62.348 1.278.714.792.442.062.035c.11.064.188.168.22.29a.463.463 0 01.013.192.476.476 0 01-.224.35c-.02.013-.042.024-.063.036L8.411 18.08l-.704.386c-.019.01-.036.022-.057.031a.494.494 0 01-.48-.016l-.217-.127-2.877-1.692a.533.533 0 01-.055-.033.487.487 0 01-.219-.306c-.005-.02-.007-.043-.01-.064a.028.028 0 00-.018-.02.04.04 0 00-.007-.003v-3.763zm11.207 6.103a.078.078 0 00-.017-.012.533.533 0 00-.055-.016.47.47 0 01-.127-.049l-.069-.04-1.063-.613-1.573-.907-.05-.03a.477.477 0 01-.224-.4.477.477 0 01.27-.448l.896-.514 1.21-.692.566-.325.074-.043a.487.487 0 00.227-.35 1.02 1.02 0 00.006-.115v-3.092c0-.024 0-.04.002-.058a.481.481 0 01.356-.43.471.471 0 01.113-.019.492.492 0 01.285.084l.722.415 1.268.733.665.383.062.036a.469.469 0 01.19.218.15.15 0 01.015.048.083.083 0 00.016.032v3.964a.032.032 0 00-.015.023.178.178 0 01-.017.055.48.48 0 01-.18.208.67.67 0 01-.062.035l-.978.56-2.18 1.25a.376.376 0 01-.055.032.468.468 0 01-.127.05.389.389 0 00-.048.013.03.03 0 00-.016.014h-.087z"
|
|
41
|
+
fill="#fff"
|
|
42
|
+
/>
|
|
43
|
+
<defs>
|
|
44
|
+
<linearGradient
|
|
45
|
+
id="workplace_twake_svg__paint0_linear_1573_14803"
|
|
46
|
+
x1={22.008}
|
|
47
|
+
y1={13.042}
|
|
48
|
+
x2={0.498}
|
|
49
|
+
y2={13.042}
|
|
50
|
+
gradientUnits="userSpaceOnUse"
|
|
51
|
+
>
|
|
52
|
+
<stop offset={0.13} stopColor="#A033FF" />
|
|
53
|
+
<stop offset={0.61} stopColor="#0094FF" />
|
|
54
|
+
<stop offset={1} stopColor="#4FB500" />
|
|
55
|
+
</linearGradient>
|
|
56
|
+
<linearGradient
|
|
57
|
+
id="workplace_twake_svg__paint1_linear_1573_14803"
|
|
58
|
+
x1={10.356}
|
|
59
|
+
y1={7.217}
|
|
60
|
+
x2={3.634}
|
|
61
|
+
y2={20.66}
|
|
62
|
+
gradientUnits="userSpaceOnUse"
|
|
63
|
+
>
|
|
64
|
+
<stop stopColor="#FFD600" stopOpacity={0} />
|
|
65
|
+
<stop offset={0.563} stopColor="#FFC700" />
|
|
66
|
+
</linearGradient>
|
|
67
|
+
<linearGradient
|
|
68
|
+
id="workplace_twake_svg__paint2_linear_1573_14803"
|
|
69
|
+
x1={12.149}
|
|
70
|
+
y1={13.042}
|
|
71
|
+
x2={19.767}
|
|
72
|
+
y2={21.109}
|
|
73
|
+
gradientUnits="userSpaceOnUse"
|
|
74
|
+
>
|
|
75
|
+
<stop offset={0.03} stopColor="#FF3B30" stopOpacity={0} />
|
|
76
|
+
<stop offset={0.843} stopColor="#E73B2D" />
|
|
77
|
+
</linearGradient>
|
|
78
|
+
</defs>
|
|
79
|
+
</svg>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default SvgTwakeWorkplace
|
|
@@ -160,9 +160,16 @@ export const makeLightNormalOverrides = theme => ({
|
|
|
160
160
|
MuiButton: {
|
|
161
161
|
root: {
|
|
162
162
|
borderRadius: 2,
|
|
163
|
-
height: '2.5rem',
|
|
164
163
|
lineHeight: 'normal',
|
|
165
164
|
padding: '0 1rem',
|
|
165
|
+
'&.customSize': {
|
|
166
|
+
'&-default': {
|
|
167
|
+
height: '2.5rem'
|
|
168
|
+
},
|
|
169
|
+
'&-auto': {
|
|
170
|
+
minHeight: '2.5rem'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
166
173
|
'&.ghost': {
|
|
167
174
|
borderStyle: 'dashed !important', // important needed to override disable state
|
|
168
175
|
'&:hover': {
|
|
@@ -171,15 +178,29 @@ export const makeLightNormalOverrides = theme => ({
|
|
|
171
178
|
}
|
|
172
179
|
},
|
|
173
180
|
sizeSmall: {
|
|
174
|
-
height: '2rem',
|
|
175
181
|
padding: '0 0.75rem',
|
|
182
|
+
'&.customSize': {
|
|
183
|
+
'&-default': {
|
|
184
|
+
height: '2rem'
|
|
185
|
+
},
|
|
186
|
+
'&-auto': {
|
|
187
|
+
minHeight: '2rem'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
176
190
|
'&$text': {
|
|
177
191
|
padding: '8px 6px'
|
|
178
192
|
}
|
|
179
193
|
},
|
|
180
194
|
sizeLarge: {
|
|
181
|
-
height: '3rem',
|
|
182
195
|
padding: '0 1.25rem',
|
|
196
|
+
'&.customSize': {
|
|
197
|
+
'&-default': {
|
|
198
|
+
height: '3rem'
|
|
199
|
+
},
|
|
200
|
+
'&-auto': {
|
|
201
|
+
minHeight: '3rem'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
183
204
|
'&$text': {
|
|
184
205
|
padding: '14px 10px'
|
|
185
206
|
}
|
|
@@ -64,6 +64,14 @@ export const makeLightNormalTwakeOverrides = theme => {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
+
MuiLinearProgress: {
|
|
68
|
+
root: {
|
|
69
|
+
height: 3
|
|
70
|
+
},
|
|
71
|
+
colorPrimary: {
|
|
72
|
+
backgroundColor: theme.palette.divider
|
|
73
|
+
}
|
|
74
|
+
},
|
|
67
75
|
MuiButton: {
|
|
68
76
|
root: {
|
|
69
77
|
borderRadius: 100,
|
|
@@ -76,8 +84,15 @@ export const makeLightNormalTwakeOverrides = theme => {
|
|
|
76
84
|
}
|
|
77
85
|
},
|
|
78
86
|
sizeSmall: {
|
|
79
|
-
height: '2.25rem',
|
|
80
87
|
padding: '10px 16px',
|
|
88
|
+
'&.customSize': {
|
|
89
|
+
'&-default': {
|
|
90
|
+
height: '2.25rem'
|
|
91
|
+
},
|
|
92
|
+
'&-auto': {
|
|
93
|
+
minHeight: '2.25rem'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
81
96
|
'&$text': {
|
|
82
97
|
padding: '8px 16px'
|
|
83
98
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["variant", "className", "color", "label", "busy", "disabled", "endIcon"],
|
|
4
|
+
var _excluded = ["variant", "className", "color", "label", "busy", "disabled", "height", "endIcon"],
|
|
5
5
|
_excluded2 = ["variant", "className"];
|
|
6
6
|
import MuiButton from '@material-ui/core/Button';
|
|
7
7
|
import cx from 'classnames';
|
|
@@ -17,6 +17,7 @@ var DefaultButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17
17
|
label = _ref.label,
|
|
18
18
|
busy = _ref.busy,
|
|
19
19
|
disabled = _ref.disabled,
|
|
20
|
+
height = _ref.height,
|
|
20
21
|
endIcon = _ref.endIcon,
|
|
21
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
23
|
|
|
@@ -27,7 +28,7 @@ var DefaultButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
27
28
|
return /*#__PURE__*/React.createElement(MuiButton, _extends({}, props, {
|
|
28
29
|
variant: variant,
|
|
29
30
|
ref: ref,
|
|
30
|
-
className: cx(_defineProperty({}, "customColor-".concat(customColor), customColor), className),
|
|
31
|
+
className: cx(_defineProperty({}, "customColor-".concat(customColor), customColor), _defineProperty({}, "customSize-".concat(height), height), className),
|
|
31
32
|
color: _color,
|
|
32
33
|
disabled: disabled || busy,
|
|
33
34
|
endIcon: busy ? /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -93,9 +94,11 @@ var Buttons = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
93
94
|
Buttons.displayName = 'Buttons';
|
|
94
95
|
Buttons.propTypes = {
|
|
95
96
|
variant: PropTypes.oneOf(['primary', 'secondary', 'ghost', 'text']),
|
|
96
|
-
color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'success', 'error', 'warning', 'info'])
|
|
97
|
+
color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'success', 'error', 'warning', 'info']),
|
|
98
|
+
height: PropTypes.oneOf(['default', 'auto'])
|
|
97
99
|
};
|
|
98
100
|
Buttons.defaultProps = {
|
|
99
|
-
variant: 'primary'
|
|
101
|
+
variant: 'primary',
|
|
102
|
+
height: 'default'
|
|
100
103
|
};
|
|
101
104
|
export default Buttons;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/illus/workplace_twake.svg` to regenerate;
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
function SvgTwakeWorkplace(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
viewBox: "0 0 22 22",
|
|
8
|
+
fill: "none"
|
|
9
|
+
}, props), /*#__PURE__*/React.createElement("rect", {
|
|
10
|
+
x: 0.498,
|
|
11
|
+
y: 0.495,
|
|
12
|
+
width: 21.51,
|
|
13
|
+
height: 21.51,
|
|
14
|
+
rx: 6.563,
|
|
15
|
+
fill: "#fff"
|
|
16
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
17
|
+
x: 0.498,
|
|
18
|
+
y: 0.495,
|
|
19
|
+
width: 21.51,
|
|
20
|
+
height: 21.51,
|
|
21
|
+
rx: 6.563,
|
|
22
|
+
fill: "url(#workplace_twake_svg__paint0_linear_1573_14803)"
|
|
23
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
+
x: 0.498,
|
|
25
|
+
y: 0.495,
|
|
26
|
+
width: 21.51,
|
|
27
|
+
height: 21.51,
|
|
28
|
+
rx: 6.563,
|
|
29
|
+
fill: "url(#workplace_twake_svg__paint1_linear_1573_14803)"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
31
|
+
x: 0.498,
|
|
32
|
+
y: 0.495,
|
|
33
|
+
width: 21.51,
|
|
34
|
+
height: 21.51,
|
|
35
|
+
rx: 6.563,
|
|
36
|
+
fill: "url(#workplace_twake_svg__paint2_linear_1573_14803)"
|
|
37
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
38
|
+
d: "M11.281 3.7c.008.006.017.01.027.012l.014.002a.405.405 0 01.156.05c.015.007.03.016.044.024l1.068.605 1.25.707.906.512.056.032a.487.487 0 01.229.363l.002.1v3.145a.489.489 0 01-.71.401c-.017-.008-.034-.018-.05-.027l-1.606-.909-1.138-.642-.056-.032a.542.542 0 00-.178-.051h-.058a.462.462 0 00-.213.053c-.02.01-.038.021-.056.032l-1.215.696-1.458.835a3.52 3.52 0 01-.063.036.533.533 0 01-.176.058l-.07.002a.433.433 0 01-.195-.046.48.48 0 01-.283-.433V6.05a.483.483 0 01.224-.404l.05-.029.86-.493 1.021-.585 1.033-.59.256-.147.056-.032a.553.553 0 01.107-.044.53.53 0 01.071-.013.048.048 0 00.025-.012l.07-.002zm-7.514 8.774a.036.036 0 00.026-.032.487.487 0 01.27-.389l.652-.376 1.455-.84.566-.326.063-.036a.49.49 0 01.702.418v3.209a.49.49 0 00.213.394.671.671 0 00.068.04l.62.348 1.278.714.792.442.062.035c.11.064.188.168.22.29a.463.463 0 01.013.192.476.476 0 01-.224.35c-.02.013-.042.024-.063.036L8.411 18.08l-.704.386c-.019.01-.036.022-.057.031a.494.494 0 01-.48-.016l-.217-.127-2.877-1.692a.533.533 0 01-.055-.033.487.487 0 01-.219-.306c-.005-.02-.007-.043-.01-.064a.028.028 0 00-.018-.02.04.04 0 00-.007-.003v-3.763zm11.207 6.103a.078.078 0 00-.017-.012.533.533 0 00-.055-.016.47.47 0 01-.127-.049l-.069-.04-1.063-.613-1.573-.907-.05-.03a.477.477 0 01-.224-.4.477.477 0 01.27-.448l.896-.514 1.21-.692.566-.325.074-.043a.487.487 0 00.227-.35 1.02 1.02 0 00.006-.115v-3.092c0-.024 0-.04.002-.058a.481.481 0 01.356-.43.471.471 0 01.113-.019.492.492 0 01.285.084l.722.415 1.268.733.665.383.062.036a.469.469 0 01.19.218.15.15 0 01.015.048.083.083 0 00.016.032v3.964a.032.032 0 00-.015.023.178.178 0 01-.017.055.48.48 0 01-.18.208.67.67 0 01-.062.035l-.978.56-2.18 1.25a.376.376 0 01-.055.032.468.468 0 01-.127.05.389.389 0 00-.048.013.03.03 0 00-.016.014h-.087z",
|
|
39
|
+
fill: "#fff"
|
|
40
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
41
|
+
id: "workplace_twake_svg__paint0_linear_1573_14803",
|
|
42
|
+
x1: 22.008,
|
|
43
|
+
y1: 13.042,
|
|
44
|
+
x2: 0.498,
|
|
45
|
+
y2: 13.042,
|
|
46
|
+
gradientUnits: "userSpaceOnUse"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
48
|
+
offset: 0.13,
|
|
49
|
+
stopColor: "#A033FF"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
51
|
+
offset: 0.61,
|
|
52
|
+
stopColor: "#0094FF"
|
|
53
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
54
|
+
offset: 1,
|
|
55
|
+
stopColor: "#4FB500"
|
|
56
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
57
|
+
id: "workplace_twake_svg__paint1_linear_1573_14803",
|
|
58
|
+
x1: 10.356,
|
|
59
|
+
y1: 7.217,
|
|
60
|
+
x2: 3.634,
|
|
61
|
+
y2: 20.66,
|
|
62
|
+
gradientUnits: "userSpaceOnUse"
|
|
63
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
64
|
+
stopColor: "#FFD600",
|
|
65
|
+
stopOpacity: 0
|
|
66
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
67
|
+
offset: 0.563,
|
|
68
|
+
stopColor: "#FFC700"
|
|
69
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
70
|
+
id: "workplace_twake_svg__paint2_linear_1573_14803",
|
|
71
|
+
x1: 12.149,
|
|
72
|
+
y1: 13.042,
|
|
73
|
+
x2: 19.767,
|
|
74
|
+
y2: 21.109,
|
|
75
|
+
gradientUnits: "userSpaceOnUse"
|
|
76
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
77
|
+
offset: 0.03,
|
|
78
|
+
stopColor: "#FF3B30",
|
|
79
|
+
stopOpacity: 0
|
|
80
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
81
|
+
offset: 0.843,
|
|
82
|
+
stopColor: "#E73B2D"
|
|
83
|
+
}))));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default SvgTwakeWorkplace;
|
|
@@ -139,9 +139,16 @@ export function makeDarkInvertedOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeDarkInvertedOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -139,9 +139,16 @@ export function makeDarkNormalOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeDarkNormalOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -139,9 +139,16 @@ export function makeLightInvertedOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeLightInvertedOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -139,9 +139,16 @@ export function makeLightNormalOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeLightNormalOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -151,9 +151,16 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
|
|
|
151
151
|
MuiButton: {
|
|
152
152
|
root: {
|
|
153
153
|
borderRadius: 2,
|
|
154
|
-
height: '2.5rem',
|
|
155
154
|
lineHeight: 'normal',
|
|
156
155
|
padding: '0 1rem',
|
|
156
|
+
'&.customSize': {
|
|
157
|
+
'&-default': {
|
|
158
|
+
height: '2.5rem'
|
|
159
|
+
},
|
|
160
|
+
'&-auto': {
|
|
161
|
+
minHeight: '2.5rem'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
157
164
|
'&.ghost': {
|
|
158
165
|
borderStyle: 'dashed !important',
|
|
159
166
|
// important needed to override disable state
|
|
@@ -164,15 +171,29 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
|
|
|
164
171
|
}
|
|
165
172
|
},
|
|
166
173
|
sizeSmall: {
|
|
167
|
-
height: '2rem',
|
|
168
174
|
padding: '0 0.75rem',
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: '2rem'
|
|
178
|
+
},
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: '2rem'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
169
183
|
'&$text': {
|
|
170
184
|
padding: '8px 6px'
|
|
171
185
|
}
|
|
172
186
|
},
|
|
173
187
|
sizeLarge: {
|
|
174
|
-
height: '3rem',
|
|
175
188
|
padding: '0 1.25rem',
|
|
189
|
+
'&.customSize': {
|
|
190
|
+
'&-default': {
|
|
191
|
+
height: '3rem'
|
|
192
|
+
},
|
|
193
|
+
'&-auto': {
|
|
194
|
+
minHeight: '3rem'
|
|
195
|
+
}
|
|
196
|
+
},
|
|
176
197
|
'&$text': {
|
|
177
198
|
padding: '14px 10px'
|
|
178
199
|
}
|
|
@@ -139,9 +139,16 @@ export function makeDarkInvertedTwakeOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeDarkInvertedTwakeOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -1621,6 +1642,14 @@ export function makeDarkInvertedTwakeOverrides(theme: any): {
|
|
|
1621
1642
|
};
|
|
1622
1643
|
};
|
|
1623
1644
|
};
|
|
1645
|
+
MuiLinearProgress: {
|
|
1646
|
+
root: {
|
|
1647
|
+
height: number;
|
|
1648
|
+
};
|
|
1649
|
+
colorPrimary: {
|
|
1650
|
+
backgroundColor: any;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1624
1653
|
MuiButton: {
|
|
1625
1654
|
root: {
|
|
1626
1655
|
borderRadius: number;
|
|
@@ -1633,8 +1662,15 @@ export function makeDarkInvertedTwakeOverrides(theme: any): {
|
|
|
1633
1662
|
};
|
|
1634
1663
|
};
|
|
1635
1664
|
sizeSmall: {
|
|
1636
|
-
height: string;
|
|
1637
1665
|
padding: string;
|
|
1666
|
+
'&.customSize': {
|
|
1667
|
+
'&-default': {
|
|
1668
|
+
height: string;
|
|
1669
|
+
};
|
|
1670
|
+
'&-auto': {
|
|
1671
|
+
minHeight: string;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1638
1674
|
'&$text': {
|
|
1639
1675
|
padding: string;
|
|
1640
1676
|
};
|
|
@@ -139,9 +139,16 @@ export function makeDarkNormalTwakeOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeDarkNormalTwakeOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -1621,6 +1642,14 @@ export function makeDarkNormalTwakeOverrides(theme: any): {
|
|
|
1621
1642
|
};
|
|
1622
1643
|
};
|
|
1623
1644
|
};
|
|
1645
|
+
MuiLinearProgress: {
|
|
1646
|
+
root: {
|
|
1647
|
+
height: number;
|
|
1648
|
+
};
|
|
1649
|
+
colorPrimary: {
|
|
1650
|
+
backgroundColor: any;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1624
1653
|
MuiButton: {
|
|
1625
1654
|
root: {
|
|
1626
1655
|
borderRadius: number;
|
|
@@ -1633,8 +1662,15 @@ export function makeDarkNormalTwakeOverrides(theme: any): {
|
|
|
1633
1662
|
};
|
|
1634
1663
|
};
|
|
1635
1664
|
sizeSmall: {
|
|
1636
|
-
height: string;
|
|
1637
1665
|
padding: string;
|
|
1666
|
+
'&.customSize': {
|
|
1667
|
+
'&-default': {
|
|
1668
|
+
height: string;
|
|
1669
|
+
};
|
|
1670
|
+
'&-auto': {
|
|
1671
|
+
minHeight: string;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1638
1674
|
'&$text': {
|
|
1639
1675
|
padding: string;
|
|
1640
1676
|
};
|
|
@@ -139,9 +139,16 @@ export function makeLightInvertedTwakeOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeLightInvertedTwakeOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -1621,6 +1642,14 @@ export function makeLightInvertedTwakeOverrides(theme: any): {
|
|
|
1621
1642
|
};
|
|
1622
1643
|
};
|
|
1623
1644
|
};
|
|
1645
|
+
MuiLinearProgress: {
|
|
1646
|
+
root: {
|
|
1647
|
+
height: number;
|
|
1648
|
+
};
|
|
1649
|
+
colorPrimary: {
|
|
1650
|
+
backgroundColor: any;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1624
1653
|
MuiButton: {
|
|
1625
1654
|
root: {
|
|
1626
1655
|
borderRadius: number;
|
|
@@ -1633,8 +1662,15 @@ export function makeLightInvertedTwakeOverrides(theme: any): {
|
|
|
1633
1662
|
};
|
|
1634
1663
|
};
|
|
1635
1664
|
sizeSmall: {
|
|
1636
|
-
height: string;
|
|
1637
1665
|
padding: string;
|
|
1666
|
+
'&.customSize': {
|
|
1667
|
+
'&-default': {
|
|
1668
|
+
height: string;
|
|
1669
|
+
};
|
|
1670
|
+
'&-auto': {
|
|
1671
|
+
minHeight: string;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1638
1674
|
'&$text': {
|
|
1639
1675
|
padding: string;
|
|
1640
1676
|
};
|
|
@@ -139,9 +139,16 @@ export function makeLightNormalTwakeOverrides(theme: any): {
|
|
|
139
139
|
MuiButton: {
|
|
140
140
|
root: {
|
|
141
141
|
borderRadius: number;
|
|
142
|
-
height: string;
|
|
143
142
|
lineHeight: string;
|
|
144
143
|
padding: string;
|
|
144
|
+
'&.customSize': {
|
|
145
|
+
'&-default': {
|
|
146
|
+
height: string;
|
|
147
|
+
};
|
|
148
|
+
'&-auto': {
|
|
149
|
+
minHeight: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
145
152
|
'&.ghost': {
|
|
146
153
|
borderStyle: string;
|
|
147
154
|
'&:hover': {
|
|
@@ -150,15 +157,29 @@ export function makeLightNormalTwakeOverrides(theme: any): {
|
|
|
150
157
|
};
|
|
151
158
|
};
|
|
152
159
|
sizeSmall: {
|
|
153
|
-
height: string;
|
|
154
160
|
padding: string;
|
|
161
|
+
'&.customSize': {
|
|
162
|
+
'&-default': {
|
|
163
|
+
height: string;
|
|
164
|
+
};
|
|
165
|
+
'&-auto': {
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
155
169
|
'&$text': {
|
|
156
170
|
padding: string;
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
sizeLarge: {
|
|
160
|
-
height: string;
|
|
161
174
|
padding: string;
|
|
175
|
+
'&.customSize': {
|
|
176
|
+
'&-default': {
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
'&-auto': {
|
|
180
|
+
minHeight: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
162
183
|
'&$text': {
|
|
163
184
|
padding: string;
|
|
164
185
|
};
|
|
@@ -1621,6 +1642,14 @@ export function makeLightNormalTwakeOverrides(theme: any): {
|
|
|
1621
1642
|
};
|
|
1622
1643
|
};
|
|
1623
1644
|
};
|
|
1645
|
+
MuiLinearProgress: {
|
|
1646
|
+
root: {
|
|
1647
|
+
height: number;
|
|
1648
|
+
};
|
|
1649
|
+
colorPrimary: {
|
|
1650
|
+
backgroundColor: any;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1624
1653
|
MuiButton: {
|
|
1625
1654
|
root: {
|
|
1626
1655
|
borderRadius: number;
|
|
@@ -1633,8 +1662,15 @@ export function makeLightNormalTwakeOverrides(theme: any): {
|
|
|
1633
1662
|
};
|
|
1634
1663
|
};
|
|
1635
1664
|
sizeSmall: {
|
|
1636
|
-
height: string;
|
|
1637
1665
|
padding: string;
|
|
1666
|
+
'&.customSize': {
|
|
1667
|
+
'&-default': {
|
|
1668
|
+
height: string;
|
|
1669
|
+
};
|
|
1670
|
+
'&-auto': {
|
|
1671
|
+
minHeight: string;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1638
1674
|
'&$text': {
|
|
1639
1675
|
padding: string;
|
|
1640
1676
|
};
|
|
@@ -63,6 +63,14 @@ export var makeLightNormalTwakeOverrides = function makeLightNormalTwakeOverride
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
+
MuiLinearProgress: {
|
|
67
|
+
root: {
|
|
68
|
+
height: 3
|
|
69
|
+
},
|
|
70
|
+
colorPrimary: {
|
|
71
|
+
backgroundColor: theme.palette.divider
|
|
72
|
+
}
|
|
73
|
+
},
|
|
66
74
|
MuiButton: {
|
|
67
75
|
root: {
|
|
68
76
|
borderRadius: 100,
|
|
@@ -75,8 +83,15 @@ export var makeLightNormalTwakeOverrides = function makeLightNormalTwakeOverride
|
|
|
75
83
|
}
|
|
76
84
|
},
|
|
77
85
|
sizeSmall: {
|
|
78
|
-
height: '2.25rem',
|
|
79
86
|
padding: '10px 16px',
|
|
87
|
+
'&.customSize': {
|
|
88
|
+
'&-default': {
|
|
89
|
+
height: '2.25rem'
|
|
90
|
+
},
|
|
91
|
+
'&-auto': {
|
|
92
|
+
minHeight: '2.25rem'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
80
95
|
'&$text': {
|
|
81
96
|
padding: '8px 16px'
|
|
82
97
|
}
|