@jobber/components 4.58.1 → 4.58.2-hackathon.5
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/Autocomplete/index.js +4 -4
- package/dist/Banner/index.js +2 -1
- package/dist/Button/Boom.d.ts +6 -0
- package/dist/Button/Button.d.ts +2 -0
- package/dist/Button/Button.types.d.ts +10 -0
- package/dist/Button/ButtonConfettiDelight.d.ts +9 -0
- package/dist/Button/ButtonDelight.d.ts +9 -0
- package/dist/Button/OutParticle.d.ts +4 -0
- package/dist/Button/Particle.d.ts +4 -0
- package/dist/Button/index.js +2 -1
- package/dist/Button-114b5e41.js +337 -0
- package/dist/ButtonDismiss/index.js +3 -2
- package/dist/{ButtonDismiss-1ccb84ec.js → ButtonDismiss-3c4be741.js} +1 -1
- package/dist/Card/index.js +4 -3
- package/dist/{Card-116af709.js → Card-756a230b.js} +2 -2
- package/dist/{Chip-4f12eec8.js → Chip-0b20ffea.js} +2 -2
- package/dist/Chips/index.js +4 -3
- package/dist/Combobox/index.js +1 -1
- package/dist/ConfirmationModal/index.js +5 -4
- package/dist/{ConfirmationModal-285c3cbe.js → ConfirmationModal-cebf2c2e.js} +1 -1
- package/dist/DataDump/index.js +4 -3
- package/dist/DataList/index.js +7 -7
- package/dist/DataTable/index.js +4 -4
- package/dist/DatePicker/index.js +3 -2
- package/dist/{DatePicker-49213434.js → DatePicker-f13767d0.js} +1 -1
- package/dist/Drawer/index.js +3 -2
- package/dist/FeatureSwitch/index.js +2 -1
- package/dist/FormField/index.js +3 -3
- package/dist/{FormField-fa9254dc.js → FormField-639bc659.js} +2 -2
- package/dist/FormatFile/index.js +6 -6
- package/dist/{FormatFile-6423c3b5.js → FormatFile-6a8472a9.js} +2 -2
- package/dist/Gallery/index.js +6 -6
- package/dist/InputAvatar/index.js +2 -2
- package/dist/InputDate/index.js +4 -4
- package/dist/InputEmail/index.js +3 -3
- package/dist/InputFile/index.js +2 -2
- package/dist/{InputFile-25c3369b.js → InputFile-8e9d18fd.js} +1 -1
- package/dist/InputNumber/index.js +4 -4
- package/dist/{InputNumber-ea9fcee1.js → InputNumber-08eef959.js} +1 -1
- package/dist/InputPassword/index.js +3 -3
- package/dist/InputPhoneNumber/index.js +3 -3
- package/dist/InputText/index.js +4 -4
- package/dist/{InputText-ab237501.js → InputText-4ec68f82.js} +1 -1
- package/dist/InputTime/index.js +3 -3
- package/dist/LightBox/index.js +4 -3
- package/dist/{LightBox-93ef99b9.js → LightBox-4883f08f.js} +2 -2
- package/dist/Menu/index.js +3 -2
- package/dist/{Menu-2e64307a.js → Menu-ec6cfd07.js} +1 -1
- package/dist/Modal/index.js +4 -3
- package/dist/{Modal-c17cc105.js → Modal-8322c2f1.js} +2 -2
- package/dist/{Option-07a24acd.js → Option-489f147e.js} +1 -1
- package/dist/Page/index.js +3 -2
- package/dist/Popover/index.js +4 -3
- package/dist/{Popover-7c966790.js → Popover-3b128829.js} +1 -1
- package/dist/RecurringSelect/index.js +5 -5
- package/dist/Select/index.js +4 -4
- package/dist/Spinner/Spinner.d.ts +5 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-0070bf23.js +63 -0
- package/dist/Toast/index.js +2 -1
- package/package.json +3 -3
- package/dist/Button-db6114a6.js +0 -57
- package/dist/Spinner-9d8fc7ff.js +0 -24
package/dist/Popover/index.js
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Popover = require('../Popover-
|
|
5
|
+
var Popover = require('../Popover-3b128829.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-popper');
|
|
8
8
|
require('@jobber/hooks/useRefocusOnActivator');
|
|
9
9
|
require('../style-inject.es-9d2f5f4e.js');
|
|
10
|
-
require('../ButtonDismiss-
|
|
11
|
-
require('../Button-
|
|
10
|
+
require('../ButtonDismiss-3c4be741.js');
|
|
11
|
+
require('../Button-114b5e41.js');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('react-router-dom');
|
|
14
|
+
require('../tslib.es6-5b8768b7.js');
|
|
14
15
|
require('../Icon-405a216c.js');
|
|
15
16
|
require('@jobber/design');
|
|
16
17
|
require('../Typography-83915c54.js');
|
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var reactPopper = require('react-popper');
|
|
5
5
|
var useRefocusOnActivator = require('@jobber/hooks/useRefocusOnActivator');
|
|
6
6
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
|
-
var ButtonDismiss = require('./ButtonDismiss-
|
|
7
|
+
var ButtonDismiss = require('./ButtonDismiss-3c4be741.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -9,20 +9,20 @@ var RadioGroup = require('../RadioGroup-9bdd8a59.js');
|
|
|
9
9
|
var Text = require('../Text-54334431.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('../Typography-83915c54.js');
|
|
12
|
-
var Option = require('../Option-
|
|
13
|
-
var InputNumber = require('../InputNumber-
|
|
12
|
+
var Option = require('../Option-489f147e.js');
|
|
13
|
+
var InputNumber = require('../InputNumber-08eef959.js');
|
|
14
14
|
var InputGroup = require('../InputGroup-3fdde16b.js');
|
|
15
15
|
var Content = require('../Content-2ca1ffe1.js');
|
|
16
|
-
require('../FormField-
|
|
16
|
+
require('../FormField-639bc659.js');
|
|
17
17
|
require('../tslib.es6-5b8768b7.js');
|
|
18
18
|
require('react-hook-form');
|
|
19
|
-
require('../Button-
|
|
19
|
+
require('../Button-114b5e41.js');
|
|
20
20
|
require('react-router-dom');
|
|
21
21
|
require('../Icon-405a216c.js');
|
|
22
22
|
require('@jobber/design');
|
|
23
23
|
require('../InputValidation-377d6c62.js');
|
|
24
24
|
require('framer-motion');
|
|
25
|
-
require('../Spinner-
|
|
25
|
+
require('../Spinner-0070bf23.js');
|
|
26
26
|
|
|
27
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
28
28
|
|
package/dist/Select/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Option = require('../Option-
|
|
5
|
+
var Option = require('../Option-489f147e.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('../FormField-
|
|
7
|
+
require('../FormField-639bc659.js');
|
|
8
8
|
require('../tslib.es6-5b8768b7.js');
|
|
9
9
|
require('uuid');
|
|
10
10
|
require('react-hook-form');
|
|
11
11
|
require('../style-inject.es-9d2f5f4e.js');
|
|
12
12
|
require('classnames');
|
|
13
|
-
require('../Button-
|
|
13
|
+
require('../Button-114b5e41.js');
|
|
14
14
|
require('react-router-dom');
|
|
15
15
|
require('../Icon-405a216c.js');
|
|
16
16
|
require('@jobber/design');
|
|
@@ -18,7 +18,7 @@ require('../Typography-83915c54.js');
|
|
|
18
18
|
require('../Text-54334431.js');
|
|
19
19
|
require('../InputValidation-377d6c62.js');
|
|
20
20
|
require('framer-motion');
|
|
21
|
-
require('../Spinner-
|
|
21
|
+
require('../Spinner-0070bf23.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -11,6 +11,10 @@ interface SpinnerProps {
|
|
|
11
11
|
* otherwise it is a block element
|
|
12
12
|
*/
|
|
13
13
|
readonly inline?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Uses an industry gif instead of the default spinner
|
|
16
|
+
*/
|
|
17
|
+
readonly hasDelight?: "arborist" | "pressureGauge" | "workVan" | "landscaping" | "chainsaw" | "plumbing" | "powerDrill" | "windowCleaning";
|
|
14
18
|
}
|
|
15
|
-
export declare function Spinner({ size, inline }: SpinnerProps): JSX.Element;
|
|
19
|
+
export declare function Spinner({ size, inline, hasDelight }: SpinnerProps): JSX.Element;
|
|
16
20
|
export {};
|
package/dist/Spinner/index.js
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
+
|
|
12
|
+
var css_248z = ".uoU-LfjFDv0- {\n width: calc(16px * 2);\n width: var(--space-larger);\n height: calc(16px * 2);\n height: var(--space-larger);\n box-shadow: 0px 0px 4px 2px rgba(1, 41, 57, 0.4);\n border: solid rgb(77, 105, 116);\n border: solid var(--color-blue--light);\n border-top-color: rgba(255, 255, 255, 1);\n border-top-color: var(--color-white);\n border-width: calc((16px / 2) * 0.75);\n border-width: calc(calc(16px / 2) * 0.75);\n border-width: calc(var(--space-small) * 0.75);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(217, 223, 225);\n background-color: var(--color-blue--lightest);\n -webkit-animation-duration: calc(500ms * 2);\n -webkit-animation-duration: calc(var(--timing-slowest) * 2);\n animation-duration: calc(500ms * 2);\n animation-duration: calc(var(--timing-slowest) * 2);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1aCKd5q9u34-;\n animation-name: _1aCKd5q9u34-;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n will-change: transform;\n}\n\n.azOEELEMb4U- {\n width: 90px;\n height: 90px;\n}\n\n@-webkit-keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.cLRQwkSqnhA- {\n width: calc(16px * 1);\n width: var(--space-base);\n height: calc(16px * 1);\n height: var(--space-base);\n border-width: calc(16px / 4);\n border-width: var(--space-smaller);\n}\n\n.h6O4vDPCWOQ- {\n display: inline-block;\n margin-top: calc((16px / 4) * -1);\n margin-top: calc(calc(16px / 4) * -1);\n margin-top: calc(var(--space-smaller) * -1);\n vertical-align: middle;\n}\n";
|
|
13
|
+
var styles = {"spinner":"uoU-LfjFDv0-","animationSpin":"_1aCKd5q9u34-","industryGif":"azOEELEMb4U-","small":"cLRQwkSqnhA-","inline":"h6O4vDPCWOQ-"};
|
|
14
|
+
styleInject_es.styleInject(css_248z);
|
|
15
|
+
|
|
16
|
+
/* eslint-disable max-statements */
|
|
17
|
+
function Spinner({ size = "base", inline, hasDelight }) {
|
|
18
|
+
const arboristGif = require("../Spinner/assets/Jobber_Arborist.gif");
|
|
19
|
+
const hvacGif = require("../Spinner/assets/Jobber_PressureGauge.gif");
|
|
20
|
+
const workVanGif = require("../Spinner/assets/Jobber_WorkVan.gif");
|
|
21
|
+
const landscapingGif = require("../Spinner/assets/Jobber_Bobcat.gif");
|
|
22
|
+
const chainsawGif = require("../Spinner/assets/Jobber_Chainsaw.gif");
|
|
23
|
+
const plumbingGif = require("../Spinner/assets/Jobber_PipeWrench.gif");
|
|
24
|
+
const powerdrillGif = require("../Spinner/assets/Jobber_PowerDrill.gif");
|
|
25
|
+
const windowCleaningGif = require("../Spinner/assets/Jobber_WaterLogo.gif");
|
|
26
|
+
let selectedGif;
|
|
27
|
+
switch (hasDelight) {
|
|
28
|
+
case "arborist":
|
|
29
|
+
selectedGif = arboristGif;
|
|
30
|
+
break;
|
|
31
|
+
case "pressureGauge":
|
|
32
|
+
selectedGif = hvacGif;
|
|
33
|
+
break;
|
|
34
|
+
case "workVan":
|
|
35
|
+
selectedGif = workVanGif;
|
|
36
|
+
break;
|
|
37
|
+
case "landscaping":
|
|
38
|
+
selectedGif = landscapingGif;
|
|
39
|
+
break;
|
|
40
|
+
case "chainsaw":
|
|
41
|
+
selectedGif = chainsawGif;
|
|
42
|
+
break;
|
|
43
|
+
case "plumbing":
|
|
44
|
+
selectedGif = plumbingGif;
|
|
45
|
+
break;
|
|
46
|
+
case "powerDrill":
|
|
47
|
+
selectedGif = powerdrillGif;
|
|
48
|
+
break;
|
|
49
|
+
case "windowCleaning":
|
|
50
|
+
selectedGif = windowCleaningGif;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
if (hasDelight) {
|
|
54
|
+
return (React__default["default"].createElement("img", { src: selectedGif, alt: "Loading", className: styles.industryGif, role: "alert", "aria-busy": true, "aria-label": "loading" }));
|
|
55
|
+
}
|
|
56
|
+
const spinnerStyles = classnames__default["default"](styles.spinner, {
|
|
57
|
+
[styles.small]: size === "small",
|
|
58
|
+
[styles.inline]: inline,
|
|
59
|
+
});
|
|
60
|
+
return (React__default["default"].createElement("div", { className: spinnerStyles, role: "alert", "aria-busy": true, "aria-label": "loading" }));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.Spinner = Spinner;
|
package/dist/Toast/index.js
CHANGED
|
@@ -7,11 +7,12 @@ var client = require('react-dom/client');
|
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
9
9
|
var Icon = require('../Icon-405a216c.js');
|
|
10
|
-
var Button = require('../Button-
|
|
10
|
+
var Button = require('../Button-114b5e41.js');
|
|
11
11
|
var Typography = require('../Typography-83915c54.js');
|
|
12
12
|
require('@jobber/design');
|
|
13
13
|
require('classnames');
|
|
14
14
|
require('react-router-dom');
|
|
15
|
+
require('../tslib.es6-5b8768b7.js');
|
|
15
16
|
|
|
16
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.58.
|
|
3
|
+
"version": "4.58.2-hackathon.5+a11a42c9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@jobber/design": "^0.46.0",
|
|
23
|
-
"@jobber/formatters": "
|
|
23
|
+
"@jobber/formatters": "^0.2.2",
|
|
24
24
|
"@jobber/hooks": "^2.6.3",
|
|
25
25
|
"@popperjs/core": "^2.0.6",
|
|
26
26
|
"@std-proposal/temporal": "0.0.1",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"> 1%",
|
|
85
85
|
"IE 10"
|
|
86
86
|
],
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "a11a42c9a16b129d2890b00616f2ebbbcce1a517"
|
|
88
88
|
}
|
package/dist/Button-db6114a6.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var reactRouterDom = require('react-router-dom');
|
|
6
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
|
-
var Icon = require('./Icon-405a216c.js');
|
|
8
|
-
var Typography = require('./Typography-83915c54.js');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
14
|
-
|
|
15
|
-
var css_248z = ":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: var(--timing-loading--extended);\n}\n\n.U9VsquOtk2I- {\n display: -ms-inline-flexbox;\n display: inline-flex;\n min-height: calc(16px * 2.25);\n min-height: calc(var(--base-unit) * 2.25);\n box-sizing: border-box;\n margin: 0;\n border: calc(16px / 16) solid rgb(125, 176, 14);\n border: var(--border-base) solid var(--button--color-variation);\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n color: rgb(125, 176, 14);\n color: var(--button--color-variation);\n -webkit-font-smoothing: antialiased;\n letter-spacing: calc(16px / 40);\n letter-spacing: var(--typography--letterSpacing-loose);\n text-align: center;\n -webkit-text-decoration: none;\n text-decoration: none;\n vertical-align: middle;\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--button--color-surface);\n cursor: pointer;\n transition: all 200ms;\n transition: all var(--timing-base);\n -webkit-appearance: none;\n appearance: none;\n fill: rgb(125, 176, 14);\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.U9VsquOtk2I- * {\n fill: inherit !important;\n}\n\n.U9VsquOtk2I- * {\n color: inherit;\n /* required to over-ride very specific fill from <Icon> */\n}\n\n.U9VsquOtk2I-:hover,\na.U9VsquOtk2I-:hover,\n.U9VsquOtk2I-:focus,\na.U9VsquOtk2I-:focus,\n.U9VsquOtk2I-:active,\na.U9VsquOtk2I-:active {\n border-color: rgb(81, 114, 9);\n border-color: var(--button--color-variation--hover);\n color: rgb(81, 114, 9);\n color: var(--button--color-variation--hover);\n fill: rgb(81, 114, 9);\n fill: var(--button--color-variation--hover);\n background-color: rgb(244, 244, 244);\n background-color: var(--button--color-surface--hover);\n}\n\n.U9VsquOtk2I-:focus,\na.U9VsquOtk2I-:focus,\n.U9VsquOtk2I-:active,\na.U9VsquOtk2I-:active {\n box-shadow: 0px 0px calc(16px / 4) calc(16px / 8)\n rgb(231, 213, 87);\n box-shadow: var(--shadow-focus);\n outline: none;\n}\n\n/* Variation */\n\n.qkFQwI0PKfw- {\n --button--color-variation: var(--color-interactive);\n --button--color-variation--hover: var(--color-interactive--hover);\n}\n\n.jsKQEOBdJ0k- {\n --button--color-variation: var(--color-informative);\n --button--color-variation--hover: var(--color-informative--onSurface);\n}\n\n._4W8X0dxZDK4- {\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.vDKO-cmh8vY- {\n --button--color-variation: var(--color-interactive--subtle);\n --button--color-variation--hover: var(--color-interactive--subtle--hover);\n}\n\n/* Type */\n\n.FXqN12jWtPo-:not(.vDKO-cmh8vY-):not(.bg-l22drjd0-),\n.FXqN12jWtPo-:not(.vDKO-cmh8vY-):not(.bg-l22drjd0-):hover,\n.FXqN12jWtPo-:not(.vDKO-cmh8vY-):not(.bg-l22drjd0-):focus {\n color: rgba(255, 255, 255, 1);\n color: var(--button--color-primaryLabel);\n background-color: rgb(125, 176, 14);\n background-color: var(--button--color-variation);\n fill: rgba(255, 255, 255, 1);\n fill: var(--button--color-primaryLabel);\n}\n\n.FXqN12jWtPo-:not(.vDKO-cmh8vY-):not(.bg-l22drjd0-):hover,\n.FXqN12jWtPo-:not(.vDKO-cmh8vY-):not(.bg-l22drjd0-):focus {\n background-color: rgb(81, 114, 9);\n background-color: var(--button--color-variation--hover);\n}\n\n.vDKO-cmh8vY-.FXqN12jWtPo- {\n color: rgb(125, 176, 14);\n color: var(--button--color-variation);\n fill: rgb(125, 176, 14);\n fill: var(--button--color-variation);\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--button--color-surface);\n}\n\n.pf6G840lKdA-,\n.vDKO-cmh8vY-.FXqN12jWtPo- {\n border-color: rgb(125, 176, 14);\n border-color: var(--button--color-variation);\n}\n\n.vDKO-cmh8vY-.FXqN12jWtPo-:hover,\n.vDKO-cmh8vY-.FXqN12jWtPo-:focus {\n color: rgb(81, 114, 9);\n color: var(--button--color-variation--hover);\n background-color: rgb(244, 244, 244);\n background-color: var(--button--color-surface--hover);\n fill: rgb(81, 114, 9);\n fill: var(--button--color-variation--hover);\n}\n\n.vDKO-cmh8vY-.pf6G840lKdA- {\n background-color: rgba(255, 255, 255, 1);\n background-color: var(--button--color-surface);\n}\n\n.m7DbwRZWcNk-,\n.vDKO-cmh8vY-.pf6G840lKdA- {\n border-color: transparent;\n}\n\n.vDKO-cmh8vY-.pf6G840lKdA-:hover,\n.vDKO-cmh8vY-.pf6G840lKdA-:focus {\n background-color: rgb(244, 244, 244);\n background-color: var(--button--color-surface--hover);\n}\n\n.m7DbwRZWcNk-:hover,\n.m7DbwRZWcNk-:focus,\na.m7DbwRZWcNk-:hover,\na.m7DbwRZWcNk-:focus,\n.vDKO-cmh8vY-.pf6G840lKdA-:hover,\n.vDKO-cmh8vY-.pf6G840lKdA-:focus,\na.vDKO-cmh8vY-.pf6G840lKdA-:hover,\na.vDKO-cmh8vY-.pf6G840lKdA-:focus {\n border-color: transparent;\n}\n\n.vDKO-cmh8vY-.m7DbwRZWcNk- {\n border-color: transparent;\n background-color: transparent;\n}\n\n.vDKO-cmh8vY-.m7DbwRZWcNk-:hover,\n.vDKO-cmh8vY-.m7DbwRZWcNk-:focus,\na.vDKO-cmh8vY-.m7DbwRZWcNk-:hover,\na.vDKO-cmh8vY-.m7DbwRZWcNk-:focus {\n border-color: transparent;\n color: rgb(66, 78, 86);\n color: var(--color-interactive--subtle--hover);\n fill: rgb(66, 78, 86);\n fill: var(--color-interactive--subtle--hover);\n}\n\n/* Disabled */\n\n.U9VsquOtk2I-.bg-l22drjd0-,\na.U9VsquOtk2I-.bg-l22drjd0-,\n.U9VsquOtk2I-.bg-l22drjd0-:hover,\na.U9VsquOtk2I-.bg-l22drjd0-:hover {\n border-color: rgb(225, 225, 225);\n border-color: var(--color-disabled--secondary);\n color: rgb(181, 181, 181);\n color: var(--color-disabled);\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-color: rgb(225, 225, 225);\n background-color: var(--color-disabled--secondary);\n fill: rgb(181, 181, 181);\n fill: var(--color-disabled);\n pointer-events: none;\n cursor: not-allowed;\n}\n\n/* Sizes */\n\n.STSDgSRREx4- {\n min-height: calc(16px * 1.5);\n min-height: calc(var(--base-unit) * 1.5);\n padding: 0 calc(16px / 2);\n padding: 0 var(--space-small);\n letter-spacing: 0;\n}\n\n.amIh7vPETfo- {\n min-height: calc(16px * 2.25);\n min-height: calc(var(--base-unit) * 2.25);\n padding: 0 calc((16px * 1) - 4px);\n padding: 0 calc(calc(16px * 1) - 4px);\n padding: 0 calc(var(--space-base) - 4px);\n}\n\n.ON6ezOojFVo- {\n min-height: calc(16px * 3);\n min-height: calc(var(--base-unit) * 3);\n padding: 0 calc(16px * 1);\n padding: 0 var(--space-base);\n}\n\n/* Icon */\n\n.Qq-idRLJTCk- {\n width: calc(16px * 2.25);\n width: calc(var(--base-unit) * 2.25);\n padding: 0;\n}\n\n.Qq-idRLJTCk-.STSDgSRREx4- {\n width: calc((16px / 2) * 3);\n width: calc(calc(16px / 2) * 3);\n width: calc(var(--space-small) * 3);\n}\n\n.Qq-idRLJTCk-.amIh7vPETfo- {\n width: calc((16px * 1) * 2.25);\n width: calc(calc(16px * 1) * 2.25);\n width: calc(var(--space-base) * 2.25);\n}\n\n.Qq-idRLJTCk-.ON6ezOojFVo- {\n width: calc((16px * 1.5) * 2);\n width: calc(calc(16px * 1.5) * 2);\n width: calc(var(--space-large) * 2);\n}\n\n.EWh1gvgPJQg- {\n width: auto;\n}\n\n.EWh1gvgPJQg- > * {\n text-align: left;\n}\n\n.EWh1gvgPJQg- > *:first-child {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-right: calc(16px / 2);\n margin-right: var(--space-small);\n}\n\n.pfzTUMgNb3o- > *:first-child {\n margin-left: calc(16px / 2);\n margin-left: var(--space-small);\n margin-right: 0;\n -ms-flex-order: 1;\n order: 1;\n}\n\n.ZCHqCEyLBw0- {\n width: 100%;\n}\n\n.VVFKEv1ksMA- {\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: calc(16px * 2) calc(16px * 2);\n background-size: var(--space-larger) var(--space-larger);\n pointer-events: none;\n cursor: not-allowed;\n -webkit-animation-duration: 2000ms;\n -webkit-animation-duration: var(--button--duration-loading);\n animation-duration: 2000ms;\n animation-duration: var(--button--duration-loading);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: a8Q-0lnKH5M-;\n animation-name: a8Q-0lnKH5M-;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n\n.FXqN12jWtPo-.VVFKEv1ksMA-:not(.vDKO-cmh8vY-) {\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 a8Q-0lnKH5M- {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: calc(16px * 2) calc(16px * 2);\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n\n@keyframes a8Q-0lnKH5M- {\n 0% {\n background-position: 0 0;\n }\n\n 100% {\n background-position: calc(16px * 2) calc(16px * 2);\n background-position: var(--space-larger) var(--space-larger);\n }\n}\n";
|
|
16
|
-
var styles = {"button":"U9VsquOtk2I-","work":"qkFQwI0PKfw-","learning":"jsKQEOBdJ0k-","destructive":"_4W8X0dxZDK4-","subtle":"vDKO-cmh8vY-","primary":"FXqN12jWtPo-","disabled":"bg-l22drjd0-","secondary":"pf6G840lKdA-","tertiary":"m7DbwRZWcNk-","small":"STSDgSRREx4-","base":"amIh7vPETfo-","large":"ON6ezOojFVo-","onlyIcon":"Qq-idRLJTCk-","hasIconAndLabel":"EWh1gvgPJQg-","iconOnRight":"pfzTUMgNb3o-","fullWidth":"ZCHqCEyLBw0-","loading":"VVFKEv1ksMA-","animateStripes":"a8Q-0lnKH5M-"};
|
|
17
|
-
styleInject_es.styleInject(css_248z);
|
|
18
|
-
|
|
19
|
-
function Button(props) {
|
|
20
|
-
const { ariaControls, ariaHaspopup, ariaExpanded, ariaLabel, disabled = false, external, fullWidth, icon, label, iconOnRight, id, loading, onClick, onMouseDown, role, size = "base", type = "primary", url, to, variation = "work", submit, } = props;
|
|
21
|
-
const buttonClassNames = classnames__default["default"](styles.button, styles[size], {
|
|
22
|
-
[styles.onlyIcon]: icon && !label,
|
|
23
|
-
[styles.hasIconAndLabel]: icon && label,
|
|
24
|
-
[styles.iconOnRight]: iconOnRight,
|
|
25
|
-
[styles[variation]]: variation,
|
|
26
|
-
[styles[type]]: type,
|
|
27
|
-
[styles.disabled]: disabled,
|
|
28
|
-
[styles.fullWidth]: fullWidth,
|
|
29
|
-
[styles.loading]: loading,
|
|
30
|
-
});
|
|
31
|
-
const buttonType = submit ? "submit" : "button";
|
|
32
|
-
const tagProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ className: buttonClassNames, disabled,
|
|
33
|
-
id }, (!disabled && { href: url })), (!disabled && { onClick: onClick })), (!disabled && { onMouseDown: onMouseDown })), (external && { target: "_blank" })), (url === undefined && to === undefined && { type: buttonType })), { "aria-controls": ariaControls, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, role: role });
|
|
34
|
-
const buttonInternals = React__default["default"].createElement(ButtonInternals, Object.assign({}, props));
|
|
35
|
-
if (to) {
|
|
36
|
-
return (React__default["default"].createElement(reactRouterDom.Link, Object.assign({}, tagProps, { to: to }), buttonInternals));
|
|
37
|
-
}
|
|
38
|
-
const Tag = url ? "a" : "button";
|
|
39
|
-
return React__default["default"].createElement(Tag, Object.assign({}, tagProps), buttonInternals);
|
|
40
|
-
}
|
|
41
|
-
function ButtonInternals({ label, icon, size = "base" }) {
|
|
42
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
43
|
-
icon && React__default["default"].createElement(Icon.Icon, { name: icon, size: size }),
|
|
44
|
-
React__default["default"].createElement(Typography.Typography, { element: "span", fontWeight: "extraBold", fontFamily: "base", size: getTypeSizes(size) }, label)));
|
|
45
|
-
}
|
|
46
|
-
function getTypeSizes(size) {
|
|
47
|
-
switch (size) {
|
|
48
|
-
case "small":
|
|
49
|
-
return "small";
|
|
50
|
-
case "large":
|
|
51
|
-
return "large";
|
|
52
|
-
default:
|
|
53
|
-
return "base";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
exports.Button = Button;
|
package/dist/Spinner-9d8fc7ff.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var classnames = require('classnames');
|
|
5
|
-
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
11
|
-
|
|
12
|
-
var css_248z = ".uoU-LfjFDv0- {\n width: calc(16px * 2);\n width: var(--space-larger);\n height: calc(16px * 2);\n height: var(--space-larger);\n box-shadow: 0px 0px 4px 2px rgba(1, 41, 57, 0.4);\n border: solid rgb(77, 105, 116);\n border: solid var(--color-blue--light);\n border-top-color: rgba(255, 255, 255, 1);\n border-top-color: var(--color-white);\n border-width: calc((16px / 2) * 0.75);\n border-width: calc(calc(16px / 2) * 0.75);\n border-width: calc(var(--space-small) * 0.75);\n border-radius: 100%;\n border-radius: var(--radius-circle);\n background-color: rgb(217, 223, 225);\n background-color: var(--color-blue--lightest);\n -webkit-animation-duration: calc(500ms * 2);\n -webkit-animation-duration: calc(var(--timing-slowest) * 2);\n animation-duration: calc(500ms * 2);\n animation-duration: calc(var(--timing-slowest) * 2);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: _1aCKd5q9u34-;\n animation-name: _1aCKd5q9u34-;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n will-change: transform;\n}\n\n@-webkit-keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes _1aCKd5q9u34- {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.cLRQwkSqnhA- {\n width: calc(16px * 1);\n width: var(--space-base);\n height: calc(16px * 1);\n height: var(--space-base);\n border-width: calc(16px / 4);\n border-width: var(--space-smaller);\n}\n\n.h6O4vDPCWOQ- {\n display: inline-block;\n margin-top: calc((16px / 4) * -1);\n margin-top: calc(calc(16px / 4) * -1);\n margin-top: calc(var(--space-smaller) * -1);\n vertical-align: middle;\n}\n";
|
|
13
|
-
var styles = {"spinner":"uoU-LfjFDv0-","animationSpin":"_1aCKd5q9u34-","small":"cLRQwkSqnhA-","inline":"h6O4vDPCWOQ-"};
|
|
14
|
-
styleInject_es.styleInject(css_248z);
|
|
15
|
-
|
|
16
|
-
function Spinner({ size = "base", inline }) {
|
|
17
|
-
const spinnerStyles = classnames__default["default"](styles.spinner, {
|
|
18
|
-
[styles.small]: size === "small",
|
|
19
|
-
[styles.inline]: inline,
|
|
20
|
-
});
|
|
21
|
-
return (React__default["default"].createElement("div", { className: spinnerStyles, role: "alert", "aria-busy": true, "aria-label": "loading" }));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
exports.Spinner = Spinner;
|