@capillarytech/blaze-ui 0.1.6-alpha.31 → 0.1.6-alpha.32

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.
@@ -1,5 +1,9 @@
1
- import { defineMessages } from 'react-intl';
2
- export default defineMessages({
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _reactIntl = require("react-intl");
6
+ var _default = exports.default = (0, _reactIntl.defineMessages)({
3
7
  selectPlaceholder: {
4
8
  id: 'cap.unified.select.placeholder',
5
9
  defaultMessage: 'Select an option'
@@ -1,31 +1,36 @@
1
- import styled, { css } from 'styled-components';
2
- import * as styledVars from '../styled/variables';
3
- export const SelectWrapper = styled.div.withConfig({
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.selectStyles = exports.StyledInfoIcon = exports.SelectWrapper = exports.SelectAllCheckbox = exports.SearchInputWrapper = exports.NoResultWrapper = exports.HeaderWrapper = exports.DropdownFooter = void 0;
5
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var styledVars = _interopRequireWildcard(require("../styled/variables"));
7
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
8
+ const SelectWrapper = exports.SelectWrapper = _styledComponents.default.div.withConfig({
4
9
  displayName: "SelectWrapper",
5
10
  componentId: "sc-3v7xpu-0"
6
11
  })(["display:flex;flex-direction:column;gap:8px;width:100%;&.disabled{cursor:not-allowed;}"]);
7
- export const HeaderWrapper = styled.div.withConfig({
12
+ const HeaderWrapper = exports.HeaderWrapper = _styledComponents.default.div.withConfig({
8
13
  displayName: "HeaderWrapper",
9
14
  componentId: "sc-3v7xpu-1"
10
15
  })(["display:flex;align-items:center;gap:4px;&.disabled{opacity:0.5;cursor:not-allowed;}"]);
11
- export const DropdownFooter = styled.div.withConfig({
16
+ const DropdownFooter = exports.DropdownFooter = _styledComponents.default.div.withConfig({
12
17
  displayName: "DropdownFooter",
13
18
  componentId: "sc-3v7xpu-2"
14
19
  })(["display:flex;justify-content:space-between;align-items:center;padding:8px;border-top:1px solid #f0f0f0;.footer-buttons{display:flex;align-items:center;gap:8px;}.total-count{color:#8c8c8c;font-size:12px;}"]);
15
- export const SearchInputWrapper = styled.div.withConfig({
20
+ const SearchInputWrapper = exports.SearchInputWrapper = _styledComponents.default.div.withConfig({
16
21
  displayName: "SearchInputWrapper",
17
22
  componentId: "sc-3v7xpu-3"
18
23
  })(["padding:8px;border-bottom:1px solid #f0f0f0;"]);
19
- export const SelectAllCheckbox = styled.div.withConfig({
24
+ const SelectAllCheckbox = exports.SelectAllCheckbox = _styledComponents.default.div.withConfig({
20
25
  displayName: "SelectAllCheckbox",
21
26
  componentId: "sc-3v7xpu-4"
22
27
  })(["display:flex;align-items:center;padding:8px 12px;cursor:pointer;font-weight:500;border-bottom:1px solid #f0f0f0;user-select:none;input[type=\"checkbox\"]{cursor:pointer;}"]);
23
- export const NoResultWrapper = styled.div.withConfig({
28
+ const NoResultWrapper = exports.NoResultWrapper = _styledComponents.default.div.withConfig({
24
29
  displayName: "NoResultWrapper",
25
30
  componentId: "sc-3v7xpu-5"
26
31
  })(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#8c8c8c;font-size:14px;"]);
27
- export const StyledInfoIcon = styled.span.withConfig({
32
+ const StyledInfoIcon = exports.StyledInfoIcon = _styledComponents.default.span.withConfig({
28
33
  displayName: "StyledInfoIcon",
29
34
  componentId: "sc-3v7xpu-6"
30
35
  })(["color:", ";font-size:16px;cursor:help;margin-left:4px;display:flex;align-items:center;&:hover{color:", ";}&.disabled{cursor:not-allowed;&:hover{color:", ";}}"], styledVars.CAP_G05, styledVars.CAP_G03, styledVars.CAP_G05);
31
- export const selectStyles = css(["&.cap-unified-select{width:100%;font-family:", ";}&.cap-unified-select-container{.ant-select-prefix{margin-left:-5px !important;font-size:14px !important;font-weight:400 !important;color:#091E42 !important;line-height:20px !important;}}"], styledVars.FONT_FAMILY);
36
+ const selectStyles = exports.selectStyles = (0, _styledComponents.css)(["&.cap-unified-select{width:100%;font-family:", ";}&.cap-unified-select-container{.ant-select-prefix{margin-left:-5px !important;font-size:14px !important;font-weight:400 !important;color:#091E42 !important;line-height:20px !important;}}"], styledVars.FONT_FAMILY);
@@ -1,16 +1,22 @@
1
- function _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); }
2
- import React, { useMemo } from 'react';
3
- import { injectIntl } from 'react-intl';
4
- import enTranslation from '../translations/en';
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _react = _interopRequireWildcard(require("react"));
6
+ var _reactIntl = require("react-intl");
7
+ var _en = _interopRequireDefault(require("../translations/en"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
5
11
  const prefix = `blaze.components`;
6
12
  const LocaleHoc = (WrapperComponent, customProps) => {
7
13
  const Wrapper = props => {
8
14
  const componentName = customProps.key;
9
- const translatedDefaults = enTranslation[componentName];
15
+ const translatedDefaults = _en.default[componentName];
10
16
  const {
11
17
  intl
12
18
  } = props;
13
- const translatedProps = useMemo(() => {
19
+ const translatedProps = (0, _react.useMemo)(() => {
14
20
  if (!translatedDefaults) return {};
15
21
  return Object.keys(translatedDefaults).reduce((acc, key) => {
16
22
  const id = `${prefix}.${componentName}.${key}`;
@@ -26,8 +32,11 @@ const LocaleHoc = (WrapperComponent, customProps) => {
26
32
  return acc;
27
33
  }, {});
28
34
  }, [translatedDefaults, intl]);
29
- return /*#__PURE__*/React.createElement(WrapperComponent, _extends({}, translatedProps, props));
35
+ return (0, _jsxRuntime.jsx)(WrapperComponent, {
36
+ ...translatedProps,
37
+ ...props
38
+ });
30
39
  };
31
- return injectIntl(Wrapper);
40
+ return (0, _reactIntl.injectIntl)(Wrapper);
32
41
  };
33
- export default LocaleHoc;
42
+ var _default = exports.default = LocaleHoc;
@@ -1,14 +1,33 @@
1
- // Import and export all components
2
- export { default as CapInput } from './CapInput';
3
- export { default as CapTable } from './CapTable';
4
- export { default as CapTestSelect } from './CapTestSelect'; // Test component for Ant Design v5 integration
1
+ "use strict";
5
2
 
6
- // Export utilities
7
- export { default as LocaleHoc } from './LocaleHoc';
8
-
9
- // Export styled utilities
10
- export * as styledVars from './styled/variables';
11
- export { default as styled } from './styled';
12
-
13
- // Export utils
14
- export * from '../utils';
3
+ exports.__esModule = true;
4
+ var _exportNames = {
5
+ CapInput: true,
6
+ CapTable: true,
7
+ CapTestSelect: true,
8
+ LocaleHoc: true,
9
+ styled: true,
10
+ styledVars: true
11
+ };
12
+ exports.styledVars = exports.styled = exports.LocaleHoc = exports.CapTestSelect = exports.CapTable = exports.CapInput = void 0;
13
+ var _CapInput = _interopRequireDefault(require("./CapInput"));
14
+ exports.CapInput = _CapInput.default;
15
+ var _CapTable = _interopRequireDefault(require("./CapTable"));
16
+ exports.CapTable = _CapTable.default;
17
+ var _CapTestSelect = _interopRequireDefault(require("./CapTestSelect"));
18
+ exports.CapTestSelect = _CapTestSelect.default;
19
+ var _LocaleHoc = _interopRequireDefault(require("./LocaleHoc"));
20
+ exports.LocaleHoc = _LocaleHoc.default;
21
+ var _styledVars = _interopRequireWildcard(require("./styled/variables"));
22
+ exports.styledVars = _styledVars;
23
+ var _styled = _interopRequireDefault(require("./styled"));
24
+ exports.styled = _styled.default;
25
+ var _utils = require("../utils");
26
+ Object.keys(_utils).forEach(function (key) {
27
+ if (key === "default" || key === "__esModule") return;
28
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
29
+ if (key in exports && exports[key] === _utils[key]) return;
30
+ exports[key] = _utils[key];
31
+ });
32
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
33
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,5 +1,14 @@
1
- import * as styledVars from './variables';
2
- export default styledVars;
1
+ "use strict";
3
2
 
4
- // Re-export all variables for easier access
5
- export * from './variables';
3
+ exports.__esModule = true;
4
+ var _exportNames = {};
5
+ exports.default = void 0;
6
+ var styledVars = _interopRequireWildcard(require("./variables"));
7
+ Object.keys(styledVars).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
10
+ if (key in exports && exports[key] === styledVars[key]) return;
11
+ exports[key] = styledVars[key];
12
+ });
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ var _default = exports.default = styledVars;
@@ -1,88 +1,70 @@
1
- /* Color Palette */
2
- //========================
1
+ "use strict";
3
2
 
4
- // Primary colors
5
- export const CAP_PRIMARY = {
3
+ exports.__esModule = true;
4
+ exports.TRANSITION_ALL = exports.SPACING_32 = exports.SPACING_24 = exports.SPACING_16 = exports.SPACING_12 = exports.SPACING_08 = exports.SPACING_04 = exports.RADIUS_08 = exports.RADIUS_04 = exports.FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_MEDIUM = exports.FONT_FAMILY = exports.CAP_YELLOW02 = exports.CAP_YELLOW01 = exports.CAP_YELLOW = exports.CAP_WHITE = exports.CAP_SECONDARY = exports.CAP_RED03 = exports.CAP_RED02 = exports.CAP_RED01 = exports.CAP_RED = exports.CAP_PURPLE04 = exports.CAP_PURPLE03 = exports.CAP_PURPLE02 = exports.CAP_PURPLE01 = exports.CAP_PURPLE = exports.CAP_PRIMARY = exports.CAP_PINK = exports.CAP_PALE_GREY = exports.CAP_ORANGE02 = exports.CAP_ORANGE01 = exports.CAP_ORANGE = exports.CAP_ICON = exports.CAP_GREEN02 = exports.CAP_GREEN01 = exports.CAP_G20 = exports.CAP_G19 = exports.CAP_G18 = exports.CAP_G17 = exports.CAP_G16 = exports.CAP_G15 = exports.CAP_G14 = exports.CAP_G13 = exports.CAP_G12 = exports.CAP_G11 = exports.CAP_G10 = exports.CAP_G09 = exports.CAP_G08 = exports.CAP_G07 = exports.CAP_G06 = exports.CAP_G05 = exports.CAP_G04 = exports.CAP_G03 = exports.CAP_G02 = exports.CAP_G01 = exports.CAP_BLUE02 = exports.CAP_BLUE01 = exports.CAP_BLUE = exports.CAP_BLACK = void 0;
5
+ const CAP_PRIMARY = exports.CAP_PRIMARY = {
6
6
  base: "#47af46",
7
7
  hover: "#1f9a1d",
8
8
  disabled: "#a1d8a0"
9
9
  };
10
-
11
- // Secondary colors
12
- export const CAP_SECONDARY = {
10
+ const CAP_SECONDARY = exports.CAP_SECONDARY = {
13
11
  base: "#2466ea",
14
12
  light: 'rgba("#2466ea", 0.1)'
15
13
  };
16
-
17
- // Custom colors
18
- export const CAP_ORANGE = "#f87d23";
19
- export const CAP_ORANGE01 = "#ffe5d2";
20
- export const CAP_ORANGE02 = "#fa7d02";
21
- export const CAP_YELLOW = "#fec52e";
22
- export const CAP_YELLOW01 = "#e8bc25";
23
- export const CAP_YELLOW02 = "#f9d438";
24
- export const CAP_BLUE = "#23cccc";
25
- export const CAP_PURPLE = "#8517e5";
26
- export const CAP_PINK = "#e51fa3";
27
- export const CAP_RED = "#ea213a";
28
- export const CAP_ICON = "#7a869a";
29
- export const CAP_PALE_GREY = "#e9f0fe";
30
- export const CAP_BLUE01 = "#2466eb";
31
- export const CAP_BLUE02 = "#1d61ee";
32
- export const CAP_RED01 = "#e51fa3";
33
- export const CAP_RED02 = "#f5222d";
34
- export const CAP_RED03 = "#ed1b34";
35
- export const CAP_PURPLE01 = "#6563ff";
36
- export const CAP_PURPLE02 = "#a451ff";
37
- export const CAP_PURPLE03 = "#f2e7fe";
38
- export const CAP_PURPLE04 = "#d4e1fc";
39
- export const CAP_GREEN01 = "#6bb56b";
40
- export const CAP_GREEN02 = "#ecf7ec";
41
-
42
- // Grey colors
43
- export const CAP_G01 = "#091e42";
44
- export const CAP_G02 = "#253858";
45
- export const CAP_G03 = "#42526e";
46
- export const CAP_G04 = "#5e6c84";
47
- export const CAP_G05 = "#97a0af";
48
- export const CAP_G06 = "#b3bac5";
49
- export const CAP_G07 = "#dfe2e7";
50
- export const CAP_G08 = "#ebecf0";
51
- export const CAP_G09 = "#f4f5f7";
52
- export const CAP_G10 = "#fafbfc";
53
- export const CAP_G11 = "#7a869a";
54
- export const CAP_G12 = "#e8e8e8";
55
- export const CAP_G13 = "#ecece7";
56
- export const CAP_G14 = "#e9f0fd";
57
- export const CAP_G15 = "#efefef";
58
- export const CAP_G16 = "#2a2a2a";
59
- export const CAP_G17 = "#7F8185";
60
- export const CAP_G18 = "#dcdee2";
61
- export const CAP_G19 = "#8a9ab2";
62
- export const CAP_G20 = "#c2c2c2";
63
- export const CAP_WHITE = "#ffffff";
64
- export const CAP_BLACK = "#000000";
65
-
66
- /* Fonts */
67
- // ==============
68
- export const FONT_FAMILY = '"Roboto", sans-serif';
69
- export const FONT_WEIGHT_REGULAR = 400;
70
- export const FONT_WEIGHT_MEDIUM = 500;
71
-
72
- /* Spacing */
73
- // ==============
74
- export const SPACING_04 = "4px";
75
- export const SPACING_08 = "8px";
76
- export const SPACING_12 = "12px";
77
- export const SPACING_16 = "16px";
78
- export const SPACING_24 = "24px";
79
- export const SPACING_32 = "32px";
80
-
81
- /* Border Radius */
82
- // ==============
83
- export const RADIUS_04 = "4px";
84
- export const RADIUS_08 = "8px";
85
-
86
- /* Transition */
87
- // ==============
88
- export const TRANSITION_ALL = "all 0.3s ease";
14
+ const CAP_ORANGE = exports.CAP_ORANGE = "#f87d23";
15
+ const CAP_ORANGE01 = exports.CAP_ORANGE01 = "#ffe5d2";
16
+ const CAP_ORANGE02 = exports.CAP_ORANGE02 = "#fa7d02";
17
+ const CAP_YELLOW = exports.CAP_YELLOW = "#fec52e";
18
+ const CAP_YELLOW01 = exports.CAP_YELLOW01 = "#e8bc25";
19
+ const CAP_YELLOW02 = exports.CAP_YELLOW02 = "#f9d438";
20
+ const CAP_BLUE = exports.CAP_BLUE = "#23cccc";
21
+ const CAP_PURPLE = exports.CAP_PURPLE = "#8517e5";
22
+ const CAP_PINK = exports.CAP_PINK = "#e51fa3";
23
+ const CAP_RED = exports.CAP_RED = "#ea213a";
24
+ const CAP_ICON = exports.CAP_ICON = "#7a869a";
25
+ const CAP_PALE_GREY = exports.CAP_PALE_GREY = "#e9f0fe";
26
+ const CAP_BLUE01 = exports.CAP_BLUE01 = "#2466eb";
27
+ const CAP_BLUE02 = exports.CAP_BLUE02 = "#1d61ee";
28
+ const CAP_RED01 = exports.CAP_RED01 = "#e51fa3";
29
+ const CAP_RED02 = exports.CAP_RED02 = "#f5222d";
30
+ const CAP_RED03 = exports.CAP_RED03 = "#ed1b34";
31
+ const CAP_PURPLE01 = exports.CAP_PURPLE01 = "#6563ff";
32
+ const CAP_PURPLE02 = exports.CAP_PURPLE02 = "#a451ff";
33
+ const CAP_PURPLE03 = exports.CAP_PURPLE03 = "#f2e7fe";
34
+ const CAP_PURPLE04 = exports.CAP_PURPLE04 = "#d4e1fc";
35
+ const CAP_GREEN01 = exports.CAP_GREEN01 = "#6bb56b";
36
+ const CAP_GREEN02 = exports.CAP_GREEN02 = "#ecf7ec";
37
+ const CAP_G01 = exports.CAP_G01 = "#091e42";
38
+ const CAP_G02 = exports.CAP_G02 = "#253858";
39
+ const CAP_G03 = exports.CAP_G03 = "#42526e";
40
+ const CAP_G04 = exports.CAP_G04 = "#5e6c84";
41
+ const CAP_G05 = exports.CAP_G05 = "#97a0af";
42
+ const CAP_G06 = exports.CAP_G06 = "#b3bac5";
43
+ const CAP_G07 = exports.CAP_G07 = "#dfe2e7";
44
+ const CAP_G08 = exports.CAP_G08 = "#ebecf0";
45
+ const CAP_G09 = exports.CAP_G09 = "#f4f5f7";
46
+ const CAP_G10 = exports.CAP_G10 = "#fafbfc";
47
+ const CAP_G11 = exports.CAP_G11 = "#7a869a";
48
+ const CAP_G12 = exports.CAP_G12 = "#e8e8e8";
49
+ const CAP_G13 = exports.CAP_G13 = "#ecece7";
50
+ const CAP_G14 = exports.CAP_G14 = "#e9f0fd";
51
+ const CAP_G15 = exports.CAP_G15 = "#efefef";
52
+ const CAP_G16 = exports.CAP_G16 = "#2a2a2a";
53
+ const CAP_G17 = exports.CAP_G17 = "#7F8185";
54
+ const CAP_G18 = exports.CAP_G18 = "#dcdee2";
55
+ const CAP_G19 = exports.CAP_G19 = "#8a9ab2";
56
+ const CAP_G20 = exports.CAP_G20 = "#c2c2c2";
57
+ const CAP_WHITE = exports.CAP_WHITE = "#ffffff";
58
+ const CAP_BLACK = exports.CAP_BLACK = "#000000";
59
+ const FONT_FAMILY = exports.FONT_FAMILY = '"Roboto", sans-serif';
60
+ const FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_REGULAR = 400;
61
+ const FONT_WEIGHT_MEDIUM = exports.FONT_WEIGHT_MEDIUM = 500;
62
+ const SPACING_04 = exports.SPACING_04 = "4px";
63
+ const SPACING_08 = exports.SPACING_08 = "8px";
64
+ const SPACING_12 = exports.SPACING_12 = "12px";
65
+ const SPACING_16 = exports.SPACING_16 = "16px";
66
+ const SPACING_24 = exports.SPACING_24 = "24px";
67
+ const SPACING_32 = exports.SPACING_32 = "32px";
68
+ const RADIUS_04 = exports.RADIUS_04 = "4px";
69
+ const RADIUS_08 = exports.RADIUS_08 = "8px";
70
+ const TRANSITION_ALL = exports.TRANSITION_ALL = "all 0.3s ease";
@@ -1,4 +1,8 @@
1
- export default {
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = exports.default = {
2
6
  CapMultiSelect: {
3
7
  noResultsFoundText: "No results found",
4
8
  selectText: "Select",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/blaze-ui",
3
3
  "author": "Capillary Technologies",
4
- "version": "0.1.6-alpha.31",
4
+ "version": "0.1.6-alpha.32",
5
5
  "description": "Capillary UI component library with Ant Design v5",
6
6
  "main": "./components/index.js",
7
7
  "sideEffects": [
package/utils/index.js CHANGED
@@ -1 +1,7 @@
1
- export { default as withStyles } from './withStyles';
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.withStyles = void 0;
5
+ var _withStyles = _interopRequireDefault(require("./withStyles"));
6
+ exports.withStyles = _withStyles.default;
7
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,23 +1,15 @@
1
- import styled from 'styled-components';
1
+ "use strict";
2
2
 
3
- /**
4
- * Enhances a React component with additional styles using styled-components.
5
- * @param {React.ComponentType} WrappedComponent - The React component to enhance.
6
- * @param {TemplateStringsArray} styles - CSS styles as a TemplateStringsArray.
7
- * @returns {React.ComponentType} Returns the enhanced styled component.
8
- */
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
6
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
7
  const withStyledComponent = (WrappedComponent, styles) => {
10
- /**
11
- * A styled component generated by combining WrappedComponent with additional styles.
12
- * @type {React.ComponentType}
13
- */
14
- const StyledComponent = styled(WrappedComponent).withConfig({
8
+ const StyledComponent = (0, _styledComponents.default)(WrappedComponent).withConfig({
15
9
  displayName: "StyledComponent",
16
10
  componentId: "sc-ujcdm3-0"
17
11
  })(["", ";"], styles);
18
-
19
- // Set default props from the original component to the styled component
20
12
  StyledComponent.defaultProps = WrappedComponent.defaultProps;
21
13
  return StyledComponent;
22
14
  };
23
- export default withStyledComponent;
15
+ var _default = exports.default = withStyledComponent;