@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.js
CHANGED
|
@@ -53,68 +53,79 @@ var AsyncSelect__default = /*#__PURE__*/_interopDefaultLegacy(AsyncSelect);
|
|
|
53
53
|
// This file is automatically generated by 'scripts/tokens/build-colors.sh'
|
|
54
54
|
// Do not edit this file directly, if you need to add a color modify 'src/foundation/tokens/color/_color-tokens.scss'
|
|
55
55
|
var COLORS = {
|
|
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
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'
|
|
56
|
+
'surface-color-dim': 'var(--color-surface-color-dim)',
|
|
57
|
+
'surface-color': 'var(--color-surface-color)',
|
|
58
|
+
'surface-on-color-disabled': 'var(--color-surface-on-color-disabled)',
|
|
59
|
+
'surface-on-color-subtle': 'var(--color-surface-on-color-subtle)',
|
|
60
|
+
'surface-on-color': 'var(--color-surface-on-color)',
|
|
61
|
+
'surface-on-color-bold': 'var(--color-surface-on-color-bold)',
|
|
62
|
+
'surface-container': 'var(--color-surface-container)',
|
|
63
|
+
'surface-container-high': 'var(--color-surface-container-high)',
|
|
64
|
+
'surface-container-highest': 'var(--color-surface-container-highest)',
|
|
65
|
+
'surface-container-disabled': 'var(--color-surface-container-disabled)',
|
|
66
|
+
'surface-container-disabled-variant': 'var(--color-surface-container-disabled-variant)',
|
|
67
|
+
'surface-on-container-disabled': 'var(--color-surface-on-container-disabled)',
|
|
68
|
+
'surface-inverse': 'var(--color-surface-inverse)',
|
|
69
|
+
'surface-on-inverse': 'var(--color-surface-on-inverse)',
|
|
70
|
+
'outline': 'var(--color-outline)',
|
|
71
|
+
'outline-variant': 'var(--color-outline-variant)',
|
|
72
|
+
'primary-color': 'var(--color-primary-color)',
|
|
73
|
+
'primary-on-color': 'var(--color-primary-on-color)',
|
|
74
|
+
'primary-color-variant': 'var(--color-primary-color-variant)',
|
|
75
|
+
'primary-on-color-variant': 'var(--color-primary-on-color-variant)',
|
|
76
|
+
'primary-container': 'var(--color-primary-container)',
|
|
77
|
+
'primary-on-container': 'var(--color-primary-on-container)',
|
|
78
|
+
'primary-container-variant': 'var(--color-primary-container-variant)',
|
|
79
|
+
'primary-on-container-variant': 'var(--color-primary-on-container-variant)',
|
|
80
|
+
'secondary-color': 'var(--color-secondary-color)',
|
|
81
|
+
'secondary-on-color': 'var(--color-secondary-on-color)',
|
|
82
|
+
'secondary-container': 'var(--color-secondary-container)',
|
|
83
|
+
'secondary-on-container': 'var(--color-secondary-on-container)',
|
|
84
|
+
'secondary-container-variant': 'var(--color-secondary-container-variant)',
|
|
85
|
+
'secondary-on-container-variant': 'var(--color-secondary-on-container-variant)',
|
|
86
|
+
'tertiary-color': 'var(--color-tertiary-color)',
|
|
87
|
+
'tertiary-on-color': 'var(--color-tertiary-on-color)',
|
|
88
|
+
'tertiary-container': 'var(--color-tertiary-container)',
|
|
89
|
+
'tertiary-on-container': 'var(--color-tertiary-on-container)',
|
|
90
|
+
'tertiary-container-variant': 'var(--color-tertiary-container-variant)',
|
|
91
|
+
'tertiary-on-container-variant': 'var(--color-tertiary-on-container-variant)',
|
|
92
|
+
'success-color': 'var(--color-success-color)',
|
|
93
|
+
'success-on-color': 'var(--color-success-on-color)',
|
|
94
|
+
'success-container': 'var(--color-success-container)',
|
|
95
|
+
'success-on-container': 'var(--color-success-on-container)',
|
|
96
|
+
'success-container-variant': 'var(--color-success-container-variant)',
|
|
97
|
+
'danger-color': 'var(--color-danger-color)',
|
|
98
|
+
'danger-on-color': 'var(--color-danger-on-color)',
|
|
99
|
+
'danger-container': 'var(--color-danger-container)',
|
|
100
|
+
'danger-on-container': 'var(--color-danger-on-container)',
|
|
101
|
+
'danger-container-variant': 'var(--color-danger-container-variant)',
|
|
102
|
+
'danger-on-container-variant': 'var(--color-danger-on-container-variant)',
|
|
103
|
+
'info-color': 'var(--color-info-color)',
|
|
104
|
+
'info-on-color': 'var(--color-info-on-color)',
|
|
105
|
+
'info-container': 'var(--color-info-container)',
|
|
106
|
+
'info-on-container': 'var(--color-info-on-container)',
|
|
107
|
+
'info-container-variant': 'var(--color-info-container-variant)',
|
|
108
|
+
'info-on-container-variant': 'var(--color-info-on-container-variant)',
|
|
109
|
+
'upsell-color': 'var(--color-upsell-color)',
|
|
110
|
+
'upsell-on-color': 'var(--color-upsell-on-color)',
|
|
111
|
+
'upsell-color-variant': 'var(--color-upsell-color-variant)',
|
|
112
|
+
'upsell-on-color-variant': 'var(--color-upsell-on-color-variant)',
|
|
113
|
+
'upsell-container': 'var(--color-upsell-container)',
|
|
114
|
+
'upsell-on-container': 'var(--color-upsell-on-container)',
|
|
115
|
+
'upsell-container-variant': 'var(--color-upsell-container-variant)',
|
|
116
|
+
'upsell-on-container-variant': 'var(--color-upsell-on-container-variant)',
|
|
117
|
+
'warning-color': 'var(--color-warning-color)',
|
|
118
|
+
'warning-on-color': 'var(--color-warning-on-color)',
|
|
119
|
+
'warning-container': 'var(--color-warning-container)',
|
|
120
|
+
'warning-on-container': 'var(--color-warning-on-container)',
|
|
121
|
+
'warning-container-variant': 'var(--color-warning-container-variant)',
|
|
122
|
+
'warning-on-container-variant': 'var(--color-warning-on-container-variant)',
|
|
123
|
+
'neutral-color': 'var(--color-neutral-color)',
|
|
124
|
+
'neutral-on-color': 'var(--color-neutral-on-color)',
|
|
125
|
+
'neutral-container': 'var(--color-neutral-container)',
|
|
126
|
+
'neutral-on-container': 'var(--color-neutral-on-container)',
|
|
127
|
+
'neutral-container-variant': 'var(--color-neutral-container-variant)',
|
|
128
|
+
'neutral-on-container-variant': 'var(--color-neutral-on-container-variant)'
|
|
118
129
|
};
|
|
119
130
|
|
|
120
131
|
// This file is automatically generated by 'scripts/tokens/build-z-indexes.sh'
|
|
@@ -603,9 +614,9 @@ var Portal = function Portal(_ref) {
|
|
|
603
614
|
return ReactDOM__default["default"].createPortal(children, container);
|
|
604
615
|
};
|
|
605
616
|
|
|
606
|
-
// returns the css color variable to pass directly to a style prop ex: 'var(--color-
|
|
617
|
+
// returns the css color variable to pass directly to a style prop ex: 'var(--color-secondary-color)'
|
|
607
618
|
var getColor = function getColor(color) {
|
|
608
|
-
if (color && COLORS
|
|
619
|
+
if (color && color in COLORS) {
|
|
609
620
|
return COLORS[color];
|
|
610
621
|
} else {
|
|
611
622
|
return color;
|
|
@@ -613,9 +624,9 @@ var getColor = function getColor(color) {
|
|
|
613
624
|
};
|
|
614
625
|
// returns the css z-index variable to pass directly to a style prop ex: 'var(--z-index-base)'
|
|
615
626
|
var getZIndex = function getZIndex(zIndex) {
|
|
616
|
-
if (zIndex && ZINDEX
|
|
627
|
+
if (zIndex && zIndex in ZINDEX) {
|
|
617
628
|
return ZINDEX[zIndex];
|
|
618
|
-
} else if (typeof zIndex ===
|
|
629
|
+
} else if (typeof zIndex === 'number') {
|
|
619
630
|
return zIndex;
|
|
620
631
|
} else {
|
|
621
632
|
return undefined;
|
|
@@ -797,7 +808,7 @@ var TooltipElement = function TooltipElement(_ref, forwardedRef) {
|
|
|
797
808
|
};
|
|
798
809
|
var Tooltip = React.forwardRef(TooltipElement);
|
|
799
810
|
|
|
800
|
-
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--
|
|
811
|
+
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"};
|
|
801
812
|
|
|
802
813
|
var BUTTON_SIZES = {
|
|
803
814
|
FULL_WIDTH: 'full-width',
|
|
@@ -808,7 +819,6 @@ var BUTTON_THEMES = {
|
|
|
808
819
|
PRIMARY: 'primary',
|
|
809
820
|
DANGER: 'danger',
|
|
810
821
|
UPSELL: 'upsell',
|
|
811
|
-
MARKETING: 'marketing',
|
|
812
822
|
HOLLOW: 'hollow',
|
|
813
823
|
HOLLOW_CONTRAST: 'hollow-contrast',
|
|
814
824
|
LINK_PRIMARY: 'link-primary',
|
|
@@ -881,7 +891,7 @@ var ButtonComponent = function ButtonComponent(_ref, ref) {
|
|
|
881
891
|
otherProps = _getPositionProps.otherProps;
|
|
882
892
|
var _getDataProps = getDataProps(otherProps),
|
|
883
893
|
dataProps = _getDataProps.dataProps;
|
|
884
|
-
var contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.
|
|
894
|
+
var contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.LINK_CONTRAST];
|
|
885
895
|
var childrenArr = React.Children.toArray(children);
|
|
886
896
|
var isIconOnly = childrenArr.length === 1 && typeof childrenArr[0] != 'string';
|
|
887
897
|
var ButtonElementResult = React__default["default"].createElement(ButtonElement, {
|
|
@@ -892,7 +902,7 @@ var ButtonComponent = function ButtonComponent(_ref, ref) {
|
|
|
892
902
|
onBlur: onBlur,
|
|
893
903
|
onFocus: onFocus,
|
|
894
904
|
onKeyDown: onKeyDown,
|
|
895
|
-
className: classnames__default["default"](styles$1i['button'], (_classnames = {}, _classnames[styles$1i['button--default']] = theme === BUTTON_THEMES.DEFAULT, _classnames[styles$1i['button--primary']] = theme === BUTTON_THEMES.PRIMARY, _classnames[styles$1i['button--danger']] = theme === BUTTON_THEMES.DANGER, _classnames[styles$1i['button--upsell']] = theme === BUTTON_THEMES.UPSELL, _classnames[styles$1i['button--
|
|
905
|
+
className: classnames__default["default"](styles$1i['button'], (_classnames = {}, _classnames[styles$1i['button--default']] = theme === BUTTON_THEMES.DEFAULT, _classnames[styles$1i['button--primary']] = theme === BUTTON_THEMES.PRIMARY, _classnames[styles$1i['button--danger']] = theme === BUTTON_THEMES.DANGER, _classnames[styles$1i['button--upsell']] = theme === BUTTON_THEMES.UPSELL, _classnames[styles$1i['button--hollow']] = theme === BUTTON_THEMES.HOLLOW, _classnames[styles$1i['button--hollow-contrast']] = theme === BUTTON_THEMES.HOLLOW_CONTRAST, _classnames[styles$1i['button--link-primary']] = theme === BUTTON_THEMES.LINK_PRIMARY, _classnames[styles$1i['button--link-danger']] = theme === BUTTON_THEMES.LINK_DANGER, _classnames[styles$1i['button--link-upsell']] = theme === BUTTON_THEMES.LINK_UPSELL, _classnames[styles$1i['button--link-toolbar']] = theme === BUTTON_THEMES.LINK_TOOLBAR, _classnames[styles$1i['button--link-contrast']] = theme === BUTTON_THEMES.LINK_CONTRAST, _classnames[styles$1i['button--link-icon']] = theme === BUTTON_THEMES.LINK_ICON, _classnames[styles$1i['button--loading']] = loading, _classnames[styles$1i['button--icon-only']] = isIconOnly, _classnames[styles$1i['button--size-min-width-100']] = size === BUTTON_SIZES.MIN_WIDTH_100, _classnames[styles$1i['button--size-full-width']] = size === BUTTON_SIZES.FULL_WIDTH, _classnames)),
|
|
896
906
|
type: type,
|
|
897
907
|
disabled: disabled || loading,
|
|
898
908
|
href: href,
|
|
@@ -6459,7 +6469,7 @@ var useBackgroundColor = function useBackgroundColor() {
|
|
|
6459
6469
|
isInsideAccordion = _useAccordionContext.isAccordionMounted;
|
|
6460
6470
|
var _useCardContext = useCardContext(),
|
|
6461
6471
|
isInsideCard = _useCardContext.isCardMounted;
|
|
6462
|
-
var _useState = React.useState(COLORS
|
|
6472
|
+
var _useState = React.useState(COLORS['surface-color']),
|
|
6463
6473
|
backgroundColor = _useState[0],
|
|
6464
6474
|
setBackgroundColor = _useState[1];
|
|
6465
6475
|
React.useLayoutEffect(function () {
|
|
@@ -7755,7 +7765,7 @@ var DropdownListDivider = function DropdownListDivider(_ref) {
|
|
|
7755
7765
|
});
|
|
7756
7766
|
};
|
|
7757
7767
|
|
|
7758
|
-
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"};
|
|
7768
|
+
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"};
|
|
7759
7769
|
|
|
7760
7770
|
var DropdownListItem = function DropdownListItem(_ref) {
|
|
7761
7771
|
var _classNames;
|
|
@@ -7782,15 +7792,6 @@ var DropdownListItem = function DropdownListItem(_ref) {
|
|
|
7782
7792
|
onToggleDropdown();
|
|
7783
7793
|
onClick && onClick(e);
|
|
7784
7794
|
};
|
|
7785
|
-
var getCaptionColor = function getCaptionColor() {
|
|
7786
|
-
if (selected) {
|
|
7787
|
-
return 'blackberry-500';
|
|
7788
|
-
}
|
|
7789
|
-
if (disabled) {
|
|
7790
|
-
return 'grey-400';
|
|
7791
|
-
}
|
|
7792
|
-
return undefined;
|
|
7793
|
-
};
|
|
7794
7795
|
var childrenContainer = React__default["default"].createElement("div", {
|
|
7795
7796
|
className: styles$_['dropdown-list-item__container']
|
|
7796
7797
|
}, prefix && React__default["default"].createElement("div", {
|
|
@@ -7800,10 +7801,8 @@ var DropdownListItem = function DropdownListItem(_ref) {
|
|
|
7800
7801
|
}, React__default["default"].createElement(Stack, {
|
|
7801
7802
|
space: 4,
|
|
7802
7803
|
flex: [1]
|
|
7803
|
-
}, children, caption && React__default["default"].createElement(
|
|
7804
|
-
|
|
7805
|
-
color: getCaptionColor(),
|
|
7806
|
-
textWrap: "wrap"
|
|
7804
|
+
}, children, caption && React__default["default"].createElement("div", {
|
|
7805
|
+
className: styles$_['dropdown-list-item__caption']
|
|
7807
7806
|
}, caption))), suffix && React__default["default"].createElement("div", {
|
|
7808
7807
|
className: styles$_['dropdown-list-item__suffix']
|
|
7809
7808
|
}, suffix));
|
|
@@ -9896,7 +9895,7 @@ var AccordionItem = function AccordionItem(props) {
|
|
|
9896
9895
|
justifyContent: "space-between",
|
|
9897
9896
|
alignItems: "center"
|
|
9898
9897
|
}, React__default["default"].createElement(Text, {
|
|
9899
|
-
color: "grey-
|
|
9898
|
+
color: "grey-600",
|
|
9900
9899
|
emphasis: "bold"
|
|
9901
9900
|
}, title), React__default["default"].createElement(IconChevronDown, {
|
|
9902
9901
|
className: styles$x["accordion-item__icon" + (isOpen ? '--active' : '')],
|
|
@@ -10179,7 +10178,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10179
10178
|
asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
|
|
10180
10179
|
_ref$wrapToNextLine = _ref.wrapToNextLine,
|
|
10181
10180
|
wrapToNextLine = _ref$wrapToNextLine === void 0 ? false : _ref$wrapToNextLine;
|
|
10182
|
-
var borderColor = isInvalid ? COLORS['
|
|
10181
|
+
var borderColor = isInvalid ? COLORS['danger-color'] : COLORS['outline'];
|
|
10183
10182
|
return {
|
|
10184
10183
|
valueContainer: function valueContainer(base) {
|
|
10185
10184
|
return Object.assign({}, base, {
|
|
@@ -10196,18 +10195,18 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10196
10195
|
},
|
|
10197
10196
|
control: function control(base, state) {
|
|
10198
10197
|
return Object.assign({}, base, {
|
|
10199
|
-
backgroundColor: state.isDisabled ? COLORS['
|
|
10200
|
-
borderColor: state.isFocused ? COLORS['
|
|
10201
|
-
color: state.isDisabled ? COLORS['
|
|
10198
|
+
backgroundColor: state.isDisabled ? COLORS['surface-container-disabled'] : COLORS['surface-color'],
|
|
10199
|
+
borderColor: state.isFocused ? COLORS['primary-color'] : borderColor,
|
|
10200
|
+
color: state.isDisabled ? COLORS['surface-on-container-disabled'] : COLORS['surface-on-color'],
|
|
10202
10201
|
borderRadius: 'var(--border-radius-400)',
|
|
10203
|
-
boxShadow: state.isFocused ? "0 0 8px " + COLORS['
|
|
10202
|
+
boxShadow: state.isFocused ? "0 0 8px " + COLORS['primary-color'] : 'none',
|
|
10204
10203
|
'&:hover': 'none',
|
|
10205
10204
|
fontSize: '14px',
|
|
10206
10205
|
cursor: 'pointer',
|
|
10207
10206
|
width: asToolbarFilter ? 'fit-content' : undefined,
|
|
10208
10207
|
margin: 0,
|
|
10209
10208
|
':hover': asToolbarFilter ? {
|
|
10210
|
-
backgroundColor:
|
|
10209
|
+
backgroundColor: 'color-mix(in srgb, var(--color-surface-color) 100%, var(--color-surface-inverse) 5%)'
|
|
10211
10210
|
} : 'none'
|
|
10212
10211
|
});
|
|
10213
10212
|
},
|
|
@@ -10218,7 +10217,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10218
10217
|
},
|
|
10219
10218
|
placeholder: function placeholder(base, state) {
|
|
10220
10219
|
return _extends({}, base, {
|
|
10221
|
-
color: state.isDisabled && asToolbarFilter ? COLORS['
|
|
10220
|
+
color: state.isDisabled && asToolbarFilter ? COLORS['surface-on-color-disabled'] : COLORS['surface-on-color-subtle'],
|
|
10222
10221
|
marginRight: 0,
|
|
10223
10222
|
position: 'static',
|
|
10224
10223
|
transform: 'initial',
|
|
@@ -10229,7 +10228,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10229
10228
|
},
|
|
10230
10229
|
noOptionsMessage: function noOptionsMessage() {
|
|
10231
10230
|
return {
|
|
10232
|
-
color: COLORS['
|
|
10231
|
+
color: COLORS['surface-on-color'],
|
|
10233
10232
|
textAlign: 'center',
|
|
10234
10233
|
padding: '8px',
|
|
10235
10234
|
fontFamily: FONT_FAMILY,
|
|
@@ -10238,7 +10237,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10238
10237
|
},
|
|
10239
10238
|
loadingMessage: function loadingMessage() {
|
|
10240
10239
|
return {
|
|
10241
|
-
color: COLORS['
|
|
10240
|
+
color: COLORS['surface-on-color'],
|
|
10242
10241
|
textAlign: 'center',
|
|
10243
10242
|
padding: '8px',
|
|
10244
10243
|
fontFamily: FONT_FAMILY,
|
|
@@ -10247,7 +10246,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10247
10246
|
},
|
|
10248
10247
|
singleValue: function singleValue(base, state) {
|
|
10249
10248
|
return Object.assign({}, base, {
|
|
10250
|
-
color: state.isDisabled ? COLORS['
|
|
10249
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : null,
|
|
10251
10250
|
marginRight: 0,
|
|
10252
10251
|
position: asToolbarFilter ? 'static' : 'absolute',
|
|
10253
10252
|
transform: 'initial',
|
|
@@ -10259,15 +10258,15 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10259
10258
|
},
|
|
10260
10259
|
dropdownIndicator: function dropdownIndicator(base, state) {
|
|
10261
10260
|
return Object.assign({}, base, {
|
|
10262
|
-
color: state.isDisabled ? COLORS['
|
|
10261
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : COLORS['surface-on-color-subtle'],
|
|
10263
10262
|
padding: '8px',
|
|
10264
10263
|
':hover': 'none'
|
|
10265
10264
|
});
|
|
10266
10265
|
},
|
|
10267
10266
|
option: function option(base, state) {
|
|
10268
10267
|
return Object.assign({}, base, {
|
|
10269
|
-
backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['
|
|
10270
|
-
color: state.isDisabled ? COLORS['
|
|
10268
|
+
backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['primary-container'] : state.isFocused ? COLORS['surface-container-high'] : COLORS['surface-color'],
|
|
10269
|
+
color: state.isDisabled ? COLORS['surface-on-color-disabled'] : state.isSelected ? COLORS['primary-color'] : COLORS['surface-on-color'],
|
|
10271
10270
|
cursor: 'pointer',
|
|
10272
10271
|
fontFamily: FONT_FAMILY,
|
|
10273
10272
|
fontSize: '14px',
|
|
@@ -10283,22 +10282,23 @@ var getSelectStyles = function getSelectStyles(_ref) {
|
|
|
10283
10282
|
return Object.assign({}, base, {
|
|
10284
10283
|
':hover': {
|
|
10285
10284
|
backgroundColor: 'none',
|
|
10286
|
-
color: COLORS['
|
|
10285
|
+
color: COLORS['surface-on-color']
|
|
10287
10286
|
}
|
|
10288
10287
|
});
|
|
10289
10288
|
},
|
|
10290
10289
|
clearIndicator: function clearIndicator(base) {
|
|
10291
10290
|
return Object.assign({}, base, {
|
|
10292
|
-
color: COLORS['
|
|
10291
|
+
color: COLORS['surface-on-color-subtle'],
|
|
10293
10292
|
':hover': {
|
|
10294
|
-
color: COLORS['
|
|
10293
|
+
color: COLORS['surface-on-color']
|
|
10295
10294
|
}
|
|
10296
10295
|
});
|
|
10297
10296
|
},
|
|
10298
10297
|
menu: function menu(base) {
|
|
10299
10298
|
return _extends({}, base, {
|
|
10300
10299
|
borderRadius: 0,
|
|
10301
|
-
zIndex: getZIndex('dropdown')
|
|
10300
|
+
zIndex: getZIndex('dropdown'),
|
|
10301
|
+
backgroundColor: COLORS['surface-color']
|
|
10302
10302
|
});
|
|
10303
10303
|
},
|
|
10304
10304
|
menuPortal: function menuPortal(base) {
|
|
@@ -11251,7 +11251,8 @@ var PillSelectField = function PillSelectField(_ref) {
|
|
|
11251
11251
|
};
|
|
11252
11252
|
return React__default["default"].createElement("button", {
|
|
11253
11253
|
className: styles$i['pill-select-field__removable-icon'],
|
|
11254
|
-
onClick: handleClick
|
|
11254
|
+
onClick: handleClick,
|
|
11255
|
+
disabled: disabled
|
|
11255
11256
|
}, React__default["default"].createElement(IconTimes, {
|
|
11256
11257
|
size: "small"
|
|
11257
11258
|
}));
|
|
@@ -11292,7 +11293,7 @@ var PillSelectField = function PillSelectField(_ref) {
|
|
|
11292
11293
|
}, option.label, option.isRemovable && React__default["default"].createElement(RemoveButton, {
|
|
11293
11294
|
option: option
|
|
11294
11295
|
})));
|
|
11295
|
-
}), createOptionLabel && React__default["default"].createElement(CreatableOption, {
|
|
11296
|
+
}), createOptionLabel && !disabled && React__default["default"].createElement(CreatableOption, {
|
|
11296
11297
|
name: name,
|
|
11297
11298
|
testId: testId,
|
|
11298
11299
|
onCreate: onCreate,
|
|
@@ -11586,9 +11587,7 @@ var PasswordCriteria = function PasswordCriteria(_ref) {
|
|
|
11586
11587
|
}, met ? React__default["default"].createElement(IconCheck, {
|
|
11587
11588
|
size: "small",
|
|
11588
11589
|
color: "grey-200"
|
|
11589
|
-
}) : "\u25CF", React__default["default"].createElement(
|
|
11590
|
-
color: met ? 'grey-200' : 'grey-400'
|
|
11591
|
-
}, children)));
|
|
11590
|
+
}) : "\u25CF", React__default["default"].createElement("span", null, children)));
|
|
11592
11591
|
};
|
|
11593
11592
|
|
|
11594
11593
|
var usePasswordCriteria = function usePasswordCriteria(criterias) {
|
|
@@ -12910,12 +12909,13 @@ var styles$9 = {"currency-field__mask-display":"_ddacu"};
|
|
|
12910
12909
|
var CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
12911
12910
|
var CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
12912
12911
|
|
|
12913
|
-
var _excluded$4 = ["currencySymbol", "step"];
|
|
12912
|
+
var _excluded$4 = ["currencySymbol", "step", "suffix"];
|
|
12914
12913
|
var CurrencyFieldElement = function CurrencyFieldElement(_ref, forwardedRef) {
|
|
12915
12914
|
var _ref$currencySymbol = _ref.currencySymbol,
|
|
12916
12915
|
currencySymbol = _ref$currencySymbol === void 0 ? '$' : _ref$currencySymbol,
|
|
12917
12916
|
_ref$step = _ref.step,
|
|
12918
12917
|
step = _ref$step === void 0 ? 0.01 : _ref$step,
|
|
12918
|
+
suffix = _ref.suffix,
|
|
12919
12919
|
allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
12920
12920
|
var _useState = React.useState(CURRENCY_DISPLAY_DEFAULT_MARGIN),
|
|
12921
12921
|
displayPadding = _useState[0],
|
|
@@ -12945,7 +12945,8 @@ var CurrencyFieldElement = function CurrencyFieldElement(_ref, forwardedRef) {
|
|
|
12945
12945
|
}
|
|
12946
12946
|
}, [ref]);
|
|
12947
12947
|
return React__default["default"].createElement(Field, _extends({}, fieldProps), React__default["default"].createElement(React.Fragment, null, React__default["default"].createElement(AffixContainer, {
|
|
12948
|
-
prefix: currencySymbol
|
|
12948
|
+
prefix: currencySymbol,
|
|
12949
|
+
suffix: suffix
|
|
12949
12950
|
}, React__default["default"].createElement("input", _extends({}, inputProps, {
|
|
12950
12951
|
type: "number",
|
|
12951
12952
|
inputMode: "decimal",
|
|
@@ -14292,7 +14293,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14292
14293
|
var _classnames;
|
|
14293
14294
|
var children = _ref.children,
|
|
14294
14295
|
_ref$color = _ref.color,
|
|
14295
|
-
color = _ref$color === void 0 ? COLORS['
|
|
14296
|
+
color = _ref$color === void 0 ? COLORS['surface-on-color-subtle'] : _ref$color,
|
|
14296
14297
|
_ref$size = _ref.size,
|
|
14297
14298
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
14298
14299
|
urlProp = _ref.url,
|
|
@@ -14311,7 +14312,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14311
14312
|
}),
|
|
14312
14313
|
defaultProfilePictureColors = _useState2[0];
|
|
14313
14314
|
// If passing an url we are defaulting to a lighter grey while the image loads
|
|
14314
|
-
var backgroundColor = url ? COLORS['
|
|
14315
|
+
var backgroundColor = url ? COLORS['surface-container-highest'] : getColor(color);
|
|
14315
14316
|
return React__default["default"].createElement("div", {
|
|
14316
14317
|
className: classnames__default["default"](styles$6['avatar__container']),
|
|
14317
14318
|
ref: elementRef
|