@nulogy/components 12.2.0 → 12.2.1
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 +195 -0
- package/dist/main.module.js +194 -2
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -45012,6 +45012,198 @@
|
|
|
45012
45012
|
}, props)));
|
|
45013
45013
|
});
|
|
45014
45014
|
|
|
45015
|
+
var DescriptionListContext = /*#__PURE__*/React__default["default"].createContext({});
|
|
45016
|
+
var useDescriptionListContext = function useDescriptionListContext() {
|
|
45017
|
+
return React__default["default"].useContext(DescriptionListContext);
|
|
45018
|
+
};
|
|
45019
|
+
function DescriptionListProvider(_a) {
|
|
45020
|
+
var children = _a.children,
|
|
45021
|
+
config = __rest$3(_a, ["children"]);
|
|
45022
|
+
|
|
45023
|
+
return /*#__PURE__*/React__default["default"].createElement(DescriptionListContext.Provider, {
|
|
45024
|
+
value: Object.assign({}, config)
|
|
45025
|
+
}, children);
|
|
45026
|
+
}
|
|
45027
|
+
|
|
45028
|
+
function DescriptionList(_ref) {
|
|
45029
|
+
var _ref$descriptionTermM = _ref.descriptionTermMaxWidth,
|
|
45030
|
+
descriptionTermMaxWidth = _ref$descriptionTermM === void 0 ? "50%" : _ref$descriptionTermM,
|
|
45031
|
+
_ref$layout = _ref.layout,
|
|
45032
|
+
layout = _ref$layout === void 0 ? "auto" : _ref$layout,
|
|
45033
|
+
_ref$showDivider = _ref.showDivider,
|
|
45034
|
+
showDivider = _ref$showDivider === void 0 ? false : _ref$showDivider,
|
|
45035
|
+
_ref$density = _ref.density,
|
|
45036
|
+
density = _ref$density === void 0 ? "medium" : _ref$density,
|
|
45037
|
+
_ref$fontSize = _ref.fontSize,
|
|
45038
|
+
fontSize = _ref$fontSize === void 0 ? "medium" : _ref$fontSize,
|
|
45039
|
+
_ref$lineHeight = _ref.lineHeight,
|
|
45040
|
+
lineHeight = _ref$lineHeight === void 0 ? "base" : _ref$lineHeight,
|
|
45041
|
+
_ref$autoLayoutBreakp = _ref.autoLayoutBreakpoint,
|
|
45042
|
+
autoLayoutBreakpoint = _ref$autoLayoutBreakp === void 0 ? "640px" : _ref$autoLayoutBreakp,
|
|
45043
|
+
children = _ref.children;
|
|
45044
|
+
return /*#__PURE__*/React__default["default"].createElement(DescriptionListProvider, {
|
|
45045
|
+
descriptionTermMaxWidth: descriptionTermMaxWidth,
|
|
45046
|
+
layout: layout,
|
|
45047
|
+
showDivider: showDivider,
|
|
45048
|
+
density: density,
|
|
45049
|
+
fontSize: fontSize,
|
|
45050
|
+
lineHeight: lineHeight,
|
|
45051
|
+
autoLayoutBreakpoint: autoLayoutBreakpoint
|
|
45052
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionListContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledDescriptionList, null, children)));
|
|
45053
|
+
}
|
|
45054
|
+
var DescriptionListContainer = styled__default["default"].div.withConfig({
|
|
45055
|
+
displayName: "DescriptionList__DescriptionListContainer",
|
|
45056
|
+
componentId: "sc-11s88xm-0"
|
|
45057
|
+
})({
|
|
45058
|
+
containerType: "inline-size",
|
|
45059
|
+
width: "100%"
|
|
45060
|
+
});
|
|
45061
|
+
var StyledDescriptionList = styled__default["default"].dl.withConfig({
|
|
45062
|
+
displayName: "DescriptionList__StyledDescriptionList",
|
|
45063
|
+
componentId: "sc-11s88xm-1"
|
|
45064
|
+
})(function (_ref2) {
|
|
45065
|
+
var _Object$assign;
|
|
45066
|
+
|
|
45067
|
+
var theme = _ref2.theme;
|
|
45068
|
+
|
|
45069
|
+
var _a, _b;
|
|
45070
|
+
|
|
45071
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45072
|
+
descriptionTermMaxWidth = _useDescriptionListCo.descriptionTermMaxWidth,
|
|
45073
|
+
layout = _useDescriptionListCo.layout,
|
|
45074
|
+
fontSize = _useDescriptionListCo.fontSize,
|
|
45075
|
+
lineHeight = _useDescriptionListCo.lineHeight,
|
|
45076
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint;
|
|
45077
|
+
|
|
45078
|
+
return Object.assign(Object.assign(Object.assign({
|
|
45079
|
+
margin: 0,
|
|
45080
|
+
display: "grid",
|
|
45081
|
+
fontSize: (_a = theme.fontSizes[fontSize]) !== null && _a !== void 0 ? _a : theme.fontSizes.medium,
|
|
45082
|
+
lineHeight: (_b = theme.lineHeights[lineHeight]) !== null && _b !== void 0 ? _b : theme.lineHeights.base
|
|
45083
|
+
}, layout === "inline" && {
|
|
45084
|
+
gridTemplateColumns: "minmax(0, " + descriptionTermMaxWidth + ") auto"
|
|
45085
|
+
}), (layout === "stacked" || layout === "auto") && {
|
|
45086
|
+
gridTemplateColumns: "1fr"
|
|
45087
|
+
}), (_Object$assign = {}, _Object$assign["" + Link] = {
|
|
45088
|
+
fontSize: "inherit",
|
|
45089
|
+
lineHeight: "inherit"
|
|
45090
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign({}, layout === "auto" && {
|
|
45091
|
+
gridTemplateColumns: "minmax(0, min(50%, " + descriptionTermMaxWidth + ")) auto"
|
|
45092
|
+
}), _Object$assign));
|
|
45093
|
+
});
|
|
45094
|
+
|
|
45095
|
+
var DescriptionTerm = styled.styled.dt.withConfig({
|
|
45096
|
+
displayName: "DescriptionTerm",
|
|
45097
|
+
componentId: "sc-fbwp2v-0"
|
|
45098
|
+
})(function (_ref) {
|
|
45099
|
+
var _Object$assign;
|
|
45100
|
+
|
|
45101
|
+
var theme = _ref.theme;
|
|
45102
|
+
|
|
45103
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45104
|
+
showDivider = _useDescriptionListCo.showDivider,
|
|
45105
|
+
density = _useDescriptionListCo.density,
|
|
45106
|
+
layout = _useDescriptionListCo.layout,
|
|
45107
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint;
|
|
45108
|
+
|
|
45109
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
45110
|
+
// narrow stuff + non-auto layout
|
|
45111
|
+
gridColumnStart: 1,
|
|
45112
|
+
color: theme.colors.midGrey,
|
|
45113
|
+
paddingLeft: theme.space.none,
|
|
45114
|
+
paddingRight: theme.space.none
|
|
45115
|
+
}, layout !== "inline" && {
|
|
45116
|
+
paddingBottom: theme.space.none
|
|
45117
|
+
}), density === "compact" && Object.assign({
|
|
45118
|
+
paddingTop: theme.space.x0_25
|
|
45119
|
+
}, layout === "inline" && {
|
|
45120
|
+
paddingBottom: theme.space.x0_25
|
|
45121
|
+
})), density === "medium" && Object.assign({
|
|
45122
|
+
paddingTop: theme.space.x0_75
|
|
45123
|
+
}, layout === "inline" && {
|
|
45124
|
+
paddingBottom: theme.space.x0_75
|
|
45125
|
+
})), density === "relaxed" && Object.assign({
|
|
45126
|
+
paddingTop: theme.space.x1_5,
|
|
45127
|
+
paddingBottom: theme.space.x0_25
|
|
45128
|
+
}, layout === "inline" && {
|
|
45129
|
+
paddingBottom: theme.space.x1_5
|
|
45130
|
+
})), showDivider && {
|
|
45131
|
+
borderTopWidth: "1px",
|
|
45132
|
+
borderTopStyle: "solid",
|
|
45133
|
+
borderTopColor: theme.colors.lightGrey
|
|
45134
|
+
}), (_Object$assign = {
|
|
45135
|
+
"&:first-child": {
|
|
45136
|
+
border: "none"
|
|
45137
|
+
}
|
|
45138
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
45139
|
+
borderTopWidth: "1px",
|
|
45140
|
+
borderTopStyle: "solid",
|
|
45141
|
+
borderTopColor: theme.colors.lightGrey
|
|
45142
|
+
}), density === "compact" && layout !== "stacked" && {
|
|
45143
|
+
paddingBottom: theme.space.x0_25
|
|
45144
|
+
}), density === "medium" && layout !== "stacked" && {
|
|
45145
|
+
paddingBottom: theme.space.x0_75
|
|
45146
|
+
}), density === "relaxed" && layout !== "stacked" && {
|
|
45147
|
+
paddingBottom: theme.space.x1_5
|
|
45148
|
+
}), _Object$assign));
|
|
45149
|
+
});
|
|
45150
|
+
|
|
45151
|
+
var DescriptionDetails = styled.styled.dd.withConfig({
|
|
45152
|
+
displayName: "DescriptionDetails",
|
|
45153
|
+
componentId: "sc-m5zvn4-0"
|
|
45154
|
+
})(function (_ref) {
|
|
45155
|
+
var _Object$assign;
|
|
45156
|
+
|
|
45157
|
+
var theme = _ref.theme;
|
|
45158
|
+
|
|
45159
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45160
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint,
|
|
45161
|
+
showDivider = _useDescriptionListCo.showDivider,
|
|
45162
|
+
density = _useDescriptionListCo.density,
|
|
45163
|
+
layout = _useDescriptionListCo.layout;
|
|
45164
|
+
|
|
45165
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
45166
|
+
// narrow stuff + non-auto layout
|
|
45167
|
+
margin: 0,
|
|
45168
|
+
color: theme.colors.black,
|
|
45169
|
+
paddingLeft: theme.space.none,
|
|
45170
|
+
paddingRight: theme.space.none
|
|
45171
|
+
}, layout !== "inline" && {
|
|
45172
|
+
paddingTop: theme.space.none
|
|
45173
|
+
}), density === "compact" && Object.assign({
|
|
45174
|
+
paddingBottom: theme.space.x0_25
|
|
45175
|
+
}, layout === "inline" && {
|
|
45176
|
+
paddingTop: theme.space.x0_25
|
|
45177
|
+
})), density === "medium" && Object.assign({
|
|
45178
|
+
paddingBottom: theme.space.x0_75
|
|
45179
|
+
}, layout === "inline" && {
|
|
45180
|
+
paddingTop: theme.space.x0_75
|
|
45181
|
+
})), density === "relaxed" && Object.assign({
|
|
45182
|
+
paddingBottom: theme.space.x1_5,
|
|
45183
|
+
paddingTop: theme.space.x0_25
|
|
45184
|
+
}, layout === "inline" && {
|
|
45185
|
+
paddingTop: theme.space.x1_5
|
|
45186
|
+
})), showDivider && layout === "inline" && {
|
|
45187
|
+
borderTopWidth: "1px",
|
|
45188
|
+
borderTopStyle: "solid",
|
|
45189
|
+
borderTopColor: theme.colors.lightGrey
|
|
45190
|
+
}), (_Object$assign = {
|
|
45191
|
+
"&:nth-child(2)": {
|
|
45192
|
+
border: "none"
|
|
45193
|
+
}
|
|
45194
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
45195
|
+
borderTopWidth: "1px",
|
|
45196
|
+
borderTopStyle: "solid",
|
|
45197
|
+
borderTopColor: theme.colors.lightGrey
|
|
45198
|
+
}), density === "compact" && layout !== "stacked" && {
|
|
45199
|
+
paddingTop: theme.space.x0_25
|
|
45200
|
+
}), density === "medium" && layout !== "stacked" && {
|
|
45201
|
+
paddingTop: theme.space.x0_75
|
|
45202
|
+
}), density === "relaxed" && layout !== "stacked" && {
|
|
45203
|
+
paddingTop: theme.space.x1_5
|
|
45204
|
+
}), _Object$assign));
|
|
45205
|
+
});
|
|
45206
|
+
|
|
45015
45207
|
var Divider$1 = styled__default["default"].hr.withConfig({
|
|
45016
45208
|
displayName: "Divider",
|
|
45017
45209
|
componentId: "sc-1r789ib-0"
|
|
@@ -54930,6 +55122,9 @@
|
|
|
54930
55122
|
exports.DangerButton = DangerButton;
|
|
54931
55123
|
exports.DatePicker = DatePicker;
|
|
54932
55124
|
exports.DateRange = DateRange;
|
|
55125
|
+
exports.DescriptionDetails = DescriptionDetails;
|
|
55126
|
+
exports.DescriptionList = DescriptionList;
|
|
55127
|
+
exports.DescriptionTerm = DescriptionTerm;
|
|
54933
55128
|
exports.DesktopMenu = DesktopMenu;
|
|
54934
55129
|
exports.Divider = Divider$1;
|
|
54935
55130
|
exports.DropdownButton = DropdownButton;
|
package/dist/main.module.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { createContext, useContext, useRef, useEffect, createElement, useLayoutEffect, useCallback, useMemo, forwardRef, Fragment, Component as Component$1, useState, cloneElement, Children, isValidElement, PureComponent, useImperativeHandle } from 'react';
|
|
3
|
-
import styled, { useTheme, createGlobalStyle, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
3
|
+
import styled, { useTheme, createGlobalStyle, styled as styled$1, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
4
4
|
import assign$1 from 'object-assign';
|
|
5
5
|
import icons from '@nulogy/icons';
|
|
6
6
|
import _extends$5 from '@babel/runtime/helpers/extends';
|
|
@@ -44995,6 +44995,198 @@ var DateRange = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
44995
44995
|
}, props)));
|
|
44996
44996
|
});
|
|
44997
44997
|
|
|
44998
|
+
var DescriptionListContext = /*#__PURE__*/React__default.createContext({});
|
|
44999
|
+
var useDescriptionListContext = function useDescriptionListContext() {
|
|
45000
|
+
return React__default.useContext(DescriptionListContext);
|
|
45001
|
+
};
|
|
45002
|
+
function DescriptionListProvider(_a) {
|
|
45003
|
+
var children = _a.children,
|
|
45004
|
+
config = __rest$3(_a, ["children"]);
|
|
45005
|
+
|
|
45006
|
+
return /*#__PURE__*/React__default.createElement(DescriptionListContext.Provider, {
|
|
45007
|
+
value: Object.assign({}, config)
|
|
45008
|
+
}, children);
|
|
45009
|
+
}
|
|
45010
|
+
|
|
45011
|
+
function DescriptionList(_ref) {
|
|
45012
|
+
var _ref$descriptionTermM = _ref.descriptionTermMaxWidth,
|
|
45013
|
+
descriptionTermMaxWidth = _ref$descriptionTermM === void 0 ? "50%" : _ref$descriptionTermM,
|
|
45014
|
+
_ref$layout = _ref.layout,
|
|
45015
|
+
layout = _ref$layout === void 0 ? "auto" : _ref$layout,
|
|
45016
|
+
_ref$showDivider = _ref.showDivider,
|
|
45017
|
+
showDivider = _ref$showDivider === void 0 ? false : _ref$showDivider,
|
|
45018
|
+
_ref$density = _ref.density,
|
|
45019
|
+
density = _ref$density === void 0 ? "medium" : _ref$density,
|
|
45020
|
+
_ref$fontSize = _ref.fontSize,
|
|
45021
|
+
fontSize = _ref$fontSize === void 0 ? "medium" : _ref$fontSize,
|
|
45022
|
+
_ref$lineHeight = _ref.lineHeight,
|
|
45023
|
+
lineHeight = _ref$lineHeight === void 0 ? "base" : _ref$lineHeight,
|
|
45024
|
+
_ref$autoLayoutBreakp = _ref.autoLayoutBreakpoint,
|
|
45025
|
+
autoLayoutBreakpoint = _ref$autoLayoutBreakp === void 0 ? "640px" : _ref$autoLayoutBreakp,
|
|
45026
|
+
children = _ref.children;
|
|
45027
|
+
return /*#__PURE__*/React__default.createElement(DescriptionListProvider, {
|
|
45028
|
+
descriptionTermMaxWidth: descriptionTermMaxWidth,
|
|
45029
|
+
layout: layout,
|
|
45030
|
+
showDivider: showDivider,
|
|
45031
|
+
density: density,
|
|
45032
|
+
fontSize: fontSize,
|
|
45033
|
+
lineHeight: lineHeight,
|
|
45034
|
+
autoLayoutBreakpoint: autoLayoutBreakpoint
|
|
45035
|
+
}, /*#__PURE__*/React__default.createElement(DescriptionListContainer, null, /*#__PURE__*/React__default.createElement(StyledDescriptionList, null, children)));
|
|
45036
|
+
}
|
|
45037
|
+
var DescriptionListContainer = styled.div.withConfig({
|
|
45038
|
+
displayName: "DescriptionList__DescriptionListContainer",
|
|
45039
|
+
componentId: "sc-11s88xm-0"
|
|
45040
|
+
})({
|
|
45041
|
+
containerType: "inline-size",
|
|
45042
|
+
width: "100%"
|
|
45043
|
+
});
|
|
45044
|
+
var StyledDescriptionList = styled.dl.withConfig({
|
|
45045
|
+
displayName: "DescriptionList__StyledDescriptionList",
|
|
45046
|
+
componentId: "sc-11s88xm-1"
|
|
45047
|
+
})(function (_ref2) {
|
|
45048
|
+
var _Object$assign;
|
|
45049
|
+
|
|
45050
|
+
var theme = _ref2.theme;
|
|
45051
|
+
|
|
45052
|
+
var _a, _b;
|
|
45053
|
+
|
|
45054
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45055
|
+
descriptionTermMaxWidth = _useDescriptionListCo.descriptionTermMaxWidth,
|
|
45056
|
+
layout = _useDescriptionListCo.layout,
|
|
45057
|
+
fontSize = _useDescriptionListCo.fontSize,
|
|
45058
|
+
lineHeight = _useDescriptionListCo.lineHeight,
|
|
45059
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint;
|
|
45060
|
+
|
|
45061
|
+
return Object.assign(Object.assign(Object.assign({
|
|
45062
|
+
margin: 0,
|
|
45063
|
+
display: "grid",
|
|
45064
|
+
fontSize: (_a = theme.fontSizes[fontSize]) !== null && _a !== void 0 ? _a : theme.fontSizes.medium,
|
|
45065
|
+
lineHeight: (_b = theme.lineHeights[lineHeight]) !== null && _b !== void 0 ? _b : theme.lineHeights.base
|
|
45066
|
+
}, layout === "inline" && {
|
|
45067
|
+
gridTemplateColumns: "minmax(0, " + descriptionTermMaxWidth + ") auto"
|
|
45068
|
+
}), (layout === "stacked" || layout === "auto") && {
|
|
45069
|
+
gridTemplateColumns: "1fr"
|
|
45070
|
+
}), (_Object$assign = {}, _Object$assign["" + Link] = {
|
|
45071
|
+
fontSize: "inherit",
|
|
45072
|
+
lineHeight: "inherit"
|
|
45073
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign({}, layout === "auto" && {
|
|
45074
|
+
gridTemplateColumns: "minmax(0, min(50%, " + descriptionTermMaxWidth + ")) auto"
|
|
45075
|
+
}), _Object$assign));
|
|
45076
|
+
});
|
|
45077
|
+
|
|
45078
|
+
var DescriptionTerm = styled$1.dt.withConfig({
|
|
45079
|
+
displayName: "DescriptionTerm",
|
|
45080
|
+
componentId: "sc-fbwp2v-0"
|
|
45081
|
+
})(function (_ref) {
|
|
45082
|
+
var _Object$assign;
|
|
45083
|
+
|
|
45084
|
+
var theme = _ref.theme;
|
|
45085
|
+
|
|
45086
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45087
|
+
showDivider = _useDescriptionListCo.showDivider,
|
|
45088
|
+
density = _useDescriptionListCo.density,
|
|
45089
|
+
layout = _useDescriptionListCo.layout,
|
|
45090
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint;
|
|
45091
|
+
|
|
45092
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
45093
|
+
// narrow stuff + non-auto layout
|
|
45094
|
+
gridColumnStart: 1,
|
|
45095
|
+
color: theme.colors.midGrey,
|
|
45096
|
+
paddingLeft: theme.space.none,
|
|
45097
|
+
paddingRight: theme.space.none
|
|
45098
|
+
}, layout !== "inline" && {
|
|
45099
|
+
paddingBottom: theme.space.none
|
|
45100
|
+
}), density === "compact" && Object.assign({
|
|
45101
|
+
paddingTop: theme.space.x0_25
|
|
45102
|
+
}, layout === "inline" && {
|
|
45103
|
+
paddingBottom: theme.space.x0_25
|
|
45104
|
+
})), density === "medium" && Object.assign({
|
|
45105
|
+
paddingTop: theme.space.x0_75
|
|
45106
|
+
}, layout === "inline" && {
|
|
45107
|
+
paddingBottom: theme.space.x0_75
|
|
45108
|
+
})), density === "relaxed" && Object.assign({
|
|
45109
|
+
paddingTop: theme.space.x1_5,
|
|
45110
|
+
paddingBottom: theme.space.x0_25
|
|
45111
|
+
}, layout === "inline" && {
|
|
45112
|
+
paddingBottom: theme.space.x1_5
|
|
45113
|
+
})), showDivider && {
|
|
45114
|
+
borderTopWidth: "1px",
|
|
45115
|
+
borderTopStyle: "solid",
|
|
45116
|
+
borderTopColor: theme.colors.lightGrey
|
|
45117
|
+
}), (_Object$assign = {
|
|
45118
|
+
"&:first-child": {
|
|
45119
|
+
border: "none"
|
|
45120
|
+
}
|
|
45121
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
45122
|
+
borderTopWidth: "1px",
|
|
45123
|
+
borderTopStyle: "solid",
|
|
45124
|
+
borderTopColor: theme.colors.lightGrey
|
|
45125
|
+
}), density === "compact" && layout !== "stacked" && {
|
|
45126
|
+
paddingBottom: theme.space.x0_25
|
|
45127
|
+
}), density === "medium" && layout !== "stacked" && {
|
|
45128
|
+
paddingBottom: theme.space.x0_75
|
|
45129
|
+
}), density === "relaxed" && layout !== "stacked" && {
|
|
45130
|
+
paddingBottom: theme.space.x1_5
|
|
45131
|
+
}), _Object$assign));
|
|
45132
|
+
});
|
|
45133
|
+
|
|
45134
|
+
var DescriptionDetails = styled$1.dd.withConfig({
|
|
45135
|
+
displayName: "DescriptionDetails",
|
|
45136
|
+
componentId: "sc-m5zvn4-0"
|
|
45137
|
+
})(function (_ref) {
|
|
45138
|
+
var _Object$assign;
|
|
45139
|
+
|
|
45140
|
+
var theme = _ref.theme;
|
|
45141
|
+
|
|
45142
|
+
var _useDescriptionListCo = useDescriptionListContext(),
|
|
45143
|
+
autoLayoutBreakpoint = _useDescriptionListCo.autoLayoutBreakpoint,
|
|
45144
|
+
showDivider = _useDescriptionListCo.showDivider,
|
|
45145
|
+
density = _useDescriptionListCo.density,
|
|
45146
|
+
layout = _useDescriptionListCo.layout;
|
|
45147
|
+
|
|
45148
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
45149
|
+
// narrow stuff + non-auto layout
|
|
45150
|
+
margin: 0,
|
|
45151
|
+
color: theme.colors.black,
|
|
45152
|
+
paddingLeft: theme.space.none,
|
|
45153
|
+
paddingRight: theme.space.none
|
|
45154
|
+
}, layout !== "inline" && {
|
|
45155
|
+
paddingTop: theme.space.none
|
|
45156
|
+
}), density === "compact" && Object.assign({
|
|
45157
|
+
paddingBottom: theme.space.x0_25
|
|
45158
|
+
}, layout === "inline" && {
|
|
45159
|
+
paddingTop: theme.space.x0_25
|
|
45160
|
+
})), density === "medium" && Object.assign({
|
|
45161
|
+
paddingBottom: theme.space.x0_75
|
|
45162
|
+
}, layout === "inline" && {
|
|
45163
|
+
paddingTop: theme.space.x0_75
|
|
45164
|
+
})), density === "relaxed" && Object.assign({
|
|
45165
|
+
paddingBottom: theme.space.x1_5,
|
|
45166
|
+
paddingTop: theme.space.x0_25
|
|
45167
|
+
}, layout === "inline" && {
|
|
45168
|
+
paddingTop: theme.space.x1_5
|
|
45169
|
+
})), showDivider && layout === "inline" && {
|
|
45170
|
+
borderTopWidth: "1px",
|
|
45171
|
+
borderTopStyle: "solid",
|
|
45172
|
+
borderTopColor: theme.colors.lightGrey
|
|
45173
|
+
}), (_Object$assign = {
|
|
45174
|
+
"&:nth-child(2)": {
|
|
45175
|
+
border: "none"
|
|
45176
|
+
}
|
|
45177
|
+
}, _Object$assign["@container (min-width: " + autoLayoutBreakpoint + ")"] = Object.assign(Object.assign(Object.assign(Object.assign({}, showDivider && layout !== "stacked" && {
|
|
45178
|
+
borderTopWidth: "1px",
|
|
45179
|
+
borderTopStyle: "solid",
|
|
45180
|
+
borderTopColor: theme.colors.lightGrey
|
|
45181
|
+
}), density === "compact" && layout !== "stacked" && {
|
|
45182
|
+
paddingTop: theme.space.x0_25
|
|
45183
|
+
}), density === "medium" && layout !== "stacked" && {
|
|
45184
|
+
paddingTop: theme.space.x0_75
|
|
45185
|
+
}), density === "relaxed" && layout !== "stacked" && {
|
|
45186
|
+
paddingTop: theme.space.x1_5
|
|
45187
|
+
}), _Object$assign));
|
|
45188
|
+
});
|
|
45189
|
+
|
|
44998
45190
|
var Divider$1 = styled.hr.withConfig({
|
|
44999
45191
|
displayName: "Divider",
|
|
45000
45192
|
componentId: "sc-1r789ib-0"
|
|
@@ -54890,4 +55082,4 @@ var TruncatedText = function TruncatedText(_a) {
|
|
|
54890
55082
|
}, props), children);
|
|
54891
55083
|
};
|
|
54892
55084
|
|
|
54893
|
-
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header$1 as Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay$1 as Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TopBar, TruncatedText, addStyledProps, legacy as desktop, phone, tablet, themes, toast, useMediaQuery, useWindowDimensions };
|
|
55085
|
+
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DescriptionDetails, DescriptionList, DescriptionTerm, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header$1 as Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay$1 as Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TopBar, TruncatedText, addStyledProps, legacy as desktop, phone, tablet, themes, toast, useMediaQuery, useWindowDimensions };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { Card, CardSet } from "./Card";
|
|
|
15
15
|
export { Checkbox, CheckboxGroup } from "./Checkbox";
|
|
16
16
|
export { DatePicker } from "./DatePicker";
|
|
17
17
|
export { DateRange } from "./DateRange";
|
|
18
|
+
export { DescriptionDetails, DescriptionList, DescriptionTerm } from "./DescriptionList";
|
|
18
19
|
export { Divider } from "./Divider";
|
|
19
20
|
export { DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText } from "./DropdownMenu";
|
|
20
21
|
export { FieldLabel, HelpText, RequirementText } from "./FieldLabel";
|