visits-style 1.4.8 → 1.4.10
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/components/Popover/index.d.ts +5 -0
- package/dist/elements/Progress/index.d.ts +1 -1
- package/dist/index.cjs.js +36 -21
- package/dist/index.es.js +36 -21
- package/package.json +1 -1
|
@@ -31,6 +31,11 @@ export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
|
31
31
|
onManualClose?: () => void;
|
|
32
32
|
/** コンテンツを出さない */
|
|
33
33
|
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* zIndexを指定する
|
|
36
|
+
* @default 9996
|
|
37
|
+
*/
|
|
38
|
+
zIndex?: number;
|
|
34
39
|
}
|
|
35
40
|
export interface PopoverRef {
|
|
36
41
|
open: () => void;
|
|
@@ -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"
|
|
@@ -772,6 +772,7 @@ const Popover = React.forwardRef(({
|
|
|
772
772
|
y: 6
|
|
773
773
|
},
|
|
774
774
|
onManualClose,
|
|
775
|
+
zIndex = 9996,
|
|
775
776
|
...rest
|
|
776
777
|
}, ref) => {
|
|
777
778
|
const [open, setOpen] = React.useState(false);
|
|
@@ -835,7 +836,7 @@ const Popover = React.forwardRef(({
|
|
|
835
836
|
})
|
|
836
837
|
}),
|
|
837
838
|
/* @__PURE__ */ jsxRuntime.jsx(Portal$1, { children: open ? /* @__PURE__ */ jsxRuntime.jsx(react.FloatingOverlay, { "data-testid": "visits-style-shadow", onClick: handleBlur, style: {
|
|
838
|
-
zIndex
|
|
839
|
+
zIndex
|
|
839
840
|
}, children: /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { role: "tooltip", ref: refs.setFloating, color, style: floatingStyles, ...getFloatingProps({
|
|
840
841
|
...rest,
|
|
841
842
|
onClick: stopPropagation$1
|
|
@@ -1049,11 +1050,11 @@ function getColor$1({
|
|
|
1049
1050
|
return styledComponents.css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme.border, theme.border);
|
|
1050
1051
|
}
|
|
1051
1052
|
const spin = /* @__PURE__ */ styledComponents.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
1052
|
-
function shouldForwardProp$
|
|
1053
|
+
function shouldForwardProp$5(name) {
|
|
1053
1054
|
return name !== "color" && name !== "size" && name !== "borderSize";
|
|
1054
1055
|
}
|
|
1055
1056
|
const Spinner = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1056
|
-
shouldForwardProp: shouldForwardProp$
|
|
1057
|
+
shouldForwardProp: shouldForwardProp$5
|
|
1057
1058
|
}).withConfig({
|
|
1058
1059
|
displayName: "Spinner",
|
|
1059
1060
|
componentId: "sc-34g0il-0"
|
|
@@ -1089,6 +1090,8 @@ function setResponsive({
|
|
|
1089
1090
|
}) => setGap(theme.media.mobile, theme.smallGutter));
|
|
1090
1091
|
}
|
|
1091
1092
|
const Container = styledComponents.styled.div.withConfig({
|
|
1093
|
+
shouldForwardProp: (name) => name !== "fluid"
|
|
1094
|
+
}).withConfig({
|
|
1092
1095
|
displayName: "Container",
|
|
1093
1096
|
componentId: "sc-1308ay5-0"
|
|
1094
1097
|
})(["position:relative;width:100%;", ""], setResponsive);
|
|
@@ -1117,7 +1120,12 @@ function setAutoSize({
|
|
|
1117
1120
|
const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
|
|
1118
1121
|
return styledComponents.css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
|
|
1119
1122
|
}
|
|
1123
|
+
function shouldForwardProp$4(name) {
|
|
1124
|
+
return name !== "size" && name !== "offset" && name !== "auto";
|
|
1125
|
+
}
|
|
1120
1126
|
const Col = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1127
|
+
shouldForwardProp: shouldForwardProp$4
|
|
1128
|
+
}).withConfig({
|
|
1121
1129
|
displayName: "Col",
|
|
1122
1130
|
componentId: "sc-16i9d04-0"
|
|
1123
1131
|
})(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
|
|
@@ -1188,11 +1196,11 @@ function setColor({
|
|
|
1188
1196
|
}
|
|
1189
1197
|
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
1198
|
}
|
|
1191
|
-
function shouldForwardProp$
|
|
1199
|
+
function shouldForwardProp$3(name) {
|
|
1192
1200
|
return name !== "color" && name !== "size" && name !== "outline" && name !== "round" && name !== "icon";
|
|
1193
1201
|
}
|
|
1194
1202
|
const Button = styledComponents.styled.button.withConfig({
|
|
1195
|
-
shouldForwardProp: shouldForwardProp$
|
|
1203
|
+
shouldForwardProp: shouldForwardProp$3
|
|
1196
1204
|
}).withConfig({
|
|
1197
1205
|
displayName: "Button",
|
|
1198
1206
|
componentId: "sc-f6cc58-0"
|
|
@@ -1207,11 +1215,11 @@ const Button = styledComponents.styled.button.withConfig({
|
|
|
1207
1215
|
size
|
|
1208
1216
|
}) => setSize("font-size", size));
|
|
1209
1217
|
|
|
1210
|
-
function shouldForwardProp$
|
|
1218
|
+
function shouldForwardProp$2(name) {
|
|
1211
1219
|
return name !== "color" && name !== "size" && name !== "pure" && name !== "underline" && name !== "round" && name !== "icon";
|
|
1212
1220
|
}
|
|
1213
1221
|
const TextButton = styledComponents.styled.button.withConfig({
|
|
1214
|
-
shouldForwardProp: shouldForwardProp$
|
|
1222
|
+
shouldForwardProp: shouldForwardProp$2
|
|
1215
1223
|
}).withConfig({
|
|
1216
1224
|
displayName: "TextButton",
|
|
1217
1225
|
componentId: "sc-14wzat7-0"
|
|
@@ -1262,7 +1270,12 @@ const ButtonGroup = styledComponents.styled.div.withConfig({
|
|
|
1262
1270
|
|
|
1263
1271
|
const stripedStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
|
|
1264
1272
|
const hoverStyle = /* @__PURE__ */ styledComponents.css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
|
|
1273
|
+
function shouldForwardProp$1(name) {
|
|
1274
|
+
return name !== "size" && name !== "full" && name !== "headerStyle" && name !== "bordered" && name !== "striped" && name !== "hover";
|
|
1275
|
+
}
|
|
1265
1276
|
const index$1 = styledComponents.styled.table.withConfig({
|
|
1277
|
+
shouldForwardProp: shouldForwardProp$1
|
|
1278
|
+
}).withConfig({
|
|
1266
1279
|
displayName: "Table",
|
|
1267
1280
|
componentId: "sc-1x2nuaf-0"
|
|
1268
1281
|
})(["", " 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 +1295,12 @@ function Progress({
|
|
|
1282
1295
|
value,
|
|
1283
1296
|
max,
|
|
1284
1297
|
color = "primary",
|
|
1298
|
+
height,
|
|
1299
|
+
size,
|
|
1285
1300
|
...rest
|
|
1286
1301
|
}) {
|
|
1287
1302
|
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: {
|
|
1303
|
+
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
1304
|
width: `${percent > 100 ? 100 : percent}%`
|
|
1290
1305
|
} }) });
|
|
1291
1306
|
}
|
|
@@ -1297,14 +1312,14 @@ const Wrapper$1 = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1297
1312
|
}) => theme.radius, ({
|
|
1298
1313
|
theme
|
|
1299
1314
|
}) => theme.background, ({
|
|
1300
|
-
size,
|
|
1301
|
-
height
|
|
1302
|
-
}) => height || setSize("height", size), ({
|
|
1315
|
+
$size,
|
|
1316
|
+
$height
|
|
1317
|
+
}) => $height || setSize("height", $size), ({
|
|
1303
1318
|
theme
|
|
1304
1319
|
}) => theme.radius, ({
|
|
1305
|
-
color,
|
|
1320
|
+
$color,
|
|
1306
1321
|
theme
|
|
1307
|
-
}) => theme[color] || color);
|
|
1322
|
+
}) => theme[$color] || $color);
|
|
1308
1323
|
|
|
1309
1324
|
const index = styledComponents.styled.hr.withConfig({
|
|
1310
1325
|
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"
|
|
@@ -764,6 +764,7 @@ const Popover = forwardRef(({
|
|
|
764
764
|
y: 6
|
|
765
765
|
},
|
|
766
766
|
onManualClose,
|
|
767
|
+
zIndex = 9996,
|
|
767
768
|
...rest
|
|
768
769
|
}, ref) => {
|
|
769
770
|
const [open, setOpen] = useState(false);
|
|
@@ -827,7 +828,7 @@ const Popover = forwardRef(({
|
|
|
827
828
|
})
|
|
828
829
|
}),
|
|
829
830
|
/* @__PURE__ */ jsx(Portal$1, { children: open ? /* @__PURE__ */ jsx(FloatingOverlay, { "data-testid": "visits-style-shadow", onClick: handleBlur, style: {
|
|
830
|
-
zIndex
|
|
831
|
+
zIndex
|
|
831
832
|
}, children: /* @__PURE__ */ jsx(Tooltip, { role: "tooltip", ref: refs.setFloating, color, style: floatingStyles, ...getFloatingProps({
|
|
832
833
|
...rest,
|
|
833
834
|
onClick: stopPropagation$1
|
|
@@ -1041,11 +1042,11 @@ function getColor$1({
|
|
|
1041
1042
|
return css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme.border, theme.border);
|
|
1042
1043
|
}
|
|
1043
1044
|
const spin = /* @__PURE__ */ keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
1044
|
-
function shouldForwardProp$
|
|
1045
|
+
function shouldForwardProp$5(name) {
|
|
1045
1046
|
return name !== "color" && name !== "size" && name !== "borderSize";
|
|
1046
1047
|
}
|
|
1047
1048
|
const Spinner = /* @__PURE__ */ styled.div.withConfig({
|
|
1048
|
-
shouldForwardProp: shouldForwardProp$
|
|
1049
|
+
shouldForwardProp: shouldForwardProp$5
|
|
1049
1050
|
}).withConfig({
|
|
1050
1051
|
displayName: "Spinner",
|
|
1051
1052
|
componentId: "sc-34g0il-0"
|
|
@@ -1081,6 +1082,8 @@ function setResponsive({
|
|
|
1081
1082
|
}) => setGap(theme.media.mobile, theme.smallGutter));
|
|
1082
1083
|
}
|
|
1083
1084
|
const Container = styled.div.withConfig({
|
|
1085
|
+
shouldForwardProp: (name) => name !== "fluid"
|
|
1086
|
+
}).withConfig({
|
|
1084
1087
|
displayName: "Container",
|
|
1085
1088
|
componentId: "sc-1308ay5-0"
|
|
1086
1089
|
})(["position:relative;width:100%;", ""], setResponsive);
|
|
@@ -1109,7 +1112,12 @@ function setAutoSize({
|
|
|
1109
1112
|
const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
|
|
1110
1113
|
return css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
|
|
1111
1114
|
}
|
|
1115
|
+
function shouldForwardProp$4(name) {
|
|
1116
|
+
return name !== "size" && name !== "offset" && name !== "auto";
|
|
1117
|
+
}
|
|
1112
1118
|
const Col = /* @__PURE__ */ styled.div.withConfig({
|
|
1119
|
+
shouldForwardProp: shouldForwardProp$4
|
|
1120
|
+
}).withConfig({
|
|
1113
1121
|
displayName: "Col",
|
|
1114
1122
|
componentId: "sc-16i9d04-0"
|
|
1115
1123
|
})(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
|
|
@@ -1180,11 +1188,11 @@ function setColor({
|
|
|
1180
1188
|
}
|
|
1181
1189
|
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
1190
|
}
|
|
1183
|
-
function shouldForwardProp$
|
|
1191
|
+
function shouldForwardProp$3(name) {
|
|
1184
1192
|
return name !== "color" && name !== "size" && name !== "outline" && name !== "round" && name !== "icon";
|
|
1185
1193
|
}
|
|
1186
1194
|
const Button = styled.button.withConfig({
|
|
1187
|
-
shouldForwardProp: shouldForwardProp$
|
|
1195
|
+
shouldForwardProp: shouldForwardProp$3
|
|
1188
1196
|
}).withConfig({
|
|
1189
1197
|
displayName: "Button",
|
|
1190
1198
|
componentId: "sc-f6cc58-0"
|
|
@@ -1199,11 +1207,11 @@ const Button = styled.button.withConfig({
|
|
|
1199
1207
|
size
|
|
1200
1208
|
}) => setSize("font-size", size));
|
|
1201
1209
|
|
|
1202
|
-
function shouldForwardProp$
|
|
1210
|
+
function shouldForwardProp$2(name) {
|
|
1203
1211
|
return name !== "color" && name !== "size" && name !== "pure" && name !== "underline" && name !== "round" && name !== "icon";
|
|
1204
1212
|
}
|
|
1205
1213
|
const TextButton = styled.button.withConfig({
|
|
1206
|
-
shouldForwardProp: shouldForwardProp$
|
|
1214
|
+
shouldForwardProp: shouldForwardProp$2
|
|
1207
1215
|
}).withConfig({
|
|
1208
1216
|
displayName: "TextButton",
|
|
1209
1217
|
componentId: "sc-14wzat7-0"
|
|
@@ -1254,7 +1262,12 @@ const ButtonGroup = styled.div.withConfig({
|
|
|
1254
1262
|
|
|
1255
1263
|
const stripedStyle = /* @__PURE__ */ css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
|
|
1256
1264
|
const hoverStyle = /* @__PURE__ */ css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
|
|
1265
|
+
function shouldForwardProp$1(name) {
|
|
1266
|
+
return name !== "size" && name !== "full" && name !== "headerStyle" && name !== "bordered" && name !== "striped" && name !== "hover";
|
|
1267
|
+
}
|
|
1257
1268
|
const index$1 = styled.table.withConfig({
|
|
1269
|
+
shouldForwardProp: shouldForwardProp$1
|
|
1270
|
+
}).withConfig({
|
|
1258
1271
|
displayName: "Table",
|
|
1259
1272
|
componentId: "sc-1x2nuaf-0"
|
|
1260
1273
|
})(["", " 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 +1287,12 @@ function Progress({
|
|
|
1274
1287
|
value,
|
|
1275
1288
|
max,
|
|
1276
1289
|
color = "primary",
|
|
1290
|
+
height,
|
|
1291
|
+
size,
|
|
1277
1292
|
...rest
|
|
1278
1293
|
}) {
|
|
1279
1294
|
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: {
|
|
1295
|
+
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
1296
|
width: `${percent > 100 ? 100 : percent}%`
|
|
1282
1297
|
} }) });
|
|
1283
1298
|
}
|
|
@@ -1289,14 +1304,14 @@ const Wrapper$1 = /* @__PURE__ */ styled.div.withConfig({
|
|
|
1289
1304
|
}) => theme.radius, ({
|
|
1290
1305
|
theme
|
|
1291
1306
|
}) => theme.background, ({
|
|
1292
|
-
size,
|
|
1293
|
-
height
|
|
1294
|
-
}) => height || setSize("height", size), ({
|
|
1307
|
+
$size,
|
|
1308
|
+
$height
|
|
1309
|
+
}) => $height || setSize("height", $size), ({
|
|
1295
1310
|
theme
|
|
1296
1311
|
}) => theme.radius, ({
|
|
1297
|
-
color,
|
|
1312
|
+
$color,
|
|
1298
1313
|
theme
|
|
1299
|
-
}) => theme[color] || color);
|
|
1314
|
+
}) => theme[$color] || $color);
|
|
1300
1315
|
|
|
1301
1316
|
const index = styled.hr.withConfig({
|
|
1302
1317
|
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.10",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
8
8
|
"module": "./dist/index.es.js",
|