@matbea-ui/matbea-ui 0.2.0-dev.102471 → 0.2.0-dev.140232

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.
@@ -1468,11 +1468,9 @@ const SelectField = React__default.forwardRef(({ options = [], value, defaultVal
1468
1468
  const data = React__default.useMemo(() => {
1469
1469
  if (searchInput && searchValue?.trim() !== "") {
1470
1470
  return options.filter((opt) => opt?.value
1471
- ?.toLocaleLowerCase()
1472
- ?.includes(searchValue.toLocaleLowerCase()) ||
1473
- opt?.label
1474
- ?.toLocaleLowerCase()
1475
- ?.includes(searchValue.toLocaleLowerCase()));
1471
+ ?.toLowerCase()
1472
+ .includes(searchValue.toLocaleLowerCase()) ||
1473
+ opt?.label?.toLowerCase().includes(searchValue.toLocaleLowerCase()));
1476
1474
  }
1477
1475
  return options;
1478
1476
  }, [options, searchInput, searchValue]);
@@ -2322,111 +2320,6 @@ const LangCountrySelect = ({ currentLang, currentCurrency, currentCountry, count
2322
2320
  ?.toLocaleUpperCase() }), jsxRuntime.jsx(LangCountrySelectArrow, { "$open": isOpen, size: 9 })] }), jsxRuntime.jsxs(LangCountrySelectDropdown, { "$open": isOpen, children: [jsxRuntime.jsx(SelectField, { placeholder: "", label: labelLang, options: languages, value: lang, onChange: setLang }), jsxRuntime.jsx(SelectField, { icon: includedCurrency?.icon, placeholder: "", label: labelCurrency, options: currencies, value: currency, onChange: setCurrency }), jsxRuntime.jsx(SelectField, { icon: includedCountry?.icon, placeholder: "", label: labelCountry, options: countries, value: country, onChange: setCountry, searchPlaceholder: searchPlaceholder, searchInput: true }), jsxRuntime.jsx(LangCountrySelectButton, { size: "medium", onClick: handleClickSave, children: saveText })] })] }));
2323
2321
  };
2324
2322
 
2325
- const convertToPixels = (value) => {
2326
- if (value === undefined)
2327
- return undefined;
2328
- return typeof value === "number" ? `${value}px` : value;
2329
- };
2330
-
2331
- const pulsate = styled.keyframes `
2332
- 0% {
2333
- opacity: 1;
2334
- }
2335
- 50% {
2336
- opacity: 0.4;
2337
- }
2338
- 100% {
2339
- opacity: 1;
2340
- }
2341
- `;
2342
- const wave = styled.keyframes `
2343
- 0% {
2344
- transform: translateX(-100%);
2345
- }
2346
- 50% {
2347
- transform: translateX(100%);
2348
- }
2349
- 100% {
2350
- transform: translateX(100%);
2351
- }
2352
- `;
2353
- const StyledSkeleton = styled.div `
2354
- display: block;
2355
- background-color: #e0e0e0;
2356
- width: ${({ $width }) => convertToPixels($width) || "auto"};
2357
- height: ${({ $height }) => convertToPixels($height) || "auto"};
2358
- border-radius: ${({ $borderRadius }) => convertToPixels($borderRadius)};
2359
-
2360
- ${({ $variant }) => $variant === "text" &&
2361
- styled.css `
2362
- height: 1em;
2363
- margin-bottom: 0.5em;
2364
- border-radius: 4px;
2365
- transform-origin: 0 55%;
2366
- transform: scale(1, 0.6);
2367
- `}
2368
-
2369
- ${({ $variant }) => $variant === "circular" &&
2370
- styled.css `
2371
- border-radius: 50%;
2372
- `}
2373
-
2374
- ${({ $variant }) => $variant === "rectangular" &&
2375
- styled.css `
2376
- border-radius: 4px;
2377
- `}
2378
-
2379
- /* Animation styles */
2380
- ${({ $animation }) => $animation === "pulse" &&
2381
- styled.css `
2382
- animation: ${pulsate} 1.5s ease-in-out infinite;
2383
- `}
2384
-
2385
- ${({ $animation }) => $animation === "wave" &&
2386
- styled.css `
2387
- position: relative;
2388
- overflow: hidden;
2389
- background-color: #f0f0f0;
2390
-
2391
- &::after {
2392
- content: "";
2393
- position: absolute;
2394
- top: 0;
2395
- right: 0;
2396
- bottom: 0;
2397
- left: 0;
2398
- background: linear-gradient(
2399
- 90deg,
2400
- transparent,
2401
- rgba(255, 255, 255, 0.5),
2402
- transparent
2403
- );
2404
- animation: ${wave} 1.6s linear infinite;
2405
- }
2406
- `}
2407
-
2408
- /* Dark theme support */
2409
- @media (prefers-color-scheme: dark) {
2410
- background-color: ${({ $animation }) => $animation === "wave" ? "#1a1a1a" : "#2a2a2a"};
2411
-
2412
- ${({ $animation }) => $animation === "wave" &&
2413
- styled.css `
2414
- &::after {
2415
- background: linear-gradient(
2416
- 90deg,
2417
- transparent,
2418
- rgba(255, 255, 255, 0.1),
2419
- transparent
2420
- );
2421
- }
2422
- `}
2423
- }
2424
- `;
2425
-
2426
- const Skeleton = ({ $variant, $width, $height, className, $animation = "pulse", $borderRadius, }) => {
2427
- return (jsxRuntime.jsx(StyledSkeleton, { "$variant": $variant, "$width": $width, "$height": $height, className: className, "$animation": $animation, "$borderRadius": $borderRadius, "aria-busy": "true", "aria-live": "polite" }));
2428
- };
2429
-
2430
2323
  const ApplicationDataStyled = styled.styled.div `
2431
2324
  display: flex;
2432
2325
  column-gap: 10px;
@@ -25133,7 +25026,6 @@ exports.SelectField = SelectField;
25133
25026
  exports.SendCryptoIcon = SendCryptoIcon;
25134
25027
  exports.SettingsIcon = SettingsIcon;
25135
25028
  exports.ShowUiIcon = ShowUiIcon;
25136
- exports.Skeleton = Skeleton;
25137
25029
  exports.SolanaIcon = SolanaIcon;
25138
25030
  exports.StellarIcon = StellarIcon;
25139
25031
  exports.StepnIcon = StepnIcon;