oa-componentbook 0.18.11 → 0.18.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/build/index.js
CHANGED
|
@@ -101,6 +101,12 @@ Object.defineProperty(exports, "CustomDatePicker", {
|
|
|
101
101
|
return _CustomDatePicker.default;
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
+
Object.defineProperty(exports, "CustomDetails", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function get() {
|
|
107
|
+
return _CustomDetails.default;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
104
110
|
Object.defineProperty(exports, "CustomDrawer", {
|
|
105
111
|
enumerable: true,
|
|
106
112
|
get: function get() {
|
|
@@ -342,6 +348,7 @@ Object.defineProperty(exports, "typographyOptions", {
|
|
|
342
348
|
}
|
|
343
349
|
});
|
|
344
350
|
var _Accordion = _interopRequireDefault(require("./components/oa-component-accordion/Accordion"));
|
|
351
|
+
var _CustomDetails = _interopRequireDefault(require("./widgets/oa-widget-custom-details/CustomDetails"));
|
|
345
352
|
var _BarChart = _interopRequireDefault(require("./components/oa-component-bar-chart/BarChart"));
|
|
346
353
|
var _BorderRadiusDemo = _interopRequireDefault(require("./components/oa-component-demo-border-radius/BorderRadiusDemo"));
|
|
347
354
|
var _ColorVariablesDemo = _interopRequireDefault(require("./components/oa-component-demo-color-variables/ColorVariablesDemo"));
|
|
@@ -8,5 +8,5 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _templateObject, _templateObject2;
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
-
const StyledContainer = exports.StyledContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\nlabel.ant-radio-wrapper:first-child{\n margin-inline-end: 32px;\n}\n .container {\n margin-bottom: 16px;\n }\n\n h4{\n padding: 0 0 4px;\n }\n.view-button {\n justify-content: start;\n}\n .ant-form-item.custom-radio-group {\n margin-bottom: 12px;\n }\n\n .ant-divider-horizontal {\n margin:
|
|
11
|
+
const StyledContainer = exports.StyledContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\nlabel.ant-radio-wrapper:first-child{\n margin-inline-end: 32px;\n}\n .container {\n margin-bottom: 16px;\n }\n\n h4{\n padding: 0 0 4px;\n }\n.view-button {\n justify-content: start;\n}\n .ant-form-item.custom-radio-group {\n margin-bottom: 12px;\n }\n\n .ant-divider-horizontal {\n margin: 0px 0px 16px;\n }\n\n .ant-form-item .ant-form-item-control-input {\n min-height: auto;\n }\n\n .ant-radio-group-outline {\n display: flex;\n justify-content: start;\n }\n\n textarea {\n padding: 16px; \n min-height: 88px;\n resize: none;\n border-radius: 4px;\n border: 1px solid var(--color-placeholder-text);\n }\n\n h5 {\n margin: 0 0 4px;\n color: var(--color-primary-content);\n }\n\n radiofield label {\n white-space: nowrap;\n }\n\n docdetailstag a {\n white-space: nowrap;\n }\n\n .view-button {\n margin: 8px 0 12px;\n }\n \n"])));
|
|
12
12
|
const RedText = exports.RedText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n color: red;\n margin-left: 4px;\n"])));
|
|
@@ -10,12 +10,15 @@ var _Typography = _interopRequireDefault(require("../../components/oa-component-
|
|
|
10
10
|
var _templateObject;
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
const Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 16px;\n border: 1px solid var(--color-divider);\n background: var(--color-secondary-background);\n"])));
|
|
13
|
+
const Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 16px;\n border: 1px solid var(--color-divider);\n background: var(--color-secondary-background);\n border-bottom: ", ";\n"])), props => props.showBorder ? '1px solid var(--color-divider)' : 'none');
|
|
14
14
|
function CustomDetails(_ref) {
|
|
15
15
|
let {
|
|
16
|
-
text
|
|
16
|
+
text,
|
|
17
|
+
showBorder
|
|
17
18
|
} = _ref;
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(Container,
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(Container, {
|
|
20
|
+
showBorder: showBorder
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
19
22
|
className: "type-t1-500",
|
|
20
23
|
color: "primary-content"
|
|
21
24
|
}, text));
|