@jobber/components 4.7.1-pre.16 → 4.7.1-pre1.2
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/FormatFile/index.js +1 -2
- package/dist/{FormatFile-d2c30cbc.js → FormatFile-38731cfb.js} +3 -4
- package/dist/Gallery/index.js +1 -2
- package/package.json +4 -4
- package/dist/Glimmer/Glimmer.d.ts +0 -36
- package/dist/Glimmer/index.d.ts +0 -1
- package/dist/Glimmer/index.js +0 -13
- package/dist/Glimmer-f670c24e.js +0 -42
package/dist/FormatFile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var FormatFile = require('../FormatFile-
|
|
5
|
+
var FormatFile = require('../FormatFile-38731cfb.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('filesize');
|
|
@@ -24,7 +24,6 @@ require('../Markdown-53a0bfda.js');
|
|
|
24
24
|
require('react-markdown');
|
|
25
25
|
require('../Text-e7ed0974.js');
|
|
26
26
|
require('../Emphasis-76a10790.js');
|
|
27
|
-
require('../Glimmer-f670c24e.js');
|
|
28
27
|
require('../ProgressBar-5dfc1885.js');
|
|
29
28
|
|
|
30
29
|
|
|
@@ -6,7 +6,6 @@ var getHumanReadableFileSize = require('filesize');
|
|
|
6
6
|
var styleInject_es = require('./style-inject.es-9d2f5f4e.js');
|
|
7
7
|
var Button = require('./Button-69409e46.js');
|
|
8
8
|
var ConfirmationModal = require('./ConfirmationModal-3f9a3524.js');
|
|
9
|
-
var Glimmer = require('./Glimmer-f670c24e.js');
|
|
10
9
|
var Icon = require('./Icon-405a216c.js');
|
|
11
10
|
var Typography = require('./Typography-fd6f932a.js');
|
|
12
11
|
var Text = require('./Text-e7ed0974.js');
|
|
@@ -34,8 +33,8 @@ var css_248z$1 = ".M9Y7sOk6lTc- {\n display: grid;\n grid-template-columns: au
|
|
|
34
33
|
var styles$1 = {"content":"M9Y7sOk6lTc-","hasName":"E4wclxY71oM-","large":"yReSfaruAh0-","fileName":"YXN92rsh2eU-","base":"psaqxO2Lu7E-"};
|
|
35
34
|
styleInject_es.styleInject(css_248z$1);
|
|
36
35
|
|
|
37
|
-
var css_248z = "._62D0xyydQwo- {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n -webkit-animation: _5GIEBejwNJc- 200ms ease;\n animation: _5GIEBejwNJc- 200ms ease;\n}\n\n.a5EQqLlJmCk- {\n display: none;\n}\n\n@-webkit-keyframes _5GIEBejwNJc- {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@keyframes _5GIEBejwNJc- {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n";
|
|
38
|
-
var styles = {"image":"_62D0xyydQwo-","fadeIn":"_5GIEBejwNJc-","hidden":"a5EQqLlJmCk-"};
|
|
36
|
+
var css_248z = ".lfvxlXka-2E- {\n width: 100%;\n height: 100%;\n background-color: rgb(244, 244, 244);\n background-color: var(--color-grey--lightest);\n background-image: linear-gradient(\n 90deg,\n rgb(244, 244, 244) 0px,\n rgba(255, 255, 255, 1) calc(16px * 2),\n rgb(244, 244, 244) calc(16px * 4)\n );\n background-image: linear-gradient(\n 90deg,\n var(--color-grey--lightest) 0px,\n var(--color-white) var(--space-larger),\n var(--color-grey--lightest) var(--space-extravagant)\n );\n background-repeat: no-repeat;\n background-size: calc(16px * 4) 100%;\n background-size: var(--space-extravagant) 100%;\n -webkit-animation: lfvxlXka-2E- 1s infinite linear;\n animation: lfvxlXka-2E- 1s infinite linear;\n}\n\n@-webkit-keyframes lfvxlXka-2E- {\n 0%,\n 20% {\n background-position: calc((16px * 4) * -1);\n background-position: calc(calc(16px * 4) * -1);\n background-position: calc(var(--space-extravagant) * -1);\n }\n\n 100% {\n background-position: calc(100% + (16px * 4));\n background-position: calc(100% + calc(16px * 4));\n background-position: calc(100% + var(--space-extravagant));\n }\n}\n\n@keyframes lfvxlXka-2E- {\n 0%,\n 20% {\n background-position: calc((16px * 4) * -1);\n background-position: calc(calc(16px * 4) * -1);\n background-position: calc(var(--space-extravagant) * -1);\n }\n\n 100% {\n background-position: calc(100% + (16px * 4));\n background-position: calc(100% + calc(16px * 4));\n background-position: calc(100% + var(--space-extravagant));\n }\n}\n\n._62D0xyydQwo- {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n -webkit-animation: _5GIEBejwNJc- 200ms ease;\n animation: _5GIEBejwNJc- 200ms ease;\n}\n\n.a5EQqLlJmCk- {\n display: none;\n}\n\n@-webkit-keyframes _5GIEBejwNJc- {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@keyframes _5GIEBejwNJc- {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n";
|
|
37
|
+
var styles = {"glimmer":"lfvxlXka-2E-","image":"_62D0xyydQwo-","fadeIn":"_5GIEBejwNJc-","hidden":"a5EQqLlJmCk-"};
|
|
39
38
|
styleInject_es.styleInject(css_248z);
|
|
40
39
|
|
|
41
40
|
function InternalThumbnailImage({ file }) {
|
|
@@ -46,7 +45,7 @@ function InternalThumbnailImage({ file }) {
|
|
|
46
45
|
src().then(url => setImageSource(url));
|
|
47
46
|
}
|
|
48
47
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
49
|
-
!imageLoaded && React__default["default"].createElement(
|
|
48
|
+
!imageLoaded && (React__default["default"].createElement("div", { className: styles.glimmer, "data-testid": "internalThumbnailImageLoader" })),
|
|
50
49
|
React__default["default"].createElement("img", { src: imageSource, onLoad: handleImageLoad, alt: name, "data-testid": "internalThumbnailImage", className: classnames__default["default"](styles.image, { [styles.hidden]: !imageLoaded }) })));
|
|
51
50
|
function handleImageLoad() {
|
|
52
51
|
setImageLoaded(true);
|
package/dist/Gallery/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var classnames = require('classnames');
|
|
7
7
|
var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
|
|
8
8
|
var LightBox = require('../LightBox-c637c684.js');
|
|
9
|
-
var FormatFile = require('../FormatFile-
|
|
9
|
+
var FormatFile = require('../FormatFile-38731cfb.js');
|
|
10
10
|
var Button = require('../Button-69409e46.js');
|
|
11
11
|
require('framer-motion');
|
|
12
12
|
require('react-dom');
|
|
@@ -23,7 +23,6 @@ require('../Markdown-53a0bfda.js');
|
|
|
23
23
|
require('react-markdown');
|
|
24
24
|
require('../Text-e7ed0974.js');
|
|
25
25
|
require('../Emphasis-76a10790.js');
|
|
26
|
-
require('../Glimmer-f670c24e.js');
|
|
27
26
|
require('../Icon-405a216c.js');
|
|
28
27
|
require('@jobber/design');
|
|
29
28
|
require('../ProgressBar-5dfc1885.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.7.1-
|
|
3
|
+
"version": "4.7.1-pre1.2+dbd7fd38",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"dist/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@jobber/design": "^0.32.
|
|
20
|
+
"@jobber/design": "^0.32.0",
|
|
21
21
|
"@jobber/formatters": "^0.2.2",
|
|
22
|
-
"@jobber/hooks": "^2.0.
|
|
22
|
+
"@jobber/hooks": "^2.0.3-pre1.52+dbd7fd38",
|
|
23
23
|
"@popperjs/core": "^2.0.6",
|
|
24
24
|
"@std-proposal/temporal": "0.0.1",
|
|
25
25
|
"@tanstack/react-table": "8.5.13",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"> 1%",
|
|
83
83
|
"IE 10"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "dbd7fd38ad63a18455a86f1b5faf72559d3009e1"
|
|
86
86
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import sizes from "./style/Sizes.css";
|
|
3
|
-
import shapes from "./style/Shape.css";
|
|
4
|
-
import timings from "./style/Timing.css";
|
|
5
|
-
export type Sizes = keyof typeof sizes;
|
|
6
|
-
export type Shapes = keyof typeof shapes;
|
|
7
|
-
export type Timings = keyof typeof timings;
|
|
8
|
-
interface GlimmerProps {
|
|
9
|
-
/**
|
|
10
|
-
* Sets the size of the glimmer.
|
|
11
|
-
*
|
|
12
|
-
* If you use `"auto"` with a `"rectangle"` shape, it will fill the
|
|
13
|
-
* size of the parents width and height. With how CSS works, if it can't
|
|
14
|
-
* determine the parents width and height, it'll default to `base`.
|
|
15
|
-
*/
|
|
16
|
-
readonly size?: Sizes;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the shape of the glimmer.
|
|
19
|
-
*/
|
|
20
|
-
readonly shape?: Shapes;
|
|
21
|
-
/**
|
|
22
|
-
* Control how fast the shine moves from left to right. This is useful when
|
|
23
|
-
* the glimmer is used on smaller spaces.
|
|
24
|
-
*/
|
|
25
|
-
readonly timing?: Timings;
|
|
26
|
-
}
|
|
27
|
-
export declare const GLIMMER_TEST_ID = "ATL-Glimmer";
|
|
28
|
-
/**
|
|
29
|
-
* **Experimental component! Use at your own risk.**
|
|
30
|
-
*
|
|
31
|
-
* Foundational component used to build loading states such as Skeleton UI
|
|
32
|
-
*
|
|
33
|
-
* @experimental
|
|
34
|
-
*/
|
|
35
|
-
export declare function Glimmer({ size, shape, timing, }: GlimmerProps): JSX.Element;
|
|
36
|
-
export {};
|
package/dist/Glimmer/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Glimmer, GLIMMER_TEST_ID } from "./Glimmer";
|
package/dist/Glimmer/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Glimmer = require('../Glimmer-f670c24e.js');
|
|
6
|
-
require('react');
|
|
7
|
-
require('classnames');
|
|
8
|
-
require('../style-inject.es-9d2f5f4e.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.GLIMMER_TEST_ID = Glimmer.GLIMMER_TEST_ID;
|
|
13
|
-
exports.Glimmer = Glimmer.Glimmer;
|
package/dist/Glimmer-f670c24e.js
DELETED
|
@@ -1,42 +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$3 = ".FXzzrJAf890- {\n --duration-base: calc(var(--timing-slowest) * 4); /* 2s */\n --duration-fast: calc(var(--duration-base) / 2); /* 1s */\n\n width: 100%;\n height: 100%;\n border-radius: calc(16px / 8);\n border-radius: var(--radius-base);\n background-color: rgb(244, 244, 244);\n background-color: var(--color-grey--lightest);\n background-image: linear-gradient(\n 90deg,\n rgb(244, 244, 244) 0px,\n rgba(255, 255, 255, 1) calc(16px * 2),\n rgb(244, 244, 244) calc(16px * 4)\n );\n background-image: linear-gradient(\n 90deg,\n var(--color-grey--lightest) 0px,\n var(--color-white) var(--space-larger),\n var(--color-grey--lightest) var(--space-extravagant)\n );\n background-repeat: no-repeat;\n background-size: calc(16px * 4) 100%;\n background-size: var(--space-extravagant) 100%;\n -webkit-animation: FXzzrJAf890- 2s infinite linear;\n animation: FXzzrJAf890- 2s infinite linear;\n}\n\n@-webkit-keyframes FXzzrJAf890- {\n 0%,\n 20% {\n background-position: calc((16px * 4) * -1);\n background-position: calc(calc(16px * 4) * -1);\n background-position: calc(var(--space-extravagant) * -1);\n }\n\n 100% {\n background-position: calc(100% + (16px * 4));\n background-position: calc(100% + calc(16px * 4));\n background-position: calc(100% + var(--space-extravagant));\n }\n}\n\n@keyframes FXzzrJAf890- {\n 0%,\n 20% {\n background-position: calc((16px * 4) * -1);\n background-position: calc(calc(16px * 4) * -1);\n background-position: calc(var(--space-extravagant) * -1);\n }\n\n 100% {\n background-position: calc(100% + (16px * 4));\n background-position: calc(100% + calc(16px * 4));\n background-position: calc(100% + var(--space-extravagant));\n }\n}\n";
|
|
13
|
-
var styles = {"glimmer":"FXzzrJAf890-"};
|
|
14
|
-
styleInject_es.styleInject(css_248z$3);
|
|
15
|
-
|
|
16
|
-
var css_248z$2 = ".siUUG4rZNSk- {\n height: calc(16px / 2);\n height: var(--space-small);\n}\n\n.nFuBXyrhG2Q- {\n height: calc(16px * 1);\n height: var(--space-base);\n}\n\n.oiVEoAqI-fU- {\n height: calc(16px * 1.5);\n height: var(--space-large);\n}\n\n.Tkmo6mSMI9Y- {\n height: calc(16px * 2);\n height: var(--space-larger);\n}\n\n.uVeaD3IhD6o- {\n height: calc(16px * 3);\n height: var(--space-largest);\n}\n\n._6Wak9NLJ3VQ- {\n height: 100%;\n min-width: calc(16px * 1);\n min-width: var(--space-base);\n min-height: calc(16px * 1);\n min-height: var(--space-base);\n}\n";
|
|
17
|
-
var sizes = {"small":"siUUG4rZNSk-","base":"nFuBXyrhG2Q-","large":"oiVEoAqI-fU-","larger":"Tkmo6mSMI9Y-","largest":"uVeaD3IhD6o-","auto":"_6Wak9NLJ3VQ-"};
|
|
18
|
-
styleInject_es.styleInject(css_248z$2);
|
|
19
|
-
|
|
20
|
-
var css_248z$1 = ".enoWbteryXg- {\n width: 100%;\n}\n\n._9qkwCdedX1M- {\n width: 85%;\n}\n\n.XtyJxvcJDFs- {\n width: 70%;\n}\n\n._8unQ0TS1He4-,\n.ameRMYEKfss- {\n width: auto;\n aspect-ratio: 1;\n}\n\n.ameRMYEKfss- {\n border-radius: 100%;\n border-radius: var(--radius-circle);\n}\n";
|
|
21
|
-
var shapes = {"rectangle":"enoWbteryXg-","rectangleShort":"_9qkwCdedX1M-","rectangleShorter":"XtyJxvcJDFs-","square":"_8unQ0TS1He4-","circle":"ameRMYEKfss-"};
|
|
22
|
-
styleInject_es.styleInject(css_248z$1);
|
|
23
|
-
|
|
24
|
-
var css_248z = ".hO0mZ6TeVko- {\n -webkit-animation-duration: var(--duration-base);\n animation-duration: var(--duration-base);\n}\n\n.WXi5-zF8Ll4- {\n -webkit-animation-duration: calc(var(--duration-fast));\n animation-duration: calc(var(--duration-fast));\n}\n";
|
|
25
|
-
var timings = {"base":"hO0mZ6TeVko-","fast":"WXi5-zF8Ll4-"};
|
|
26
|
-
styleInject_es.styleInject(css_248z);
|
|
27
|
-
|
|
28
|
-
const GLIMMER_TEST_ID = "ATL-Glimmer";
|
|
29
|
-
/**
|
|
30
|
-
* **Experimental component! Use at your own risk.**
|
|
31
|
-
*
|
|
32
|
-
* Foundational component used to build loading states such as Skeleton UI
|
|
33
|
-
*
|
|
34
|
-
* @experimental
|
|
35
|
-
*/
|
|
36
|
-
function Glimmer({ size = "base", shape = "rectangle", timing = "base", }) {
|
|
37
|
-
const className = classnames__default["default"](styles.glimmer, sizes[size], shapes[shape], timings[timing]);
|
|
38
|
-
return (React__default["default"].createElement("div", { "aria-busy": "true", className: className, "data-testid": GLIMMER_TEST_ID }));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.GLIMMER_TEST_ID = GLIMMER_TEST_ID;
|
|
42
|
-
exports.Glimmer = Glimmer;
|