@nulogy/components 10.2.12 → 10.2.14

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/main.js CHANGED
@@ -41794,17 +41794,22 @@
41794
41794
  }, props)));
41795
41795
  });
41796
41796
 
41797
- var Divider$1 = function Divider(_a) {
41798
- var _a$borderColor = _a.borderColor,
41799
- borderColor = _a$borderColor === void 0 ? "lightGrey" : _a$borderColor,
41800
- props = __rest(_a, ["borderColor"]);
41801
-
41802
- return /*#__PURE__*/React__default["default"].createElement(Box, Object.assign({
41803
- as: "hr",
41804
- borderTop: "1px solid",
41805
- borderColor: borderColor
41806
- }, props));
41807
- };
41797
+ var Divider$1 = styled__default["default"].div.withConfig({
41798
+ displayName: "Divider",
41799
+ componentId: "sc-1r789ib-0"
41800
+ })(function (_ref) {
41801
+ var theme = _ref.theme,
41802
+ color = _ref.color;
41803
+ return {
41804
+ display: "flex",
41805
+ marginTop: theme.space.x2,
41806
+ marginBottom: theme.space.x2,
41807
+ marginLeft: "0",
41808
+ marginRight: "0",
41809
+ borderBottom: "1px solid",
41810
+ borderColor: color ? color : theme.colors.lightGrey
41811
+ };
41812
+ }, addStyledProps);
41808
41813
 
41809
41814
  var ApplicationFrame = function ApplicationFrame(_a) {
41810
41815
  var navBar = _a.navBar,
@@ -51456,6 +51461,7 @@
51456
51461
  onClick = _ref.onClick;
51457
51462
  return /*#__PURE__*/React__default["default"].createElement(AnimatedBox, {
51458
51463
  position: "relative",
51464
+ flexShrink: 0,
51459
51465
  height: "24px",
51460
51466
  width: "48px",
51461
51467
  bg: disabled ? "grey" : getSwitchBackground(toggled),
@@ -41777,17 +41777,22 @@ var DateRange = /*#__PURE__*/forwardRef(function (_a, ref) {
41777
41777
  }, props)));
41778
41778
  });
41779
41779
 
41780
- var Divider$1 = function Divider(_a) {
41781
- var _a$borderColor = _a.borderColor,
41782
- borderColor = _a$borderColor === void 0 ? "lightGrey" : _a$borderColor,
41783
- props = __rest(_a, ["borderColor"]);
41784
-
41785
- return /*#__PURE__*/React__default.createElement(Box, Object.assign({
41786
- as: "hr",
41787
- borderTop: "1px solid",
41788
- borderColor: borderColor
41789
- }, props));
41790
- };
41780
+ var Divider$1 = styled.div.withConfig({
41781
+ displayName: "Divider",
41782
+ componentId: "sc-1r789ib-0"
41783
+ })(function (_ref) {
41784
+ var theme = _ref.theme,
41785
+ color = _ref.color;
41786
+ return {
41787
+ display: "flex",
41788
+ marginTop: theme.space.x2,
41789
+ marginBottom: theme.space.x2,
41790
+ marginLeft: "0",
41791
+ marginRight: "0",
41792
+ borderBottom: "1px solid",
41793
+ borderColor: color ? color : theme.colors.lightGrey
41794
+ };
41795
+ }, addStyledProps);
41791
41796
 
41792
41797
  var ApplicationFrame = function ApplicationFrame(_a) {
41793
41798
  var navBar = _a.navBar,
@@ -51439,6 +51444,7 @@ function Switch(_ref) {
51439
51444
  onClick = _ref.onClick;
51440
51445
  return /*#__PURE__*/React__default.createElement(AnimatedBox, {
51441
51446
  position: "relative",
51447
+ flexShrink: 0,
51442
51448
  height: "24px",
51443
51449
  width: "48px",
51444
51450
  bg: disabled ? "grey" : getSwitchBackground(toggled),
@@ -1,4 +1,3 @@
1
- import React from "react";
2
- import { BoxProps } from "../Box/Box";
3
- declare const Divider: ({ borderColor, ...props }: BoxProps) => React.JSX.Element;
1
+ import { StyledProps } from "../StyledProps";
2
+ declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledProps, never>;
4
3
  export default Divider;
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ borderColor, ...props }: import("../Box/Box").BoxProps) => React.JSX.Element;
4
+ component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").StyledProps, never>;
5
5
  };
6
6
  export default _default;
7
- export declare const _Divider: () => React.JSX.Element;
7
+ export declare const Default: () => React.JSX.Element;
8
+ export declare const WithCustomColourAndSpacing: () => React.JSX.Element;
9
+ export declare const WithCustomProperties: () => React.JSX.Element;
@@ -41,6 +41,7 @@ export declare const WithLongText: {
41
41
  name: string;
42
42
  };
43
43
  };
44
+ export declare const WithContraintWidth: () => React.JSX.Element;
44
45
  export declare const ControlledToggle: () => React.JSX.Element;
45
46
  export declare const UsingRefToControlFocus: {
46
47
  (): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "10.2.12",
3
+ "version": "10.2.14",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {