design-zystem 1.0.63 → 1.0.65
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
103
103
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
104
104
|
|
|
105
105
|
"use strict";
|
|
106
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Grid: () => (/* binding */ Grid),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"children\", \"onClick\"];\nvar _templateObject;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardPropGrid = function shouldForwardPropGrid(prop) {\n return ![\"height\", \"col\", \"row\", \"gap\", \"align\", \"margin\", \"padding\", \"textAlign\", \"justifyItems\", \"width\", \"onClick\"].includes(prop);\n};\nvar StyledGrid = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardPropGrid\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: grid;\\n height: \", \";\\n width: \", \";\\n grid-template-columns: \", \";\\n grid-template-rows: \", \";\\n gap: \", \";\\n margin: \", \";\\n padding: \", \";\\n align-items: \", \";\\n text-align: \", \";\\n justify-items: \", \";\\n cursor: \", \";\\n box-sizing: border-box;\\n\"])), function (props) {\n return props.height || \"auto\";\n}, function (props) {\n return props.width || \"
|
|
106
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Grid: () => (/* binding */ Grid),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"children\", \"onClick\"];\nvar _templateObject;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardPropGrid = function shouldForwardPropGrid(prop) {\n return ![\"height\", \"col\", \"row\", \"gap\", \"align\", \"margin\", \"padding\", \"textAlign\", \"justifyItems\", \"width\", \"onClick\"].includes(prop);\n};\nvar StyledGrid = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardPropGrid\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: grid;\\n height: \", \";\\n width: \", \";\\n grid-template-columns: \", \";\\n grid-template-rows: \", \";\\n gap: \", \";\\n margin: \", \";\\n padding: \", \";\\n align-items: \", \";\\n text-align: \", \";\\n justify-items: \", \";\\n cursor: \", \";\\n box-sizing: border-box;\\n\"])), function (props) {\n return props.height || \"auto\";\n}, function (props) {\n return props.width || \"100%\";\n}, function (props) {\n return props.col || \"1fr\";\n}, function (props) {\n return props.row || \"1fr\";\n}, function (props) {\n return props.gap || \"10px\";\n}, function (props) {\n return props.margin || \"0\";\n}, function (props) {\n return props.padding || \"0\";\n}, function (props) {\n return props.align || \"stretch\";\n}, function (props) {\n return props.textAlign || \"left\";\n}, function (props) {\n return props.justifyItems || \"stretch\";\n}, function (props) {\n return props.onClick ? \"pointer\" : \"auto\";\n});\nvar Grid = function Grid(props) {\n var children = props.children,\n onClick = props.onClick,\n otherProps = _objectWithoutProperties(props, _excluded);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledGrid, _extends({\n onClick: onClick\n }, otherProps), children);\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Grid);\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/Grid/Grid.jsx?");
|
|
107
107
|
|
|
108
108
|
/***/ }),
|
|
109
109
|
|
|
@@ -158,7 +158,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
158
158
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
159
159
|
|
|
160
160
|
"use strict";
|
|
161
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PageContainer: () => (/* binding */ PageContainer),\n/* harmony export */ StyledPageContainer: () => (/* binding */ StyledPageContainer)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"justifyContent\", \"alignItems\", \"noPaddingLeft\", \"noPaddingRight\", \"noPaddingBottom\", \"children\"];\nvar _templateObject;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardProp = function shouldForwardProp(prop) {\n return ![\"justifyContent\", \"alignItems\", \"noPaddingLeft\", \"noPaddingRight\", \"noPaddingBottom\"].includes(prop);\n};\nvar StyledPageContainer = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardProp\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: flex;\\n flex-direction: column;\\n height: calc(93vh - 16px);\\n max-height: calc(93vh - 16px);\\n width: calc(100vw - 291px);\\n padding: 16px;\\n overflow: auto;\\n background: #eee;\\n border-radius: 10px;\\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\\n justify-content: \", \";\\n align-items: \", \";\\n padding-left: \", \";\\n padding-right: \", \";\\n padding-bottom: \", \";\\n\"])), function (props) {\n return props.justifyContent || \"flex-start\";\n}, function (props) {\n return props.alignItems || \"flex-start\";\n}, function (props) {\n return props.noPaddingLeft ? \"0\" : \"16px\";\n}, function (props) {\n return props.noPaddingRight ? \"0\" : \"16px\";\n}, function (props) {\n return props.noPaddingBottom ? \"0\" : \"16px\";\n});\nvar PageContainer = function PageContainer(_ref) {\n var justifyContent = _ref.justifyContent,\n alignItems = _ref.alignItems,\n noPaddingLeft = _ref.noPaddingLeft,\n noPaddingRight = _ref.noPaddingRight,\n noPaddingBottom = _ref.noPaddingBottom,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledPageContainer, _extends({\n justifyContent: justifyContent,\n alignItems: alignItems,\n noPaddingLeft: noPaddingLeft,\n noPaddingRight: noPaddingRight,\n noPaddingBottom: noPaddingBottom\n }, rest), children);\n};\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/PageContainer/PageContainer.jsx?");
|
|
161
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PageContainer: () => (/* binding */ PageContainer),\n/* harmony export */ StyledPageContainer: () => (/* binding */ StyledPageContainer)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"justifyContent\", \"alignItems\", \"noPaddingLeft\", \"noPaddingRight\", \"noPaddingBottom\", \"children\"];\nvar _templateObject;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardProp = function shouldForwardProp(prop) {\n return ![\"justifyContent\", \"alignItems\", \"noPaddingLeft\", \"noPaddingRight\", \"noPaddingBottom\", \"noPaddingTop\", \"noPadding\"].includes(prop);\n};\nvar StyledPageContainer = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardProp\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: flex;\\n flex-direction: column;\\n height: calc(93vh - 16px);\\n max-height: calc(93vh - 16px);\\n width: calc(100vw - 291px);\\n padding: 16px;\\n overflow: auto;\\n background: #eee;\\n border-radius: 10px;\\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\\n justify-content: \", \";\\n align-items: \", \";\\n padding-left: \", \";\\n padding-right: \", \";\\n padding-bottom: \", \";\\n padding-top: \", \";\\n\"])), function (props) {\n return props.justifyContent || \"flex-start\";\n}, function (props) {\n return props.alignItems || \"flex-start\";\n}, function (props) {\n return props.noPaddingLeft || props.noPadding ? \"0\" : \"16px\";\n}, function (props) {\n return props.noPaddingRight || props.noPadding ? \"0\" : \"16px\";\n}, function (props) {\n return props.noPaddingBottom || props.noPadding ? \"0\" : \"16px\";\n}, function (props) {\n return props.noPaddingTop || props.noPadding ? \"0\" : \"16px\";\n});\nvar PageContainer = function PageContainer(_ref) {\n var justifyContent = _ref.justifyContent,\n alignItems = _ref.alignItems,\n noPaddingLeft = _ref.noPaddingLeft,\n noPaddingRight = _ref.noPaddingRight,\n noPaddingBottom = _ref.noPaddingBottom,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledPageContainer, _extends({\n justifyContent: justifyContent,\n alignItems: alignItems,\n noPaddingLeft: noPaddingLeft,\n noPaddingRight: noPaddingRight,\n noPaddingBottom: noPaddingBottom\n }, rest), children);\n};\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/PageContainer/PageContainer.jsx?");
|
|
162
162
|
|
|
163
163
|
/***/ }),
|
|
164
164
|
|
|
@@ -191,7 +191,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
191
191
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
192
192
|
|
|
193
193
|
"use strict";
|
|
194
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Table: () => (/* binding */ Table)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"children\"];\nvar _templateObject, _templateObject2;\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardPropTable = function shouldForwardPropTable(prop) {\n return ![\"backgroundColor\", \"height\"].includes(prop);\n};\nvar StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardPropTable\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: table;\\n width: 100%;\\n position: sticky;\\n top: 0;\\n background-color: \", \";\\n color: white;\\n z-index: 1;\\n
|
|
194
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Table: () => (/* binding */ Table)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\nvar _excluded = [\"children\"];\nvar _templateObject, _templateObject2;\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\nfunction _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }\n\n\nvar shouldForwardPropTable = function shouldForwardPropTable(prop) {\n return ![\"backgroundColor\", \"height\"].includes(prop);\n};\nvar StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardPropTable\n})(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n display: table;\\n width: 100%;\\n position: sticky;\\n top: 0;\\n background-color: \", \";\\n color: white;\\n z-index: 1;\\n\"])), function (props) {\n return props.backgroundColor || \"#fff\";\n});\nvar StyledContainer = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div.withConfig({\n shouldForwardProp: shouldForwardPropTable\n})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n width: 100%;\\n max-width: 100%;\\n overflow-x: auto;\\n height: \", \";\\n\"])), function (props) {\n return props.height || \"\";\n});\nvar Table = function Table(props) {\n var children = props.children,\n otherProps = _objectWithoutProperties(props, _excluded);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledContainer, otherProps, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledTable, otherProps, children));\n};\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/Table/Table.jsx?");
|
|
195
195
|
|
|
196
196
|
/***/ }),
|
|
197
197
|
|
|
@@ -301,7 +301,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
301
301
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
302
302
|
|
|
303
303
|
"use strict";
|
|
304
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Text: () => (/* binding */ Text),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _data_colors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/colors */ \"./src/data/colors.js\");\nvar _excluded = [\"size\", \"weight\", \"variant\", \"color\", \"children\", \"align\", \"margin\", \"padding\", \"fontStyle\", \"width\", \"height\", \"pointer\", \"p\", \"max\", \"wrap\", \"onClick\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\n\n\nvar textSizes = {\n xxs: \".4em\",\n xs: \".6em\",\n s: \".8em\",\n m: \"1em\",\n l: \"1.2em\",\n xl: \"1.4em\",\n xxl: \"1.6em\"\n};\nvar Text = function Text(props) {\n var size = props.size,\n weight = props.weight,\n variant = props.variant,\n color = props.color,\n children = props.children,\n align = props.align,\n margin = props.margin,\n padding = props.padding,\n fontStyle = props.fontStyle,\n width = props.width,\n height = props.height,\n pointer = props.pointer,\n p = props.p,\n max = props.max,\n wrap = props.wrap,\n onClick = props.onClick,\n rest = _objectWithoutProperties(props, _excluded);\n var textStyle = {\n fontSize: textSizes[size],\n fontWeight: weight,\n color: color || _data_colors__WEBPACK_IMPORTED_MODULE_1__[\"default\"][variant],\n textAlign: align || \"left\",\n margin: margin || 0,\n padding: padding || 0,\n width: width || \"auto\",\n height: height || \"auto\",\n fontStyle: fontStyle || \"normal\",\n cursor: onClick ? \"pointer\" : \"inherit\",\n maxWidth: max + \"ch\" || 0,\n display: max ? \"inline-block\" : \"\",\n overflow: \"hidden\",\n textOverflow: max ? \"ellipsis\" : \"\",\n whiteSpace: wrap || \"\"\n };\n if (p) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", _extends({\n style: textStyle,\n onClick: onClick\n }, rest), children);\n } else {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", _extends({\n style: textStyle,\n onClick: onClick\n }, rest), children);\n }\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/Text/Text.jsx?");
|
|
304
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Text: () => (/* binding */ Text),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _data_colors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../data/colors */ \"./src/data/colors.js\");\nvar _excluded = [\"size\", \"weight\", \"variant\", \"color\", \"children\", \"align\", \"margin\", \"padding\", \"fontStyle\", \"width\", \"height\", \"pointer\", \"p\", \"max\", \"wrap\", \"onClick\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }\n\n\nvar textSizes = {\n xxs: \".4em\",\n xs: \".6em\",\n s: \".8em\",\n m: \"1em\",\n l: \"1.2em\",\n xl: \"1.4em\",\n xxl: \"1.6em\"\n};\nvar Text = function Text(props) {\n var size = props.size,\n weight = props.weight,\n variant = props.variant,\n color = props.color,\n children = props.children,\n align = props.align,\n margin = props.margin,\n padding = props.padding,\n fontStyle = props.fontStyle,\n width = props.width,\n height = props.height,\n pointer = props.pointer,\n p = props.p,\n max = props.max,\n wrap = props.wrap,\n onClick = props.onClick,\n rest = _objectWithoutProperties(props, _excluded);\n var textStyle = {\n fontSize: textSizes[size] || size,\n fontWeight: weight,\n color: color || _data_colors__WEBPACK_IMPORTED_MODULE_1__[\"default\"][variant],\n textAlign: align || \"left\",\n margin: margin || 0,\n padding: padding || 0,\n width: width || \"auto\",\n height: height || \"auto\",\n fontStyle: fontStyle || \"normal\",\n cursor: onClick ? \"pointer\" : \"inherit\",\n maxWidth: max + \"ch\" || 0,\n display: max ? \"inline-block\" : \"\",\n overflow: \"hidden\",\n textOverflow: max ? \"ellipsis\" : \"\",\n whiteSpace: wrap || \"\"\n };\n if (p) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"p\", _extends({\n style: textStyle,\n onClick: onClick\n }, rest), children);\n } else {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", _extends({\n style: textStyle,\n onClick: onClick\n }, rest), children);\n }\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);\n\n//# sourceURL=webpack://YourLibraryName/./src/Components/Text/Text.jsx?");
|
|
305
305
|
|
|
306
306
|
/***/ }),
|
|
307
307
|
|