@smart-react-components/ui 2.1.0-alpha-10 → 2.1.0-alpha-11

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/Table/Tr.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const Tr_1 = __importDefault(require("@smart-react-components/core/Element/Tr"));
7
7
  const styled_components_1 = __importDefault(require("styled-components"));
8
8
  exports.default = (0, styled_components_1.default)(Tr_1.default)(({ theme, hasHover, isEven, isSoft, palette, startIndex = 0 }) => {
9
- 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;
9
+ 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;
10
10
  return `
11
11
  ${palette
12
12
  ? `
@@ -15,12 +15,12 @@ exports.default = (0, styled_components_1.default)(Tr_1.default)(({ theme, hasHo
15
15
  ? `
16
16
  background: ${!isEven ? ((_c = (_b = (_a = theme.$.palette[palette].table) === null || _a === void 0 ? void 0 : _a.odd) === null || _b === void 0 ? void 0 : _b.background) !== null && _c !== void 0 ? _c : theme.$.palette[palette].background) : ((_f = (_e = (_d = theme.$.palette[palette].table) === null || _d === void 0 ? void 0 : _d.even) === null || _e === void 0 ? void 0 : _e.background) !== null && _f !== void 0 ? _f : theme.$.palette[palette].dynamic)};
17
17
  border-color: ${!isEven ? ((_j = (_h = (_g = theme.$.palette[palette].table) === null || _g === void 0 ? void 0 : _g.odd) === null || _h === void 0 ? void 0 : _h.border) !== null && _j !== void 0 ? _j : theme.$.palette[palette].dynamicest) : ((_m = (_l = (_k = theme.$.palette[palette].table) === null || _k === void 0 ? void 0 : _k.even) === null || _l === void 0 ? void 0 : _l.border) !== null && _m !== void 0 ? _m : theme.$.palette[palette].dynamicest)};
18
- color: ${!isEven ? ((_q = (_p = (_o = theme.$.palette[palette]) === null || _o === void 0 ? void 0 : _o.odd) === null || _p === void 0 ? void 0 : _p.font) !== null && _q !== void 0 ? _q : theme.$.palette[palette].font) : ((_t = (_s = (_r = theme.$.palette[palette]) === null || _r === void 0 ? void 0 : _r.even) === null || _s === void 0 ? void 0 : _s.font) !== null && _t !== void 0 ? _t : theme.$.palette[palette].font)};
18
+ color: ${!isEven ? ((_r = (_q = (_p = (_o = theme.$.palette[palette]) === null || _o === void 0 ? void 0 : _o.table) === null || _p === void 0 ? void 0 : _p.odd) === null || _q === void 0 ? void 0 : _q.font) !== null && _r !== void 0 ? _r : theme.$.palette[palette].font) : ((_v = (_u = (_t = (_s = theme.$.palette[palette]) === null || _s === void 0 ? void 0 : _s.table) === null || _t === void 0 ? void 0 : _t.even) === null || _u === void 0 ? void 0 : _u.font) !== null && _v !== void 0 ? _v : theme.$.palette[palette].font)};
19
19
  `
20
20
  : `
21
- background: ${!isEven ? theme.$.palette[palette].softBackground : theme.$.palette[palette].softDynamic};
22
- border-color: ${theme.$.palette[palette].softDynamicest};
23
- color: ${theme.$.palette[palette].softFont};
21
+ background: ${!isEven ? ((_z = (_y = (_x = (_w = theme.$.palette[palette].table) === null || _w === void 0 ? void 0 : _w.odd) === null || _x === void 0 ? void 0 : _x.soft) === null || _y === void 0 ? void 0 : _y.background) !== null && _z !== void 0 ? _z : theme.$.palette[palette].softBackground) : ((_3 = (_2 = (_1 = (_0 = theme.$.palette[palette].table) === null || _0 === void 0 ? void 0 : _0.even) === null || _1 === void 0 ? void 0 : _1.soft) === null || _2 === void 0 ? void 0 : _2.background) !== null && _3 !== void 0 ? _3 : theme.$.palette[palette].softDynamic)};
22
+ border-color: ${!isEven ? ((_7 = (_6 = (_5 = (_4 = theme.$.palette[palette].table) === null || _4 === void 0 ? void 0 : _4.odd) === null || _5 === void 0 ? void 0 : _5.soft) === null || _6 === void 0 ? void 0 : _6.border) !== null && _7 !== void 0 ? _7 : theme.$.palette[palette].softDynamicest) : ((_10 = (_9 = (_8 = theme.$.palette[palette].table) === null || _8 === void 0 ? void 0 : _8.even.soft) === null || _9 === void 0 ? void 0 : _9.border) !== null && _10 !== void 0 ? _10 : theme.$.palette[palette].softDynamicest)};
23
+ color: ${!isEven ? ((_14 = (_13 = (_12 = (_11 = theme.$.palette[palette].table) === null || _11 === void 0 ? void 0 : _11.odd) === null || _12 === void 0 ? void 0 : _12.soft) === null || _13 === void 0 ? void 0 : _13.font) !== null && _14 !== void 0 ? _14 : theme.$.palette[palette].softFont) : ((_18 = (_17 = (_16 = (_15 = theme.$.palette[palette].table) === null || _15 === void 0 ? void 0 : _15.even) === null || _16 === void 0 ? void 0 : _16.soft) === null || _17 === void 0 ? void 0 : _17.font) !== null && _18 !== void 0 ? _18 : theme.$.palette[palette].softFont)};
24
24
  `}
25
25
  }
26
26
 
@@ -29,10 +29,14 @@ exports.default = (0, styled_components_1.default)(Tr_1.default)(({ theme, hasHo
29
29
  &:hover > *:nth-child(n+${startIndex}) {
30
30
  ${!isSoft
31
31
  ? `
32
- background: ${!isEven ? ((_x = (_w = (_v = (_u = theme.$.palette[palette].table) === null || _u === void 0 ? void 0 : _u.odd) === null || _v === void 0 ? void 0 : _v.hover) === null || _w === void 0 ? void 0 : _w.background) !== null && _x !== void 0 ? _x : theme.$.palette[palette].dynamicer) : ((_1 = (_0 = (_z = (_y = theme.$.palette[palette].table) === null || _y === void 0 ? void 0 : _y.even) === null || _z === void 0 ? void 0 : _z.hover) === null || _0 === void 0 ? void 0 : _0.background) !== null && _1 !== void 0 ? _1 : theme.$.palette[palette].dynamicer)};
32
+ background: ${!isEven ? ((_22 = (_21 = (_20 = (_19 = theme.$.palette[palette].table) === null || _19 === void 0 ? void 0 : _19.odd) === null || _20 === void 0 ? void 0 : _20.hover) === null || _21 === void 0 ? void 0 : _21.background) !== null && _22 !== void 0 ? _22 : theme.$.palette[palette].dynamicer) : ((_26 = (_25 = (_24 = (_23 = theme.$.palette[palette].table) === null || _23 === void 0 ? void 0 : _23.even) === null || _24 === void 0 ? void 0 : _24.hover) === null || _25 === void 0 ? void 0 : _25.background) !== null && _26 !== void 0 ? _26 : theme.$.palette[palette].dynamicer)};
33
+ border: ${!isEven ? ((_30 = (_29 = (_28 = (_27 = theme.$.palette[palette].table) === null || _27 === void 0 ? void 0 : _27.odd) === null || _28 === void 0 ? void 0 : _28.hover) === null || _29 === void 0 ? void 0 : _29.border) !== null && _30 !== void 0 ? _30 : theme.$.palette[palette].dynamicest) : ((_34 = (_33 = (_32 = (_31 = theme.$.palette[palette].table) === null || _31 === void 0 ? void 0 : _31.even) === null || _32 === void 0 ? void 0 : _32.hover) === null || _33 === void 0 ? void 0 : _33.border) !== null && _34 !== void 0 ? _34 : theme.$.palette[palette].dynamicest)};
34
+ color: ${!isEven ? ((_39 = (_38 = (_37 = (_36 = (_35 = theme.$.palette[palette]) === null || _35 === void 0 ? void 0 : _35.table) === null || _36 === void 0 ? void 0 : _36.odd) === null || _37 === void 0 ? void 0 : _37.hover) === null || _38 === void 0 ? void 0 : _38.font) !== null && _39 !== void 0 ? _39 : theme.$.palette[palette].font) : ((_44 = (_43 = (_42 = (_41 = (_40 = theme.$.palette[palette]) === null || _40 === void 0 ? void 0 : _40.table) === null || _41 === void 0 ? void 0 : _41.even) === null || _42 === void 0 ? void 0 : _42.hover) === null || _43 === void 0 ? void 0 : _43.font) !== null && _44 !== void 0 ? _44 : theme.$.palette[palette].font)};
33
35
  `
34
36
  : `
35
- background: ${theme.$.palette[palette].softDynamicer};
37
+ background: ${!isEven ? ((_49 = (_48 = (_47 = (_46 = (_45 = theme.$.palette[palette].table) === null || _45 === void 0 ? void 0 : _45.odd) === null || _46 === void 0 ? void 0 : _46.soft) === null || _47 === void 0 ? void 0 : _47.hover) === null || _48 === void 0 ? void 0 : _48.background) !== null && _49 !== void 0 ? _49 : theme.$.palette[palette].softDynamicer) : ((_54 = (_53 = (_52 = (_51 = (_50 = theme.$.palette[palette].table) === null || _50 === void 0 ? void 0 : _50.even) === null || _51 === void 0 ? void 0 : _51.soft) === null || _52 === void 0 ? void 0 : _52.hover) === null || _53 === void 0 ? void 0 : _53.background) !== null && _54 !== void 0 ? _54 : theme.$.palette[palette].softDynamicer)};
38
+ border: ${!isEven ? ((_59 = (_58 = (_57 = (_56 = (_55 = theme.$.palette[palette].table) === null || _55 === void 0 ? void 0 : _55.odd) === null || _56 === void 0 ? void 0 : _56.soft) === null || _57 === void 0 ? void 0 : _57.hover) === null || _58 === void 0 ? void 0 : _58.border) !== null && _59 !== void 0 ? _59 : theme.$.palette[palette].softDynamicest) : ((_64 = (_63 = (_62 = (_61 = (_60 = theme.$.palette[palette].table) === null || _60 === void 0 ? void 0 : _60.even) === null || _61 === void 0 ? void 0 : _61.soft) === null || _62 === void 0 ? void 0 : _62.hover) === null || _63 === void 0 ? void 0 : _63.border) !== null && _64 !== void 0 ? _64 : theme.$.palette[palette].softDynamicest)};
39
+ color: ${!isEven ? ((_69 = (_68 = (_67 = (_66 = (_65 = theme.$.palette[palette].table) === null || _65 === void 0 ? void 0 : _65.odd) === null || _66 === void 0 ? void 0 : _66.soft) === null || _67 === void 0 ? void 0 : _67.hover) === null || _68 === void 0 ? void 0 : _68.font) !== null && _69 !== void 0 ? _69 : theme.$.palette[palette].softFont) : ((_74 = (_73 = (_72 = (_71 = (_70 = theme.$.palette[palette].table) === null || _70 === void 0 ? void 0 : _70.even) === null || _71 === void 0 ? void 0 : _71.soft) === null || _72 === void 0 ? void 0 : _72.hover) === null || _73 === void 0 ? void 0 : _73.font) !== null && _74 !== void 0 ? _74 : theme.$.palette[palette].softFont)};
36
40
  `}
37
41
  }
38
42
  `
@@ -18,7 +18,7 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
18
18
  }
19
19
  `,
20
20
  })(({ theme, hasBorderX, hasBorderY, hasHeadBackground, hasHover, isBlock, isSoft, isStriped, palette, shape, stripedOrientation }) => {
21
- 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;
21
+ 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;
22
22
  return `
23
23
  border-collapse: separate;
24
24
  border-spacing: 0;
@@ -92,18 +92,8 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
92
92
  ? `
93
93
  > thead > tr > * {
94
94
  background: ${(_m = (_l = (_k = theme.$.palette[palette].table) === null || _k === void 0 ? void 0 : _k.even) === null || _l === void 0 ? void 0 : _l.background) !== null && _m !== void 0 ? _m : theme.$.palette[palette].dynamic};
95
-
96
- ${((_p = (_o = theme.$.palette[palette].table) === null || _o === void 0 ? void 0 : _o.even) === null || _p === void 0 ? void 0 : _p.border)
97
- ? `
98
- border-color: ${(_r = (_q = theme.$.palette[palette].table) === null || _q === void 0 ? void 0 : _q.even) === null || _r === void 0 ? void 0 : _r.border};
99
- `
100
- : ''}
101
-
102
- ${((_t = (_s = theme.$.palette[palette].table) === null || _s === void 0 ? void 0 : _s.even) === null || _t === void 0 ? void 0 : _t.font)
103
- ? `
104
- color: ${(_v = (_u = theme.$.palette[palette].table) === null || _u === void 0 ? void 0 : _u.even) === null || _v === void 0 ? void 0 : _v.font};
105
- `
106
- : ''}
95
+ border-color: ${(_q = (_p = (_o = theme.$.palette[palette].table) === null || _o === void 0 ? void 0 : _o.even) === null || _p === void 0 ? void 0 : _p.border) !== null && _q !== void 0 ? _q : theme.$.palette[palette].dynamicest};
96
+ color: ${(_t = (_s = (_r = theme.$.palette[palette].table) === null || _r === void 0 ? void 0 : _r.even) === null || _s === void 0 ? void 0 : _s.font) !== null && _t !== void 0 ? _t : theme.$.palette[palette].font};
107
97
  }
108
98
  `
109
99
  : ''}
@@ -111,19 +101,9 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
111
101
  ${isStriped
112
102
  ? `
113
103
  > tbody > tr:nth-child(${stripedOrientation}) > * {
114
- background: ${(_y = (_x = (_w = theme.$.palette[palette].table) === null || _w === void 0 ? void 0 : _w.even) === null || _x === void 0 ? void 0 : _x.background) !== null && _y !== void 0 ? _y : theme.$.palette[palette].dynamic};
115
-
116
- ${((_0 = (_z = theme.$.palette[palette].table) === null || _z === void 0 ? void 0 : _z.even) === null || _0 === void 0 ? void 0 : _0.border)
117
- ? `
118
- border-color: ${(_2 = (_1 = theme.$.palette[palette].table) === null || _1 === void 0 ? void 0 : _1.even) === null || _2 === void 0 ? void 0 : _2.border};
119
- `
120
- : ''}
121
-
122
- ${((_4 = (_3 = theme.$.palette[palette].table) === null || _3 === void 0 ? void 0 : _3.even) === null || _4 === void 0 ? void 0 : _4.font)
123
- ? `
124
- border-color: ${(_6 = (_5 = theme.$.palette[palette].table) === null || _5 === void 0 ? void 0 : _5.even) === null || _6 === void 0 ? void 0 : _6.font};
125
- `
126
- : ''}
104
+ background: ${(_w = (_v = (_u = theme.$.palette[palette].table) === null || _u === void 0 ? void 0 : _u.even) === null || _v === void 0 ? void 0 : _v.background) !== null && _w !== void 0 ? _w : theme.$.palette[palette].dynamic};
105
+ border-color: ${(_z = (_y = (_x = theme.$.palette[palette].table) === null || _x === void 0 ? void 0 : _x.even) === null || _y === void 0 ? void 0 : _y.border) !== null && _z !== void 0 ? _z : theme.$.palette[palette].dynamicest};
106
+ color: ${(_2 = (_1 = (_0 = theme.$.palette[palette].table) === null || _0 === void 0 ? void 0 : _0.even) === null || _1 === void 0 ? void 0 : _1.font) !== null && _2 !== void 0 ? _2 : theme.$.palette[palette].font};
127
107
  }
128
108
  `
129
109
  : ''}
@@ -136,13 +116,17 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
136
116
  }
137
117
 
138
118
  &:hover > * {
139
- background: ${(_10 = (_9 = (_8 = (_7 = theme.$.palette[palette].table) === null || _7 === void 0 ? void 0 : _7.odd) === null || _8 === void 0 ? void 0 : _8.hover) === null || _9 === void 0 ? void 0 : _9.background) !== null && _10 !== void 0 ? _10 : theme.$.palette[palette].dynamicer};
119
+ background: ${(_6 = (_5 = (_4 = (_3 = theme.$.palette[palette].table) === null || _3 === void 0 ? void 0 : _3.odd) === null || _4 === void 0 ? void 0 : _4.hover) === null || _5 === void 0 ? void 0 : _5.background) !== null && _6 !== void 0 ? _6 : theme.$.palette[palette].dynamicer};
120
+ border-color: ${(_10 = (_9 = (_8 = (_7 = theme.$.palette[palette].table) === null || _7 === void 0 ? void 0 : _7.odd) === null || _8 === void 0 ? void 0 : _8.hover) === null || _9 === void 0 ? void 0 : _9.border) !== null && _10 !== void 0 ? _10 : theme.$.palette[palette].dynamicest};
121
+ color: ${(_14 = (_13 = (_12 = (_11 = theme.$.palette[palette].table) === null || _11 === void 0 ? void 0 : _11.odd) === null || _12 === void 0 ? void 0 : _12.hover) === null || _13 === void 0 ? void 0 : _13.font) !== null && _14 !== void 0 ? _14 : theme.$.palette[palette].font};
140
122
  }
141
123
 
142
- ${(isStriped && ((_13 = (_12 = (_11 = theme.$.palette[palette].table) === null || _11 === void 0 ? void 0 : _11.even) === null || _12 === void 0 ? void 0 : _12.hover) === null || _13 === void 0 ? void 0 : _13.background))
124
+ ${(isStriped && ((_17 = (_16 = (_15 = theme.$.palette[palette].table) === null || _15 === void 0 ? void 0 : _15.even) === null || _16 === void 0 ? void 0 : _16.hover) === null || _17 === void 0 ? void 0 : _17.background))
143
125
  ? `
144
126
  > tbody > tr:nth-child(${stripedOrientation}) > * {
145
- background: ${(_16 = (_15 = (_14 = theme.$.palette[palette].table) === null || _14 === void 0 ? void 0 : _14.even) === null || _15 === void 0 ? void 0 : _15.hover) === null || _16 === void 0 ? void 0 : _16.background};
127
+ background: ${(_21 = (_20 = (_19 = (_18 = theme.$.palette[palette].table) === null || _18 === void 0 ? void 0 : _18.even) === null || _19 === void 0 ? void 0 : _19.hover) === null || _20 === void 0 ? void 0 : _20.background) !== null && _21 !== void 0 ? _21 : theme.$.palette[palette].dynamicer};
128
+ border-color: ${(_25 = (_24 = (_23 = (_22 = theme.$.palette[palette].table) === null || _22 === void 0 ? void 0 : _22.even) === null || _23 === void 0 ? void 0 : _23.hover) === null || _24 === void 0 ? void 0 : _24.border) !== null && _25 !== void 0 ? _25 : theme.$.palette[palette].dynamicest};
129
+ color: ${(_29 = (_28 = (_27 = (_26 = theme.$.palette[palette].table) === null || _26 === void 0 ? void 0 : _26.even) === null || _27 === void 0 ? void 0 : _27.hover) === null || _28 === void 0 ? void 0 : _28.font) !== null && _29 !== void 0 ? _29 : theme.$.palette[palette].font};
146
130
  }
147
131
  `
148
132
  : ''}
@@ -152,15 +136,17 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
152
136
  `
153
137
  : `
154
138
  > * > tr > * {
155
- background: ${theme.$.palette[palette].softBackground};
156
- border-color: ${theme.$.palette[palette].softDynamicest};
157
- color: ${theme.$.palette[palette].softFont};
139
+ background: ${(_33 = (_32 = (_31 = (_30 = theme.$.palette[palette].table) === null || _30 === void 0 ? void 0 : _30.odd) === null || _31 === void 0 ? void 0 : _31.soft) === null || _32 === void 0 ? void 0 : _32.background) !== null && _33 !== void 0 ? _33 : theme.$.palette[palette].softBackground};
140
+ border-color: ${(_37 = (_36 = (_35 = (_34 = theme.$.palette[palette].table) === null || _34 === void 0 ? void 0 : _34.odd) === null || _35 === void 0 ? void 0 : _35.soft) === null || _36 === void 0 ? void 0 : _36.border) !== null && _37 !== void 0 ? _37 : theme.$.palette[palette].softDynamicest};
141
+ color: ${(_41 = (_40 = (_39 = (_38 = theme.$.palette[palette].table) === null || _38 === void 0 ? void 0 : _38.odd) === null || _39 === void 0 ? void 0 : _39.soft) === null || _40 === void 0 ? void 0 : _40.font) !== null && _41 !== void 0 ? _41 : theme.$.palette[palette].softFont};
158
142
  }
159
143
 
160
144
  ${hasHeadBackground
161
145
  ? `
162
146
  > thead > tr > * {
163
- background: ${theme.$.palette[palette].softDynamic};
147
+ background: ${(_44 = (_43 = (_42 = theme.$.palette[palette].table.even) === null || _42 === void 0 ? void 0 : _42.soft) === null || _43 === void 0 ? void 0 : _43.background) !== null && _44 !== void 0 ? _44 : theme.$.palette[palette].softDynamic};
148
+ border-color: ${(_47 = (_46 = (_45 = theme.$.palette[palette].table.even) === null || _45 === void 0 ? void 0 : _45.soft) === null || _46 === void 0 ? void 0 : _46.border) !== null && _47 !== void 0 ? _47 : theme.$.palette[palette].softDynamicest};
149
+ color: ${(_50 = (_49 = (_48 = theme.$.palette[palette].table.even) === null || _48 === void 0 ? void 0 : _48.soft) === null || _49 === void 0 ? void 0 : _49.font) !== null && _50 !== void 0 ? _50 : theme.$.palette[palette].softFont};
164
150
  }
165
151
  `
166
152
  : ''}
@@ -168,15 +154,35 @@ exports.default = (0, styled_components_1.default)(Table_1.default).attrs({
168
154
  ${isStriped
169
155
  ? `
170
156
  > tbody > tr:nth-child(${stripedOrientation}) > * {
171
- background: ${theme.$.palette[palette].softDynamic};
157
+ background: ${(_54 = (_53 = (_52 = (_51 = theme.$.palette[palette].table) === null || _51 === void 0 ? void 0 : _51.even) === null || _52 === void 0 ? void 0 : _52.soft) === null || _53 === void 0 ? void 0 : _53.background) !== null && _54 !== void 0 ? _54 : theme.$.palette[palette].softDynamic};
158
+ border-color: ${(_58 = (_57 = (_56 = (_55 = theme.$.palette[palette].table) === null || _55 === void 0 ? void 0 : _55.even) === null || _56 === void 0 ? void 0 : _56.soft) === null || _57 === void 0 ? void 0 : _57.border) !== null && _58 !== void 0 ? _58 : theme.$.palette[palette].softDynamicest};
159
+ color: ${(_62 = (_61 = (_60 = (_59 = theme.$.palette[palette].table) === null || _59 === void 0 ? void 0 : _59.even) === null || _60 === void 0 ? void 0 : _60.soft) === null || _61 === void 0 ? void 0 : _61.font) !== null && _62 !== void 0 ? _62 : theme.$.palette[palette].softFont};
172
160
  }
173
161
  `
174
162
  : ''}
175
163
 
176
164
  ${hasHover
177
165
  ? `
178
- > tbody > tr:hover > * {
179
- background: ${theme.$.palette[palette].softDynamicer};
166
+ > tbody > tr {
167
+ > * {
168
+ transition: background 150ms 0s ease-in-out;
169
+ }
170
+
171
+ &:hover > * {
172
+ background: ${(_67 = (_66 = (_65 = (_64 = (_63 = theme.$.palette[palette].table) === null || _63 === void 0 ? void 0 : _63.odd) === null || _64 === void 0 ? void 0 : _64.soft) === null || _65 === void 0 ? void 0 : _65.hover) === null || _66 === void 0 ? void 0 : _66.background) !== null && _67 !== void 0 ? _67 : theme.$.palette[palette].softDynamicer};
173
+ border-color: ${(_72 = (_71 = (_70 = (_69 = (_68 = theme.$.palette[palette].table) === null || _68 === void 0 ? void 0 : _68.odd) === null || _69 === void 0 ? void 0 : _69.soft) === null || _70 === void 0 ? void 0 : _70.hover) === null || _71 === void 0 ? void 0 : _71.border) !== null && _72 !== void 0 ? _72 : theme.$.palette[palette].softDynamicest};
174
+ color: ${(_77 = (_76 = (_75 = (_74 = (_73 = theme.$.palette[palette].table) === null || _73 === void 0 ? void 0 : _73.odd) === null || _74 === void 0 ? void 0 : _74.soft) === null || _75 === void 0 ? void 0 : _75.hover) === null || _76 === void 0 ? void 0 : _76.font) !== null && _77 !== void 0 ? _77 : theme.$.palette[palette].softFont};
175
+ }
176
+
177
+ ${(isStriped && ((_80 = (_79 = (_78 = theme.$.palette[palette].table) === null || _78 === void 0 ? void 0 : _78.even) === null || _79 === void 0 ? void 0 : _79.hover) === null || _80 === void 0 ? void 0 : _80.background))
178
+ ? `
179
+ > tbody > tr:nth-child(${stripedOrientation}) > * {
180
+ background: ${(_85 = (_84 = (_83 = (_82 = (_81 = theme.$.palette[palette].table) === null || _81 === void 0 ? void 0 : _81.even) === null || _82 === void 0 ? void 0 : _82.soft) === null || _83 === void 0 ? void 0 : _83.hover) === null || _84 === void 0 ? void 0 : _84.background) !== null && _85 !== void 0 ? _85 : theme.$.palette[palette].softDynamicer};
181
+ border-color: ${(_90 = (_89 = (_88 = (_87 = (_86 = theme.$.palette[palette].table) === null || _86 === void 0 ? void 0 : _86.even) === null || _87 === void 0 ? void 0 : _87.soft) === null || _88 === void 0 ? void 0 : _88.hover) === null || _89 === void 0 ? void 0 : _89.border) !== null && _90 !== void 0 ? _90 : theme.$.palette[palette].softDynamicest};
182
+ color: ${(_95 = (_94 = (_93 = (_92 = (_91 = theme.$.palette[palette].table) === null || _91 === void 0 ? void 0 : _91.even) === null || _92 === void 0 ? void 0 : _92.hover) === null || _93 === void 0 ? void 0 : _93.soft) === null || _94 === void 0 ? void 0 : _94.font) !== null && _95 !== void 0 ? _95 : theme.$.palette[palette].softFont};
183
+ }
184
+ `
185
+ : ''}
180
186
  }
181
187
  `
182
188
  : ''}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.1.0-alpha-10",
3
+ "version": "2.1.0-alpha-11",
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-13",
68
- "@smart-react-components/router": "2.1.0-alpha-7",
69
- "@smart-react-components/transition": "2.1.0-alpha-7",
67
+ "@smart-react-components/core": "2.1.0-alpha-14",
68
+ "@smart-react-components/router": "2.1.0-alpha-8",
69
+ "@smart-react-components/transition": "2.1.0-alpha-8",
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-13",
87
- "@smart-react-components/router": "^2.1.0-alpha-7",
88
- "@smart-react-components/transition": "^2.1.0-alpha-7",
86
+ "@smart-react-components/core": "^2.1.0-alpha-14",
87
+ "@smart-react-components/router": "^2.1.0-alpha-8",
88
+ "@smart-react-components/transition": "^2.1.0-alpha-8",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",
91
91
  "styled-components": "^5.3.5"