visits-style 1.4.8 → 1.4.9
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/elements/Progress/index.d.ts +1 -1
- package/dist/index.cjs.js +34 -20
- package/dist/index.es.js +34 -20
- package/package.json +1 -1
|
@@ -15,4 +15,4 @@ export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
*/
|
|
16
16
|
color?: ColorType;
|
|
17
17
|
}
|
|
18
|
-
export default function Progress({ value, max, color, ...rest }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function Progress({ value, max, color, height, size, ...rest }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.cjs.js
CHANGED
|
@@ -169,11 +169,11 @@ const Icon = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
|
169
169
|
}) => theme.border, ({
|
|
170
170
|
$right
|
|
171
171
|
}) => $right ? rightIcon : leftIcon);
|
|
172
|
-
function shouldForwardProp$
|
|
172
|
+
function shouldForwardProp$9(name) {
|
|
173
173
|
return name !== "outline" && name !== "error" && name !== "disabled";
|
|
174
174
|
}
|
|
175
175
|
const Wrapper$5 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
176
|
-
shouldForwardProp: shouldForwardProp$
|
|
176
|
+
shouldForwardProp: shouldForwardProp$9
|
|
177
177
|
}).withConfig({
|
|
178
178
|
displayName: "TextInput__Wrapper",
|
|
179
179
|
componentId: "sc-1myda3q-1"
|
|
@@ -222,11 +222,11 @@ const Textarea = React.forwardRef(({
|
|
|
222
222
|
] }));
|
|
223
223
|
Textarea.displayName = "Textarea";
|
|
224
224
|
const Textarea$1 = Textarea;
|
|
225
|
-
function shouldForwardProp$
|
|
225
|
+
function shouldForwardProp$8(name) {
|
|
226
226
|
return name !== "error" && name !== "disabled";
|
|
227
227
|
}
|
|
228
228
|
const InputWrapper$2 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
229
|
-
shouldForwardProp: shouldForwardProp$
|
|
229
|
+
shouldForwardProp: shouldForwardProp$8
|
|
230
230
|
}).withConfig({
|
|
231
231
|
displayName: "Textarea__InputWrapper",
|
|
232
232
|
componentId: "sc-z9p0uf-0"
|
|
@@ -350,11 +350,11 @@ const Select = React.forwardRef(({
|
|
|
350
350
|
});
|
|
351
351
|
Select.displayName = "Select";
|
|
352
352
|
const Select$1 = Select;
|
|
353
|
-
function shouldForwardProp$
|
|
353
|
+
function shouldForwardProp$7(name) {
|
|
354
354
|
return name !== "error" && name !== "disabled" && name !== "inputSize" && name !== "outline";
|
|
355
355
|
}
|
|
356
356
|
const InputWrapper$1 = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
357
|
-
shouldForwardProp: shouldForwardProp$
|
|
357
|
+
shouldForwardProp: shouldForwardProp$7
|
|
358
358
|
}).withConfig({
|
|
359
359
|
displayName: "Select__InputWrapper",
|
|
360
360
|
componentId: "sc-gevlx8-0"
|
|
@@ -462,11 +462,11 @@ const labelStyle = /* @__PURE__ */ styledComponents.css(["label:before{position:
|
|
|
462
462
|
}) => onLabel, ({
|
|
463
463
|
theme
|
|
464
464
|
}) => findColorInvert(theme, theme.primary));
|
|
465
|
-
function shouldForwardProp$
|
|
465
|
+
function shouldForwardProp$6(name) {
|
|
466
466
|
return name !== "labelTextOn" && name !== "labelTextOff" && name !== "anchorColor" && name !== "background" && name !== "showLabel";
|
|
467
467
|
}
|
|
468
468
|
const InputWrapper = /* @__PURE__ */ styledComponents.styled.span.withConfig({
|
|
469
|
-
shouldForwardProp: shouldForwardProp$
|
|
469
|
+
shouldForwardProp: shouldForwardProp$6
|
|
470
470
|
}).withConfig({
|
|
471
471
|
displayName: "Switch__InputWrapper",
|
|
472
472
|
componentId: "sc-1ljdf1-0"
|
|
@@ -1049,11 +1049,11 @@ function getColor$1({
|
|
|
1049
1049
|
return styledComponents.css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme.border, theme.border);
|
|
1050
1050
|
}
|
|
1051
1051
|
const spin = /* @__PURE__ */ styledComponents.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
1052
|
-
function shouldForwardProp$
|
|
1052
|
+
function shouldForwardProp$5(name) {
|
|
1053
1053
|
return name !== "color" && name !== "size" && name !== "borderSize";
|
|
1054
1054
|
}
|
|
1055
1055
|
const Spinner = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1056
|
-
shouldForwardProp: shouldForwardProp$
|
|
1056
|
+
shouldForwardProp: shouldForwardProp$5
|
|
1057
1057
|
}).withConfig({
|
|
1058
1058
|
displayName: "Spinner",
|
|
1059
1059
|
componentId: "sc-34g0il-0"
|
|
@@ -1089,6 +1089,8 @@ function setResponsive({
|
|
|
1089
1089
|
}) => setGap(theme.media.mobile, theme.smallGutter));
|
|
1090
1090
|
}
|
|
1091
1091
|
const Container = styledComponents.styled.div.withConfig({
|
|
1092
|
+
shouldForwardProp: (name) => name !== "fluid"
|
|
1093
|
+
}).withConfig({
|
|
1092
1094
|
displayName: "Container",
|
|
1093
1095
|
componentId: "sc-1308ay5-0"
|
|
1094
1096
|
})(["position:relative;width:100%;", ""], setResponsive);
|
|
@@ -1117,7 +1119,12 @@ function setAutoSize({
|
|
|
1117
1119
|
const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
|
|
1118
1120
|
return styledComponents.css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
|
|
1119
1121
|
}
|
|
1122
|
+
function shouldForwardProp$4(name) {
|
|
1123
|
+
return name !== "size" && name !== "offset" && name !== "auto";
|
|
1124
|
+
}
|
|
1120
1125
|
const Col = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1126
|
+
shouldForwardProp: shouldForwardProp$4
|
|
1127
|
+
}).withConfig({
|
|
1121
1128
|
displayName: "Col",
|
|
1122
1129
|
componentId: "sc-16i9d04-0"
|
|
1123
1130
|
})(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
|
|
@@ -1188,11 +1195,11 @@ function setColor({
|
|
|
1188
1195
|
}
|
|
1189
1196
|
return styledComponents.css(["background-color:", ";border-color:transparent;color:", ";box-shadow:none;&:hover{color:", ";background-color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, invertColor, invertColor, polished.darken(0.05, target), polished.darken(0.1, target), boxShadow("0.1rem", target, 0.5));
|
|
1190
1197
|
}
|
|
1191
|
-
function shouldForwardProp$
|
|
1198
|
+
function shouldForwardProp$3(name) {
|
|
1192
1199
|
return name !== "color" && name !== "size" && name !== "outline" && name !== "round" && name !== "icon";
|
|
1193
1200
|
}
|
|
1194
1201
|
const Button = styledComponents.styled.button.withConfig({
|
|
1195
|
-
shouldForwardProp: shouldForwardProp$
|
|
1202
|
+
shouldForwardProp: shouldForwardProp$3
|
|
1196
1203
|
}).withConfig({
|
|
1197
1204
|
displayName: "Button",
|
|
1198
1205
|
componentId: "sc-f6cc58-0"
|
|
@@ -1207,11 +1214,11 @@ const Button = styledComponents.styled.button.withConfig({
|
|
|
1207
1214
|
size
|
|
1208
1215
|
}) => setSize("font-size", size));
|
|
1209
1216
|
|
|
1210
|
-
function shouldForwardProp$
|
|
1217
|
+
function shouldForwardProp$2(name) {
|
|
1211
1218
|
return name !== "color" && name !== "size" && name !== "pure" && name !== "underline" && name !== "round" && name !== "icon";
|
|
1212
1219
|
}
|
|
1213
1220
|
const TextButton = styledComponents.styled.button.withConfig({
|
|
1214
|
-
shouldForwardProp: shouldForwardProp$
|
|
1221
|
+
shouldForwardProp: shouldForwardProp$2
|
|
1215
1222
|
}).withConfig({
|
|
1216
1223
|
displayName: "TextButton",
|
|
1217
1224
|
componentId: "sc-14wzat7-0"
|
|
@@ -1262,7 +1269,12 @@ const ButtonGroup = styledComponents.styled.div.withConfig({
|
|
|
1262
1269
|
|
|
1263
1270
|
const stripedStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
|
|
1264
1271
|
const hoverStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
|
|
1272
|
+
function shouldForwardProp$1(name) {
|
|
1273
|
+
return name !== "size" && name !== "full" && name !== "headerStyle" && name !== "bordered" && name !== "striped" && name !== "hover";
|
|
1274
|
+
}
|
|
1265
1275
|
const index$1 = styledComponents.styled.table.withConfig({
|
|
1276
|
+
shouldForwardProp: shouldForwardProp$1
|
|
1277
|
+
}).withConfig({
|
|
1266
1278
|
displayName: "Table",
|
|
1267
1279
|
componentId: "sc-1x2nuaf-0"
|
|
1268
1280
|
})(["", " max-width:100%;margin-bottom:1rem;background-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;td,th{vertical-align:top;padding:0.75rem;", " border-width:0 0 1px;}th{white-space:nowrap;}", " ", " ", ""], ({
|
|
@@ -1282,10 +1294,12 @@ function Progress({
|
|
|
1282
1294
|
value,
|
|
1283
1295
|
max,
|
|
1284
1296
|
color = "primary",
|
|
1297
|
+
height,
|
|
1298
|
+
size,
|
|
1285
1299
|
...rest
|
|
1286
1300
|
}) {
|
|
1287
1301
|
const percent = React.useMemo(() => value ? Math.round(value / max * 100) : 0, [value, max]);
|
|
1288
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Wrapper$1, { color, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
|
|
1302
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Wrapper$1, { $color: color, $height: height, $size: size, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
|
|
1289
1303
|
width: `${percent > 100 ? 100 : percent}%`
|
|
1290
1304
|
} }) });
|
|
1291
1305
|
}
|
|
@@ -1297,14 +1311,14 @@ const Wrapper$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1297
1311
|
}) => theme.radius, ({
|
|
1298
1312
|
theme
|
|
1299
1313
|
}) => theme.background, ({
|
|
1300
|
-
size,
|
|
1301
|
-
height
|
|
1302
|
-
}) => height || setSize("height", size), ({
|
|
1314
|
+
$size,
|
|
1315
|
+
$height
|
|
1316
|
+
}) => $height || setSize("height", $size), ({
|
|
1303
1317
|
theme
|
|
1304
1318
|
}) => theme.radius, ({
|
|
1305
|
-
color,
|
|
1319
|
+
$color,
|
|
1306
1320
|
theme
|
|
1307
|
-
}) => theme[color] || color);
|
|
1321
|
+
}) => theme[$color] || $color);
|
|
1308
1322
|
|
|
1309
1323
|
const index = styledComponents.styled.hr.withConfig({
|
|
1310
1324
|
displayName: "Divider",
|
package/dist/index.es.js
CHANGED
|
@@ -161,11 +161,11 @@ const Icon = /* @__PURE__ */ styled.span.withConfig({
|
|
|
161
161
|
}) => theme.border, ({
|
|
162
162
|
$right
|
|
163
163
|
}) => $right ? rightIcon : leftIcon);
|
|
164
|
-
function shouldForwardProp$
|
|
164
|
+
function shouldForwardProp$9(name) {
|
|
165
165
|
return name !== "outline" && name !== "error" && name !== "disabled";
|
|
166
166
|
}
|
|
167
167
|
const Wrapper$5 = /* @__PURE__ */ styled.span.withConfig({
|
|
168
|
-
shouldForwardProp: shouldForwardProp$
|
|
168
|
+
shouldForwardProp: shouldForwardProp$9
|
|
169
169
|
}).withConfig({
|
|
170
170
|
displayName: "TextInput__Wrapper",
|
|
171
171
|
componentId: "sc-1myda3q-1"
|
|
@@ -214,11 +214,11 @@ const Textarea = forwardRef(({
|
|
|
214
214
|
] }));
|
|
215
215
|
Textarea.displayName = "Textarea";
|
|
216
216
|
const Textarea$1 = Textarea;
|
|
217
|
-
function shouldForwardProp$
|
|
217
|
+
function shouldForwardProp$8(name) {
|
|
218
218
|
return name !== "error" && name !== "disabled";
|
|
219
219
|
}
|
|
220
220
|
const InputWrapper$2 = /* @__PURE__ */ styled.span.withConfig({
|
|
221
|
-
shouldForwardProp: shouldForwardProp$
|
|
221
|
+
shouldForwardProp: shouldForwardProp$8
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "Textarea__InputWrapper",
|
|
224
224
|
componentId: "sc-z9p0uf-0"
|
|
@@ -342,11 +342,11 @@ const Select = forwardRef(({
|
|
|
342
342
|
});
|
|
343
343
|
Select.displayName = "Select";
|
|
344
344
|
const Select$1 = Select;
|
|
345
|
-
function shouldForwardProp$
|
|
345
|
+
function shouldForwardProp$7(name) {
|
|
346
346
|
return name !== "error" && name !== "disabled" && name !== "inputSize" && name !== "outline";
|
|
347
347
|
}
|
|
348
348
|
const InputWrapper$1 = /* @__PURE__ */ styled.span.withConfig({
|
|
349
|
-
shouldForwardProp: shouldForwardProp$
|
|
349
|
+
shouldForwardProp: shouldForwardProp$7
|
|
350
350
|
}).withConfig({
|
|
351
351
|
displayName: "Select__InputWrapper",
|
|
352
352
|
componentId: "sc-gevlx8-0"
|
|
@@ -454,11 +454,11 @@ const labelStyle = /* @__PURE__ */ css(["label:before{position:absolute;display:
|
|
|
454
454
|
}) => onLabel, ({
|
|
455
455
|
theme
|
|
456
456
|
}) => findColorInvert(theme, theme.primary));
|
|
457
|
-
function shouldForwardProp$
|
|
457
|
+
function shouldForwardProp$6(name) {
|
|
458
458
|
return name !== "labelTextOn" && name !== "labelTextOff" && name !== "anchorColor" && name !== "background" && name !== "showLabel";
|
|
459
459
|
}
|
|
460
460
|
const InputWrapper = /* @__PURE__ */ styled.span.withConfig({
|
|
461
|
-
shouldForwardProp: shouldForwardProp$
|
|
461
|
+
shouldForwardProp: shouldForwardProp$6
|
|
462
462
|
}).withConfig({
|
|
463
463
|
displayName: "Switch__InputWrapper",
|
|
464
464
|
componentId: "sc-1ljdf1-0"
|
|
@@ -1041,11 +1041,11 @@ function getColor$1({
|
|
|
1041
1041
|
return css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme.border, theme.border);
|
|
1042
1042
|
}
|
|
1043
1043
|
const spin = /* @__PURE__ */ keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
1044
|
-
function shouldForwardProp$
|
|
1044
|
+
function shouldForwardProp$5(name) {
|
|
1045
1045
|
return name !== "color" && name !== "size" && name !== "borderSize";
|
|
1046
1046
|
}
|
|
1047
1047
|
const Spinner = /* @__PURE__ */ styled.div.withConfig({
|
|
1048
|
-
shouldForwardProp: shouldForwardProp$
|
|
1048
|
+
shouldForwardProp: shouldForwardProp$5
|
|
1049
1049
|
}).withConfig({
|
|
1050
1050
|
displayName: "Spinner",
|
|
1051
1051
|
componentId: "sc-34g0il-0"
|
|
@@ -1081,6 +1081,8 @@ function setResponsive({
|
|
|
1081
1081
|
}) => setGap(theme.media.mobile, theme.smallGutter));
|
|
1082
1082
|
}
|
|
1083
1083
|
const Container = styled.div.withConfig({
|
|
1084
|
+
shouldForwardProp: (name) => name !== "fluid"
|
|
1085
|
+
}).withConfig({
|
|
1084
1086
|
displayName: "Container",
|
|
1085
1087
|
componentId: "sc-1308ay5-0"
|
|
1086
1088
|
})(["position:relative;width:100%;", ""], setResponsive);
|
|
@@ -1109,7 +1111,12 @@ function setAutoSize({
|
|
|
1109
1111
|
const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
|
|
1110
1112
|
return css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
|
|
1111
1113
|
}
|
|
1114
|
+
function shouldForwardProp$4(name) {
|
|
1115
|
+
return name !== "size" && name !== "offset" && name !== "auto";
|
|
1116
|
+
}
|
|
1112
1117
|
const Col = /* @__PURE__ */ styled.div.withConfig({
|
|
1118
|
+
shouldForwardProp: shouldForwardProp$4
|
|
1119
|
+
}).withConfig({
|
|
1113
1120
|
displayName: "Col",
|
|
1114
1121
|
componentId: "sc-16i9d04-0"
|
|
1115
1122
|
})(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
|
|
@@ -1180,11 +1187,11 @@ function setColor({
|
|
|
1180
1187
|
}
|
|
1181
1188
|
return css(["background-color:", ";border-color:transparent;color:", ";box-shadow:none;&:hover{color:", ";background-color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, invertColor, invertColor, darken(0.05, target), darken(0.1, target), boxShadow("0.1rem", target, 0.5));
|
|
1182
1189
|
}
|
|
1183
|
-
function shouldForwardProp$
|
|
1190
|
+
function shouldForwardProp$3(name) {
|
|
1184
1191
|
return name !== "color" && name !== "size" && name !== "outline" && name !== "round" && name !== "icon";
|
|
1185
1192
|
}
|
|
1186
1193
|
const Button = styled.button.withConfig({
|
|
1187
|
-
shouldForwardProp: shouldForwardProp$
|
|
1194
|
+
shouldForwardProp: shouldForwardProp$3
|
|
1188
1195
|
}).withConfig({
|
|
1189
1196
|
displayName: "Button",
|
|
1190
1197
|
componentId: "sc-f6cc58-0"
|
|
@@ -1199,11 +1206,11 @@ const Button = styled.button.withConfig({
|
|
|
1199
1206
|
size
|
|
1200
1207
|
}) => setSize("font-size", size));
|
|
1201
1208
|
|
|
1202
|
-
function shouldForwardProp$
|
|
1209
|
+
function shouldForwardProp$2(name) {
|
|
1203
1210
|
return name !== "color" && name !== "size" && name !== "pure" && name !== "underline" && name !== "round" && name !== "icon";
|
|
1204
1211
|
}
|
|
1205
1212
|
const TextButton = styled.button.withConfig({
|
|
1206
|
-
shouldForwardProp: shouldForwardProp$
|
|
1213
|
+
shouldForwardProp: shouldForwardProp$2
|
|
1207
1214
|
}).withConfig({
|
|
1208
1215
|
displayName: "TextButton",
|
|
1209
1216
|
componentId: "sc-14wzat7-0"
|
|
@@ -1254,7 +1261,12 @@ const ButtonGroup = styled.div.withConfig({
|
|
|
1254
1261
|
|
|
1255
1262
|
const stripedStyle = /* @__PURE__ */ css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
|
|
1256
1263
|
const hoverStyle = /* @__PURE__ */ css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
|
|
1264
|
+
function shouldForwardProp$1(name) {
|
|
1265
|
+
return name !== "size" && name !== "full" && name !== "headerStyle" && name !== "bordered" && name !== "striped" && name !== "hover";
|
|
1266
|
+
}
|
|
1257
1267
|
const index$1 = styled.table.withConfig({
|
|
1268
|
+
shouldForwardProp: shouldForwardProp$1
|
|
1269
|
+
}).withConfig({
|
|
1258
1270
|
displayName: "Table",
|
|
1259
1271
|
componentId: "sc-1x2nuaf-0"
|
|
1260
1272
|
})(["", " max-width:100%;margin-bottom:1rem;background-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;td,th{vertical-align:top;padding:0.75rem;", " border-width:0 0 1px;}th{white-space:nowrap;}", " ", " ", ""], ({
|
|
@@ -1274,10 +1286,12 @@ function Progress({
|
|
|
1274
1286
|
value,
|
|
1275
1287
|
max,
|
|
1276
1288
|
color = "primary",
|
|
1289
|
+
height,
|
|
1290
|
+
size,
|
|
1277
1291
|
...rest
|
|
1278
1292
|
}) {
|
|
1279
1293
|
const percent = useMemo(() => value ? Math.round(value / max * 100) : 0, [value, max]);
|
|
1280
|
-
return /* @__PURE__ */ jsx(Wrapper$1, { color, ...rest, children: /* @__PURE__ */ jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
|
|
1294
|
+
return /* @__PURE__ */ jsx(Wrapper$1, { $color: color, $height: height, $size: size, ...rest, children: /* @__PURE__ */ jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
|
|
1281
1295
|
width: `${percent > 100 ? 100 : percent}%`
|
|
1282
1296
|
} }) });
|
|
1283
1297
|
}
|
|
@@ -1289,14 +1303,14 @@ const Wrapper$1 = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1289
1303
|
}) => theme.radius, ({
|
|
1290
1304
|
theme
|
|
1291
1305
|
}) => theme.background, ({
|
|
1292
|
-
size,
|
|
1293
|
-
height
|
|
1294
|
-
}) => height || setSize("height", size), ({
|
|
1306
|
+
$size,
|
|
1307
|
+
$height
|
|
1308
|
+
}) => $height || setSize("height", $size), ({
|
|
1295
1309
|
theme
|
|
1296
1310
|
}) => theme.radius, ({
|
|
1297
|
-
color,
|
|
1311
|
+
$color,
|
|
1298
1312
|
theme
|
|
1299
|
-
}) => theme[color] || color);
|
|
1313
|
+
}) => theme[$color] || $color);
|
|
1300
1314
|
|
|
1301
1315
|
const index = styled.hr.withConfig({
|
|
1302
1316
|
displayName: "Divider",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "visits-style",
|
|
3
3
|
"repository": "https://github.com/visits-works/visits-style",
|
|
4
4
|
"homepage": "https://github.com/visits-works/visits-style",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.9",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
8
8
|
"module": "./dist/index.es.js",
|