@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.mjs
CHANGED
|
@@ -7710,10 +7710,10 @@ var Button = (props) => {
|
|
|
7710
7710
|
var Button_default = Button;
|
|
7711
7711
|
|
|
7712
7712
|
// src/components/Filters/AppliedFilters/components/Menu/index.tsx
|
|
7713
|
-
import { useEffect as
|
|
7713
|
+
import { useEffect as useEffect15, useState as useState20 } from "react";
|
|
7714
7714
|
|
|
7715
7715
|
// src/components/Input/index.tsx
|
|
7716
|
-
import
|
|
7716
|
+
import React37 from "react";
|
|
7717
7717
|
|
|
7718
7718
|
// src/components/Input/components/Checkbox/index.tsx
|
|
7719
7719
|
import React5 from "react";
|
|
@@ -10275,17 +10275,25 @@ var Button3 = (props) => {
|
|
|
10275
10275
|
};
|
|
10276
10276
|
const htmlProps = filterObject(props, ["size", "appearance", "color", "loading", "content"]);
|
|
10277
10277
|
const loaderSize = sizes[defaultValues.$size].lineHeight;
|
|
10278
|
-
return /* @__PURE__ */ jsxs148(
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10278
|
+
return /* @__PURE__ */ jsxs148(
|
|
10279
|
+
Button2,
|
|
10280
|
+
{
|
|
10281
|
+
...defaultValues,
|
|
10282
|
+
...htmlProps,
|
|
10283
|
+
formNoValidate: "formNoValidate" in props ? props.formNoValidate : props.type === "submit",
|
|
10284
|
+
children: [
|
|
10285
|
+
children || content,
|
|
10286
|
+
props.loading && /* @__PURE__ */ jsx306(
|
|
10287
|
+
Loader_default2,
|
|
10288
|
+
{
|
|
10289
|
+
color: defaultValues.$appearance === "solid" ? "white" : "blue",
|
|
10290
|
+
size: loaderSize,
|
|
10291
|
+
borderSize: `calc(${loaderSize} * 0.0757)`
|
|
10292
|
+
}
|
|
10293
|
+
)
|
|
10294
|
+
]
|
|
10295
|
+
}
|
|
10296
|
+
);
|
|
10289
10297
|
};
|
|
10290
10298
|
var Button_default2 = Button3;
|
|
10291
10299
|
|
|
@@ -12515,9 +12523,7 @@ var SelectedArea = styled27.div`
|
|
|
12515
12523
|
z-index: 1;
|
|
12516
12524
|
|
|
12517
12525
|
> span {
|
|
12518
|
-
|
|
12519
|
-
display: block;
|
|
12520
|
-
box-sizing: border-box;
|
|
12526
|
+
background-color: ${({ theme: theme4 }) => theme4.colors.blue};
|
|
12521
12527
|
height: 100%;
|
|
12522
12528
|
}
|
|
12523
12529
|
`;
|
|
@@ -12908,8 +12914,7 @@ var Range = React25.forwardRef(
|
|
|
12908
12914
|
const viewMode = isViewMode() || props.viewMode;
|
|
12909
12915
|
const { min, max, strict, markers, step, position, value } = getMarkers(props);
|
|
12910
12916
|
const range = max - min;
|
|
12911
|
-
const percent = 100 / range;
|
|
12912
|
-
const spans = value - min;
|
|
12917
|
+
const percent = (value - min) * 100 / range;
|
|
12913
12918
|
if (value < min || value > max) {
|
|
12914
12919
|
throw new Error(
|
|
12915
12920
|
`Value must be between "${min}" and "${max}". "${value}" given`
|
|
@@ -13086,7 +13091,14 @@ var Range = React25.forwardRef(
|
|
|
13086
13091
|
}
|
|
13087
13092
|
)
|
|
13088
13093
|
] }),
|
|
13089
|
-
/* @__PURE__ */ jsx319(SelectedArea_default, {
|
|
13094
|
+
/* @__PURE__ */ jsx319(SelectedArea_default, { children: /* @__PURE__ */ jsx319(
|
|
13095
|
+
"span",
|
|
13096
|
+
{
|
|
13097
|
+
style: {
|
|
13098
|
+
width: `calc(${percent}% - (${bulletSize * percent / 100}px)`
|
|
13099
|
+
}
|
|
13100
|
+
}
|
|
13101
|
+
) })
|
|
13090
13102
|
] })
|
|
13091
13103
|
] }),
|
|
13092
13104
|
maxLabel && /* @__PURE__ */ jsx319(MinMaxLabelContainer_default, { children: maxLabel })
|
|
@@ -13100,7 +13112,7 @@ Range.displayName = "input";
|
|
|
13100
13112
|
var Range_default = Range;
|
|
13101
13113
|
|
|
13102
13114
|
// src/components/Input/components/Select/index.tsx
|
|
13103
|
-
import
|
|
13115
|
+
import React33, { useCallback as useCallback3, useEffect as useEffect14, useState as useState18 } from "react";
|
|
13104
13116
|
|
|
13105
13117
|
// src/components/Input/components/Select/hooks/Select/index.tsx
|
|
13106
13118
|
import React28 from "react";
|
|
@@ -13335,7 +13347,10 @@ var useSelect = (props, [highlight, setHighlight], [options, setOptions], setOpe
|
|
|
13335
13347
|
var Select_default = useSelect;
|
|
13336
13348
|
|
|
13337
13349
|
// src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
|
|
13338
|
-
import
|
|
13350
|
+
import React32, { useEffect as useEffect13, useState as useState17 } from "react";
|
|
13351
|
+
|
|
13352
|
+
// src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
|
|
13353
|
+
import React30 from "react";
|
|
13339
13354
|
|
|
13340
13355
|
// src/components/Input/components/Select/hooks/SelectMultiple/context.ts
|
|
13341
13356
|
import React29 from "react";
|
|
@@ -13344,15 +13359,22 @@ var useContext3 = () => React29.useContext(Provider4);
|
|
|
13344
13359
|
var context_default3 = Provider4;
|
|
13345
13360
|
|
|
13346
13361
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
|
|
13347
|
-
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
13362
|
+
import { jsx as jsx322, jsxs as jsxs159 } from "react/jsx-runtime";
|
|
13348
13363
|
var Footer2 = () => {
|
|
13349
13364
|
const context = useContext3();
|
|
13350
13365
|
const {
|
|
13351
13366
|
props: { value, setValue },
|
|
13352
13367
|
checked: [checked],
|
|
13353
|
-
setOpen
|
|
13368
|
+
setOpen,
|
|
13369
|
+
limits
|
|
13354
13370
|
} = context;
|
|
13371
|
+
const { min, max, enabled, error } = limits;
|
|
13372
|
+
const isDirty = checked.length !== value.length || checked.some((e) => !value.includes(e.value));
|
|
13373
|
+
const belowMin = enabled && typeof min === "number" ? checked.length < min : false;
|
|
13374
|
+
const aboveMax = enabled && typeof max === "number" ? checked.length > max : false;
|
|
13375
|
+
const disabled = !!error || !isDirty || belowMin || aboveMax;
|
|
13355
13376
|
const onClick = () => {
|
|
13377
|
+
if (disabled) return;
|
|
13356
13378
|
const [value2, data] = checked.reduce(
|
|
13357
13379
|
(r, e) => [
|
|
13358
13380
|
[...r[0], e.value],
|
|
@@ -13363,22 +13385,35 @@ var Footer2 = () => {
|
|
|
13363
13385
|
setValue(value2, data);
|
|
13364
13386
|
setOpen(false);
|
|
13365
13387
|
};
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13388
|
+
return /* @__PURE__ */ jsxs159(React30.Fragment, { children: [
|
|
13389
|
+
error && /* @__PURE__ */ jsx322(
|
|
13390
|
+
"span",
|
|
13391
|
+
{
|
|
13392
|
+
style: {
|
|
13393
|
+
padding: "7px",
|
|
13394
|
+
color: "#d32f2f",
|
|
13395
|
+
fontSize: "12px",
|
|
13396
|
+
flex: 1
|
|
13397
|
+
},
|
|
13398
|
+
children: error
|
|
13399
|
+
}
|
|
13400
|
+
),
|
|
13401
|
+
/* @__PURE__ */ jsx322(
|
|
13402
|
+
Button_default2,
|
|
13403
|
+
{
|
|
13404
|
+
type: "button",
|
|
13405
|
+
content: "Aplicar",
|
|
13406
|
+
onClick,
|
|
13407
|
+
style: { marginRight: "-3.5px" },
|
|
13408
|
+
disabled
|
|
13409
|
+
}
|
|
13410
|
+
)
|
|
13411
|
+
] });
|
|
13377
13412
|
};
|
|
13378
13413
|
var Footer_default = Footer2;
|
|
13379
13414
|
|
|
13380
13415
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
|
|
13381
|
-
import
|
|
13416
|
+
import React31 from "react";
|
|
13382
13417
|
|
|
13383
13418
|
// src/components/Link/index.tsx
|
|
13384
13419
|
import styled39, { css as css29 } from "styled-components";
|
|
@@ -13440,13 +13475,15 @@ var SelectAllContainer = styled40.div`
|
|
|
13440
13475
|
`;
|
|
13441
13476
|
|
|
13442
13477
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
|
|
13443
|
-
import { jsx as jsx324, jsxs as
|
|
13478
|
+
import { jsx as jsx324, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
13444
13479
|
var CheckAll = () => {
|
|
13445
13480
|
const context = useContext3();
|
|
13446
13481
|
const {
|
|
13447
13482
|
checked: [checked, setChecked],
|
|
13448
|
-
options
|
|
13483
|
+
options,
|
|
13484
|
+
limits
|
|
13449
13485
|
} = context;
|
|
13486
|
+
const { max, enabled, error } = limits;
|
|
13450
13487
|
const maxCheck = options.reduce((count, o, idx) => {
|
|
13451
13488
|
var _a;
|
|
13452
13489
|
if (o.disabled) return count;
|
|
@@ -13454,24 +13491,25 @@ var CheckAll = () => {
|
|
|
13454
13491
|
if (rule) return count;
|
|
13455
13492
|
return count + 1;
|
|
13456
13493
|
}, 0);
|
|
13494
|
+
const maxAllowed = enabled && typeof max === "number" ? Math.min(max, maxCheck) : maxCheck;
|
|
13457
13495
|
const onClick = () => {
|
|
13458
13496
|
setChecked((prev) => {
|
|
13459
|
-
if (prev.length >=
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
);
|
|
13497
|
+
if (prev.length >= maxAllowed) return [];
|
|
13498
|
+
if (maxAllowed <= 0) return [];
|
|
13499
|
+
const checked2 = [];
|
|
13500
|
+
options.forEach((o, idx) => {
|
|
13501
|
+
var _a;
|
|
13502
|
+
if (checked2.length >= maxAllowed) return;
|
|
13503
|
+
if (o.disabled) return;
|
|
13504
|
+
const rule = (_a = o.rules) == null ? void 0 : _a.some((rule2) => rule2(idx, o.data) !== true);
|
|
13505
|
+
if (rule) return;
|
|
13506
|
+
checked2.push({ value: o.value, data: o.data });
|
|
13507
|
+
});
|
|
13470
13508
|
return checked2;
|
|
13471
13509
|
});
|
|
13472
13510
|
};
|
|
13473
|
-
return /* @__PURE__ */
|
|
13474
|
-
/* @__PURE__ */
|
|
13511
|
+
return /* @__PURE__ */ jsxs160(SelectAllContainer, { children: [
|
|
13512
|
+
/* @__PURE__ */ jsxs160("b", { children: [
|
|
13475
13513
|
"Selecionados (",
|
|
13476
13514
|
checked.length,
|
|
13477
13515
|
")"
|
|
@@ -13479,8 +13517,8 @@ var CheckAll = () => {
|
|
|
13479
13517
|
/* @__PURE__ */ jsx324(
|
|
13480
13518
|
Link_default2,
|
|
13481
13519
|
{
|
|
13482
|
-
children: checked.length >=
|
|
13483
|
-
onClick
|
|
13520
|
+
children: checked.length >= maxAllowed ? "Desmarcar todos" : "Selecionar todos",
|
|
13521
|
+
onClick: error ? void 0 : onClick
|
|
13484
13522
|
}
|
|
13485
13523
|
)
|
|
13486
13524
|
] });
|
|
@@ -13488,13 +13526,15 @@ var CheckAll = () => {
|
|
|
13488
13526
|
var Header3 = () => {
|
|
13489
13527
|
const context = useContext3();
|
|
13490
13528
|
if (!context.props.search) {
|
|
13491
|
-
return /* @__PURE__ */ jsx324(
|
|
13529
|
+
return /* @__PURE__ */ jsx324(React31.Fragment, {});
|
|
13492
13530
|
}
|
|
13493
13531
|
const {
|
|
13494
|
-
searchInput: [searchInput, setSearchInput]
|
|
13532
|
+
searchInput: [searchInput, setSearchInput],
|
|
13533
|
+
limits
|
|
13495
13534
|
} = context;
|
|
13496
|
-
|
|
13497
|
-
|
|
13535
|
+
const showSelectAll = context.props.selectAll && limits.max === void 0;
|
|
13536
|
+
return /* @__PURE__ */ jsxs160(HeaderContainer2, { children: [
|
|
13537
|
+
showSelectAll && /* @__PURE__ */ jsx324(CheckAll, {}),
|
|
13498
13538
|
/* @__PURE__ */ jsx324(
|
|
13499
13539
|
Input_default,
|
|
13500
13540
|
{
|
|
@@ -13519,22 +13559,30 @@ import { jsx as jsx325 } from "react/jsx-runtime";
|
|
|
13519
13559
|
var Label6 = (props) => {
|
|
13520
13560
|
const context = useContext3();
|
|
13521
13561
|
const {
|
|
13522
|
-
checked: [checked, setChecked]
|
|
13562
|
+
checked: [checked, setChecked],
|
|
13563
|
+
limits
|
|
13523
13564
|
} = context;
|
|
13565
|
+
const { max, enabled } = limits;
|
|
13524
13566
|
const { disabled, value } = props.option;
|
|
13567
|
+
const isChecked = checked.findIndex((e) => e.value === value) !== -1;
|
|
13568
|
+
const disabledByLimit = enabled && typeof max === "number" && checked.length >= max && !isChecked;
|
|
13569
|
+
const finalDisabled = disabled || disabledByLimit || !!limits.error;
|
|
13525
13570
|
const LabelComponent = props.label;
|
|
13526
13571
|
return /* @__PURE__ */ jsx325(
|
|
13527
13572
|
Checkbox_default,
|
|
13528
13573
|
{
|
|
13529
13574
|
type: "checkbox",
|
|
13530
|
-
checked:
|
|
13575
|
+
checked: isChecked,
|
|
13531
13576
|
label: typeof LabelComponent !== "function" ? LabelComponent : /* @__PURE__ */ jsx325(LabelComponent, { ...props.option }),
|
|
13532
|
-
disabled,
|
|
13577
|
+
disabled: finalDisabled,
|
|
13533
13578
|
onChange: (event) => {
|
|
13534
|
-
const
|
|
13579
|
+
const isChecked2 = event.target.checked;
|
|
13535
13580
|
setChecked((prev) => {
|
|
13536
13581
|
const newState = prev.filter((v) => v.value !== value);
|
|
13537
|
-
if (
|
|
13582
|
+
if (isChecked2) {
|
|
13583
|
+
if (enabled && typeof max === "number" && prev.length >= max) {
|
|
13584
|
+
return prev;
|
|
13585
|
+
}
|
|
13538
13586
|
const e = props.value.find((e2) => e2.value === value);
|
|
13539
13587
|
newState.push(
|
|
13540
13588
|
e || {
|
|
@@ -13559,24 +13607,44 @@ var Label6 = (props) => {
|
|
|
13559
13607
|
};
|
|
13560
13608
|
var Label_default2 = Label6;
|
|
13561
13609
|
|
|
13610
|
+
// src/components/Input/components/Select/hooks/SelectMultiple/utils.ts
|
|
13611
|
+
var resolveLimits = (minSelected, maxSelected) => {
|
|
13612
|
+
const min = typeof minSelected === "number" && minSelected >= 0 ? minSelected : void 0;
|
|
13613
|
+
const max = typeof maxSelected === "number" && maxSelected >= 0 ? maxSelected : void 0;
|
|
13614
|
+
const enabled = min !== void 0 || max !== void 0;
|
|
13615
|
+
if (!enabled) {
|
|
13616
|
+
return { enabled };
|
|
13617
|
+
}
|
|
13618
|
+
if (min !== void 0 && max !== void 0 && min > max) {
|
|
13619
|
+
return {
|
|
13620
|
+
enabled: false,
|
|
13621
|
+
error: "minSelected cannot be greater than maxSelected"
|
|
13622
|
+
};
|
|
13623
|
+
}
|
|
13624
|
+
return { min, max, enabled };
|
|
13625
|
+
};
|
|
13626
|
+
|
|
13562
13627
|
// src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
|
|
13563
|
-
import { jsx as jsx326, jsxs as
|
|
13564
|
-
var getOptions2 = (options, value) => {
|
|
13628
|
+
import { jsx as jsx326, jsxs as jsxs161 } from "react/jsx-runtime";
|
|
13629
|
+
var getOptions2 = (options, value, checked, limits) => {
|
|
13630
|
+
const limitReached = limits.enabled && typeof limits.max === "number" && checked.length >= limits.max && !limits.error;
|
|
13565
13631
|
return options.map((option) => {
|
|
13566
13632
|
const { label, onClick } = option;
|
|
13567
13633
|
const data = { data: option.data, value: option.value };
|
|
13634
|
+
const isChecked = checked.some((c) => c.value === option.value);
|
|
13635
|
+
const disabled = option.disabled || (!!limits.error || limitReached && !isChecked);
|
|
13568
13636
|
const parsed = {
|
|
13569
13637
|
label: (option2) => /* @__PURE__ */ jsx326(
|
|
13570
13638
|
Label_default2,
|
|
13571
13639
|
{
|
|
13572
|
-
option: { ...data, disabled: option2.disabled },
|
|
13640
|
+
option: { ...data, disabled: disabled || option2.disabled },
|
|
13573
13641
|
label,
|
|
13574
13642
|
value
|
|
13575
13643
|
}
|
|
13576
13644
|
),
|
|
13577
13645
|
onClick,
|
|
13578
13646
|
data,
|
|
13579
|
-
disabled
|
|
13647
|
+
disabled,
|
|
13580
13648
|
rules: option.rules,
|
|
13581
13649
|
keepOpen: true
|
|
13582
13650
|
};
|
|
@@ -13598,7 +13666,14 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13598
13666
|
const [checked, setChecked] = useState17([
|
|
13599
13667
|
...initial
|
|
13600
13668
|
]);
|
|
13601
|
-
const
|
|
13669
|
+
const limits = resolveLimits(props.minSelected, props.maxSelected);
|
|
13670
|
+
const { max, enabled } = limits;
|
|
13671
|
+
useEffect13(() => {
|
|
13672
|
+
if (limits.error) {
|
|
13673
|
+
console.error(`[SelectMultiple]: ${limits.error}`);
|
|
13674
|
+
}
|
|
13675
|
+
}, [limits.error]);
|
|
13676
|
+
const parsedOptions = getOptions2(options, initial, checked, limits);
|
|
13602
13677
|
const inputContent = getInputContent2(props.value);
|
|
13603
13678
|
const onReset = () => {
|
|
13604
13679
|
setChecked([...initial]);
|
|
@@ -13610,6 +13685,9 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13610
13685
|
setChecked((prev) => {
|
|
13611
13686
|
const index2 = prev.findIndex((e) => e.value === option.value);
|
|
13612
13687
|
if (index2 < 0) {
|
|
13688
|
+
if (enabled && typeof max === "number" && prev.length >= max) {
|
|
13689
|
+
return prev;
|
|
13690
|
+
}
|
|
13613
13691
|
return [
|
|
13614
13692
|
...prev,
|
|
13615
13693
|
{
|
|
@@ -13630,7 +13708,7 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13630
13708
|
onReset,
|
|
13631
13709
|
menu: {
|
|
13632
13710
|
itemSpacing: void 0,
|
|
13633
|
-
before: /* @__PURE__ */
|
|
13711
|
+
before: /* @__PURE__ */ jsxs161(React32.Fragment, { children: [
|
|
13634
13712
|
/* @__PURE__ */ jsx326(Header_default2, {}),
|
|
13635
13713
|
/* @__PURE__ */ jsx326(
|
|
13636
13714
|
HiddenInput,
|
|
@@ -13650,7 +13728,13 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13650
13728
|
return /* @__PURE__ */ jsx326(
|
|
13651
13729
|
context_default3.Provider,
|
|
13652
13730
|
{
|
|
13653
|
-
value: {
|
|
13731
|
+
value: {
|
|
13732
|
+
...base,
|
|
13733
|
+
props,
|
|
13734
|
+
options,
|
|
13735
|
+
checked: [checked, setChecked],
|
|
13736
|
+
limits
|
|
13737
|
+
},
|
|
13654
13738
|
children
|
|
13655
13739
|
}
|
|
13656
13740
|
);
|
|
@@ -13678,8 +13762,8 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
13678
13762
|
var SelectMultiple_default = useSelectMultiple;
|
|
13679
13763
|
|
|
13680
13764
|
// src/components/Input/components/Select/index.tsx
|
|
13681
|
-
import { jsx as jsx327, jsxs as
|
|
13682
|
-
var Select =
|
|
13765
|
+
import { jsx as jsx327, jsxs as jsxs162 } from "react/jsx-runtime";
|
|
13766
|
+
var Select = React33.forwardRef(
|
|
13683
13767
|
(props, ref) => {
|
|
13684
13768
|
const { position, loader: loader2, initialLoader } = props;
|
|
13685
13769
|
const [options, setOptions] = useState18(initialLoader || []);
|
|
@@ -13725,7 +13809,9 @@ var Select = React32.forwardRef(
|
|
|
13725
13809
|
"selectAll",
|
|
13726
13810
|
"setValue",
|
|
13727
13811
|
"type",
|
|
13728
|
-
"value"
|
|
13812
|
+
"value",
|
|
13813
|
+
"minSelected",
|
|
13814
|
+
"maxSelected"
|
|
13729
13815
|
]);
|
|
13730
13816
|
const _onScrollEnd = props.onScrollEnd || (() => {
|
|
13731
13817
|
});
|
|
@@ -13751,22 +13837,22 @@ var Select = React32.forwardRef(
|
|
|
13751
13837
|
setLastPage(lastPage2);
|
|
13752
13838
|
setLoading(false);
|
|
13753
13839
|
}, [loader2, search, page, initialLoader]);
|
|
13754
|
-
|
|
13840
|
+
useEffect14(() => {
|
|
13755
13841
|
const timeoutId = setTimeout(() => onSubmit(), 250);
|
|
13756
13842
|
return () => clearTimeout(timeoutId);
|
|
13757
13843
|
}, [onSubmit]);
|
|
13758
|
-
|
|
13844
|
+
useEffect14(() => {
|
|
13759
13845
|
if (open) return;
|
|
13760
13846
|
setSearch("");
|
|
13761
13847
|
onReset();
|
|
13762
13848
|
}, [props.value, open]);
|
|
13763
|
-
|
|
13849
|
+
useEffect14(() => {
|
|
13764
13850
|
setSearchInput(search);
|
|
13765
13851
|
}, [search]);
|
|
13766
|
-
|
|
13852
|
+
useEffect14(() => {
|
|
13767
13853
|
if (page === 1) setHighlight(-1);
|
|
13768
13854
|
}, [page]);
|
|
13769
|
-
|
|
13855
|
+
useEffect14(() => {
|
|
13770
13856
|
const timeoutId = setTimeout(() => setSearch(searchInput), 1e3);
|
|
13771
13857
|
return () => clearTimeout(timeoutId);
|
|
13772
13858
|
}, [searchInput]);
|
|
@@ -13779,7 +13865,7 @@ var Select = React32.forwardRef(
|
|
|
13779
13865
|
setOpen,
|
|
13780
13866
|
searchInput: [searchInput, setSearchInput]
|
|
13781
13867
|
},
|
|
13782
|
-
/* @__PURE__ */
|
|
13868
|
+
/* @__PURE__ */ jsxs162(
|
|
13783
13869
|
RelativeContainer7,
|
|
13784
13870
|
{
|
|
13785
13871
|
ref: onClickOut_default(() => setOpen(false)),
|
|
@@ -13858,7 +13944,7 @@ Select.displayName = "Select";
|
|
|
13858
13944
|
var Select_default2 = Select;
|
|
13859
13945
|
|
|
13860
13946
|
// src/components/Input/components/Switch/index.tsx
|
|
13861
|
-
import
|
|
13947
|
+
import React34 from "react";
|
|
13862
13948
|
|
|
13863
13949
|
// src/components/Input/components/Switch/styles.ts
|
|
13864
13950
|
import styled41, { css as css31 } from "styled-components";
|
|
@@ -13974,7 +14060,7 @@ var Label7 = styled41.label`
|
|
|
13974
14060
|
`;
|
|
13975
14061
|
|
|
13976
14062
|
// src/components/Input/components/Switch/index.tsx
|
|
13977
|
-
import { jsx as jsx328, jsxs as
|
|
14063
|
+
import { jsx as jsx328, jsxs as jsxs163 } from "react/jsx-runtime";
|
|
13978
14064
|
var Switch = (props) => {
|
|
13979
14065
|
const { isRequired, isInvalid: isInvalid2, isViewMode, isDisabled } = Form_default.useContext(
|
|
13980
14066
|
props.name
|
|
@@ -13996,7 +14082,7 @@ var Switch = (props) => {
|
|
|
13996
14082
|
"breakLabel"
|
|
13997
14083
|
]);
|
|
13998
14084
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
13999
|
-
return /* @__PURE__ */
|
|
14085
|
+
return /* @__PURE__ */ jsxs163(
|
|
14000
14086
|
Label7,
|
|
14001
14087
|
{
|
|
14002
14088
|
...props.labelProps || {},
|
|
@@ -14018,7 +14104,7 @@ var Switch = (props) => {
|
|
|
14018
14104
|
$keepSpace: true,
|
|
14019
14105
|
children: label[props.checked ? "after" : "before"]
|
|
14020
14106
|
}
|
|
14021
|
-
) : /* @__PURE__ */
|
|
14107
|
+
) : /* @__PURE__ */ jsxs163(React34.Fragment, { children: [
|
|
14022
14108
|
label.before && /* @__PURE__ */ jsx328(LabelContainer7, { children: label.before }),
|
|
14023
14109
|
/* @__PURE__ */ jsx328("input", { ...htmlProps, type: "checkbox" }),
|
|
14024
14110
|
/* @__PURE__ */ jsx328("span", {}),
|
|
@@ -14031,10 +14117,10 @@ var Switch = (props) => {
|
|
|
14031
14117
|
var Switch_default = Switch;
|
|
14032
14118
|
|
|
14033
14119
|
// src/components/Input/components/Tags/index.tsx
|
|
14034
|
-
import
|
|
14120
|
+
import React36, { useState as useState19 } from "react";
|
|
14035
14121
|
|
|
14036
14122
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14037
|
-
import
|
|
14123
|
+
import React35 from "react";
|
|
14038
14124
|
|
|
14039
14125
|
// src/components/Input/components/Tags/components/Input/styles.ts
|
|
14040
14126
|
import styled42 from "styled-components";
|
|
@@ -14071,7 +14157,7 @@ var Input4 = styled42.input`
|
|
|
14071
14157
|
|
|
14072
14158
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14073
14159
|
import { jsx as jsx329 } from "react/jsx-runtime";
|
|
14074
|
-
var Input5 =
|
|
14160
|
+
var Input5 = React35.forwardRef(
|
|
14075
14161
|
(props, ref) => {
|
|
14076
14162
|
const [value, setValue] = props.value;
|
|
14077
14163
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
@@ -14156,9 +14242,9 @@ var Tag = styled44.div`
|
|
|
14156
14242
|
`;
|
|
14157
14243
|
|
|
14158
14244
|
// src/components/Input/components/Tags/components/Tag/index.tsx
|
|
14159
|
-
import { jsx as jsx331, jsxs as
|
|
14245
|
+
import { jsx as jsx331, jsxs as jsxs164 } from "react/jsx-runtime";
|
|
14160
14246
|
var Tag2 = ({ invalid, onClose, ...props }) => {
|
|
14161
|
-
return /* @__PURE__ */
|
|
14247
|
+
return /* @__PURE__ */ jsxs164(Tag, { ...props, $invalid: invalid, children: [
|
|
14162
14248
|
props.children,
|
|
14163
14249
|
/* @__PURE__ */ jsx331("div", { onClick: onClose, children: /* @__PURE__ */ jsx331(
|
|
14164
14250
|
Icon_default,
|
|
@@ -14228,8 +14314,8 @@ var TagContainer = styled45.div`
|
|
|
14228
14314
|
`;
|
|
14229
14315
|
|
|
14230
14316
|
// src/components/Input/components/Tags/index.tsx
|
|
14231
|
-
import { jsx as jsx332, jsxs as
|
|
14232
|
-
var Tags =
|
|
14317
|
+
import { jsx as jsx332, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
14318
|
+
var Tags = React36.forwardRef(
|
|
14233
14319
|
(props, ref) => {
|
|
14234
14320
|
var _a;
|
|
14235
14321
|
const { value, setValue } = props;
|
|
@@ -14258,9 +14344,9 @@ var Tags = React35.forwardRef(
|
|
|
14258
14344
|
prev.splice(index, 1);
|
|
14259
14345
|
setValue([...prev]);
|
|
14260
14346
|
};
|
|
14261
|
-
return /* @__PURE__ */
|
|
14347
|
+
return /* @__PURE__ */ jsxs165(Label10, { $disabled: props.disabled, $width: props.width, children: [
|
|
14262
14348
|
/* @__PURE__ */ jsx332(Label_default3, { required: props.required, children: props.label }),
|
|
14263
|
-
/* @__PURE__ */
|
|
14349
|
+
/* @__PURE__ */ jsxs165(
|
|
14264
14350
|
TagContainer,
|
|
14265
14351
|
{
|
|
14266
14352
|
$invalid: props.invalid,
|
|
@@ -14301,7 +14387,7 @@ var Tags_default = Tags;
|
|
|
14301
14387
|
|
|
14302
14388
|
// src/components/Input/index.tsx
|
|
14303
14389
|
import { jsx as jsx333 } from "react/jsx-runtime";
|
|
14304
|
-
var Component3 =
|
|
14390
|
+
var Component3 = React37.forwardRef(
|
|
14305
14391
|
(props, ref) => {
|
|
14306
14392
|
switch (props.type) {
|
|
14307
14393
|
case "date": {
|
|
@@ -14438,7 +14524,7 @@ var Item = styled46.div`
|
|
|
14438
14524
|
`;
|
|
14439
14525
|
|
|
14440
14526
|
// src/components/Filters/AppliedFilters/components/Menu/index.tsx
|
|
14441
|
-
import { jsx as jsx334, jsxs as
|
|
14527
|
+
import { jsx as jsx334, jsxs as jsxs166 } from "react/jsx-runtime";
|
|
14442
14528
|
var AppliedFiltersMenu = (props) => {
|
|
14443
14529
|
const {
|
|
14444
14530
|
open,
|
|
@@ -14447,7 +14533,7 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14447
14533
|
} = props;
|
|
14448
14534
|
const [search, setSearch] = useState20("");
|
|
14449
14535
|
const [searched, setSearched] = useState20("");
|
|
14450
|
-
|
|
14536
|
+
useEffect15(() => {
|
|
14451
14537
|
setSearch("");
|
|
14452
14538
|
setSearched("");
|
|
14453
14539
|
}, [open]);
|
|
@@ -14473,9 +14559,9 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14473
14559
|
height: "261px",
|
|
14474
14560
|
transition: { properties: { height: {} } },
|
|
14475
14561
|
...props.containerProps || {},
|
|
14476
|
-
children: /* @__PURE__ */
|
|
14477
|
-
/* @__PURE__ */
|
|
14478
|
-
/* @__PURE__ */
|
|
14562
|
+
children: /* @__PURE__ */ jsxs166("div", { children: [
|
|
14563
|
+
/* @__PURE__ */ jsxs166(Header4, { children: [
|
|
14564
|
+
/* @__PURE__ */ jsxs166("div", { children: [
|
|
14479
14565
|
/* @__PURE__ */ jsx334(Title, { children: "Filtros Aplicados" }),
|
|
14480
14566
|
/* @__PURE__ */ jsx334(Link_default2, { onClick: onClear, children: "Limpar Todos" })
|
|
14481
14567
|
] }),
|
|
@@ -14515,8 +14601,8 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14515
14601
|
},
|
|
14516
14602
|
name
|
|
14517
14603
|
}, index) => {
|
|
14518
|
-
return /* @__PURE__ */
|
|
14519
|
-
/* @__PURE__ */
|
|
14604
|
+
return /* @__PURE__ */ jsxs166(Item, { children: [
|
|
14605
|
+
/* @__PURE__ */ jsxs166("div", { children: [
|
|
14520
14606
|
/* @__PURE__ */ jsx334("div", { children: filter }),
|
|
14521
14607
|
/* @__PURE__ */ jsx334("div", { children: option })
|
|
14522
14608
|
] }),
|
|
@@ -14541,12 +14627,12 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14541
14627
|
var Menu_default3 = AppliedFiltersMenu;
|
|
14542
14628
|
|
|
14543
14629
|
// src/components/Filters/AppliedFilters/index.tsx
|
|
14544
|
-
import { jsx as jsx335, jsxs as
|
|
14630
|
+
import { jsx as jsx335, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
14545
14631
|
var AppliedFilters = Object.assign(
|
|
14546
14632
|
(props) => {
|
|
14547
14633
|
const { appliedFilters, containerProps } = props;
|
|
14548
14634
|
const buttonProps = filterObject(props, ["appliedFilters"]);
|
|
14549
|
-
return /* @__PURE__ */
|
|
14635
|
+
return /* @__PURE__ */ jsxs167(
|
|
14550
14636
|
Button_default,
|
|
14551
14637
|
{
|
|
14552
14638
|
...buttonProps,
|
|
@@ -14627,13 +14713,13 @@ var Card = ({ borderType, size: size3, ...rest }) => {
|
|
|
14627
14713
|
var Card_default = Card;
|
|
14628
14714
|
|
|
14629
14715
|
// src/components/Filters/Filters/components/Menu/index.tsx
|
|
14630
|
-
import { useEffect as
|
|
14716
|
+
import { useEffect as useEffect18, useState as useState23 } from "react";
|
|
14631
14717
|
|
|
14632
14718
|
// src/components/Filters/Filters/components/Submenu/index.tsx
|
|
14633
|
-
import
|
|
14719
|
+
import React40, { useCallback as useCallback4, useEffect as useEffect17, useState as useState22 } from "react";
|
|
14634
14720
|
|
|
14635
14721
|
// src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
|
|
14636
|
-
import { useEffect as
|
|
14722
|
+
import { useEffect as useEffect16, useState as useState21 } from "react";
|
|
14637
14723
|
|
|
14638
14724
|
// src/components/Filters/Filters/components/Submenu/components/Header/styles.ts
|
|
14639
14725
|
import styled48 from "styled-components";
|
|
@@ -14659,7 +14745,7 @@ var Container13 = styled48.div`
|
|
|
14659
14745
|
`;
|
|
14660
14746
|
|
|
14661
14747
|
// src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
|
|
14662
|
-
import { jsx as jsx337, jsxs as
|
|
14748
|
+
import { jsx as jsx337, jsxs as jsxs168 } from "react/jsx-runtime";
|
|
14663
14749
|
var Header5 = (props) => {
|
|
14664
14750
|
const {
|
|
14665
14751
|
title,
|
|
@@ -14672,7 +14758,7 @@ var Header5 = (props) => {
|
|
|
14672
14758
|
if (value === "") return;
|
|
14673
14759
|
_setSearched(value);
|
|
14674
14760
|
};
|
|
14675
|
-
|
|
14761
|
+
useEffect16(() => {
|
|
14676
14762
|
setSearch(searched);
|
|
14677
14763
|
}, [searched]);
|
|
14678
14764
|
const onSubmit = () => {
|
|
@@ -14682,7 +14768,7 @@ var Header5 = (props) => {
|
|
|
14682
14768
|
setSearch("");
|
|
14683
14769
|
setSearched("");
|
|
14684
14770
|
};
|
|
14685
|
-
return /* @__PURE__ */
|
|
14771
|
+
return /* @__PURE__ */ jsxs168(Container13, { children: [
|
|
14686
14772
|
/* @__PURE__ */ jsx337(EllipsisContainer_default, { children: isString(title) ? title : title.element }),
|
|
14687
14773
|
withSearch && /* @__PURE__ */ jsx337(
|
|
14688
14774
|
Input_default4,
|
|
@@ -14721,7 +14807,7 @@ var EmptyMessage = styled49.div`
|
|
|
14721
14807
|
`;
|
|
14722
14808
|
|
|
14723
14809
|
// src/components/Filters/Filters/components/Submenu/index.tsx
|
|
14724
|
-
import { jsx as jsx338, jsxs as
|
|
14810
|
+
import { jsx as jsx338, jsxs as jsxs169 } from "react/jsx-runtime";
|
|
14725
14811
|
var getInstance = (props) => {
|
|
14726
14812
|
const { item } = props;
|
|
14727
14813
|
if (!item) {
|
|
@@ -14805,12 +14891,12 @@ var Submenu = (props) => {
|
|
|
14805
14891
|
onSearch();
|
|
14806
14892
|
}
|
|
14807
14893
|
};
|
|
14808
|
-
|
|
14894
|
+
useEffect17(() => {
|
|
14809
14895
|
setOptions([]);
|
|
14810
14896
|
setSearch("", false);
|
|
14811
14897
|
setFirstRender(true);
|
|
14812
14898
|
}, [item]);
|
|
14813
|
-
|
|
14899
|
+
useEffect17(() => {
|
|
14814
14900
|
setFirstRender((firstRender) => {
|
|
14815
14901
|
if (!item || isDynamic && firstRender) {
|
|
14816
14902
|
setLoading(false);
|
|
@@ -14891,9 +14977,9 @@ var Submenu = (props) => {
|
|
|
14891
14977
|
loading,
|
|
14892
14978
|
emptyContent: isDynamic && options.length === 0 ? /* @__PURE__ */ jsx338(EmptyMessage, { children: (() => {
|
|
14893
14979
|
if (search !== "") {
|
|
14894
|
-
return /* @__PURE__ */ jsx338(
|
|
14980
|
+
return /* @__PURE__ */ jsx338(React40.Fragment, { children: "Nenhum resultado foi encontrado" });
|
|
14895
14981
|
}
|
|
14896
|
-
return /* @__PURE__ */
|
|
14982
|
+
return /* @__PURE__ */ jsxs169(React40.Fragment, { children: [
|
|
14897
14983
|
"Utilize a busca para pesquisar por ",
|
|
14898
14984
|
/* @__PURE__ */ jsx338("br", {}),
|
|
14899
14985
|
label.text
|
|
@@ -14928,7 +15014,7 @@ var FiltersMenu = (props) => {
|
|
|
14928
15014
|
};
|
|
14929
15015
|
});
|
|
14930
15016
|
const selected = active >= 0 && active < props.items.length ? props.items[active] : void 0;
|
|
14931
|
-
|
|
15017
|
+
useEffect18(() => {
|
|
14932
15018
|
if (open) return;
|
|
14933
15019
|
setActive(-1);
|
|
14934
15020
|
}, [open]);
|
|
@@ -15004,14 +15090,14 @@ var Filters = Object.assign(
|
|
|
15004
15090
|
var Filters_default = Filters;
|
|
15005
15091
|
|
|
15006
15092
|
// src/components/Grid/components/Col/index.tsx
|
|
15007
|
-
import
|
|
15093
|
+
import React43 from "react";
|
|
15008
15094
|
|
|
15009
15095
|
// src/components/Grid/components/Row/context.ts
|
|
15010
|
-
import
|
|
15011
|
-
var Provider5 =
|
|
15096
|
+
import React42 from "react";
|
|
15097
|
+
var Provider5 = React42.createContext({
|
|
15012
15098
|
cols: {}
|
|
15013
15099
|
});
|
|
15014
|
-
var useContext4 = () =>
|
|
15100
|
+
var useContext4 = () => React42.useContext(Provider5);
|
|
15015
15101
|
var context_default4 = Provider5;
|
|
15016
15102
|
|
|
15017
15103
|
// src/components/Grid/components/Col/styles.ts
|
|
@@ -15184,7 +15270,7 @@ var Col = styled50.div`
|
|
|
15184
15270
|
|
|
15185
15271
|
// src/components/Grid/components/Col/index.tsx
|
|
15186
15272
|
import { jsx as jsx341 } from "react/jsx-runtime";
|
|
15187
|
-
var Col2 =
|
|
15273
|
+
var Col2 = React43.forwardRef((props, ref) => {
|
|
15188
15274
|
const context = useContext4();
|
|
15189
15275
|
const colProps = { ...context.cols, ...props };
|
|
15190
15276
|
const htmlProps = filterObject(colProps, [
|
|
@@ -15221,15 +15307,15 @@ Col2.displayName = "Col";
|
|
|
15221
15307
|
var Col_default = Col2;
|
|
15222
15308
|
|
|
15223
15309
|
// src/components/Grid/components/Grid/index.tsx
|
|
15224
|
-
import
|
|
15310
|
+
import React45 from "react";
|
|
15225
15311
|
|
|
15226
15312
|
// src/components/Grid/components/Grid/context.ts
|
|
15227
|
-
import
|
|
15228
|
-
var Provider6 =
|
|
15313
|
+
import React44 from "react";
|
|
15314
|
+
var Provider6 = React44.createContext({
|
|
15229
15315
|
rows: {},
|
|
15230
15316
|
cols: {}
|
|
15231
15317
|
});
|
|
15232
|
-
var useContext5 = () =>
|
|
15318
|
+
var useContext5 = () => React44.useContext(Provider6);
|
|
15233
15319
|
var context_default5 = Provider6;
|
|
15234
15320
|
|
|
15235
15321
|
// src/components/Grid/components/Grid/styles.ts
|
|
@@ -15262,7 +15348,7 @@ var Grid = styled51.div`
|
|
|
15262
15348
|
|
|
15263
15349
|
// src/components/Grid/components/Grid/index.tsx
|
|
15264
15350
|
import { jsx as jsx342 } from "react/jsx-runtime";
|
|
15265
|
-
var Grid2 =
|
|
15351
|
+
var Grid2 = React45.forwardRef((props, ref) => {
|
|
15266
15352
|
const cols = props.cols || {};
|
|
15267
15353
|
const rows = props.rows || {};
|
|
15268
15354
|
const gridProps = filterObject(props, [
|
|
@@ -15285,7 +15371,7 @@ Grid2.displayName = "Grid";
|
|
|
15285
15371
|
var Grid_default2 = Grid2;
|
|
15286
15372
|
|
|
15287
15373
|
// src/components/Grid/components/Row/index.tsx
|
|
15288
|
-
import
|
|
15374
|
+
import React46 from "react";
|
|
15289
15375
|
|
|
15290
15376
|
// src/components/Grid/components/Row/styles.ts
|
|
15291
15377
|
import styled52, { css as css37 } from "styled-components";
|
|
@@ -15412,7 +15498,7 @@ var Row = styled52.div`
|
|
|
15412
15498
|
|
|
15413
15499
|
// src/components/Grid/components/Row/index.tsx
|
|
15414
15500
|
import { jsx as jsx343 } from "react/jsx-runtime";
|
|
15415
|
-
var Row2 =
|
|
15501
|
+
var Row2 = React46.forwardRef((props, ref) => {
|
|
15416
15502
|
const context = useContext5();
|
|
15417
15503
|
const cols = { ...context.cols, ...props.cols || {} };
|
|
15418
15504
|
const rowProps = { ...props, ...context.rows };
|
|
@@ -15456,15 +15542,15 @@ var Grid3 = Object.assign(Grid_default2, {
|
|
|
15456
15542
|
var Grid_default3 = Grid3;
|
|
15457
15543
|
|
|
15458
15544
|
// src/components/Modal/component.tsx
|
|
15459
|
-
import { useEffect as
|
|
15545
|
+
import { useEffect as useEffect20 } from "react";
|
|
15460
15546
|
|
|
15461
15547
|
// src/addons/Portal/index.ts
|
|
15462
|
-
import { useEffect as
|
|
15548
|
+
import { useEffect as useEffect19 } from "react";
|
|
15463
15549
|
import { createPortal } from "react-dom";
|
|
15464
15550
|
var Portal = (props) => {
|
|
15465
15551
|
const { id, opened, children } = props;
|
|
15466
15552
|
const portalRoot = document.createElement("div");
|
|
15467
|
-
|
|
15553
|
+
useEffect19(() => {
|
|
15468
15554
|
if (opened) {
|
|
15469
15555
|
portalRoot.id = id + "-root";
|
|
15470
15556
|
document.body.appendChild(portalRoot);
|
|
@@ -15577,7 +15663,7 @@ var Container14 = styled53.div`
|
|
|
15577
15663
|
`;
|
|
15578
15664
|
|
|
15579
15665
|
// src/components/Modal/component.tsx
|
|
15580
|
-
import { jsx as jsx344, jsxs as
|
|
15666
|
+
import { jsx as jsx344, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
15581
15667
|
var Modal = (props) => {
|
|
15582
15668
|
const {
|
|
15583
15669
|
openState,
|
|
@@ -15601,7 +15687,7 @@ var Modal = (props) => {
|
|
|
15601
15687
|
setOpen(false);
|
|
15602
15688
|
}
|
|
15603
15689
|
};
|
|
15604
|
-
|
|
15690
|
+
useEffect20(() => {
|
|
15605
15691
|
const onEscDown = (event) => {
|
|
15606
15692
|
if (closeOnEsc && event.key === "Escape") {
|
|
15607
15693
|
event.preventDefault();
|
|
@@ -15614,7 +15700,7 @@ var Modal = (props) => {
|
|
|
15614
15700
|
};
|
|
15615
15701
|
}, []);
|
|
15616
15702
|
const _size = size3 ? heights[size3] : heights.default;
|
|
15617
|
-
return /* @__PURE__ */ jsx344(Portal_default, { opened: open || false, id: "modal", children: /* @__PURE__ */ jsx344(Background, { onClick: onClickOutside, children: /* @__PURE__ */
|
|
15703
|
+
return /* @__PURE__ */ jsx344(Portal_default, { opened: open || false, id: "modal", children: /* @__PURE__ */ jsx344(Background, { onClick: onClickOutside, children: /* @__PURE__ */ jsxs170(
|
|
15618
15704
|
Container14,
|
|
15619
15705
|
{
|
|
15620
15706
|
$size: size3 || "small",
|
|
@@ -15631,7 +15717,7 @@ var Modal = (props) => {
|
|
|
15631
15717
|
borderSize: "3px"
|
|
15632
15718
|
}
|
|
15633
15719
|
) : children || content }),
|
|
15634
|
-
/* @__PURE__ */
|
|
15720
|
+
/* @__PURE__ */ jsxs170(Footer3, { children: [
|
|
15635
15721
|
/* @__PURE__ */ jsx344(FooterMessage, { children: footerMessage && (typeof footerMessage === "string" ? /* @__PURE__ */ jsx344("span", { children: footerMessage }) : footerMessage) }),
|
|
15636
15722
|
/* @__PURE__ */ jsx344(FooterButtons, { children: footer ? footer.map(({ children: children2, ...buttonProps }, index) => /* @__PURE__ */ jsx344(Button_default2, { ...buttonProps, children: children2 }, index)) : /* @__PURE__ */ jsx344(
|
|
15637
15723
|
Button_default2,
|
|
@@ -15803,7 +15889,7 @@ var Modal2 = Object.assign(component_default, {
|
|
|
15803
15889
|
var Modal_default = Modal2;
|
|
15804
15890
|
|
|
15805
15891
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
15806
|
-
import
|
|
15892
|
+
import React48 from "react";
|
|
15807
15893
|
|
|
15808
15894
|
// src/components/Placeholder/components/Template1/styles.ts
|
|
15809
15895
|
import styled57, { css as css39 } from "styled-components";
|
|
@@ -15861,18 +15947,18 @@ var MainLine = styled57(HeaderLine)`
|
|
|
15861
15947
|
`;
|
|
15862
15948
|
|
|
15863
15949
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
15864
|
-
import { jsx as jsx348, jsxs as
|
|
15950
|
+
import { jsx as jsx348, jsxs as jsxs171 } from "react/jsx-runtime";
|
|
15865
15951
|
var Template1 = (props) => {
|
|
15866
|
-
if (!props.loading) return /* @__PURE__ */ jsx348(
|
|
15867
|
-
return /* @__PURE__ */
|
|
15868
|
-
/* @__PURE__ */
|
|
15952
|
+
if (!props.loading) return /* @__PURE__ */ jsx348(React48.Fragment, {});
|
|
15953
|
+
return /* @__PURE__ */ jsxs171(Container15, { children: [
|
|
15954
|
+
/* @__PURE__ */ jsxs171(Header7, { children: [
|
|
15869
15955
|
/* @__PURE__ */ jsx348(HeaderImage, {}),
|
|
15870
|
-
/* @__PURE__ */
|
|
15956
|
+
/* @__PURE__ */ jsxs171(HeaderContent, { children: [
|
|
15871
15957
|
/* @__PURE__ */ jsx348(HeaderLine, { $size: "medium", $height: "9px", $color: "#E6E6E6" }),
|
|
15872
15958
|
/* @__PURE__ */ jsx348(HeaderLine, { $size: "small", $height: "9px", $color: "#E6E6E6" })
|
|
15873
15959
|
] })
|
|
15874
15960
|
] }),
|
|
15875
|
-
/* @__PURE__ */
|
|
15961
|
+
/* @__PURE__ */ jsxs171(MainContent, { children: [
|
|
15876
15962
|
/* @__PURE__ */ jsx348(MainLine, { $size: "medium", $height: "9px", $color: "#E6E6E6" }),
|
|
15877
15963
|
/* @__PURE__ */ jsx348(MainLine, { $size: "small", $height: "9px", $color: "#E6E6E6" }),
|
|
15878
15964
|
/* @__PURE__ */ jsx348(MainLine, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
|
|
@@ -15884,7 +15970,7 @@ var Template1 = (props) => {
|
|
|
15884
15970
|
var Template1_default = Template1;
|
|
15885
15971
|
|
|
15886
15972
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
15887
|
-
import
|
|
15973
|
+
import React49 from "react";
|
|
15888
15974
|
|
|
15889
15975
|
// src/components/Placeholder/components/Template2/styles.ts
|
|
15890
15976
|
import styled59 from "styled-components";
|
|
@@ -15952,18 +16038,18 @@ var MainLine2 = styled59(HeaderLine2)`
|
|
|
15952
16038
|
var HeaderLine3 = styled59(HeaderLine2)``;
|
|
15953
16039
|
|
|
15954
16040
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
15955
|
-
import { jsx as jsx349, jsxs as
|
|
16041
|
+
import { jsx as jsx349, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
15956
16042
|
var Template2 = (props) => {
|
|
15957
|
-
if (!props.loading) return /* @__PURE__ */ jsx349(
|
|
15958
|
-
return /* @__PURE__ */
|
|
15959
|
-
/* @__PURE__ */
|
|
16043
|
+
if (!props.loading) return /* @__PURE__ */ jsx349(React49.Fragment, {});
|
|
16044
|
+
return /* @__PURE__ */ jsxs172(Template2Container, { children: [
|
|
16045
|
+
/* @__PURE__ */ jsxs172(Header8, { children: [
|
|
15960
16046
|
/* @__PURE__ */ jsx349(HeaderImage2, {}),
|
|
15961
|
-
/* @__PURE__ */
|
|
16047
|
+
/* @__PURE__ */ jsxs172(HeaderContent2, { children: [
|
|
15962
16048
|
/* @__PURE__ */ jsx349(HeaderLine3, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
|
|
15963
16049
|
/* @__PURE__ */ jsx349(HeaderLine3, { $size: "mini", $height: "9px", $color: "#E6E6E6" })
|
|
15964
16050
|
] })
|
|
15965
16051
|
] }),
|
|
15966
|
-
/* @__PURE__ */
|
|
16052
|
+
/* @__PURE__ */ jsxs172(MainContent2, { children: [
|
|
15967
16053
|
/* @__PURE__ */ jsx349(MainLine2, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
|
|
15968
16054
|
/* @__PURE__ */ jsx349(MainLine2, { $size: "mini", $height: "9px", $color: "#E6E6E6" })
|
|
15969
16055
|
] })
|
|
@@ -15972,7 +16058,7 @@ var Template2 = (props) => {
|
|
|
15972
16058
|
var Template2_default = Template2;
|
|
15973
16059
|
|
|
15974
16060
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
15975
|
-
import
|
|
16061
|
+
import React50 from "react";
|
|
15976
16062
|
|
|
15977
16063
|
// src/components/Placeholder/components/Template3/styles.ts
|
|
15978
16064
|
import styled60 from "styled-components";
|
|
@@ -15989,10 +16075,10 @@ var Template3Line = styled60(HeaderLine2)`
|
|
|
15989
16075
|
`;
|
|
15990
16076
|
|
|
15991
16077
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
15992
|
-
import { jsx as jsx350, jsxs as
|
|
16078
|
+
import { jsx as jsx350, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
15993
16079
|
var Template3 = (props) => {
|
|
15994
|
-
if (!props.loading) return /* @__PURE__ */ jsx350(
|
|
15995
|
-
return /* @__PURE__ */
|
|
16080
|
+
if (!props.loading) return /* @__PURE__ */ jsx350(React50.Fragment, {});
|
|
16081
|
+
return /* @__PURE__ */ jsxs173(Template3Container, { children: [
|
|
15996
16082
|
/* @__PURE__ */ jsx350(Template3Line, { $size: "large", $height: "7px", $color: "#DADADA" }),
|
|
15997
16083
|
/* @__PURE__ */ jsx350(Template3Line, { $size: "small", $height: "7px", $color: "#DADADA" }),
|
|
15998
16084
|
/* @__PURE__ */ jsx350(Template3Line, { $size: "medium", $height: "7px", $color: "#DADADA" }),
|
|
@@ -16003,7 +16089,7 @@ var Template3 = (props) => {
|
|
|
16003
16089
|
var Template3_default = Template3;
|
|
16004
16090
|
|
|
16005
16091
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16006
|
-
import
|
|
16092
|
+
import React51 from "react";
|
|
16007
16093
|
|
|
16008
16094
|
// src/components/Placeholder/components/Template4/styles.ts
|
|
16009
16095
|
import styled61, { css as css41 } from "styled-components";
|
|
@@ -16049,10 +16135,10 @@ var CustomLine = styled61(HeaderLine4)`
|
|
|
16049
16135
|
`;
|
|
16050
16136
|
|
|
16051
16137
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16052
|
-
import { jsx as jsx351, jsxs as
|
|
16138
|
+
import { jsx as jsx351, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
16053
16139
|
var Template4 = (props) => {
|
|
16054
|
-
if (!props.loading) return /* @__PURE__ */ jsx351(
|
|
16055
|
-
return /* @__PURE__ */
|
|
16140
|
+
if (!props.loading) return /* @__PURE__ */ jsx351(React51.Fragment, {});
|
|
16141
|
+
return /* @__PURE__ */ jsxs174(Template4Container, { children: [
|
|
16056
16142
|
/* @__PURE__ */ jsx351(
|
|
16057
16143
|
CustomLine,
|
|
16058
16144
|
{
|
|
@@ -16130,7 +16216,7 @@ var Template4 = (props) => {
|
|
|
16130
16216
|
var Template4_default = Template4;
|
|
16131
16217
|
|
|
16132
16218
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16133
|
-
import
|
|
16219
|
+
import React52 from "react";
|
|
16134
16220
|
|
|
16135
16221
|
// src/components/Placeholder/components/Template5/styles.ts
|
|
16136
16222
|
import styled62, { css as css42 } from "styled-components";
|
|
@@ -16187,12 +16273,12 @@ var MainContent3 = styled62.div`
|
|
|
16187
16273
|
`;
|
|
16188
16274
|
|
|
16189
16275
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16190
|
-
import { jsx as jsx352, jsxs as
|
|
16276
|
+
import { jsx as jsx352, jsxs as jsxs175 } from "react/jsx-runtime";
|
|
16191
16277
|
var Template5 = (props) => {
|
|
16192
|
-
if (!props.loading) return /* @__PURE__ */ jsx352(
|
|
16193
|
-
return /* @__PURE__ */
|
|
16278
|
+
if (!props.loading) return /* @__PURE__ */ jsx352(React52.Fragment, {});
|
|
16279
|
+
return /* @__PURE__ */ jsxs175(Container19, { children: [
|
|
16194
16280
|
/* @__PURE__ */ jsx352(Circle, {}),
|
|
16195
|
-
/* @__PURE__ */
|
|
16281
|
+
/* @__PURE__ */ jsxs175(MainContent3, { children: [
|
|
16196
16282
|
/* @__PURE__ */ jsx352(
|
|
16197
16283
|
CustomLine2,
|
|
16198
16284
|
{
|
|
@@ -16235,7 +16321,7 @@ var Template5 = (props) => {
|
|
|
16235
16321
|
var Template5_default = Template5;
|
|
16236
16322
|
|
|
16237
16323
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16238
|
-
import
|
|
16324
|
+
import React53 from "react";
|
|
16239
16325
|
|
|
16240
16326
|
// src/components/Placeholder/components/Template6/styles.ts
|
|
16241
16327
|
import styled63, { css as css43 } from "styled-components";
|
|
@@ -16291,10 +16377,10 @@ var CustomLine3 = styled63(HeaderLine6)`
|
|
|
16291
16377
|
`;
|
|
16292
16378
|
|
|
16293
16379
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16294
|
-
import { jsx as jsx353, jsxs as
|
|
16380
|
+
import { jsx as jsx353, jsxs as jsxs176 } from "react/jsx-runtime";
|
|
16295
16381
|
var Template6 = (props) => {
|
|
16296
|
-
if (!props.loading) return /* @__PURE__ */ jsx353(
|
|
16297
|
-
return /* @__PURE__ */ jsx353(Container20, { children: /* @__PURE__ */
|
|
16382
|
+
if (!props.loading) return /* @__PURE__ */ jsx353(React53.Fragment, {});
|
|
16383
|
+
return /* @__PURE__ */ jsx353(Container20, { children: /* @__PURE__ */ jsxs176(Header9, { children: [
|
|
16298
16384
|
/* @__PURE__ */ jsx353(
|
|
16299
16385
|
CustomLine3,
|
|
16300
16386
|
{
|
|
@@ -16327,7 +16413,7 @@ var Template6 = (props) => {
|
|
|
16327
16413
|
var Template6_default = Template6;
|
|
16328
16414
|
|
|
16329
16415
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16330
|
-
import
|
|
16416
|
+
import React54 from "react";
|
|
16331
16417
|
|
|
16332
16418
|
// src/components/Placeholder/components/Template7/styles.ts
|
|
16333
16419
|
import styled64, { css as css44 } from "styled-components";
|
|
@@ -16393,10 +16479,10 @@ var Circle2 = styled64.div`
|
|
|
16393
16479
|
`;
|
|
16394
16480
|
|
|
16395
16481
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16396
|
-
import { jsx as jsx354, jsxs as
|
|
16482
|
+
import { jsx as jsx354, jsxs as jsxs177 } from "react/jsx-runtime";
|
|
16397
16483
|
var Template7 = (props) => {
|
|
16398
|
-
if (!props.loading) return /* @__PURE__ */ jsx354(
|
|
16399
|
-
return /* @__PURE__ */
|
|
16484
|
+
if (!props.loading) return /* @__PURE__ */ jsx354(React54.Fragment, {});
|
|
16485
|
+
return /* @__PURE__ */ jsxs177(Container21, { children: [
|
|
16400
16486
|
/* @__PURE__ */ jsx354(Header10, { children: /* @__PURE__ */ jsx354(
|
|
16401
16487
|
CustomLine4,
|
|
16402
16488
|
{
|
|
@@ -16406,7 +16492,7 @@ var Template7 = (props) => {
|
|
|
16406
16492
|
$size: "large"
|
|
16407
16493
|
}
|
|
16408
16494
|
) }),
|
|
16409
|
-
/* @__PURE__ */
|
|
16495
|
+
/* @__PURE__ */ jsxs177(Main3, { children: [
|
|
16410
16496
|
/* @__PURE__ */ jsx354(Circle2, {}),
|
|
16411
16497
|
/* @__PURE__ */ jsx354(Circle2, {}),
|
|
16412
16498
|
/* @__PURE__ */ jsx354(Circle2, {}),
|
|
@@ -16418,7 +16504,7 @@ var Template7 = (props) => {
|
|
|
16418
16504
|
var Template7_default = Template7;
|
|
16419
16505
|
|
|
16420
16506
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16421
|
-
import
|
|
16507
|
+
import React55 from "react";
|
|
16422
16508
|
|
|
16423
16509
|
// src/components/Placeholder/components/Template8/styles.ts
|
|
16424
16510
|
import styled65, { css as css45 } from "styled-components";
|
|
@@ -16477,10 +16563,10 @@ var Main4 = styled65.div`
|
|
|
16477
16563
|
`;
|
|
16478
16564
|
|
|
16479
16565
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16480
|
-
import { jsx as jsx355, jsxs as
|
|
16566
|
+
import { jsx as jsx355, jsxs as jsxs178 } from "react/jsx-runtime";
|
|
16481
16567
|
var Template8 = (props) => {
|
|
16482
|
-
if (!props.loading) return /* @__PURE__ */ jsx355(
|
|
16483
|
-
return /* @__PURE__ */
|
|
16568
|
+
if (!props.loading) return /* @__PURE__ */ jsx355(React55.Fragment, {});
|
|
16569
|
+
return /* @__PURE__ */ jsxs178(Container22, { children: [
|
|
16484
16570
|
/* @__PURE__ */ jsx355(Header11, { children: /* @__PURE__ */ jsx355(
|
|
16485
16571
|
CustomLine5,
|
|
16486
16572
|
{
|
|
@@ -16490,7 +16576,7 @@ var Template8 = (props) => {
|
|
|
16490
16576
|
$size: "large"
|
|
16491
16577
|
}
|
|
16492
16578
|
) }),
|
|
16493
|
-
/* @__PURE__ */
|
|
16579
|
+
/* @__PURE__ */ jsxs178(Main4, { children: [
|
|
16494
16580
|
/* @__PURE__ */ jsx355(
|
|
16495
16581
|
CustomLine5,
|
|
16496
16582
|
{
|
|
@@ -16515,7 +16601,7 @@ var Template8 = (props) => {
|
|
|
16515
16601
|
var Template8_default = Template8;
|
|
16516
16602
|
|
|
16517
16603
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16518
|
-
import
|
|
16604
|
+
import React56 from "react";
|
|
16519
16605
|
|
|
16520
16606
|
// src/components/Placeholder/components/Template9/styles.ts
|
|
16521
16607
|
import styled66, { css as css46 } from "styled-components";
|
|
@@ -16581,11 +16667,11 @@ var Circle3 = styled66.div`
|
|
|
16581
16667
|
`;
|
|
16582
16668
|
|
|
16583
16669
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16584
|
-
import { jsx as jsx356, jsxs as
|
|
16670
|
+
import { jsx as jsx356, jsxs as jsxs179 } from "react/jsx-runtime";
|
|
16585
16671
|
var Template82 = (props) => {
|
|
16586
|
-
if (!props.loading) return /* @__PURE__ */ jsx356(
|
|
16587
|
-
return /* @__PURE__ */
|
|
16588
|
-
/* @__PURE__ */
|
|
16672
|
+
if (!props.loading) return /* @__PURE__ */ jsx356(React56.Fragment, {});
|
|
16673
|
+
return /* @__PURE__ */ jsxs179(Container23, { children: [
|
|
16674
|
+
/* @__PURE__ */ jsxs179(Header12, { children: [
|
|
16589
16675
|
/* @__PURE__ */ jsx356(
|
|
16590
16676
|
CustomLine6,
|
|
16591
16677
|
{
|
|
@@ -16611,7 +16697,7 @@ var Template82 = (props) => {
|
|
|
16611
16697
|
var Template9_default = Template82;
|
|
16612
16698
|
|
|
16613
16699
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
16614
|
-
import
|
|
16700
|
+
import React57 from "react";
|
|
16615
16701
|
|
|
16616
16702
|
// src/components/Placeholder/components/Template10/styles.ts
|
|
16617
16703
|
import styled67, { css as css47 } from "styled-components";
|
|
@@ -16681,11 +16767,11 @@ var Circle4 = styled67.div`
|
|
|
16681
16767
|
`;
|
|
16682
16768
|
|
|
16683
16769
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
16684
|
-
import { jsx as jsx357, jsxs as
|
|
16770
|
+
import { jsx as jsx357, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
16685
16771
|
var Template10 = (props) => {
|
|
16686
|
-
if (!props.loading) return /* @__PURE__ */ jsx357(
|
|
16687
|
-
return /* @__PURE__ */
|
|
16688
|
-
/* @__PURE__ */
|
|
16772
|
+
if (!props.loading) return /* @__PURE__ */ jsx357(React57.Fragment, {});
|
|
16773
|
+
return /* @__PURE__ */ jsxs180(Container24, { children: [
|
|
16774
|
+
/* @__PURE__ */ jsxs180(Header13, { children: [
|
|
16689
16775
|
/* @__PURE__ */ jsx357(
|
|
16690
16776
|
CustomLine7,
|
|
16691
16777
|
{
|
|
@@ -16705,7 +16791,7 @@ var Template10 = (props) => {
|
|
|
16705
16791
|
}
|
|
16706
16792
|
)
|
|
16707
16793
|
] }),
|
|
16708
|
-
/* @__PURE__ */
|
|
16794
|
+
/* @__PURE__ */ jsxs180(Main6, { children: [
|
|
16709
16795
|
/* @__PURE__ */ jsx357(
|
|
16710
16796
|
GraphLine,
|
|
16711
16797
|
{
|
|
@@ -16883,11 +16969,11 @@ var Progress = styled68.div`
|
|
|
16883
16969
|
`;
|
|
16884
16970
|
|
|
16885
16971
|
// src/components/ProgressBar/index.tsx
|
|
16886
|
-
import { jsx as jsx359, jsxs as
|
|
16972
|
+
import { jsx as jsx359, jsxs as jsxs181 } from "react/jsx-runtime";
|
|
16887
16973
|
var ProgressBar = ({ type, value, ...props }) => {
|
|
16888
|
-
return /* @__PURE__ */
|
|
16974
|
+
return /* @__PURE__ */ jsxs181(Container25, { $disabled: value === null, children: [
|
|
16889
16975
|
/* @__PURE__ */ jsx359(Progress, { ...props, $type: type, children: /* @__PURE__ */ jsx359("span", { style: { width: `${value || 0}%` } }) }),
|
|
16890
|
-
/* @__PURE__ */
|
|
16976
|
+
/* @__PURE__ */ jsxs181("span", { children: [
|
|
16891
16977
|
" ",
|
|
16892
16978
|
value === null ? "-" : value,
|
|
16893
16979
|
"%"
|
|
@@ -16897,10 +16983,10 @@ var ProgressBar = ({ type, value, ...props }) => {
|
|
|
16897
16983
|
var ProgressBar_default = ProgressBar;
|
|
16898
16984
|
|
|
16899
16985
|
// src/components/Tabs/index.tsx
|
|
16900
|
-
import
|
|
16986
|
+
import React63, { useState as useState26 } from "react";
|
|
16901
16987
|
|
|
16902
16988
|
// src/components/Tabs/components/ScrollButtons/index.tsx
|
|
16903
|
-
import
|
|
16989
|
+
import React59, { useCallback as useCallback6, useEffect as useEffect21, useState as useState24 } from "react";
|
|
16904
16990
|
|
|
16905
16991
|
// src/components/Tabs/components/ScrollButton/index.tsx
|
|
16906
16992
|
import { useCallback as useCallback5 } from "react";
|
|
@@ -16975,7 +17061,7 @@ var Container27 = styled70.div`
|
|
|
16975
17061
|
`;
|
|
16976
17062
|
|
|
16977
17063
|
// src/components/Tabs/components/ScrollButtons/index.tsx
|
|
16978
|
-
import { jsx as jsx361, jsxs as
|
|
17064
|
+
import { jsx as jsx361, jsxs as jsxs182 } from "react/jsx-runtime";
|
|
16979
17065
|
var ScrollButtons = (props) => {
|
|
16980
17066
|
const { activeTabIndex, tabsLength } = props;
|
|
16981
17067
|
const [ref, setRef] = useState24(null);
|
|
@@ -16992,12 +17078,12 @@ var ScrollButtons = (props) => {
|
|
|
16992
17078
|
setShowRightArrow(false);
|
|
16993
17079
|
}
|
|
16994
17080
|
}, [ref]);
|
|
16995
|
-
|
|
17081
|
+
useEffect21(() => {
|
|
16996
17082
|
checkScrollPosition();
|
|
16997
17083
|
window.addEventListener("resize", checkScrollPosition);
|
|
16998
17084
|
return () => window.removeEventListener("resize", checkScrollPosition);
|
|
16999
17085
|
}, [checkScrollPosition, tabsLength]);
|
|
17000
|
-
|
|
17086
|
+
useEffect21(() => {
|
|
17001
17087
|
if (!ref) return;
|
|
17002
17088
|
if (ref.scrollWidth <= ref.offsetWidth) return;
|
|
17003
17089
|
const element = ref.children[activeTabIndex];
|
|
@@ -17007,7 +17093,7 @@ var ScrollButtons = (props) => {
|
|
|
17007
17093
|
inline: "nearest"
|
|
17008
17094
|
});
|
|
17009
17095
|
}, [activeTabIndex, ref]);
|
|
17010
|
-
return /* @__PURE__ */
|
|
17096
|
+
return /* @__PURE__ */ jsxs182(React59.Fragment, { children: [
|
|
17011
17097
|
/* @__PURE__ */ jsx361(ScrollButton_default, { scrollRef: ref, mode: "left", visible: showLeftArrow }),
|
|
17012
17098
|
/* @__PURE__ */ jsx361(
|
|
17013
17099
|
Container27,
|
|
@@ -17030,7 +17116,7 @@ var ScrollButtons = (props) => {
|
|
|
17030
17116
|
var ScrollButtons_default = ScrollButtons;
|
|
17031
17117
|
|
|
17032
17118
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17033
|
-
import
|
|
17119
|
+
import React62 from "react";
|
|
17034
17120
|
|
|
17035
17121
|
// src/components/Tabs/functions.ts
|
|
17036
17122
|
var sortTabs = (tabs, sorted = []) => {
|
|
@@ -17256,8 +17342,8 @@ var Container28 = styled73.div`
|
|
|
17256
17342
|
`;
|
|
17257
17343
|
|
|
17258
17344
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17259
|
-
import { jsx as jsx364, jsxs as
|
|
17260
|
-
var VoidClose = () => /* @__PURE__ */ jsx364(
|
|
17345
|
+
import { jsx as jsx364, jsxs as jsxs183 } from "react/jsx-runtime";
|
|
17346
|
+
var VoidClose = () => /* @__PURE__ */ jsx364(React62.Fragment, {});
|
|
17261
17347
|
var TabItem = (props) => {
|
|
17262
17348
|
const {
|
|
17263
17349
|
active: [active, setActive],
|
|
@@ -17267,11 +17353,11 @@ var TabItem = (props) => {
|
|
|
17267
17353
|
alwaysOpen
|
|
17268
17354
|
} = props;
|
|
17269
17355
|
const CloseComponent = alwaysOpen || tabs.length < 2 ? VoidClose : Close_default;
|
|
17270
|
-
return /* @__PURE__ */ jsx364(
|
|
17356
|
+
return /* @__PURE__ */ jsx364(React62.Fragment, { children: sortedTabs.map(({ index, ...tab }) => {
|
|
17271
17357
|
const isActive = index === active;
|
|
17272
17358
|
const hasSiblings = hasChildren(tabs, tab.group);
|
|
17273
17359
|
const canClose = !props.internal && (!tab.primary || !hasSiblings);
|
|
17274
|
-
return /* @__PURE__ */
|
|
17360
|
+
return /* @__PURE__ */ jsxs183(
|
|
17275
17361
|
Container28,
|
|
17276
17362
|
{
|
|
17277
17363
|
...isActive ? { className: "active" } : {},
|
|
@@ -17362,8 +17448,8 @@ var Tabs = styled74.div`
|
|
|
17362
17448
|
`;
|
|
17363
17449
|
|
|
17364
17450
|
// src/components/Tabs/index.tsx
|
|
17365
|
-
import { jsx as jsx365, jsxs as
|
|
17366
|
-
var VoidProvider = (props) => /* @__PURE__ */ jsx365(
|
|
17451
|
+
import { jsx as jsx365, jsxs as jsxs184 } from "react/jsx-runtime";
|
|
17452
|
+
var VoidProvider = (props) => /* @__PURE__ */ jsx365(React63.Fragment, { children: props.children });
|
|
17367
17453
|
var Component4 = (props) => {
|
|
17368
17454
|
const components = props.components || {};
|
|
17369
17455
|
const [options, setOptions] = typeof props.options[1] === "function" ? props.options : useState26(props.options);
|
|
@@ -17381,7 +17467,7 @@ var Component4 = (props) => {
|
|
|
17381
17467
|
"delimiter",
|
|
17382
17468
|
"spacing"
|
|
17383
17469
|
]);
|
|
17384
|
-
return /* @__PURE__ */
|
|
17470
|
+
return /* @__PURE__ */ jsxs184(React63.Fragment, { children: [
|
|
17385
17471
|
/* @__PURE__ */ jsx365(
|
|
17386
17472
|
Tabs,
|
|
17387
17473
|
{
|
|
@@ -17414,7 +17500,7 @@ var Component4 = (props) => {
|
|
|
17414
17500
|
),
|
|
17415
17501
|
options.map((tab, index) => {
|
|
17416
17502
|
if (tab.component === void 0) {
|
|
17417
|
-
return /* @__PURE__ */ jsx365(
|
|
17503
|
+
return /* @__PURE__ */ jsx365(React63.Fragment, {}, index);
|
|
17418
17504
|
}
|
|
17419
17505
|
const Component5 = components[tab.component];
|
|
17420
17506
|
const Provider7 = Component5.provider || VoidProvider;
|
|
@@ -17569,7 +17655,7 @@ var IconContent = styled76.div`
|
|
|
17569
17655
|
`;
|
|
17570
17656
|
|
|
17571
17657
|
// src/components/Toast/index.tsx
|
|
17572
|
-
import { jsx as jsx367, jsxs as
|
|
17658
|
+
import { jsx as jsx367, jsxs as jsxs185 } from "react/jsx-runtime";
|
|
17573
17659
|
var Toast = ({
|
|
17574
17660
|
size: size3,
|
|
17575
17661
|
color,
|
|
@@ -17578,11 +17664,11 @@ var Toast = ({
|
|
|
17578
17664
|
onClose: handlClose,
|
|
17579
17665
|
...props
|
|
17580
17666
|
}) => {
|
|
17581
|
-
return /* @__PURE__ */
|
|
17667
|
+
return /* @__PURE__ */ jsxs185(Container30, { ...props, $size: size3, $color: color, children: [
|
|
17582
17668
|
/* @__PURE__ */ jsx367(IconContainer3, { children: /* @__PURE__ */ jsx367(Icon_default, { type: "feather", icon: "x", onClick: handlClose }) }),
|
|
17583
|
-
/* @__PURE__ */
|
|
17669
|
+
/* @__PURE__ */ jsxs185(IconContent, { children: [
|
|
17584
17670
|
/* @__PURE__ */ jsx367("h4", { children: title }),
|
|
17585
|
-
/* @__PURE__ */
|
|
17671
|
+
/* @__PURE__ */ jsxs185("p", { children: [
|
|
17586
17672
|
" ",
|
|
17587
17673
|
description
|
|
17588
17674
|
] })
|
|
@@ -17592,7 +17678,7 @@ var Toast = ({
|
|
|
17592
17678
|
var Toast_default = Toast;
|
|
17593
17679
|
|
|
17594
17680
|
// src/components/Zoom/index.tsx
|
|
17595
|
-
import
|
|
17681
|
+
import React64, { useState as useState27 } from "react";
|
|
17596
17682
|
|
|
17597
17683
|
// src/components/Zoom/styles.ts
|
|
17598
17684
|
import styled77 from "styled-components";
|
|
@@ -17664,12 +17750,12 @@ var ModalContent = styled77.div`
|
|
|
17664
17750
|
`;
|
|
17665
17751
|
|
|
17666
17752
|
// src/components/Zoom/index.tsx
|
|
17667
|
-
import { jsx as jsx368, jsxs as
|
|
17753
|
+
import { jsx as jsx368, jsxs as jsxs186 } from "react/jsx-runtime";
|
|
17668
17754
|
var Zoom = (props) => {
|
|
17669
17755
|
const { src, width, height, ...imgProps } = props;
|
|
17670
17756
|
const [modalOpened, setModalOpened] = useState27(false);
|
|
17671
|
-
return /* @__PURE__ */
|
|
17672
|
-
/* @__PURE__ */
|
|
17757
|
+
return /* @__PURE__ */ jsxs186(React64.Fragment, { children: [
|
|
17758
|
+
/* @__PURE__ */ jsxs186(
|
|
17673
17759
|
Container31,
|
|
17674
17760
|
{
|
|
17675
17761
|
...imgProps,
|