@jobber/components 3.0.0-pre.7 → 3.0.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +48 -57
  2. package/dist/Autocomplete/index.js +7 -7
  3. package/dist/Banner/index.js +3 -3
  4. package/dist/Button/index.js +2 -2
  5. package/dist/{Button-5e396052.js → Button-cd30df0f.js} +2 -2
  6. package/dist/ButtonDismiss/index.js +3 -3
  7. package/dist/{ButtonDismiss-55397828.js → ButtonDismiss-a9590195.js} +1 -1
  8. package/dist/Card/index.js +3 -3
  9. package/dist/{Card-bd8773ff.js → Card-270d6549.js} +1 -1
  10. package/dist/Checkbox/index.js +3 -3
  11. package/dist/{Checkbox-e30b4912.js → Checkbox-5103d2b9.js} +2 -2
  12. package/dist/Chips/index.js +4 -4
  13. package/dist/ConfirmationModal/ConfirmationModal.d.ts +19 -3
  14. package/dist/ConfirmationModal/index.js +9 -9
  15. package/dist/{ConfirmationModal-b89132ef.js → ConfirmationModal-778e6512.js} +8 -8
  16. package/dist/DataDump/index.js +4 -4
  17. package/dist/DataTable/index.js +7 -7
  18. package/dist/DatePicker/index.js +3 -3
  19. package/dist/DatePicker-7c67e8d2.js +103 -0
  20. package/dist/DescriptionList/index.js +1 -1
  21. package/dist/Disclosure/index.js +2 -2
  22. package/dist/Drawer/index.js +4 -4
  23. package/dist/Emphasis/index.js +2 -2
  24. package/dist/{Emphasis-630ae96e.js → Emphasis-75a3f411.js} +1 -1
  25. package/dist/FeatureSwitch/index.js +7 -7
  26. package/dist/FormField/index.js +5 -5
  27. package/dist/{FormField-7c79474a.js → FormField-ba2e18af.js} +3 -3
  28. package/dist/FormatFile/index.js +10 -10
  29. package/dist/{FormatFile-8a2fc7d1.js → FormatFile-62edfcd4.js} +4 -4
  30. package/dist/Gallery/index.js +10 -10
  31. package/dist/Heading/index.js +2 -2
  32. package/dist/{Heading-40f688c8.js → Heading-a9a66964.js} +1 -1
  33. package/dist/InlineLabel/index.js +1 -1
  34. package/dist/InputAvatar/index.js +3 -3
  35. package/dist/InputDate/index.js +6 -6
  36. package/dist/InputEmail/index.js +5 -5
  37. package/dist/InputFile/index.js +3 -3
  38. package/dist/{InputFile-d6a79bba.js → InputFile-3ae4cf99.js} +2 -2
  39. package/dist/InputNumber/index.js +5 -5
  40. package/dist/InputPassword/index.js +5 -5
  41. package/dist/InputText/index.js +6 -6
  42. package/dist/{InputText-7b929b6f.js → InputText-96190716.js} +1 -1
  43. package/dist/InputTime/index.js +5 -5
  44. package/dist/InputValidation/index.js +3 -3
  45. package/dist/{InputValidation-b4392981.js → InputValidation-33ff2312.js} +1 -1
  46. package/dist/List/index.js +5 -5
  47. package/dist/Markdown/index.js +5 -5
  48. package/dist/{Markdown-8b8145f6.js → Markdown-b53e0308.js} +3 -3
  49. package/dist/Menu/index.js +3 -3
  50. package/dist/{Menu-4e26a969.js → Menu-13deda94.js} +2 -2
  51. package/dist/Modal/index.js +5 -5
  52. package/dist/{Modal-0734dd8a.js → Modal-eb97d4c3.js} +3 -3
  53. package/dist/MultiSelect/index.js +3 -3
  54. package/dist/{Option-f7b2dd11.js → Option-7e984afb.js} +1 -1
  55. package/dist/Page/index.js +7 -7
  56. package/dist/Popover/index.js +3 -3
  57. package/dist/RadioGroup/index.js +2 -2
  58. package/dist/Select/index.js +6 -6
  59. package/dist/StatusLabel/index.js +2 -2
  60. package/dist/Switch/index.js +2 -2
  61. package/dist/{Switch-f7078bab.js → Switch-f03b70fc.js} +2 -2
  62. package/dist/Tabs/index.js +1 -1
  63. package/dist/Text/index.js +2 -2
  64. package/dist/{Text-308e8137.js → Text-e012fb46.js} +1 -1
  65. package/dist/Toast/index.js +2 -2
  66. package/dist/Tooltip/index.js +3 -3
  67. package/dist/{Tooltip-117330e5.js → Tooltip-041feb00.js} +1 -1
  68. package/dist/Typography/index.js +1 -1
  69. package/dist/{Typography-66a17f39.js → Typography-fbe0ed6e.js} +1 -1
  70. package/package.json +6 -5
  71. package/rollup.config.js +1 -0
  72. package/dist/DatePicker-a7597183.js +0 -103
package/CHANGELOG.md CHANGED
@@ -8,39 +8,53 @@ menu: Changelog
8
8
  All notable changes to this project will be documented in this file.
9
9
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
10
10
 
11
- # [3.0.0-pre.7](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.6...@jobber/components@3.0.0-pre.7) (2023-01-25)
11
+ # [3.0.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.10...@jobber/components@3.0.0) (2023-02-07)
12
12
 
13
- **Note:** Version bump only for package @jobber/components
14
13
 
14
+ ### Features
15
15
 
16
+ * **components, design, build:** Atlantis typography feature branch ([#1021](https://github.com/GetJobber/atlantis/issues/1021)) ([15d5eba](https://github.com/GetJobber/atlantis/commit/15d5eba545096c122e238cec018abf0a00d04748)), closes [#976](https://github.com/GetJobber/atlantis/issues/976) [#978](https://github.com/GetJobber/atlantis/issues/978) [#985](https://github.com/GetJobber/atlantis/issues/985) [#950](https://github.com/GetJobber/atlantis/issues/950) [#953](https://github.com/GetJobber/atlantis/issues/953) [#960](https://github.com/GetJobber/atlantis/issues/960) [#963](https://github.com/GetJobber/atlantis/issues/963) [#890](https://github.com/GetJobber/atlantis/issues/890) [#964](https://github.com/GetJobber/atlantis/issues/964) [#954](https://github.com/GetJobber/atlantis/issues/954) [#968](https://github.com/GetJobber/atlantis/issues/968) [#959](https://github.com/GetJobber/atlantis/issues/959) [#972](https://github.com/GetJobber/atlantis/issues/972) [#973](https://github.com/GetJobber/atlantis/issues/973) [#975](https://github.com/GetJobber/atlantis/issues/975) [#974](https://github.com/GetJobber/atlantis/issues/974) [#979](https://github.com/GetJobber/atlantis/issues/979) [#971](https://github.com/GetJobber/atlantis/issues/971) [#983](https://github.com/GetJobber/atlantis/issues/983) [#986](https://github.com/GetJobber/atlantis/issues/986) [#952](https://github.com/GetJobber/atlantis/issues/952) [#988](https://github.com/GetJobber/atlantis/issues/988) [#990](https://github.com/GetJobber/atlantis/issues/990) [#993](https://github.com/GetJobber/atlantis/issues/993) [#989](https://github.com/GetJobber/atlantis/issues/989) [#992](https://github.com/GetJobber/atlantis/issues/992) [#995](https://github.com/GetJobber/atlantis/issues/995) [#994](https://github.com/GetJobber/atlantis/issues/994) [#996](https://github.com/GetJobber/atlantis/issues/996) [#991](https://github.com/GetJobber/atlantis/issues/991) [#1000](https://github.com/GetJobber/atlantis/issues/1000) [#998](https://github.com/GetJobber/atlantis/issues/998) [#1001](https://github.com/GetJobber/atlantis/issues/1001) [#1006](https://github.com/GetJobber/atlantis/issues/1006) [#1009](https://github.com/GetJobber/atlantis/issues/1009) [#1014](https://github.com/GetJobber/atlantis/issues/1014) [#1017](https://github.com/GetJobber/atlantis/issues/1017)
16
17
 
17
18
 
19
+ ### BREAKING CHANGES
18
20
 
19
- # [3.0.0-pre.6](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.5...@jobber/components@3.0.0-pre.6) (2023-01-25)
21
+ * **components, design, build:** Added Jobber Fonts support
20
22
 
21
- **Note:** Version bump only for package @jobber/components
23
+ * Remove file that was needed for major bump in design
22
24
 
25
+ * Revert "update button styles"
23
26
 
27
+ This reverts commit d5278133003f4f770af56d583ef104b5abc8b886.
24
28
 
29
+ * Remove unneeded logging
25
30
 
31
+ * Update install instructions for non-jobber developers
26
32
 
27
- # [3.0.0-pre.5](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.4...@jobber/components@3.0.0-pre.5) (2023-01-25)
33
+ * Changed how package works when being installed to better support non jobber devs.
28
34
 
29
- **Note:** Version bump only for package @jobber/components
35
+ * Use variables in docz instead of a string
30
36
 
37
+ * Remove change that caused failures for Jobber people
31
38
 
39
+ * Moved script location
32
40
 
41
+ * Maybe fix cloudflare builds. Hopefully
33
42
 
43
+ * Update README.md
34
44
 
35
- # [3.0.0-pre.4](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.3...@jobber/components@3.0.0-pre.4) (2023-01-25)
45
+ * Updated prerelease docs.
46
+ Verify fonts aren't bundled with pre-releases.
36
47
 
37
- **Note:** Version bump only for package @jobber/components
48
+ * rebuild cloudflare
38
49
 
50
+ Co-authored-by: Chris Murray <39704901+chris-at-jobber@users.noreply.github.com>
51
+ Co-authored-by: Michael Paradis <michael.p@getjobber.com>
39
52
 
40
53
 
41
54
 
42
55
 
43
- # [3.0.0-pre.3](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.2...@jobber/components@3.0.0-pre.3) (2023-01-25)
56
+
57
+ ## [2.94.10](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.9...@jobber/components@2.94.10) (2023-02-07)
44
58
 
45
59
  **Note:** Version bump only for package @jobber/components
46
60
 
@@ -48,113 +62,90 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
48
62
 
49
63
 
50
64
 
51
- # [3.0.0-pre.2](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.0...@jobber/components@3.0.0-pre.2) (2023-01-25)
65
+ ## [2.94.9](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.8...@jobber/components@2.94.9) (2023-02-03)
52
66
 
53
- **Note:** Version bump only for package @jobber/components
54
67
 
68
+ ### Bug Fixes
55
69
 
70
+ * **deps:** Update react date picker and adjust usage ([#1020](https://github.com/GetJobber/atlantis/issues/1020)) ([e6d5e86](https://github.com/GetJobber/atlantis/commit/e6d5e86507b7a6500d2c1d270c1982e9f4a6dc78))
56
71
 
57
72
 
58
73
 
59
- # [3.0.0-pre.1](https://github.com/GetJobber/atlantis/compare/@jobber/components@3.0.0-pre.0...@jobber/components@3.0.0-pre.1) (2023-01-24)
60
74
 
61
- **Note:** Version bump only for package @jobber/components
62
75
 
76
+ ## [2.94.8](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.7...@jobber/components@2.94.8) (2023-02-02)
63
77
 
64
78
 
79
+ ### Bug Fixes
65
80
 
81
+ * **components:** restrict react-datepicker version ([#1019](https://github.com/GetJobber/atlantis/issues/1019)) ([9c9a88a](https://github.com/GetJobber/atlantis/commit/9c9a88a1dfcc6ee6cc96a69aab598546886f37de))
66
82
 
67
- # [3.0.0-pre.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.90.0...@jobber/components@3.0.0-pre.0) (2023-01-24)
68
83
 
69
84
 
70
- ### Features
71
85
 
72
- * **components:** Update drawer, modal and card headings ([#991](https://github.com/GetJobber/atlantis/issues/991)) ([1d9ade2](https://github.com/GetJobber/atlantis/commit/1d9ade2ec2043c0dcd7b9415409e094fcd7d27cb))
73
- * **design:** BREAKING CHANGE: Implement new typefaces in Atlantis [JOB-46209] ([#952](https://github.com/GetJobber/atlantis/issues/952)) ([15f604c](https://github.com/GetJobber/atlantis/commit/15f604cc51ee6881a5ed9c1be01081c76cf5ce6e))
74
86
 
87
+ ## [2.94.7](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.6...@jobber/components@2.94.7) (2023-02-02)
75
88
 
76
- ### BREAKING CHANGES
89
+ **Note:** Version bump only for package @jobber/components
77
90
 
78
- * **design:** Added Jobber Fonts support
79
91
 
80
- * Remove file that was needed for major bump in design
81
92
 
82
- * Revert "update button styles"
83
93
 
84
- This reverts commit d5278133003f4f770af56d583ef104b5abc8b886.
85
94
 
86
- * Remove unneeded logging
95
+ ## [2.94.6](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.5...@jobber/components@2.94.6) (2023-01-31)
87
96
 
88
- * Update install instructions for non-jobber developers
97
+ **Note:** Version bump only for package @jobber/components
89
98
 
90
- * Changed how package works when being installed to better support non jobber devs.
91
99
 
92
- * Use variables in docz instead of a string
93
100
 
94
- * Remove change that caused failures for Jobber people
95
101
 
96
- * Moved script location
97
102
 
98
- * Maybe fix cloudflare builds. Hopefully
103
+ ## [2.94.5](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.4...@jobber/components@2.94.5) (2023-01-31)
99
104
 
100
- * Update README.md
105
+ **Note:** Version bump only for package @jobber/components
101
106
 
102
- * Updated prerelease docs.
103
- Verify fonts aren't bundled with pre-releases.
104
107
 
105
- * rebuild cloudflare
106
108
 
107
- Co-authored-by: Chris Murray <39704901+chris-at-jobber@users.noreply.github.com>
108
- Co-authored-by: Michael Paradis <michael.p@getjobber.com>
109
109
 
110
110
 
111
+ ## [2.94.4](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.3...@jobber/components@2.94.4) (2023-01-31)
111
112
 
113
+ **Note:** Version bump only for package @jobber/components
112
114
 
113
115
 
114
- # [3.0.0-alpha.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.90.0...@jobber/components@3.0.0-alpha.0) (2023-01-24)
115
116
 
116
117
 
117
- ### Features
118
118
 
119
- * **components:** Update drawer, modal and card headings ([#991](https://github.com/GetJobber/atlantis/issues/991)) ([1d9ade2](https://github.com/GetJobber/atlantis/commit/1d9ade2ec2043c0dcd7b9415409e094fcd7d27cb))
120
- * **design:** BREAKING CHANGE: Implement new typefaces in Atlantis [JOB-46209] ([#952](https://github.com/GetJobber/atlantis/issues/952)) ([15f604c](https://github.com/GetJobber/atlantis/commit/15f604cc51ee6881a5ed9c1be01081c76cf5ce6e))
119
+ ## [2.94.3](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.2...@jobber/components@2.94.3) (2023-01-31)
121
120
 
121
+ **Note:** Version bump only for package @jobber/components
122
122
 
123
- ### BREAKING CHANGES
124
123
 
125
- * **design:** Added Jobber Fonts support
126
124
 
127
- * Remove file that was needed for major bump in design
128
125
 
129
- * Revert "update button styles"
130
126
 
131
- This reverts commit d5278133003f4f770af56d583ef104b5abc8b886.
127
+ ## [2.94.2](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.1...@jobber/components@2.94.2) (2023-01-31)
132
128
 
133
- * Remove unneeded logging
129
+ **Note:** Version bump only for package @jobber/components
134
130
 
135
- * Update install instructions for non-jobber developers
136
131
 
137
- * Changed how package works when being installed to better support non jobber devs.
138
132
 
139
- * Use variables in docz instead of a string
140
133
 
141
- * Remove change that caused failures for Jobber people
142
134
 
143
- * Moved script location
135
+ ## [2.94.1](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.94.0...@jobber/components@2.94.1) (2023-01-31)
144
136
 
145
- * Maybe fix cloudflare builds. Hopefully
137
+ **Note:** Version bump only for package @jobber/components
146
138
 
147
- * Update README.md
148
139
 
149
- * Updated prerelease docs.
150
- Verify fonts aren't bundled with pre-releases.
151
140
 
152
- * rebuild cloudflare
153
141
 
154
- Co-authored-by: Chris Murray <39704901+chris-at-jobber@users.noreply.github.com>
155
- Co-authored-by: Michael Paradis <michael.p@getjobber.com>
156
142
 
143
+ # [2.94.0](https://github.com/GetJobber/atlantis/compare/@jobber/components@2.93.2...@jobber/components@2.94.0) (2023-01-25)
144
+
145
+
146
+ ### Features
157
147
 
148
+ * **components:** add modal size and child render support to confirmation modal ([#969](https://github.com/GetJobber/atlantis/issues/969)) ([75e8bc6](https://github.com/GetJobber/atlantis/commit/75e8bc6552b29a4a8c5ee4cb6ac947a567460835))
158
149
 
159
150
 
160
151
 
@@ -8,18 +8,18 @@ var debounce = require('lodash/debounce');
8
8
  var styleInject_es = require('../style-inject.es-dcee06b6.js');
9
9
  var classnames = require('classnames');
10
10
  var useEventListener = require('@use-it/event-listener');
11
- var Text = require('../Text-308e8137.js');
11
+ var Text = require('../Text-e012fb46.js');
12
12
  var Icon = require('../Icon-d5ad1a6d.js');
13
- var Heading = require('../Heading-40f688c8.js');
14
- var InputText = require('../InputText-7b929b6f.js');
15
- require('../Typography-66a17f39.js');
13
+ var Heading = require('../Heading-a9a66964.js');
14
+ var InputText = require('../InputText-96190716.js');
15
+ require('../Typography-fbe0ed6e.js');
16
16
  require('@jobber/design');
17
- require('../FormField-7c79474a.js');
17
+ require('../FormField-ba2e18af.js');
18
18
  require('uuid');
19
19
  require('react-hook-form');
20
- require('../Button-5e396052.js');
20
+ require('../Button-cd30df0f.js');
21
21
  require('react-router-dom');
22
- require('../InputValidation-b4392981.js');
22
+ require('../InputValidation-33ff2312.js');
23
23
  require('framer-motion');
24
24
  require('../Spinner-18d3dee6.js');
25
25
 
@@ -8,10 +8,10 @@ var classnames = require('classnames');
8
8
  var jobberHooks = require('@jobber/hooks');
9
9
  var styleInject_es = require('../style-inject.es-dcee06b6.js');
10
10
  var Icon = require('../Icon-d5ad1a6d.js');
11
- var Text = require('../Text-308e8137.js');
12
- var Button = require('../Button-5e396052.js');
11
+ var Text = require('../Text-e012fb46.js');
12
+ var Button = require('../Button-cd30df0f.js');
13
13
  require('@jobber/design');
14
- require('../Typography-66a17f39.js');
14
+ require('../Typography-fbe0ed6e.js');
15
15
  require('react-router-dom');
16
16
 
17
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Button = require('../Button-5e396052.js');
5
+ var Button = require('../Button-cd30df0f.js');
6
6
  require('../tslib.es6-5b50eb8e.js');
7
7
  require('react');
8
8
  require('classnames');
@@ -10,7 +10,7 @@ require('react-router-dom');
10
10
  require('../style-inject.es-dcee06b6.js');
11
11
  require('../Icon-d5ad1a6d.js');
12
12
  require('@jobber/design');
13
- require('../Typography-66a17f39.js');
13
+ require('../Typography-fbe0ed6e.js');
14
14
 
15
15
 
16
16
 
@@ -6,14 +6,14 @@ var classnames = require('classnames');
6
6
  var reactRouterDom = require('react-router-dom');
7
7
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
8
8
  var Icon = require('./Icon-d5ad1a6d.js');
9
- var Typography = require('./Typography-66a17f39.js');
9
+ var Typography = require('./Typography-fbe0ed6e.js');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
15
15
 
16
- var css = ":root {\n --button--color-variation: var(--color-interactive);\n --button--color-variation--hover: var(--color-interactive--hover);\n --button--color-surface: var(--color-surface);\n --button--color-surface--hover: var(--color-surface--background);\n --button--color-primaryLabel: var(--color-white);\n\n --button--duration-loading: 2s;\n}\n\n.mvrsWRM8T3kCECXcDS2gd {\n display: -ms-inline-flexbox;\n display: inline-flex;\n min-height: calc(var(--base-unit) * 2.25);\n box-sizing: border-box;\n margin: 0;\n border: var(--border-base) solid var(--color-interactive);\n border: var(--border-base) solid var(--color-interactive);\n border: var(--border-base) solid var(--button--color-variation);\n border-radius: var(--radius-base);\n color: var(--color-interactive);\n color: var(--color-interactive);\n color: var(--button--color-variation);\n -webkit-font-smoothing: antialiased;\n letter-spacing: var(--typography--letterSpacing-loose);\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n cursor: pointer;\n transition: all var(--timing-base);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n fill: var(--color-interactive);\n fill: var(--color-interactive);\n fill: var(--button--color-variation);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.mvrsWRM8T3kCECXcDS2gd * {\n color: inherit;\n fill: inherit !important;\n /* required to over-ride very specific fill from <Icon> */\n}\n\n.mvrsWRM8T3kCECXcDS2gd:hover,\na.mvrsWRM8T3kCECXcDS2gd:hover,\n.mvrsWRM8T3kCECXcDS2gd:focus,\na.mvrsWRM8T3kCECXcDS2gd:focus,\n.mvrsWRM8T3kCECXcDS2gd:active,\na.mvrsWRM8T3kCECXcDS2gd:active {\n border-color: var(--color-interactive--hover);\n border-color: var(--color-interactive--hover);\n border-color: var(--button--color-variation--hover);\n color: var(--color-interactive--hover);\n color: var(--color-interactive--hover);\n color: var(--button--color-variation--hover);\n fill: var(--color-interactive--hover);\n fill: var(--color-interactive--hover);\n fill: var(--button--color-variation--hover);\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n}\n\n.mvrsWRM8T3kCECXcDS2gd:focus,\na.mvrsWRM8T3kCECXcDS2gd:focus,\n.mvrsWRM8T3kCECXcDS2gd:active,\na.mvrsWRM8T3kCECXcDS2gd:active {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n/* Variation */\n\n._32HTPrDFyNRObzZRUxmhK6 {\n --button--color-variation: var(--color-interactive);\n --button--color-variation--hover: var(--color-interactive--hover);\n}\n\n._2skm9hoZI_lSBKFKHaBFHp {\n --button--color-variation: var(--color-informative);\n --button--color-variation--hover: var(--color-informative--onSurface);\n}\n\n._1XNe0NyiiX5gO7kNceanXE {\n --button--color-variation: var(--color-destructive);\n --button--color-variation--hover: var(--color-destructive--hover);\n}\n\n/* Subtle is special because, by default, it's styled as a secondary button */\n\n._15tUs2IB4Sic31aZYG7h3E {\n --button--color-variation: var(--color-interactive--subtle);\n --button--color-variation--hover: var(--color-interactive--subtle--hover);\n}\n\n/* Type */\n\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z),\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):hover,\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):focus {\n color: var(--color-white);\n color: var(--color-white);\n color: var(--button--color-primaryLabel);\n background-color: var(--color-interactive);\n background-color: var(--color-interactive);\n background-color: var(--button--color-variation);\n fill: var(--color-white);\n fill: var(--color-white);\n fill: var(--button--color-primaryLabel);\n}\n\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):hover,\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):focus {\n background-color: var(--color-interactive--hover);\n background-color: var(--color-interactive--hover);\n background-color: var(--button--color-variation--hover);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3 {\n color: var(--color-interactive);\n color: var(--color-interactive);\n color: var(--button--color-variation);\n fill: var(--color-interactive);\n fill: var(--color-interactive);\n fill: var(--button--color-variation);\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n}\n\n._3QATgEdYmR2g9Hx6X6wCF-,\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3 {\n border-color: var(--color-interactive);\n border-color: var(--color-interactive);\n border-color: var(--button--color-variation);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3:hover,\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3:focus {\n color: var(--color-interactive--hover);\n color: var(--color-interactive--hover);\n color: var(--button--color-variation--hover);\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n fill: var(--color-interactive--hover);\n fill: var(--color-interactive--hover);\n fill: var(--button--color-variation--hover);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF- {\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n}\n\n._1IACxHVlJ8fUbaQh9Wo5wR,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF- {\n border-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus {\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n}\n\n._1IACxHVlJ8fUbaQh9Wo5wR:hover,\n._1IACxHVlJ8fUbaQh9Wo5wR:focus,\na._1IACxHVlJ8fUbaQh9Wo5wR:hover,\na._1IACxHVlJ8fUbaQh9Wo5wR:focus,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus,\na._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\na._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus {\n border-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR {\n border-color: transparent;\n background-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:hover,\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:focus,\na._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:hover,\na._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:focus {\n border-color: transparent;\n color: var(--color-interactive--subtle--hover);\n fill: var(--color-interactive--subtle--hover);\n}\n\n/* Disabled */\n\n.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z,\na.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z,\n.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z:hover,\na.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z:hover {\n border-color: var(--color-disabled--secondary);\n color: var(--color-disabled);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-color: var(--color-disabled--secondary);\n fill: var(--color-disabled);\n pointer-events: none;\n cursor: not-allowed;\n}\n\n/* Sizes */\n\n._2bWEvNhV0hrUXGMEL-47ZW {\n min-height: calc(var(--base-unit) * 1.5);\n padding: 0 var(--space-small);\n}\n\n._1RWacHIaSoZ24Qq5QuiwLl {\n min-height: calc(var(--base-unit) * 2.25);\n padding: 0 calc(var(--space-base) - 4px);\n}\n\n._2lIWqvRcZzkk5iJxGXwXOZ {\n min-height: calc(var(--base-unit) * 3);\n padding: 0 var(--space-base);\n}\n\n/* Icon */\n\n.s4L5ovtQ1xiOYCxjZtZzA {\n width: calc(var(--base-unit) * 2.25);\n padding: 0;\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._2bWEvNhV0hrUXGMEL-47ZW {\n width: calc(var(--space-small) * 3);\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._1RWacHIaSoZ24Qq5QuiwLl {\n width: calc(var(--space-base) * 2.25);\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._2lIWqvRcZzkk5iJxGXwXOZ {\n width: calc(var(--space-large) * 2);\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR {\n width: auto;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(rtl) {\n text-align: right;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(rtl) {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: start;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:first-child {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-right: var(--space-small);\n}\n\n.ynAOdrWxU2gjfmktgPvCV > *:first-child {\n margin-left: var(--space-small);\n margin-right: 0;\n -ms-flex-order: 1;\n order: 1;\n}\n\n.azjQzmR6DJOHc9VhR8P_8 {\n width: 100%;\n}\n\n._3tkzLKKpGYFY0HgS8OkM_e {\n background-image: linear-gradient(\n 135deg,\n rgba(0, 0, 0, 0.1) 0%,\n rgba(0, 0, 0, 0.1) 25%,\n transparent 25%,\n transparent 50%,\n rgba(0, 0, 0, 0.1) 50%,\n rgba(0, 0, 0, 0.1) 75%,\n transparent 75%,\n transparent 100%\n );\n background-size: var(--space-larger) var(--space-larger);\n pointer-events: none;\n cursor: not-allowed;\n -webkit-animation-duration: 2s;\n -webkit-animation-duration: 2s;\n -webkit-animation-duration: var(--button--duration-loading);\n animation-duration: 2s;\n animation-duration: 2s;\n animation-duration: var(--button--duration-loading);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1g5cSkv2FhbaOp_SpZQve_;\n animation-name: _1g5cSkv2FhbaOp_SpZQve_;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n\n._3ReFsKtTKUcgG7PduYChd3._3tkzLKKpGYFY0HgS8OkM_e:not(._15tUs2IB4Sic31aZYG7h3E) {\n background-image: linear-gradient(\n 135deg,\n rgba(255, 255, 255, 0.25) 0%,\n rgba(255, 255, 255, 0.25) 25%,\n transparent 25%,\n transparent 50%,\n rgba(255, 255, 255, 0.25) 50%,\n rgba(255, 255, 255, 0.25) 75%,\n transparent 75%,\n transparent 100%\n );\n}\n\n@-webkit-keyframes _1g5cSkv2FhbaOp_SpZQve_ {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n\n@keyframes _1g5cSkv2FhbaOp_SpZQve_ {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n";
16
+ var css = ":root {\n --button--color-variation: var(--color-interactive);\n --button--color-variation--hover: var(--color-interactive--hover);\n --button--color-surface: var(--color-surface);\n --button--color-surface--hover: var(--color-surface--background);\n --button--color-primaryLabel: var(--color-white);\n\n --button--duration-loading: 2s;\n}\n\n.mvrsWRM8T3kCECXcDS2gd {\n display: -ms-inline-flexbox;\n display: inline-flex;\n min-height: calc(var(--base-unit) * 2.25);\n box-sizing: border-box;\n margin: 0;\n border: var(--border-base) solid var(--color-interactive);\n border: var(--border-base) solid var(--color-interactive);\n border: var(--border-base) solid var(--button--color-variation);\n border-radius: var(--radius-base);\n color: var(--color-interactive);\n color: var(--color-interactive);\n color: var(--button--color-variation);\n -webkit-font-smoothing: antialiased;\n letter-spacing: var(--typography--letterSpacing-loose);\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n cursor: pointer;\n transition: all var(--timing-base);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n fill: var(--color-interactive);\n fill: var(--color-interactive);\n fill: var(--button--color-variation);\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.mvrsWRM8T3kCECXcDS2gd * {\n color: inherit;\n fill: inherit !important;\n /* required to over-ride very specific fill from <Icon> */\n}\n\n.mvrsWRM8T3kCECXcDS2gd:hover,\na.mvrsWRM8T3kCECXcDS2gd:hover,\n.mvrsWRM8T3kCECXcDS2gd:focus,\na.mvrsWRM8T3kCECXcDS2gd:focus,\n.mvrsWRM8T3kCECXcDS2gd:active,\na.mvrsWRM8T3kCECXcDS2gd:active {\n border-color: var(--color-interactive--hover);\n border-color: var(--color-interactive--hover);\n border-color: var(--button--color-variation--hover);\n color: var(--color-interactive--hover);\n color: var(--color-interactive--hover);\n color: var(--button--color-variation--hover);\n fill: var(--color-interactive--hover);\n fill: var(--color-interactive--hover);\n fill: var(--button--color-variation--hover);\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n}\n\n.mvrsWRM8T3kCECXcDS2gd:focus,\na.mvrsWRM8T3kCECXcDS2gd:focus,\n.mvrsWRM8T3kCECXcDS2gd:active,\na.mvrsWRM8T3kCECXcDS2gd:active {\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n/* Variation */\n\n._32HTPrDFyNRObzZRUxmhK6 {\n --button--color-variation: var(--color-interactive);\n --button--color-variation--hover: var(--color-interactive--hover);\n}\n\n._2skm9hoZI_lSBKFKHaBFHp {\n --button--color-variation: var(--color-informative);\n --button--color-variation--hover: var(--color-informative--onSurface);\n}\n\n._1XNe0NyiiX5gO7kNceanXE {\n --button--color-variation: var(--color-destructive);\n --button--color-variation--hover: var(--color-destructive--hover);\n}\n\n/* Subtle is special because, by default, it's styled as a secondary button */\n\n._15tUs2IB4Sic31aZYG7h3E {\n --button--color-variation: var(--color-interactive--subtle);\n --button--color-variation--hover: var(--color-interactive--subtle--hover);\n}\n\n/* Type */\n\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z),\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):hover,\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):focus {\n color: var(--color-white);\n color: var(--color-white);\n color: var(--button--color-primaryLabel);\n background-color: var(--color-interactive);\n background-color: var(--color-interactive);\n background-color: var(--button--color-variation);\n fill: var(--color-white);\n fill: var(--color-white);\n fill: var(--button--color-primaryLabel);\n}\n\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):hover,\n._3ReFsKtTKUcgG7PduYChd3:not(._15tUs2IB4Sic31aZYG7h3E):not(._2A9nPQukZwPTOhSExvR0-Z):focus {\n background-color: var(--color-interactive--hover);\n background-color: var(--color-interactive--hover);\n background-color: var(--button--color-variation--hover);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3 {\n color: var(--color-interactive);\n color: var(--color-interactive);\n color: var(--button--color-variation);\n fill: var(--color-interactive);\n fill: var(--color-interactive);\n fill: var(--button--color-variation);\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n}\n\n._3QATgEdYmR2g9Hx6X6wCF-,\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3 {\n border-color: var(--color-interactive);\n border-color: var(--color-interactive);\n border-color: var(--button--color-variation);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3:hover,\n._15tUs2IB4Sic31aZYG7h3E._3ReFsKtTKUcgG7PduYChd3:focus {\n color: var(--color-interactive--hover);\n color: var(--color-interactive--hover);\n color: var(--button--color-variation--hover);\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n fill: var(--color-interactive--hover);\n fill: var(--color-interactive--hover);\n fill: var(--button--color-variation--hover);\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF- {\n background-color: var(--color-surface);\n background-color: var(--color-surface);\n background-color: var(--button--color-surface);\n}\n\n._1IACxHVlJ8fUbaQh9Wo5wR,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF- {\n border-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus {\n background-color: var(--color-surface--background);\n background-color: var(--color-surface--background);\n background-color: var(--button--color-surface--hover);\n}\n\n._1IACxHVlJ8fUbaQh9Wo5wR:hover,\n._1IACxHVlJ8fUbaQh9Wo5wR:focus,\na._1IACxHVlJ8fUbaQh9Wo5wR:hover,\na._1IACxHVlJ8fUbaQh9Wo5wR:focus,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\n._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus,\na._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:hover,\na._15tUs2IB4Sic31aZYG7h3E._3QATgEdYmR2g9Hx6X6wCF-:focus {\n border-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR {\n border-color: transparent;\n background-color: transparent;\n}\n\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:hover,\n._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:focus,\na._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:hover,\na._15tUs2IB4Sic31aZYG7h3E._1IACxHVlJ8fUbaQh9Wo5wR:focus {\n border-color: transparent;\n color: var(--color-interactive--subtle--hover);\n fill: var(--color-interactive--subtle--hover);\n}\n\n/* Disabled */\n\n.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z,\na.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z,\n.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z:hover,\na.mvrsWRM8T3kCECXcDS2gd._2A9nPQukZwPTOhSExvR0-Z:hover {\n border-color: var(--color-disabled--secondary);\n color: var(--color-disabled);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-color: var(--color-disabled--secondary);\n fill: var(--color-disabled);\n pointer-events: none;\n cursor: not-allowed;\n}\n\n/* Sizes */\n\n._2bWEvNhV0hrUXGMEL-47ZW {\n min-height: calc(var(--base-unit) * 1.5);\n padding: 0 var(--space-small);\n letter-spacing: 0;\n}\n\n._1RWacHIaSoZ24Qq5QuiwLl {\n min-height: calc(var(--base-unit) * 2.25);\n padding: 0 calc(var(--space-base) - 4px);\n}\n\n._2lIWqvRcZzkk5iJxGXwXOZ {\n min-height: calc(var(--base-unit) * 3);\n padding: 0 var(--space-base);\n}\n\n/* Icon */\n\n.s4L5ovtQ1xiOYCxjZtZzA {\n width: calc(var(--base-unit) * 2.25);\n padding: 0;\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._2bWEvNhV0hrUXGMEL-47ZW {\n width: calc(var(--space-small) * 3);\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._1RWacHIaSoZ24Qq5QuiwLl {\n width: calc(var(--space-base) * 2.25);\n}\n\n.s4L5ovtQ1xiOYCxjZtZzA._2lIWqvRcZzkk5iJxGXwXOZ {\n width: calc(var(--space-large) * 2);\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR {\n width: auto;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(rtl) {\n text-align: right;\n}\n\n[dir=\"ltr\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: left;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(ltr) {\n text-align: left;\n}\n\n[dir=\"rtl\"] ._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:dir(rtl) {\n text-align: right;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > * {\n text-align: start;\n}\n\n._2QzHdqV8dZvAzrDhFuq9VR > *:first-child {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-right: var(--space-small);\n}\n\n.ynAOdrWxU2gjfmktgPvCV > *:first-child {\n margin-left: var(--space-small);\n margin-right: 0;\n -ms-flex-order: 1;\n order: 1;\n}\n\n.azjQzmR6DJOHc9VhR8P_8 {\n width: 100%;\n}\n\n._3tkzLKKpGYFY0HgS8OkM_e {\n background-image: linear-gradient(\n 135deg,\n rgba(0, 0, 0, 0.1) 0%,\n rgba(0, 0, 0, 0.1) 25%,\n transparent 25%,\n transparent 50%,\n rgba(0, 0, 0, 0.1) 50%,\n rgba(0, 0, 0, 0.1) 75%,\n transparent 75%,\n transparent 100%\n );\n background-size: var(--space-larger) var(--space-larger);\n pointer-events: none;\n cursor: not-allowed;\n -webkit-animation-duration: 2s;\n -webkit-animation-duration: 2s;\n -webkit-animation-duration: var(--button--duration-loading);\n animation-duration: 2s;\n animation-duration: 2s;\n animation-duration: var(--button--duration-loading);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1g5cSkv2FhbaOp_SpZQve_;\n animation-name: _1g5cSkv2FhbaOp_SpZQve_;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n\n._3ReFsKtTKUcgG7PduYChd3._3tkzLKKpGYFY0HgS8OkM_e:not(._15tUs2IB4Sic31aZYG7h3E) {\n background-image: linear-gradient(\n 135deg,\n rgba(255, 255, 255, 0.25) 0%,\n rgba(255, 255, 255, 0.25) 25%,\n transparent 25%,\n transparent 50%,\n rgba(255, 255, 255, 0.25) 50%,\n rgba(255, 255, 255, 0.25) 75%,\n transparent 75%,\n transparent 100%\n );\n}\n\n@-webkit-keyframes _1g5cSkv2FhbaOp_SpZQve_ {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n\n@keyframes _1g5cSkv2FhbaOp_SpZQve_ {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n";
17
17
  var styles = {"button":"mvrsWRM8T3kCECXcDS2gd","work":"_32HTPrDFyNRObzZRUxmhK6","learning":"_2skm9hoZI_lSBKFKHaBFHp","destructive":"_1XNe0NyiiX5gO7kNceanXE","subtle":"_15tUs2IB4Sic31aZYG7h3E","primary":"_3ReFsKtTKUcgG7PduYChd3","disabled":"_2A9nPQukZwPTOhSExvR0-Z","secondary":"_3QATgEdYmR2g9Hx6X6wCF-","tertiary":"_1IACxHVlJ8fUbaQh9Wo5wR","small":"_2bWEvNhV0hrUXGMEL-47ZW","base":"_1RWacHIaSoZ24Qq5QuiwLl","large":"_2lIWqvRcZzkk5iJxGXwXOZ","onlyIcon":"s4L5ovtQ1xiOYCxjZtZzA","hasIconAndLabel":"_2QzHdqV8dZvAzrDhFuq9VR","iconOnRight":"ynAOdrWxU2gjfmktgPvCV","fullWidth":"azjQzmR6DJOHc9VhR8P_8","loading":"_3tkzLKKpGYFY0HgS8OkM_e","animateStripes":"_1g5cSkv2FhbaOp_SpZQve_"};
18
18
  styleInject_es.styleInject(css);
19
19
 
@@ -2,16 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ButtonDismiss = require('../ButtonDismiss-55397828.js');
5
+ var ButtonDismiss = require('../ButtonDismiss-a9590195.js');
6
6
  require('react');
7
- require('../Button-5e396052.js');
7
+ require('../Button-cd30df0f.js');
8
8
  require('../tslib.es6-5b50eb8e.js');
9
9
  require('classnames');
10
10
  require('react-router-dom');
11
11
  require('../style-inject.es-dcee06b6.js');
12
12
  require('../Icon-d5ad1a6d.js');
13
13
  require('@jobber/design');
14
- require('../Typography-66a17f39.js');
14
+ require('../Typography-fbe0ed6e.js');
15
15
 
16
16
 
17
17
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var Button = require('./Button-5e396052.js');
4
+ var Button = require('./Button-cd30df0f.js');
5
5
 
6
6
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
7
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Card = require('../Card-bd8773ff.js');
5
+ var Card = require('../Card-270d6549.js');
6
6
  require('../tslib.es6-5b50eb8e.js');
7
7
  require('react');
8
8
  require('classnames');
9
9
  require('../style-inject.es-dcee06b6.js');
10
- require('../Heading-40f688c8.js');
11
- require('../Typography-66a17f39.js');
10
+ require('../Heading-a9a66964.js');
11
+ require('../Typography-fbe0ed6e.js');
12
12
 
13
13
 
14
14
 
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
6
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
7
- var Heading = require('./Heading-40f688c8.js');
7
+ var Heading = require('./Heading-a9a66964.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Checkbox = require('../Checkbox-e30b4912.js');
5
+ var Checkbox = require('../Checkbox-5103d2b9.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('../style-inject.es-dcee06b6.js');
9
9
  require('../Icon-d5ad1a6d.js');
10
10
  require('@jobber/design');
11
- require('../Text-308e8137.js');
12
- require('../Typography-66a17f39.js');
11
+ require('../Text-e012fb46.js');
12
+ require('../Typography-fbe0ed6e.js');
13
13
  require('../tslib.es6-5b50eb8e.js');
14
14
 
15
15
 
@@ -4,14 +4,14 @@ var React = require('react');
4
4
  var classnames = require('classnames');
5
5
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
6
6
  var Icon = require('./Icon-d5ad1a6d.js');
7
- var Text = require('./Text-308e8137.js');
7
+ var Text = require('./Text-e012fb46.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
12
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
13
13
 
14
- var css = "._2y-hp0B8BHvB6C7hj0uluY {\n display: inline-block;\n}\n\n._36KUbFCcSPE7xHQsQ4PC2D {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI {\n cursor: not-allowed;\n}\n\n._3MnEDfs7rk_9yjl2XNHSuc {\n position: relative;\n}\n\n.MEL3ANaAvLYMAoMbYSmCb {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n._1T-pYuzX7l9EyzvIri_U22 {\n display: -ms-flexbox;\n display: flex;\n width: var(--space-base);\n height: var(--space-base);\n box-sizing: border-box;\n border: var(--border-thick) solid var(--color-interactive);\n border-radius: var(--radius-base);\n background-color: var(--color-surface);\n transition: all 200ms;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-disabled--secondary);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI p {\n color: var(--color-disabled);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI ._1T-pYuzX7l9EyzvIri_U22 > * {\n opacity: 0;\n}\n\n.MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22,\n.MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.MEL3ANaAvLYMAoMbYSmCb:focus + ._1T-pYuzX7l9EyzvIri_U22 {\n box-shadow: var(--shadow-focus);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22,\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-disabled--secondary);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22 > *,\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 > * {\n opacity: 1;\n}\n\n.C10gHWu17R4Nw-PFWmtvT {\n margin: 0 var(--space-small);\n}\n\n._1wsib2K8k6XRKTFbeIeq4n {\n margin-bottom: var(--space-small);\n padding-left: var(--space-large);\n}\n";
14
+ var css = "._2y-hp0B8BHvB6C7hj0uluY {\n display: inline-block;\n}\n\n._36KUbFCcSPE7xHQsQ4PC2D {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI {\n cursor: not-allowed;\n}\n\n._3MnEDfs7rk_9yjl2XNHSuc {\n position: relative;\n}\n\n.MEL3ANaAvLYMAoMbYSmCb {\n /* Hide checkbox on UI but not screen readers and still allow focus state */\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n white-space: nowrap;\n}\n\n._1T-pYuzX7l9EyzvIri_U22 {\n display: -ms-flexbox;\n display: flex;\n width: var(--space-base);\n height: var(--space-base);\n box-sizing: border-box;\n border: var(--border-thick) solid var(--color-interactive);\n border-radius: var(--radius-base);\n background-color: var(--color-surface);\n transition: all 200ms;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-disabled--secondary);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI p {\n color: var(--color-disabled);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI ._1T-pYuzX7l9EyzvIri_U22 > * {\n opacity: 0;\n}\n\n.MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22,\n.MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-interactive);\n background-color: var(--color-interactive);\n}\n\n.MEL3ANaAvLYMAoMbYSmCb:focus + ._1T-pYuzX7l9EyzvIri_U22 {\n box-shadow: var(--shadow-focus);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22,\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 {\n border-color: var(--color-disabled--secondary);\n background-color: var(--color-disabled--secondary);\n}\n\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb._3TAyEYP42fVPKOg97qm5Ue + ._1T-pYuzX7l9EyzvIri_U22 > *,\n.Kvt2p9_Z8Ln_jkPQEYuMI .MEL3ANaAvLYMAoMbYSmCb:checked + ._1T-pYuzX7l9EyzvIri_U22 > * {\n opacity: 1;\n}\n\n.C10gHWu17R4Nw-PFWmtvT {\n margin: 0 var(--space-small);\n}\n\n._1wsib2K8k6XRKTFbeIeq4n {\n margin-bottom: var(--space-small);\n padding-left: var(--space-large);\n}\n";
15
15
  var styles = {"checkbox":"_2y-hp0B8BHvB6C7hj0uluY","wrapper":"_36KUbFCcSPE7xHQsQ4PC2D","disabled":"Kvt2p9_Z8Ln_jkPQEYuMI","checkHolder":"_3MnEDfs7rk_9yjl2XNHSuc","input":"MEL3ANaAvLYMAoMbYSmCb","checkBox":"_1T-pYuzX7l9EyzvIri_U22","indeterminate":"_3TAyEYP42fVPKOg97qm5Ue","label":"C10gHWu17R4Nw-PFWmtvT","description":"_1wsib2K8k6XRKTFbeIeq4n"};
16
16
  styleInject_es.styleInject(css);
17
17
 
@@ -9,13 +9,13 @@ var styleInject_es = require('../style-inject.es-dcee06b6.js');
9
9
  var jobberHooks = require('@jobber/hooks');
10
10
  var Icon = require('../Icon-d5ad1a6d.js');
11
11
  var Avatar = require('../Avatar-cfd04e86.js');
12
- var Typography = require('../Typography-66a17f39.js');
13
- var Tooltip = require('../Tooltip-117330e5.js');
12
+ var Typography = require('../Typography-fbe0ed6e.js');
13
+ var Tooltip = require('../Tooltip-041feb00.js');
14
14
  var uuid = require('uuid');
15
15
  var lodash = require('lodash');
16
16
  var reactPopper = require('react-popper');
17
- var Text = require('../Text-308e8137.js');
18
- var Button = require('../Button-5e396052.js');
17
+ var Text = require('../Text-e012fb46.js');
18
+ var Button = require('../Button-cd30df0f.js');
19
19
  var Spinner = require('../Spinner-18d3dee6.js');
20
20
  require('@jobber/design');
21
21
  require('color');
@@ -1,4 +1,4 @@
1
- import React, { Ref } from "react";
1
+ import React, { ReactNode, Ref } from "react";
2
2
  interface DisplayAction {
3
3
  type: "display";
4
4
  title?: string;
@@ -18,6 +18,7 @@ interface BaseConfirmationModalProps {
18
18
  readonly title?: string;
19
19
  /**
20
20
  * Text or rich text content for the body of the modal.
21
+ * Not displayed if **children** prop is passed.
21
22
  */
22
23
  readonly message?: string;
23
24
  /**
@@ -36,6 +37,14 @@ interface BaseConfirmationModalProps {
36
37
  * Type (Work or destructive) for confirm button.
37
38
  */
38
39
  readonly variation?: "work" | "destructive";
40
+ /**
41
+ * Size of the modal (small, large),
42
+ */
43
+ readonly size?: "small" | "large";
44
+ /**
45
+ * Child component. Not displayed if **message** prop is passed.
46
+ */
47
+ readonly children?: ReactNode;
39
48
  /**
40
49
  * Callback for when the confirm button is pressed.
41
50
  */
@@ -50,7 +59,6 @@ interface BaseConfirmationModalProps {
50
59
  onRequestClose?(): void;
51
60
  }
52
61
  interface SimpleConfirmationModalProps extends BaseConfirmationModalProps {
53
- readonly message: string;
54
62
  readonly open: boolean;
55
63
  readonly confirmLabel: string;
56
64
  }
@@ -58,5 +66,13 @@ interface ComplexConfirmationModalProps extends BaseConfirmationModalProps {
58
66
  readonly ref: Ref<ConfirmationModalRef>;
59
67
  readonly open?: undefined;
60
68
  }
61
- export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & React.RefAttributes<ConfirmationModalRef>)>;
69
+ interface ChildrenMessage extends BaseConfirmationModalProps {
70
+ message?: never;
71
+ children: ReactNode;
72
+ }
73
+ interface StringMessage extends BaseConfirmationModalProps {
74
+ message: string;
75
+ children?: never;
76
+ }
77
+ export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (SimpleConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>)>;
62
78
  export {};
@@ -2,27 +2,27 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ConfirmationModal = require('../ConfirmationModal-b89132ef.js');
5
+ var ConfirmationModal = require('../ConfirmationModal-778e6512.js');
6
6
  require('../tslib.es6-5b50eb8e.js');
7
7
  require('react');
8
8
  require('@jobber/hooks');
9
- require('../Modal-0734dd8a.js');
9
+ require('../Modal-eb97d4c3.js');
10
10
  require('react-dom');
11
11
  require('classnames');
12
12
  require('framer-motion');
13
13
  require('../style-inject.es-dcee06b6.js');
14
- require('../Heading-40f688c8.js');
15
- require('../Typography-66a17f39.js');
16
- require('../Button-5e396052.js');
14
+ require('../Heading-a9a66964.js');
15
+ require('../Typography-fbe0ed6e.js');
16
+ require('../Button-cd30df0f.js');
17
17
  require('react-router-dom');
18
18
  require('../Icon-d5ad1a6d.js');
19
19
  require('@jobber/design');
20
- require('../ButtonDismiss-55397828.js');
20
+ require('../ButtonDismiss-a9590195.js');
21
21
  require('../Content-18de5fbb.js');
22
- require('../Markdown-8b8145f6.js');
22
+ require('../Markdown-b53e0308.js');
23
23
  require('react-markdown');
24
- require('../Text-308e8137.js');
25
- require('../Emphasis-630ae96e.js');
24
+ require('../Text-e012fb46.js');
25
+ require('../Emphasis-75a3f411.js');
26
26
 
27
27
 
28
28
 
@@ -3,9 +3,9 @@
3
3
  var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
4
4
  var React = require('react');
5
5
  var jobberHooks = require('@jobber/hooks');
6
- var Modal = require('./Modal-0734dd8a.js');
6
+ var Modal = require('./Modal-eb97d4c3.js');
7
7
  var Content = require('./Content-18de5fbb.js');
8
- var Markdown = require('./Markdown-8b8145f6.js');
8
+ var Markdown = require('./Markdown-b53e0308.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
@@ -28,8 +28,8 @@ function confirmationModalReducer(state, action) {
28
28
  }
29
29
  }
30
30
  var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a, ref) {
31
- var title = _a.title, message = _a.message, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? "Confirm" : _c, _d = _a.cancelLabel, cancelLabel = _d === void 0 ? "Cancel" : _d, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onRequestClose = _a.onRequestClose, _e = _a.variation, variation = _e === void 0 ? "work" : _e;
32
- var _f = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
31
+ var title = _a.title, message = _a.message, _b = _a.open, open = _b === void 0 ? false : _b, _c = _a.confirmLabel, confirmLabel = _c === void 0 ? "Confirm" : _c, _d = _a.cancelLabel, cancelLabel = _d === void 0 ? "Cancel" : _d, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onRequestClose = _a.onRequestClose, _e = _a.variation, variation = _e === void 0 ? "work" : _e, _f = _a.size, size = _f === void 0 ? "small" : _f, children = _a.children;
32
+ var _g = tslib_es6.__read(React.useReducer(confirmationModalReducer, {
33
33
  title: title,
34
34
  message: message,
35
35
  open: false,
@@ -37,7 +37,7 @@ var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a,
37
37
  cancelLabel: cancelLabel,
38
38
  onConfirm: onConfirm,
39
39
  onCancel: onCancel,
40
- }), 2), state = _f[0], dispatch = _f[1];
40
+ }), 2), state = _g[0], dispatch = _g[1];
41
41
  // Expose a `show` method through this component's ref.
42
42
  React.useImperativeHandle(ref, function () { return ({
43
43
  show: function (_a) {
@@ -63,15 +63,15 @@ var ConfirmationModal = React.forwardRef(function ConfirmationModalInternal(_a,
63
63
  });
64
64
  }, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
65
65
  jobberHooks.useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
66
- return (React__default["default"].createElement(Modal.Modal, { title: state.title, open: open || state.open, size: "small", dismissible: false, primaryAction: {
66
+ return (React__default["default"].createElement(Modal.Modal, { title: state.title, open: open || state.open, size: size, dismissible: false, primaryAction: {
67
67
  label: state.confirmLabel,
68
68
  onClick: handleAction("confirm"),
69
69
  variation: variation === "destructive" ? "destructive" : "work",
70
70
  }, secondaryAction: {
71
71
  label: state.cancelLabel,
72
72
  onClick: handleAction("cancel"),
73
- } },
74
- React__default["default"].createElement(Content.Content, null, state.message && React__default["default"].createElement(Markdown.Markdown, { content: state.message }))));
73
+ } }, state.message ? (React__default["default"].createElement(Content.Content, null,
74
+ React__default["default"].createElement(Markdown.Markdown, { content: state.message }))) : (children)));
75
75
  function handleAction(type) {
76
76
  return function () {
77
77
  dispatch({ type: type });
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var Card = require('../Card-bd8773ff.js');
6
+ var Card = require('../Card-270d6549.js');
7
7
  var Content = require('../Content-18de5fbb.js');
8
- var Emphasis = require('../Emphasis-630ae96e.js');
8
+ var Emphasis = require('../Emphasis-75a3f411.js');
9
9
  require('../tslib.es6-5b50eb8e.js');
10
10
  require('classnames');
11
11
  require('../style-inject.es-dcee06b6.js');
12
- require('../Heading-40f688c8.js');
13
- require('../Typography-66a17f39.js');
12
+ require('../Heading-a9a66964.js');
13
+ require('../Typography-fbe0ed6e.js');
14
14
 
15
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
16