@nulogy/components 10.2.11 → 10.2.13
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 +33 -28
- package/dist/main.module.js +33 -28
- package/dist/src/Divider/Divider.d.ts +2 -3
- package/dist/src/Divider/Divider.story.d.ts +4 -2
- package/package.json +1 -3
package/dist/main.js
CHANGED
|
@@ -41794,17 +41794,22 @@
|
|
|
41794
41794
|
}, props)));
|
|
41795
41795
|
});
|
|
41796
41796
|
|
|
41797
|
-
var Divider$1 =
|
|
41798
|
-
|
|
41799
|
-
|
|
41800
|
-
|
|
41801
|
-
|
|
41802
|
-
|
|
41803
|
-
|
|
41804
|
-
|
|
41805
|
-
|
|
41806
|
-
|
|
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,
|
|
@@ -42117,6 +42122,7 @@
|
|
|
42117
42122
|
onClick: closeOnOutsideClick && isOpen && onClose
|
|
42118
42123
|
})), /*#__PURE__*/React__default["default"].createElement(AnimatedBox, Object.assign({
|
|
42119
42124
|
role: "dialog",
|
|
42125
|
+
paddingX: "x1",
|
|
42120
42126
|
bg: "white",
|
|
42121
42127
|
display: "flex",
|
|
42122
42128
|
flexDirection: "column",
|
|
@@ -42137,27 +42143,21 @@
|
|
|
42137
42143
|
zIndex: zIndex,
|
|
42138
42144
|
ref: sideBarRef
|
|
42139
42145
|
}, props), /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
42140
|
-
p: p,
|
|
42141
|
-
maxHeight: "100%",
|
|
42142
|
-
overflow: "auto",
|
|
42143
|
-
flexGrow: 1,
|
|
42144
42146
|
flexDirection: "column",
|
|
42145
|
-
|
|
42146
|
-
|
|
42147
|
-
|
|
42148
|
-
|
|
42149
|
-
flexDirection: "column",
|
|
42150
|
-
pb: "x3"
|
|
42147
|
+
p: "x2",
|
|
42148
|
+
borderBottomWidth: "1px",
|
|
42149
|
+
borderBottomStyle: "solid",
|
|
42150
|
+
borderBottomColor: "lightGrey"
|
|
42151
42151
|
}, /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
42152
42152
|
flexDirection: "column",
|
|
42153
|
-
|
|
42153
|
+
gap: "x1"
|
|
42154
42154
|
}, /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
42155
42155
|
justifyContent: "space-between",
|
|
42156
42156
|
alignItems: "flex-start"
|
|
42157
42157
|
}, title && /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
42158
42158
|
alignItems: "center",
|
|
42159
42159
|
height: "100%"
|
|
42160
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
42160
|
+
}, /*#__PURE__*/React__default["default"].createElement(Heading2, {
|
|
42161
42161
|
mb: 0
|
|
42162
42162
|
}, title)), !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
42163
42163
|
marginLeft: "x2"
|
|
@@ -42169,12 +42169,17 @@
|
|
|
42169
42169
|
"data-testid": closeButtonTestId,
|
|
42170
42170
|
"aria-label": closeButtonAriaLabel || t("close")
|
|
42171
42171
|
}))), renderHelpText ? renderHelpText() : helpText && /*#__PURE__*/React__default["default"].createElement(Text, {
|
|
42172
|
-
pt: "x1",
|
|
42173
42172
|
color: "midGrey"
|
|
42174
|
-
}, helpText)), /*#__PURE__*/React__default["default"].createElement(
|
|
42175
|
-
|
|
42176
|
-
|
|
42177
|
-
|
|
42173
|
+
}, helpText))), /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
42174
|
+
p: p,
|
|
42175
|
+
maxHeight: "100%",
|
|
42176
|
+
overflow: "auto",
|
|
42177
|
+
flexGrow: 1,
|
|
42178
|
+
flexDirection: "column",
|
|
42179
|
+
style: {
|
|
42180
|
+
overflowBehaviour: "contain"
|
|
42181
|
+
}
|
|
42182
|
+
}, /*#__PURE__*/React__default["default"].createElement(AnimatedBox, {
|
|
42178
42183
|
variants: childVariants,
|
|
42179
42184
|
animate: isOpen ? "open" : "closed",
|
|
42180
42185
|
flexGrow: 1,
|
package/dist/main.module.js
CHANGED
|
@@ -41777,17 +41777,22 @@ var DateRange = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
41777
41777
|
}, props)));
|
|
41778
41778
|
});
|
|
41779
41779
|
|
|
41780
|
-
var Divider$1 =
|
|
41781
|
-
|
|
41782
|
-
|
|
41783
|
-
|
|
41784
|
-
|
|
41785
|
-
|
|
41786
|
-
|
|
41787
|
-
|
|
41788
|
-
|
|
41789
|
-
|
|
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,
|
|
@@ -42100,6 +42105,7 @@ function Sidebar(_a) {
|
|
|
42100
42105
|
onClick: closeOnOutsideClick && isOpen && onClose
|
|
42101
42106
|
})), /*#__PURE__*/React__default.createElement(AnimatedBox, Object.assign({
|
|
42102
42107
|
role: "dialog",
|
|
42108
|
+
paddingX: "x1",
|
|
42103
42109
|
bg: "white",
|
|
42104
42110
|
display: "flex",
|
|
42105
42111
|
flexDirection: "column",
|
|
@@ -42120,27 +42126,21 @@ function Sidebar(_a) {
|
|
|
42120
42126
|
zIndex: zIndex,
|
|
42121
42127
|
ref: sideBarRef
|
|
42122
42128
|
}, props), /*#__PURE__*/React__default.createElement(Flex, {
|
|
42123
|
-
p: p,
|
|
42124
|
-
maxHeight: "100%",
|
|
42125
|
-
overflow: "auto",
|
|
42126
|
-
flexGrow: 1,
|
|
42127
42129
|
flexDirection: "column",
|
|
42128
|
-
|
|
42129
|
-
|
|
42130
|
-
|
|
42131
|
-
|
|
42132
|
-
flexDirection: "column",
|
|
42133
|
-
pb: "x3"
|
|
42130
|
+
p: "x2",
|
|
42131
|
+
borderBottomWidth: "1px",
|
|
42132
|
+
borderBottomStyle: "solid",
|
|
42133
|
+
borderBottomColor: "lightGrey"
|
|
42134
42134
|
}, /*#__PURE__*/React__default.createElement(Flex, {
|
|
42135
42135
|
flexDirection: "column",
|
|
42136
|
-
|
|
42136
|
+
gap: "x1"
|
|
42137
42137
|
}, /*#__PURE__*/React__default.createElement(Flex, {
|
|
42138
42138
|
justifyContent: "space-between",
|
|
42139
42139
|
alignItems: "flex-start"
|
|
42140
42140
|
}, title && /*#__PURE__*/React__default.createElement(Flex, {
|
|
42141
42141
|
alignItems: "center",
|
|
42142
42142
|
height: "100%"
|
|
42143
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
42143
|
+
}, /*#__PURE__*/React__default.createElement(Heading2, {
|
|
42144
42144
|
mb: 0
|
|
42145
42145
|
}, title)), !hideCloseButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
42146
42146
|
marginLeft: "x2"
|
|
@@ -42152,12 +42152,17 @@ function Sidebar(_a) {
|
|
|
42152
42152
|
"data-testid": closeButtonTestId,
|
|
42153
42153
|
"aria-label": closeButtonAriaLabel || t("close")
|
|
42154
42154
|
}))), renderHelpText ? renderHelpText() : helpText && /*#__PURE__*/React__default.createElement(Text, {
|
|
42155
|
-
pt: "x1",
|
|
42156
42155
|
color: "midGrey"
|
|
42157
|
-
}, helpText)), /*#__PURE__*/React__default.createElement(
|
|
42158
|
-
|
|
42159
|
-
|
|
42160
|
-
|
|
42156
|
+
}, helpText))), /*#__PURE__*/React__default.createElement(Flex, {
|
|
42157
|
+
p: p,
|
|
42158
|
+
maxHeight: "100%",
|
|
42159
|
+
overflow: "auto",
|
|
42160
|
+
flexGrow: 1,
|
|
42161
|
+
flexDirection: "column",
|
|
42162
|
+
style: {
|
|
42163
|
+
overflowBehaviour: "contain"
|
|
42164
|
+
}
|
|
42165
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedBox, {
|
|
42161
42166
|
variants: childVariants,
|
|
42162
42167
|
animate: isOpen ? "open" : "closed",
|
|
42163
42168
|
flexGrow: 1,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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: (
|
|
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
|
|
7
|
+
export declare const Default: () => React.JSX.Element;
|
|
8
|
+
export declare const WithCustomColourAndSpacing: () => React.JSX.Element;
|
|
9
|
+
export declare const WithCustomProperties: () => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.13",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
"@types/styled-system": "5.1.22",
|
|
145
145
|
"body-scroll-lock": "^3.1.5",
|
|
146
146
|
"core-js": "3",
|
|
147
|
-
"create-react-context": "^0.3.0",
|
|
148
147
|
"date-fns": "2.23.0",
|
|
149
148
|
"debounce": "^1.2.0",
|
|
150
149
|
"deep-equal": "^2.2.1",
|
|
@@ -155,7 +154,6 @@
|
|
|
155
154
|
"react-fast-compare": "^3.2.0",
|
|
156
155
|
"react-hot-toast": "^2.4.1",
|
|
157
156
|
"react-i18next": "^12.3.1",
|
|
158
|
-
"react-input-autosize": "^2.2.2",
|
|
159
157
|
"react-modal": "^3.14.4",
|
|
160
158
|
"react-popper": "1.3.11",
|
|
161
159
|
"react-popper-2": "npm:react-popper@2.2.4",
|