@jobber/components 6.3.0 → 6.3.1-JOB-97733-cb11119.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/Divider/Divider.d.ts +9 -3
- package/dist/Divider-cjs.js +8 -10
- package/dist/Divider-es.js +8 -10
- package/dist/styles.css +9 -6
- package/package.json +2 -2
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import sizes from "./DividerSizes.module.css";
|
|
2
|
+
import directions from "./DividerDirections.module.css";
|
|
1
3
|
interface DividerProps {
|
|
2
4
|
/**
|
|
3
5
|
* The weight of the divider.
|
|
4
6
|
*
|
|
5
7
|
* @default "base"
|
|
6
8
|
*/
|
|
7
|
-
readonly size?:
|
|
9
|
+
readonly size?: keyof typeof sizes;
|
|
8
10
|
/**
|
|
9
11
|
* The direction of the divider
|
|
10
12
|
*
|
|
11
13
|
* @default "horizontal"
|
|
12
14
|
*/
|
|
13
|
-
readonly direction?:
|
|
15
|
+
readonly direction?: keyof typeof directions;
|
|
16
|
+
/**
|
|
17
|
+
* A reference to the element in the rendered output
|
|
18
|
+
*/
|
|
19
|
+
readonly testID?: string;
|
|
14
20
|
}
|
|
15
|
-
export declare function Divider({ size, direction, }: DividerProps): JSX.Element;
|
|
21
|
+
export declare function Divider({ size, direction, testID, }: DividerProps): JSX.Element;
|
|
16
22
|
export {};
|
package/dist/Divider-cjs.js
CHANGED
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
|
|
6
|
-
var styles = {"divider":"XLgPB38fKeE-","
|
|
6
|
+
var styles = {"divider":"XLgPB38fKeE-","spinning":"JenuDN3dhh4-"};
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
return React.createElement("div", { className: className, role: "none presentation" });
|
|
8
|
+
var sizes = {"base":"t44-9xW2xyI-","large":"DZLf49GmKvc-","larger":"D9ovrKetww8-","largest":"_8uEysWndSQc-","spinning":"XYvD7J9XpzM-"};
|
|
9
|
+
|
|
10
|
+
var directions = {"horizontal":"evwHY54TitY-","vertical":"qT-G2Sn0Wm8-","spinning":"MPB4A2OgAUE-"};
|
|
11
|
+
|
|
12
|
+
function Divider({ size = "base", direction = "horizontal", testID, }) {
|
|
13
|
+
const className = classnames(styles.divider, sizes[size], directions[direction]);
|
|
14
|
+
return (React.createElement("div", { className: className, "data-testid": testID, role: "none presentation" }));
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
exports.Divider = Divider;
|
package/dist/Divider-es.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"divider":"XLgPB38fKeE-","
|
|
4
|
+
var styles = {"divider":"XLgPB38fKeE-","spinning":"JenuDN3dhh4-"};
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
return React.createElement("div", { className: className, role: "none presentation" });
|
|
6
|
+
var sizes = {"base":"t44-9xW2xyI-","large":"DZLf49GmKvc-","larger":"D9ovrKetww8-","largest":"_8uEysWndSQc-","spinning":"XYvD7J9XpzM-"};
|
|
7
|
+
|
|
8
|
+
var directions = {"horizontal":"evwHY54TitY-","vertical":"qT-G2Sn0Wm8-","spinning":"MPB4A2OgAUE-"};
|
|
9
|
+
|
|
10
|
+
function Divider({ size = "base", direction = "horizontal", testID, }) {
|
|
11
|
+
const className = classnames(styles.divider, sizes[size], directions[direction]);
|
|
12
|
+
return (React.createElement("div", { className: className, "data-testid": testID, role: "none presentation" }));
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export { Divider as D };
|
package/dist/styles.css
CHANGED
|
@@ -6459,35 +6459,38 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
6459
6459
|
}
|
|
6460
6460
|
|
|
6461
6461
|
.XLgPB38fKeE- {
|
|
6462
|
-
--divider-width: var(--border-base);
|
|
6463
6462
|
--divider-color: var(--color-border);
|
|
6464
6463
|
margin: 0;
|
|
6465
6464
|
padding: 0;
|
|
6466
6465
|
border: none;
|
|
6467
6466
|
}
|
|
6468
6467
|
|
|
6469
|
-
.
|
|
6468
|
+
.t44-9xW2xyI- {
|
|
6469
|
+
--divider-width: var(--border-base);
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
.DZLf49GmKvc- {
|
|
6470
6473
|
--divider-width: var(--border-thick);
|
|
6471
6474
|
opacity: 0.875;
|
|
6472
6475
|
}
|
|
6473
6476
|
|
|
6474
|
-
.
|
|
6477
|
+
.D9ovrKetww8- {
|
|
6475
6478
|
--divider-width: var(--border-thicker);
|
|
6476
6479
|
opacity: 0.625;
|
|
6477
6480
|
}
|
|
6478
6481
|
|
|
6479
|
-
.
|
|
6482
|
+
._8uEysWndSQc- {
|
|
6480
6483
|
--divider-width: var(--border-thickest);
|
|
6481
6484
|
opacity: 0.375;
|
|
6482
6485
|
}
|
|
6483
6486
|
|
|
6484
|
-
.
|
|
6487
|
+
.evwHY54TitY- {
|
|
6485
6488
|
height: 1px;
|
|
6486
6489
|
height: var(--space-minuscule);
|
|
6487
6490
|
border-bottom: var(--divider-width) solid var(--divider-color);
|
|
6488
6491
|
}
|
|
6489
6492
|
|
|
6490
|
-
.
|
|
6493
|
+
.qT-G2Sn0Wm8- {
|
|
6491
6494
|
width: 1px;
|
|
6492
6495
|
width: var(--space-minuscule);
|
|
6493
6496
|
height: auto;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1-JOB-97733-cb11119.2+cb111193",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -487,5 +487,5 @@
|
|
|
487
487
|
"> 1%",
|
|
488
488
|
"IE 10"
|
|
489
489
|
],
|
|
490
|
-
"gitHead": "
|
|
490
|
+
"gitHead": "cb1111932f4fe1c7e60730feb46f7407a076b6d5"
|
|
491
491
|
}
|