@7shifts/sous-chef 3.76.2 → 3.77.0-beta.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/actions/Button/constants.d.ts +0 -1
- package/dist/actions/Button/types.d.ts +1 -1
- package/dist/flags/flags/ac.svg +76 -0
- package/dist/flags/flags/ad.svg +150 -0
- package/dist/flags/flags/ae.svg +6 -0
- package/dist/flags/flags/af.svg +81 -0
- package/dist/flags/flags/ag.svg +14 -0
- package/dist/flags/flags/ai.svg +758 -0
- package/dist/flags/flags/al.svg +5 -0
- package/dist/flags/flags/am.svg +5 -0
- package/dist/flags/flags/ao.svg +13 -0
- package/dist/flags/flags/ar.svg +32 -0
- package/dist/flags/flags/as.svg +72 -0
- package/dist/flags/flags/at.svg +6 -0
- package/dist/flags/flags/au.svg +8 -0
- package/dist/flags/flags/aw.svg +186 -0
- package/dist/flags/flags/ax.svg +18 -0
- package/dist/flags/flags/az.svg +8 -0
- package/dist/flags/flags/ba.svg +12 -0
- package/dist/flags/flags/bb.svg +6 -0
- package/dist/flags/flags/bd.svg +4 -0
- package/dist/flags/flags/be.svg +7 -0
- package/dist/flags/flags/bf.svg +7 -0
- package/dist/flags/flags/bg.svg +7 -0
- package/dist/flags/flags/bh.svg +4 -0
- package/dist/flags/flags/bi.svg +15 -0
- package/dist/flags/flags/bj.svg +14 -0
- package/dist/flags/flags/bl.svg +5 -0
- package/dist/flags/flags/bm.svg +97 -0
- package/dist/flags/flags/bn.svg +36 -0
- package/dist/flags/flags/bo.svg +676 -0
- package/dist/flags/flags/bq.svg +5 -0
- package/dist/flags/flags/br.svg +45 -0
- package/dist/flags/flags/bs.svg +13 -0
- package/dist/flags/flags/bt.svg +89 -0
- package/dist/flags/flags/bw.svg +7 -0
- package/dist/flags/flags/by.svg +20 -0
- package/dist/flags/flags/bz.svg +145 -0
- package/dist/flags/flags/ca.svg +4 -0
- package/dist/flags/flags/cc.svg +19 -0
- package/dist/flags/flags/cd.svg +5 -0
- package/dist/flags/flags/cf.svg +15 -0
- package/dist/flags/flags/cg.svg +12 -0
- package/dist/flags/flags/ch.svg +9 -0
- package/dist/flags/flags/ci.svg +7 -0
- package/dist/flags/flags/ck.svg +9 -0
- package/dist/flags/flags/cl.svg +13 -0
- package/dist/flags/flags/cm.svg +15 -0
- package/dist/flags/flags/cn.svg +11 -0
- package/dist/flags/flags/co.svg +7 -0
- package/dist/flags/flags/cr.svg +7 -0
- package/dist/flags/flags/cu.svg +13 -0
- package/dist/flags/flags/cv.svg +13 -0
- package/dist/flags/flags/cw.svg +14 -0
- package/dist/flags/flags/cx.svg +15 -0
- package/dist/flags/flags/cy.svg +6 -0
- package/dist/flags/flags/cz.svg +5 -0
- package/dist/flags/flags/de.svg +5 -0
- package/dist/flags/flags/dj.svg +13 -0
- package/dist/flags/flags/dk.svg +5 -0
- package/dist/flags/flags/dm.svg +152 -0
- package/dist/flags/flags/do.svg +129 -0
- package/dist/flags/flags/dz.svg +5 -0
- package/dist/flags/flags/ec.svg +138 -0
- package/dist/flags/flags/ee.svg +7 -0
- package/dist/flags/flags/eg.svg +38 -0
- package/dist/flags/flags/eh.svg +16 -0
- package/dist/flags/flags/er.svg +8 -0
- package/dist/flags/flags/es.svg +544 -0
- package/dist/flags/flags/et.svg +14 -0
- package/dist/flags/flags/fi.svg +5 -0
- package/dist/flags/flags/fj.svg +120 -0
- package/dist/flags/flags/fk.svg +90 -0
- package/dist/flags/flags/fm.svg +11 -0
- package/dist/flags/flags/fo.svg +12 -0
- package/dist/flags/flags/fr.svg +5 -0
- package/dist/flags/flags/ga.svg +7 -0
- package/dist/flags/flags/gb.svg +7 -0
- package/dist/flags/flags/gd.svg +27 -0
- package/dist/flags/flags/ge.svg +6 -0
- package/dist/flags/flags/gf.svg +5 -0
- package/dist/flags/flags/gg.svg +9 -0
- package/dist/flags/flags/gh.svg +6 -0
- package/dist/flags/flags/gi.svg +32 -0
- package/dist/flags/flags/gl.svg +4 -0
- package/dist/flags/flags/gm.svg +14 -0
- package/dist/flags/flags/gn.svg +7 -0
- package/dist/flags/flags/gp.svg +5 -0
- package/dist/flags/flags/gq.svg +23 -0
- package/dist/flags/flags/gr.svg +16 -0
- package/dist/flags/flags/gt.svg +220 -0
- package/dist/flags/flags/gu.svg +23 -0
- package/dist/flags/flags/gw.svg +13 -0
- package/dist/flags/flags/gy.svg +9 -0
- package/dist/flags/flags/hk.svg +8 -0
- package/dist/flags/flags/hn.svg +18 -0
- package/dist/flags/flags/hr.svg +58 -0
- package/dist/flags/flags/ht.svg +116 -0
- package/dist/flags/flags/hu.svg +7 -0
- package/dist/flags/flags/id.svg +4 -0
- package/dist/flags/flags/ie.svg +7 -0
- package/dist/flags/flags/il.svg +14 -0
- package/dist/flags/flags/im.svg +36 -0
- package/dist/flags/flags/in.svg +25 -0
- package/dist/flags/flags/io.svg +130 -0
- package/dist/flags/flags/iq.svg +10 -0
- package/dist/flags/flags/ir.svg +219 -0
- package/dist/flags/flags/is.svg +12 -0
- package/dist/flags/flags/it.svg +7 -0
- package/dist/flags/flags/je.svg +45 -0
- package/dist/flags/flags/jm.svg +8 -0
- package/dist/flags/flags/jo.svg +16 -0
- package/dist/flags/flags/jp.svg +11 -0
- package/dist/flags/flags/ke.svg +23 -0
- package/dist/flags/flags/kg.svg +15 -0
- package/dist/flags/flags/kh.svg +61 -0
- package/dist/flags/flags/ki.svg +36 -0
- package/dist/flags/flags/km.svg +16 -0
- package/dist/flags/flags/kn.svg +14 -0
- package/dist/flags/flags/kp.svg +15 -0
- package/dist/flags/flags/kr.svg +24 -0
- package/dist/flags/flags/kw.svg +13 -0
- package/dist/flags/flags/ky.svg +109 -0
- package/dist/flags/flags/kz.svg +36 -0
- package/dist/flags/flags/la.svg +12 -0
- package/dist/flags/flags/lb.svg +15 -0
- package/dist/flags/flags/lc.svg +8 -0
- package/dist/flags/flags/li.svg +43 -0
- package/dist/flags/flags/lk.svg +22 -0
- package/dist/flags/flags/lr.svg +14 -0
- package/dist/flags/flags/ls.svg +8 -0
- package/dist/flags/flags/lt.svg +7 -0
- package/dist/flags/flags/lu.svg +5 -0
- package/dist/flags/flags/lv.svg +6 -0
- package/dist/flags/flags/ly.svg +13 -0
- package/dist/flags/flags/ma.svg +4 -0
- package/dist/flags/flags/mc.svg +6 -0
- package/dist/flags/flags/md.svg +70 -0
- package/dist/flags/flags/me.svg +116 -0
- package/dist/flags/flags/mf.svg +5 -0
- package/dist/flags/flags/mg.svg +7 -0
- package/dist/flags/flags/mh.svg +7 -0
- package/dist/flags/flags/mk.svg +5 -0
- package/dist/flags/flags/ml.svg +7 -0
- package/dist/flags/flags/mm.svg +12 -0
- package/dist/flags/flags/mn.svg +14 -0
- package/dist/flags/flags/mo.svg +9 -0
- package/dist/flags/flags/mp.svg +86 -0
- package/dist/flags/flags/mq.svg +5 -0
- package/dist/flags/flags/mr.svg +6 -0
- package/dist/flags/flags/ms.svg +33 -0
- package/dist/flags/flags/mt.svg +49 -0
- package/dist/flags/flags/mu.svg +8 -0
- package/dist/flags/flags/mv.svg +6 -0
- package/dist/flags/flags/mw.svg +10 -0
- package/dist/flags/flags/mx.svg +382 -0
- package/dist/flags/flags/my.svg +26 -0
- package/dist/flags/flags/mz.svg +21 -0
- package/dist/flags/flags/na.svg +16 -0
- package/dist/flags/flags/nc.svg +13 -0
- package/dist/flags/flags/ne.svg +6 -0
- package/dist/flags/flags/nf.svg +9 -0
- package/dist/flags/flags/ng.svg +6 -0
- package/dist/flags/flags/ni.svg +129 -0
- package/dist/flags/flags/nl.svg +5 -0
- package/dist/flags/flags/no.svg +7 -0
- package/dist/flags/flags/np.svg +13 -0
- package/dist/flags/flags/nr.svg +12 -0
- package/dist/flags/flags/nu.svg +10 -0
- package/dist/flags/flags/nz.svg +36 -0
- package/dist/flags/flags/om.svg +115 -0
- package/dist/flags/flags/pa.svg +14 -0
- package/dist/flags/flags/pe.svg +244 -0
- package/dist/flags/flags/pf.svg +19 -0
- package/dist/flags/flags/pg.svg +9 -0
- package/dist/flags/flags/ph.svg +6 -0
- package/dist/flags/flags/pk.svg +15 -0
- package/dist/flags/flags/pl.svg +6 -0
- package/dist/flags/flags/pm.svg +5 -0
- package/dist/flags/flags/pr.svg +13 -0
- package/dist/flags/flags/ps.svg +15 -0
- package/dist/flags/flags/pt.svg +57 -0
- package/dist/flags/flags/pw.svg +11 -0
- package/dist/flags/flags/py.svg +157 -0
- package/dist/flags/flags/qa.svg +4 -0
- package/dist/flags/flags/re.svg +5 -0
- package/dist/flags/flags/ro.svg +7 -0
- package/dist/flags/flags/rs.svg +292 -0
- package/dist/flags/flags/ru.svg +7 -0
- package/dist/flags/flags/rw.svg +13 -0
- package/dist/flags/flags/sa.svg +26 -0
- package/dist/flags/flags/sb.svg +13 -0
- package/dist/flags/flags/sc.svg +7 -0
- package/dist/flags/flags/sd.svg +13 -0
- package/dist/flags/flags/se.svg +4 -0
- package/dist/flags/flags/sg.svg +13 -0
- package/dist/flags/flags/sh.svg +76 -0
- package/dist/flags/flags/si.svg +18 -0
- package/dist/flags/flags/sj.svg +7 -0
- package/dist/flags/flags/sk.svg +9 -0
- package/dist/flags/flags/sl.svg +7 -0
- package/dist/flags/flags/sm.svg +75 -0
- package/dist/flags/flags/sn.svg +8 -0
- package/dist/flags/flags/so.svg +11 -0
- package/dist/flags/flags/sr.svg +6 -0
- package/dist/flags/flags/ss.svg +8 -0
- package/dist/flags/flags/st.svg +16 -0
- package/dist/flags/flags/sv.svg +594 -0
- package/dist/flags/flags/sx.svg +56 -0
- package/dist/flags/flags/sy.svg +6 -0
- package/dist/flags/flags/sz.svg +34 -0
- package/dist/flags/flags/ta.svg +76 -0
- package/dist/flags/flags/tc.svg +50 -0
- package/dist/flags/flags/td.svg +7 -0
- package/dist/flags/flags/tg.svg +14 -0
- package/dist/flags/flags/th.svg +7 -0
- package/dist/flags/flags/tj.svg +22 -0
- package/dist/flags/flags/tk.svg +5 -0
- package/dist/flags/flags/tl.svg +13 -0
- package/dist/flags/flags/tm.svg +205 -0
- package/dist/flags/flags/tn.svg +4 -0
- package/dist/flags/flags/to.svg +10 -0
- package/dist/flags/flags/tr.svg +8 -0
- package/dist/flags/flags/tt.svg +5 -0
- package/dist/flags/flags/tv.svg +9 -0
- package/dist/flags/flags/tw.svg +34 -0
- package/dist/flags/flags/tz.svg +13 -0
- package/dist/flags/flags/ua.svg +6 -0
- package/dist/flags/flags/ug.svg +30 -0
- package/dist/flags/flags/us.svg +9 -0
- package/dist/flags/flags/uy.svg +28 -0
- package/dist/flags/flags/uz.svg +30 -0
- package/dist/flags/flags/va.svg +479 -0
- package/dist/flags/flags/vc.svg +8 -0
- package/dist/flags/flags/ve.svg +26 -0
- package/dist/flags/flags/vg.svg +63 -0
- package/dist/flags/flags/vi.svg +28 -0
- package/dist/flags/flags/vn.svg +11 -0
- package/dist/flags/flags/vu.svg +21 -0
- package/dist/flags/flags/wf.svg +5 -0
- package/dist/flags/flags/ws.svg +7 -0
- package/dist/flags/flags/xk.svg +8 -0
- package/dist/flags/flags/ye.svg +7 -0
- package/dist/flags/flags/yt.svg +5 -0
- package/dist/flags/flags/za.svg +17 -0
- package/dist/flags/flags/zm.svg +27 -0
- package/dist/flags/flags/zw.svg +21 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/foundation/domain.d.ts +1 -1
- package/dist/foundation/tokens/color/color-constants.d.ts +73 -62
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/i18n/locales/locales/en.json +53 -0
- package/dist/i18n/locales/locales/es.json +53 -0
- package/dist/i18n/locales/locales/fr.json +53 -0
- package/dist/index.css +716 -661
- package/dist/index.css.map +1 -1
- package/dist/index.js +113 -112
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +113 -113
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -21,68 +21,79 @@ import { parsePhoneNumber, AsYouType, getCountryCallingCode } from 'libphonenumb
|
|
|
21
21
|
// This file is automatically generated by 'scripts/tokens/build-colors.sh'
|
|
22
22
|
// Do not edit this file directly, if you need to add a color modify 'src/foundation/tokens/color/_color-tokens.scss'
|
|
23
23
|
const COLORS = {
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
24
|
+
'surface-color-dim': 'var(--color-surface-color-dim)',
|
|
25
|
+
'surface-color': 'var(--color-surface-color)',
|
|
26
|
+
'surface-on-color-disabled': 'var(--color-surface-on-color-disabled)',
|
|
27
|
+
'surface-on-color-subtle': 'var(--color-surface-on-color-subtle)',
|
|
28
|
+
'surface-on-color': 'var(--color-surface-on-color)',
|
|
29
|
+
'surface-on-color-bold': 'var(--color-surface-on-color-bold)',
|
|
30
|
+
'surface-container': 'var(--color-surface-container)',
|
|
31
|
+
'surface-container-high': 'var(--color-surface-container-high)',
|
|
32
|
+
'surface-container-highest': 'var(--color-surface-container-highest)',
|
|
33
|
+
'surface-container-disabled': 'var(--color-surface-container-disabled)',
|
|
34
|
+
'surface-container-disabled-variant': 'var(--color-surface-container-disabled-variant)',
|
|
35
|
+
'surface-on-container-disabled': 'var(--color-surface-on-container-disabled)',
|
|
36
|
+
'surface-inverse': 'var(--color-surface-inverse)',
|
|
37
|
+
'surface-on-inverse': 'var(--color-surface-on-inverse)',
|
|
38
|
+
'outline': 'var(--color-outline)',
|
|
39
|
+
'outline-variant': 'var(--color-outline-variant)',
|
|
40
|
+
'primary-color': 'var(--color-primary-color)',
|
|
41
|
+
'primary-on-color': 'var(--color-primary-on-color)',
|
|
42
|
+
'primary-color-variant': 'var(--color-primary-color-variant)',
|
|
43
|
+
'primary-on-color-variant': 'var(--color-primary-on-color-variant)',
|
|
44
|
+
'primary-container': 'var(--color-primary-container)',
|
|
45
|
+
'primary-on-container': 'var(--color-primary-on-container)',
|
|
46
|
+
'primary-container-variant': 'var(--color-primary-container-variant)',
|
|
47
|
+
'primary-on-container-variant': 'var(--color-primary-on-container-variant)',
|
|
48
|
+
'secondary-color': 'var(--color-secondary-color)',
|
|
49
|
+
'secondary-on-color': 'var(--color-secondary-on-color)',
|
|
50
|
+
'secondary-container': 'var(--color-secondary-container)',
|
|
51
|
+
'secondary-on-container': 'var(--color-secondary-on-container)',
|
|
52
|
+
'secondary-container-variant': 'var(--color-secondary-container-variant)',
|
|
53
|
+
'secondary-on-container-variant': 'var(--color-secondary-on-container-variant)',
|
|
54
|
+
'tertiary-color': 'var(--color-tertiary-color)',
|
|
55
|
+
'tertiary-on-color': 'var(--color-tertiary-on-color)',
|
|
56
|
+
'tertiary-container': 'var(--color-tertiary-container)',
|
|
57
|
+
'tertiary-on-container': 'var(--color-tertiary-on-container)',
|
|
58
|
+
'tertiary-container-variant': 'var(--color-tertiary-container-variant)',
|
|
59
|
+
'tertiary-on-container-variant': 'var(--color-tertiary-on-container-variant)',
|
|
60
|
+
'success-color': 'var(--color-success-color)',
|
|
61
|
+
'success-on-color': 'var(--color-success-on-color)',
|
|
62
|
+
'success-container': 'var(--color-success-container)',
|
|
63
|
+
'success-on-container': 'var(--color-success-on-container)',
|
|
64
|
+
'success-container-variant': 'var(--color-success-container-variant)',
|
|
65
|
+
'danger-color': 'var(--color-danger-color)',
|
|
66
|
+
'danger-on-color': 'var(--color-danger-on-color)',
|
|
67
|
+
'danger-container': 'var(--color-danger-container)',
|
|
68
|
+
'danger-on-container': 'var(--color-danger-on-container)',
|
|
69
|
+
'danger-container-variant': 'var(--color-danger-container-variant)',
|
|
70
|
+
'danger-on-container-variant': 'var(--color-danger-on-container-variant)',
|
|
71
|
+
'info-color': 'var(--color-info-color)',
|
|
72
|
+
'info-on-color': 'var(--color-info-on-color)',
|
|
73
|
+
'info-container': 'var(--color-info-container)',
|
|
74
|
+
'info-on-container': 'var(--color-info-on-container)',
|
|
75
|
+
'info-container-variant': 'var(--color-info-container-variant)',
|
|
76
|
+
'info-on-container-variant': 'var(--color-info-on-container-variant)',
|
|
77
|
+
'upsell-color': 'var(--color-upsell-color)',
|
|
78
|
+
'upsell-on-color': 'var(--color-upsell-on-color)',
|
|
79
|
+
'upsell-color-variant': 'var(--color-upsell-color-variant)',
|
|
80
|
+
'upsell-on-color-variant': 'var(--color-upsell-on-color-variant)',
|
|
81
|
+
'upsell-container': 'var(--color-upsell-container)',
|
|
82
|
+
'upsell-on-container': 'var(--color-upsell-on-container)',
|
|
83
|
+
'upsell-container-variant': 'var(--color-upsell-container-variant)',
|
|
84
|
+
'upsell-on-container-variant': 'var(--color-upsell-on-container-variant)',
|
|
85
|
+
'warning-color': 'var(--color-warning-color)',
|
|
86
|
+
'warning-on-color': 'var(--color-warning-on-color)',
|
|
87
|
+
'warning-container': 'var(--color-warning-container)',
|
|
88
|
+
'warning-on-container': 'var(--color-warning-on-container)',
|
|
89
|
+
'warning-container-variant': 'var(--color-warning-container-variant)',
|
|
90
|
+
'warning-on-container-variant': 'var(--color-warning-on-container-variant)',
|
|
91
|
+
'neutral-color': 'var(--color-neutral-color)',
|
|
92
|
+
'neutral-on-color': 'var(--color-neutral-on-color)',
|
|
93
|
+
'neutral-container': 'var(--color-neutral-container)',
|
|
94
|
+
'neutral-on-container': 'var(--color-neutral-on-container)',
|
|
95
|
+
'neutral-container-variant': 'var(--color-neutral-container-variant)',
|
|
96
|
+
'neutral-on-container-variant': 'var(--color-neutral-on-container-variant)'
|
|
86
97
|
};
|
|
87
98
|
|
|
88
99
|
// This file is automatically generated by 'scripts/tokens/build-z-indexes.sh'
|
|
@@ -571,9 +582,9 @@ const Portal = ({
|
|
|
571
582
|
return ReactDOM.createPortal(children, container);
|
|
572
583
|
};
|
|
573
584
|
|
|
574
|
-
// returns the css color variable to pass directly to a style prop ex: 'var(--color-
|
|
585
|
+
// returns the css color variable to pass directly to a style prop ex: 'var(--color-secondary-color)'
|
|
575
586
|
const getColor = color => {
|
|
576
|
-
if (color && COLORS
|
|
587
|
+
if (color && color in COLORS) {
|
|
577
588
|
return COLORS[color];
|
|
578
589
|
} else {
|
|
579
590
|
return color;
|
|
@@ -581,9 +592,9 @@ const getColor = color => {
|
|
|
581
592
|
};
|
|
582
593
|
// returns the css z-index variable to pass directly to a style prop ex: 'var(--z-index-base)'
|
|
583
594
|
const getZIndex = zIndex => {
|
|
584
|
-
if (zIndex && ZINDEX
|
|
595
|
+
if (zIndex && zIndex in ZINDEX) {
|
|
585
596
|
return ZINDEX[zIndex];
|
|
586
|
-
} else if (typeof zIndex ===
|
|
597
|
+
} else if (typeof zIndex === 'number') {
|
|
587
598
|
return zIndex;
|
|
588
599
|
} else {
|
|
589
600
|
return undefined;
|
|
@@ -767,7 +778,7 @@ const TooltipElement = ({
|
|
|
767
778
|
};
|
|
768
779
|
const Tooltip = forwardRef(TooltipElement);
|
|
769
780
|
|
|
770
|
-
var styles$1i = {"button":"_pgOR3","button--loading":"_2yB9-","button__spinner":"_ppC-S","button--size-min-width-100":"_GtXOQ","button--size-full-width":"_Y-OxO","button--icon-only":"_3EfuT","button--default":"_ICNz7","button--primary":"_XwJWT","button--danger":"_gr3Dh","button--upsell":"_ME8te","button--
|
|
781
|
+
var styles$1i = {"button":"_pgOR3","button--loading":"_2yB9-","button__spinner":"_ppC-S","button--size-min-width-100":"_GtXOQ","button--size-full-width":"_Y-OxO","button--icon-only":"_3EfuT","button--default":"_ICNz7","button--primary":"_XwJWT","button--danger":"_gr3Dh","button--upsell":"_ME8te","button--hollow":"_orywo","button--hollow-contrast":"_obtsl","button--link-contrast":"_00jK4","button--link-primary":"_JPwJ7","button--link-danger":"_9TprN","button--link-upsell":"_tktX-","button--link-toolbar":"_r3SQl","button--link-icon":"_oFBLN","disabled-button-wrapper":"_yTBTz"};
|
|
771
782
|
|
|
772
783
|
const BUTTON_SIZES = {
|
|
773
784
|
FULL_WIDTH: 'full-width',
|
|
@@ -778,7 +789,6 @@ const BUTTON_THEMES = {
|
|
|
778
789
|
PRIMARY: 'primary',
|
|
779
790
|
DANGER: 'danger',
|
|
780
791
|
UPSELL: 'upsell',
|
|
781
|
-
MARKETING: 'marketing',
|
|
782
792
|
HOLLOW: 'hollow',
|
|
783
793
|
HOLLOW_CONTRAST: 'hollow-contrast',
|
|
784
794
|
LINK_PRIMARY: 'link-primary',
|
|
@@ -851,7 +861,7 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
851
861
|
const {
|
|
852
862
|
dataProps
|
|
853
863
|
} = getDataProps(otherProps);
|
|
854
|
-
const contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.
|
|
864
|
+
const contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.LINK_CONTRAST];
|
|
855
865
|
const childrenArr = Children.toArray(children);
|
|
856
866
|
const isIconOnly = childrenArr.length === 1 && typeof childrenArr[0] != 'string';
|
|
857
867
|
const ButtonElementResult = React__default.createElement(ButtonElement, {
|
|
@@ -867,7 +877,6 @@ const ButtonComponent = (_ref, ref) => {
|
|
|
867
877
|
[styles$1i['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
|
|
868
878
|
[styles$1i['button--danger']]: theme === BUTTON_THEMES.DANGER,
|
|
869
879
|
[styles$1i['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
|
|
870
|
-
[styles$1i['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
|
|
871
880
|
[styles$1i['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
|
|
872
881
|
[styles$1i['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
|
|
873
882
|
[styles$1i['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
|
|
@@ -6594,7 +6603,7 @@ const useBackgroundColor = () => {
|
|
|
6594
6603
|
const {
|
|
6595
6604
|
isCardMounted: isInsideCard
|
|
6596
6605
|
} = useCardContext();
|
|
6597
|
-
const [backgroundColor, setBackgroundColor] = useState(COLORS
|
|
6606
|
+
const [backgroundColor, setBackgroundColor] = useState(COLORS['surface-color']);
|
|
6598
6607
|
useLayoutEffect(() => {
|
|
6599
6608
|
if (!isInsideModal && !isInsideAccordion && !isInsideCard) {
|
|
6600
6609
|
const bodyStyles = window.getComputedStyle(document.body);
|
|
@@ -7910,7 +7919,7 @@ const DropdownListDivider = ({
|
|
|
7910
7919
|
});
|
|
7911
7920
|
};
|
|
7912
7921
|
|
|
7913
|
-
var styles$_ = {"dropdown-list-item":"_W12mF","dropdown-list-item--selected":"_Zu9cD","dropdown-list-item__content":"_xS6fS","dropdown-list-item--disabled":"_0OB5b","dropdown-list-item__container":"_IBrNj","dropdown-list-item__link":"_vC0uY"};
|
|
7922
|
+
var styles$_ = {"dropdown-list-item":"_W12mF","dropdown-list-item--selected":"_Zu9cD","dropdown-list-item__content":"_xS6fS","dropdown-list-item__caption":"_7EI7m","dropdown-list-item--disabled":"_0OB5b","dropdown-list-item__prefix":"_dpo67","dropdown-list-item__suffix":"_ObP6B","dropdown-list-item__container":"_IBrNj","dropdown-list-item__link":"_vC0uY"};
|
|
7914
7923
|
|
|
7915
7924
|
const DropdownListItem = ({
|
|
7916
7925
|
onClick,
|
|
@@ -7936,15 +7945,6 @@ const DropdownListItem = ({
|
|
|
7936
7945
|
onToggleDropdown();
|
|
7937
7946
|
onClick && onClick(e);
|
|
7938
7947
|
};
|
|
7939
|
-
const getCaptionColor = () => {
|
|
7940
|
-
if (selected) {
|
|
7941
|
-
return 'blackberry-500';
|
|
7942
|
-
}
|
|
7943
|
-
if (disabled) {
|
|
7944
|
-
return 'grey-400';
|
|
7945
|
-
}
|
|
7946
|
-
return undefined;
|
|
7947
|
-
};
|
|
7948
7948
|
const childrenContainer = React__default.createElement("div", {
|
|
7949
7949
|
className: styles$_['dropdown-list-item__container']
|
|
7950
7950
|
}, prefix && React__default.createElement("div", {
|
|
@@ -7954,10 +7954,8 @@ const DropdownListItem = ({
|
|
|
7954
7954
|
}, React__default.createElement(Stack, {
|
|
7955
7955
|
space: 4,
|
|
7956
7956
|
flex: [1]
|
|
7957
|
-
}, children, caption && React__default.createElement(
|
|
7958
|
-
|
|
7959
|
-
color: getCaptionColor(),
|
|
7960
|
-
textWrap: "wrap"
|
|
7957
|
+
}, children, caption && React__default.createElement("div", {
|
|
7958
|
+
className: styles$_['dropdown-list-item__caption']
|
|
7961
7959
|
}, caption))), suffix && React__default.createElement("div", {
|
|
7962
7960
|
className: styles$_['dropdown-list-item__suffix']
|
|
7963
7961
|
}, suffix));
|
|
@@ -10102,7 +10100,7 @@ const AccordionItem = props => {
|
|
|
10102
10100
|
justifyContent: "space-between",
|
|
10103
10101
|
alignItems: "center"
|
|
10104
10102
|
}, React__default.createElement(Text, {
|
|
10105
|
-
color: "grey-
|
|
10103
|
+
color: "grey-600",
|
|
10106
10104
|
emphasis: "bold"
|
|
10107
10105
|
}, title), React__default.createElement(IconChevronDown, {
|
|
10108
10106
|
className: styles$x[`accordion-item__icon${isOpen ? '--active' : ''}`],
|
|
@@ -10392,7 +10390,7 @@ const getSelectStyles = ({
|
|
|
10392
10390
|
asToolbarFilter: _asToolbarFilter = false,
|
|
10393
10391
|
wrapToNextLine: _wrapToNextLine = false
|
|
10394
10392
|
}) => {
|
|
10395
|
-
const borderColor = isInvalid ? COLORS['
|
|
10393
|
+
const borderColor = isInvalid ? COLORS['danger-color'] : COLORS['outline'];
|
|
10396
10394
|
return {
|
|
10397
10395
|
valueContainer: base => {
|
|
10398
10396
|
return Object.assign({}, base, {
|
|
@@ -10409,18 +10407,18 @@ const getSelectStyles = ({
|
|
|
10409
10407
|
},
|
|
10410
10408
|
control: (base, state) => {
|
|
10411
10409
|
return Object.assign({}, base, {
|
|
10412
|
-
backgroundColor: state.isDisabled ? COLORS['
|
|
10413
|
-
borderColor: state.isFocused ? COLORS['
|
|
10414
|
-
color: state.isDisabled ? COLORS['
|
|
10410
|
+
backgroundColor: state.isDisabled ? COLORS['surface-container-disabled'] : COLORS['surface-color'],
|
|
10411
|
+
borderColor: state.isFocused ? COLORS['primary-color'] : borderColor,
|
|
10412
|
+
color: state.isDisabled ? COLORS['surface-on-container-disabled'] : COLORS['surface-on-color'],
|
|
10415
10413
|
borderRadius: 'var(--border-radius-400)',
|
|
10416
|
-
boxShadow: state.isFocused ? `0 0 8px ${COLORS['
|
|
10414
|
+
boxShadow: state.isFocused ? `0 0 8px ${COLORS['primary-color']}` : 'none',
|
|
10417
10415
|
'&:hover': 'none',
|
|
10418
10416
|
fontSize: '14px',
|
|
10419
10417
|
cursor: 'pointer',
|
|
10420
10418
|
width: _asToolbarFilter ? 'fit-content' : undefined,
|
|
10421
10419
|
margin: 0,
|
|
10422
10420
|
':hover': _asToolbarFilter ? {
|
|
10423
|
-
backgroundColor:
|
|
10421
|
+
backgroundColor: 'color-mix(in srgb, var(--color-surface-color) 100%, var(--color-surface-inverse) 5%)'
|
|
10424
10422
|
} : 'none'
|
|
10425
10423
|
});
|
|
10426
10424
|
},
|
|
@@ -10428,7 +10426,7 @@ const getSelectStyles = ({
|
|
|
10428
10426
|
display: 'none'
|
|
10429
10427
|
}),
|
|
10430
10428
|
placeholder: (base, state) => _extends({}, base, {
|
|
10431
|
-
color: state.isDisabled && _asToolbarFilter ? COLORS['
|
|
10429
|
+
color: state.isDisabled && _asToolbarFilter ? COLORS['surface-on-color-disabled'] : COLORS['surface-on-color-subtle'],
|
|
10432
10430
|
marginRight: 0,
|
|
10433
10431
|
position: 'static',
|
|
10434
10432
|
transform: 'initial',
|
|
@@ -10437,14 +10435,14 @@ const getSelectStyles = ({
|
|
|
10437
10435
|
whiteSpace: 'nowrap'
|
|
10438
10436
|
}),
|
|
10439
10437
|
noOptionsMessage: () => ({
|
|
10440
|
-
color: COLORS['
|
|
10438
|
+
color: COLORS['surface-on-color'],
|
|
10441
10439
|
textAlign: 'center',
|
|
10442
10440
|
padding: '8px',
|
|
10443
10441
|
fontFamily: FONT_FAMILY,
|
|
10444
10442
|
fontSize: '14px'
|
|
10445
10443
|
}),
|
|
10446
10444
|
loadingMessage: () => ({
|
|
10447
|
-
color: COLORS['
|
|
10445
|
+
color: COLORS['surface-on-color'],
|
|
10448
10446
|
textAlign: 'center',
|
|
10449
10447
|
padding: '8px',
|
|
10450
10448
|
fontFamily: FONT_FAMILY,
|
|
@@ -10452,7 +10450,7 @@ const getSelectStyles = ({
|
|
|
10452
10450
|
}),
|
|
10453
10451
|
singleValue: (base, state) => {
|
|
10454
10452
|
return Object.assign({}, base, {
|
|
10455
|
-
color: state.isDisabled ? COLORS['
|
|
10453
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : null,
|
|
10456
10454
|
marginRight: 0,
|
|
10457
10455
|
position: _asToolbarFilter ? 'static' : 'absolute',
|
|
10458
10456
|
transform: 'initial',
|
|
@@ -10464,15 +10462,15 @@ const getSelectStyles = ({
|
|
|
10464
10462
|
},
|
|
10465
10463
|
dropdownIndicator: (base, state) => {
|
|
10466
10464
|
return Object.assign({}, base, {
|
|
10467
|
-
color: state.isDisabled ? COLORS['
|
|
10465
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : COLORS['surface-on-color-subtle'],
|
|
10468
10466
|
padding: '8px',
|
|
10469
10467
|
':hover': 'none'
|
|
10470
10468
|
});
|
|
10471
10469
|
},
|
|
10472
10470
|
option: (base, state) => {
|
|
10473
10471
|
return Object.assign({}, base, {
|
|
10474
|
-
backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['
|
|
10475
|
-
color: state.isDisabled ? COLORS['
|
|
10472
|
+
backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['primary-container'] : state.isFocused ? COLORS['surface-container-high'] : COLORS['surface-color'],
|
|
10473
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : state.isSelected ? COLORS['primary-color'] : COLORS['surface-on-color'],
|
|
10476
10474
|
cursor: 'pointer',
|
|
10477
10475
|
fontFamily: FONT_FAMILY,
|
|
10478
10476
|
fontSize: '14px',
|
|
@@ -10488,21 +10486,22 @@ const getSelectStyles = ({
|
|
|
10488
10486
|
return Object.assign({}, base, {
|
|
10489
10487
|
':hover': {
|
|
10490
10488
|
backgroundColor: 'none',
|
|
10491
|
-
color: COLORS['
|
|
10489
|
+
color: COLORS['surface-on-color']
|
|
10492
10490
|
}
|
|
10493
10491
|
});
|
|
10494
10492
|
},
|
|
10495
10493
|
clearIndicator: base => {
|
|
10496
10494
|
return Object.assign({}, base, {
|
|
10497
|
-
color: COLORS['
|
|
10495
|
+
color: COLORS['surface-on-color-subtle'],
|
|
10498
10496
|
':hover': {
|
|
10499
|
-
color: COLORS['
|
|
10497
|
+
color: COLORS['surface-on-color']
|
|
10500
10498
|
}
|
|
10501
10499
|
});
|
|
10502
10500
|
},
|
|
10503
10501
|
menu: base => _extends({}, base, {
|
|
10504
10502
|
borderRadius: 0,
|
|
10505
|
-
zIndex: getZIndex('dropdown')
|
|
10503
|
+
zIndex: getZIndex('dropdown'),
|
|
10504
|
+
backgroundColor: COLORS['surface-color']
|
|
10506
10505
|
}),
|
|
10507
10506
|
menuPortal: base => _extends({}, base, {
|
|
10508
10507
|
zIndex: getZIndex('dropdown')
|
|
@@ -11424,7 +11423,8 @@ const PillSelectField = ({
|
|
|
11424
11423
|
};
|
|
11425
11424
|
return React__default.createElement("button", {
|
|
11426
11425
|
className: styles$i['pill-select-field__removable-icon'],
|
|
11427
|
-
onClick: handleClick
|
|
11426
|
+
onClick: handleClick,
|
|
11427
|
+
disabled: disabled
|
|
11428
11428
|
}, React__default.createElement(IconTimes, {
|
|
11429
11429
|
size: "small"
|
|
11430
11430
|
}));
|
|
@@ -11463,7 +11463,7 @@ const PillSelectField = ({
|
|
|
11463
11463
|
}, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
|
|
11464
11464
|
option: option
|
|
11465
11465
|
})));
|
|
11466
|
-
}), createOptionLabel && React__default.createElement(CreatableOption, {
|
|
11466
|
+
}), createOptionLabel && !disabled && React__default.createElement(CreatableOption, {
|
|
11467
11467
|
name: name,
|
|
11468
11468
|
testId: testId,
|
|
11469
11469
|
onCreate: onCreate,
|
|
@@ -11760,9 +11760,7 @@ const PasswordCriteria = ({
|
|
|
11760
11760
|
}, met ? React__default.createElement(IconCheck, {
|
|
11761
11761
|
size: "small",
|
|
11762
11762
|
color: "grey-200"
|
|
11763
|
-
}) : '\u25CF', React__default.createElement(
|
|
11764
|
-
color: met ? 'grey-200' : 'grey-400'
|
|
11765
|
-
}, children)));
|
|
11763
|
+
}) : '\u25CF', React__default.createElement("span", null, children)));
|
|
11766
11764
|
};
|
|
11767
11765
|
|
|
11768
11766
|
const usePasswordCriteria = criterias => {
|
|
@@ -12992,11 +12990,12 @@ var styles$9 = {"currency-field__mask-display":"_ddacu"};
|
|
|
12992
12990
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
12993
12991
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
12994
12992
|
|
|
12995
|
-
const _excluded$4 = ["currencySymbol", "step"];
|
|
12993
|
+
const _excluded$4 = ["currencySymbol", "step", "suffix"];
|
|
12996
12994
|
const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
12997
12995
|
let {
|
|
12998
12996
|
currencySymbol = '$',
|
|
12999
|
-
step = 0.01
|
|
12997
|
+
step = 0.01,
|
|
12998
|
+
suffix
|
|
13000
12999
|
} = _ref,
|
|
13001
13000
|
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
13002
13001
|
const [displayPadding, setDisplayPadding] = useState(CURRENCY_DISPLAY_DEFAULT_MARGIN);
|
|
@@ -13024,7 +13023,8 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
13024
13023
|
}
|
|
13025
13024
|
}, [ref]);
|
|
13026
13025
|
return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(Fragment, null, React__default.createElement(AffixContainer, {
|
|
13027
|
-
prefix: currencySymbol
|
|
13026
|
+
prefix: currencySymbol,
|
|
13027
|
+
suffix: suffix
|
|
13028
13028
|
}, React__default.createElement("input", _extends({}, inputProps, {
|
|
13029
13029
|
type: "number",
|
|
13030
13030
|
inputMode: "decimal",
|
|
@@ -14376,7 +14376,7 @@ function useIsVisibleInViewPort() {
|
|
|
14376
14376
|
|
|
14377
14377
|
const Avatar = ({
|
|
14378
14378
|
children,
|
|
14379
|
-
color: _color = COLORS['
|
|
14379
|
+
color: _color = COLORS['surface-on-color-subtle'],
|
|
14380
14380
|
size: _size = 'medium',
|
|
14381
14381
|
url: urlProp,
|
|
14382
14382
|
badge,
|
|
@@ -14391,7 +14391,7 @@ const Avatar = ({
|
|
|
14391
14391
|
const [showIconInsteadOfImage, setShowIconInsteadOfImage] = useState(false);
|
|
14392
14392
|
const [defaultProfilePictureColors] = useState(() => PROFILE_IMAGES[Math.floor(Math.random() * PROFILE_IMAGES.length)]);
|
|
14393
14393
|
// If passing an url we are defaulting to a lighter grey while the image loads
|
|
14394
|
-
const backgroundColor = url ? COLORS['
|
|
14394
|
+
const backgroundColor = url ? COLORS['surface-container-highest'] : getColor(_color);
|
|
14395
14395
|
return React__default.createElement("div", {
|
|
14396
14396
|
className: classnames(styles$6['avatar__container']),
|
|
14397
14397
|
ref: elementRef
|