@mw-kit/mw-ui 1.8.12 → 1.8.14
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/Input/components/Range/styles/SelectedArea/index.d.ts +1 -4
- package/dist/components/Input/components/Select/hooks/SelectMultiple/interfaces.d.ts +4 -0
- package/dist/components/Input/components/Select/hooks/SelectMultiple/utils.d.ts +7 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.js +256 -170
- package/dist/index.mjs +295 -209
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7767,10 +7767,10 @@ var Button = (props) => {
|
|
|
7767
7767
|
var Button_default = Button;
|
|
7768
7768
|
|
|
7769
7769
|
// src/components/Filters/AppliedFilters/components/Menu/index.tsx
|
|
7770
|
-
var
|
|
7770
|
+
var import_react41 = require("react");
|
|
7771
7771
|
|
|
7772
7772
|
// src/components/Input/index.tsx
|
|
7773
|
-
var
|
|
7773
|
+
var import_react40 = __toESM(require("react"));
|
|
7774
7774
|
|
|
7775
7775
|
// src/components/Input/components/Checkbox/index.tsx
|
|
7776
7776
|
var import_react7 = __toESM(require("react"));
|
|
@@ -10332,17 +10332,25 @@ var Button3 = (props) => {
|
|
|
10332
10332
|
};
|
|
10333
10333
|
const htmlProps = filterObject(props, ["size", "appearance", "color", "loading", "content"]);
|
|
10334
10334
|
const loaderSize = sizes[defaultValues.$size].lineHeight;
|
|
10335
|
-
return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
|
|
10336
|
+
Button2,
|
|
10337
|
+
{
|
|
10338
|
+
...defaultValues,
|
|
10339
|
+
...htmlProps,
|
|
10340
|
+
formNoValidate: "formNoValidate" in props ? props.formNoValidate : props.type === "submit",
|
|
10341
|
+
children: [
|
|
10342
|
+
children || content,
|
|
10343
|
+
props.loading && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
|
|
10344
|
+
Loader_default2,
|
|
10345
|
+
{
|
|
10346
|
+
color: defaultValues.$appearance === "solid" ? "white" : "blue",
|
|
10347
|
+
size: loaderSize,
|
|
10348
|
+
borderSize: `calc(${loaderSize} * 0.0757)`
|
|
10349
|
+
}
|
|
10350
|
+
)
|
|
10351
|
+
]
|
|
10352
|
+
}
|
|
10353
|
+
);
|
|
10346
10354
|
};
|
|
10347
10355
|
var Button_default2 = Button3;
|
|
10348
10356
|
|
|
@@ -12572,9 +12580,7 @@ var SelectedArea = import_styled_components30.default.div`
|
|
|
12572
12580
|
z-index: 1;
|
|
12573
12581
|
|
|
12574
12582
|
> span {
|
|
12575
|
-
|
|
12576
|
-
display: block;
|
|
12577
|
-
box-sizing: border-box;
|
|
12583
|
+
background-color: ${({ theme: theme4 }) => theme4.colors.blue};
|
|
12578
12584
|
height: 100%;
|
|
12579
12585
|
}
|
|
12580
12586
|
`;
|
|
@@ -12965,8 +12971,7 @@ var Range = import_react27.default.forwardRef(
|
|
|
12965
12971
|
const viewMode = isViewMode() || props.viewMode;
|
|
12966
12972
|
const { min, max, strict, markers, step, position, value } = getMarkers(props);
|
|
12967
12973
|
const range = max - min;
|
|
12968
|
-
const percent = 100 / range;
|
|
12969
|
-
const spans = value - min;
|
|
12974
|
+
const percent = (value - min) * 100 / range;
|
|
12970
12975
|
if (value < min || value > max) {
|
|
12971
12976
|
throw new Error(
|
|
12972
12977
|
`Value must be between "${min}" and "${max}". "${value}" given`
|
|
@@ -13143,7 +13148,14 @@ var Range = import_react27.default.forwardRef(
|
|
|
13143
13148
|
}
|
|
13144
13149
|
)
|
|
13145
13150
|
] }),
|
|
13146
|
-
/* @__PURE__ */ (0, import_jsx_runtime319.jsx)(SelectedArea_default, {
|
|
13151
|
+
/* @__PURE__ */ (0, import_jsx_runtime319.jsx)(SelectedArea_default, { children: /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
|
|
13152
|
+
"span",
|
|
13153
|
+
{
|
|
13154
|
+
style: {
|
|
13155
|
+
width: `calc(${percent}% - (${bulletSize * percent / 100}px)`
|
|
13156
|
+
}
|
|
13157
|
+
}
|
|
13158
|
+
) })
|
|
13147
13159
|
] })
|
|
13148
13160
|
] }),
|
|
13149
13161
|
maxLabel && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(MinMaxLabelContainer_default, { children: maxLabel })
|
|
@@ -13157,7 +13169,7 @@ Range.displayName = "input";
|
|
|
13157
13169
|
var Range_default = Range;
|
|
13158
13170
|
|
|
13159
13171
|
// src/components/Input/components/Select/index.tsx
|
|
13160
|
-
var
|
|
13172
|
+
var import_react36 = __toESM(require("react"));
|
|
13161
13173
|
|
|
13162
13174
|
// src/components/Input/components/Select/hooks/Select/index.tsx
|
|
13163
13175
|
var import_react31 = __toESM(require("react"));
|
|
@@ -13392,7 +13404,10 @@ var useSelect = (props, [highlight, setHighlight], [options, setOptions], setOpe
|
|
|
13392
13404
|
var Select_default = useSelect;
|
|
13393
13405
|
|
|
13394
13406
|
// src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
|
|
13395
|
-
var
|
|
13407
|
+
var import_react35 = __toESM(require("react"));
|
|
13408
|
+
|
|
13409
|
+
// src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
|
|
13410
|
+
var import_react33 = __toESM(require("react"));
|
|
13396
13411
|
|
|
13397
13412
|
// src/components/Input/components/Select/hooks/SelectMultiple/context.ts
|
|
13398
13413
|
var import_react32 = __toESM(require("react"));
|
|
@@ -13407,9 +13422,16 @@ var Footer2 = () => {
|
|
|
13407
13422
|
const {
|
|
13408
13423
|
props: { value, setValue },
|
|
13409
13424
|
checked: [checked],
|
|
13410
|
-
setOpen
|
|
13425
|
+
setOpen,
|
|
13426
|
+
limits
|
|
13411
13427
|
} = context;
|
|
13428
|
+
const { min, max, enabled, error } = limits;
|
|
13429
|
+
const isDirty = checked.length !== value.length || checked.some((e) => !value.includes(e.value));
|
|
13430
|
+
const belowMin = enabled && typeof min === "number" ? checked.length < min : false;
|
|
13431
|
+
const aboveMax = enabled && typeof max === "number" ? checked.length > max : false;
|
|
13432
|
+
const disabled = !!error || !isDirty || belowMin || aboveMax;
|
|
13412
13433
|
const onClick = () => {
|
|
13434
|
+
if (disabled) return;
|
|
13413
13435
|
const [value2, data] = checked.reduce(
|
|
13414
13436
|
(r, e) => [
|
|
13415
13437
|
[...r[0], e.value],
|
|
@@ -13420,22 +13442,35 @@ var Footer2 = () => {
|
|
|
13420
13442
|
setValue(value2, data);
|
|
13421
13443
|
setOpen(false);
|
|
13422
13444
|
};
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(import_react33.default.Fragment, { children: [
|
|
13446
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
|
|
13447
|
+
"span",
|
|
13448
|
+
{
|
|
13449
|
+
style: {
|
|
13450
|
+
padding: "7px",
|
|
13451
|
+
color: "#d32f2f",
|
|
13452
|
+
fontSize: "12px",
|
|
13453
|
+
flex: 1
|
|
13454
|
+
},
|
|
13455
|
+
children: error
|
|
13456
|
+
}
|
|
13457
|
+
),
|
|
13458
|
+
/* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
|
|
13459
|
+
Button_default2,
|
|
13460
|
+
{
|
|
13461
|
+
type: "button",
|
|
13462
|
+
content: "Aplicar",
|
|
13463
|
+
onClick,
|
|
13464
|
+
style: { marginRight: "-3.5px" },
|
|
13465
|
+
disabled
|
|
13466
|
+
}
|
|
13467
|
+
)
|
|
13468
|
+
] });
|
|
13434
13469
|
};
|
|
13435
13470
|
var Footer_default = Footer2;
|
|
13436
13471
|
|
|
13437
13472
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
|
|
13438
|
-
var
|
|
13473
|
+
var import_react34 = __toESM(require("react"));
|
|
13439
13474
|
|
|
13440
13475
|
// src/components/Link/index.tsx
|
|
13441
13476
|
var import_styled_components42 = __toESM(require("styled-components"));
|
|
@@ -13502,8 +13537,10 @@ var CheckAll = () => {
|
|
|
13502
13537
|
const context = useContext3();
|
|
13503
13538
|
const {
|
|
13504
13539
|
checked: [checked, setChecked],
|
|
13505
|
-
options
|
|
13540
|
+
options,
|
|
13541
|
+
limits
|
|
13506
13542
|
} = context;
|
|
13543
|
+
const { max, enabled, error } = limits;
|
|
13507
13544
|
const maxCheck = options.reduce((count, o, idx) => {
|
|
13508
13545
|
var _a;
|
|
13509
13546
|
if (o.disabled) return count;
|
|
@@ -13511,19 +13548,20 @@ var CheckAll = () => {
|
|
|
13511
13548
|
if (rule) return count;
|
|
13512
13549
|
return count + 1;
|
|
13513
13550
|
}, 0);
|
|
13551
|
+
const maxAllowed = enabled && typeof max === "number" ? Math.min(max, maxCheck) : maxCheck;
|
|
13514
13552
|
const onClick = () => {
|
|
13515
13553
|
setChecked((prev) => {
|
|
13516
|
-
if (prev.length >=
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
);
|
|
13554
|
+
if (prev.length >= maxAllowed) return [];
|
|
13555
|
+
if (maxAllowed <= 0) return [];
|
|
13556
|
+
const checked2 = [];
|
|
13557
|
+
options.forEach((o, idx) => {
|
|
13558
|
+
var _a;
|
|
13559
|
+
if (checked2.length >= maxAllowed) return;
|
|
13560
|
+
if (o.disabled) return;
|
|
13561
|
+
const rule = (_a = o.rules) == null ? void 0 : _a.some((rule2) => rule2(idx, o.data) !== true);
|
|
13562
|
+
if (rule) return;
|
|
13563
|
+
checked2.push({ value: o.value, data: o.data });
|
|
13564
|
+
});
|
|
13527
13565
|
return checked2;
|
|
13528
13566
|
});
|
|
13529
13567
|
};
|
|
@@ -13536,8 +13574,8 @@ var CheckAll = () => {
|
|
|
13536
13574
|
/* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
|
|
13537
13575
|
Link_default2,
|
|
13538
13576
|
{
|
|
13539
|
-
children: checked.length >=
|
|
13540
|
-
onClick
|
|
13577
|
+
children: checked.length >= maxAllowed ? "Desmarcar todos" : "Selecionar todos",
|
|
13578
|
+
onClick: error ? void 0 : onClick
|
|
13541
13579
|
}
|
|
13542
13580
|
)
|
|
13543
13581
|
] });
|
|
@@ -13545,13 +13583,15 @@ var CheckAll = () => {
|
|
|
13545
13583
|
var Header3 = () => {
|
|
13546
13584
|
const context = useContext3();
|
|
13547
13585
|
if (!context.props.search) {
|
|
13548
|
-
return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
|
|
13586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(import_react34.default.Fragment, {});
|
|
13549
13587
|
}
|
|
13550
13588
|
const {
|
|
13551
|
-
searchInput: [searchInput, setSearchInput]
|
|
13589
|
+
searchInput: [searchInput, setSearchInput],
|
|
13590
|
+
limits
|
|
13552
13591
|
} = context;
|
|
13592
|
+
const showSelectAll = context.props.selectAll && limits.max === void 0;
|
|
13553
13593
|
return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)(HeaderContainer2, { children: [
|
|
13554
|
-
|
|
13594
|
+
showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(CheckAll, {}),
|
|
13555
13595
|
/* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
|
|
13556
13596
|
Input_default,
|
|
13557
13597
|
{
|
|
@@ -13576,22 +13616,30 @@ var import_jsx_runtime325 = require("react/jsx-runtime");
|
|
|
13576
13616
|
var Label6 = (props) => {
|
|
13577
13617
|
const context = useContext3();
|
|
13578
13618
|
const {
|
|
13579
|
-
checked: [checked, setChecked]
|
|
13619
|
+
checked: [checked, setChecked],
|
|
13620
|
+
limits
|
|
13580
13621
|
} = context;
|
|
13622
|
+
const { max, enabled } = limits;
|
|
13581
13623
|
const { disabled, value } = props.option;
|
|
13624
|
+
const isChecked = checked.findIndex((e) => e.value === value) !== -1;
|
|
13625
|
+
const disabledByLimit = enabled && typeof max === "number" && checked.length >= max && !isChecked;
|
|
13626
|
+
const finalDisabled = disabled || disabledByLimit || !!limits.error;
|
|
13582
13627
|
const LabelComponent = props.label;
|
|
13583
13628
|
return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
|
|
13584
13629
|
Checkbox_default,
|
|
13585
13630
|
{
|
|
13586
13631
|
type: "checkbox",
|
|
13587
|
-
checked:
|
|
13632
|
+
checked: isChecked,
|
|
13588
13633
|
label: typeof LabelComponent !== "function" ? LabelComponent : /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(LabelComponent, { ...props.option }),
|
|
13589
|
-
disabled,
|
|
13634
|
+
disabled: finalDisabled,
|
|
13590
13635
|
onChange: (event) => {
|
|
13591
|
-
const
|
|
13636
|
+
const isChecked2 = event.target.checked;
|
|
13592
13637
|
setChecked((prev) => {
|
|
13593
13638
|
const newState = prev.filter((v) => v.value !== value);
|
|
13594
|
-
if (
|
|
13639
|
+
if (isChecked2) {
|
|
13640
|
+
if (enabled && typeof max === "number" && prev.length >= max) {
|
|
13641
|
+
return prev;
|
|
13642
|
+
}
|
|
13595
13643
|
const e = props.value.find((e2) => e2.value === value);
|
|
13596
13644
|
newState.push(
|
|
13597
13645
|
e || {
|
|
@@ -13616,24 +13664,44 @@ var Label6 = (props) => {
|
|
|
13616
13664
|
};
|
|
13617
13665
|
var Label_default2 = Label6;
|
|
13618
13666
|
|
|
13667
|
+
// src/components/Input/components/Select/hooks/SelectMultiple/utils.ts
|
|
13668
|
+
var resolveLimits = (minSelected, maxSelected) => {
|
|
13669
|
+
const min = typeof minSelected === "number" && minSelected >= 0 ? minSelected : void 0;
|
|
13670
|
+
const max = typeof maxSelected === "number" && maxSelected >= 0 ? maxSelected : void 0;
|
|
13671
|
+
const enabled = min !== void 0 || max !== void 0;
|
|
13672
|
+
if (!enabled) {
|
|
13673
|
+
return { enabled };
|
|
13674
|
+
}
|
|
13675
|
+
if (min !== void 0 && max !== void 0 && min > max) {
|
|
13676
|
+
return {
|
|
13677
|
+
enabled: false,
|
|
13678
|
+
error: "minSelected cannot be greater than maxSelected"
|
|
13679
|
+
};
|
|
13680
|
+
}
|
|
13681
|
+
return { min, max, enabled };
|
|
13682
|
+
};
|
|
13683
|
+
|
|
13619
13684
|
// src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
|
|
13620
13685
|
var import_jsx_runtime326 = require("react/jsx-runtime");
|
|
13621
|
-
var getOptions2 = (options, value) => {
|
|
13686
|
+
var getOptions2 = (options, value, checked, limits) => {
|
|
13687
|
+
const limitReached = limits.enabled && typeof limits.max === "number" && checked.length >= limits.max && !limits.error;
|
|
13622
13688
|
return options.map((option) => {
|
|
13623
13689
|
const { label, onClick } = option;
|
|
13624
13690
|
const data = { data: option.data, value: option.value };
|
|
13691
|
+
const isChecked = checked.some((c) => c.value === option.value);
|
|
13692
|
+
const disabled = option.disabled || (!!limits.error || limitReached && !isChecked);
|
|
13625
13693
|
const parsed = {
|
|
13626
13694
|
label: (option2) => /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
|
|
13627
13695
|
Label_default2,
|
|
13628
13696
|
{
|
|
13629
|
-
option: { ...data, disabled: option2.disabled },
|
|
13697
|
+
option: { ...data, disabled: disabled || option2.disabled },
|
|
13630
13698
|
label,
|
|
13631
13699
|
value
|
|
13632
13700
|
}
|
|
13633
13701
|
),
|
|
13634
13702
|
onClick,
|
|
13635
13703
|
data,
|
|
13636
|
-
disabled
|
|
13704
|
+
disabled,
|
|
13637
13705
|
rules: option.rules,
|
|
13638
13706
|
keepOpen: true
|
|
13639
13707
|
};
|
|
@@ -13652,10 +13720,17 @@ var parseValue = (value) => {
|
|
|
13652
13720
|
};
|
|
13653
13721
|
var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]) => {
|
|
13654
13722
|
const initial = parseValue(props.value);
|
|
13655
|
-
const [checked, setChecked] = (0,
|
|
13723
|
+
const [checked, setChecked] = (0, import_react35.useState)([
|
|
13656
13724
|
...initial
|
|
13657
13725
|
]);
|
|
13658
|
-
const
|
|
13726
|
+
const limits = resolveLimits(props.minSelected, props.maxSelected);
|
|
13727
|
+
const { max, enabled } = limits;
|
|
13728
|
+
(0, import_react35.useEffect)(() => {
|
|
13729
|
+
if (limits.error) {
|
|
13730
|
+
console.error(`[SelectMultiple]: ${limits.error}`);
|
|
13731
|
+
}
|
|
13732
|
+
}, [limits.error]);
|
|
13733
|
+
const parsedOptions = getOptions2(options, initial, checked, limits);
|
|
13659
13734
|
const inputContent = getInputContent2(props.value);
|
|
13660
13735
|
const onReset = () => {
|
|
13661
13736
|
setChecked([...initial]);
|
|
@@ -13667,6 +13742,9 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13667
13742
|
setChecked((prev) => {
|
|
13668
13743
|
const index2 = prev.findIndex((e) => e.value === option.value);
|
|
13669
13744
|
if (index2 < 0) {
|
|
13745
|
+
if (enabled && typeof max === "number" && prev.length >= max) {
|
|
13746
|
+
return prev;
|
|
13747
|
+
}
|
|
13670
13748
|
return [
|
|
13671
13749
|
...prev,
|
|
13672
13750
|
{
|
|
@@ -13687,7 +13765,7 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13687
13765
|
onReset,
|
|
13688
13766
|
menu: {
|
|
13689
13767
|
itemSpacing: void 0,
|
|
13690
|
-
before: /* @__PURE__ */ (0, import_jsx_runtime326.jsxs)(
|
|
13768
|
+
before: /* @__PURE__ */ (0, import_jsx_runtime326.jsxs)(import_react35.default.Fragment, { children: [
|
|
13691
13769
|
/* @__PURE__ */ (0, import_jsx_runtime326.jsx)(Header_default2, {}),
|
|
13692
13770
|
/* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
|
|
13693
13771
|
HiddenInput,
|
|
@@ -13707,7 +13785,13 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13707
13785
|
return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
|
|
13708
13786
|
context_default3.Provider,
|
|
13709
13787
|
{
|
|
13710
|
-
value: {
|
|
13788
|
+
value: {
|
|
13789
|
+
...base,
|
|
13790
|
+
props,
|
|
13791
|
+
options,
|
|
13792
|
+
checked: [checked, setChecked],
|
|
13793
|
+
limits
|
|
13794
|
+
},
|
|
13711
13795
|
children
|
|
13712
13796
|
}
|
|
13713
13797
|
);
|
|
@@ -13736,12 +13820,12 @@ var SelectMultiple_default = useSelectMultiple;
|
|
|
13736
13820
|
|
|
13737
13821
|
// src/components/Input/components/Select/index.tsx
|
|
13738
13822
|
var import_jsx_runtime327 = require("react/jsx-runtime");
|
|
13739
|
-
var Select =
|
|
13823
|
+
var Select = import_react36.default.forwardRef(
|
|
13740
13824
|
(props, ref) => {
|
|
13741
13825
|
const { position, loader: loader2, initialLoader } = props;
|
|
13742
|
-
const [options, setOptions] = (0,
|
|
13743
|
-
const [highlight, setHighlight] = (0,
|
|
13744
|
-
const [open, setOpen] = (0,
|
|
13826
|
+
const [options, setOptions] = (0, import_react36.useState)(initialLoader || []);
|
|
13827
|
+
const [highlight, setHighlight] = (0, import_react36.useState)(-1);
|
|
13828
|
+
const [open, setOpen] = (0, import_react36.useState)(false);
|
|
13745
13829
|
const hook = props.type === "select-multiple" ? SelectMultiple_default : Select_default;
|
|
13746
13830
|
const {
|
|
13747
13831
|
parsedOptions,
|
|
@@ -13757,11 +13841,11 @@ var Select = import_react35.default.forwardRef(
|
|
|
13757
13841
|
[options, setOptions],
|
|
13758
13842
|
setOpen
|
|
13759
13843
|
);
|
|
13760
|
-
const [_loading, setLoading] = (0,
|
|
13761
|
-
const [search, _setSearch] = (0,
|
|
13762
|
-
const [searchInput, setSearchInput] = (0,
|
|
13763
|
-
const [page, setPage] = (0,
|
|
13764
|
-
const [lastPage, setLastPage] = (0,
|
|
13844
|
+
const [_loading, setLoading] = (0, import_react36.useState)(true);
|
|
13845
|
+
const [search, _setSearch] = (0, import_react36.useState)("");
|
|
13846
|
+
const [searchInput, setSearchInput] = (0, import_react36.useState)("");
|
|
13847
|
+
const [page, setPage] = (0, import_react36.useState)(1);
|
|
13848
|
+
const [lastPage, setLastPage] = (0, import_react36.useState)(false);
|
|
13765
13849
|
const loading = props.loading || _loading;
|
|
13766
13850
|
const setSearch = (value) => {
|
|
13767
13851
|
_setSearch(value);
|
|
@@ -13782,7 +13866,9 @@ var Select = import_react35.default.forwardRef(
|
|
|
13782
13866
|
"selectAll",
|
|
13783
13867
|
"setValue",
|
|
13784
13868
|
"type",
|
|
13785
|
-
"value"
|
|
13869
|
+
"value",
|
|
13870
|
+
"minSelected",
|
|
13871
|
+
"maxSelected"
|
|
13786
13872
|
]);
|
|
13787
13873
|
const _onScrollEnd = props.onScrollEnd || (() => {
|
|
13788
13874
|
});
|
|
@@ -13792,7 +13878,7 @@ var Select = import_react35.default.forwardRef(
|
|
|
13792
13878
|
}
|
|
13793
13879
|
_onScrollEnd(e);
|
|
13794
13880
|
};
|
|
13795
|
-
const onSubmit = (0,
|
|
13881
|
+
const onSubmit = (0, import_react36.useCallback)(async () => {
|
|
13796
13882
|
setLoading(true);
|
|
13797
13883
|
const optionsResult = await loader2(search, page);
|
|
13798
13884
|
if (optionsResult === null) return;
|
|
@@ -13808,22 +13894,22 @@ var Select = import_react35.default.forwardRef(
|
|
|
13808
13894
|
setLastPage(lastPage2);
|
|
13809
13895
|
setLoading(false);
|
|
13810
13896
|
}, [loader2, search, page, initialLoader]);
|
|
13811
|
-
(0,
|
|
13897
|
+
(0, import_react36.useEffect)(() => {
|
|
13812
13898
|
const timeoutId = setTimeout(() => onSubmit(), 250);
|
|
13813
13899
|
return () => clearTimeout(timeoutId);
|
|
13814
13900
|
}, [onSubmit]);
|
|
13815
|
-
(0,
|
|
13901
|
+
(0, import_react36.useEffect)(() => {
|
|
13816
13902
|
if (open) return;
|
|
13817
13903
|
setSearch("");
|
|
13818
13904
|
onReset();
|
|
13819
13905
|
}, [props.value, open]);
|
|
13820
|
-
(0,
|
|
13906
|
+
(0, import_react36.useEffect)(() => {
|
|
13821
13907
|
setSearchInput(search);
|
|
13822
13908
|
}, [search]);
|
|
13823
|
-
(0,
|
|
13909
|
+
(0, import_react36.useEffect)(() => {
|
|
13824
13910
|
if (page === 1) setHighlight(-1);
|
|
13825
13911
|
}, [page]);
|
|
13826
|
-
(0,
|
|
13912
|
+
(0, import_react36.useEffect)(() => {
|
|
13827
13913
|
const timeoutId = setTimeout(() => setSearch(searchInput), 1e3);
|
|
13828
13914
|
return () => clearTimeout(timeoutId);
|
|
13829
13915
|
}, [searchInput]);
|
|
@@ -13915,7 +14001,7 @@ Select.displayName = "Select";
|
|
|
13915
14001
|
var Select_default2 = Select;
|
|
13916
14002
|
|
|
13917
14003
|
// src/components/Input/components/Switch/index.tsx
|
|
13918
|
-
var
|
|
14004
|
+
var import_react37 = __toESM(require("react"));
|
|
13919
14005
|
|
|
13920
14006
|
// src/components/Input/components/Switch/styles.ts
|
|
13921
14007
|
var import_styled_components44 = __toESM(require("styled-components"));
|
|
@@ -14075,7 +14161,7 @@ var Switch = (props) => {
|
|
|
14075
14161
|
$keepSpace: true,
|
|
14076
14162
|
children: label[props.checked ? "after" : "before"]
|
|
14077
14163
|
}
|
|
14078
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(
|
|
14164
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(import_react37.default.Fragment, { children: [
|
|
14079
14165
|
label.before && /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(LabelContainer7, { children: label.before }),
|
|
14080
14166
|
/* @__PURE__ */ (0, import_jsx_runtime328.jsx)("input", { ...htmlProps, type: "checkbox" }),
|
|
14081
14167
|
/* @__PURE__ */ (0, import_jsx_runtime328.jsx)("span", {}),
|
|
@@ -14088,10 +14174,10 @@ var Switch = (props) => {
|
|
|
14088
14174
|
var Switch_default = Switch;
|
|
14089
14175
|
|
|
14090
14176
|
// src/components/Input/components/Tags/index.tsx
|
|
14091
|
-
var
|
|
14177
|
+
var import_react39 = __toESM(require("react"));
|
|
14092
14178
|
|
|
14093
14179
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14094
|
-
var
|
|
14180
|
+
var import_react38 = __toESM(require("react"));
|
|
14095
14181
|
|
|
14096
14182
|
// src/components/Input/components/Tags/components/Input/styles.ts
|
|
14097
14183
|
var import_styled_components45 = __toESM(require("styled-components"));
|
|
@@ -14128,7 +14214,7 @@ var Input4 = import_styled_components45.default.input`
|
|
|
14128
14214
|
|
|
14129
14215
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14130
14216
|
var import_jsx_runtime329 = require("react/jsx-runtime");
|
|
14131
|
-
var Input5 =
|
|
14217
|
+
var Input5 = import_react38.default.forwardRef(
|
|
14132
14218
|
(props, ref) => {
|
|
14133
14219
|
const [value, setValue] = props.value;
|
|
14134
14220
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
@@ -14286,11 +14372,11 @@ var TagContainer = import_styled_components48.default.div`
|
|
|
14286
14372
|
|
|
14287
14373
|
// src/components/Input/components/Tags/index.tsx
|
|
14288
14374
|
var import_jsx_runtime332 = require("react/jsx-runtime");
|
|
14289
|
-
var Tags =
|
|
14375
|
+
var Tags = import_react39.default.forwardRef(
|
|
14290
14376
|
(props, ref) => {
|
|
14291
14377
|
var _a;
|
|
14292
14378
|
const { value, setValue } = props;
|
|
14293
|
-
const [inputValue, setInputValue] = ((_a = props.input) == null ? void 0 : _a.value) ? props.input.value : (0,
|
|
14379
|
+
const [inputValue, setInputValue] = ((_a = props.input) == null ? void 0 : _a.value) ? props.input.value : (0, import_react39.useState)("");
|
|
14294
14380
|
const paddingless = props.paddingless || false;
|
|
14295
14381
|
const borderless = props.borderless || false;
|
|
14296
14382
|
const maxTags = props.maxTags || Number.POSITIVE_INFINITY;
|
|
@@ -14358,7 +14444,7 @@ var Tags_default = Tags;
|
|
|
14358
14444
|
|
|
14359
14445
|
// src/components/Input/index.tsx
|
|
14360
14446
|
var import_jsx_runtime333 = require("react/jsx-runtime");
|
|
14361
|
-
var Component3 =
|
|
14447
|
+
var Component3 = import_react40.default.forwardRef(
|
|
14362
14448
|
(props, ref) => {
|
|
14363
14449
|
switch (props.type) {
|
|
14364
14450
|
case "date": {
|
|
@@ -14502,9 +14588,9 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14502
14588
|
close,
|
|
14503
14589
|
appliedFilters: [appliedFilters, setAppliedFilters]
|
|
14504
14590
|
} = props;
|
|
14505
|
-
const [search, setSearch] = (0,
|
|
14506
|
-
const [searched, setSearched] = (0,
|
|
14507
|
-
(0,
|
|
14591
|
+
const [search, setSearch] = (0, import_react41.useState)("");
|
|
14592
|
+
const [searched, setSearched] = (0, import_react41.useState)("");
|
|
14593
|
+
(0, import_react41.useEffect)(() => {
|
|
14508
14594
|
setSearch("");
|
|
14509
14595
|
setSearched("");
|
|
14510
14596
|
}, [open]);
|
|
@@ -14684,13 +14770,13 @@ var Card = ({ borderType, size: size3, ...rest }) => {
|
|
|
14684
14770
|
var Card_default = Card;
|
|
14685
14771
|
|
|
14686
14772
|
// src/components/Filters/Filters/components/Menu/index.tsx
|
|
14687
|
-
var
|
|
14773
|
+
var import_react44 = require("react");
|
|
14688
14774
|
|
|
14689
14775
|
// src/components/Filters/Filters/components/Submenu/index.tsx
|
|
14690
|
-
var
|
|
14776
|
+
var import_react43 = __toESM(require("react"));
|
|
14691
14777
|
|
|
14692
14778
|
// src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
|
|
14693
|
-
var
|
|
14779
|
+
var import_react42 = require("react");
|
|
14694
14780
|
|
|
14695
14781
|
// src/components/Filters/Filters/components/Submenu/components/Header/styles.ts
|
|
14696
14782
|
var import_styled_components51 = __toESM(require("styled-components"));
|
|
@@ -14724,12 +14810,12 @@ var Header5 = (props) => {
|
|
|
14724
14810
|
allowEmptySearch,
|
|
14725
14811
|
withSearch
|
|
14726
14812
|
} = props;
|
|
14727
|
-
const [search, setSearch] = (0,
|
|
14813
|
+
const [search, setSearch] = (0, import_react42.useState)("");
|
|
14728
14814
|
const setSearched = allowEmptySearch ? _setSearched : (value) => {
|
|
14729
14815
|
if (value === "") return;
|
|
14730
14816
|
_setSearched(value);
|
|
14731
14817
|
};
|
|
14732
|
-
(0,
|
|
14818
|
+
(0, import_react42.useEffect)(() => {
|
|
14733
14819
|
setSearch(searched);
|
|
14734
14820
|
}, [searched]);
|
|
14735
14821
|
const onSubmit = () => {
|
|
@@ -14841,13 +14927,13 @@ var getInstance = (props) => {
|
|
|
14841
14927
|
var Submenu = (props) => {
|
|
14842
14928
|
const { item, close, setAppliedFilters, closeParent } = props;
|
|
14843
14929
|
const { open, isDynamic, itemSpacing, label, allowEmptySearch, getOptions: getOptions3 } = getInstance(props);
|
|
14844
|
-
const [options, setOptions] = (0,
|
|
14845
|
-
const [page, setPage] = (0,
|
|
14846
|
-
const [search, _setSearch] = (0,
|
|
14847
|
-
const [lastPage, setLastPage] = (0,
|
|
14848
|
-
const [loading, setLoading] = (0,
|
|
14849
|
-
const [, setFirstRender] = (0,
|
|
14850
|
-
const onSearch = (0,
|
|
14930
|
+
const [options, setOptions] = (0, import_react43.useState)([]);
|
|
14931
|
+
const [page, setPage] = (0, import_react43.useState)(1);
|
|
14932
|
+
const [search, _setSearch] = (0, import_react43.useState)("");
|
|
14933
|
+
const [lastPage, setLastPage] = (0, import_react43.useState)(false);
|
|
14934
|
+
const [loading, setLoading] = (0, import_react43.useState)(false);
|
|
14935
|
+
const [, setFirstRender] = (0, import_react43.useState)(true);
|
|
14936
|
+
const onSearch = (0, import_react43.useCallback)(async () => {
|
|
14851
14937
|
const { options: newOptions, lastPage: lastPage2 } = await getOptions3(search, page);
|
|
14852
14938
|
setLastPage(lastPage2);
|
|
14853
14939
|
setOptions([...newOptions]);
|
|
@@ -14862,12 +14948,12 @@ var Submenu = (props) => {
|
|
|
14862
14948
|
onSearch();
|
|
14863
14949
|
}
|
|
14864
14950
|
};
|
|
14865
|
-
(0,
|
|
14951
|
+
(0, import_react43.useEffect)(() => {
|
|
14866
14952
|
setOptions([]);
|
|
14867
14953
|
setSearch("", false);
|
|
14868
14954
|
setFirstRender(true);
|
|
14869
14955
|
}, [item]);
|
|
14870
|
-
(0,
|
|
14956
|
+
(0, import_react43.useEffect)(() => {
|
|
14871
14957
|
setFirstRender((firstRender) => {
|
|
14872
14958
|
if (!item || isDynamic && firstRender) {
|
|
14873
14959
|
setLoading(false);
|
|
@@ -14948,9 +15034,9 @@ var Submenu = (props) => {
|
|
|
14948
15034
|
loading,
|
|
14949
15035
|
emptyContent: isDynamic && options.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(EmptyMessage, { children: (() => {
|
|
14950
15036
|
if (search !== "") {
|
|
14951
|
-
return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
|
|
15037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(import_react43.default.Fragment, { children: "Nenhum resultado foi encontrado" });
|
|
14952
15038
|
}
|
|
14953
|
-
return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(
|
|
15039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(import_react43.default.Fragment, { children: [
|
|
14954
15040
|
"Utilize a busca para pesquisar por ",
|
|
14955
15041
|
/* @__PURE__ */ (0, import_jsx_runtime338.jsx)("br", {}),
|
|
14956
15042
|
label.text
|
|
@@ -14971,7 +15057,7 @@ var Submenu_default = Submenu;
|
|
|
14971
15057
|
var import_jsx_runtime339 = require("react/jsx-runtime");
|
|
14972
15058
|
var FiltersMenu = (props) => {
|
|
14973
15059
|
const { open, close } = props;
|
|
14974
|
-
const [active, setActive] = (0,
|
|
15060
|
+
const [active, setActive] = (0, import_react44.useState)(-1);
|
|
14975
15061
|
const items = props.items.map((item) => {
|
|
14976
15062
|
return {
|
|
14977
15063
|
label: typeof item.label === "string" ? item.label : item.label.element,
|
|
@@ -14985,7 +15071,7 @@ var FiltersMenu = (props) => {
|
|
|
14985
15071
|
};
|
|
14986
15072
|
});
|
|
14987
15073
|
const selected = active >= 0 && active < props.items.length ? props.items[active] : void 0;
|
|
14988
|
-
(0,
|
|
15074
|
+
(0, import_react44.useEffect)(() => {
|
|
14989
15075
|
if (open) return;
|
|
14990
15076
|
setActive(-1);
|
|
14991
15077
|
}, [open]);
|
|
@@ -15061,14 +15147,14 @@ var Filters = Object.assign(
|
|
|
15061
15147
|
var Filters_default = Filters;
|
|
15062
15148
|
|
|
15063
15149
|
// src/components/Grid/components/Col/index.tsx
|
|
15064
|
-
var
|
|
15150
|
+
var import_react46 = __toESM(require("react"));
|
|
15065
15151
|
|
|
15066
15152
|
// src/components/Grid/components/Row/context.ts
|
|
15067
|
-
var
|
|
15068
|
-
var Provider5 =
|
|
15153
|
+
var import_react45 = __toESM(require("react"));
|
|
15154
|
+
var Provider5 = import_react45.default.createContext({
|
|
15069
15155
|
cols: {}
|
|
15070
15156
|
});
|
|
15071
|
-
var useContext4 = () =>
|
|
15157
|
+
var useContext4 = () => import_react45.default.useContext(Provider5);
|
|
15072
15158
|
var context_default4 = Provider5;
|
|
15073
15159
|
|
|
15074
15160
|
// src/components/Grid/components/Col/styles.ts
|
|
@@ -15241,7 +15327,7 @@ var Col = import_styled_components53.default.div`
|
|
|
15241
15327
|
|
|
15242
15328
|
// src/components/Grid/components/Col/index.tsx
|
|
15243
15329
|
var import_jsx_runtime341 = require("react/jsx-runtime");
|
|
15244
|
-
var Col2 =
|
|
15330
|
+
var Col2 = import_react46.default.forwardRef((props, ref) => {
|
|
15245
15331
|
const context = useContext4();
|
|
15246
15332
|
const colProps = { ...context.cols, ...props };
|
|
15247
15333
|
const htmlProps = filterObject(colProps, [
|
|
@@ -15278,15 +15364,15 @@ Col2.displayName = "Col";
|
|
|
15278
15364
|
var Col_default = Col2;
|
|
15279
15365
|
|
|
15280
15366
|
// src/components/Grid/components/Grid/index.tsx
|
|
15281
|
-
var
|
|
15367
|
+
var import_react48 = __toESM(require("react"));
|
|
15282
15368
|
|
|
15283
15369
|
// src/components/Grid/components/Grid/context.ts
|
|
15284
|
-
var
|
|
15285
|
-
var Provider6 =
|
|
15370
|
+
var import_react47 = __toESM(require("react"));
|
|
15371
|
+
var Provider6 = import_react47.default.createContext({
|
|
15286
15372
|
rows: {},
|
|
15287
15373
|
cols: {}
|
|
15288
15374
|
});
|
|
15289
|
-
var useContext5 = () =>
|
|
15375
|
+
var useContext5 = () => import_react47.default.useContext(Provider6);
|
|
15290
15376
|
var context_default5 = Provider6;
|
|
15291
15377
|
|
|
15292
15378
|
// src/components/Grid/components/Grid/styles.ts
|
|
@@ -15319,7 +15405,7 @@ var Grid = import_styled_components54.default.div`
|
|
|
15319
15405
|
|
|
15320
15406
|
// src/components/Grid/components/Grid/index.tsx
|
|
15321
15407
|
var import_jsx_runtime342 = require("react/jsx-runtime");
|
|
15322
|
-
var Grid2 =
|
|
15408
|
+
var Grid2 = import_react48.default.forwardRef((props, ref) => {
|
|
15323
15409
|
const cols = props.cols || {};
|
|
15324
15410
|
const rows = props.rows || {};
|
|
15325
15411
|
const gridProps = filterObject(props, [
|
|
@@ -15342,7 +15428,7 @@ Grid2.displayName = "Grid";
|
|
|
15342
15428
|
var Grid_default2 = Grid2;
|
|
15343
15429
|
|
|
15344
15430
|
// src/components/Grid/components/Row/index.tsx
|
|
15345
|
-
var
|
|
15431
|
+
var import_react49 = __toESM(require("react"));
|
|
15346
15432
|
|
|
15347
15433
|
// src/components/Grid/components/Row/styles.ts
|
|
15348
15434
|
var import_styled_components55 = __toESM(require("styled-components"));
|
|
@@ -15469,7 +15555,7 @@ var Row = import_styled_components55.default.div`
|
|
|
15469
15555
|
|
|
15470
15556
|
// src/components/Grid/components/Row/index.tsx
|
|
15471
15557
|
var import_jsx_runtime343 = require("react/jsx-runtime");
|
|
15472
|
-
var Row2 =
|
|
15558
|
+
var Row2 = import_react49.default.forwardRef((props, ref) => {
|
|
15473
15559
|
const context = useContext5();
|
|
15474
15560
|
const cols = { ...context.cols, ...props.cols || {} };
|
|
15475
15561
|
const rowProps = { ...props, ...context.rows };
|
|
@@ -15513,15 +15599,15 @@ var Grid3 = Object.assign(Grid_default2, {
|
|
|
15513
15599
|
var Grid_default3 = Grid3;
|
|
15514
15600
|
|
|
15515
15601
|
// src/components/Modal/component.tsx
|
|
15516
|
-
var
|
|
15602
|
+
var import_react51 = require("react");
|
|
15517
15603
|
|
|
15518
15604
|
// src/addons/Portal/index.ts
|
|
15519
|
-
var
|
|
15605
|
+
var import_react50 = require("react");
|
|
15520
15606
|
var import_react_dom = require("react-dom");
|
|
15521
15607
|
var Portal = (props) => {
|
|
15522
15608
|
const { id, opened, children } = props;
|
|
15523
15609
|
const portalRoot = document.createElement("div");
|
|
15524
|
-
(0,
|
|
15610
|
+
(0, import_react50.useEffect)(() => {
|
|
15525
15611
|
if (opened) {
|
|
15526
15612
|
portalRoot.id = id + "-root";
|
|
15527
15613
|
document.body.appendChild(portalRoot);
|
|
@@ -15658,7 +15744,7 @@ var Modal = (props) => {
|
|
|
15658
15744
|
setOpen(false);
|
|
15659
15745
|
}
|
|
15660
15746
|
};
|
|
15661
|
-
(0,
|
|
15747
|
+
(0, import_react51.useEffect)(() => {
|
|
15662
15748
|
const onEscDown = (event) => {
|
|
15663
15749
|
if (closeOnEsc && event.key === "Escape") {
|
|
15664
15750
|
event.preventDefault();
|
|
@@ -15860,7 +15946,7 @@ var Modal2 = Object.assign(component_default, {
|
|
|
15860
15946
|
var Modal_default = Modal2;
|
|
15861
15947
|
|
|
15862
15948
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
15863
|
-
var
|
|
15949
|
+
var import_react52 = __toESM(require("react"));
|
|
15864
15950
|
|
|
15865
15951
|
// src/components/Placeholder/components/Template1/styles.ts
|
|
15866
15952
|
var import_styled_components60 = __toESM(require("styled-components"));
|
|
@@ -15920,7 +16006,7 @@ var MainLine = (0, import_styled_components60.default)(HeaderLine)`
|
|
|
15920
16006
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
15921
16007
|
var import_jsx_runtime348 = require("react/jsx-runtime");
|
|
15922
16008
|
var Template1 = (props) => {
|
|
15923
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
|
|
16009
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(import_react52.default.Fragment, {});
|
|
15924
16010
|
return /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(Container15, { children: [
|
|
15925
16011
|
/* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(Header7, { children: [
|
|
15926
16012
|
/* @__PURE__ */ (0, import_jsx_runtime348.jsx)(HeaderImage, {}),
|
|
@@ -15941,7 +16027,7 @@ var Template1 = (props) => {
|
|
|
15941
16027
|
var Template1_default = Template1;
|
|
15942
16028
|
|
|
15943
16029
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
15944
|
-
var
|
|
16030
|
+
var import_react53 = __toESM(require("react"));
|
|
15945
16031
|
|
|
15946
16032
|
// src/components/Placeholder/components/Template2/styles.ts
|
|
15947
16033
|
var import_styled_components62 = __toESM(require("styled-components"));
|
|
@@ -16011,7 +16097,7 @@ var HeaderLine3 = (0, import_styled_components62.default)(HeaderLine2)``;
|
|
|
16011
16097
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
16012
16098
|
var import_jsx_runtime349 = require("react/jsx-runtime");
|
|
16013
16099
|
var Template2 = (props) => {
|
|
16014
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(
|
|
16100
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(import_react53.default.Fragment, {});
|
|
16015
16101
|
return /* @__PURE__ */ (0, import_jsx_runtime349.jsxs)(Template2Container, { children: [
|
|
16016
16102
|
/* @__PURE__ */ (0, import_jsx_runtime349.jsxs)(Header8, { children: [
|
|
16017
16103
|
/* @__PURE__ */ (0, import_jsx_runtime349.jsx)(HeaderImage2, {}),
|
|
@@ -16029,7 +16115,7 @@ var Template2 = (props) => {
|
|
|
16029
16115
|
var Template2_default = Template2;
|
|
16030
16116
|
|
|
16031
16117
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
16032
|
-
var
|
|
16118
|
+
var import_react54 = __toESM(require("react"));
|
|
16033
16119
|
|
|
16034
16120
|
// src/components/Placeholder/components/Template3/styles.ts
|
|
16035
16121
|
var import_styled_components63 = __toESM(require("styled-components"));
|
|
@@ -16048,7 +16134,7 @@ var Template3Line = (0, import_styled_components63.default)(HeaderLine2)`
|
|
|
16048
16134
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
16049
16135
|
var import_jsx_runtime350 = require("react/jsx-runtime");
|
|
16050
16136
|
var Template3 = (props) => {
|
|
16051
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(
|
|
16137
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(import_react54.default.Fragment, {});
|
|
16052
16138
|
return /* @__PURE__ */ (0, import_jsx_runtime350.jsxs)(Template3Container, { children: [
|
|
16053
16139
|
/* @__PURE__ */ (0, import_jsx_runtime350.jsx)(Template3Line, { $size: "large", $height: "7px", $color: "#DADADA" }),
|
|
16054
16140
|
/* @__PURE__ */ (0, import_jsx_runtime350.jsx)(Template3Line, { $size: "small", $height: "7px", $color: "#DADADA" }),
|
|
@@ -16060,7 +16146,7 @@ var Template3 = (props) => {
|
|
|
16060
16146
|
var Template3_default = Template3;
|
|
16061
16147
|
|
|
16062
16148
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16063
|
-
var
|
|
16149
|
+
var import_react55 = __toESM(require("react"));
|
|
16064
16150
|
|
|
16065
16151
|
// src/components/Placeholder/components/Template4/styles.ts
|
|
16066
16152
|
var import_styled_components64 = __toESM(require("styled-components"));
|
|
@@ -16108,7 +16194,7 @@ var CustomLine = (0, import_styled_components64.default)(HeaderLine4)`
|
|
|
16108
16194
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16109
16195
|
var import_jsx_runtime351 = require("react/jsx-runtime");
|
|
16110
16196
|
var Template4 = (props) => {
|
|
16111
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
16197
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_react55.default.Fragment, {});
|
|
16112
16198
|
return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(Template4Container, { children: [
|
|
16113
16199
|
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
16114
16200
|
CustomLine,
|
|
@@ -16187,7 +16273,7 @@ var Template4 = (props) => {
|
|
|
16187
16273
|
var Template4_default = Template4;
|
|
16188
16274
|
|
|
16189
16275
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16190
|
-
var
|
|
16276
|
+
var import_react56 = __toESM(require("react"));
|
|
16191
16277
|
|
|
16192
16278
|
// src/components/Placeholder/components/Template5/styles.ts
|
|
16193
16279
|
var import_styled_components65 = __toESM(require("styled-components"));
|
|
@@ -16246,7 +16332,7 @@ var MainContent3 = import_styled_components65.default.div`
|
|
|
16246
16332
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16247
16333
|
var import_jsx_runtime352 = require("react/jsx-runtime");
|
|
16248
16334
|
var Template5 = (props) => {
|
|
16249
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
|
|
16335
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(import_react56.default.Fragment, {});
|
|
16250
16336
|
return /* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(Container19, { children: [
|
|
16251
16337
|
/* @__PURE__ */ (0, import_jsx_runtime352.jsx)(Circle, {}),
|
|
16252
16338
|
/* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(MainContent3, { children: [
|
|
@@ -16292,7 +16378,7 @@ var Template5 = (props) => {
|
|
|
16292
16378
|
var Template5_default = Template5;
|
|
16293
16379
|
|
|
16294
16380
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16295
|
-
var
|
|
16381
|
+
var import_react57 = __toESM(require("react"));
|
|
16296
16382
|
|
|
16297
16383
|
// src/components/Placeholder/components/Template6/styles.ts
|
|
16298
16384
|
var import_styled_components66 = __toESM(require("styled-components"));
|
|
@@ -16350,7 +16436,7 @@ var CustomLine3 = (0, import_styled_components66.default)(HeaderLine6)`
|
|
|
16350
16436
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16351
16437
|
var import_jsx_runtime353 = require("react/jsx-runtime");
|
|
16352
16438
|
var Template6 = (props) => {
|
|
16353
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
|
|
16439
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(import_react57.default.Fragment, {});
|
|
16354
16440
|
return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(Container20, { children: /* @__PURE__ */ (0, import_jsx_runtime353.jsxs)(Header9, { children: [
|
|
16355
16441
|
/* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
|
|
16356
16442
|
CustomLine3,
|
|
@@ -16384,7 +16470,7 @@ var Template6 = (props) => {
|
|
|
16384
16470
|
var Template6_default = Template6;
|
|
16385
16471
|
|
|
16386
16472
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16387
|
-
var
|
|
16473
|
+
var import_react58 = __toESM(require("react"));
|
|
16388
16474
|
|
|
16389
16475
|
// src/components/Placeholder/components/Template7/styles.ts
|
|
16390
16476
|
var import_styled_components67 = __toESM(require("styled-components"));
|
|
@@ -16452,7 +16538,7 @@ var Circle2 = import_styled_components67.default.div`
|
|
|
16452
16538
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16453
16539
|
var import_jsx_runtime354 = require("react/jsx-runtime");
|
|
16454
16540
|
var Template7 = (props) => {
|
|
16455
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
|
|
16541
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(import_react58.default.Fragment, {});
|
|
16456
16542
|
return /* @__PURE__ */ (0, import_jsx_runtime354.jsxs)(Container21, { children: [
|
|
16457
16543
|
/* @__PURE__ */ (0, import_jsx_runtime354.jsx)(Header10, { children: /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
|
|
16458
16544
|
CustomLine4,
|
|
@@ -16475,7 +16561,7 @@ var Template7 = (props) => {
|
|
|
16475
16561
|
var Template7_default = Template7;
|
|
16476
16562
|
|
|
16477
16563
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16478
|
-
var
|
|
16564
|
+
var import_react59 = __toESM(require("react"));
|
|
16479
16565
|
|
|
16480
16566
|
// src/components/Placeholder/components/Template8/styles.ts
|
|
16481
16567
|
var import_styled_components68 = __toESM(require("styled-components"));
|
|
@@ -16536,7 +16622,7 @@ var Main4 = import_styled_components68.default.div`
|
|
|
16536
16622
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16537
16623
|
var import_jsx_runtime355 = require("react/jsx-runtime");
|
|
16538
16624
|
var Template8 = (props) => {
|
|
16539
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
|
|
16625
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(import_react59.default.Fragment, {});
|
|
16540
16626
|
return /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(Container22, { children: [
|
|
16541
16627
|
/* @__PURE__ */ (0, import_jsx_runtime355.jsx)(Header11, { children: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
|
|
16542
16628
|
CustomLine5,
|
|
@@ -16572,7 +16658,7 @@ var Template8 = (props) => {
|
|
|
16572
16658
|
var Template8_default = Template8;
|
|
16573
16659
|
|
|
16574
16660
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16575
|
-
var
|
|
16661
|
+
var import_react60 = __toESM(require("react"));
|
|
16576
16662
|
|
|
16577
16663
|
// src/components/Placeholder/components/Template9/styles.ts
|
|
16578
16664
|
var import_styled_components69 = __toESM(require("styled-components"));
|
|
@@ -16640,7 +16726,7 @@ var Circle3 = import_styled_components69.default.div`
|
|
|
16640
16726
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16641
16727
|
var import_jsx_runtime356 = require("react/jsx-runtime");
|
|
16642
16728
|
var Template82 = (props) => {
|
|
16643
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
|
|
16729
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(import_react60.default.Fragment, {});
|
|
16644
16730
|
return /* @__PURE__ */ (0, import_jsx_runtime356.jsxs)(Container23, { children: [
|
|
16645
16731
|
/* @__PURE__ */ (0, import_jsx_runtime356.jsxs)(Header12, { children: [
|
|
16646
16732
|
/* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
|
|
@@ -16668,7 +16754,7 @@ var Template82 = (props) => {
|
|
|
16668
16754
|
var Template9_default = Template82;
|
|
16669
16755
|
|
|
16670
16756
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
16671
|
-
var
|
|
16757
|
+
var import_react61 = __toESM(require("react"));
|
|
16672
16758
|
|
|
16673
16759
|
// src/components/Placeholder/components/Template10/styles.ts
|
|
16674
16760
|
var import_styled_components70 = __toESM(require("styled-components"));
|
|
@@ -16740,7 +16826,7 @@ var Circle4 = import_styled_components70.default.div`
|
|
|
16740
16826
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
16741
16827
|
var import_jsx_runtime357 = require("react/jsx-runtime");
|
|
16742
16828
|
var Template10 = (props) => {
|
|
16743
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
|
|
16829
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(import_react61.default.Fragment, {});
|
|
16744
16830
|
return /* @__PURE__ */ (0, import_jsx_runtime357.jsxs)(Container24, { children: [
|
|
16745
16831
|
/* @__PURE__ */ (0, import_jsx_runtime357.jsxs)(Header13, { children: [
|
|
16746
16832
|
/* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
|
|
@@ -16954,13 +17040,13 @@ var ProgressBar = ({ type, value, ...props }) => {
|
|
|
16954
17040
|
var ProgressBar_default = ProgressBar;
|
|
16955
17041
|
|
|
16956
17042
|
// src/components/Tabs/index.tsx
|
|
16957
|
-
var
|
|
17043
|
+
var import_react67 = __toESM(require("react"));
|
|
16958
17044
|
|
|
16959
17045
|
// src/components/Tabs/components/ScrollButtons/index.tsx
|
|
16960
|
-
var
|
|
17046
|
+
var import_react63 = __toESM(require("react"));
|
|
16961
17047
|
|
|
16962
17048
|
// src/components/Tabs/components/ScrollButton/index.tsx
|
|
16963
|
-
var
|
|
17049
|
+
var import_react62 = require("react");
|
|
16964
17050
|
|
|
16965
17051
|
// src/components/Tabs/components/ScrollButton/styled.ts
|
|
16966
17052
|
var import_styled_components72 = __toESM(require("styled-components"));
|
|
@@ -16991,7 +17077,7 @@ var import_jsx_runtime360 = require("react/jsx-runtime");
|
|
|
16991
17077
|
var ScrollButton = (props) => {
|
|
16992
17078
|
const { mode, visible, scrollRef } = props;
|
|
16993
17079
|
const icon = `chevron_${mode}`;
|
|
16994
|
-
const onClick = (0,
|
|
17080
|
+
const onClick = (0, import_react62.useCallback)(() => {
|
|
16995
17081
|
if (!scrollRef) return;
|
|
16996
17082
|
scrollRef.scrollBy({
|
|
16997
17083
|
left: mode === "left" ? -(scrollRef.scrollWidth + 1) : scrollRef.scrollWidth,
|
|
@@ -17035,10 +17121,10 @@ var Container27 = import_styled_components73.default.div`
|
|
|
17035
17121
|
var import_jsx_runtime361 = require("react/jsx-runtime");
|
|
17036
17122
|
var ScrollButtons = (props) => {
|
|
17037
17123
|
const { activeTabIndex, tabsLength } = props;
|
|
17038
|
-
const [ref, setRef] = (0,
|
|
17039
|
-
const [showLeftArrow, setShowLeftArrow] = (0,
|
|
17040
|
-
const [showRightArrow, setShowRightArrow] = (0,
|
|
17041
|
-
const checkScrollPosition = (0,
|
|
17124
|
+
const [ref, setRef] = (0, import_react63.useState)(null);
|
|
17125
|
+
const [showLeftArrow, setShowLeftArrow] = (0, import_react63.useState)(false);
|
|
17126
|
+
const [showRightArrow, setShowRightArrow] = (0, import_react63.useState)(false);
|
|
17127
|
+
const checkScrollPosition = (0, import_react63.useCallback)(() => {
|
|
17042
17128
|
if (!ref) return;
|
|
17043
17129
|
if (ref.scrollWidth > ref.offsetWidth) {
|
|
17044
17130
|
const { scrollLeft, scrollWidth, clientWidth } = ref;
|
|
@@ -17049,12 +17135,12 @@ var ScrollButtons = (props) => {
|
|
|
17049
17135
|
setShowRightArrow(false);
|
|
17050
17136
|
}
|
|
17051
17137
|
}, [ref]);
|
|
17052
|
-
(0,
|
|
17138
|
+
(0, import_react63.useEffect)(() => {
|
|
17053
17139
|
checkScrollPosition();
|
|
17054
17140
|
window.addEventListener("resize", checkScrollPosition);
|
|
17055
17141
|
return () => window.removeEventListener("resize", checkScrollPosition);
|
|
17056
17142
|
}, [checkScrollPosition, tabsLength]);
|
|
17057
|
-
(0,
|
|
17143
|
+
(0, import_react63.useEffect)(() => {
|
|
17058
17144
|
if (!ref) return;
|
|
17059
17145
|
if (ref.scrollWidth <= ref.offsetWidth) return;
|
|
17060
17146
|
const element = ref.children[activeTabIndex];
|
|
@@ -17064,7 +17150,7 @@ var ScrollButtons = (props) => {
|
|
|
17064
17150
|
inline: "nearest"
|
|
17065
17151
|
});
|
|
17066
17152
|
}, [activeTabIndex, ref]);
|
|
17067
|
-
return /* @__PURE__ */ (0, import_jsx_runtime361.jsxs)(
|
|
17153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime361.jsxs)(import_react63.default.Fragment, { children: [
|
|
17068
17154
|
/* @__PURE__ */ (0, import_jsx_runtime361.jsx)(ScrollButton_default, { scrollRef: ref, mode: "left", visible: showLeftArrow }),
|
|
17069
17155
|
/* @__PURE__ */ (0, import_jsx_runtime361.jsx)(
|
|
17070
17156
|
Container27,
|
|
@@ -17087,7 +17173,7 @@ var ScrollButtons = (props) => {
|
|
|
17087
17173
|
var ScrollButtons_default = ScrollButtons;
|
|
17088
17174
|
|
|
17089
17175
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17090
|
-
var
|
|
17176
|
+
var import_react66 = __toESM(require("react"));
|
|
17091
17177
|
|
|
17092
17178
|
// src/components/Tabs/functions.ts
|
|
17093
17179
|
var sortTabs = (tabs, sorted = []) => {
|
|
@@ -17135,7 +17221,7 @@ var buildComponent = (component, provider) => {
|
|
|
17135
17221
|
};
|
|
17136
17222
|
|
|
17137
17223
|
// src/components/Tabs/components/TabItem/components/Close/index.tsx
|
|
17138
|
-
var
|
|
17224
|
+
var import_react64 = require("react");
|
|
17139
17225
|
|
|
17140
17226
|
// src/components/Tabs/components/TabItem/components/Close/styles.ts
|
|
17141
17227
|
var import_styled_components74 = __toESM(require("styled-components"));
|
|
@@ -17173,7 +17259,7 @@ var Close2 = (props) => {
|
|
|
17173
17259
|
options: [options, setOptions]
|
|
17174
17260
|
} = props;
|
|
17175
17261
|
const onClose = props.onClose || (() => true);
|
|
17176
|
-
const onClickClose = (0,
|
|
17262
|
+
const onClickClose = (0, import_react64.useCallback)(
|
|
17177
17263
|
async (event) => {
|
|
17178
17264
|
if (options.length === 1) return;
|
|
17179
17265
|
const newOptions = [...options];
|
|
@@ -17202,7 +17288,7 @@ var Close2 = (props) => {
|
|
|
17202
17288
|
var Close_default = Close2;
|
|
17203
17289
|
|
|
17204
17290
|
// src/components/Tabs/components/TabItem/components/LabelItem/index.tsx
|
|
17205
|
-
var
|
|
17291
|
+
var import_react65 = require("react");
|
|
17206
17292
|
|
|
17207
17293
|
// src/components/Tabs/components/TabItem/components/LabelItem/styled.ts
|
|
17208
17294
|
var import_styled_components75 = __toESM(require("styled-components"));
|
|
@@ -17258,7 +17344,7 @@ var StyledTab = import_styled_components75.default.div`
|
|
|
17258
17344
|
var import_jsx_runtime363 = require("react/jsx-runtime");
|
|
17259
17345
|
var LabelItem = (props) => {
|
|
17260
17346
|
const { children, onClick, primary, hasSiblings, internal } = props;
|
|
17261
|
-
const [ref, setRef] = (0,
|
|
17347
|
+
const [ref, setRef] = (0, import_react65.useState)(null);
|
|
17262
17348
|
return /* @__PURE__ */ (0, import_jsx_runtime363.jsx)(
|
|
17263
17349
|
StyledTab,
|
|
17264
17350
|
{
|
|
@@ -17314,7 +17400,7 @@ var Container28 = import_styled_components76.default.div`
|
|
|
17314
17400
|
|
|
17315
17401
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17316
17402
|
var import_jsx_runtime364 = require("react/jsx-runtime");
|
|
17317
|
-
var VoidClose = () => /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
|
|
17403
|
+
var VoidClose = () => /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(import_react66.default.Fragment, {});
|
|
17318
17404
|
var TabItem = (props) => {
|
|
17319
17405
|
const {
|
|
17320
17406
|
active: [active, setActive],
|
|
@@ -17324,7 +17410,7 @@ var TabItem = (props) => {
|
|
|
17324
17410
|
alwaysOpen
|
|
17325
17411
|
} = props;
|
|
17326
17412
|
const CloseComponent = alwaysOpen || tabs.length < 2 ? VoidClose : Close_default;
|
|
17327
|
-
return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
|
|
17413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(import_react66.default.Fragment, { children: sortedTabs.map(({ index, ...tab }) => {
|
|
17328
17414
|
const isActive = index === active;
|
|
17329
17415
|
const hasSiblings = hasChildren(tabs, tab.group);
|
|
17330
17416
|
const canClose = !props.internal && (!tab.primary || !hasSiblings);
|
|
@@ -17420,11 +17506,11 @@ var Tabs = import_styled_components77.default.div`
|
|
|
17420
17506
|
|
|
17421
17507
|
// src/components/Tabs/index.tsx
|
|
17422
17508
|
var import_jsx_runtime365 = require("react/jsx-runtime");
|
|
17423
|
-
var VoidProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
|
|
17509
|
+
var VoidProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(import_react67.default.Fragment, { children: props.children });
|
|
17424
17510
|
var Component4 = (props) => {
|
|
17425
17511
|
const components = props.components || {};
|
|
17426
|
-
const [options, setOptions] = typeof props.options[1] === "function" ? props.options : (0,
|
|
17427
|
-
const [active, setActive] = Array.isArray(props.active) ? props.active : (0,
|
|
17512
|
+
const [options, setOptions] = typeof props.options[1] === "function" ? props.options : (0, import_react67.useState)(props.options);
|
|
17513
|
+
const [active, setActive] = Array.isArray(props.active) ? props.active : (0, import_react67.useState)(props.active);
|
|
17428
17514
|
const sortedTabs = sortTabs(options.map((tab, index) => ({ ...tab, index })));
|
|
17429
17515
|
const activeTabIndex = sortedTabs.findIndex((tab) => tab.index === active);
|
|
17430
17516
|
const divProps = filterObject(props, [
|
|
@@ -17438,7 +17524,7 @@ var Component4 = (props) => {
|
|
|
17438
17524
|
"delimiter",
|
|
17439
17525
|
"spacing"
|
|
17440
17526
|
]);
|
|
17441
|
-
return /* @__PURE__ */ (0, import_jsx_runtime365.jsxs)(
|
|
17527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime365.jsxs)(import_react67.default.Fragment, { children: [
|
|
17442
17528
|
/* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
|
|
17443
17529
|
Tabs,
|
|
17444
17530
|
{
|
|
@@ -17471,7 +17557,7 @@ var Component4 = (props) => {
|
|
|
17471
17557
|
),
|
|
17472
17558
|
options.map((tab, index) => {
|
|
17473
17559
|
if (tab.component === void 0) {
|
|
17474
|
-
return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
|
|
17560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(import_react67.default.Fragment, {}, index);
|
|
17475
17561
|
}
|
|
17476
17562
|
const Component5 = components[tab.component];
|
|
17477
17563
|
const Provider7 = Component5.provider || VoidProvider;
|
|
@@ -17649,7 +17735,7 @@ var Toast = ({
|
|
|
17649
17735
|
var Toast_default = Toast;
|
|
17650
17736
|
|
|
17651
17737
|
// src/components/Zoom/index.tsx
|
|
17652
|
-
var
|
|
17738
|
+
var import_react68 = __toESM(require("react"));
|
|
17653
17739
|
|
|
17654
17740
|
// src/components/Zoom/styles.ts
|
|
17655
17741
|
var import_styled_components80 = __toESM(require("styled-components"));
|
|
@@ -17724,8 +17810,8 @@ var ModalContent = import_styled_components80.default.div`
|
|
|
17724
17810
|
var import_jsx_runtime368 = require("react/jsx-runtime");
|
|
17725
17811
|
var Zoom = (props) => {
|
|
17726
17812
|
const { src, width, height, ...imgProps } = props;
|
|
17727
|
-
const [modalOpened, setModalOpened] = (0,
|
|
17728
|
-
return /* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(
|
|
17813
|
+
const [modalOpened, setModalOpened] = (0, import_react68.useState)(false);
|
|
17814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(import_react68.default.Fragment, { children: [
|
|
17729
17815
|
/* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(
|
|
17730
17816
|
Container31,
|
|
17731
17817
|
{
|