@jobber/components 6.35.0 → 6.36.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.
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import sizes from "./DividerSizes.module.css";
2
3
  import directions from "./DividerDirections.module.css";
3
4
  interface DividerProps {
@@ -17,6 +18,22 @@ interface DividerProps {
17
18
  * A reference to the element in the rendered output
18
19
  */
19
20
  readonly testID?: string;
21
+ /**
22
+ * **Use at your own risk:** Custom classNames for specific elements. This should only be used as a
23
+ * **last resort**. Using this may result in unexpected side effects.
24
+ * More information in the [Customizing components Guide](https://atlantis.getjobber.com/guides/customizing-components).
25
+ */
26
+ readonly UNSAFE_className?: {
27
+ readonly container?: string;
28
+ };
29
+ /**
30
+ * **Use at your own risk:** Custom style for specific elements. This should only be used as a
31
+ * **last resort**. Using this may result in unexpected side effects.
32
+ * More information in the [Customizing components Guide](https://atlantis.getjobber.com/guides/customizing-components).
33
+ */
34
+ readonly UNSAFE_style?: {
35
+ readonly container?: React.CSSProperties;
36
+ };
20
37
  }
21
- export declare function Divider({ size, direction, testID, }: DividerProps): JSX.Element;
38
+ export declare function Divider({ size, direction, testID, UNSAFE_className, UNSAFE_style, }: DividerProps): JSX.Element;
22
39
  export {};
@@ -9,9 +9,9 @@ var sizes = {"base":"t44-9xW2xyI-","large":"DZLf49GmKvc-","larger":"D9ovrKetww8-
9
9
 
10
10
  var directions = {"horizontal":"evwHY54TitY-","vertical":"qT-G2Sn0Wm8-","spinning":"MPB4A2OgAUE-"};
11
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" }));
12
+ function Divider({ size = "base", direction = "horizontal", testID, UNSAFE_className, UNSAFE_style, }) {
13
+ const className = classnames(styles.divider, sizes[size], directions[direction], UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container);
14
+ return (React.createElement("div", { className: className, style: UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container, "data-testid": testID, role: "none presentation" }));
15
15
  }
16
16
 
17
17
  exports.Divider = Divider;
@@ -7,9 +7,9 @@ var sizes = {"base":"t44-9xW2xyI-","large":"DZLf49GmKvc-","larger":"D9ovrKetww8-
7
7
 
8
8
  var directions = {"horizontal":"evwHY54TitY-","vertical":"qT-G2Sn0Wm8-","spinning":"MPB4A2OgAUE-"};
9
9
 
10
- function Divider({ size = "base", direction = "horizontal", testID, }) {
11
- const className = classnames(styles.divider, sizes[size], directions[direction]);
12
- return (React__default.createElement("div", { className: className, "data-testid": testID, role: "none presentation" }));
10
+ function Divider({ size = "base", direction = "horizontal", testID, UNSAFE_className, UNSAFE_style, }) {
11
+ const className = classnames(styles.divider, sizes[size], directions[direction], UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container);
12
+ return (React__default.createElement("div", { className: className, style: UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container, "data-testid": testID, role: "none presentation" }));
13
13
  }
14
14
 
15
15
  export { Divider as D };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.35.0",
3
+ "version": "6.36.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -489,5 +489,5 @@
489
489
  "> 1%",
490
490
  "IE 10"
491
491
  ],
492
- "gitHead": "47a62437567448c46efe6d2e2ec653b985554c44"
492
+ "gitHead": "afdf51d018850844414cee76e5e743fcf9ae4b05"
493
493
  }