@mw-kit/mw-ui 1.8.17 → 1.8.19
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/README.md +33 -46
- package/bin/mw-ui-copy-fonts.mjs +53 -0
- package/dist/assets/fonts/index.d.ts +51 -14
- package/dist/assets/fonts/lato-italic-100-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-100-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-300-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-300-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-400-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-400-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-700-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-700-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-900-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-italic-900-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-100-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-100-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-300-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-300-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-400-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-400-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-700-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-700-latin.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-900-latin-ext.woff2 +0 -0
- package/dist/assets/fonts/lato-normal-900-latin.woff2 +0 -0
- package/dist/assets/helpers.d.ts +1 -1
- package/dist/index.d.mts +122 -69
- package/dist/index.js +728 -396
- package/dist/index.mjs +928 -590
- package/dist/theme/constants.d.ts +51 -4
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/interfaces.d.ts +6 -5
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
const __mw_ui_module_url = (() => {
|
|
2
|
-
if (typeof document !== 'undefined') {
|
|
3
|
-
const currentScript = document.currentScript
|
|
4
|
-
if (currentScript && currentScript.src) return currentScript.src
|
|
5
|
-
return document.baseURI
|
|
6
|
-
}
|
|
7
|
-
return require('url').pathToFileURL(__filename).href
|
|
8
|
-
})();
|
|
9
|
-
|
|
10
1
|
"use strict";
|
|
11
2
|
var __create = Object.create;
|
|
12
3
|
var __defProp = Object.defineProperty;
|
|
@@ -73,6 +64,161 @@ module.exports = __toCommonJS(index_exports);
|
|
|
73
64
|
// src/components/AbsoluteContainer/index.tsx
|
|
74
65
|
var import_react2 = __toESM(require("react"));
|
|
75
66
|
|
|
67
|
+
// src/assets/fonts/allura-latin-ext.woff2
|
|
68
|
+
var allura_latin_ext_default = "./assets/fonts/allura-latin-ext.woff2";
|
|
69
|
+
|
|
70
|
+
// src/assets/fonts/allura-latin.woff2
|
|
71
|
+
var allura_latin_default = "./assets/fonts/allura-latin.woff2";
|
|
72
|
+
|
|
73
|
+
// src/assets/fonts/allura-vietnamese.woff2
|
|
74
|
+
var allura_vietnamese_default = "./assets/fonts/allura-vietnamese.woff2";
|
|
75
|
+
|
|
76
|
+
// src/assets/fonts/great-vibes-cyrillic-ext.woff2
|
|
77
|
+
var great_vibes_cyrillic_ext_default = "./assets/fonts/great-vibes-cyrillic-ext.woff2";
|
|
78
|
+
|
|
79
|
+
// src/assets/fonts/great-vibes-cyrillic.woff2
|
|
80
|
+
var great_vibes_cyrillic_default = "./assets/fonts/great-vibes-cyrillic.woff2";
|
|
81
|
+
|
|
82
|
+
// src/assets/fonts/great-vibes-greek-ext.woff2
|
|
83
|
+
var great_vibes_greek_ext_default = "./assets/fonts/great-vibes-greek-ext.woff2";
|
|
84
|
+
|
|
85
|
+
// src/assets/fonts/great-vibes-latin-ext.woff2
|
|
86
|
+
var great_vibes_latin_ext_default = "./assets/fonts/great-vibes-latin-ext.woff2";
|
|
87
|
+
|
|
88
|
+
// src/assets/fonts/great-vibes-latin.woff2
|
|
89
|
+
var great_vibes_latin_default = "./assets/fonts/great-vibes-latin.woff2";
|
|
90
|
+
|
|
91
|
+
// src/assets/fonts/great-vibes-vietnamese.woff2
|
|
92
|
+
var great_vibes_vietnamese_default = "./assets/fonts/great-vibes-vietnamese.woff2";
|
|
93
|
+
|
|
94
|
+
// src/assets/fonts/lato-italic-100-latin-ext.woff2
|
|
95
|
+
var lato_italic_100_latin_ext_default = "./assets/fonts/lato-italic-100-latin-ext.woff2";
|
|
96
|
+
|
|
97
|
+
// src/assets/fonts/lato-italic-100-latin.woff2
|
|
98
|
+
var lato_italic_100_latin_default = "./assets/fonts/lato-italic-100-latin.woff2";
|
|
99
|
+
|
|
100
|
+
// src/assets/fonts/lato-italic-300-latin-ext.woff2
|
|
101
|
+
var lato_italic_300_latin_ext_default = "./assets/fonts/lato-italic-300-latin-ext.woff2";
|
|
102
|
+
|
|
103
|
+
// src/assets/fonts/lato-italic-300-latin.woff2
|
|
104
|
+
var lato_italic_300_latin_default = "./assets/fonts/lato-italic-300-latin.woff2";
|
|
105
|
+
|
|
106
|
+
// src/assets/fonts/lato-italic-400-latin-ext.woff2
|
|
107
|
+
var lato_italic_400_latin_ext_default = "./assets/fonts/lato-italic-400-latin-ext.woff2";
|
|
108
|
+
|
|
109
|
+
// src/assets/fonts/lato-italic-400-latin.woff2
|
|
110
|
+
var lato_italic_400_latin_default = "./assets/fonts/lato-italic-400-latin.woff2";
|
|
111
|
+
|
|
112
|
+
// src/assets/fonts/lato-italic-700-latin-ext.woff2
|
|
113
|
+
var lato_italic_700_latin_ext_default = "./assets/fonts/lato-italic-700-latin-ext.woff2";
|
|
114
|
+
|
|
115
|
+
// src/assets/fonts/lato-italic-700-latin.woff2
|
|
116
|
+
var lato_italic_700_latin_default = "./assets/fonts/lato-italic-700-latin.woff2";
|
|
117
|
+
|
|
118
|
+
// src/assets/fonts/lato-italic-900-latin-ext.woff2
|
|
119
|
+
var lato_italic_900_latin_ext_default = "./assets/fonts/lato-italic-900-latin-ext.woff2";
|
|
120
|
+
|
|
121
|
+
// src/assets/fonts/lato-italic-900-latin.woff2
|
|
122
|
+
var lato_italic_900_latin_default = "./assets/fonts/lato-italic-900-latin.woff2";
|
|
123
|
+
|
|
124
|
+
// src/assets/fonts/lato-normal-100-latin-ext.woff2
|
|
125
|
+
var lato_normal_100_latin_ext_default = "./assets/fonts/lato-normal-100-latin-ext.woff2";
|
|
126
|
+
|
|
127
|
+
// src/assets/fonts/lato-normal-100-latin.woff2
|
|
128
|
+
var lato_normal_100_latin_default = "./assets/fonts/lato-normal-100-latin.woff2";
|
|
129
|
+
|
|
130
|
+
// src/assets/fonts/lato-normal-300-latin-ext.woff2
|
|
131
|
+
var lato_normal_300_latin_ext_default = "./assets/fonts/lato-normal-300-latin-ext.woff2";
|
|
132
|
+
|
|
133
|
+
// src/assets/fonts/lato-normal-300-latin.woff2
|
|
134
|
+
var lato_normal_300_latin_default = "./assets/fonts/lato-normal-300-latin.woff2";
|
|
135
|
+
|
|
136
|
+
// src/assets/fonts/lato-normal-400-latin-ext.woff2
|
|
137
|
+
var lato_normal_400_latin_ext_default = "./assets/fonts/lato-normal-400-latin-ext.woff2";
|
|
138
|
+
|
|
139
|
+
// src/assets/fonts/lato-normal-400-latin.woff2
|
|
140
|
+
var lato_normal_400_latin_default = "./assets/fonts/lato-normal-400-latin.woff2";
|
|
141
|
+
|
|
142
|
+
// src/assets/fonts/lato-normal-700-latin-ext.woff2
|
|
143
|
+
var lato_normal_700_latin_ext_default = "./assets/fonts/lato-normal-700-latin-ext.woff2";
|
|
144
|
+
|
|
145
|
+
// src/assets/fonts/lato-normal-700-latin.woff2
|
|
146
|
+
var lato_normal_700_latin_default = "./assets/fonts/lato-normal-700-latin.woff2";
|
|
147
|
+
|
|
148
|
+
// src/assets/fonts/lato-normal-900-latin-ext.woff2
|
|
149
|
+
var lato_normal_900_latin_ext_default = "./assets/fonts/lato-normal-900-latin-ext.woff2";
|
|
150
|
+
|
|
151
|
+
// src/assets/fonts/lato-normal-900-latin.woff2
|
|
152
|
+
var lato_normal_900_latin_default = "./assets/fonts/lato-normal-900-latin.woff2";
|
|
153
|
+
|
|
154
|
+
// src/assets/fonts/pacifico-cyrillic-ext.woff2
|
|
155
|
+
var pacifico_cyrillic_ext_default = "./assets/fonts/pacifico-cyrillic-ext.woff2";
|
|
156
|
+
|
|
157
|
+
// src/assets/fonts/pacifico-cyrillic.woff2
|
|
158
|
+
var pacifico_cyrillic_default = "./assets/fonts/pacifico-cyrillic.woff2";
|
|
159
|
+
|
|
160
|
+
// src/assets/fonts/pacifico-latin-ext.woff2
|
|
161
|
+
var pacifico_latin_ext_default = "./assets/fonts/pacifico-latin-ext.woff2";
|
|
162
|
+
|
|
163
|
+
// src/assets/fonts/pacifico-latin.woff2
|
|
164
|
+
var pacifico_latin_default = "./assets/fonts/pacifico-latin.woff2";
|
|
165
|
+
|
|
166
|
+
// src/assets/fonts/pacifico-vietnamese.woff2
|
|
167
|
+
var pacifico_vietnamese_default = "./assets/fonts/pacifico-vietnamese.woff2";
|
|
168
|
+
|
|
169
|
+
// src/assets/fonts/index.ts
|
|
170
|
+
var assets = {
|
|
171
|
+
Allura: {
|
|
172
|
+
alluraLatinExt: allura_latin_ext_default,
|
|
173
|
+
alluraLatin: allura_latin_default,
|
|
174
|
+
alluraVietnamese: allura_vietnamese_default
|
|
175
|
+
},
|
|
176
|
+
GreatVibes: {
|
|
177
|
+
greatVibesCyrillicExt: great_vibes_cyrillic_ext_default,
|
|
178
|
+
greatVibesCyrillic: great_vibes_cyrillic_default,
|
|
179
|
+
greatVibesGreekExt: great_vibes_greek_ext_default,
|
|
180
|
+
greatVibesLatinExt: great_vibes_latin_ext_default,
|
|
181
|
+
greatVibesLatin: great_vibes_latin_default,
|
|
182
|
+
greatVibesVietnamese: great_vibes_vietnamese_default
|
|
183
|
+
},
|
|
184
|
+
Pacifico: {
|
|
185
|
+
pacificoCyrillicExt: pacifico_cyrillic_ext_default,
|
|
186
|
+
pacificoCyrillic: pacifico_cyrillic_default,
|
|
187
|
+
pacificoLatinExt: pacifico_latin_ext_default,
|
|
188
|
+
pacificoLatin: pacifico_latin_default,
|
|
189
|
+
pacificoVietnamese: pacifico_vietnamese_default
|
|
190
|
+
},
|
|
191
|
+
Lato: {
|
|
192
|
+
latoItalic100LatinExt: lato_italic_100_latin_ext_default,
|
|
193
|
+
latoItalic100Latin: lato_italic_100_latin_default,
|
|
194
|
+
latoItalic300LatinExt: lato_italic_300_latin_ext_default,
|
|
195
|
+
latoItalic300Latin: lato_italic_300_latin_default,
|
|
196
|
+
latoItalic400LatinExt: lato_italic_400_latin_ext_default,
|
|
197
|
+
latoItalic400Latin: lato_italic_400_latin_default,
|
|
198
|
+
latoItalic700LatinExt: lato_italic_700_latin_ext_default,
|
|
199
|
+
latoItalic700Latin: lato_italic_700_latin_default,
|
|
200
|
+
latoItalic900LatinExt: lato_italic_900_latin_ext_default,
|
|
201
|
+
latoItalic900Latin: lato_italic_900_latin_default,
|
|
202
|
+
latoNormal100LatinExt: lato_normal_100_latin_ext_default,
|
|
203
|
+
latoNormal100Latin: lato_normal_100_latin_default,
|
|
204
|
+
latoNormal300LatinExt: lato_normal_300_latin_ext_default,
|
|
205
|
+
latoNormal300Latin: lato_normal_300_latin_default,
|
|
206
|
+
latoNormal400LatinExt: lato_normal_400_latin_ext_default,
|
|
207
|
+
latoNormal400Latin: lato_normal_400_latin_default,
|
|
208
|
+
latoNormal700LatinExt: lato_normal_700_latin_ext_default,
|
|
209
|
+
latoNormal700Latin: lato_normal_700_latin_default,
|
|
210
|
+
latoNormal900LatinExt: lato_normal_900_latin_ext_default,
|
|
211
|
+
latoNormal900Latin: lato_normal_900_latin_default
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
var fonts = {
|
|
215
|
+
Allura: '"Allura", cursive',
|
|
216
|
+
GreatVibes: '"Great Vibes", cursive',
|
|
217
|
+
Pacifico: '"Pacifico", cursive',
|
|
218
|
+
Lato: '"Lato", sans-serif'
|
|
219
|
+
};
|
|
220
|
+
var fonts_default = fonts;
|
|
221
|
+
|
|
76
222
|
// src/theme/constants.ts
|
|
77
223
|
var colors = {
|
|
78
224
|
black: "#000000",
|
|
@@ -141,44 +287,55 @@ var spacings = {
|
|
|
141
287
|
s5: "28px",
|
|
142
288
|
s6: "35px"
|
|
143
289
|
};
|
|
144
|
-
var fonts = {
|
|
145
|
-
lato: '"Lato", sans-serif'
|
|
146
|
-
};
|
|
147
290
|
var typographies = {
|
|
148
291
|
h1: {
|
|
149
|
-
fontFamily:
|
|
292
|
+
fontFamily: "Lato",
|
|
150
293
|
fontWeight: "bold",
|
|
151
|
-
fontSize: "18px"
|
|
294
|
+
fontSize: "18px",
|
|
295
|
+
lineHeight: "22px",
|
|
296
|
+
letterSpacing: "0px"
|
|
152
297
|
},
|
|
153
298
|
h2: {
|
|
154
|
-
fontFamily:
|
|
299
|
+
fontFamily: "Lato",
|
|
155
300
|
fontWeight: "bold",
|
|
156
|
-
fontSize: "16px"
|
|
301
|
+
fontSize: "16px",
|
|
302
|
+
lineHeight: "19px",
|
|
303
|
+
letterSpacing: "0px"
|
|
157
304
|
},
|
|
158
305
|
h3: {
|
|
159
|
-
fontFamily:
|
|
306
|
+
fontFamily: "Lato",
|
|
160
307
|
fontWeight: "normal",
|
|
161
|
-
fontSize: "16px"
|
|
308
|
+
fontSize: "16px",
|
|
309
|
+
lineHeight: "19px",
|
|
310
|
+
letterSpacing: "0px"
|
|
162
311
|
},
|
|
163
312
|
h4: {
|
|
164
|
-
fontFamily:
|
|
313
|
+
fontFamily: "Lato",
|
|
165
314
|
fontWeight: "bold",
|
|
166
|
-
fontSize: "14px"
|
|
315
|
+
fontSize: "14px",
|
|
316
|
+
lineHeight: "17px",
|
|
317
|
+
letterSpacing: "0px"
|
|
167
318
|
},
|
|
168
319
|
h5: {
|
|
169
|
-
fontFamily:
|
|
320
|
+
fontFamily: "Lato",
|
|
170
321
|
fontWeight: "normal",
|
|
171
|
-
fontSize: "14px"
|
|
322
|
+
fontSize: "14px",
|
|
323
|
+
lineHeight: "17px",
|
|
324
|
+
letterSpacing: "0px"
|
|
172
325
|
},
|
|
173
326
|
h6: {
|
|
174
|
-
fontFamily:
|
|
327
|
+
fontFamily: "Lato",
|
|
175
328
|
fontWeight: "normal",
|
|
176
|
-
fontSize: "13px"
|
|
329
|
+
fontSize: "13px",
|
|
330
|
+
lineHeight: "16px",
|
|
331
|
+
letterSpacing: "0px"
|
|
177
332
|
},
|
|
178
333
|
p: {
|
|
179
|
-
fontFamily:
|
|
334
|
+
fontFamily: "Lato",
|
|
180
335
|
fontWeight: "normal",
|
|
181
|
-
fontSize: "14px"
|
|
336
|
+
fontSize: "14px",
|
|
337
|
+
lineHeight: "17px",
|
|
338
|
+
letterSpacing: "0px"
|
|
182
339
|
}
|
|
183
340
|
};
|
|
184
341
|
|
|
@@ -935,7 +1092,7 @@ var import_styled_components4 = __toESM(require("styled-components"));
|
|
|
935
1092
|
var Button = import_styled_components4.default.button`
|
|
936
1093
|
padding: 0
|
|
937
1094
|
${({ theme: theme4, $appearance: appearance }) => appearance === "link" ? 0 : theme4.spacings.s3};
|
|
938
|
-
font-family:
|
|
1095
|
+
font-family: ${({ theme: theme4 }) => theme4.fonts.Lato};
|
|
939
1096
|
font-weight: ${({ $appearance: appearance }) => appearance === "link" ? "normal" : "bold"};
|
|
940
1097
|
border-radius: 4px;
|
|
941
1098
|
position: relative;
|
|
@@ -1064,10 +1221,10 @@ var Button2 = (props) => {
|
|
|
1064
1221
|
var Button_default = Button2;
|
|
1065
1222
|
|
|
1066
1223
|
// src/components/Calendar/index.tsx
|
|
1067
|
-
var
|
|
1224
|
+
var import_react19 = __toESM(require("react"));
|
|
1068
1225
|
|
|
1069
1226
|
// src/components/Calendar/components/Basic/index.tsx
|
|
1070
|
-
var
|
|
1227
|
+
var import_react10 = __toESM(require("react"));
|
|
1071
1228
|
|
|
1072
1229
|
// src/components/Calendar/constants.ts
|
|
1073
1230
|
var months = [
|
|
@@ -1091,7 +1248,7 @@ var inputTimeWidth = {
|
|
|
1091
1248
|
};
|
|
1092
1249
|
|
|
1093
1250
|
// src/components/Calendar/components/Basic/components/Main/index.tsx
|
|
1094
|
-
var
|
|
1251
|
+
var import_react9 = __toESM(require("react"));
|
|
1095
1252
|
|
|
1096
1253
|
// src/hooks/onClickOut.ts
|
|
1097
1254
|
var import_react3 = require("react");
|
|
@@ -1116,38 +1273,19 @@ var useOnClickOut = (callback) => {
|
|
|
1116
1273
|
var onClickOut_default = useOnClickOut;
|
|
1117
1274
|
|
|
1118
1275
|
// src/theme/index.tsx
|
|
1276
|
+
var import_react5 = require("react");
|
|
1119
1277
|
var import_styled_components6 = require("styled-components");
|
|
1120
1278
|
|
|
1121
|
-
// src/components/Button/theme.ts
|
|
1122
|
-
var theme = {
|
|
1123
|
-
sizes
|
|
1124
|
-
};
|
|
1125
|
-
var theme_default = theme;
|
|
1126
|
-
|
|
1127
|
-
// src/components/theme.ts
|
|
1128
|
-
var theme2 = {
|
|
1129
|
-
button: theme_default
|
|
1130
|
-
};
|
|
1131
|
-
var theme_default2 = theme2;
|
|
1132
|
-
|
|
1133
|
-
// src/theme/globals.tsx
|
|
1134
|
-
var import_react4 = __toESM(require("react"));
|
|
1135
|
-
var import_styled_components5 = require("styled-components");
|
|
1136
|
-
|
|
1137
1279
|
// src/assets/helpers.ts
|
|
1138
|
-
var
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
}
|
|
1148
|
-
return "http://localhost/";
|
|
1149
|
-
})();
|
|
1150
|
-
var assetUrl = (asset) => new URL(asset, moduleUrlBase).toString();
|
|
1280
|
+
var assetUrl = (asset, assetBaseUrl) => {
|
|
1281
|
+
const base = assetBaseUrl.endsWith("/") ? assetBaseUrl : `${assetBaseUrl}/`;
|
|
1282
|
+
let normalizedAsset = asset;
|
|
1283
|
+
while (normalizedAsset.startsWith("/") || normalizedAsset.startsWith(".")) {
|
|
1284
|
+
normalizedAsset = normalizedAsset.slice(1);
|
|
1285
|
+
}
|
|
1286
|
+
normalizedAsset = normalizedAsset.startsWith("assets/") ? normalizedAsset.slice(7) : normalizedAsset;
|
|
1287
|
+
return `${base}${normalizedAsset}`;
|
|
1288
|
+
};
|
|
1151
1289
|
var ensureFontLoaded = async (fontFamily, fontSize = 64, text = " ") => {
|
|
1152
1290
|
if (typeof document === "undefined" || !document.fonts) {
|
|
1153
1291
|
return false;
|
|
@@ -1171,74 +1309,30 @@ var ensureFontLoaded = async (fontFamily, fontSize = 64, text = " ") => {
|
|
|
1171
1309
|
return false;
|
|
1172
1310
|
};
|
|
1173
1311
|
|
|
1174
|
-
// src/
|
|
1175
|
-
var
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
var
|
|
1179
|
-
|
|
1180
|
-
// src/assets/fonts/allura-vietnamese.woff2
|
|
1181
|
-
var allura_vietnamese_default = "./assets/fonts/allura-vietnamese.woff2";
|
|
1182
|
-
|
|
1183
|
-
// src/assets/fonts/great-vibes-cyrillic-ext.woff2
|
|
1184
|
-
var great_vibes_cyrillic_ext_default = "./assets/fonts/great-vibes-cyrillic-ext.woff2";
|
|
1185
|
-
|
|
1186
|
-
// src/assets/fonts/great-vibes-cyrillic.woff2
|
|
1187
|
-
var great_vibes_cyrillic_default = "./assets/fonts/great-vibes-cyrillic.woff2";
|
|
1188
|
-
|
|
1189
|
-
// src/assets/fonts/great-vibes-greek-ext.woff2
|
|
1190
|
-
var great_vibes_greek_ext_default = "./assets/fonts/great-vibes-greek-ext.woff2";
|
|
1191
|
-
|
|
1192
|
-
// src/assets/fonts/great-vibes-latin-ext.woff2
|
|
1193
|
-
var great_vibes_latin_ext_default = "./assets/fonts/great-vibes-latin-ext.woff2";
|
|
1194
|
-
|
|
1195
|
-
// src/assets/fonts/great-vibes-latin.woff2
|
|
1196
|
-
var great_vibes_latin_default = "./assets/fonts/great-vibes-latin.woff2";
|
|
1197
|
-
|
|
1198
|
-
// src/assets/fonts/great-vibes-vietnamese.woff2
|
|
1199
|
-
var great_vibes_vietnamese_default = "./assets/fonts/great-vibes-vietnamese.woff2";
|
|
1200
|
-
|
|
1201
|
-
// src/assets/fonts/pacifico-cyrillic-ext.woff2
|
|
1202
|
-
var pacifico_cyrillic_ext_default = "./assets/fonts/pacifico-cyrillic-ext.woff2";
|
|
1203
|
-
|
|
1204
|
-
// src/assets/fonts/pacifico-cyrillic.woff2
|
|
1205
|
-
var pacifico_cyrillic_default = "./assets/fonts/pacifico-cyrillic.woff2";
|
|
1206
|
-
|
|
1207
|
-
// src/assets/fonts/pacifico-latin-ext.woff2
|
|
1208
|
-
var pacifico_latin_ext_default = "./assets/fonts/pacifico-latin-ext.woff2";
|
|
1209
|
-
|
|
1210
|
-
// src/assets/fonts/pacifico-latin.woff2
|
|
1211
|
-
var pacifico_latin_default = "./assets/fonts/pacifico-latin.woff2";
|
|
1212
|
-
|
|
1213
|
-
// src/assets/fonts/pacifico-vietnamese.woff2
|
|
1214
|
-
var pacifico_vietnamese_default = "./assets/fonts/pacifico-vietnamese.woff2";
|
|
1312
|
+
// src/components/Button/theme.ts
|
|
1313
|
+
var theme = {
|
|
1314
|
+
sizes
|
|
1315
|
+
};
|
|
1316
|
+
var theme_default = theme;
|
|
1215
1317
|
|
|
1216
|
-
// src/
|
|
1217
|
-
var
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
var
|
|
1221
|
-
var greatVibesCyrillic = assetUrl(great_vibes_cyrillic_default);
|
|
1222
|
-
var greatVibesGreekExt = assetUrl(great_vibes_greek_ext_default);
|
|
1223
|
-
var greatVibesLatinExt = assetUrl(great_vibes_latin_ext_default);
|
|
1224
|
-
var greatVibesLatin = assetUrl(great_vibes_latin_default);
|
|
1225
|
-
var greatVibesVietnamese = assetUrl(great_vibes_vietnamese_default);
|
|
1226
|
-
var pacificoCyrillicExt = assetUrl(pacifico_cyrillic_ext_default);
|
|
1227
|
-
var pacificoCyrillic = assetUrl(pacifico_cyrillic_default);
|
|
1228
|
-
var pacificoLatinExt = assetUrl(pacifico_latin_ext_default);
|
|
1229
|
-
var pacificoLatin = assetUrl(pacifico_latin_default);
|
|
1230
|
-
var pacificoVietnamese = assetUrl(pacifico_vietnamese_default);
|
|
1318
|
+
// src/components/theme.ts
|
|
1319
|
+
var theme2 = {
|
|
1320
|
+
button: theme_default
|
|
1321
|
+
};
|
|
1322
|
+
var theme_default2 = theme2;
|
|
1231
1323
|
|
|
1232
1324
|
// src/theme/globals.tsx
|
|
1325
|
+
var import_react4 = __toESM(require("react"));
|
|
1326
|
+
var import_styled_components5 = require("styled-components");
|
|
1233
1327
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1234
|
-
var
|
|
1328
|
+
var Allura = import_styled_components5.createGlobalStyle`
|
|
1235
1329
|
/* vietnamese */
|
|
1236
1330
|
@font-face {
|
|
1237
1331
|
font-family: 'Allura';
|
|
1238
1332
|
font-style: normal;
|
|
1239
1333
|
font-weight: 400;
|
|
1240
1334
|
font-display: block;
|
|
1241
|
-
src: url(${alluraVietnamese}) format('woff2');
|
|
1335
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Allura.alluraVietnamese)})`} format('woff2');
|
|
1242
1336
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
1243
1337
|
}
|
|
1244
1338
|
/* latin-ext */
|
|
@@ -1247,7 +1341,7 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1247
1341
|
font-style: normal;
|
|
1248
1342
|
font-weight: 400;
|
|
1249
1343
|
font-display: block;
|
|
1250
|
-
src: url(${alluraLatinExt}) format('woff2');
|
|
1344
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Allura.alluraLatinExt)})`} format('woff2');
|
|
1251
1345
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1252
1346
|
}
|
|
1253
1347
|
/* latin */
|
|
@@ -1256,16 +1350,20 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1256
1350
|
font-style: normal;
|
|
1257
1351
|
font-weight: 400;
|
|
1258
1352
|
font-display: block;
|
|
1259
|
-
src: url(${alluraLatin}) format('woff2');
|
|
1353
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Allura.alluraLatin)})`} format('woff2');
|
|
1260
1354
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1261
1355
|
}
|
|
1356
|
+
`;
|
|
1357
|
+
var GreatVibes = import_styled_components5.createGlobalStyle`
|
|
1262
1358
|
/* cyrillic-ext */
|
|
1263
1359
|
@font-face {
|
|
1264
1360
|
font-family: 'Great Vibes';
|
|
1265
1361
|
font-style: normal;
|
|
1266
1362
|
font-weight: 400;
|
|
1267
1363
|
font-display: block;
|
|
1268
|
-
src:
|
|
1364
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1365
|
+
assets.GreatVibes.greatVibesCyrillicExt
|
|
1366
|
+
)})`} format('woff2');
|
|
1269
1367
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
1270
1368
|
}
|
|
1271
1369
|
/* cyrillic */
|
|
@@ -1274,7 +1372,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1274
1372
|
font-style: normal;
|
|
1275
1373
|
font-weight: 400;
|
|
1276
1374
|
font-display: block;
|
|
1277
|
-
src:
|
|
1375
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1376
|
+
assets.GreatVibes.greatVibesCyrillic
|
|
1377
|
+
)})`} format('woff2');
|
|
1278
1378
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
1279
1379
|
}
|
|
1280
1380
|
/* greek-ext */
|
|
@@ -1283,7 +1383,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1283
1383
|
font-style: normal;
|
|
1284
1384
|
font-weight: 400;
|
|
1285
1385
|
font-display: block;
|
|
1286
|
-
src:
|
|
1386
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1387
|
+
assets.GreatVibes.greatVibesGreekExt
|
|
1388
|
+
)})`} format('woff2');
|
|
1287
1389
|
unicode-range: U+1F00-1FFF;
|
|
1288
1390
|
}
|
|
1289
1391
|
/* vietnamese */
|
|
@@ -1292,7 +1394,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1292
1394
|
font-style: normal;
|
|
1293
1395
|
font-weight: 400;
|
|
1294
1396
|
font-display: block;
|
|
1295
|
-
src:
|
|
1397
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1398
|
+
assets.GreatVibes.greatVibesVietnamese
|
|
1399
|
+
)})`} format('woff2');
|
|
1296
1400
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
1297
1401
|
}
|
|
1298
1402
|
/* latin-ext */
|
|
@@ -1301,7 +1405,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1301
1405
|
font-style: normal;
|
|
1302
1406
|
font-weight: 400;
|
|
1303
1407
|
font-display: block;
|
|
1304
|
-
src:
|
|
1408
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1409
|
+
assets.GreatVibes.greatVibesLatinExt
|
|
1410
|
+
)})`} format('woff2');
|
|
1305
1411
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1306
1412
|
}
|
|
1307
1413
|
/* latin */
|
|
@@ -1310,16 +1416,22 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1310
1416
|
font-style: normal;
|
|
1311
1417
|
font-weight: 400;
|
|
1312
1418
|
font-display: block;
|
|
1313
|
-
src:
|
|
1419
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1420
|
+
assets.GreatVibes.greatVibesLatin
|
|
1421
|
+
)})`} format('woff2');
|
|
1314
1422
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1315
1423
|
}
|
|
1424
|
+
`;
|
|
1425
|
+
var Pacifico = import_styled_components5.createGlobalStyle`
|
|
1316
1426
|
/* cyrillic-ext */
|
|
1317
1427
|
@font-face {
|
|
1318
1428
|
font-family: 'Pacifico';
|
|
1319
1429
|
font-style: normal;
|
|
1320
1430
|
font-weight: 400;
|
|
1321
1431
|
font-display: block;
|
|
1322
|
-
src:
|
|
1432
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1433
|
+
assets.Pacifico.pacificoCyrillicExt
|
|
1434
|
+
)})`} format('woff2');
|
|
1323
1435
|
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
1324
1436
|
}
|
|
1325
1437
|
/* cyrillic */
|
|
@@ -1328,7 +1440,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1328
1440
|
font-style: normal;
|
|
1329
1441
|
font-weight: 400;
|
|
1330
1442
|
font-display: block;
|
|
1331
|
-
src:
|
|
1443
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1444
|
+
assets.Pacifico.pacificoCyrillic
|
|
1445
|
+
)})`} format('woff2');
|
|
1332
1446
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
1333
1447
|
}
|
|
1334
1448
|
/* vietnamese */
|
|
@@ -1337,7 +1451,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1337
1451
|
font-style: normal;
|
|
1338
1452
|
font-weight: 400;
|
|
1339
1453
|
font-display: block;
|
|
1340
|
-
src:
|
|
1454
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1455
|
+
assets.Pacifico.pacificoVietnamese
|
|
1456
|
+
)})`} format('woff2');
|
|
1341
1457
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
1342
1458
|
}
|
|
1343
1459
|
/* latin-ext */
|
|
@@ -1346,7 +1462,9 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1346
1462
|
font-style: normal;
|
|
1347
1463
|
font-weight: 400;
|
|
1348
1464
|
font-display: block;
|
|
1349
|
-
src:
|
|
1465
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1466
|
+
assets.Pacifico.pacificoLatinExt
|
|
1467
|
+
)})`} format('woff2');
|
|
1350
1468
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1351
1469
|
}
|
|
1352
1470
|
/* latin */
|
|
@@ -1355,12 +1473,219 @@ var FontStyles = import_styled_components5.createGlobalStyle`
|
|
|
1355
1473
|
font-style: normal;
|
|
1356
1474
|
font-weight: 400;
|
|
1357
1475
|
font-display: block;
|
|
1358
|
-
src: url(${pacificoLatin}) format('woff2');
|
|
1476
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Pacifico.pacificoLatin)})`} format('woff2');
|
|
1477
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1478
|
+
}
|
|
1479
|
+
`;
|
|
1480
|
+
var Lato = import_styled_components5.createGlobalStyle`
|
|
1481
|
+
/* latin-ext */
|
|
1482
|
+
@font-face {
|
|
1483
|
+
font-family: 'Lato';
|
|
1484
|
+
font-style: italic;
|
|
1485
|
+
font-weight: 100;
|
|
1486
|
+
font-display: swap;
|
|
1487
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1488
|
+
assets.Lato.latoItalic100LatinExt
|
|
1489
|
+
)})`} format('woff2');
|
|
1490
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1491
|
+
}
|
|
1492
|
+
/* latin */
|
|
1493
|
+
@font-face {
|
|
1494
|
+
font-family: 'Lato';
|
|
1495
|
+
font-style: italic;
|
|
1496
|
+
font-weight: 100;
|
|
1497
|
+
font-display: swap;
|
|
1498
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoItalic100Latin)})`} format('woff2');
|
|
1499
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1500
|
+
}
|
|
1501
|
+
/* latin-ext */
|
|
1502
|
+
@font-face {
|
|
1503
|
+
font-family: 'Lato';
|
|
1504
|
+
font-style: italic;
|
|
1505
|
+
font-weight: 300;
|
|
1506
|
+
font-display: swap;
|
|
1507
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1508
|
+
assets.Lato.latoItalic300LatinExt
|
|
1509
|
+
)})`} format('woff2');
|
|
1510
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1511
|
+
}
|
|
1512
|
+
/* latin */
|
|
1513
|
+
@font-face {
|
|
1514
|
+
font-family: 'Lato';
|
|
1515
|
+
font-style: italic;
|
|
1516
|
+
font-weight: 300;
|
|
1517
|
+
font-display: swap;
|
|
1518
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoItalic300Latin)})`} format('woff2');
|
|
1519
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1520
|
+
}
|
|
1521
|
+
/* latin-ext */
|
|
1522
|
+
@font-face {
|
|
1523
|
+
font-family: 'Lato';
|
|
1524
|
+
font-style: italic;
|
|
1525
|
+
font-weight: 400;
|
|
1526
|
+
font-display: swap;
|
|
1527
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1528
|
+
assets.Lato.latoItalic400LatinExt
|
|
1529
|
+
)})`} format('woff2');
|
|
1530
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1531
|
+
}
|
|
1532
|
+
/* latin */
|
|
1533
|
+
@font-face {
|
|
1534
|
+
font-family: 'Lato';
|
|
1535
|
+
font-style: italic;
|
|
1536
|
+
font-weight: 400;
|
|
1537
|
+
font-display: swap;
|
|
1538
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoItalic400Latin)})`} format('woff2');
|
|
1539
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1540
|
+
}
|
|
1541
|
+
/* latin-ext */
|
|
1542
|
+
@font-face {
|
|
1543
|
+
font-family: 'Lato';
|
|
1544
|
+
font-style: italic;
|
|
1545
|
+
font-weight: 700;
|
|
1546
|
+
font-display: swap;
|
|
1547
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1548
|
+
assets.Lato.latoItalic700LatinExt
|
|
1549
|
+
)})`} format('woff2');
|
|
1550
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1551
|
+
}
|
|
1552
|
+
/* latin */
|
|
1553
|
+
@font-face {
|
|
1554
|
+
font-family: 'Lato';
|
|
1555
|
+
font-style: italic;
|
|
1556
|
+
font-weight: 700;
|
|
1557
|
+
font-display: swap;
|
|
1558
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoItalic700Latin)})`} format('woff2');
|
|
1559
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1560
|
+
}
|
|
1561
|
+
/* latin-ext */
|
|
1562
|
+
@font-face {
|
|
1563
|
+
font-family: 'Lato';
|
|
1564
|
+
font-style: italic;
|
|
1565
|
+
font-weight: 900;
|
|
1566
|
+
font-display: swap;
|
|
1567
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1568
|
+
assets.Lato.latoItalic900LatinExt
|
|
1569
|
+
)})`} format('woff2');
|
|
1570
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1571
|
+
}
|
|
1572
|
+
/* latin */
|
|
1573
|
+
@font-face {
|
|
1574
|
+
font-family: 'Lato';
|
|
1575
|
+
font-style: italic;
|
|
1576
|
+
font-weight: 900;
|
|
1577
|
+
font-display: swap;
|
|
1578
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoItalic900Latin)})`} format('woff2');
|
|
1579
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1580
|
+
}
|
|
1581
|
+
/* latin-ext */
|
|
1582
|
+
@font-face {
|
|
1583
|
+
font-family: 'Lato';
|
|
1584
|
+
font-style: normal;
|
|
1585
|
+
font-weight: 100;
|
|
1586
|
+
font-display: swap;
|
|
1587
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1588
|
+
assets.Lato.latoNormal100LatinExt
|
|
1589
|
+
)})`} format('woff2');
|
|
1590
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1591
|
+
}
|
|
1592
|
+
/* latin */
|
|
1593
|
+
@font-face {
|
|
1594
|
+
font-family: 'Lato';
|
|
1595
|
+
font-style: normal;
|
|
1596
|
+
font-weight: 100;
|
|
1597
|
+
font-display: swap;
|
|
1598
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoNormal100Latin)})`} format('woff2');
|
|
1599
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1600
|
+
}
|
|
1601
|
+
/* latin-ext */
|
|
1602
|
+
@font-face {
|
|
1603
|
+
font-family: 'Lato';
|
|
1604
|
+
font-style: normal;
|
|
1605
|
+
font-weight: 300;
|
|
1606
|
+
font-display: swap;
|
|
1607
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1608
|
+
assets.Lato.latoNormal300LatinExt
|
|
1609
|
+
)})`} format('woff2');
|
|
1610
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1611
|
+
}
|
|
1612
|
+
/* latin */
|
|
1613
|
+
@font-face {
|
|
1614
|
+
font-family: 'Lato';
|
|
1615
|
+
font-style: normal;
|
|
1616
|
+
font-weight: 300;
|
|
1617
|
+
font-display: swap;
|
|
1618
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoNormal300Latin)})`} format('woff2');
|
|
1619
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1620
|
+
}
|
|
1621
|
+
/* latin-ext */
|
|
1622
|
+
@font-face {
|
|
1623
|
+
font-family: 'Lato';
|
|
1624
|
+
font-style: normal;
|
|
1625
|
+
font-weight: 400;
|
|
1626
|
+
font-display: swap;
|
|
1627
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1628
|
+
assets.Lato.latoNormal400LatinExt
|
|
1629
|
+
)})`} format('woff2');
|
|
1630
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1631
|
+
}
|
|
1632
|
+
/* latin */
|
|
1633
|
+
@font-face {
|
|
1634
|
+
font-family: 'Lato';
|
|
1635
|
+
font-style: normal;
|
|
1636
|
+
font-weight: 400;
|
|
1637
|
+
font-display: swap;
|
|
1638
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoNormal400Latin)})`} format('woff2');
|
|
1639
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1640
|
+
}
|
|
1641
|
+
/* latin-ext */
|
|
1642
|
+
@font-face {
|
|
1643
|
+
font-family: 'Lato';
|
|
1644
|
+
font-style: normal;
|
|
1645
|
+
font-weight: 700;
|
|
1646
|
+
font-display: swap;
|
|
1647
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1648
|
+
assets.Lato.latoNormal700LatinExt
|
|
1649
|
+
)})`} format('woff2');
|
|
1650
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1651
|
+
}
|
|
1652
|
+
/* latin */
|
|
1653
|
+
@font-face {
|
|
1654
|
+
font-family: 'Lato';
|
|
1655
|
+
font-style: normal;
|
|
1656
|
+
font-weight: 700;
|
|
1657
|
+
font-display: swap;
|
|
1658
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoNormal700Latin)})`} format('woff2');
|
|
1659
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1660
|
+
}
|
|
1661
|
+
/* latin-ext */
|
|
1662
|
+
@font-face {
|
|
1663
|
+
font-family: 'Lato';
|
|
1664
|
+
font-style: normal;
|
|
1665
|
+
font-weight: 900;
|
|
1666
|
+
font-display: swap;
|
|
1667
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(
|
|
1668
|
+
assets.Lato.latoNormal900LatinExt
|
|
1669
|
+
)})`} format('woff2');
|
|
1670
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
1671
|
+
}
|
|
1672
|
+
/* latin */
|
|
1673
|
+
@font-face {
|
|
1674
|
+
font-family: 'Lato';
|
|
1675
|
+
font-style: normal;
|
|
1676
|
+
font-weight: 900;
|
|
1677
|
+
font-display: swap;
|
|
1678
|
+
src: ${({ theme: theme4 }) => `url(${theme4.assetUrl(assets.Lato.latoNormal900Latin)})`} format('woff2');
|
|
1359
1679
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
1360
1680
|
}
|
|
1361
1681
|
`;
|
|
1362
1682
|
var Globals = () => {
|
|
1363
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
1683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react4.default.Fragment, { children: [
|
|
1684
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Allura, {}),
|
|
1685
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(GreatVibes, {}),
|
|
1686
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Pacifico, {}),
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Lato, {})
|
|
1688
|
+
] });
|
|
1364
1689
|
};
|
|
1365
1690
|
var globals_default = Globals;
|
|
1366
1691
|
|
|
@@ -1368,11 +1693,13 @@ var globals_default = Globals;
|
|
|
1368
1693
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1369
1694
|
var getColor = (color, opacity = 100) => `${colors[color]}${opacities[opacity]}`;
|
|
1370
1695
|
var useTypography = (typography, options = {}) => {
|
|
1371
|
-
const { fontFamily, fontWeight,
|
|
1696
|
+
const { fontFamily, fontSize, fontWeight, lineHeight, letterSpacing } = typographies[typography];
|
|
1372
1697
|
return import_styled_components6.css`
|
|
1373
1698
|
font-family: ${fontFamily};
|
|
1374
|
-
font-weight: ${options.fontWeight || fontWeight};
|
|
1375
1699
|
font-size: ${fontSize};
|
|
1700
|
+
font-weight: ${options.fontWeight || fontWeight};
|
|
1701
|
+
line-height: ${options.lineHeight || lineHeight};
|
|
1702
|
+
letter-spacing: ${options.letterSpacing || letterSpacing};
|
|
1376
1703
|
`;
|
|
1377
1704
|
};
|
|
1378
1705
|
var isDarkColor = (color, ifDark = "white", ifLight = "black") => {
|
|
@@ -1385,7 +1712,7 @@ var isDarkColor = (color, ifDark = "white", ifLight = "black") => {
|
|
|
1385
1712
|
};
|
|
1386
1713
|
var theme3 = {
|
|
1387
1714
|
colors,
|
|
1388
|
-
fonts,
|
|
1715
|
+
fonts: fonts_default,
|
|
1389
1716
|
spacings,
|
|
1390
1717
|
typographies,
|
|
1391
1718
|
getColor,
|
|
@@ -1394,7 +1721,13 @@ var theme3 = {
|
|
|
1394
1721
|
components: theme_default2
|
|
1395
1722
|
};
|
|
1396
1723
|
var ThemeProvider = (props) => {
|
|
1397
|
-
|
|
1724
|
+
const value = (0, import_react5.useMemo)(() => {
|
|
1725
|
+
return {
|
|
1726
|
+
...theme3,
|
|
1727
|
+
assetUrl: (asset) => assetUrl(asset, props.assetBaseUrl)
|
|
1728
|
+
};
|
|
1729
|
+
}, [props.assetBaseUrl]);
|
|
1730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_styled_components6.ThemeProvider, { theme: value, children: [
|
|
1398
1731
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(globals_default, {}),
|
|
1399
1732
|
props.children
|
|
1400
1733
|
] });
|
|
@@ -8415,14 +8748,14 @@ var getInitialCalendar = (date, min, max) => {
|
|
|
8415
8748
|
};
|
|
8416
8749
|
|
|
8417
8750
|
// src/components/Calendar/components/Basic/components/MonthPicker/index.tsx
|
|
8418
|
-
var
|
|
8751
|
+
var import_react8 = require("react");
|
|
8419
8752
|
|
|
8420
8753
|
// src/components/Menu/index.tsx
|
|
8421
|
-
var
|
|
8754
|
+
var import_react7 = __toESM(require("react"));
|
|
8422
8755
|
var import_semantic_ui_react2 = require("semantic-ui-react");
|
|
8423
8756
|
|
|
8424
8757
|
// src/components/ScrollContainer/index.tsx
|
|
8425
|
-
var
|
|
8758
|
+
var import_react6 = __toESM(require("react"));
|
|
8426
8759
|
|
|
8427
8760
|
// src/components/ScrollContainer/styles/BeforeAfterContainer/index.ts
|
|
8428
8761
|
var import_styled_components8 = __toESM(require("styled-components"));
|
|
@@ -8545,7 +8878,7 @@ var RelativeContainer_default = RelativeContainer;
|
|
|
8545
8878
|
// src/components/ScrollContainer/index.tsx
|
|
8546
8879
|
var import_jsx_runtime294 = require("react/jsx-runtime");
|
|
8547
8880
|
var isAfterBefore = (props) => {
|
|
8548
|
-
return !
|
|
8881
|
+
return !import_react6.default.isValidElement(props);
|
|
8549
8882
|
};
|
|
8550
8883
|
var getBeforeAfter = (props) => {
|
|
8551
8884
|
if (!props) return null;
|
|
@@ -8561,12 +8894,12 @@ var getBeforeAfter = (props) => {
|
|
|
8561
8894
|
);
|
|
8562
8895
|
return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(BeforeAfterContainer_default, { ...args });
|
|
8563
8896
|
};
|
|
8564
|
-
var ScrollContainer =
|
|
8897
|
+
var ScrollContainer = import_react6.default.forwardRef(
|
|
8565
8898
|
(props, ref) => {
|
|
8566
8899
|
const { loading } = props;
|
|
8567
8900
|
const onScrollEnd = props.onScrollEnd || (() => {
|
|
8568
8901
|
});
|
|
8569
|
-
const [, setLastPagination] = (0,
|
|
8902
|
+
const [, setLastPagination] = (0, import_react6.useState)(/* @__PURE__ */ new Date());
|
|
8570
8903
|
const onScroll = (event) => {
|
|
8571
8904
|
if (event.target !== event.currentTarget) return;
|
|
8572
8905
|
const target = event.nativeEvent.target;
|
|
@@ -8630,8 +8963,9 @@ var ScrollContainer_default = ScrollContainer;
|
|
|
8630
8963
|
// src/components/Menu/styles.ts
|
|
8631
8964
|
var import_styled_components12 = __toESM(require("styled-components"));
|
|
8632
8965
|
var Option = import_styled_components12.default.div`
|
|
8633
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
8634
|
-
|
|
8966
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
8967
|
+
lineHeight: theme4.spacings.s3
|
|
8968
|
+
})}
|
|
8635
8969
|
color: ${({ theme: theme4 }) => theme4.colors.darkBlue};
|
|
8636
8970
|
display: flex;
|
|
8637
8971
|
gap: ${({ theme: theme4 }) => theme4.spacings.s1};
|
|
@@ -8757,8 +9091,8 @@ var isVisible = (elem, bound) => {
|
|
|
8757
9091
|
};
|
|
8758
9092
|
var MenuComponent = (props, ref) => {
|
|
8759
9093
|
const { close, options, children, highlight } = { ...props };
|
|
8760
|
-
const [scrollRef, setScrollRef] = (0,
|
|
8761
|
-
(0,
|
|
9094
|
+
const [scrollRef, setScrollRef] = (0, import_react7.useState)(null);
|
|
9095
|
+
(0, import_react7.useEffect)(() => {
|
|
8762
9096
|
if (!scrollRef || highlight === void 0) return;
|
|
8763
9097
|
const element = scrollRef.children[highlight];
|
|
8764
9098
|
if (!element) return;
|
|
@@ -8789,7 +9123,7 @@ var MenuComponent = (props, ref) => {
|
|
|
8789
9123
|
$bordered: props.bordered,
|
|
8790
9124
|
$containerSpacing: props.containerSpacing,
|
|
8791
9125
|
$itemSpacing: props.itemSpacing,
|
|
8792
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
|
|
9126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(import_react7.default.Fragment, { children: [
|
|
8793
9127
|
/* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
|
|
8794
9128
|
ScrollContainer_default,
|
|
8795
9129
|
{
|
|
@@ -8849,8 +9183,8 @@ var MenuComponent = (props, ref) => {
|
|
|
8849
9183
|
const label = option.label;
|
|
8850
9184
|
const labelOptions = filterObject(option, ["onClick", "label", "rules"]);
|
|
8851
9185
|
labelOptions.disabled = disabled;
|
|
8852
|
-
const LabelComponent = typeof label === "function" ? label : () => /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
|
|
8853
|
-
return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
|
|
9186
|
+
const LabelComponent = typeof label === "function" ? label : () => /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(import_react7.default.Fragment, { children: label });
|
|
9187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(import_react7.default.Fragment, { children: [
|
|
8854
9188
|
/* @__PURE__ */ (0, import_jsx_runtime295.jsx)(OptionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
|
|
8855
9189
|
Option,
|
|
8856
9190
|
{
|
|
@@ -8874,7 +9208,7 @@ var MenuComponent = (props, ref) => {
|
|
|
8874
9208
|
}
|
|
8875
9209
|
);
|
|
8876
9210
|
};
|
|
8877
|
-
var Menu =
|
|
9211
|
+
var Menu = import_react7.default.forwardRef(MenuComponent);
|
|
8878
9212
|
var Menu_default2 = Menu;
|
|
8879
9213
|
|
|
8880
9214
|
// src/components/Calendar/components/Basic/styles.ts
|
|
@@ -8902,8 +9236,9 @@ var Container5 = import_styled_components13.default.div`
|
|
|
8902
9236
|
}};
|
|
8903
9237
|
`;
|
|
8904
9238
|
var LabelContainer = import_styled_components13.default.div`
|
|
8905
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
8906
|
-
|
|
9239
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
9240
|
+
lineHeight: theme4.spacings.s3
|
|
9241
|
+
})}
|
|
8907
9242
|
`;
|
|
8908
9243
|
var CalendarContainer = import_styled_components13.default.div`
|
|
8909
9244
|
border: 1px solid ${({ theme: theme4 }) => theme4.colors.lightestGrey};
|
|
@@ -8924,8 +9259,9 @@ var MonthContainer = import_styled_components13.default.div`
|
|
|
8924
9259
|
}
|
|
8925
9260
|
`;
|
|
8926
9261
|
var MonthName = import_styled_components13.default.div`
|
|
8927
|
-
${({ theme: theme4 }) => theme4.useTypography("h6"
|
|
8928
|
-
|
|
9262
|
+
${({ theme: theme4 }) => theme4.useTypography("h6", {
|
|
9263
|
+
lineHeight: theme4.spacings.s3
|
|
9264
|
+
})}
|
|
8929
9265
|
color: ${({ theme: theme4 }) => theme4.colors.darkBlue};
|
|
8930
9266
|
text-align: center;
|
|
8931
9267
|
`;
|
|
@@ -8943,8 +9279,9 @@ var MonthBtn = import_styled_components13.default.div`
|
|
|
8943
9279
|
}}
|
|
8944
9280
|
`;
|
|
8945
9281
|
var NavBtn = import_styled_components13.default.button`
|
|
8946
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
8947
|
-
|
|
9282
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
9283
|
+
lineHeight: theme4.spacings.s3
|
|
9284
|
+
})}
|
|
8948
9285
|
width: 21px;
|
|
8949
9286
|
height: 32px;
|
|
8950
9287
|
box-shadow: none;
|
|
@@ -8975,8 +9312,8 @@ var NavBtn = import_styled_components13.default.button`
|
|
|
8975
9312
|
var import_jsx_runtime296 = require("react/jsx-runtime");
|
|
8976
9313
|
var MonthPicker = (props) => {
|
|
8977
9314
|
const { setValue, close, min, max, year: initialYear, ...menuProps } = props;
|
|
8978
|
-
const [year, setYear] = (0,
|
|
8979
|
-
(0,
|
|
9315
|
+
const [year, setYear] = (0, import_react8.useState)(initialYear);
|
|
9316
|
+
(0, import_react8.useEffect)(() => {
|
|
8980
9317
|
setYear(initialYear);
|
|
8981
9318
|
}, [props.open, initialYear]);
|
|
8982
9319
|
return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
|
|
@@ -9128,8 +9465,9 @@ var WeekContainer = import_styled_components15.default.div`
|
|
|
9128
9465
|
}
|
|
9129
9466
|
|
|
9130
9467
|
> * {
|
|
9131
|
-
${({ theme: theme4 }) => theme4.useTypography("h6"
|
|
9132
|
-
|
|
9468
|
+
${({ theme: theme4 }) => theme4.useTypography("h6", {
|
|
9469
|
+
lineHeight: theme4.spacings.s3
|
|
9470
|
+
})}
|
|
9133
9471
|
width: 25px;
|
|
9134
9472
|
height: 25px;
|
|
9135
9473
|
|
|
@@ -9241,11 +9579,11 @@ var DayIndicator = (0, import_styled_components15.default)(Indicator_default).at
|
|
|
9241
9579
|
|
|
9242
9580
|
// src/components/Calendar/components/Basic/components/Main/index.tsx
|
|
9243
9581
|
var import_jsx_runtime298 = require("react/jsx-runtime");
|
|
9244
|
-
var Main =
|
|
9582
|
+
var Main = import_react9.default.forwardRef(
|
|
9245
9583
|
(props, ref) => {
|
|
9246
9584
|
const { getDay, initialMonth } = props;
|
|
9247
|
-
const [selectOpen, setSelectOpen] = (0,
|
|
9248
|
-
const [loading, setLoading] = (0,
|
|
9585
|
+
const [selectOpen, setSelectOpen] = (0, import_react9.useState)(false);
|
|
9586
|
+
const [loading, setLoading] = (0, import_react9.useState)(false);
|
|
9249
9587
|
const onChangeMonth = (() => {
|
|
9250
9588
|
const { onChangeMonth: onChangeMonth2 } = props;
|
|
9251
9589
|
if (!onChangeMonth2) return async () => {
|
|
@@ -9266,7 +9604,7 @@ var Main = import_react8.default.forwardRef(
|
|
|
9266
9604
|
date.setHours(0, 0, 0, 0);
|
|
9267
9605
|
return date;
|
|
9268
9606
|
})() : void 0;
|
|
9269
|
-
const [calendar, _setCalendar] = props.calendar || (0,
|
|
9607
|
+
const [calendar, _setCalendar] = props.calendar || (0, import_react9.useState)(getInitialCalendar(initialMonth, min, max));
|
|
9270
9608
|
const setCalendar = (value) => {
|
|
9271
9609
|
_setCalendar((prev) => {
|
|
9272
9610
|
const newv = typeof value === "function" ? value(prev) : value;
|
|
@@ -9274,7 +9612,7 @@ var Main = import_react8.default.forwardRef(
|
|
|
9274
9612
|
});
|
|
9275
9613
|
};
|
|
9276
9614
|
const isControlled = props.calendar !== void 0;
|
|
9277
|
-
(0,
|
|
9615
|
+
(0, import_react9.useEffect)(() => {
|
|
9278
9616
|
if (isControlled) return;
|
|
9279
9617
|
setCalendar(getInitialCalendar(initialMonth, min, max));
|
|
9280
9618
|
}, [
|
|
@@ -9283,7 +9621,7 @@ var Main = import_react8.default.forwardRef(
|
|
|
9283
9621
|
min?.toISOString(),
|
|
9284
9622
|
max?.toISOString()
|
|
9285
9623
|
]);
|
|
9286
|
-
(0,
|
|
9624
|
+
(0, import_react9.useEffect)(() => {
|
|
9287
9625
|
const [first, last] = [
|
|
9288
9626
|
calendar.weeks[0],
|
|
9289
9627
|
calendar.weeks[calendar.weeks.length - 1]
|
|
@@ -9444,7 +9782,7 @@ var Main_default = Main;
|
|
|
9444
9782
|
|
|
9445
9783
|
// src/components/Calendar/components/Basic/index.tsx
|
|
9446
9784
|
var import_jsx_runtime299 = require("react/jsx-runtime");
|
|
9447
|
-
var BasicCalendar =
|
|
9785
|
+
var BasicCalendar = import_react10.default.forwardRef(
|
|
9448
9786
|
(props, ref) => {
|
|
9449
9787
|
const containerProps = filterObject(props, [
|
|
9450
9788
|
"initialMonth",
|
|
@@ -9472,22 +9810,22 @@ BasicCalendar.displayName = "BasicCalendar";
|
|
|
9472
9810
|
var Basic_default = BasicCalendar;
|
|
9473
9811
|
|
|
9474
9812
|
// src/components/Calendar/components/Interval/index.tsx
|
|
9475
|
-
var
|
|
9813
|
+
var import_react16 = __toESM(require("react"));
|
|
9476
9814
|
|
|
9477
9815
|
// src/components/Calendar/components/Interval/components/Main/index.tsx
|
|
9478
|
-
var
|
|
9816
|
+
var import_react15 = __toESM(require("react"));
|
|
9479
9817
|
|
|
9480
9818
|
// src/components/Input/components/Time/index.tsx
|
|
9481
|
-
var
|
|
9819
|
+
var import_react14 = __toESM(require("react"));
|
|
9482
9820
|
|
|
9483
9821
|
// src/components/Input/components/Input/index.tsx
|
|
9484
|
-
var
|
|
9822
|
+
var import_react13 = __toESM(require("react"));
|
|
9485
9823
|
|
|
9486
9824
|
// src/components/Form/index.tsx
|
|
9487
|
-
var
|
|
9825
|
+
var import_react12 = __toESM(require("react"));
|
|
9488
9826
|
|
|
9489
9827
|
// src/components/Form/context.tsx
|
|
9490
|
-
var
|
|
9828
|
+
var import_react11 = __toESM(require("react"));
|
|
9491
9829
|
var import_jsx_runtime300 = require("react/jsx-runtime");
|
|
9492
9830
|
var defaultValue = {
|
|
9493
9831
|
isRequired: () => false,
|
|
@@ -9495,9 +9833,9 @@ var defaultValue = {
|
|
|
9495
9833
|
isViewMode: () => false,
|
|
9496
9834
|
isDisabled: () => false
|
|
9497
9835
|
};
|
|
9498
|
-
var Context =
|
|
9836
|
+
var Context = import_react11.default.createContext({ ...defaultValue });
|
|
9499
9837
|
var useContext = (name) => {
|
|
9500
|
-
const context =
|
|
9838
|
+
const context = import_react11.default.useContext(Context);
|
|
9501
9839
|
return {
|
|
9502
9840
|
isRequired: () => false,
|
|
9503
9841
|
isInvalid: () => false,
|
|
@@ -9525,7 +9863,7 @@ var context_default = useContext;
|
|
|
9525
9863
|
// src/components/Form/index.tsx
|
|
9526
9864
|
var import_jsx_runtime301 = require("react/jsx-runtime");
|
|
9527
9865
|
var Form = Object.assign(
|
|
9528
|
-
|
|
9866
|
+
import_react12.default.forwardRef(
|
|
9529
9867
|
Object.assign(
|
|
9530
9868
|
(props, ref) => {
|
|
9531
9869
|
const formProps = filterObject(props, ["isRequired", "isInvalid", "isViewMode", "isDisabled"]);
|
|
@@ -9671,15 +10009,11 @@ var Input = import_styled_components17.default.input`
|
|
|
9671
10009
|
return invalid ? theme4.colors.warningRed : theme4.colors.darkBlue;
|
|
9672
10010
|
}};
|
|
9673
10011
|
|
|
9674
|
-
line-height: 17px;
|
|
9675
|
-
|
|
9676
10012
|
&::placeholder {
|
|
9677
10013
|
color: ${({ theme: theme4, $invalid: invalid }) => {
|
|
9678
10014
|
return invalid ? theme4.colors.warningRed : theme4.colors.darkGrey;
|
|
9679
10015
|
}};
|
|
9680
10016
|
|
|
9681
|
-
line-height: 17px;
|
|
9682
|
-
|
|
9683
10017
|
${({ placeholder }) => {
|
|
9684
10018
|
if (placeholder !== "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022") {
|
|
9685
10019
|
return import_styled_components17.css`
|
|
@@ -9891,7 +10225,7 @@ var setMask = (event, handler, setValue, maskFn) => {
|
|
|
9891
10225
|
target.setSelectionRange(start, end);
|
|
9892
10226
|
}
|
|
9893
10227
|
};
|
|
9894
|
-
var Input2 =
|
|
10228
|
+
var Input2 = import_react13.default.forwardRef(
|
|
9895
10229
|
(props, ref) => {
|
|
9896
10230
|
const {
|
|
9897
10231
|
label,
|
|
@@ -9911,9 +10245,9 @@ var Input2 = import_react12.default.forwardRef(
|
|
|
9911
10245
|
const { isRequired, isInvalid: isInvalid2, isViewMode, isDisabled } = Form_default.useContext(
|
|
9912
10246
|
props.name
|
|
9913
10247
|
);
|
|
9914
|
-
const isComposing = (0,
|
|
9915
|
-
const maskFn = (0,
|
|
9916
|
-
(0,
|
|
10248
|
+
const isComposing = (0, import_react13.useRef)(false);
|
|
10249
|
+
const maskFn = (0, import_react13.useMemo)(() => getMask(props.mask), [props.mask]);
|
|
10250
|
+
(0, import_react13.useEffect)(() => {
|
|
9917
10251
|
if (isComposing.current) return;
|
|
9918
10252
|
if (!isString(props.value)) return;
|
|
9919
10253
|
const masked = maskFn(props.value);
|
|
@@ -10059,7 +10393,7 @@ var Input2 = import_react12.default.forwardRef(
|
|
|
10059
10393
|
viewMode ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ViewModeContainer, { children: inputProps.value || props.children }) : /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(InputContainer, { $width: props.inputWidth, children: [
|
|
10060
10394
|
/* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Input, { ...inputProps, ref }),
|
|
10061
10395
|
props.children && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(ChildrenContainer, { children: props.children }),
|
|
10062
|
-
/* @__PURE__ */ (0, import_jsx_runtime303.jsx)(IconContainer, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Icon_default, { type: "jsx", icon: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Loader_default, { size: "14px" }), width: "14px" }) : /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
|
|
10396
|
+
/* @__PURE__ */ (0, import_jsx_runtime303.jsx)(IconContainer, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Icon_default, { type: "jsx", icon: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Loader_default, { size: "14px" }), width: "14px" }) : /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(import_react13.default.Fragment, { children: [
|
|
10063
10397
|
onDirty && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
|
|
10064
10398
|
Icon_default,
|
|
10065
10399
|
{
|
|
@@ -10130,7 +10464,7 @@ var getDate = (value) => {
|
|
|
10130
10464
|
date.setHours(h, m, s, 0);
|
|
10131
10465
|
return date;
|
|
10132
10466
|
};
|
|
10133
|
-
var Time =
|
|
10467
|
+
var Time = import_react14.default.forwardRef(
|
|
10134
10468
|
(props, ref) => {
|
|
10135
10469
|
const { value, seconds } = props;
|
|
10136
10470
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
@@ -10284,15 +10618,15 @@ var LabelContainer2 = import_styled_components19.default.div`
|
|
|
10284
10618
|
|
|
10285
10619
|
// src/components/Calendar/components/Interval/components/Main/index.tsx
|
|
10286
10620
|
var import_jsx_runtime305 = require("react/jsx-runtime");
|
|
10287
|
-
var Main2 =
|
|
10621
|
+
var Main2 = import_react15.default.forwardRef(
|
|
10288
10622
|
(props, ref) => {
|
|
10289
10623
|
const { initialMonth, initialValue, min, max } = props;
|
|
10290
|
-
const [value, setValue] = props.value || (0,
|
|
10291
|
-
const [invalid, setInvalid] = props.invalid || (0,
|
|
10292
|
-
const [time, setTime] = (0,
|
|
10624
|
+
const [value, setValue] = props.value || (0, import_react15.useState)(getValue(initialValue || [], min, max));
|
|
10625
|
+
const [invalid, setInvalid] = props.invalid || (0, import_react15.useState)([false, false]);
|
|
10626
|
+
const [time, setTime] = (0, import_react15.useState)(() => {
|
|
10293
10627
|
return value.map(getTimeFromDate);
|
|
10294
10628
|
});
|
|
10295
|
-
const [calendar1, _setCalendar1] = (0,
|
|
10629
|
+
const [calendar1, _setCalendar1] = (0, import_react15.useState)(() => {
|
|
10296
10630
|
const calendar12 = getInitialCalendar(value[0] || initialMonth, min, max);
|
|
10297
10631
|
return calendar12;
|
|
10298
10632
|
});
|
|
@@ -10302,7 +10636,7 @@ var Main2 = import_react14.default.forwardRef(
|
|
|
10302
10636
|
return newv.month === prev.month && newv.year === prev.year ? prev : newv;
|
|
10303
10637
|
});
|
|
10304
10638
|
};
|
|
10305
|
-
const [calendar2, _setCalendar2] = (0,
|
|
10639
|
+
const [calendar2, _setCalendar2] = (0, import_react15.useState)(() => {
|
|
10306
10640
|
const calendar22 = getCalendar2(calendar1);
|
|
10307
10641
|
return calendar22;
|
|
10308
10642
|
});
|
|
@@ -10312,14 +10646,14 @@ var Main2 = import_react14.default.forwardRef(
|
|
|
10312
10646
|
return newv.month === prev.month && newv.year === prev.year ? prev : newv;
|
|
10313
10647
|
});
|
|
10314
10648
|
};
|
|
10315
|
-
const [hoverDay, setHoverDay] = (0,
|
|
10316
|
-
(0,
|
|
10649
|
+
const [hoverDay, setHoverDay] = (0, import_react15.useState)(null);
|
|
10650
|
+
(0, import_react15.useEffect)(() => {
|
|
10317
10651
|
const calendar12 = getInitialCalendar(value[0] || initialMonth, min, max);
|
|
10318
10652
|
const calendar22 = getCalendar2(calendar12);
|
|
10319
10653
|
setCalendar1(calendar12);
|
|
10320
10654
|
setCalendar2(calendar22);
|
|
10321
10655
|
}, [initialMonth?.toISOString(), min?.toISOString(), max?.toISOString()]);
|
|
10322
|
-
(0,
|
|
10656
|
+
(0, import_react15.useEffect)(() => {
|
|
10323
10657
|
const timeProps = getTimeProps(props.time, value);
|
|
10324
10658
|
setHoverDay(null);
|
|
10325
10659
|
if (value[0]) {
|
|
@@ -10513,7 +10847,7 @@ var Main_default2 = Main2;
|
|
|
10513
10847
|
|
|
10514
10848
|
// src/components/Calendar/components/Interval/index.tsx
|
|
10515
10849
|
var import_jsx_runtime306 = require("react/jsx-runtime");
|
|
10516
|
-
var CalendarInterval =
|
|
10850
|
+
var CalendarInterval = import_react16.default.forwardRef(
|
|
10517
10851
|
(props, ref) => {
|
|
10518
10852
|
const containerProps = filterObject(props, [
|
|
10519
10853
|
"initialMonth",
|
|
@@ -10547,15 +10881,15 @@ CalendarInterval.displayName = "CalendarInterval";
|
|
|
10547
10881
|
var Interval_default = CalendarInterval;
|
|
10548
10882
|
|
|
10549
10883
|
// src/components/Calendar/components/Single/index.tsx
|
|
10550
|
-
var
|
|
10884
|
+
var import_react18 = __toESM(require("react"));
|
|
10551
10885
|
|
|
10552
10886
|
// src/components/Calendar/components/Single/components/Main/index.tsx
|
|
10553
|
-
var
|
|
10887
|
+
var import_react17 = __toESM(require("react"));
|
|
10554
10888
|
var import_jsx_runtime307 = require("react/jsx-runtime");
|
|
10555
|
-
var SingleCalendar =
|
|
10889
|
+
var SingleCalendar = import_react17.default.forwardRef(
|
|
10556
10890
|
(props, ref) => {
|
|
10557
10891
|
const { initialValue, min, max } = props;
|
|
10558
|
-
const [value, setValue] = props.value || (0,
|
|
10892
|
+
const [value, setValue] = props.value || (0, import_react17.useState)(
|
|
10559
10893
|
initialValue && !isNaN(initialValue.getTime()) && isDateBetween(initialValue, min, max) ? initialValue : null
|
|
10560
10894
|
);
|
|
10561
10895
|
const timeProps = (() => {
|
|
@@ -10563,9 +10897,9 @@ var SingleCalendar = import_react16.default.forwardRef(
|
|
|
10563
10897
|
if (typeof props.time === "function") return props.time(value);
|
|
10564
10898
|
return props.time;
|
|
10565
10899
|
})();
|
|
10566
|
-
const [invalid, setInvalid] = props.invalid || (0,
|
|
10567
|
-
const [time, setTime] = (0,
|
|
10568
|
-
(0,
|
|
10900
|
+
const [invalid, setInvalid] = props.invalid || (0, import_react17.useState)(false);
|
|
10901
|
+
const [time, setTime] = (0, import_react17.useState)(getTimeFromDate(value));
|
|
10902
|
+
(0, import_react17.useEffect)(() => {
|
|
10569
10903
|
setInvalid(isInvalid(value, time, timeProps, min, max));
|
|
10570
10904
|
}, [value, time, timeProps]);
|
|
10571
10905
|
const _getDay = props.getDay || (() => ({}));
|
|
@@ -10635,7 +10969,7 @@ var Main_default3 = SingleCalendar;
|
|
|
10635
10969
|
|
|
10636
10970
|
// src/components/Calendar/components/Single/index.tsx
|
|
10637
10971
|
var import_jsx_runtime308 = require("react/jsx-runtime");
|
|
10638
|
-
var CalendarSingle =
|
|
10972
|
+
var CalendarSingle = import_react18.default.forwardRef(
|
|
10639
10973
|
(props, ref) => {
|
|
10640
10974
|
const containerProps = filterObject(props, [
|
|
10641
10975
|
"initialMonth",
|
|
@@ -10673,7 +11007,7 @@ var Single_default = CalendarSingle;
|
|
|
10673
11007
|
|
|
10674
11008
|
// src/components/Calendar/index.tsx
|
|
10675
11009
|
var import_jsx_runtime309 = require("react/jsx-runtime");
|
|
10676
|
-
var Calendar =
|
|
11010
|
+
var Calendar = import_react19.default.forwardRef(
|
|
10677
11011
|
(props, ref) => {
|
|
10678
11012
|
switch (props.type) {
|
|
10679
11013
|
case "basic": {
|
|
@@ -10749,7 +11083,7 @@ var Card = ({ borderType, size: size3, ...rest }) => {
|
|
|
10749
11083
|
var Card_default = Card;
|
|
10750
11084
|
|
|
10751
11085
|
// src/components/Filters/Button/index.tsx
|
|
10752
|
-
var
|
|
11086
|
+
var import_react20 = require("react");
|
|
10753
11087
|
|
|
10754
11088
|
// src/components/Filters/Button/styles.ts
|
|
10755
11089
|
var import_styled_components21 = __toESM(require("styled-components"));
|
|
@@ -10776,7 +11110,7 @@ var Container8 = import_styled_components21.default.div`
|
|
|
10776
11110
|
var import_jsx_runtime311 = require("react/jsx-runtime");
|
|
10777
11111
|
var Button3 = (props) => {
|
|
10778
11112
|
const { getContent } = props;
|
|
10779
|
-
const [open, setOpen] = (0,
|
|
11113
|
+
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
10780
11114
|
const close = () => setOpen(false);
|
|
10781
11115
|
const onClick = props.disabled ? void 0 : () => setOpen((prev) => !prev);
|
|
10782
11116
|
const buttonProps = filterObject(props, ["getContent", "gap"]);
|
|
@@ -10798,13 +11132,13 @@ var Button3 = (props) => {
|
|
|
10798
11132
|
var Button_default2 = Button3;
|
|
10799
11133
|
|
|
10800
11134
|
// src/components/Filters/AppliedFilters/components/Menu/index.tsx
|
|
10801
|
-
var
|
|
11135
|
+
var import_react42 = require("react");
|
|
10802
11136
|
|
|
10803
11137
|
// src/components/Input/index.tsx
|
|
10804
|
-
var
|
|
11138
|
+
var import_react41 = __toESM(require("react"));
|
|
10805
11139
|
|
|
10806
11140
|
// src/components/Input/components/Checkbox/index.tsx
|
|
10807
|
-
var
|
|
11141
|
+
var import_react21 = __toESM(require("react"));
|
|
10808
11142
|
|
|
10809
11143
|
// src/components/Input/components/Checkbox/styles.ts
|
|
10810
11144
|
var import_styled_components22 = __toESM(require("styled-components"));
|
|
@@ -10849,8 +11183,9 @@ var Checkmark = import_styled_components22.default.div`
|
|
|
10849
11183
|
}
|
|
10850
11184
|
`;
|
|
10851
11185
|
var Label2 = import_styled_components22.default.label`
|
|
10852
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
10853
|
-
|
|
11186
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
11187
|
+
lineHeight: theme4.spacings.s3
|
|
11188
|
+
})}
|
|
10854
11189
|
|
|
10855
11190
|
${({ $padding: padding, theme: theme4 }) => {
|
|
10856
11191
|
if (!padding) return;
|
|
@@ -10976,8 +11311,9 @@ var Label2 = import_styled_components22.default.label`
|
|
|
10976
11311
|
`;
|
|
10977
11312
|
var LabelContent = import_styled_components22.default.div`
|
|
10978
11313
|
display: inline-block;
|
|
10979
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
10980
|
-
|
|
11314
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
11315
|
+
lineHeight: theme4.spacings.s3
|
|
11316
|
+
})}
|
|
10981
11317
|
flex: 1;
|
|
10982
11318
|
overflow: hidden;
|
|
10983
11319
|
|
|
@@ -11003,7 +11339,7 @@ var DefaultLabel = (props) => {
|
|
|
11003
11339
|
}
|
|
11004
11340
|
);
|
|
11005
11341
|
};
|
|
11006
|
-
var Checkbox =
|
|
11342
|
+
var Checkbox = import_react21.default.forwardRef(
|
|
11007
11343
|
(props, ref) => {
|
|
11008
11344
|
const { padding, bordered } = props;
|
|
11009
11345
|
const { isRequired, isInvalid: isInvalid2, isViewMode, isDisabled } = Form_default.useContext(
|
|
@@ -11065,7 +11401,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
11065
11401
|
var Checkbox_default = Checkbox;
|
|
11066
11402
|
|
|
11067
11403
|
// src/components/Input/components/Date/index.tsx
|
|
11068
|
-
var
|
|
11404
|
+
var import_react22 = __toESM(require("react"));
|
|
11069
11405
|
|
|
11070
11406
|
// src/components/Input/components/Date/functions.ts
|
|
11071
11407
|
var JSDate = Date;
|
|
@@ -11127,12 +11463,12 @@ var mask2 = (v) => {
|
|
|
11127
11463
|
else if (v.length < 5) return v.substring(0, 2) + "/" + v.substring(2);
|
|
11128
11464
|
else return v.substring(0, 2) + "/" + v.substring(2, 4) + "/" + v.substring(4);
|
|
11129
11465
|
};
|
|
11130
|
-
var Date2 =
|
|
11466
|
+
var Date2 = import_react22.default.forwardRef(
|
|
11131
11467
|
(props, ref) => {
|
|
11132
11468
|
const { picker, value, min, max } = props;
|
|
11133
11469
|
const setValue = props.setValue || (() => {
|
|
11134
11470
|
});
|
|
11135
|
-
const [open, setOpen] = (0,
|
|
11471
|
+
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
11136
11472
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
11137
11473
|
});
|
|
11138
11474
|
const onKeyDown = (event) => {
|
|
@@ -11218,7 +11554,7 @@ Date2.displayName = "Date";
|
|
|
11218
11554
|
var Date_default = Date2;
|
|
11219
11555
|
|
|
11220
11556
|
// src/components/Input/components/DateIntervalPicker/index.tsx
|
|
11221
|
-
var
|
|
11557
|
+
var import_react23 = __toESM(require("react"));
|
|
11222
11558
|
|
|
11223
11559
|
// src/components/Input/components/DateIntervalPicker/functions.ts
|
|
11224
11560
|
var validate = ([start, end], min, max) => {
|
|
@@ -11405,7 +11741,6 @@ var RelativeContainer3 = import_styled_components24.default.div`
|
|
|
11405
11741
|
`;
|
|
11406
11742
|
var LabelContainer3 = import_styled_components24.default.div`
|
|
11407
11743
|
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
11408
|
-
line-height: 17px;
|
|
11409
11744
|
flex: 1;
|
|
11410
11745
|
|
|
11411
11746
|
&:first-child {
|
|
@@ -11506,12 +11841,12 @@ var LabelText2 = import_styled_components24.default.label`
|
|
|
11506
11841
|
|
|
11507
11842
|
// src/components/Input/components/DateIntervalPicker/index.tsx
|
|
11508
11843
|
var import_jsx_runtime314 = require("react/jsx-runtime");
|
|
11509
|
-
var Component =
|
|
11844
|
+
var Component = import_react23.default.forwardRef(
|
|
11510
11845
|
(props, ref) => {
|
|
11511
11846
|
const center = props.center || { x: 50, y: 50 };
|
|
11512
11847
|
const value = parse(props.value);
|
|
11513
|
-
const [open, setOpen] = (0,
|
|
11514
|
-
const [intervalType, setIntervalType] = (0,
|
|
11848
|
+
const [open, setOpen] = (0, import_react23.useState)(null);
|
|
11849
|
+
const [intervalType, setIntervalType] = (0, import_react23.useState)(
|
|
11515
11850
|
props.only || "day"
|
|
11516
11851
|
);
|
|
11517
11852
|
const config = intervalTypes[intervalType];
|
|
@@ -11522,7 +11857,7 @@ var Component = import_react22.default.forwardRef(
|
|
|
11522
11857
|
);
|
|
11523
11858
|
props.setValue(parsed);
|
|
11524
11859
|
};
|
|
11525
|
-
(0,
|
|
11860
|
+
(0, import_react23.useEffect)(() => {
|
|
11526
11861
|
if (props.min && props.max && props.min > props.max) {
|
|
11527
11862
|
throw Error("Min prop must be less than Max");
|
|
11528
11863
|
}
|
|
@@ -11607,7 +11942,7 @@ var Component = import_react22.default.forwardRef(
|
|
|
11607
11942
|
if (intervalType === "custom") return label;
|
|
11608
11943
|
const incrementProps = getArrowProps("increment");
|
|
11609
11944
|
const decrementProps = getArrowProps("decrement");
|
|
11610
|
-
return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(
|
|
11945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(import_react23.default.Fragment, { children: [
|
|
11611
11946
|
/* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
|
|
11612
11947
|
Button4,
|
|
11613
11948
|
{
|
|
@@ -11736,7 +12071,7 @@ var DatePicker = Object.assign(Component, {
|
|
|
11736
12071
|
var DateIntervalPicker_default = DatePicker;
|
|
11737
12072
|
|
|
11738
12073
|
// src/components/Input/components/DatePicker/index.tsx
|
|
11739
|
-
var
|
|
12074
|
+
var import_react24 = __toESM(require("react"));
|
|
11740
12075
|
|
|
11741
12076
|
// src/components/Input/components/DatePicker/styles.ts
|
|
11742
12077
|
var import_styled_components25 = __toESM(require("styled-components"));
|
|
@@ -11748,8 +12083,9 @@ var RelativeContainer4 = import_styled_components25.default.div`
|
|
|
11748
12083
|
}
|
|
11749
12084
|
`;
|
|
11750
12085
|
var LabelContainer4 = import_styled_components25.default.div`
|
|
11751
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
11752
|
-
|
|
12086
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
12087
|
+
lineHeight: theme4.spacings.s3
|
|
12088
|
+
})}
|
|
11753
12089
|
`;
|
|
11754
12090
|
var Container10 = import_styled_components25.default.div`
|
|
11755
12091
|
position: absolute;
|
|
@@ -11812,13 +12148,13 @@ var Button5 = import_styled_components25.default.button`
|
|
|
11812
12148
|
|
|
11813
12149
|
// src/components/Input/components/DatePicker/index.tsx
|
|
11814
12150
|
var import_jsx_runtime315 = require("react/jsx-runtime");
|
|
11815
|
-
var DatePicker2 =
|
|
12151
|
+
var DatePicker2 = import_react24.default.forwardRef(
|
|
11816
12152
|
(props, ref) => {
|
|
11817
12153
|
const { picker, value, setValue, min, max } = props;
|
|
11818
12154
|
const disabled = props.disabled || props.loading;
|
|
11819
12155
|
const today = dateToIsoString(/* @__PURE__ */ new Date());
|
|
11820
|
-
const [open, setOpen] = (0,
|
|
11821
|
-
(0,
|
|
12156
|
+
const [open, setOpen] = (0, import_react24.useState)(false);
|
|
12157
|
+
(0, import_react24.useEffect)(() => {
|
|
11822
12158
|
const date = isoStringToDate(value);
|
|
11823
12159
|
if (!date) {
|
|
11824
12160
|
setValue(dateToIsoString(getMiddle(min, max)));
|
|
@@ -11937,7 +12273,7 @@ DatePicker2.displayName = "DatePicker";
|
|
|
11937
12273
|
var DatePicker_default = DatePicker2;
|
|
11938
12274
|
|
|
11939
12275
|
// src/components/Input/components/DateTime/index.tsx
|
|
11940
|
-
var
|
|
12276
|
+
var import_react25 = __toESM(require("react"));
|
|
11941
12277
|
|
|
11942
12278
|
// src/components/Input/components/DateTime/styles.ts
|
|
11943
12279
|
var import_styled_components26 = __toESM(require("styled-components"));
|
|
@@ -12098,13 +12434,13 @@ var steps = {
|
|
|
12098
12434
|
}
|
|
12099
12435
|
}
|
|
12100
12436
|
};
|
|
12101
|
-
var DateTime =
|
|
12437
|
+
var DateTime = import_react25.default.forwardRef(
|
|
12102
12438
|
(props, ref) => {
|
|
12103
12439
|
const { picker, value, min, max } = props;
|
|
12104
12440
|
const step = steps[props.step || "day"];
|
|
12105
12441
|
const setValue = props.setValue || (() => {
|
|
12106
12442
|
});
|
|
12107
|
-
const [open, setOpen] = (0,
|
|
12443
|
+
const [open, setOpen] = (0, import_react25.useState)(false);
|
|
12108
12444
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
12109
12445
|
});
|
|
12110
12446
|
const onKeyDown = (event) => {
|
|
@@ -12225,11 +12561,11 @@ DateTime.displayName = "DateTime";
|
|
|
12225
12561
|
var DateTime_default = DateTime;
|
|
12226
12562
|
|
|
12227
12563
|
// src/components/Input/components/Password/index.tsx
|
|
12228
|
-
var
|
|
12564
|
+
var import_react26 = __toESM(require("react"));
|
|
12229
12565
|
var import_jsx_runtime317 = require("react/jsx-runtime");
|
|
12230
|
-
var Password =
|
|
12566
|
+
var Password = import_react26.default.forwardRef(
|
|
12231
12567
|
(props, ref) => {
|
|
12232
|
-
const [visibility, setVisibility] = (0,
|
|
12568
|
+
const [visibility, setVisibility] = (0, import_react26.useState)("hidden");
|
|
12233
12569
|
const icons2 = {
|
|
12234
12570
|
visible: {
|
|
12235
12571
|
icon: "eye_off",
|
|
@@ -12264,7 +12600,7 @@ Password.displayName = "Password";
|
|
|
12264
12600
|
var Password_default = Password;
|
|
12265
12601
|
|
|
12266
12602
|
// src/components/Input/components/Phone/index.tsx
|
|
12267
|
-
var
|
|
12603
|
+
var import_react27 = __toESM(require("react"));
|
|
12268
12604
|
|
|
12269
12605
|
// src/assets/icons/flags/index.ts
|
|
12270
12606
|
var import_styled_components27 = __toESM(require("styled-components"));
|
|
@@ -12549,17 +12885,17 @@ var Button6 = (props) => {
|
|
|
12549
12885
|
}
|
|
12550
12886
|
);
|
|
12551
12887
|
};
|
|
12552
|
-
var Component2 =
|
|
12888
|
+
var Component2 = import_react27.default.forwardRef(
|
|
12553
12889
|
(props, ref) => {
|
|
12554
12890
|
const { value, setValue } = props;
|
|
12555
|
-
const [inputValue, setInputValue] = (0,
|
|
12891
|
+
const [inputValue, setInputValue] = (0, import_react27.useState)(
|
|
12556
12892
|
!value ? "" : () => {
|
|
12557
12893
|
const details = getPhoneDetails(value);
|
|
12558
12894
|
return details ? details.masked : value;
|
|
12559
12895
|
}
|
|
12560
12896
|
);
|
|
12561
|
-
const [country, setCountry] = (0,
|
|
12562
|
-
const [open, setOpen] = (0,
|
|
12897
|
+
const [country, setCountry] = (0, import_react27.useState)(countries_default.br);
|
|
12898
|
+
const [open, setOpen] = (0, import_react27.useState)(false);
|
|
12563
12899
|
const options = Object.keys(countries_default).map((iso) => ({
|
|
12564
12900
|
label: (option) => {
|
|
12565
12901
|
const country2 = option.data;
|
|
@@ -12583,7 +12919,7 @@ var Component2 = import_react26.default.forwardRef(
|
|
|
12583
12919
|
if (country.mask) value2 = country.mask(value2);
|
|
12584
12920
|
return value2;
|
|
12585
12921
|
};
|
|
12586
|
-
(0,
|
|
12922
|
+
(0, import_react27.useEffect)(() => {
|
|
12587
12923
|
if (!value) {
|
|
12588
12924
|
setInputValue("");
|
|
12589
12925
|
return;
|
|
@@ -12597,10 +12933,10 @@ var Component2 = import_react26.default.forwardRef(
|
|
|
12597
12933
|
setInputValue(value);
|
|
12598
12934
|
}
|
|
12599
12935
|
}, [value]);
|
|
12600
|
-
(0,
|
|
12936
|
+
(0, import_react27.useEffect)(() => {
|
|
12601
12937
|
setInputValue((prev) => mask4(prev));
|
|
12602
12938
|
}, [country]);
|
|
12603
|
-
(0,
|
|
12939
|
+
(0, import_react27.useEffect)(() => {
|
|
12604
12940
|
const v = inputValue.replace(/\D+/g, "").substring(0, country.charLimit);
|
|
12605
12941
|
setValue(v ? `${country.ddi} ${v}` : v);
|
|
12606
12942
|
}, [inputValue]);
|
|
@@ -12798,7 +13134,7 @@ var RadioButton = (props) => {
|
|
|
12798
13134
|
var RadioButton_default = RadioButton;
|
|
12799
13135
|
|
|
12800
13136
|
// src/components/Input/components/Range/index.tsx
|
|
12801
|
-
var
|
|
13137
|
+
var import_react28 = __toESM(require("react"));
|
|
12802
13138
|
|
|
12803
13139
|
// src/components/Input/components/Range/styles/Input/index.ts
|
|
12804
13140
|
var import_styled_components30 = __toESM(require("styled-components"));
|
|
@@ -13009,8 +13345,7 @@ var NavBar_default = NavBar;
|
|
|
13009
13345
|
|
|
13010
13346
|
// src/components/Input/components/Range/styles/Label/index.ts
|
|
13011
13347
|
var Label5 = import_styled_components35.default.label`
|
|
13012
|
-
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
13013
|
-
line-height: 17px;
|
|
13348
|
+
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
13014
13349
|
|
|
13015
13350
|
${({ $width: width, $viewMode: viewMode }) => {
|
|
13016
13351
|
if (width) {
|
|
@@ -13245,7 +13580,7 @@ var getBarLeft = (size3, calc) => {
|
|
|
13245
13580
|
var getIndicatorLeft = (size3, calc) => {
|
|
13246
13581
|
return `min(max(${calc}, calc(0% - ${size3}px)), calc(100% - ${size3}px))`;
|
|
13247
13582
|
};
|
|
13248
|
-
var Range =
|
|
13583
|
+
var Range = import_react28.default.forwardRef(
|
|
13249
13584
|
(props, ref) => {
|
|
13250
13585
|
const { label, minLabel, maxLabel, width, setValue, hideNavbar } = props;
|
|
13251
13586
|
const { isRequired, isInvalid: isInvalid2, isViewMode, isDisabled } = Form_default.useContext(
|
|
@@ -13455,10 +13790,10 @@ Range.displayName = "input";
|
|
|
13455
13790
|
var Range_default = Range;
|
|
13456
13791
|
|
|
13457
13792
|
// src/components/Input/components/Select/index.tsx
|
|
13458
|
-
var
|
|
13793
|
+
var import_react37 = __toESM(require("react"));
|
|
13459
13794
|
|
|
13460
13795
|
// src/components/Input/components/Select/hooks/Select/index.tsx
|
|
13461
|
-
var
|
|
13796
|
+
var import_react32 = __toESM(require("react"));
|
|
13462
13797
|
|
|
13463
13798
|
// src/components/Input/components/Select/styles.ts
|
|
13464
13799
|
var import_styled_components41 = __toESM(require("styled-components"));
|
|
@@ -13486,7 +13821,7 @@ var HiddenInput = import_styled_components41.default.input`
|
|
|
13486
13821
|
`;
|
|
13487
13822
|
|
|
13488
13823
|
// src/components/Input/components/Select/hooks/Navigation/index.ts
|
|
13489
|
-
var
|
|
13824
|
+
var import_react29 = require("react");
|
|
13490
13825
|
var isAvailable = (index, option) => {
|
|
13491
13826
|
return !option.disabled && !(option.rules || []).some((rule) => rule(index, option.data) !== true);
|
|
13492
13827
|
};
|
|
@@ -13496,7 +13831,7 @@ var useNavigation = (props) => {
|
|
|
13496
13831
|
options,
|
|
13497
13832
|
onSelectHighlight
|
|
13498
13833
|
} = props;
|
|
13499
|
-
const onKeyDown = (0,
|
|
13834
|
+
const onKeyDown = (0, import_react29.useCallback)(
|
|
13500
13835
|
(e) => {
|
|
13501
13836
|
if (e.key === "ArrowDown") {
|
|
13502
13837
|
e.preventDefault();
|
|
@@ -13545,12 +13880,12 @@ var useNavigation = (props) => {
|
|
|
13545
13880
|
var Navigation_default2 = useNavigation;
|
|
13546
13881
|
|
|
13547
13882
|
// src/components/Input/components/Select/hooks/Select/components/Header/index.tsx
|
|
13548
|
-
var
|
|
13883
|
+
var import_react31 = __toESM(require("react"));
|
|
13549
13884
|
|
|
13550
13885
|
// src/components/Input/components/Select/hooks/Select/context.ts
|
|
13551
|
-
var
|
|
13552
|
-
var Provider3 =
|
|
13553
|
-
var useContext2 = () =>
|
|
13886
|
+
var import_react30 = __toESM(require("react"));
|
|
13887
|
+
var Provider3 = import_react30.default.createContext({});
|
|
13888
|
+
var useContext2 = () => import_react30.default.useContext(Provider3);
|
|
13554
13889
|
var context_default2 = Provider3;
|
|
13555
13890
|
|
|
13556
13891
|
// src/components/Input/components/Select/hooks/Select/components/Header/styles.ts
|
|
@@ -13566,7 +13901,7 @@ var import_jsx_runtime321 = require("react/jsx-runtime");
|
|
|
13566
13901
|
var Header2 = () => {
|
|
13567
13902
|
const context = useContext2();
|
|
13568
13903
|
if (!context.props.search) {
|
|
13569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
|
|
13904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(import_react31.default.Fragment, {});
|
|
13570
13905
|
}
|
|
13571
13906
|
const {
|
|
13572
13907
|
searchInput: [searchInput, setSearchInput]
|
|
@@ -13659,7 +13994,7 @@ var useSelect = (props, [highlight, setHighlight], [options, setOptions], setOpe
|
|
|
13659
13994
|
onReset,
|
|
13660
13995
|
menu: {
|
|
13661
13996
|
itemSpacing: "s3",
|
|
13662
|
-
before: /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(
|
|
13997
|
+
before: /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(import_react32.default.Fragment, { children: [
|
|
13663
13998
|
/* @__PURE__ */ (0, import_jsx_runtime322.jsx)(Header_default, {}),
|
|
13664
13999
|
/* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
|
|
13665
14000
|
HiddenInput,
|
|
@@ -13690,15 +14025,15 @@ var useSelect = (props, [highlight, setHighlight], [options, setOptions], setOpe
|
|
|
13690
14025
|
var Select_default = useSelect;
|
|
13691
14026
|
|
|
13692
14027
|
// src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
|
|
13693
|
-
var
|
|
14028
|
+
var import_react36 = __toESM(require("react"));
|
|
13694
14029
|
|
|
13695
14030
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
|
|
13696
|
-
var
|
|
14031
|
+
var import_react34 = __toESM(require("react"));
|
|
13697
14032
|
|
|
13698
14033
|
// src/components/Input/components/Select/hooks/SelectMultiple/context.ts
|
|
13699
|
-
var
|
|
13700
|
-
var Provider4 =
|
|
13701
|
-
var useContext3 = () =>
|
|
14034
|
+
var import_react33 = __toESM(require("react"));
|
|
14035
|
+
var Provider4 = import_react33.default.createContext({});
|
|
14036
|
+
var useContext3 = () => import_react33.default.useContext(Provider4);
|
|
13702
14037
|
var context_default3 = Provider4;
|
|
13703
14038
|
|
|
13704
14039
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
|
|
@@ -13728,7 +14063,7 @@ var Footer2 = () => {
|
|
|
13728
14063
|
setValue(value2, data);
|
|
13729
14064
|
setOpen(false);
|
|
13730
14065
|
};
|
|
13731
|
-
return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(
|
|
14066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_react34.default.Fragment, { children: [
|
|
13732
14067
|
error && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
|
|
13733
14068
|
"span",
|
|
13734
14069
|
{
|
|
@@ -13756,7 +14091,7 @@ var Footer2 = () => {
|
|
|
13756
14091
|
var Footer_default = Footer2;
|
|
13757
14092
|
|
|
13758
14093
|
// src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
|
|
13759
|
-
var
|
|
14094
|
+
var import_react35 = __toESM(require("react"));
|
|
13760
14095
|
|
|
13761
14096
|
// src/components/Link/index.tsx
|
|
13762
14097
|
var import_styled_components43 = __toESM(require("styled-components"));
|
|
@@ -13867,7 +14202,7 @@ var CheckAll = () => {
|
|
|
13867
14202
|
var Header3 = () => {
|
|
13868
14203
|
const context = useContext3();
|
|
13869
14204
|
if (!context.props.search) {
|
|
13870
|
-
return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
|
|
14205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(import_react35.default.Fragment, {});
|
|
13871
14206
|
}
|
|
13872
14207
|
const {
|
|
13873
14208
|
searchInput: [searchInput, setSearchInput],
|
|
@@ -14004,12 +14339,12 @@ var parseValue = (value) => {
|
|
|
14004
14339
|
};
|
|
14005
14340
|
var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]) => {
|
|
14006
14341
|
const initial = parseValue(props.value);
|
|
14007
|
-
const [checked, setChecked] = (0,
|
|
14342
|
+
const [checked, setChecked] = (0, import_react36.useState)([
|
|
14008
14343
|
...initial
|
|
14009
14344
|
]);
|
|
14010
14345
|
const limits = resolveLimits(props.minSelected, props.maxSelected);
|
|
14011
14346
|
const { max, enabled } = limits;
|
|
14012
|
-
(0,
|
|
14347
|
+
(0, import_react36.useEffect)(() => {
|
|
14013
14348
|
if (limits.error) {
|
|
14014
14349
|
console.error(`[SelectMultiple]: ${limits.error}`);
|
|
14015
14350
|
}
|
|
@@ -14049,7 +14384,7 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
|
|
|
14049
14384
|
onReset,
|
|
14050
14385
|
menu: {
|
|
14051
14386
|
itemSpacing: void 0,
|
|
14052
|
-
before: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
|
|
14387
|
+
before: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(import_react36.default.Fragment, { children: [
|
|
14053
14388
|
/* @__PURE__ */ (0, import_jsx_runtime327.jsx)(Header_default2, {}),
|
|
14054
14389
|
/* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
|
|
14055
14390
|
HiddenInput,
|
|
@@ -14104,12 +14439,12 @@ var SelectMultiple_default = useSelectMultiple;
|
|
|
14104
14439
|
|
|
14105
14440
|
// src/components/Input/components/Select/index.tsx
|
|
14106
14441
|
var import_jsx_runtime328 = require("react/jsx-runtime");
|
|
14107
|
-
var Select =
|
|
14442
|
+
var Select = import_react37.default.forwardRef(
|
|
14108
14443
|
(props, ref) => {
|
|
14109
14444
|
const { position, loader: loader2, initialLoader } = props;
|
|
14110
|
-
const [options, setOptions] = (0,
|
|
14111
|
-
const [highlight, setHighlight] = (0,
|
|
14112
|
-
const [open, setOpen] = (0,
|
|
14445
|
+
const [options, setOptions] = (0, import_react37.useState)(initialLoader || []);
|
|
14446
|
+
const [highlight, setHighlight] = (0, import_react37.useState)(-1);
|
|
14447
|
+
const [open, setOpen] = (0, import_react37.useState)(false);
|
|
14113
14448
|
const hook = props.type === "select-multiple" ? SelectMultiple_default : Select_default;
|
|
14114
14449
|
const {
|
|
14115
14450
|
parsedOptions,
|
|
@@ -14125,11 +14460,11 @@ var Select = import_react36.default.forwardRef(
|
|
|
14125
14460
|
[options, setOptions],
|
|
14126
14461
|
setOpen
|
|
14127
14462
|
);
|
|
14128
|
-
const [_loading, setLoading] = (0,
|
|
14129
|
-
const [search, _setSearch] = (0,
|
|
14130
|
-
const [searchInput, setSearchInput] = (0,
|
|
14131
|
-
const [page, setPage] = (0,
|
|
14132
|
-
const [lastPage, setLastPage] = (0,
|
|
14463
|
+
const [_loading, setLoading] = (0, import_react37.useState)(true);
|
|
14464
|
+
const [search, _setSearch] = (0, import_react37.useState)("");
|
|
14465
|
+
const [searchInput, setSearchInput] = (0, import_react37.useState)("");
|
|
14466
|
+
const [page, setPage] = (0, import_react37.useState)(1);
|
|
14467
|
+
const [lastPage, setLastPage] = (0, import_react37.useState)(false);
|
|
14133
14468
|
const loading = props.loading || _loading;
|
|
14134
14469
|
const setSearch = (value) => {
|
|
14135
14470
|
_setSearch(value);
|
|
@@ -14162,7 +14497,7 @@ var Select = import_react36.default.forwardRef(
|
|
|
14162
14497
|
}
|
|
14163
14498
|
_onScrollEnd(e);
|
|
14164
14499
|
};
|
|
14165
|
-
const onSubmit = (0,
|
|
14500
|
+
const onSubmit = (0, import_react37.useCallback)(async () => {
|
|
14166
14501
|
setLoading(true);
|
|
14167
14502
|
const optionsResult = await loader2(search, page);
|
|
14168
14503
|
if (optionsResult === null) return;
|
|
@@ -14178,22 +14513,22 @@ var Select = import_react36.default.forwardRef(
|
|
|
14178
14513
|
setLastPage(lastPage2);
|
|
14179
14514
|
setLoading(false);
|
|
14180
14515
|
}, [loader2, search, page, initialLoader]);
|
|
14181
|
-
(0,
|
|
14516
|
+
(0, import_react37.useEffect)(() => {
|
|
14182
14517
|
const timeoutId = setTimeout(() => onSubmit(), 250);
|
|
14183
14518
|
return () => clearTimeout(timeoutId);
|
|
14184
14519
|
}, [onSubmit]);
|
|
14185
|
-
(0,
|
|
14520
|
+
(0, import_react37.useEffect)(() => {
|
|
14186
14521
|
if (open) return;
|
|
14187
14522
|
setSearch("");
|
|
14188
14523
|
onReset();
|
|
14189
14524
|
}, [props.value, open]);
|
|
14190
|
-
(0,
|
|
14525
|
+
(0, import_react37.useEffect)(() => {
|
|
14191
14526
|
setSearchInput(search);
|
|
14192
14527
|
}, [search]);
|
|
14193
|
-
(0,
|
|
14528
|
+
(0, import_react37.useEffect)(() => {
|
|
14194
14529
|
if (page === 1) setHighlight(-1);
|
|
14195
14530
|
}, [page]);
|
|
14196
|
-
(0,
|
|
14531
|
+
(0, import_react37.useEffect)(() => {
|
|
14197
14532
|
const timeoutId = setTimeout(() => setSearch(searchInput), 1e3);
|
|
14198
14533
|
return () => clearTimeout(timeoutId);
|
|
14199
14534
|
}, [searchInput]);
|
|
@@ -14285,13 +14620,14 @@ Select.displayName = "Select";
|
|
|
14285
14620
|
var Select_default2 = Select;
|
|
14286
14621
|
|
|
14287
14622
|
// src/components/Input/components/Switch/index.tsx
|
|
14288
|
-
var
|
|
14623
|
+
var import_react38 = __toESM(require("react"));
|
|
14289
14624
|
|
|
14290
14625
|
// src/components/Input/components/Switch/styles.ts
|
|
14291
14626
|
var import_styled_components45 = __toESM(require("styled-components"));
|
|
14292
14627
|
var LabelContainer7 = import_styled_components45.default.div`
|
|
14293
|
-
${({ theme: theme4 }) => theme4.useTypography("p"
|
|
14294
|
-
|
|
14628
|
+
${({ theme: theme4 }) => theme4.useTypography("p", {
|
|
14629
|
+
lineHeight: theme4.spacings.s3
|
|
14630
|
+
})}
|
|
14295
14631
|
display: flex;
|
|
14296
14632
|
align-items: center;
|
|
14297
14633
|
|
|
@@ -14445,7 +14781,7 @@ var Switch = (props) => {
|
|
|
14445
14781
|
$keepSpace: true,
|
|
14446
14782
|
children: label[props.checked ? "after" : "before"]
|
|
14447
14783
|
}
|
|
14448
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
|
|
14784
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(import_react38.default.Fragment, { children: [
|
|
14449
14785
|
label.before && /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(LabelContainer7, { children: label.before }),
|
|
14450
14786
|
/* @__PURE__ */ (0, import_jsx_runtime329.jsx)("input", { ...htmlProps, type: "checkbox" }),
|
|
14451
14787
|
/* @__PURE__ */ (0, import_jsx_runtime329.jsx)("span", {}),
|
|
@@ -14458,29 +14794,26 @@ var Switch = (props) => {
|
|
|
14458
14794
|
var Switch_default = Switch;
|
|
14459
14795
|
|
|
14460
14796
|
// src/components/Input/components/Tags/index.tsx
|
|
14461
|
-
var
|
|
14797
|
+
var import_react40 = __toESM(require("react"));
|
|
14462
14798
|
|
|
14463
14799
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14464
|
-
var
|
|
14800
|
+
var import_react39 = __toESM(require("react"));
|
|
14465
14801
|
|
|
14466
14802
|
// src/components/Input/components/Tags/components/Input/styles.ts
|
|
14467
14803
|
var import_styled_components46 = __toESM(require("styled-components"));
|
|
14468
14804
|
var Input4 = import_styled_components46.default.input`
|
|
14469
|
-
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
14805
|
+
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
14470
14806
|
|
|
14471
14807
|
color: ${({ theme: theme4, $invalid: invalid }) => {
|
|
14472
14808
|
return invalid ? theme4.colors.warningRed : theme4.colors.darkBlue;
|
|
14473
14809
|
}};
|
|
14474
14810
|
|
|
14475
|
-
line-height: 17px;
|
|
14476
|
-
|
|
14477
14811
|
&::placeholder {
|
|
14478
14812
|
color: ${({ theme: theme4, $invalid: invalid }) => {
|
|
14479
14813
|
return invalid ? theme4.colors.warningRed : theme4.colors.darkGrey;
|
|
14480
14814
|
}};
|
|
14481
14815
|
|
|
14482
|
-
|
|
14483
|
-
${({ theme: theme4 }) => theme4.useTypography("p")};
|
|
14816
|
+
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
14484
14817
|
opacity: 1;
|
|
14485
14818
|
}
|
|
14486
14819
|
|
|
@@ -14498,7 +14831,7 @@ var Input4 = import_styled_components46.default.input`
|
|
|
14498
14831
|
|
|
14499
14832
|
// src/components/Input/components/Tags/components/Input/index.tsx
|
|
14500
14833
|
var import_jsx_runtime330 = require("react/jsx-runtime");
|
|
14501
|
-
var Input5 =
|
|
14834
|
+
var Input5 = import_react39.default.forwardRef(
|
|
14502
14835
|
(props, ref) => {
|
|
14503
14836
|
const [value, setValue] = props.value;
|
|
14504
14837
|
const _onKeyDown = props.onKeyDown || (() => {
|
|
@@ -14564,7 +14897,6 @@ var Label_default3 = Label9;
|
|
|
14564
14897
|
var import_styled_components48 = __toESM(require("styled-components"));
|
|
14565
14898
|
var Tag = import_styled_components48.default.div`
|
|
14566
14899
|
${({ theme: theme4 }) => theme4.useTypography("p")}
|
|
14567
|
-
line-height: 17px;
|
|
14568
14900
|
|
|
14569
14901
|
background-color: ${({ theme: theme4 }) => theme4.colors.white};
|
|
14570
14902
|
color: ${({ theme: theme4 }) => theme4.colors.darkBlue};
|
|
@@ -14656,10 +14988,10 @@ var TagContainer = import_styled_components49.default.div`
|
|
|
14656
14988
|
|
|
14657
14989
|
// src/components/Input/components/Tags/index.tsx
|
|
14658
14990
|
var import_jsx_runtime333 = require("react/jsx-runtime");
|
|
14659
|
-
var Tags =
|
|
14991
|
+
var Tags = import_react40.default.forwardRef(
|
|
14660
14992
|
(props, ref) => {
|
|
14661
14993
|
const { value, setValue } = props;
|
|
14662
|
-
const [inputValue, setInputValue] = props.input?.value ? props.input.value : (0,
|
|
14994
|
+
const [inputValue, setInputValue] = props.input?.value ? props.input.value : (0, import_react40.useState)("");
|
|
14663
14995
|
const paddingless = props.paddingless || false;
|
|
14664
14996
|
const borderless = props.borderless || false;
|
|
14665
14997
|
const maxTags = props.maxTags || Number.POSITIVE_INFINITY;
|
|
@@ -14727,7 +15059,7 @@ var Tags_default = Tags;
|
|
|
14727
15059
|
|
|
14728
15060
|
// src/components/Input/index.tsx
|
|
14729
15061
|
var import_jsx_runtime334 = require("react/jsx-runtime");
|
|
14730
|
-
var Component3 =
|
|
15062
|
+
var Component3 = import_react41.default.forwardRef(
|
|
14731
15063
|
(props, ref) => {
|
|
14732
15064
|
switch (props.type) {
|
|
14733
15065
|
case "date": {
|
|
@@ -14871,9 +15203,9 @@ var AppliedFiltersMenu = (props) => {
|
|
|
14871
15203
|
close,
|
|
14872
15204
|
appliedFilters: [appliedFilters, setAppliedFilters]
|
|
14873
15205
|
} = props;
|
|
14874
|
-
const [search, setSearch] = (0,
|
|
14875
|
-
const [searched, setSearched] = (0,
|
|
14876
|
-
(0,
|
|
15206
|
+
const [search, setSearch] = (0, import_react42.useState)("");
|
|
15207
|
+
const [searched, setSearched] = (0, import_react42.useState)("");
|
|
15208
|
+
(0, import_react42.useEffect)(() => {
|
|
14877
15209
|
setSearch("");
|
|
14878
15210
|
setSearched("");
|
|
14879
15211
|
}, [open]);
|
|
@@ -14996,13 +15328,13 @@ var AppliedFilters = Object.assign(
|
|
|
14996
15328
|
var AppliedFilters_default = AppliedFilters;
|
|
14997
15329
|
|
|
14998
15330
|
// src/components/Filters/Filters/components/Menu/index.tsx
|
|
14999
|
-
var
|
|
15331
|
+
var import_react45 = require("react");
|
|
15000
15332
|
|
|
15001
15333
|
// src/components/Filters/Filters/components/Submenu/index.tsx
|
|
15002
|
-
var
|
|
15334
|
+
var import_react44 = __toESM(require("react"));
|
|
15003
15335
|
|
|
15004
15336
|
// src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
|
|
15005
|
-
var
|
|
15337
|
+
var import_react43 = require("react");
|
|
15006
15338
|
|
|
15007
15339
|
// src/components/Filters/Filters/components/Submenu/components/Header/styles.ts
|
|
15008
15340
|
var import_styled_components51 = __toESM(require("styled-components"));
|
|
@@ -15036,12 +15368,12 @@ var Header5 = (props) => {
|
|
|
15036
15368
|
allowEmptySearch,
|
|
15037
15369
|
withSearch
|
|
15038
15370
|
} = props;
|
|
15039
|
-
const [search, setSearch] = (0,
|
|
15371
|
+
const [search, setSearch] = (0, import_react43.useState)("");
|
|
15040
15372
|
const setSearched = allowEmptySearch ? _setSearched : (value) => {
|
|
15041
15373
|
if (value === "") return;
|
|
15042
15374
|
_setSearched(value);
|
|
15043
15375
|
};
|
|
15044
|
-
(0,
|
|
15376
|
+
(0, import_react43.useEffect)(() => {
|
|
15045
15377
|
setSearch(searched);
|
|
15046
15378
|
}, [searched]);
|
|
15047
15379
|
const onSubmit = () => {
|
|
@@ -15153,13 +15485,13 @@ var getInstance = (props) => {
|
|
|
15153
15485
|
var Submenu = (props) => {
|
|
15154
15486
|
const { item, close, setAppliedFilters, closeParent } = props;
|
|
15155
15487
|
const { open, isDynamic, itemSpacing, label, allowEmptySearch, getOptions: getOptions3 } = getInstance(props);
|
|
15156
|
-
const [options, setOptions] = (0,
|
|
15157
|
-
const [page, setPage] = (0,
|
|
15158
|
-
const [search, _setSearch] = (0,
|
|
15159
|
-
const [lastPage, setLastPage] = (0,
|
|
15160
|
-
const [loading, setLoading] = (0,
|
|
15161
|
-
const [, setFirstRender] = (0,
|
|
15162
|
-
const onSearch = (0,
|
|
15488
|
+
const [options, setOptions] = (0, import_react44.useState)([]);
|
|
15489
|
+
const [page, setPage] = (0, import_react44.useState)(1);
|
|
15490
|
+
const [search, _setSearch] = (0, import_react44.useState)("");
|
|
15491
|
+
const [lastPage, setLastPage] = (0, import_react44.useState)(false);
|
|
15492
|
+
const [loading, setLoading] = (0, import_react44.useState)(false);
|
|
15493
|
+
const [, setFirstRender] = (0, import_react44.useState)(true);
|
|
15494
|
+
const onSearch = (0, import_react44.useCallback)(async () => {
|
|
15163
15495
|
const { options: newOptions, lastPage: lastPage2 } = await getOptions3(search, page);
|
|
15164
15496
|
setLastPage(lastPage2);
|
|
15165
15497
|
setOptions([...newOptions]);
|
|
@@ -15174,12 +15506,12 @@ var Submenu = (props) => {
|
|
|
15174
15506
|
onSearch();
|
|
15175
15507
|
}
|
|
15176
15508
|
};
|
|
15177
|
-
(0,
|
|
15509
|
+
(0, import_react44.useEffect)(() => {
|
|
15178
15510
|
setOptions([]);
|
|
15179
15511
|
setSearch("", false);
|
|
15180
15512
|
setFirstRender(true);
|
|
15181
15513
|
}, [item]);
|
|
15182
|
-
(0,
|
|
15514
|
+
(0, import_react44.useEffect)(() => {
|
|
15183
15515
|
setFirstRender((firstRender) => {
|
|
15184
15516
|
if (!item || isDynamic && firstRender) {
|
|
15185
15517
|
setLoading(false);
|
|
@@ -15260,9 +15592,9 @@ var Submenu = (props) => {
|
|
|
15260
15592
|
loading,
|
|
15261
15593
|
emptyContent: isDynamic && options.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(EmptyMessage, { children: (() => {
|
|
15262
15594
|
if (search !== "") {
|
|
15263
|
-
return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
|
|
15595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(import_react44.default.Fragment, { children: "Nenhum resultado foi encontrado" });
|
|
15264
15596
|
}
|
|
15265
|
-
return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(
|
|
15597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(import_react44.default.Fragment, { children: [
|
|
15266
15598
|
"Utilize a busca para pesquisar por ",
|
|
15267
15599
|
/* @__PURE__ */ (0, import_jsx_runtime338.jsx)("br", {}),
|
|
15268
15600
|
label.text
|
|
@@ -15283,7 +15615,7 @@ var Submenu_default = Submenu;
|
|
|
15283
15615
|
var import_jsx_runtime339 = require("react/jsx-runtime");
|
|
15284
15616
|
var FiltersMenu = (props) => {
|
|
15285
15617
|
const { open, close } = props;
|
|
15286
|
-
const [active, setActive] = (0,
|
|
15618
|
+
const [active, setActive] = (0, import_react45.useState)(-1);
|
|
15287
15619
|
const items = props.items.map((item) => {
|
|
15288
15620
|
return {
|
|
15289
15621
|
label: typeof item.label === "string" ? item.label : item.label.element,
|
|
@@ -15297,7 +15629,7 @@ var FiltersMenu = (props) => {
|
|
|
15297
15629
|
};
|
|
15298
15630
|
});
|
|
15299
15631
|
const selected = active >= 0 && active < props.items.length ? props.items[active] : void 0;
|
|
15300
|
-
(0,
|
|
15632
|
+
(0, import_react45.useEffect)(() => {
|
|
15301
15633
|
if (open) return;
|
|
15302
15634
|
setActive(-1);
|
|
15303
15635
|
}, [open]);
|
|
@@ -15373,14 +15705,14 @@ var Filters = Object.assign(
|
|
|
15373
15705
|
var Filters_default = Filters;
|
|
15374
15706
|
|
|
15375
15707
|
// src/components/Grid/components/Col/index.tsx
|
|
15376
|
-
var
|
|
15708
|
+
var import_react47 = __toESM(require("react"));
|
|
15377
15709
|
|
|
15378
15710
|
// src/components/Grid/components/Row/context.ts
|
|
15379
|
-
var
|
|
15380
|
-
var Provider5 =
|
|
15711
|
+
var import_react46 = __toESM(require("react"));
|
|
15712
|
+
var Provider5 = import_react46.default.createContext({
|
|
15381
15713
|
cols: {}
|
|
15382
15714
|
});
|
|
15383
|
-
var useContext4 = () =>
|
|
15715
|
+
var useContext4 = () => import_react46.default.useContext(Provider5);
|
|
15384
15716
|
var context_default4 = Provider5;
|
|
15385
15717
|
|
|
15386
15718
|
// src/components/Grid/components/Col/styles.ts
|
|
@@ -15553,7 +15885,7 @@ var Col = import_styled_components53.default.div`
|
|
|
15553
15885
|
|
|
15554
15886
|
// src/components/Grid/components/Col/index.tsx
|
|
15555
15887
|
var import_jsx_runtime341 = require("react/jsx-runtime");
|
|
15556
|
-
var Col2 =
|
|
15888
|
+
var Col2 = import_react47.default.forwardRef((props, ref) => {
|
|
15557
15889
|
const context = useContext4();
|
|
15558
15890
|
const colProps = { ...context.cols, ...props };
|
|
15559
15891
|
const htmlProps = filterObject(colProps, [
|
|
@@ -15590,15 +15922,15 @@ Col2.displayName = "Col";
|
|
|
15590
15922
|
var Col_default = Col2;
|
|
15591
15923
|
|
|
15592
15924
|
// src/components/Grid/components/Grid/index.tsx
|
|
15593
|
-
var
|
|
15925
|
+
var import_react49 = __toESM(require("react"));
|
|
15594
15926
|
|
|
15595
15927
|
// src/components/Grid/components/Grid/context.ts
|
|
15596
|
-
var
|
|
15597
|
-
var Provider6 =
|
|
15928
|
+
var import_react48 = __toESM(require("react"));
|
|
15929
|
+
var Provider6 = import_react48.default.createContext({
|
|
15598
15930
|
rows: {},
|
|
15599
15931
|
cols: {}
|
|
15600
15932
|
});
|
|
15601
|
-
var useContext5 = () =>
|
|
15933
|
+
var useContext5 = () => import_react48.default.useContext(Provider6);
|
|
15602
15934
|
var context_default5 = Provider6;
|
|
15603
15935
|
|
|
15604
15936
|
// src/components/Grid/components/Grid/styles.ts
|
|
@@ -15631,7 +15963,7 @@ var Grid = import_styled_components54.default.div`
|
|
|
15631
15963
|
|
|
15632
15964
|
// src/components/Grid/components/Grid/index.tsx
|
|
15633
15965
|
var import_jsx_runtime342 = require("react/jsx-runtime");
|
|
15634
|
-
var Grid2 =
|
|
15966
|
+
var Grid2 = import_react49.default.forwardRef((props, ref) => {
|
|
15635
15967
|
const cols = props.cols || {};
|
|
15636
15968
|
const rows = props.rows || {};
|
|
15637
15969
|
const gridProps = filterObject(props, [
|
|
@@ -15654,7 +15986,7 @@ Grid2.displayName = "Grid";
|
|
|
15654
15986
|
var Grid_default2 = Grid2;
|
|
15655
15987
|
|
|
15656
15988
|
// src/components/Grid/components/Row/index.tsx
|
|
15657
|
-
var
|
|
15989
|
+
var import_react50 = __toESM(require("react"));
|
|
15658
15990
|
|
|
15659
15991
|
// src/components/Grid/components/Row/styles.ts
|
|
15660
15992
|
var import_styled_components55 = __toESM(require("styled-components"));
|
|
@@ -15781,7 +16113,7 @@ var Row = import_styled_components55.default.div`
|
|
|
15781
16113
|
|
|
15782
16114
|
// src/components/Grid/components/Row/index.tsx
|
|
15783
16115
|
var import_jsx_runtime343 = require("react/jsx-runtime");
|
|
15784
|
-
var Row2 =
|
|
16116
|
+
var Row2 = import_react50.default.forwardRef((props, ref) => {
|
|
15785
16117
|
const context = useContext5();
|
|
15786
16118
|
const cols = { ...context.cols, ...props.cols || {} };
|
|
15787
16119
|
const rowProps = { ...props, ...context.rows };
|
|
@@ -15825,15 +16157,15 @@ var Grid3 = Object.assign(Grid_default2, {
|
|
|
15825
16157
|
var Grid_default3 = Grid3;
|
|
15826
16158
|
|
|
15827
16159
|
// src/components/Modal/component.tsx
|
|
15828
|
-
var
|
|
16160
|
+
var import_react52 = require("react");
|
|
15829
16161
|
|
|
15830
16162
|
// src/addons/Portal/index.ts
|
|
15831
|
-
var
|
|
16163
|
+
var import_react51 = require("react");
|
|
15832
16164
|
var import_react_dom = require("react-dom");
|
|
15833
16165
|
var Portal = (props) => {
|
|
15834
16166
|
const { id, opened, children } = props;
|
|
15835
16167
|
const portalRoot = document.createElement("div");
|
|
15836
|
-
(0,
|
|
16168
|
+
(0, import_react51.useEffect)(() => {
|
|
15837
16169
|
if (opened) {
|
|
15838
16170
|
portalRoot.id = id + "-root";
|
|
15839
16171
|
document.body.appendChild(portalRoot);
|
|
@@ -15969,7 +16301,7 @@ var Modal = (props) => {
|
|
|
15969
16301
|
setOpen(false);
|
|
15970
16302
|
}
|
|
15971
16303
|
};
|
|
15972
|
-
(0,
|
|
16304
|
+
(0, import_react52.useEffect)(() => {
|
|
15973
16305
|
const onEscDown = (event) => {
|
|
15974
16306
|
if (closeOnEsc && event.key === "Escape") {
|
|
15975
16307
|
event.preventDefault();
|
|
@@ -16171,7 +16503,7 @@ var Modal2 = Object.assign(component_default, {
|
|
|
16171
16503
|
var Modal_default = Modal2;
|
|
16172
16504
|
|
|
16173
16505
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
16174
|
-
var
|
|
16506
|
+
var import_react53 = __toESM(require("react"));
|
|
16175
16507
|
|
|
16176
16508
|
// src/components/Placeholder/components/Template1/styles.ts
|
|
16177
16509
|
var import_styled_components60 = __toESM(require("styled-components"));
|
|
@@ -16231,7 +16563,7 @@ var MainLine = (0, import_styled_components60.default)(HeaderLine)`
|
|
|
16231
16563
|
// src/components/Placeholder/components/Template1/index.tsx
|
|
16232
16564
|
var import_jsx_runtime348 = require("react/jsx-runtime");
|
|
16233
16565
|
var Template1 = (props) => {
|
|
16234
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
|
|
16566
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(import_react53.default.Fragment, {});
|
|
16235
16567
|
return /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(Container15, { children: [
|
|
16236
16568
|
/* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(Header7, { children: [
|
|
16237
16569
|
/* @__PURE__ */ (0, import_jsx_runtime348.jsx)(HeaderImage, {}),
|
|
@@ -16252,7 +16584,7 @@ var Template1 = (props) => {
|
|
|
16252
16584
|
var Template1_default = Template1;
|
|
16253
16585
|
|
|
16254
16586
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
16255
|
-
var
|
|
16587
|
+
var import_react54 = __toESM(require("react"));
|
|
16256
16588
|
|
|
16257
16589
|
// src/components/Placeholder/components/Template2/styles.ts
|
|
16258
16590
|
var import_styled_components62 = __toESM(require("styled-components"));
|
|
@@ -16322,7 +16654,7 @@ var HeaderLine3 = (0, import_styled_components62.default)(HeaderLine2)``;
|
|
|
16322
16654
|
// src/components/Placeholder/components/Template2/index.tsx
|
|
16323
16655
|
var import_jsx_runtime349 = require("react/jsx-runtime");
|
|
16324
16656
|
var Template2 = (props) => {
|
|
16325
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(
|
|
16657
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(import_react54.default.Fragment, {});
|
|
16326
16658
|
return /* @__PURE__ */ (0, import_jsx_runtime349.jsxs)(Template2Container, { children: [
|
|
16327
16659
|
/* @__PURE__ */ (0, import_jsx_runtime349.jsxs)(Header8, { children: [
|
|
16328
16660
|
/* @__PURE__ */ (0, import_jsx_runtime349.jsx)(HeaderImage2, {}),
|
|
@@ -16340,7 +16672,7 @@ var Template2 = (props) => {
|
|
|
16340
16672
|
var Template2_default = Template2;
|
|
16341
16673
|
|
|
16342
16674
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
16343
|
-
var
|
|
16675
|
+
var import_react55 = __toESM(require("react"));
|
|
16344
16676
|
|
|
16345
16677
|
// src/components/Placeholder/components/Template3/styles.ts
|
|
16346
16678
|
var import_styled_components63 = __toESM(require("styled-components"));
|
|
@@ -16359,7 +16691,7 @@ var Template3Line = (0, import_styled_components63.default)(HeaderLine2)`
|
|
|
16359
16691
|
// src/components/Placeholder/components/Template3/index.tsx
|
|
16360
16692
|
var import_jsx_runtime350 = require("react/jsx-runtime");
|
|
16361
16693
|
var Template3 = (props) => {
|
|
16362
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(
|
|
16694
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(import_react55.default.Fragment, {});
|
|
16363
16695
|
return /* @__PURE__ */ (0, import_jsx_runtime350.jsxs)(Template3Container, { children: [
|
|
16364
16696
|
/* @__PURE__ */ (0, import_jsx_runtime350.jsx)(Template3Line, { $size: "large", $height: "7px", $color: "#DADADA" }),
|
|
16365
16697
|
/* @__PURE__ */ (0, import_jsx_runtime350.jsx)(Template3Line, { $size: "small", $height: "7px", $color: "#DADADA" }),
|
|
@@ -16371,7 +16703,7 @@ var Template3 = (props) => {
|
|
|
16371
16703
|
var Template3_default = Template3;
|
|
16372
16704
|
|
|
16373
16705
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16374
|
-
var
|
|
16706
|
+
var import_react56 = __toESM(require("react"));
|
|
16375
16707
|
|
|
16376
16708
|
// src/components/Placeholder/components/Template4/styles.ts
|
|
16377
16709
|
var import_styled_components64 = __toESM(require("styled-components"));
|
|
@@ -16419,7 +16751,7 @@ var CustomLine = (0, import_styled_components64.default)(HeaderLine4)`
|
|
|
16419
16751
|
// src/components/Placeholder/components/Template4/index.tsx
|
|
16420
16752
|
var import_jsx_runtime351 = require("react/jsx-runtime");
|
|
16421
16753
|
var Template4 = (props) => {
|
|
16422
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
16754
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_react56.default.Fragment, {});
|
|
16423
16755
|
return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(Template4Container, { children: [
|
|
16424
16756
|
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
16425
16757
|
CustomLine,
|
|
@@ -16498,7 +16830,7 @@ var Template4 = (props) => {
|
|
|
16498
16830
|
var Template4_default = Template4;
|
|
16499
16831
|
|
|
16500
16832
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16501
|
-
var
|
|
16833
|
+
var import_react57 = __toESM(require("react"));
|
|
16502
16834
|
|
|
16503
16835
|
// src/components/Placeholder/components/Template5/styles.ts
|
|
16504
16836
|
var import_styled_components65 = __toESM(require("styled-components"));
|
|
@@ -16557,7 +16889,7 @@ var MainContent3 = import_styled_components65.default.div`
|
|
|
16557
16889
|
// src/components/Placeholder/components/Template5/index.tsx
|
|
16558
16890
|
var import_jsx_runtime352 = require("react/jsx-runtime");
|
|
16559
16891
|
var Template5 = (props) => {
|
|
16560
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
|
|
16892
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(import_react57.default.Fragment, {});
|
|
16561
16893
|
return /* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(Container19, { children: [
|
|
16562
16894
|
/* @__PURE__ */ (0, import_jsx_runtime352.jsx)(Circle, {}),
|
|
16563
16895
|
/* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(MainContent3, { children: [
|
|
@@ -16603,7 +16935,7 @@ var Template5 = (props) => {
|
|
|
16603
16935
|
var Template5_default = Template5;
|
|
16604
16936
|
|
|
16605
16937
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16606
|
-
var
|
|
16938
|
+
var import_react58 = __toESM(require("react"));
|
|
16607
16939
|
|
|
16608
16940
|
// src/components/Placeholder/components/Template6/styles.ts
|
|
16609
16941
|
var import_styled_components66 = __toESM(require("styled-components"));
|
|
@@ -16661,7 +16993,7 @@ var CustomLine3 = (0, import_styled_components66.default)(HeaderLine6)`
|
|
|
16661
16993
|
// src/components/Placeholder/components/Template6/index.tsx
|
|
16662
16994
|
var import_jsx_runtime353 = require("react/jsx-runtime");
|
|
16663
16995
|
var Template6 = (props) => {
|
|
16664
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
|
|
16996
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(import_react58.default.Fragment, {});
|
|
16665
16997
|
return /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(Container20, { children: /* @__PURE__ */ (0, import_jsx_runtime353.jsxs)(Header9, { children: [
|
|
16666
16998
|
/* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
|
|
16667
16999
|
CustomLine3,
|
|
@@ -16695,7 +17027,7 @@ var Template6 = (props) => {
|
|
|
16695
17027
|
var Template6_default = Template6;
|
|
16696
17028
|
|
|
16697
17029
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16698
|
-
var
|
|
17030
|
+
var import_react59 = __toESM(require("react"));
|
|
16699
17031
|
|
|
16700
17032
|
// src/components/Placeholder/components/Template7/styles.ts
|
|
16701
17033
|
var import_styled_components67 = __toESM(require("styled-components"));
|
|
@@ -16763,7 +17095,7 @@ var Circle2 = import_styled_components67.default.div`
|
|
|
16763
17095
|
// src/components/Placeholder/components/Template7/index.tsx
|
|
16764
17096
|
var import_jsx_runtime354 = require("react/jsx-runtime");
|
|
16765
17097
|
var Template7 = (props) => {
|
|
16766
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
|
|
17098
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(import_react59.default.Fragment, {});
|
|
16767
17099
|
return /* @__PURE__ */ (0, import_jsx_runtime354.jsxs)(Container21, { children: [
|
|
16768
17100
|
/* @__PURE__ */ (0, import_jsx_runtime354.jsx)(Header10, { children: /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
|
|
16769
17101
|
CustomLine4,
|
|
@@ -16786,7 +17118,7 @@ var Template7 = (props) => {
|
|
|
16786
17118
|
var Template7_default = Template7;
|
|
16787
17119
|
|
|
16788
17120
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16789
|
-
var
|
|
17121
|
+
var import_react60 = __toESM(require("react"));
|
|
16790
17122
|
|
|
16791
17123
|
// src/components/Placeholder/components/Template8/styles.ts
|
|
16792
17124
|
var import_styled_components68 = __toESM(require("styled-components"));
|
|
@@ -16847,7 +17179,7 @@ var Main4 = import_styled_components68.default.div`
|
|
|
16847
17179
|
// src/components/Placeholder/components/Template8/index.tsx
|
|
16848
17180
|
var import_jsx_runtime355 = require("react/jsx-runtime");
|
|
16849
17181
|
var Template8 = (props) => {
|
|
16850
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
|
|
17182
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(import_react60.default.Fragment, {});
|
|
16851
17183
|
return /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(Container22, { children: [
|
|
16852
17184
|
/* @__PURE__ */ (0, import_jsx_runtime355.jsx)(Header11, { children: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
|
|
16853
17185
|
CustomLine5,
|
|
@@ -16883,7 +17215,7 @@ var Template8 = (props) => {
|
|
|
16883
17215
|
var Template8_default = Template8;
|
|
16884
17216
|
|
|
16885
17217
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16886
|
-
var
|
|
17218
|
+
var import_react61 = __toESM(require("react"));
|
|
16887
17219
|
|
|
16888
17220
|
// src/components/Placeholder/components/Template9/styles.ts
|
|
16889
17221
|
var import_styled_components69 = __toESM(require("styled-components"));
|
|
@@ -16951,7 +17283,7 @@ var Circle3 = import_styled_components69.default.div`
|
|
|
16951
17283
|
// src/components/Placeholder/components/Template9/index.tsx
|
|
16952
17284
|
var import_jsx_runtime356 = require("react/jsx-runtime");
|
|
16953
17285
|
var Template82 = (props) => {
|
|
16954
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
|
|
17286
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(import_react61.default.Fragment, {});
|
|
16955
17287
|
return /* @__PURE__ */ (0, import_jsx_runtime356.jsxs)(Container23, { children: [
|
|
16956
17288
|
/* @__PURE__ */ (0, import_jsx_runtime356.jsxs)(Header12, { children: [
|
|
16957
17289
|
/* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
|
|
@@ -16979,7 +17311,7 @@ var Template82 = (props) => {
|
|
|
16979
17311
|
var Template9_default = Template82;
|
|
16980
17312
|
|
|
16981
17313
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
16982
|
-
var
|
|
17314
|
+
var import_react62 = __toESM(require("react"));
|
|
16983
17315
|
|
|
16984
17316
|
// src/components/Placeholder/components/Template10/styles.ts
|
|
16985
17317
|
var import_styled_components70 = __toESM(require("styled-components"));
|
|
@@ -17051,7 +17383,7 @@ var Circle4 = import_styled_components70.default.div`
|
|
|
17051
17383
|
// src/components/Placeholder/components/Template10/index.tsx
|
|
17052
17384
|
var import_jsx_runtime357 = require("react/jsx-runtime");
|
|
17053
17385
|
var Template10 = (props) => {
|
|
17054
|
-
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
|
|
17386
|
+
if (!props.loading) return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(import_react62.default.Fragment, {});
|
|
17055
17387
|
return /* @__PURE__ */ (0, import_jsx_runtime357.jsxs)(Container24, { children: [
|
|
17056
17388
|
/* @__PURE__ */ (0, import_jsx_runtime357.jsxs)(Header13, { children: [
|
|
17057
17389
|
/* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
|
|
@@ -17265,7 +17597,7 @@ var ProgressBar = ({ type, value, ...props }) => {
|
|
|
17265
17597
|
var ProgressBar_default = ProgressBar;
|
|
17266
17598
|
|
|
17267
17599
|
// src/components/Signature/index.tsx
|
|
17268
|
-
var
|
|
17600
|
+
var import_react63 = require("react");
|
|
17269
17601
|
var import_react_signature_canvas = __toESM(require("react-signature-canvas"));
|
|
17270
17602
|
|
|
17271
17603
|
// src/components/Signature/styles.ts
|
|
@@ -17366,12 +17698,12 @@ var SignatureInput = ({
|
|
|
17366
17698
|
onEnd = voidFn,
|
|
17367
17699
|
...props
|
|
17368
17700
|
}) => {
|
|
17369
|
-
const [name, setName] = (0,
|
|
17370
|
-
const [font, setFont] = (0,
|
|
17371
|
-
const [showPlaceholder, setShowPlaceholder] = (0,
|
|
17372
|
-
const [loading, setLoading] = (0,
|
|
17373
|
-
const [ref, setRef] = (0,
|
|
17374
|
-
(0,
|
|
17701
|
+
const [name, setName] = (0, import_react63.useState)("");
|
|
17702
|
+
const [font, setFont] = (0, import_react63.useState)(FONTS[0]);
|
|
17703
|
+
const [showPlaceholder, setShowPlaceholder] = (0, import_react63.useState)(true);
|
|
17704
|
+
const [loading, setLoading] = (0, import_react63.useState)(false);
|
|
17705
|
+
const [ref, setRef] = (0, import_react63.useState)(null);
|
|
17706
|
+
(0, import_react63.useEffect)(() => {
|
|
17375
17707
|
if (!ref) return;
|
|
17376
17708
|
const refreshValue = () => {
|
|
17377
17709
|
if (ref.isEmpty() && !value) return;
|
|
@@ -17384,7 +17716,7 @@ var SignatureInput = ({
|
|
|
17384
17716
|
window.addEventListener("resize", refreshValue);
|
|
17385
17717
|
return () => window.removeEventListener("resize", refreshValue);
|
|
17386
17718
|
}, [ref, value]);
|
|
17387
|
-
const setByText = (0,
|
|
17719
|
+
const setByText = (0, import_react63.useCallback)(
|
|
17388
17720
|
async (name2, font2) => {
|
|
17389
17721
|
if (!ref) return;
|
|
17390
17722
|
const trimmed = name2.trim();
|
|
@@ -17413,14 +17745,14 @@ var SignatureInput = ({
|
|
|
17413
17745
|
},
|
|
17414
17746
|
[ref]
|
|
17415
17747
|
);
|
|
17416
|
-
const onBeginHandler = (0,
|
|
17748
|
+
const onBeginHandler = (0, import_react63.useCallback)(
|
|
17417
17749
|
(event) => {
|
|
17418
17750
|
onBegin(event, ref);
|
|
17419
17751
|
setShowPlaceholder(false);
|
|
17420
17752
|
},
|
|
17421
17753
|
[ref, onBegin]
|
|
17422
17754
|
);
|
|
17423
|
-
const onEndHandler = (0,
|
|
17755
|
+
const onEndHandler = (0, import_react63.useCallback)(
|
|
17424
17756
|
(event) => {
|
|
17425
17757
|
onEnd(event, ref);
|
|
17426
17758
|
if (!ref || ref.isEmpty()) return;
|
|
@@ -17428,17 +17760,17 @@ var SignatureInput = ({
|
|
|
17428
17760
|
},
|
|
17429
17761
|
[ref, onEnd]
|
|
17430
17762
|
);
|
|
17431
|
-
const onApplyHandler = (0,
|
|
17763
|
+
const onApplyHandler = (0, import_react63.useCallback)(() => {
|
|
17432
17764
|
setByText(name, font);
|
|
17433
17765
|
}, [name, font, setByText]);
|
|
17434
|
-
const onClearHandler = (0,
|
|
17766
|
+
const onClearHandler = (0, import_react63.useCallback)(() => {
|
|
17435
17767
|
if (!ref) return;
|
|
17436
17768
|
setShowPlaceholder(true);
|
|
17437
17769
|
setName("");
|
|
17438
17770
|
ref.clear();
|
|
17439
17771
|
setValue("");
|
|
17440
17772
|
}, [ref]);
|
|
17441
|
-
const empty = (0,
|
|
17773
|
+
const empty = (0, import_react63.useMemo)(() => !value && (!ref || ref.isEmpty()), [ref, value]);
|
|
17442
17774
|
return /* @__PURE__ */ (0, import_jsx_runtime360.jsxs)(Container26, { children: [
|
|
17443
17775
|
/* @__PURE__ */ (0, import_jsx_runtime360.jsx)(
|
|
17444
17776
|
Input_default,
|
|
@@ -17522,13 +17854,13 @@ var SignatureInput = ({
|
|
|
17522
17854
|
var Signature_default = SignatureInput;
|
|
17523
17855
|
|
|
17524
17856
|
// src/components/Tabs/index.tsx
|
|
17525
|
-
var
|
|
17857
|
+
var import_react69 = __toESM(require("react"));
|
|
17526
17858
|
|
|
17527
17859
|
// src/components/Tabs/components/ScrollButtons/index.tsx
|
|
17528
|
-
var
|
|
17860
|
+
var import_react65 = __toESM(require("react"));
|
|
17529
17861
|
|
|
17530
17862
|
// src/components/Tabs/components/ScrollButton/index.tsx
|
|
17531
|
-
var
|
|
17863
|
+
var import_react64 = require("react");
|
|
17532
17864
|
|
|
17533
17865
|
// src/components/Tabs/components/ScrollButton/styled.ts
|
|
17534
17866
|
var import_styled_components73 = __toESM(require("styled-components"));
|
|
@@ -17559,7 +17891,7 @@ var import_jsx_runtime361 = require("react/jsx-runtime");
|
|
|
17559
17891
|
var ScrollButton = (props) => {
|
|
17560
17892
|
const { mode, visible, scrollRef } = props;
|
|
17561
17893
|
const icon = `chevron_${mode}`;
|
|
17562
|
-
const onClick = (0,
|
|
17894
|
+
const onClick = (0, import_react64.useCallback)(() => {
|
|
17563
17895
|
if (!scrollRef) return;
|
|
17564
17896
|
scrollRef.scrollBy({
|
|
17565
17897
|
left: mode === "left" ? -(scrollRef.scrollWidth + 1) : scrollRef.scrollWidth,
|
|
@@ -17603,10 +17935,10 @@ var Container28 = import_styled_components74.default.div`
|
|
|
17603
17935
|
var import_jsx_runtime362 = require("react/jsx-runtime");
|
|
17604
17936
|
var ScrollButtons = (props) => {
|
|
17605
17937
|
const { activeTabIndex, tabsLength } = props;
|
|
17606
|
-
const [ref, setRef] = (0,
|
|
17607
|
-
const [showLeftArrow, setShowLeftArrow] = (0,
|
|
17608
|
-
const [showRightArrow, setShowRightArrow] = (0,
|
|
17609
|
-
const checkScrollPosition = (0,
|
|
17938
|
+
const [ref, setRef] = (0, import_react65.useState)(null);
|
|
17939
|
+
const [showLeftArrow, setShowLeftArrow] = (0, import_react65.useState)(false);
|
|
17940
|
+
const [showRightArrow, setShowRightArrow] = (0, import_react65.useState)(false);
|
|
17941
|
+
const checkScrollPosition = (0, import_react65.useCallback)(() => {
|
|
17610
17942
|
if (!ref) return;
|
|
17611
17943
|
if (ref.scrollWidth > ref.offsetWidth) {
|
|
17612
17944
|
const { scrollLeft, scrollWidth, clientWidth } = ref;
|
|
@@ -17617,12 +17949,12 @@ var ScrollButtons = (props) => {
|
|
|
17617
17949
|
setShowRightArrow(false);
|
|
17618
17950
|
}
|
|
17619
17951
|
}, [ref]);
|
|
17620
|
-
(0,
|
|
17952
|
+
(0, import_react65.useEffect)(() => {
|
|
17621
17953
|
checkScrollPosition();
|
|
17622
17954
|
window.addEventListener("resize", checkScrollPosition);
|
|
17623
17955
|
return () => window.removeEventListener("resize", checkScrollPosition);
|
|
17624
17956
|
}, [checkScrollPosition, tabsLength]);
|
|
17625
|
-
(0,
|
|
17957
|
+
(0, import_react65.useEffect)(() => {
|
|
17626
17958
|
if (!ref) return;
|
|
17627
17959
|
if (ref.scrollWidth <= ref.offsetWidth) return;
|
|
17628
17960
|
const element = ref.children[activeTabIndex];
|
|
@@ -17632,7 +17964,7 @@ var ScrollButtons = (props) => {
|
|
|
17632
17964
|
inline: "nearest"
|
|
17633
17965
|
});
|
|
17634
17966
|
}, [activeTabIndex, ref]);
|
|
17635
|
-
return /* @__PURE__ */ (0, import_jsx_runtime362.jsxs)(
|
|
17967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime362.jsxs)(import_react65.default.Fragment, { children: [
|
|
17636
17968
|
/* @__PURE__ */ (0, import_jsx_runtime362.jsx)(ScrollButton_default, { scrollRef: ref, mode: "left", visible: showLeftArrow }),
|
|
17637
17969
|
/* @__PURE__ */ (0, import_jsx_runtime362.jsx)(
|
|
17638
17970
|
Container28,
|
|
@@ -17655,7 +17987,7 @@ var ScrollButtons = (props) => {
|
|
|
17655
17987
|
var ScrollButtons_default = ScrollButtons;
|
|
17656
17988
|
|
|
17657
17989
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17658
|
-
var
|
|
17990
|
+
var import_react68 = __toESM(require("react"));
|
|
17659
17991
|
|
|
17660
17992
|
// src/components/Tabs/functions.ts
|
|
17661
17993
|
var sortTabs = (tabs, sorted = []) => {
|
|
@@ -17703,7 +18035,7 @@ var buildComponent = (component, provider) => {
|
|
|
17703
18035
|
};
|
|
17704
18036
|
|
|
17705
18037
|
// src/components/Tabs/components/TabItem/components/Close/index.tsx
|
|
17706
|
-
var
|
|
18038
|
+
var import_react66 = require("react");
|
|
17707
18039
|
|
|
17708
18040
|
// src/components/Tabs/components/TabItem/components/Close/styles.ts
|
|
17709
18041
|
var import_styled_components75 = __toESM(require("styled-components"));
|
|
@@ -17741,7 +18073,7 @@ var Close2 = (props) => {
|
|
|
17741
18073
|
options: [options, setOptions]
|
|
17742
18074
|
} = props;
|
|
17743
18075
|
const onClose = props.onClose || (() => true);
|
|
17744
|
-
const onClickClose = (0,
|
|
18076
|
+
const onClickClose = (0, import_react66.useCallback)(
|
|
17745
18077
|
async (event) => {
|
|
17746
18078
|
if (options.length === 1) return;
|
|
17747
18079
|
const newOptions = [...options];
|
|
@@ -17770,7 +18102,7 @@ var Close2 = (props) => {
|
|
|
17770
18102
|
var Close_default = Close2;
|
|
17771
18103
|
|
|
17772
18104
|
// src/components/Tabs/components/TabItem/components/LabelItem/index.tsx
|
|
17773
|
-
var
|
|
18105
|
+
var import_react67 = require("react");
|
|
17774
18106
|
|
|
17775
18107
|
// src/components/Tabs/components/TabItem/components/LabelItem/styled.ts
|
|
17776
18108
|
var import_styled_components76 = __toESM(require("styled-components"));
|
|
@@ -17826,7 +18158,7 @@ var StyledTab = import_styled_components76.default.div`
|
|
|
17826
18158
|
var import_jsx_runtime364 = require("react/jsx-runtime");
|
|
17827
18159
|
var LabelItem = (props) => {
|
|
17828
18160
|
const { children, onClick, primary, hasSiblings, internal } = props;
|
|
17829
|
-
const [ref, setRef] = (0,
|
|
18161
|
+
const [ref, setRef] = (0, import_react67.useState)(null);
|
|
17830
18162
|
return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
|
|
17831
18163
|
StyledTab,
|
|
17832
18164
|
{
|
|
@@ -17882,7 +18214,7 @@ var Container29 = import_styled_components77.default.div`
|
|
|
17882
18214
|
|
|
17883
18215
|
// src/components/Tabs/components/TabItem/index.tsx
|
|
17884
18216
|
var import_jsx_runtime365 = require("react/jsx-runtime");
|
|
17885
|
-
var VoidClose = () => /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
|
|
18217
|
+
var VoidClose = () => /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(import_react68.default.Fragment, {});
|
|
17886
18218
|
var TabItem = (props) => {
|
|
17887
18219
|
const {
|
|
17888
18220
|
active: [active, setActive],
|
|
@@ -17892,7 +18224,7 @@ var TabItem = (props) => {
|
|
|
17892
18224
|
alwaysOpen
|
|
17893
18225
|
} = props;
|
|
17894
18226
|
const CloseComponent = alwaysOpen || tabs.length < 2 ? VoidClose : Close_default;
|
|
17895
|
-
return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
|
|
18227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(import_react68.default.Fragment, { children: sortedTabs.map(({ index, ...tab }) => {
|
|
17896
18228
|
const isActive = index === active;
|
|
17897
18229
|
const hasSiblings = hasChildren(tabs, tab.group);
|
|
17898
18230
|
const canClose = !props.internal && (!tab.primary || !hasSiblings);
|
|
@@ -17988,11 +18320,11 @@ var Tabs = import_styled_components78.default.div`
|
|
|
17988
18320
|
|
|
17989
18321
|
// src/components/Tabs/index.tsx
|
|
17990
18322
|
var import_jsx_runtime366 = require("react/jsx-runtime");
|
|
17991
|
-
var VoidProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
|
|
18323
|
+
var VoidProvider = (props) => /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_react69.default.Fragment, { children: props.children });
|
|
17992
18324
|
var Component4 = (props) => {
|
|
17993
18325
|
const components = props.components || {};
|
|
17994
|
-
const [options, setOptions] = typeof props.options[1] === "function" ? props.options : (0,
|
|
17995
|
-
const [active, setActive] = Array.isArray(props.active) ? props.active : (0,
|
|
18326
|
+
const [options, setOptions] = typeof props.options[1] === "function" ? props.options : (0, import_react69.useState)(props.options);
|
|
18327
|
+
const [active, setActive] = Array.isArray(props.active) ? props.active : (0, import_react69.useState)(props.active);
|
|
17996
18328
|
const sortedTabs = sortTabs(options.map((tab, index) => ({ ...tab, index })));
|
|
17997
18329
|
const activeTabIndex = sortedTabs.findIndex((tab) => tab.index === active);
|
|
17998
18330
|
const divProps = filterObject(props, [
|
|
@@ -18006,7 +18338,7 @@ var Component4 = (props) => {
|
|
|
18006
18338
|
"delimiter",
|
|
18007
18339
|
"spacing"
|
|
18008
18340
|
]);
|
|
18009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime366.jsxs)(
|
|
18341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime366.jsxs)(import_react69.default.Fragment, { children: [
|
|
18010
18342
|
/* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
|
|
18011
18343
|
Tabs,
|
|
18012
18344
|
{
|
|
@@ -18039,7 +18371,7 @@ var Component4 = (props) => {
|
|
|
18039
18371
|
),
|
|
18040
18372
|
options.map((tab, index) => {
|
|
18041
18373
|
if (tab.component === void 0) {
|
|
18042
|
-
return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
|
|
18374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_react69.default.Fragment, {}, index);
|
|
18043
18375
|
}
|
|
18044
18376
|
const Component5 = components[tab.component];
|
|
18045
18377
|
const Provider7 = Component5.provider || VoidProvider;
|
|
@@ -18217,7 +18549,7 @@ var Toast = ({
|
|
|
18217
18549
|
var Toast_default = Toast;
|
|
18218
18550
|
|
|
18219
18551
|
// src/components/Zoom/index.tsx
|
|
18220
|
-
var
|
|
18552
|
+
var import_react70 = __toESM(require("react"));
|
|
18221
18553
|
|
|
18222
18554
|
// src/components/Zoom/styles.ts
|
|
18223
18555
|
var import_styled_components81 = __toESM(require("styled-components"));
|
|
@@ -18292,8 +18624,8 @@ var ModalContent = import_styled_components81.default.div`
|
|
|
18292
18624
|
var import_jsx_runtime369 = require("react/jsx-runtime");
|
|
18293
18625
|
var Zoom = (props) => {
|
|
18294
18626
|
const { src, width, height, ...imgProps } = props;
|
|
18295
|
-
const [modalOpened, setModalOpened] = (0,
|
|
18296
|
-
return /* @__PURE__ */ (0, import_jsx_runtime369.jsxs)(
|
|
18627
|
+
const [modalOpened, setModalOpened] = (0, import_react70.useState)(false);
|
|
18628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime369.jsxs)(import_react70.default.Fragment, { children: [
|
|
18297
18629
|
/* @__PURE__ */ (0, import_jsx_runtime369.jsxs)(
|
|
18298
18630
|
Container32,
|
|
18299
18631
|
{
|