cozy-ui 121.2.0 → 121.4.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 +18 -0
- package/assets/icons/twake/illus/twake_workplace.svg +1 -0
- package/assets/icons/twake/phone-download_twake.svg +1 -1
- package/assets/icons/ui/desktop-download.svg +1 -0
- package/package.json +1 -1
- package/react/Banner/Readme.md +2 -0
- package/react/Banner/index.jsx +4 -1
- package/react/Buttons/Readme.md +37 -2
- package/react/Buttons/index.jsx +16 -3
- package/react/Icon/Readme.md +6 -2
- package/react/Icons/DesktopDownload.jsx +13 -0
- package/react/Icons/PhoneDownload_twake.jsx +3 -2
- 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/Banner/index.js +5 -1
- package/transpiled/react/Buttons/index.js +7 -4
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/DesktopDownload.js +15 -0
- package/transpiled/react/Icons/PhoneDownload_twake.js +4 -2
- 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,21 @@
|
|
|
1
|
+
# [121.4.0](https://github.com/cozy/cozy-ui/compare/v121.3.0...v121.4.0) (2025-03-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add DesktopDownload icon ([97766b5](https://github.com/cozy/cozy-ui/commit/97766b5))
|
|
7
|
+
* Adjust PhoneDownload Icon ([8bd5753](https://github.com/cozy/cozy-ui/commit/8bd5753))
|
|
8
|
+
* **Banner:** Add possibility to hide bottom divider ([cc5a2c8](https://github.com/cozy/cozy-ui/commit/cc5a2c8))
|
|
9
|
+
|
|
10
|
+
# [121.3.0](https://github.com/cozy/cozy-ui/compare/v121.2.0...v121.3.0) (2025-03-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Add Workplace icon ([d48aa3f](https://github.com/cozy/cozy-ui/commit/d48aa3f))
|
|
16
|
+
* Adjust LinearProgress style ([4b4c160](https://github.com/cozy/cozy-ui/commit/4b4c160))
|
|
17
|
+
* **Buttons:** Add auto height for multiline purpose ([88a3181](https://github.com/cozy/cozy-ui/commit/88a3181))
|
|
18
|
+
|
|
1
19
|
# [121.2.0](https://github.com/cozy/cozy-ui/compare/v121.1.2...v121.2.0) (2025-03-20)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -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>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="14" height="
|
|
1
|
+
<svg width="14" height="17" viewBox="0 0 14 17" xmlns="http://www.w3.org/2000/svg"><path d="M9.182 12.586H1.909V3.859H7V2.404H1.91v-.727H7V.229L1.91.222C1.11.222.454.877.454 1.677v13.09c0 .8.654 1.455 1.454 1.455h7.273c.8 0 1.454-.654 1.454-1.454V11.13H9.182v1.455Zm0 2.182H1.909v-.728h7.273v.728Z"/><path d="m9.91 9.677 3.636-3.637-1.026-1.025-1.884 1.876V1.677H9.182V6.89L7.298 5.015 6.273 6.04l3.636 3.637Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="15" viewBox="0 0 16 15" xmlns="http://www.w3.org/2000/svg"><path d="M14.4 11.2H1.6V1.6H8V0H1.6C.712 0 0 .712 0 1.6v9.6c0 .88.712 1.6 1.6 1.6h3.2v1.6h6.4v-1.6h3.2c.88 0 1.6-.72 1.6-1.6V8.8h-1.6v2.4Z"/><path d="m12 8.8 4-4-1.128-1.128L12.8 5.736V0h-1.6v5.736L9.128 3.672 8 4.8l4 4Z"/></svg>
|
package/package.json
CHANGED
package/react/Banner/Readme.md
CHANGED
|
@@ -22,6 +22,7 @@ const initialVariants = [{
|
|
|
22
22
|
buttonOne: true,
|
|
23
23
|
buttonTwo: true,
|
|
24
24
|
inline: true,
|
|
25
|
+
noDivider: false,
|
|
25
26
|
backgroundColor: true,
|
|
26
27
|
disableIconStyles: false
|
|
27
28
|
}]
|
|
@@ -39,6 +40,7 @@ const initialVariants = [{
|
|
|
39
40
|
buttonOne={variant.buttonOne && buttonOne}
|
|
40
41
|
buttonTwo={variant.buttonTwo && buttonTwo}
|
|
41
42
|
inline={variant.inline}
|
|
43
|
+
noDivider={variant.noDivider}
|
|
42
44
|
disableIconStyles={variant.disableIconStyles}
|
|
43
45
|
/>
|
|
44
46
|
)}
|
package/react/Banner/index.jsx
CHANGED
|
@@ -19,6 +19,7 @@ const Banner = ({
|
|
|
19
19
|
buttonOne,
|
|
20
20
|
buttonTwo,
|
|
21
21
|
inline,
|
|
22
|
+
noDivider,
|
|
22
23
|
disableIconStyles
|
|
23
24
|
}) => {
|
|
24
25
|
const position = {
|
|
@@ -76,7 +77,7 @@ const Banner = ({
|
|
|
76
77
|
</Grid>
|
|
77
78
|
</div>
|
|
78
79
|
</Paper>
|
|
79
|
-
<Divider />
|
|
80
|
+
{!noDivider && <Divider />}
|
|
80
81
|
</>
|
|
81
82
|
)
|
|
82
83
|
}
|
|
@@ -94,6 +95,8 @@ Banner.propTypes = {
|
|
|
94
95
|
buttonTwo: PropTypes.node,
|
|
95
96
|
/** Show banner on one line (only desktop) */
|
|
96
97
|
inline: PropTypes.bool,
|
|
98
|
+
/** Disables the bottom divider */
|
|
99
|
+
noDivider: PropTypes.bool,
|
|
97
100
|
/** Disables the styles of the wrapper around the icon */
|
|
98
101
|
disableIconWrapper: PropTypes.bool
|
|
99
102
|
}
|
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
|
@@ -142,6 +142,7 @@ import Dash from 'cozy-ui/transpiled/react/Icons/Dash'
|
|
|
142
142
|
import Dashboard from 'cozy-ui/transpiled/react/Icons/Dashboard'
|
|
143
143
|
import DataControl from 'cozy-ui/transpiled/react/Icons/DataControl'
|
|
144
144
|
import Debit from 'cozy-ui/transpiled/react/Icons/Debit'
|
|
145
|
+
import DesktopDownload from 'cozy-ui/transpiled/react/Icons/DesktopDownload'
|
|
145
146
|
import Devices from 'cozy-ui/transpiled/react/Icons/Devices'
|
|
146
147
|
import Dots from 'cozy-ui/transpiled/react/Icons/Dots'
|
|
147
148
|
import Down from 'cozy-ui/transpiled/react/Icons/Down'
|
|
@@ -412,6 +413,7 @@ const icons = [
|
|
|
412
413
|
Dashboard,
|
|
413
414
|
DataControl,
|
|
414
415
|
Debit,
|
|
416
|
+
DesktopDownload,
|
|
415
417
|
Devices,
|
|
416
418
|
Dots,
|
|
417
419
|
Down,
|
|
@@ -720,6 +722,7 @@ import ShareGrey08Icon from 'cozy-ui/transpiled/react/Icons/ShareGrey08'
|
|
|
720
722
|
import StoreIcon from 'cozy-ui/transpiled/react/Icons/Store'
|
|
721
723
|
import TopSelectIcon from 'cozy-ui/transpiled/react/Icons/TopSelect'
|
|
722
724
|
import TrashDuotoneIcon from 'cozy-ui/transpiled/react/Icons/TrashDuotone'
|
|
725
|
+
import TwakeWorkplace from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
|
|
723
726
|
|
|
724
727
|
const icons = [
|
|
725
728
|
AccountIcon,
|
|
@@ -768,7 +771,8 @@ const icons = [
|
|
|
768
771
|
ShareGrey08Icon,
|
|
769
772
|
StoreIcon,
|
|
770
773
|
TopSelectIcon,
|
|
771
|
-
TrashDuotoneIcon
|
|
774
|
+
TrashDuotoneIcon,
|
|
775
|
+
...(isTwakeTheme() ? [TwakeWorkplace] : []),
|
|
772
776
|
]
|
|
773
777
|
|
|
774
778
|
const wrapperStyle = {
|
|
@@ -938,7 +942,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
|
938
942
|
|
|
939
943
|
const colors = ['#297EF2', '#08b442', '#B449E7', '#F52D2D', '#FF962F']
|
|
940
944
|
let i = 0
|
|
941
|
-
const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud-plus-outlined','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder-open','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','number','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','server','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
|
|
945
|
+
const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud-plus-outlined','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','desktop-download','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder-open','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','number','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','server','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
|
|
942
946
|
;
|
|
943
947
|
<div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
|
|
944
948
|
<Sprite />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/desktop-download.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgDesktopDownload(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 16 15" {...props}>
|
|
7
|
+
<path d="M14.4 11.2H1.6V1.6H8V0H1.6C.712 0 0 .712 0 1.6v9.6c0 .88.712 1.6 1.6 1.6h3.2v1.6h6.4v-1.6h3.2c.88 0 1.6-.72 1.6-1.6V8.8h-1.6v2.4z" />
|
|
8
|
+
<path d="M12 8.8l4-4-1.128-1.128L12.8 5.736V0h-1.6v5.736L9.128 3.672 8 4.8l4 4z" />
|
|
9
|
+
</svg>
|
|
10
|
+
)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SvgDesktopDownload
|
|
@@ -3,8 +3,9 @@ import React from 'react'
|
|
|
3
3
|
|
|
4
4
|
function SvgPhoneDownloadTwake(props) {
|
|
5
5
|
return (
|
|
6
|
-
<svg viewBox="0 0 14
|
|
7
|
-
<path d="
|
|
6
|
+
<svg viewBox="0 0 14 17" {...props}>
|
|
7
|
+
<path d="M9.182 12.586H1.909V3.859H7V2.404H1.91v-.727H7V.229L1.91.222C1.11.222.454.877.454 1.677v13.09c0 .8.654 1.455 1.454 1.455h7.273c.8 0 1.454-.654 1.454-1.454V11.13H9.182v1.455zm0 2.182H1.909v-.728h7.273v.728z" />
|
|
8
|
+
<path d="M9.91 9.677l3.636-3.637-1.026-1.025-1.884 1.876V1.677H9.182V6.89L7.298 5.015 6.273 6.04l3.636 3.637z" />
|
|
8
9
|
</svg>
|
|
9
10
|
)
|
|
10
11
|
}
|
|
@@ -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
|
}
|
|
@@ -24,6 +24,7 @@ var Banner = function Banner(_ref) {
|
|
|
24
24
|
buttonOne = _ref.buttonOne,
|
|
25
25
|
buttonTwo = _ref.buttonTwo,
|
|
26
26
|
inline = _ref.inline,
|
|
27
|
+
noDivider = _ref.noDivider,
|
|
27
28
|
disableIconStyles = _ref.disableIconStyles;
|
|
28
29
|
var position = {
|
|
29
30
|
row: [8, 4],
|
|
@@ -67,7 +68,7 @@ var Banner = function Banner(_ref) {
|
|
|
67
68
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
68
69
|
item: true,
|
|
69
70
|
className: styles['c-banner-buttons']
|
|
70
|
-
}, buttonOne && buttonOne, buttonTwo && buttonTwo))))), /*#__PURE__*/React.createElement(Divider, null));
|
|
71
|
+
}, buttonOne && buttonOne, buttonTwo && buttonTwo))))), !noDivider && /*#__PURE__*/React.createElement(Divider, null));
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
Banner.propTypes = {
|
|
@@ -89,6 +90,9 @@ Banner.propTypes = {
|
|
|
89
90
|
/** Show banner on one line (only desktop) */
|
|
90
91
|
inline: PropTypes.bool,
|
|
91
92
|
|
|
93
|
+
/** Disables the bottom divider */
|
|
94
|
+
noDivider: PropTypes.bool,
|
|
95
|
+
|
|
92
96
|
/** Disables the styles of the wrapper around the icon */
|
|
93
97
|
disableIconWrapper: PropTypes.bool
|
|
94
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;
|