@nulogy/components 13.5.0 → 14.0.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.
- package/LICENSE.md +1 -1
- package/README.md +7 -7
- package/dist/main.js +187 -106
- package/dist/main.module.js +188 -108
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +4 -2
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +4 -2
- package/dist/src/DescriptionList/DescriptionList.d.ts +3 -6
- package/dist/src/DescriptionList/DescriptionList.parts.d.ts +14 -0
- package/dist/src/DescriptionList/DescriptionListContext.d.ts +16 -10
- package/dist/src/DescriptionList/index.d.ts +5 -4
- package/dist/src/DescriptionList/lib/types.d.ts +26 -0
- package/dist/src/DescriptionList/lib/utils.d.ts +5 -0
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +17 -0
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +9 -0
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +17 -0
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +9 -0
- package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.d.ts +10 -0
- package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.d.ts +10 -0
- package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +8 -0
- package/dist/src/DescriptionList/stories/fixtures.d.ts +17 -0
- package/dist/src/DropdownMenu/DropdownText.d.ts +2 -1
- package/dist/src/FieldLabel/HelpText.d.ts +2 -1
- package/dist/src/Layout/Sidebar.d.ts +1 -1
- package/dist/src/Toggle/Toggle.d.ts +4 -7
- package/dist/src/Toggle/ToggleButton.d.ts +1 -1
- package/dist/src/TopBar/components/MenuItemLink.d.ts +1 -2
- package/dist/src/TopBar/index.d.ts +1 -0
- package/dist/src/Type/Headings.d.ts +8 -4
- package/dist/src/Type/Text.d.ts +1 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/theme.type.d.ts +1 -1
- package/dist/src/utils/story/code.d.ts +8 -0
- package/dist/src/utils/story/resizable.d.ts +18 -0
- package/package.json +2 -1
- package/dist/src/DescriptionList/DescriptionDetails.d.ts +0 -2
- package/dist/src/DescriptionList/DescriptionList.story.d.ts +0 -14
- package/dist/src/DescriptionList/DescriptionTerm.d.ts +0 -2
package/LICENSE.md
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @nulogy/components
|
|
2
|
+
|
|
2
3
|

|
|
3
4
|

|
|
4
5
|
[](https://github.com/nulogy/design-system/blob/master/CONTRIBUTING.md)
|
|
5
6
|
|
|
6
7
|
> Built with React, components make it easy to create interfaces that conform to the principles of the Nulogy Design System.
|
|
7
8
|
|
|
8
|
-
|
|
9
9
|
## 📦 Installation
|
|
10
10
|
|
|
11
11
|
### 1. Add the package
|
|
@@ -83,6 +83,7 @@ Component documentation and usage guides are stored in the [github.com/nulogy/nu
|
|
|
83
83
|
## 👋 Work requests
|
|
84
84
|
|
|
85
85
|
If you encounter a bug, need a new component or new capability of an existing component, or need any other type of support please file a work request in [GitHub Issues](https://github.com/nulogy/design-system/issues). To learn more about how to file a request and what to expect please read [How to file NDS work request](https://github.com/nulogy/design-system/wiki/How-to-file-NDS-work-request).
|
|
86
|
+
|
|
86
87
|
- [#design-system](slack://channel?team=T024N2KKA&id=CBAFQ4X7X)
|
|
87
88
|
|
|
88
89
|
## 🙌 Contributing
|
|
@@ -93,13 +94,12 @@ Please see [Contributing.MD](https://github.com/nulogy/design-system/blob/master
|
|
|
93
94
|
|
|
94
95
|
- [#design-system](slack://channel?team=T024N2KKA&id=CBAFQ4X7X)
|
|
95
96
|
|
|
96
|
-
|
|
97
97
|
## 📦 Related Packages
|
|
98
98
|
|
|
99
99
|
The design-system is a collection of related packages. If you're looking for more packages, see below.
|
|
100
100
|
|
|
101
|
-
| Package
|
|
102
|
-
|
|
|
103
|
-
| [@nulogy/css](https://github.com/nulogy/nds-css)
|
|
104
|
-
| [@nulogy/icons](https://github.com/nulogy/nds-icons)
|
|
105
|
-
| [@nulogy/tokens](https://github.com/nulogy/nds-tokens)
|
|
101
|
+
| Package | Description | |
|
|
102
|
+
| ------------------------------------------------------ | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
103
|
+
| [@nulogy/css](https://github.com/nulogy/nds-css) | CSS components and utility classes for adding new styles to non-React applications | [](https://www.npmjs.com/package/@nulogy/css) |
|
|
104
|
+
| [@nulogy/icons](https://github.com/nulogy/nds-icons) | A selection of Material Icon `svgs` used by Nulogy applications | [](https://www.npmjs.com/package/@nulogy/icons) |
|
|
105
|
+
| [@nulogy/tokens](https://github.com/nulogy/nds-tokens) | Design language styles (e.g colours, type, spacing, shadows, etc.) | [](https://www.npmjs.com/package/@nulogy/tokens) |
|
package/dist/main.js
CHANGED
|
@@ -9770,13 +9770,14 @@
|
|
|
9770
9770
|
displayName: "Headings__Heading1",
|
|
9771
9771
|
componentId: "sc-7kwh7g-0"
|
|
9772
9772
|
})(function (_ref) {
|
|
9773
|
-
var theme = _ref.theme
|
|
9773
|
+
var theme = _ref.theme,
|
|
9774
|
+
compact = _ref.compact;
|
|
9774
9775
|
return {
|
|
9775
9776
|
fontSize: theme.fontSizes.heading1,
|
|
9776
9777
|
lineHeight: theme.lineHeights.heading1,
|
|
9777
9778
|
fontWeight: theme.fontWeights.light,
|
|
9778
9779
|
marginTop: 0,
|
|
9779
|
-
marginBottom: theme.space.x6
|
|
9780
|
+
marginBottom: compact ? theme.space.none : theme.space.x6
|
|
9780
9781
|
};
|
|
9781
9782
|
}, variant({
|
|
9782
9783
|
variants: {
|
|
@@ -9794,13 +9795,14 @@
|
|
|
9794
9795
|
displayName: "Headings__Heading2",
|
|
9795
9796
|
componentId: "sc-7kwh7g-1"
|
|
9796
9797
|
})(function (_ref2) {
|
|
9797
|
-
var theme = _ref2.theme
|
|
9798
|
+
var theme = _ref2.theme,
|
|
9799
|
+
compact = _ref2.compact;
|
|
9798
9800
|
return {
|
|
9799
9801
|
fontSize: theme.fontSizes.heading2,
|
|
9800
9802
|
lineHeight: theme.lineHeights.heading2,
|
|
9801
9803
|
fontWeight: theme.fontWeights.normal,
|
|
9802
9804
|
marginTop: 0,
|
|
9803
|
-
marginBottom: theme.space.x2
|
|
9805
|
+
marginBottom: compact ? theme.space.none : theme.space.x2
|
|
9804
9806
|
};
|
|
9805
9807
|
}, variant({
|
|
9806
9808
|
variants: {
|
|
@@ -9818,13 +9820,14 @@
|
|
|
9818
9820
|
displayName: "Headings__Heading3",
|
|
9819
9821
|
componentId: "sc-7kwh7g-2"
|
|
9820
9822
|
})(function (_ref3) {
|
|
9821
|
-
var theme = _ref3.theme
|
|
9823
|
+
var theme = _ref3.theme,
|
|
9824
|
+
compact = _ref3.compact;
|
|
9822
9825
|
return {
|
|
9823
9826
|
fontSize: theme.fontSizes.heading3,
|
|
9824
9827
|
lineHeight: theme.lineHeights.heading3,
|
|
9825
9828
|
fontWeight: theme.fontWeights.medium,
|
|
9826
9829
|
marginTop: 0,
|
|
9827
|
-
marginBottom: theme.space.x1
|
|
9830
|
+
marginBottom: compact ? theme.space.none : theme.space.x1
|
|
9828
9831
|
};
|
|
9829
9832
|
}, variant({
|
|
9830
9833
|
variants: {
|
|
@@ -9842,13 +9845,14 @@
|
|
|
9842
9845
|
displayName: "Headings__Heading4",
|
|
9843
9846
|
componentId: "sc-7kwh7g-3"
|
|
9844
9847
|
})(function (_ref4) {
|
|
9845
|
-
var theme = _ref4.theme
|
|
9848
|
+
var theme = _ref4.theme,
|
|
9849
|
+
compact = _ref4.compact;
|
|
9846
9850
|
return {
|
|
9847
9851
|
fontSize: theme.fontSizes.heading4,
|
|
9848
9852
|
lineHeight: theme.lineHeights.heading4,
|
|
9849
9853
|
fontWeight: theme.fontWeights.bold,
|
|
9850
9854
|
marginTop: 0,
|
|
9851
|
-
marginBottom: theme.space.x1
|
|
9855
|
+
marginBottom: compact ? theme.space.none : theme.space.x1
|
|
9852
9856
|
};
|
|
9853
9857
|
}, variant({
|
|
9854
9858
|
variants: {
|
|
@@ -13114,7 +13118,7 @@
|
|
|
13114
13118
|
flexShrink: 0,
|
|
13115
13119
|
alignItems: "center",
|
|
13116
13120
|
justifyContent: "center",
|
|
13117
|
-
borderRadius: theme.radii.
|
|
13121
|
+
borderRadius: theme.radii.rounded,
|
|
13118
13122
|
height: "calc(" + ((_a = theme.sizes[size]) !== null && _a !== void 0 ? _a : size) + " + " + theme.sizes.x1 + ")",
|
|
13119
13123
|
width: "calc(" + ((_b = theme.sizes[size]) !== null && _b !== void 0 ? _b : size) + " + " + theme.sizes.x1 + ")",
|
|
13120
13124
|
transition: ".2s"
|
|
@@ -13266,7 +13270,7 @@
|
|
|
13266
13270
|
color: theme.colors.black,
|
|
13267
13271
|
cursor: disabled ? "arrow" : "pointer"
|
|
13268
13272
|
}, _ref2["" + Icon] = {
|
|
13269
|
-
borderRadius: theme.radii.
|
|
13273
|
+
borderRadius: theme.radii.rounded,
|
|
13270
13274
|
transition: ".2s"
|
|
13271
13275
|
}, _ref2["&:hover"] = (_hover = {}, _hover["" + Icon] = {
|
|
13272
13276
|
backgroundColor: theme.colors.lightGrey
|
|
@@ -13322,7 +13326,7 @@
|
|
|
13322
13326
|
display: "flex",
|
|
13323
13327
|
alignItems: "center",
|
|
13324
13328
|
padding: theme.space.half,
|
|
13325
|
-
borderRadius: theme.radii.
|
|
13329
|
+
borderRadius: theme.radii.rounded,
|
|
13326
13330
|
color: getIconColorByState({
|
|
13327
13331
|
toggled: toggled,
|
|
13328
13332
|
disabled: disabled,
|
|
@@ -47898,102 +47902,142 @@
|
|
|
47898
47902
|
}, props)));
|
|
47899
47903
|
});
|
|
47900
47904
|
|
|
47901
|
-
var DescriptionListContext = /*#__PURE__*/
|
|
47902
|
-
var
|
|
47903
|
-
return React__default["default"].useContext(DescriptionListContext);
|
|
47904
|
-
};
|
|
47905
|
-
function DescriptionListProvider(_a) {
|
|
47905
|
+
var DescriptionListContext = /*#__PURE__*/React.createContext(undefined);
|
|
47906
|
+
var DescriptionListProvider = function DescriptionListProvider(_a) {
|
|
47906
47907
|
var children = _a.children,
|
|
47907
|
-
|
|
47908
|
+
contextProps = __rest$3(_a, ["children"]);
|
|
47908
47909
|
|
|
47909
47910
|
return /*#__PURE__*/React__default["default"].createElement(DescriptionListContext.Provider, {
|
|
47910
|
-
value:
|
|
47911
|
+
value: contextProps
|
|
47911
47912
|
}, children);
|
|
47912
|
-
}
|
|
47913
|
+
};
|
|
47914
|
+
var useDescriptionListContext = function useDescriptionListContext() {
|
|
47915
|
+
var context = React.useContext(DescriptionListContext);
|
|
47913
47916
|
|
|
47914
|
-
|
|
47915
|
-
|
|
47916
|
-
|
|
47917
|
-
|
|
47918
|
-
|
|
47919
|
-
|
|
47920
|
-
|
|
47921
|
-
|
|
47922
|
-
|
|
47923
|
-
|
|
47924
|
-
|
|
47925
|
-
|
|
47926
|
-
|
|
47927
|
-
|
|
47928
|
-
|
|
47929
|
-
|
|
47930
|
-
|
|
47931
|
-
|
|
47932
|
-
|
|
47933
|
-
showDivider: showDivider,
|
|
47934
|
-
density: density,
|
|
47935
|
-
fontSize: fontSize,
|
|
47936
|
-
lineHeight: lineHeight,
|
|
47937
|
-
autoLayoutBreakpoint: autoLayoutBreakpoint
|
|
47938
|
-
}, /*#__PURE__*/React__default["default"].createElement(DescriptionListContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledDescriptionList, null, children)));
|
|
47917
|
+
if (!context) {
|
|
47918
|
+
throw new Error("useDescriptionListContext must be used within a DescriptionListProvider");
|
|
47919
|
+
}
|
|
47920
|
+
|
|
47921
|
+
return context;
|
|
47922
|
+
};
|
|
47923
|
+
|
|
47924
|
+
function validateAndExtractGridProps(props) {
|
|
47925
|
+
var columns = "columns" in props ? props.columns : undefined;
|
|
47926
|
+
var groupMinWidth = "groupMinWidth" in props ? props.groupMinWidth : undefined;
|
|
47927
|
+
|
|
47928
|
+
if (columns && groupMinWidth) {
|
|
47929
|
+
throw new Error("Please provide either a `columns` or `groupMinWidth` prop to the DescriptionList, not both.\n\nSee component documentation: https://github.com/nulogy/design-system/blob/master/src/DescriptionList/README.md");
|
|
47930
|
+
}
|
|
47931
|
+
|
|
47932
|
+
return {
|
|
47933
|
+
columns: columns,
|
|
47934
|
+
groupMinWidth: groupMinWidth
|
|
47935
|
+
};
|
|
47939
47936
|
}
|
|
47937
|
+
|
|
47938
|
+
var gapConfig = {
|
|
47939
|
+
compact: "x0_75",
|
|
47940
|
+
medium: "x1_5",
|
|
47941
|
+
relaxed: "x3"
|
|
47942
|
+
};
|
|
47940
47943
|
var DescriptionListContainer = styled__default["default"].div.withConfig({
|
|
47941
|
-
displayName: "
|
|
47942
|
-
componentId: "sc-
|
|
47944
|
+
displayName: "DescriptionListparts__DescriptionListContainer",
|
|
47945
|
+
componentId: "sc-cia3w5-0"
|
|
47943
47946
|
})({
|
|
47944
47947
|
containerType: "inline-size",
|
|
47945
47948
|
width: "100%"
|
|
47946
47949
|
});
|
|
47947
|
-
var
|
|
47948
|
-
displayName: "
|
|
47949
|
-
componentId: "sc-
|
|
47950
|
-
})(function (
|
|
47950
|
+
var DescriptionList$1 = styled__default["default"].dl.withConfig({
|
|
47951
|
+
displayName: "DescriptionListparts__DescriptionList",
|
|
47952
|
+
componentId: "sc-cia3w5-1"
|
|
47953
|
+
})(function (_ref) {
|
|
47951
47954
|
var _Object$assign;
|
|
47952
47955
|
|
|
47953
|
-
var theme =
|
|
47956
|
+
var theme = _ref.theme;
|
|
47954
47957
|
|
|
47955
47958
|
var _a, _b;
|
|
47956
47959
|
|
|
47957
47960
|
var _useDescriptionListCo = useDescriptionListContext(),
|
|
47958
|
-
descriptionTermMaxWidth = _useDescriptionListCo.descriptionTermMaxWidth,
|
|
47959
|
-
layout = _useDescriptionListCo.layout,
|
|
47960
47961
|
fontSize = _useDescriptionListCo.fontSize,
|
|
47961
47962
|
lineHeight = _useDescriptionListCo.lineHeight,
|
|
47962
|
-
|
|
47963
|
+
density = _useDescriptionListCo.density,
|
|
47964
|
+
columns = _useDescriptionListCo.columns,
|
|
47965
|
+
groupMinWidth = _useDescriptionListCo.groupMinWidth;
|
|
47963
47966
|
|
|
47964
|
-
return Object.assign(Object.assign(Object.assign({
|
|
47967
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({
|
|
47968
|
+
containerType: "inline-size",
|
|
47969
|
+
width: "100%",
|
|
47965
47970
|
margin: 0,
|
|
47966
47971
|
display: "grid",
|
|
47972
|
+
columnGap: theme.space[gapConfig[density]],
|
|
47967
47973
|
fontSize: (_a = theme.fontSizes[fontSize]) !== null && _a !== void 0 ? _a : theme.fontSizes.medium,
|
|
47968
47974
|
lineHeight: (_b = theme.lineHeights[lineHeight]) !== null && _b !== void 0 ? _b : theme.lineHeights.base
|
|
47969
|
-
},
|
|
47970
|
-
gridTemplateColumns: "
|
|
47971
|
-
}), (layout === "stacked" || layout === "auto") && {
|
|
47972
|
-
gridTemplateColumns: "1fr"
|
|
47975
|
+
}, typeof columns === "number" && {
|
|
47976
|
+
gridTemplateColumns: "repeat(" + columns + ", minmax(0, 1fr))"
|
|
47973
47977
|
}), (_Object$assign = {}, _Object$assign["" + Link] = {
|
|
47974
47978
|
fontSize: "inherit",
|
|
47975
47979
|
lineHeight: "inherit"
|
|
47976
|
-
}, _Object$assign["
|
|
47977
|
-
|
|
47978
|
-
|
|
47980
|
+
}, _Object$assign["" + Text] = {
|
|
47981
|
+
fontSize: "inherit",
|
|
47982
|
+
lineHeight: "inherit"
|
|
47983
|
+
}, _Object$assign)), groupMinWidth && {
|
|
47984
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(" + groupMinWidth + ", 1fr))"
|
|
47985
|
+
}), typeof columns === "object" && Object.assign({}, Object.fromEntries(Object.entries(columns).map(function (_ref2) {
|
|
47986
|
+
var key = _ref2[0],
|
|
47987
|
+
value = _ref2[1];
|
|
47988
|
+
return ["@container (min-width: " + theme.breakpoints[key] + ")", {
|
|
47989
|
+
gridTemplateColumns: "repeat(" + value + ", minmax(0, 1fr))"
|
|
47990
|
+
}];
|
|
47991
|
+
}))));
|
|
47979
47992
|
});
|
|
47993
|
+
var DescriptionGroup = styled__default["default"].div.withConfig({
|
|
47994
|
+
displayName: "DescriptionListparts__DescriptionGroup",
|
|
47995
|
+
componentId: "sc-cia3w5-2"
|
|
47996
|
+
})(function (_ref3) {
|
|
47997
|
+
var _Object$assign2;
|
|
47980
47998
|
|
|
47981
|
-
|
|
47982
|
-
|
|
47983
|
-
|
|
47984
|
-
})(function (_ref) {
|
|
47985
|
-
var _Object$assign;
|
|
47999
|
+
var theme = _ref3.theme,
|
|
48000
|
+
rowSpan = _ref3.rowSpan,
|
|
48001
|
+
columnSpan = _ref3.columnSpan;
|
|
47986
48002
|
|
|
47987
|
-
var
|
|
48003
|
+
var _useDescriptionListCo2 = useDescriptionListContext(),
|
|
48004
|
+
descriptionTermMaxWidth = _useDescriptionListCo2.descriptionTermMaxWidth,
|
|
48005
|
+
layout = _useDescriptionListCo2.layout,
|
|
48006
|
+
showDivider = _useDescriptionListCo2.showDivider,
|
|
48007
|
+
autoLayoutBreakpoint = _useDescriptionListCo2.autoLayoutBreakpoint;
|
|
47988
48008
|
|
|
47989
|
-
|
|
47990
|
-
|
|
47991
|
-
|
|
47992
|
-
|
|
47993
|
-
|
|
48009
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
48010
|
+
display: "grid",
|
|
48011
|
+
gridTemplateRows: "auto 1fr"
|
|
48012
|
+
}, showDivider && {
|
|
48013
|
+
borderBottom: "1px solid " + theme.colors.lightGrey
|
|
48014
|
+
}), layout === "inline" && {
|
|
48015
|
+
gridTemplateColumns: "minmax(0, " + descriptionTermMaxWidth + ") 1fr"
|
|
48016
|
+
}), (layout === "stacked" || layout === "auto") && {
|
|
48017
|
+
gridTemplateColumns: "1fr"
|
|
48018
|
+
}), columnSpan && {
|
|
48019
|
+
gridColumn: "span " + columnSpan + " / span " + columnSpan
|
|
48020
|
+
}), rowSpan && {
|
|
48021
|
+
gridRow: "span " + rowSpan + " / span " + rowSpan
|
|
48022
|
+
}), (_Object$assign2 = {}, _Object$assign2["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign({}, layout === "auto" && {
|
|
48023
|
+
gridTemplateColumns: "minmax(0, min(50%, " + descriptionTermMaxWidth + ")) 1fr"
|
|
48024
|
+
}), _Object$assign2));
|
|
48025
|
+
});
|
|
48026
|
+
var DescriptionTerm = styled__default["default"].dt.withConfig({
|
|
48027
|
+
displayName: "DescriptionListparts__DescriptionTerm",
|
|
48028
|
+
componentId: "sc-cia3w5-3"
|
|
48029
|
+
})(function (_ref4) {
|
|
48030
|
+
var _Object$assign3;
|
|
48031
|
+
|
|
48032
|
+
var theme = _ref4.theme;
|
|
48033
|
+
|
|
48034
|
+
var _useDescriptionListCo3 = useDescriptionListContext(),
|
|
48035
|
+
showDivider = _useDescriptionListCo3.showDivider,
|
|
48036
|
+
layout = _useDescriptionListCo3.layout,
|
|
48037
|
+
density = _useDescriptionListCo3.density,
|
|
48038
|
+
autoLayoutBreakpoint = _useDescriptionListCo3.autoLayoutBreakpoint;
|
|
47994
48039
|
|
|
47995
48040
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
47996
|
-
// narrow stuff + non-auto layout
|
|
47997
48041
|
gridColumnStart: 1,
|
|
47998
48042
|
color: theme.colors.midGrey,
|
|
47999
48043
|
paddingLeft: theme.space.none,
|
|
@@ -48017,11 +48061,11 @@
|
|
|
48017
48061
|
borderTopWidth: "1px",
|
|
48018
48062
|
borderTopStyle: "solid",
|
|
48019
48063
|
borderTopColor: theme.colors.lightGrey
|
|
48020
|
-
}), (_Object$
|
|
48064
|
+
}), (_Object$assign3 = {
|
|
48021
48065
|
"&:first-child": {
|
|
48022
48066
|
border: "none"
|
|
48023
48067
|
}
|
|
48024
|
-
}, _Object$
|
|
48068
|
+
}, _Object$assign3["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
48025
48069
|
borderTopWidth: "1px",
|
|
48026
48070
|
borderTopStyle: "solid",
|
|
48027
48071
|
borderTopColor: theme.colors.lightGrey
|
|
@@ -48031,22 +48075,21 @@
|
|
|
48031
48075
|
paddingBottom: theme.space.x0_75
|
|
48032
48076
|
}), density === "relaxed" && layout !== "stacked" && {
|
|
48033
48077
|
paddingBottom: theme.space.x1_5
|
|
48034
|
-
}), _Object$
|
|
48078
|
+
}), _Object$assign3));
|
|
48035
48079
|
});
|
|
48080
|
+
var DescriptionDetails = styled__default["default"].dd.withConfig({
|
|
48081
|
+
displayName: "DescriptionListparts__DescriptionDetails",
|
|
48082
|
+
componentId: "sc-cia3w5-4"
|
|
48083
|
+
})(function (_ref5) {
|
|
48084
|
+
var _Object$assign4;
|
|
48036
48085
|
|
|
48037
|
-
|
|
48038
|
-
displayName: "DescriptionDetails",
|
|
48039
|
-
componentId: "sc-m5zvn4-0"
|
|
48040
|
-
})(function (_ref) {
|
|
48041
|
-
var _Object$assign;
|
|
48042
|
-
|
|
48043
|
-
var theme = _ref.theme;
|
|
48086
|
+
var theme = _ref5.theme;
|
|
48044
48087
|
|
|
48045
|
-
var
|
|
48046
|
-
autoLayoutBreakpoint =
|
|
48047
|
-
showDivider =
|
|
48048
|
-
density =
|
|
48049
|
-
layout =
|
|
48088
|
+
var _useDescriptionListCo4 = useDescriptionListContext(),
|
|
48089
|
+
autoLayoutBreakpoint = _useDescriptionListCo4.autoLayoutBreakpoint,
|
|
48090
|
+
showDivider = _useDescriptionListCo4.showDivider,
|
|
48091
|
+
density = _useDescriptionListCo4.density,
|
|
48092
|
+
layout = _useDescriptionListCo4.layout;
|
|
48050
48093
|
|
|
48051
48094
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
48052
48095
|
// narrow stuff + non-auto layout
|
|
@@ -48073,11 +48116,11 @@
|
|
|
48073
48116
|
borderTopWidth: "1px",
|
|
48074
48117
|
borderTopStyle: "solid",
|
|
48075
48118
|
borderTopColor: theme.colors.lightGrey
|
|
48076
|
-
}), (_Object$
|
|
48119
|
+
}), (_Object$assign4 = {
|
|
48077
48120
|
"&:nth-child(2)": {
|
|
48078
48121
|
border: "none"
|
|
48079
48122
|
}
|
|
48080
|
-
}, _Object$
|
|
48123
|
+
}, _Object$assign4["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
48081
48124
|
borderTopWidth: "1px",
|
|
48082
48125
|
borderTopStyle: "solid",
|
|
48083
48126
|
borderTopColor: theme.colors.lightGrey
|
|
@@ -48087,9 +48130,44 @@
|
|
|
48087
48130
|
paddingTop: theme.space.x0_75
|
|
48088
48131
|
}), density === "relaxed" && layout !== "stacked" && {
|
|
48089
48132
|
paddingTop: theme.space.x1_5
|
|
48090
|
-
}), _Object$
|
|
48133
|
+
}), _Object$assign4));
|
|
48091
48134
|
});
|
|
48092
48135
|
|
|
48136
|
+
function DescriptionList(_a) {
|
|
48137
|
+
var _a$descriptionTermMax = _a.descriptionTermMaxWidth,
|
|
48138
|
+
descriptionTermMaxWidth = _a$descriptionTermMax === void 0 ? "320px" : _a$descriptionTermMax,
|
|
48139
|
+
_a$layout = _a.layout,
|
|
48140
|
+
layout = _a$layout === void 0 ? "stacked" : _a$layout,
|
|
48141
|
+
_a$autoLayoutBreakpoi = _a.autoLayoutBreakpoint,
|
|
48142
|
+
autoLayoutBreakpoint = _a$autoLayoutBreakpoi === void 0 ? "640px" : _a$autoLayoutBreakpoi,
|
|
48143
|
+
_a$showDivider = _a.showDivider,
|
|
48144
|
+
showDivider = _a$showDivider === void 0 ? false : _a$showDivider,
|
|
48145
|
+
_a$density = _a.density,
|
|
48146
|
+
density = _a$density === void 0 ? "medium" : _a$density,
|
|
48147
|
+
_a$fontSize = _a.fontSize,
|
|
48148
|
+
fontSize = _a$fontSize === void 0 ? "medium" : _a$fontSize,
|
|
48149
|
+
_a$lineHeight = _a.lineHeight,
|
|
48150
|
+
lineHeight = _a$lineHeight === void 0 ? "base" : _a$lineHeight,
|
|
48151
|
+
children = _a.children,
|
|
48152
|
+
props = __rest$3(_a, ["descriptionTermMaxWidth", "layout", "autoLayoutBreakpoint", "showDivider", "density", "fontSize", "lineHeight", "children"]);
|
|
48153
|
+
|
|
48154
|
+
var _validateAndExtractGr = validateAndExtractGridProps(props),
|
|
48155
|
+
columns = _validateAndExtractGr.columns,
|
|
48156
|
+
groupMinWidth = _validateAndExtractGr.groupMinWidth;
|
|
48157
|
+
|
|
48158
|
+
return /*#__PURE__*/React__default["default"].createElement(DescriptionListProvider, {
|
|
48159
|
+
descriptionTermMaxWidth: descriptionTermMaxWidth,
|
|
48160
|
+
layout: layout,
|
|
48161
|
+
autoLayoutBreakpoint: autoLayoutBreakpoint,
|
|
48162
|
+
showDivider: showDivider,
|
|
48163
|
+
density: density,
|
|
48164
|
+
fontSize: fontSize,
|
|
48165
|
+
lineHeight: lineHeight,
|
|
48166
|
+
columns: columns,
|
|
48167
|
+
groupMinWidth: groupMinWidth
|
|
48168
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionListContainer, null, /*#__PURE__*/React__default["default"].createElement(DescriptionList$1, null, children)));
|
|
48169
|
+
}
|
|
48170
|
+
|
|
48093
48171
|
var Divider$1 = styled__default["default"].hr.withConfig({
|
|
48094
48172
|
displayName: "Divider",
|
|
48095
48173
|
componentId: "sc-1r789ib-0"
|
|
@@ -48342,7 +48420,7 @@
|
|
|
48342
48420
|
_a$closeOnOutsideClic = _a.closeOnOutsideClick,
|
|
48343
48421
|
closeOnOutsideClick = _a$closeOnOutsideClic === void 0 ? true : _a$closeOnOutsideClic,
|
|
48344
48422
|
_a$overlay = _a.overlay,
|
|
48345
|
-
overlay = _a$overlay === void 0 ?
|
|
48423
|
+
overlay = _a$overlay === void 0 ? "show" : _a$overlay,
|
|
48346
48424
|
_a$disableScroll = _a.disableScroll,
|
|
48347
48425
|
disableScroll = _a$disableScroll === void 0 ? true : _a$disableScroll,
|
|
48348
48426
|
_a$hideCloseButton = _a.hideCloseButton,
|
|
@@ -48418,9 +48496,9 @@
|
|
|
48418
48496
|
}
|
|
48419
48497
|
}
|
|
48420
48498
|
};
|
|
48421
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, closeOnOutsideClick && /*#__PURE__*/React__default["default"].createElement(AnimatePresence, null, isOpen && /*#__PURE__*/React__default["default"].createElement(SidebarOverlay, {
|
|
48499
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, closeOnOutsideClick && /*#__PURE__*/React__default["default"].createElement(AnimatePresence, null, isOpen && overlay !== "hide" && /*#__PURE__*/React__default["default"].createElement(SidebarOverlay, {
|
|
48422
48500
|
top: top,
|
|
48423
|
-
transparent:
|
|
48501
|
+
transparent: overlay === "transparent" || overlay === false,
|
|
48424
48502
|
transitionDuration: duration,
|
|
48425
48503
|
zIndex: zIndex,
|
|
48426
48504
|
onClick: closeOnOutsideClick && isOpen && onClose
|
|
@@ -53600,7 +53678,7 @@
|
|
|
53600
53678
|
medium: "4px",
|
|
53601
53679
|
large: "8px",
|
|
53602
53680
|
circle: "50%",
|
|
53603
|
-
|
|
53681
|
+
rounded: "9999px"
|
|
53604
53682
|
},
|
|
53605
53683
|
borders: []
|
|
53606
53684
|
},
|
|
@@ -53754,7 +53832,7 @@
|
|
|
53754
53832
|
medium: "4px",
|
|
53755
53833
|
large: "8px",
|
|
53756
53834
|
circle: "50%",
|
|
53757
|
-
|
|
53835
|
+
rounded: "9999px"
|
|
53758
53836
|
},
|
|
53759
53837
|
borders: []
|
|
53760
53838
|
},
|
|
@@ -53908,7 +53986,7 @@
|
|
|
53908
53986
|
medium: "5.6px",
|
|
53909
53987
|
large: "11.2px",
|
|
53910
53988
|
circle: "50%",
|
|
53911
|
-
|
|
53989
|
+
rounded: "9999px"
|
|
53912
53990
|
},
|
|
53913
53991
|
borders: []
|
|
53914
53992
|
},
|
|
@@ -54062,7 +54140,7 @@
|
|
|
54062
54140
|
medium: "3.6px",
|
|
54063
54141
|
large: "7.2px",
|
|
54064
54142
|
circle: "50%",
|
|
54065
|
-
|
|
54143
|
+
rounded: "9999px"
|
|
54066
54144
|
},
|
|
54067
54145
|
borders: []
|
|
54068
54146
|
}
|
|
@@ -54619,7 +54697,7 @@
|
|
|
54619
54697
|
minWidth: theme.space.x2,
|
|
54620
54698
|
height: theme.space.x2,
|
|
54621
54699
|
marginRight: theme.space.x1,
|
|
54622
|
-
borderRadius: theme.radii.
|
|
54700
|
+
borderRadius: theme.radii.rounded,
|
|
54623
54701
|
marginTop: theme.space.x0_5,
|
|
54624
54702
|
border: "solid 1px",
|
|
54625
54703
|
position: "relative",
|
|
@@ -54630,7 +54708,7 @@
|
|
|
54630
54708
|
width: "calc(" + theme.sizes.x1 + " - 2px)",
|
|
54631
54709
|
height: "calc(" + theme.sizes.x1 + " - 2px)",
|
|
54632
54710
|
background: theme.colors.white,
|
|
54633
|
-
borderRadius: theme.radii.
|
|
54711
|
+
borderRadius: theme.radii.rounded
|
|
54634
54712
|
}
|
|
54635
54713
|
};
|
|
54636
54714
|
}, function (_ref2) {
|
|
@@ -57432,7 +57510,7 @@
|
|
|
57432
57510
|
color: selected ? theme.colors.darkBlue : theme.colors.darkGrey,
|
|
57433
57511
|
cursor: "pointer",
|
|
57434
57512
|
border: "none",
|
|
57435
|
-
borderRadius: theme.radii.
|
|
57513
|
+
borderRadius: theme.radii.rounded,
|
|
57436
57514
|
fontSize: theme.fontSizes.base,
|
|
57437
57515
|
fontWeight: theme.fontWeights.medium,
|
|
57438
57516
|
lineHeight: theme.lineHeights.base,
|
|
@@ -58704,13 +58782,14 @@
|
|
|
58704
58782
|
requirementText = _a.requirementText,
|
|
58705
58783
|
helpText = _a.helpText,
|
|
58706
58784
|
toggled = _a.toggled,
|
|
58707
|
-
onClick = _a.onClick,
|
|
58785
|
+
_a$onClick = _a.onClick,
|
|
58786
|
+
onClick = _a$onClick === void 0 ? noop$2 : _a$onClick,
|
|
58708
58787
|
variant = _a.variant,
|
|
58709
58788
|
dataTestId = _a["data-testid"],
|
|
58710
58789
|
props = __rest$3(_a, ["disabled", "onChange", "onText", "offText", "className", "required", "error", "id", "labelText", "requirementText", "helpText", "toggled", "onClick", "variant", "data-testid"]);
|
|
58711
58790
|
|
|
58712
58791
|
var handleClick = function handleClick(e) {
|
|
58713
|
-
|
|
58792
|
+
onClick(e);
|
|
58714
58793
|
};
|
|
58715
58794
|
|
|
58716
58795
|
var componentVariant = useComponentVariant(variant);
|
|
@@ -58753,7 +58832,8 @@
|
|
|
58753
58832
|
|
|
58754
58833
|
var StatefulToggle = function StatefulToggle(_a) {
|
|
58755
58834
|
var defaultToggled = _a.defaultToggled,
|
|
58756
|
-
|
|
58835
|
+
_a$onClick2 = _a.onClick,
|
|
58836
|
+
onClick = _a$onClick2 === void 0 ? noop$2 : _a$onClick2,
|
|
58757
58837
|
disabled = _a.disabled,
|
|
58758
58838
|
props = __rest$3(_a, ["defaultToggled", "onClick", "disabled"]);
|
|
58759
58839
|
|
|
@@ -58763,7 +58843,7 @@
|
|
|
58763
58843
|
|
|
58764
58844
|
var handleClick = function handleClick(e) {
|
|
58765
58845
|
if (!disabled) setToggled(!toggled);
|
|
58766
|
-
|
|
58846
|
+
onClick(e);
|
|
58767
58847
|
};
|
|
58768
58848
|
|
|
58769
58849
|
return /*#__PURE__*/React__default["default"].createElement(BaseToggle, Object.assign({
|
|
@@ -59314,6 +59394,7 @@
|
|
|
59314
59394
|
exports.DatePicker = DatePicker;
|
|
59315
59395
|
exports.DateRange = DateRange;
|
|
59316
59396
|
exports.DescriptionDetails = DescriptionDetails;
|
|
59397
|
+
exports.DescriptionGroup = DescriptionGroup;
|
|
59317
59398
|
exports.DescriptionList = DescriptionList;
|
|
59318
59399
|
exports.DescriptionTerm = DescriptionTerm;
|
|
59319
59400
|
exports.DesktopMenu = DesktopMenu;
|