@smart-react-components/ui 2.1.0-alpha-1 → 2.1.0-alpha-2

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.
@@ -53,7 +53,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
53
53
  }
54
54
  `,
55
55
  }))(({ theme, hasIconLeft, hasIconRight, isClickable, isFixedSize, isOutline, isSoft, palette, shape }) => {
56
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114;
56
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123, _124, _125, _126, _127, _128, _129, _130, _131, _132, _133, _134, _135, _136, _137, _138, _139, _140, _141, _142, _143, _144, _145, _146, _147;
57
57
  return `
58
58
  display: inline-flex;
59
59
  font-family: ${theme.$.fontFamily.badge};
@@ -175,22 +175,22 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
175
175
  }
176
176
 
177
177
  .src-badge-icon {
178
- background: ${theme.$.palette[palette].dynamicer};
179
- color: ${theme.$.palette[palette].font};
180
- fill: ${theme.$.palette[palette].font};
178
+ background: ${(_101 = (_100 = (_99 = (_98 = (_97 = theme.$.palette[palette].badge) === null || _97 === void 0 ? void 0 : _97.outline) === null || _98 === void 0 ? void 0 : _98.active) === null || _99 === void 0 ? void 0 : _99.icon) === null || _100 === void 0 ? void 0 : _100.background) !== null && _101 !== void 0 ? _101 : theme.$.palette[palette].dynamicer};
179
+ color: ${(_106 = (_105 = (_104 = (_103 = (_102 = theme.$.palette[palette].badge) === null || _102 === void 0 ? void 0 : _102.outline) === null || _103 === void 0 ? void 0 : _103.active) === null || _104 === void 0 ? void 0 : _104.icon) === null || _105 === void 0 ? void 0 : _105.font) !== null && _106 !== void 0 ? _106 : theme.$.palette[palette].font};
180
+ fill: ${(_111 = (_110 = (_109 = (_108 = (_107 = theme.$.palette[palette].badge) === null || _107 === void 0 ? void 0 : _107.outline) === null || _108 === void 0 ? void 0 : _108.active) === null || _109 === void 0 ? void 0 : _109.icon) === null || _110 === void 0 ? void 0 : _110.font) !== null && _111 !== void 0 ? _111 : theme.$.palette[palette].font};
181
181
  }
182
182
  `
183
183
  : `
184
184
  .src-badge-content {
185
- background: ${(_102 = (_101 = (_100 = (_99 = (_98 = (_97 = theme.$.palette[palette]) === null || _97 === void 0 ? void 0 : _97.badge) === null || _98 === void 0 ? void 0 : _98.soft) === null || _99 === void 0 ? void 0 : _99.outline) === null || _100 === void 0 ? void 0 : _100.active) === null || _101 === void 0 ? void 0 : _101.background) !== null && _102 !== void 0 ? _102 : theme.$.palette[palette].soft};
186
- color: ${(_108 = (_107 = (_106 = (_105 = (_104 = (_103 = theme.$.palette[palette]) === null || _103 === void 0 ? void 0 : _103.badge) === null || _104 === void 0 ? void 0 : _104.soft) === null || _105 === void 0 ? void 0 : _105.outline) === null || _106 === void 0 ? void 0 : _106.active) === null || _107 === void 0 ? void 0 : _107.font) !== null && _108 !== void 0 ? _108 : theme.$.palette[palette].softFont};
187
- fill: ${(_114 = (_113 = (_112 = (_111 = (_110 = (_109 = theme.$.palette[palette]) === null || _109 === void 0 ? void 0 : _109.badge) === null || _110 === void 0 ? void 0 : _110.soft) === null || _111 === void 0 ? void 0 : _111.outline) === null || _112 === void 0 ? void 0 : _112.active) === null || _113 === void 0 ? void 0 : _113.font) !== null && _114 !== void 0 ? _114 : theme.$.palette[palette].softFont};
185
+ background: ${(_117 = (_116 = (_115 = (_114 = (_113 = (_112 = theme.$.palette[palette]) === null || _112 === void 0 ? void 0 : _112.badge) === null || _113 === void 0 ? void 0 : _113.soft) === null || _114 === void 0 ? void 0 : _114.outline) === null || _115 === void 0 ? void 0 : _115.active) === null || _116 === void 0 ? void 0 : _116.background) !== null && _117 !== void 0 ? _117 : theme.$.palette[palette].soft};
186
+ color: ${(_123 = (_122 = (_121 = (_120 = (_119 = (_118 = theme.$.palette[palette]) === null || _118 === void 0 ? void 0 : _118.badge) === null || _119 === void 0 ? void 0 : _119.soft) === null || _120 === void 0 ? void 0 : _120.outline) === null || _121 === void 0 ? void 0 : _121.active) === null || _122 === void 0 ? void 0 : _122.font) !== null && _123 !== void 0 ? _123 : theme.$.palette[palette].softFont};
187
+ fill: ${(_129 = (_128 = (_127 = (_126 = (_125 = (_124 = theme.$.palette[palette]) === null || _124 === void 0 ? void 0 : _124.badge) === null || _125 === void 0 ? void 0 : _125.soft) === null || _126 === void 0 ? void 0 : _126.outline) === null || _127 === void 0 ? void 0 : _127.active) === null || _128 === void 0 ? void 0 : _128.font) !== null && _129 !== void 0 ? _129 : theme.$.palette[palette].softFont};
188
188
  }
189
189
 
190
190
  .src-badge-icon {
191
- background: ${theme.$.palette[palette].softDynamicer};
192
- color: ${theme.$.palette[palette].softFont};
193
- fill: ${theme.$.palette[palette].softFont};
191
+ background: ${(_135 = (_134 = (_133 = (_132 = (_131 = (_130 = theme.$.palette[palette].badge) === null || _130 === void 0 ? void 0 : _130.soft) === null || _131 === void 0 ? void 0 : _131.outline) === null || _132 === void 0 ? void 0 : _132.active) === null || _133 === void 0 ? void 0 : _133.icon) === null || _134 === void 0 ? void 0 : _134.background) !== null && _135 !== void 0 ? _135 : theme.$.palette[palette].softDynamicer};
192
+ color: ${(_141 = (_140 = (_139 = (_138 = (_137 = (_136 = theme.$.palette[palette].badge) === null || _136 === void 0 ? void 0 : _136.soft) === null || _137 === void 0 ? void 0 : _137.outline) === null || _138 === void 0 ? void 0 : _138.active) === null || _139 === void 0 ? void 0 : _139.icon) === null || _140 === void 0 ? void 0 : _140.font) !== null && _141 !== void 0 ? _141 : theme.$.palette[palette].softFont};
193
+ fill: ${(_147 = (_146 = (_145 = (_144 = (_143 = (_142 = theme.$.palette[palette].badge) === null || _142 === void 0 ? void 0 : _142.soft) === null || _143 === void 0 ? void 0 : _143.outline) === null || _144 === void 0 ? void 0 : _144.active) === null || _145 === void 0 ? void 0 : _145.icon) === null || _146 === void 0 ? void 0 : _146.font) !== null && _147 !== void 0 ? _147 : theme.$.palette[palette].softFont};
194
194
  }
195
195
  `}
196
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.1.0-alpha-1",
3
+ "version": "2.1.0-alpha-2",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
@@ -64,9 +64,9 @@
64
64
  "test": "jest"
65
65
  },
66
66
  "devDependencies": {
67
- "@smart-react-components/core": "2.1.0-alpha-1",
68
- "@smart-react-components/router": "2.1.0-alpha-1",
69
- "@smart-react-components/transition": "2.1.0-alpha-1",
67
+ "@smart-react-components/core": "2.1.0-alpha-2",
68
+ "@smart-react-components/router": "2.1.0-alpha-2",
69
+ "@smart-react-components/transition": "2.1.0-alpha-2",
70
70
  "@testing-library/react": "13.4.0",
71
71
  "@types/jest": "29.0.1",
72
72
  "@types/react": "18.0.19",
@@ -83,9 +83,9 @@
83
83
  "typescript": "4.8.3"
84
84
  },
85
85
  "peerDependencies": {
86
- "@smart-react-components/core": "^2.1.0-alpha-1",
87
- "@smart-react-components/router": "^2.1.0-alpha-1",
88
- "@smart-react-components/transition": "^2.1.0-alpha-1",
86
+ "@smart-react-components/core": "^2.1.0-alpha-2",
87
+ "@smart-react-components/router": "^2.1.0-alpha-2",
88
+ "@smart-react-components/transition": "^2.1.0-alpha-2",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",
91
91
  "styled-components": "^5.3.5"