@ecohouse/ui 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +312 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -4
- package/dist/index.d.ts +40 -4
- package/dist/index.js +307 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.stories.tsx +5 -0
- package/src/components/Button/Button.tsx +34 -5
- package/src/components/Input/Input.tsx +6 -0
- package/src/components/LanguageSwitcher/LanguageSwitcher.tsx +1 -1
- package/src/components/RadioButton/RadioButton.stories.tsx +64 -0
- package/src/components/RadioButton/RadioButton.tsx +135 -0
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/SegmentedToggle/SegmentedToggle.tsx +21 -1
- package/src/components/Select/Select.tsx +12 -3
- package/src/components/index.ts +3 -0
- package/src/icons/Amenity/amenityPaths.ts +3 -10
- package/src/icons/Dram/DramIcon.tsx +14 -0
- package/src/icons/Dram/DramIcon.web.tsx +20 -0
- package/src/icons/Dram/dramPath.ts +2 -0
- package/src/icons/Dram/index.ts +1 -0
- package/src/icons/HouseRules/houseRulesPaths.ts +3 -3
- package/src/icons/MoonStars/MoonStarsIcon.tsx +27 -0
- package/src/icons/MoonStars/MoonStarsIcon.web.tsx +33 -0
- package/src/icons/MoonStars/index.ts +6 -0
- package/src/icons/MoonStars/moonStarsPaths.ts +7 -0
- package/src/icons/NoPets/NoPetsIcon.tsx +23 -0
- package/src/icons/NoPets/NoPetsIcon.web.tsx +29 -0
- package/src/icons/NoPets/index.ts +1 -0
- package/src/icons/NoPets/noPetsPaths.ts +8 -0
- package/src/icons/StarOutline/StarOutlineIcon.tsx +24 -0
- package/src/icons/StarOutline/StarOutlineIcon.web.tsx +30 -0
- package/src/icons/StarOutline/index.ts +1 -0
- package/src/icons/StarOutline/starOutlinePath.ts +2 -0
- package/src/icons/Sun/SunIcon.tsx +20 -0
- package/src/icons/Sun/SunIcon.web.tsx +26 -0
- package/src/icons/Sun/index.ts +1 -0
- package/src/icons/Sun/sunPath.ts +2 -0
- package/src/icons/Washer/WasherIcon.tsx +25 -0
- package/src/icons/Washer/WasherIcon.web.tsx +31 -0
- package/src/icons/Washer/index.ts +1 -0
- package/src/icons/Washer/washerPaths.ts +28 -0
- package/src/icons/index.ts +6 -0
- package/src/icons/registry.ts +18 -0
- package/src/index.ts +9 -0
package/dist/index.cjs
CHANGED
|
@@ -9455,15 +9455,15 @@ var require_react_dom_development = __commonJS({
|
|
|
9455
9455
|
};
|
|
9456
9456
|
}
|
|
9457
9457
|
var warnValidStyle$1 = warnValidStyle;
|
|
9458
|
-
function createDangerousStringForStyles(
|
|
9458
|
+
function createDangerousStringForStyles(styles41) {
|
|
9459
9459
|
{
|
|
9460
9460
|
var serialized = "";
|
|
9461
9461
|
var delimiter = "";
|
|
9462
|
-
for (var styleName in
|
|
9463
|
-
if (!
|
|
9462
|
+
for (var styleName in styles41) {
|
|
9463
|
+
if (!styles41.hasOwnProperty(styleName)) {
|
|
9464
9464
|
continue;
|
|
9465
9465
|
}
|
|
9466
|
-
var styleValue =
|
|
9466
|
+
var styleValue = styles41[styleName];
|
|
9467
9467
|
if (styleValue != null) {
|
|
9468
9468
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
9469
9469
|
serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ":";
|
|
@@ -9474,19 +9474,19 @@ var require_react_dom_development = __commonJS({
|
|
|
9474
9474
|
return serialized || null;
|
|
9475
9475
|
}
|
|
9476
9476
|
}
|
|
9477
|
-
function setValueForStyles(node,
|
|
9477
|
+
function setValueForStyles(node, styles41) {
|
|
9478
9478
|
var style2 = node.style;
|
|
9479
|
-
for (var styleName in
|
|
9480
|
-
if (!
|
|
9479
|
+
for (var styleName in styles41) {
|
|
9480
|
+
if (!styles41.hasOwnProperty(styleName)) {
|
|
9481
9481
|
continue;
|
|
9482
9482
|
}
|
|
9483
9483
|
var isCustomProperty = styleName.indexOf("--") === 0;
|
|
9484
9484
|
{
|
|
9485
9485
|
if (!isCustomProperty) {
|
|
9486
|
-
warnValidStyle$1(styleName,
|
|
9486
|
+
warnValidStyle$1(styleName, styles41[styleName]);
|
|
9487
9487
|
}
|
|
9488
9488
|
}
|
|
9489
|
-
var styleValue = dangerousStyleValue(styleName,
|
|
9489
|
+
var styleValue = dangerousStyleValue(styleName, styles41[styleName], isCustomProperty);
|
|
9490
9490
|
if (styleName === "float") {
|
|
9491
9491
|
styleName = "cssFloat";
|
|
9492
9492
|
}
|
|
@@ -9500,9 +9500,9 @@ var require_react_dom_development = __commonJS({
|
|
|
9500
9500
|
function isValueEmpty(value) {
|
|
9501
9501
|
return value == null || typeof value === "boolean" || value === "";
|
|
9502
9502
|
}
|
|
9503
|
-
function expandShorthandMap(
|
|
9503
|
+
function expandShorthandMap(styles41) {
|
|
9504
9504
|
var expanded = {};
|
|
9505
|
-
for (var key in
|
|
9505
|
+
for (var key in styles41) {
|
|
9506
9506
|
var longhands = shorthandToLonghand[key] || [key];
|
|
9507
9507
|
for (var i = 0; i < longhands.length; i++) {
|
|
9508
9508
|
expanded[longhands[i]] = key;
|
|
@@ -29333,10 +29333,10 @@ function TooltipArrowIcon({ size = 10, color = colors.grey600 }) {
|
|
|
29333
29333
|
// src/icons/HouseRules/houseRulesPaths.ts
|
|
29334
29334
|
var QUIET_HOURS_PATH = "M9.99935 4.99996C9.88991 4.99993 9.78153 5.02147 9.68042 5.06334C9.5793 5.1052 9.48742 5.16659 9.41003 5.24397C9.33265 5.32136 9.27126 5.41324 9.2294 5.51436C9.18753 5.61547 9.16599 5.72385 9.16602 5.83329V8.55628L8.2513 8.02812C8.05987 7.91775 7.83243 7.88791 7.61901 7.94518C7.40558 8.00245 7.22363 8.14213 7.11316 8.33351C7.00269 8.52489 6.97274 8.7523 7.0299 8.96576C7.08706 9.17921 7.22665 9.36123 7.41797 9.4718L9.58269 10.7218C9.70938 10.7949 9.8531 10.8335 9.99939 10.8334C10.1457 10.8334 10.2894 10.7949 10.4161 10.7218C10.5428 10.6486 10.648 10.5434 10.7211 10.4167C10.7942 10.29 10.8327 10.1463 10.8327 9.99996V5.83329C10.8327 5.72385 10.8112 5.61547 10.7693 5.51436C10.7274 5.41324 10.6661 5.32136 10.5887 5.24397C10.5113 5.16659 10.4194 5.1052 10.3183 5.06334C10.2172 5.02147 10.1088 4.99993 9.99935 4.99996V4.99996ZM9.99935 1.66663C8.35118 1.66663 6.74001 2.15537 5.3696 3.07105C3.99919 3.98672 2.93109 5.28821 2.30036 6.81093C1.66963 8.33365 1.5046 10.0092 1.82614 11.6257C2.14769 13.2422 2.94136 14.7271 4.1068 15.8925C5.27223 17.058 6.75709 17.8516 8.3736 18.1732C9.99011 18.4947 11.6657 18.3297 13.1884 17.699C14.7111 17.0682 16.0126 16.0001 16.9283 14.6297C17.8439 13.2593 18.3327 11.6481 18.3327 9.99996C18.3302 7.7906 17.4514 5.67245 15.8891 4.11019C14.3269 2.54794 12.2087 1.66915 9.99935 1.66663V1.66663ZM9.99935 16.6666C8.68081 16.6666 7.39188 16.2756 6.29555 15.5431C5.19922 14.8105 4.34474 13.7694 3.84016 12.5512C3.33557 11.333 3.20355 9.99256 3.46078 8.69936C3.71802 7.40615 4.35296 6.21826 5.28531 5.28591C6.21766 4.35356 7.40554 3.71863 8.69875 3.46139C9.99196 3.20416 11.3324 3.33618 12.5506 3.84076C13.7687 4.34535 14.8099 5.19983 15.5425 6.29616C16.275 7.39249 16.666 8.68142 16.666 9.99996C16.664 11.7674 15.961 13.462 14.7112 14.7118C13.4614 15.9616 11.7668 16.6646 9.99935 16.6666V16.6666Z";
|
|
29335
29335
|
var NO_SMOKING_PATHS = [
|
|
29336
|
-
"M6.
|
|
29337
|
-
"M13.
|
|
29336
|
+
"M6.66797 10.834V14.1673",
|
|
29337
|
+
"M13.332 4.16602V4.58268C13.332 5.02471 13.5076 5.44863 13.8202 5.76119C14.1327 6.07375 14.5567 6.24935 14.9987 6.24935C15.4407 6.24935 15.8646 6.42494 16.1772 6.7375C16.4898 7.05007 16.6654 7.47399 16.6654 7.91602V8.33268",
|
|
29338
29338
|
"M2.5 2.5L17.5 17.5",
|
|
29339
|
-
"M14.1667 10.
|
|
29339
|
+
"M14.1667 10.834H16.6667C16.8877 10.834 17.0996 10.9218 17.2559 11.0781C17.4122 11.2343 17.5 11.4463 17.5 11.6673V13.334C17.5 13.5673 17.4042 13.7782 17.25 13.929M14.1667 14.1673H3.33333C3.11232 14.1673 2.90036 14.0795 2.74408 13.9232C2.5878 13.767 2.5 13.555 2.5 13.334V11.6673C2.5 11.4463 2.5878 11.2343 2.74408 11.0781C2.90036 10.9218 3.11232 10.834 3.33333 10.834H10.8333"
|
|
29340
29340
|
];
|
|
29341
29341
|
var PAW_PATHS = [
|
|
29342
29342
|
"M12.25 11.25C11.3334 9.58329 11.0492 9.16663 10.0001 9.16663C8.95088 9.16663 8.55338 9.79579 7.63672 11.4558C6.85172 12.875 5.26505 12.9933 4.86922 14.1983C4.78838 14.4191 4.74838 14.7625 4.75005 15C4.75005 15.98 5.40588 16.6666 6.25005 16.6666C7.29922 16.6666 8.75005 15.8333 10.0001 15.8333C11.2501 15.8333 12.7009 16.6666 13.7501 16.6666C14.5942 16.6666 15.25 15.9808 15.25 15C15.25 14.7625 15.2092 14.4191 15.1284 14.1983C14.7325 12.9891 13.035 12.6691 12.25 11.25Z",
|
|
@@ -29436,6 +29436,12 @@ function DollarIcon({ size = 14, color = colors.grey0 }) {
|
|
|
29436
29436
|
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size * 8 / 14, height: size, viewBox: "0 0 8 14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(Svg23.Path, { d: DOLLAR_PATH, fill: color }) });
|
|
29437
29437
|
}
|
|
29438
29438
|
|
|
29439
|
+
// src/icons/Dram/dramPath.ts
|
|
29440
|
+
var DRAM_PATH = "M8.72034 11.584H6.78434V4.06398C6.78434 3.23198 6.58168 2.61332 6.17634 2.20798C5.77101 1.80265 5.16834 1.59998 4.36834 1.59998C3.81368 1.59998 3.35501 1.70665 2.99234 1.91998C2.64034 2.12265 2.37901 2.44265 2.20834 2.87998C2.03768 3.31732 1.95234 3.88265 1.95234 4.57598H0.0003438C0.0003438 3.63732 0.160344 2.82665 0.480344 2.14398C0.811011 1.45065 1.30168 0.922651 1.95234 0.559984C2.61368 0.186651 3.43501 -1.62125e-05 4.41634 -1.62125e-05C5.34434 -1.62125e-05 6.12834 0.17065 6.76834 0.511984C7.41901 0.842651 7.90434 1.32798 8.22434 1.96798C8.55501 2.59732 8.72034 3.34932 8.72034 4.22398V11.584ZM4.67234 4.81598H10.8323V6.03198H4.67234V4.81598ZM4.67234 7.08798H10.8323V8.31998H4.67234V7.08798Z";
|
|
29441
|
+
function DramIcon({ size = 12, color = colors.grey0 }) {
|
|
29442
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size * 11 / 12, height: size, viewBox: "0 0 11 12", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(Svg23.Path, { d: DRAM_PATH, fill: color }) });
|
|
29443
|
+
}
|
|
29444
|
+
|
|
29439
29445
|
// src/icons/DragHandle/dragHandlePath.ts
|
|
29440
29446
|
var DRAG_HANDLE_PATH = "M1 3.5C0.802219 3.5 0.60888 3.55865 0.44443 3.66853C0.279981 3.77841 0.151809 3.93459 0.0761209 4.11732C0.000433281 4.30004 -0.0193701 4.50111 0.0192152 4.69509C0.0578004 4.88907 0.153041 5.06725 0.292894 5.20711C0.432746 5.34696 0.610929 5.4422 0.80491 5.48079C0.998891 5.51937 1.19996 5.49957 1.38268 5.42388C1.56541 5.34819 1.72159 5.22002 1.83147 5.05557C1.94135 4.89112 2 4.69778 2 4.5C2 4.23478 1.89464 3.98043 1.70711 3.79289C1.51957 3.60536 1.26522 3.5 1 3.5ZM1 7C0.802219 7 0.60888 7.05865 0.44443 7.16853C0.279981 7.27841 0.151809 7.43459 0.0761209 7.61732C0.000433281 7.80004 -0.0193701 8.00111 0.0192152 8.19509C0.0578004 8.38907 0.153041 8.56725 0.292894 8.70711C0.432746 8.84696 0.610929 8.9422 0.80491 8.98079C0.998891 9.01937 1.19996 8.99957 1.38268 8.92388C1.56541 8.84819 1.72159 8.72002 1.83147 8.55557C1.94135 8.39112 2 8.19778 2 8C2 7.73478 1.89464 7.48043 1.70711 7.29289C1.51957 7.10536 1.26522 7 1 7ZM4.5 2C4.69778 2 4.89112 1.94135 5.05557 1.83147C5.22002 1.72159 5.34819 1.56541 5.42388 1.38268C5.49957 1.19996 5.51937 0.998891 5.48079 0.80491C5.4422 0.610929 5.34696 0.432746 5.20711 0.292894C5.06725 0.153041 4.88907 0.0578004 4.69509 0.0192152C4.50111 -0.0193701 4.30004 0.000433281 4.11732 0.0761209C3.93459 0.151809 3.77841 0.279981 3.66853 0.44443C3.55865 0.608879 3.5 0.802219 3.5 1C3.5 1.26522 3.60536 1.51957 3.79289 1.70711C3.98043 1.89464 4.23478 2 4.5 2ZM1 4.19685e-07C0.802219 4.19685e-07 0.60888 0.0586494 0.44443 0.168531C0.279981 0.278412 0.151809 0.434591 0.0761209 0.617317C0.000433281 0.800043 -0.0193701 1.00111 0.0192152 1.19509C0.0578004 1.38907 0.153041 1.56725 0.292894 1.70711C0.432746 1.84696 0.610929 1.9422 0.80491 1.98079C0.998891 2.01937 1.19996 1.99957 1.38268 1.92388C1.56541 1.84819 1.72159 1.72002 1.83147 1.55557C1.94135 1.39112 2 1.19778 2 1C2 0.734784 1.89464 0.48043 1.70711 0.292894C1.51957 0.105357 1.26522 4.19685e-07 1 4.19685e-07ZM4.5 7C4.30222 7 4.10888 7.05865 3.94443 7.16853C3.77998 7.27841 3.65181 7.43459 3.57612 7.61732C3.50043 7.80004 3.48063 8.00111 3.51922 8.19509C3.5578 8.38907 3.65304 8.56725 3.79289 8.70711C3.93275 8.84696 4.11093 8.9422 4.30491 8.98079C4.49889 9.01937 4.69996 8.99957 4.88268 8.92388C5.06541 8.84819 5.22159 8.72002 5.33147 8.55557C5.44135 8.39112 5.5 8.19778 5.5 8C5.5 7.73478 5.39464 7.48043 5.20711 7.29289C5.01957 7.10536 4.76522 7 4.5 7V7ZM4.5 3.5C4.30222 3.5 4.10888 3.55865 3.94443 3.66853C3.77998 3.77841 3.65181 3.93459 3.57612 4.11732C3.50043 4.30004 3.48063 4.50111 3.51922 4.69509C3.5578 4.88907 3.65304 5.06725 3.79289 5.20711C3.93275 5.34696 4.11093 5.4422 4.30491 5.48079C4.49889 5.51937 4.69996 5.49957 4.88268 5.42388C5.06541 5.34819 5.22159 5.22002 5.33147 5.05557C5.44135 4.89112 5.5 4.69778 5.5 4.5C5.5 4.23478 5.39464 3.98043 5.20711 3.79289C5.01957 3.60536 4.76522 3.5 4.5 3.5V3.5Z";
|
|
29441
29447
|
function DragHandleIcon({ size = 9, color = colors.white }) {
|
|
@@ -29793,6 +29799,34 @@ function MinusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
|
|
|
29793
29799
|
) });
|
|
29794
29800
|
}
|
|
29795
29801
|
|
|
29802
|
+
// src/icons/MoonStars/moonStarsPaths.ts
|
|
29803
|
+
var MOON_STARS_SPARKLE_PATH = "M11.4167 0.75L11.8285 1.57372C12.0055 1.92771 12.094 2.1047 12.2122 2.25808C12.3171 2.39417 12.4392 2.51618 12.5753 2.62109C12.7286 2.73932 12.9056 2.82781 13.2596 3.00481L14.0833 3.41667L13.2596 3.82853C12.9056 4.00552 12.7286 4.09402 12.5753 4.21224C12.4392 4.31715 12.3171 4.43916 12.2122 4.57526C12.094 4.72863 12.0055 4.90563 11.8285 5.25961L11.4167 6.08333L11.0048 5.25961C10.8278 4.90563 10.7393 4.72863 10.6211 4.57526C10.5162 4.43916 10.3942 4.31715 10.2581 4.21224C10.1047 4.09402 9.92771 4.00552 9.57372 3.82853L8.75 3.41667L9.57372 3.00481C9.92771 2.82781 10.1047 2.73932 10.2581 2.62109C10.3942 2.51618 10.5162 2.39417 10.6211 2.25808C10.7393 2.1047 10.8278 1.92771 11.0048 1.57372L11.4167 0.75Z";
|
|
29804
|
+
var MOON_STARS_MOON_PATH = "M13.4167 8.34286C12.5427 9.876 10.893 10.9097 9.00196 10.9097C6.19739 10.9097 3.92383 8.63612 3.92383 5.83155C3.92383 3.94036 4.95766 2.29063 6.491 1.41667C3.26986 1.72208 0.75 4.43461 0.75 7.73569C0.75 11.2414 3.59195 14.0833 7.09766 14.0833C10.3986 14.0833 13.111 11.5637 13.4167 8.34286Z";
|
|
29805
|
+
function MoonStarsIcon({ size = 15, color = colors.primary, strokeWidth = 1.5 }) {
|
|
29806
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Svg23__default.default, { width: size, height: size, viewBox: "0 0 15 15", fill: "none", children: [
|
|
29807
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29808
|
+
Svg23.Path,
|
|
29809
|
+
{
|
|
29810
|
+
d: MOON_STARS_SPARKLE_PATH,
|
|
29811
|
+
stroke: color,
|
|
29812
|
+
strokeWidth,
|
|
29813
|
+
strokeLinecap: "round",
|
|
29814
|
+
strokeLinejoin: "round"
|
|
29815
|
+
}
|
|
29816
|
+
),
|
|
29817
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29818
|
+
Svg23.Path,
|
|
29819
|
+
{
|
|
29820
|
+
d: MOON_STARS_MOON_PATH,
|
|
29821
|
+
stroke: color,
|
|
29822
|
+
strokeWidth,
|
|
29823
|
+
strokeLinecap: "round",
|
|
29824
|
+
strokeLinejoin: "round"
|
|
29825
|
+
}
|
|
29826
|
+
)
|
|
29827
|
+
] });
|
|
29828
|
+
}
|
|
29829
|
+
|
|
29796
29830
|
// src/icons/MoreHorizontal/moreHorizontalPath.ts
|
|
29797
29831
|
var MORE_HORIZONTAL_PATH = "M6.33333 2.33333C6.70152 2.33333 7 2.03486 7 1.66667C7 1.29848 6.70152 1 6.33333 1C5.96514 1 5.66667 1.29848 5.66667 1.66667C5.66667 2.03486 5.96514 2.33333 6.33333 2.33333ZM11 2.33333C11.3682 2.33333 11.6667 2.03486 11.6667 1.66667C11.6667 1.29848 11.3682 1 11 1C10.6318 1 10.3333 1.29848 10.3333 1.66667C10.3333 2.03486 10.6318 2.33333 11 2.33333ZM1.66667 2.33333C2.03486 2.33333 2.33333 2.03486 2.33333 1.66667C2.33333 1.29848 2.03486 1 1.66667 1C1.29848 1 1 1.29848 1 1.66667C1 2.03486 1.29848 2.33333 1.66667 2.33333Z";
|
|
29798
29832
|
var ASPECT_RATIO = 4 / 13;
|
|
@@ -29828,6 +29862,29 @@ function NavigateIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
|
29828
29862
|
) });
|
|
29829
29863
|
}
|
|
29830
29864
|
|
|
29865
|
+
// src/icons/NoPets/noPetsPaths.ts
|
|
29866
|
+
var NO_PETS_PATHS = [
|
|
29867
|
+
"M9.30729 9.29492C8.71562 9.55326 8.32062 10.2174 7.64062 11.4558C6.85562 12.8749 5.26896 12.9933 4.87312 14.1983C4.79229 14.4191 4.75229 14.7624 4.75396 14.9999C4.75396 15.9799 5.40979 16.6666 6.25396 16.6666C7.30312 16.6666 8.75396 15.8333 10.004 15.8333C11.254 15.8333 12.7048 16.6666 13.754 16.6666C14.5265 16.6666 15.1406 16.0924 15.2398 15.2433",
|
|
29868
|
+
"M16.8222 6.73435C16.7151 6.6891 16.6001 6.66586 16.4838 6.66602H16.4713C15.8588 6.67602 15.1713 7.29102 14.8105 8.22102C14.378 9.33352 14.5772 10.471 15.2588 10.7643C15.3663 10.8102 15.4813 10.8327 15.5972 10.8327C16.213 10.8327 16.9097 10.2143 17.273 9.27768C17.703 8.16518 17.4997 7.02768 16.8222 6.73435Z",
|
|
29869
|
+
"M9.16562 5.82732C9.17486 5.62532 9.16369 5.42291 9.13229 5.22315C8.96312 4.14232 8.25979 3.33398 7.52229 3.33398C7.29304 3.33531 7.07077 3.41301 6.89062 3.55482",
|
|
29870
|
+
"M13.7119 5.61149C13.8903 4.46482 13.3994 3.44982 12.6119 3.34315C12.5672 3.33696 12.5221 3.3339 12.4769 3.33399C11.7394 3.33399 11.0369 4.14232 10.8686 5.22315C10.6903 6.36982 11.1811 7.38482 11.9686 7.49149C12.0136 7.49732 12.0586 7.50065 12.1036 7.50065C12.8411 7.50065 13.5453 6.68899 13.7119 5.61149Z",
|
|
29871
|
+
"M4.74152 10.7643C5.42152 10.471 5.61985 9.33185 5.18819 8.22102C4.82485 7.28435 4.12902 6.66602 3.51402 6.66602C3.39735 6.66602 3.28319 6.68852 3.17485 6.73435C2.49485 7.02768 2.29652 8.16685 2.72819 9.27768C3.09152 10.2143 3.78735 10.8327 4.40235 10.8327C4.51902 10.8327 4.63319 10.8102 4.74152 10.7643Z",
|
|
29872
|
+
"M2.5 2.5L17.5 17.5"
|
|
29873
|
+
];
|
|
29874
|
+
function NoPetsIcon({ size = 20, color = colors.white, strokeWidth = 1.5 }) {
|
|
29875
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: NO_PETS_PATHS.map((path, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
29876
|
+
Svg23.Path,
|
|
29877
|
+
{
|
|
29878
|
+
d: path,
|
|
29879
|
+
stroke: color,
|
|
29880
|
+
strokeWidth,
|
|
29881
|
+
strokeLinecap: "round",
|
|
29882
|
+
strokeLinejoin: "round"
|
|
29883
|
+
},
|
|
29884
|
+
`no-pets-${index}`
|
|
29885
|
+
)) });
|
|
29886
|
+
}
|
|
29887
|
+
|
|
29831
29888
|
// src/icons/Phone/phonePath.ts
|
|
29832
29889
|
var PHONE_PATH = "M7.91872 3.54768C7.66561 2.91492 7.05276 2.5 6.37126 2.5H4.07895C3.20692 2.5 2.5 3.20675 2.5 4.07878C2.5 11.491 8.50898 17.5 15.9212 17.5C16.7933 17.5 17.5 16.793 17.5 15.921L17.5004 13.6283C17.5004 12.9468 17.0856 12.334 16.4528 12.0809L14.2558 11.2024C13.6874 10.9751 13.0402 11.0774 12.57 11.4693L12.0029 11.9422C11.3407 12.4941 10.3664 12.4502 9.75683 11.8407L8.16018 10.2425C7.55066 9.63302 7.50561 8.65945 8.05745 7.99724L8.53027 7.43025C8.92218 6.95996 9.02541 6.31263 8.79805 5.74424L7.91872 3.54768Z";
|
|
29833
29890
|
function PhoneIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
|
|
@@ -30038,6 +30095,40 @@ function StarFilledIcon({
|
|
|
30038
30095
|
) });
|
|
30039
30096
|
}
|
|
30040
30097
|
|
|
30098
|
+
// src/icons/StarOutline/starOutlinePath.ts
|
|
30099
|
+
var STAR_OUTLINE_PATH = "M12.0002 3.67578L14.546 8.83423L20.2387 9.66143L16.1195 13.6767L17.092 19.3463L12.0002 16.6696L6.90856 19.3463L7.88098 13.6767L3.76172 9.66143L9.45441 8.83423L12.0002 3.67578Z";
|
|
30100
|
+
function StarOutlineIcon({
|
|
30101
|
+
size = 24,
|
|
30102
|
+
color = colors.grey200,
|
|
30103
|
+
strokeWidth = 1.35
|
|
30104
|
+
}) {
|
|
30105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30106
|
+
Svg23.Path,
|
|
30107
|
+
{
|
|
30108
|
+
d: STAR_OUTLINE_PATH,
|
|
30109
|
+
stroke: color,
|
|
30110
|
+
strokeWidth,
|
|
30111
|
+
strokeLinecap: "round",
|
|
30112
|
+
strokeLinejoin: "round"
|
|
30113
|
+
}
|
|
30114
|
+
) });
|
|
30115
|
+
}
|
|
30116
|
+
|
|
30117
|
+
// src/icons/Sun/sunPath.ts
|
|
30118
|
+
var SUN_PATH = "M8 1.33333V2.66667M8 13.3333V14.6667M1.33333 8H2.66667M13.3333 8H14.6667M3.28667 3.28667L4.22667 4.22667M11.7733 11.7733L12.7133 12.7133M12.7133 3.28667L11.7733 4.22667M4.22667 11.7733L3.28667 12.7133M10.6667 8C10.6667 9.47276 9.47276 10.6667 8 10.6667C6.52724 10.6667 5.33333 9.47276 5.33333 8C5.33333 6.52724 6.52724 5.33333 8 5.33333C9.47276 5.33333 10.6667 6.52724 10.6667 8Z";
|
|
30119
|
+
function SunIcon({ size = 16, color = colors.primary, strokeWidth = 1.5 }) {
|
|
30120
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30121
|
+
Svg23.Path,
|
|
30122
|
+
{
|
|
30123
|
+
d: SUN_PATH,
|
|
30124
|
+
stroke: color,
|
|
30125
|
+
strokeWidth,
|
|
30126
|
+
strokeLinecap: "round",
|
|
30127
|
+
strokeLinejoin: "round"
|
|
30128
|
+
}
|
|
30129
|
+
) });
|
|
30130
|
+
}
|
|
30131
|
+
|
|
30041
30132
|
// src/icons/TableView/tableViewPath.ts
|
|
30042
30133
|
var TABLE_VIEW_PATH = "M1 6L16 6M6 1L6 16M5 1H12C13.4001 1 14.1002 1 14.635 1.27248C15.1054 1.51217 15.4878 1.89462 15.7275 2.36502C16 2.8998 16 3.59987 16 5V12C16 13.4001 16 14.1002 15.7275 14.635C15.4878 15.1054 15.1054 15.4878 14.635 15.7275C14.1002 16 13.4001 16 12 16H5C3.59987 16 2.8998 16 2.36502 15.7275C1.89462 15.4878 1.51217 15.1054 1.27248 14.635C1 14.1002 1 13.4001 1 12V5C1 3.59987 1 2.8998 1.27248 2.36502C1.51217 1.89462 1.89462 1.51217 2.36502 1.27248C2.8998 1 3.59987 1 5 1Z";
|
|
30043
30134
|
function TableViewIcon({ size = 17, color = colors.grey400, strokeWidth = 2 }) {
|
|
@@ -30108,6 +30199,45 @@ function VideoOffIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
|
30108
30199
|
) });
|
|
30109
30200
|
}
|
|
30110
30201
|
|
|
30202
|
+
// src/icons/Washer/washerPaths.ts
|
|
30203
|
+
var WASHER_PATHS = [
|
|
30204
|
+
{
|
|
30205
|
+
d: "M15.832 1.66602H4.16536C3.70513 1.66602 3.33203 2.03911 3.33203 2.49935V17.4993C3.33203 17.9596 3.70513 18.3327 4.16536 18.3327H15.832C16.2923 18.3327 16.6654 17.9596 16.6654 17.4993V2.49935C16.6654 2.03911 16.2923 1.66602 15.832 1.66602Z",
|
|
30206
|
+
strokeWidth: 1.5
|
|
30207
|
+
},
|
|
30208
|
+
{
|
|
30209
|
+
d: "M3.33203 4.99935C3.33203 5.4596 3.70513 5.83268 4.16536 5.83268H15.832C16.2923 5.83268 16.6654 5.4596 16.6654 4.99935V2.49935C16.6654 2.03911 16.2923 1.66602 15.832 1.66602H4.16536C3.70513 1.66602 3.33203 2.03911 3.33203 2.49935V4.99935Z",
|
|
30210
|
+
strokeWidth: 1.5
|
|
30211
|
+
},
|
|
30212
|
+
{
|
|
30213
|
+
d: "M5.83333 4.58268C6.29357 4.58268 6.66667 4.20959 6.66667 3.74935C6.66667 3.28911 6.29357 2.91602 5.83333 2.91602C5.3731 2.91602 5 3.28911 5 3.74935C5 4.20959 5.3731 4.58268 5.83333 4.58268Z",
|
|
30214
|
+
fill: true
|
|
30215
|
+
},
|
|
30216
|
+
{
|
|
30217
|
+
d: "M8.33333 4.58268C8.79357 4.58268 9.16667 4.20959 9.16667 3.74935C9.16667 3.28911 8.79357 2.91602 8.33333 2.91602C7.8731 2.91602 7.5 3.28911 7.5 3.74935C7.5 4.20959 7.8731 4.58268 8.33333 4.58268Z",
|
|
30218
|
+
fill: true
|
|
30219
|
+
},
|
|
30220
|
+
{
|
|
30221
|
+
d: "M9.9987 14.9993C11.6095 14.9993 12.9154 13.6935 12.9154 12.0827C12.9154 10.4719 11.6095 9.16602 9.9987 9.16602C8.38787 9.16602 7.08203 10.4719 7.08203 12.0827C7.08203 13.6935 8.38787 14.9993 9.9987 14.9993Z",
|
|
30222
|
+
strokeWidth: 1.5
|
|
30223
|
+
}
|
|
30224
|
+
];
|
|
30225
|
+
function WasherIcon({ size = 20, color = colors.white, strokeWidth = 1.5 }) {
|
|
30226
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Svg23__default.default, { width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: WASHER_PATHS.map((path, index) => {
|
|
30227
|
+
const filled = path.fill === true;
|
|
30228
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30229
|
+
Svg23.Path,
|
|
30230
|
+
{
|
|
30231
|
+
d: path.d,
|
|
30232
|
+
fill: filled ? color : "none",
|
|
30233
|
+
stroke: filled ? void 0 : color,
|
|
30234
|
+
strokeWidth: filled ? void 0 : strokeWidth
|
|
30235
|
+
},
|
|
30236
|
+
`washer-${index}`
|
|
30237
|
+
);
|
|
30238
|
+
}) });
|
|
30239
|
+
}
|
|
30240
|
+
|
|
30111
30241
|
// src/icons/ZoomOut/zoomOutPath.ts
|
|
30112
30242
|
var ZOOM_OUT_PATH = "M3 8H3.2C4.88016 8 5.72024 8 6.36197 7.67302C6.92646 7.3854 7.3854 6.92646 7.67302 6.36197C8 5.72024 8 4.88016 8 3.2V3M3 16H3.2C4.88016 16 5.72024 16 6.36197 16.327C6.92646 16.6146 7.3854 17.0735 7.67302 17.638C8 18.2798 8 19.1198 8 20.8V21M16 3V3.2C16 4.88016 16 5.72024 16.327 6.36197C16.6146 6.92646 17.0735 7.3854 17.638 7.67302C18.2798 8 19.1198 8 20.8 8H21M16 21V20.8C16 19.1198 16 18.2798 16.327 17.638C16.6146 17.0735 17.0735 16.6146 17.638 16.327C18.2798 16 19.1198 16 20.8 16H21";
|
|
30113
30243
|
function ZoomOutIcon({ size = 24, color = colors.primary, strokeWidth = 2 }) {
|
|
@@ -30180,8 +30310,10 @@ var icons = {
|
|
|
30180
30310
|
menu: MenuIcon,
|
|
30181
30311
|
menuLines: MenuLinesIcon,
|
|
30182
30312
|
minus: MinusIcon,
|
|
30313
|
+
moonStars: MoonStarsIcon,
|
|
30183
30314
|
moreHorizontal: MoreHorizontalIcon,
|
|
30184
30315
|
navigate: NavigateIcon,
|
|
30316
|
+
noPets: NoPetsIcon,
|
|
30185
30317
|
noSmoking: NoSmokingIcon,
|
|
30186
30318
|
paw: PawIcon,
|
|
30187
30319
|
phone: PhoneIcon,
|
|
@@ -30200,6 +30332,8 @@ var icons = {
|
|
|
30200
30332
|
sort: SortIcon,
|
|
30201
30333
|
star: StarIcon,
|
|
30202
30334
|
starFilled: StarFilledIcon,
|
|
30335
|
+
starOutline: StarOutlineIcon,
|
|
30336
|
+
sun: SunIcon,
|
|
30203
30337
|
tableView: TableViewIcon,
|
|
30204
30338
|
tooltipArrow: TooltipArrowIcon,
|
|
30205
30339
|
trash: TrashIcon,
|
|
@@ -30207,8 +30341,10 @@ var icons = {
|
|
|
30207
30341
|
usersAlt: UsersAltIcon,
|
|
30208
30342
|
video: VideoIcon,
|
|
30209
30343
|
videoOff: VideoOffIcon,
|
|
30344
|
+
washer: WasherIcon,
|
|
30210
30345
|
cutlery: CutleryIcon,
|
|
30211
30346
|
dollar: DollarIcon,
|
|
30347
|
+
dram: DramIcon,
|
|
30212
30348
|
dragHandle: DragHandleIcon,
|
|
30213
30349
|
eye: EyeIcon,
|
|
30214
30350
|
image: ImageIcon,
|
|
@@ -30265,7 +30401,10 @@ var iconGroups = {
|
|
|
30265
30401
|
"zoomOut",
|
|
30266
30402
|
"star",
|
|
30267
30403
|
"starFilled",
|
|
30404
|
+
"starOutline",
|
|
30405
|
+
"sun",
|
|
30268
30406
|
"minus",
|
|
30407
|
+
"moonStars",
|
|
30269
30408
|
"moreHorizontal",
|
|
30270
30409
|
"plus",
|
|
30271
30410
|
"refresh",
|
|
@@ -30282,6 +30421,7 @@ var iconGroups = {
|
|
|
30282
30421
|
"clockFilled",
|
|
30283
30422
|
"guests",
|
|
30284
30423
|
"lock",
|
|
30424
|
+
"noPets",
|
|
30285
30425
|
"noSmoking",
|
|
30286
30426
|
"paw",
|
|
30287
30427
|
"qrCode",
|
|
@@ -30291,6 +30431,7 @@ var iconGroups = {
|
|
|
30291
30431
|
"usersAlt",
|
|
30292
30432
|
"video",
|
|
30293
30433
|
"videoOff",
|
|
30434
|
+
"washer",
|
|
30294
30435
|
"whatsApp"
|
|
30295
30436
|
],
|
|
30296
30437
|
communication: ["mail", "phone"],
|
|
@@ -30299,6 +30440,7 @@ var iconGroups = {
|
|
|
30299
30440
|
"areaExpand",
|
|
30300
30441
|
"cutlery",
|
|
30301
30442
|
"dollar",
|
|
30443
|
+
"dram",
|
|
30302
30444
|
"eye",
|
|
30303
30445
|
"globe",
|
|
30304
30446
|
"layoutGrid",
|
|
@@ -30341,16 +30483,7 @@ var AMENITY_PATHS = {
|
|
|
30341
30483
|
strokeWidth: 2
|
|
30342
30484
|
}
|
|
30343
30485
|
],
|
|
30344
|
-
washer:
|
|
30345
|
-
{
|
|
30346
|
-
d: "M15.833 1.66699H4.16634C3.7061 1.66699 3.33301 2.04009 3.33301 2.50033V17.5003C3.33301 17.9606 3.7061 18.3337 4.16634 18.3337H15.833C16.2932 18.3337 16.6663 17.9606 16.6663 17.5003V2.50033C16.6663 2.04009 16.2932 1.66699 15.833 1.66699ZM3.33301 5.00033C3.33301 5.46058 3.7061 5.83366 4.16634 5.83366H15.833C16.2933 5.83366 16.6663 5.46058 16.6663 5.00033V2.50033C16.6663 2.04009 16.2933 1.66699 15.833 1.66699H4.16634C3.7061 1.66699 3.33301 2.04009 3.33301 2.50033V5.00033ZM9.99967 15.0003C11.6105 15.0003 12.9163 13.6945 12.9163 12.0837C12.9163 10.4728 11.6105 9.16699 9.99967 9.16699C8.38884 9.16699 7.08301 10.4728 7.08301 12.0837C7.08301 13.6945 8.38884 15.0003 9.99967 15.0003Z",
|
|
30347
|
-
strokeWidth: 1.5
|
|
30348
|
-
},
|
|
30349
|
-
{
|
|
30350
|
-
d: "M5.83333 4.58317C6.29357 4.58317 6.66667 4.21007 6.66667 3.74984C6.66667 3.2896 6.29357 2.9165 5.83333 2.9165C5.3731 2.9165 5 3.2896 5 3.74984C5 4.21007 5.3731 4.58317 5.83333 4.58317ZM8.33333 4.58317C8.79357 4.58317 9.16667 4.21007 9.16667 3.74984C9.16667 3.2896 8.79357 2.9165 8.33333 2.9165C7.8731 2.9165 7.5 3.2896 7.5 3.74984C7.5 4.21007 7.8731 4.58317 8.33333 4.58317Z",
|
|
30351
|
-
fill: true
|
|
30352
|
-
}
|
|
30353
|
-
],
|
|
30486
|
+
washer: WASHER_PATHS,
|
|
30354
30487
|
ac: [
|
|
30355
30488
|
{
|
|
30356
30489
|
d: "M17.5003 3.33301H2.50033C2.04009 3.33301 1.66699 3.7061 1.66699 4.16634V10.833C1.66699 11.2932 2.04009 11.6663 2.50033 11.6663H17.5003C17.9606 11.6663 18.3337 11.2932 18.3337 10.833V4.16634C18.3337 3.7061 17.9606 3.33301 17.5003 3.33301ZM15 8.3335H5V11.6668H15V8.3335ZM13.333 5.83301H14.9997M10 14.1665V16.6665M6.66699 15V15.8333M13.333 15V15.8333",
|
|
@@ -32749,6 +32882,7 @@ var SegmentedToggle = react.forwardRef(
|
|
|
32749
32882
|
const resolvedClassName = className?.trim() || void 0;
|
|
32750
32883
|
const setContainerRef = react.useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
32751
32884
|
const progress = react.useRef(new reactNative.Animated.Value(selectedIndex)).current;
|
|
32885
|
+
const hasMounted = react.useRef(false);
|
|
32752
32886
|
const [contentWidths, setContentWidths] = react.useState(
|
|
32753
32887
|
() => Array.from({ length: optionCount }, () => 0)
|
|
32754
32888
|
);
|
|
@@ -32775,6 +32909,11 @@ var SegmentedToggle = react.forwardRef(
|
|
|
32775
32909
|
});
|
|
32776
32910
|
}, [optionCount]);
|
|
32777
32911
|
react.useEffect(() => {
|
|
32912
|
+
if (!hasMounted.current) {
|
|
32913
|
+
hasMounted.current = true;
|
|
32914
|
+
progress.setValue(selectedIndex);
|
|
32915
|
+
return;
|
|
32916
|
+
}
|
|
32778
32917
|
const animation = reactNative.Animated.timing(progress, {
|
|
32779
32918
|
toValue: selectedIndex,
|
|
32780
32919
|
duration: ANIMATION_DURATION2,
|
|
@@ -32846,7 +32985,7 @@ var SegmentedToggle = react.forwardRef(
|
|
|
32846
32985
|
options.map(({ value: optionValue, label, icon: Icon2, showLabel = true }, index) => {
|
|
32847
32986
|
const selected = optionValue === selectedValue;
|
|
32848
32987
|
const iconColor = selected ? colors.primary : colors.whiteAlpha20;
|
|
32849
|
-
const labelColor = selected ? colors.
|
|
32988
|
+
const labelColor = selected ? colors.white : colors.grey150;
|
|
32850
32989
|
const optionWidth = optionWidths[index] ?? 0;
|
|
32851
32990
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32852
32991
|
reactNative.Pressable,
|
|
@@ -32859,7 +32998,8 @@ var SegmentedToggle = react.forwardRef(
|
|
|
32859
32998
|
accessibilityState: { selected, disabled },
|
|
32860
32999
|
style: [
|
|
32861
33000
|
styles20.option,
|
|
32862
|
-
fullWidth ? styles20.optionFullWidth : [styles20.optionContentWidth, optionWidth > 0 && { width: optionWidth }]
|
|
33001
|
+
fullWidth ? styles20.optionFullWidth : [styles20.optionContentWidth, optionWidth > 0 && { width: optionWidth }],
|
|
33002
|
+
selected && selectedOptionWidth === 0 && styles20.initialSelectedOption
|
|
32863
33003
|
],
|
|
32864
33004
|
children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles20.optionContent, children: [
|
|
32865
33005
|
Icon2 ? /* @__PURE__ */ jsxRuntime.jsx(Icon2, { size: ICON_SIZE8, color: iconColor }) : null,
|
|
@@ -32869,6 +33009,7 @@ var SegmentedToggle = react.forwardRef(
|
|
|
32869
33009
|
numberOfLines: fullWidth ? 1 : void 0,
|
|
32870
33010
|
style: [
|
|
32871
33011
|
styles20.label,
|
|
33012
|
+
selected ? styles20.selectedLabel : styles20.inactiveLabel,
|
|
32872
33013
|
!fullWidth && styles20.contentWidthLabel,
|
|
32873
33014
|
{ color: labelColor }
|
|
32874
33015
|
],
|
|
@@ -32933,6 +33074,9 @@ var styles20 = reactNative.StyleSheet.create({
|
|
|
32933
33074
|
optionContentWidth: {
|
|
32934
33075
|
minWidth: OPTION_MIN_WIDTH
|
|
32935
33076
|
},
|
|
33077
|
+
initialSelectedOption: {
|
|
33078
|
+
backgroundColor: colors.grey600
|
|
33079
|
+
},
|
|
32936
33080
|
activeIndicator: {
|
|
32937
33081
|
position: "absolute",
|
|
32938
33082
|
top: TRACK_PADDING,
|
|
@@ -32945,6 +33089,14 @@ var styles20 = reactNative.StyleSheet.create({
|
|
|
32945
33089
|
...segmentedToggleTypography,
|
|
32946
33090
|
flexShrink: 1
|
|
32947
33091
|
},
|
|
33092
|
+
selectedLabel: {
|
|
33093
|
+
fontWeight: "600",
|
|
33094
|
+
letterSpacing: 0.36
|
|
33095
|
+
},
|
|
33096
|
+
inactiveLabel: {
|
|
33097
|
+
fontWeight: "400",
|
|
33098
|
+
letterSpacing: 0.36
|
|
33099
|
+
},
|
|
32948
33100
|
contentWidthLabel: {
|
|
32949
33101
|
flexShrink: 0
|
|
32950
33102
|
}
|
|
@@ -33224,7 +33376,7 @@ var defaultLanguageOptions = [
|
|
|
33224
33376
|
{ value: "en", label: "Eng" },
|
|
33225
33377
|
{ value: "ru", label: "\u0420\u0443\u0441" }
|
|
33226
33378
|
];
|
|
33227
|
-
var CONTROL_WIDTH =
|
|
33379
|
+
var CONTROL_WIDTH = 96;
|
|
33228
33380
|
var CONTROL_HEIGHT = 35;
|
|
33229
33381
|
var ICON_SIZE9 = 16;
|
|
33230
33382
|
var ICON_BUTTON_SIZE2 = 32;
|
|
@@ -33626,6 +33778,7 @@ var Button = react.forwardRef(
|
|
|
33626
33778
|
children,
|
|
33627
33779
|
onPress,
|
|
33628
33780
|
disabled = false,
|
|
33781
|
+
loading = false,
|
|
33629
33782
|
variant = "primary",
|
|
33630
33783
|
size = "lg",
|
|
33631
33784
|
showIcon = false,
|
|
@@ -33646,6 +33799,7 @@ var Button = react.forwardRef(
|
|
|
33646
33799
|
const hasCustomChildren = typeof children !== "undefined";
|
|
33647
33800
|
const customIcon = icon != null && typeof icon !== "boolean" ? icon : void 0;
|
|
33648
33801
|
const hasIcon = showIcon || icon === true || customIcon != null;
|
|
33802
|
+
const interactionDisabled = disabled || loading;
|
|
33649
33803
|
const resolvedContainerClassName = className?.trim() || void 0;
|
|
33650
33804
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (typeof label === "string" ? label : void 0);
|
|
33651
33805
|
const setContainerRef = react.useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
@@ -33666,7 +33820,7 @@ var Button = react.forwardRef(
|
|
|
33666
33820
|
gap: hasIcon ? metrics.gap : 0
|
|
33667
33821
|
},
|
|
33668
33822
|
hasIcon ? styles24.contentWithIcon : styles24.contentWithoutIcon,
|
|
33669
|
-
disabled && styles24.disabled,
|
|
33823
|
+
disabled && !loading && styles24.disabled,
|
|
33670
33824
|
style
|
|
33671
33825
|
];
|
|
33672
33826
|
const labelStyle = [
|
|
@@ -33684,13 +33838,13 @@ var Button = react.forwardRef(
|
|
|
33684
33838
|
ref: setContainerRef,
|
|
33685
33839
|
style: containerStyle,
|
|
33686
33840
|
onPress,
|
|
33687
|
-
disabled,
|
|
33841
|
+
disabled: interactionDisabled,
|
|
33688
33842
|
activeOpacity: 0.7,
|
|
33689
33843
|
accessibilityRole: "button",
|
|
33690
33844
|
accessibilityLabel: resolvedAccessibilityLabel,
|
|
33691
|
-
accessibilityState: { disabled },
|
|
33845
|
+
accessibilityState: { busy: loading, disabled: interactionDisabled },
|
|
33692
33846
|
children: [
|
|
33693
|
-
hasCustomChildren ? children : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { ref: textRef, style: labelStyle, children: label }),
|
|
33847
|
+
hasCustomChildren ? loading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles24.loadingContent, children }) : children : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { ref: textRef, style: [labelStyle, loading && styles24.loadingContent], children: label }),
|
|
33694
33848
|
hasIcon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33695
33849
|
reactNative.View,
|
|
33696
33850
|
{
|
|
@@ -33701,11 +33855,13 @@ var Button = react.forwardRef(
|
|
|
33701
33855
|
height: metrics.iconContainerSize,
|
|
33702
33856
|
borderRadius: metrics.iconContainerSize / 2,
|
|
33703
33857
|
backgroundColor: iconBadgeBackgroundColor ?? preset.iconBadgeBackgroundColor
|
|
33704
|
-
}
|
|
33858
|
+
},
|
|
33859
|
+
loading && styles24.loadingContent
|
|
33705
33860
|
],
|
|
33706
33861
|
children: iconNode
|
|
33707
33862
|
}
|
|
33708
|
-
) : null
|
|
33863
|
+
) : null,
|
|
33864
|
+
loading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { pointerEvents: "none", style: styles24.loadingIndicator, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ActivityIndicator, { color: preset.textColor, size: "small" }) }) : null
|
|
33709
33865
|
]
|
|
33710
33866
|
}
|
|
33711
33867
|
);
|
|
@@ -33716,7 +33872,8 @@ var styles24 = reactNative.StyleSheet.create({
|
|
|
33716
33872
|
flexDirection: "row",
|
|
33717
33873
|
alignItems: "center",
|
|
33718
33874
|
alignSelf: "flex-start",
|
|
33719
|
-
borderWidth: 0
|
|
33875
|
+
borderWidth: 0,
|
|
33876
|
+
position: "relative"
|
|
33720
33877
|
},
|
|
33721
33878
|
disabled: {
|
|
33722
33879
|
opacity: 0.6
|
|
@@ -33738,6 +33895,18 @@ var styles24 = reactNative.StyleSheet.create({
|
|
|
33738
33895
|
alignItems: "center",
|
|
33739
33896
|
justifyContent: "center",
|
|
33740
33897
|
flexShrink: 0
|
|
33898
|
+
},
|
|
33899
|
+
loadingContent: {
|
|
33900
|
+
opacity: 0
|
|
33901
|
+
},
|
|
33902
|
+
loadingIndicator: {
|
|
33903
|
+
alignItems: "center",
|
|
33904
|
+
bottom: 0,
|
|
33905
|
+
justifyContent: "center",
|
|
33906
|
+
left: 0,
|
|
33907
|
+
position: "absolute",
|
|
33908
|
+
right: 0,
|
|
33909
|
+
top: 0
|
|
33741
33910
|
}
|
|
33742
33911
|
});
|
|
33743
33912
|
var BOX_SIZE = 20;
|
|
@@ -35177,6 +35346,8 @@ var Input = react.forwardRef(function Input2({
|
|
|
35177
35346
|
showRightIcon = false,
|
|
35178
35347
|
onRightIconPress,
|
|
35179
35348
|
rightIconAccessibilityLabel,
|
|
35349
|
+
autoComplete = "off",
|
|
35350
|
+
importantForAutofill,
|
|
35180
35351
|
style,
|
|
35181
35352
|
fieldStyle,
|
|
35182
35353
|
inputStyle,
|
|
@@ -35199,6 +35370,7 @@ var Input = react.forwardRef(function Input2({
|
|
|
35199
35370
|
const visualState = resolveVisualState({ disabled, error, focused, hasValue });
|
|
35200
35371
|
const chrome = chromeFor(visualState);
|
|
35201
35372
|
const resolvedAccessibilityLabel = accessibilityLabel ?? (showLabel ? void 0 : label);
|
|
35373
|
+
const resolvedImportantForAutofill = importantForAutofill ?? (autoComplete === "off" ? "no" : "auto");
|
|
35202
35374
|
const hasLeftIcon = showLeftIcon || leftIcon != null;
|
|
35203
35375
|
const hasRightIcon = showRightIcon || rightIcon != null;
|
|
35204
35376
|
const leftIconNode = renderStatefulIcon(leftIcon, UserIcon, {
|
|
@@ -35248,6 +35420,8 @@ var Input = react.forwardRef(function Input2({
|
|
|
35248
35420
|
ref: setInputRef,
|
|
35249
35421
|
...textInputProps,
|
|
35250
35422
|
nativeID: inputDomId,
|
|
35423
|
+
autoComplete,
|
|
35424
|
+
importantForAutofill: resolvedImportantForAutofill,
|
|
35251
35425
|
value: isControlled ? value : void 0,
|
|
35252
35426
|
defaultValue: isControlled ? void 0 : defaultValue,
|
|
35253
35427
|
editable: !disabled,
|
|
@@ -35985,15 +36159,22 @@ var Select = react.forwardRef(
|
|
|
35985
36159
|
if (typeof minWidth === "number") return minWidth;
|
|
35986
36160
|
return null;
|
|
35987
36161
|
}, [menuStyle]);
|
|
36162
|
+
const resolvedOptionListMaxHeight = react.useMemo(() => {
|
|
36163
|
+
const flat = reactNative.StyleSheet.flatten(menuStyle);
|
|
36164
|
+
const menuMaxHeight = flat?.maxHeight;
|
|
36165
|
+
if (typeof menuMaxHeight !== "number") return MENU_MAX_LIST_HEIGHT;
|
|
36166
|
+
const menuChromeHeight = 24 + (showSearch ? 48 : 0);
|
|
36167
|
+
return Math.max(43, menuMaxHeight - menuChromeHeight);
|
|
36168
|
+
}, [menuStyle, showSearch]);
|
|
35988
36169
|
const estimatedMenuHeight = react.useMemo(() => {
|
|
35989
36170
|
const searchBlock = showSearch ? 40 + 8 : 0;
|
|
35990
36171
|
const optionCount = Math.max(filteredOptions.length, 1);
|
|
35991
36172
|
const listHeight = Math.min(
|
|
35992
36173
|
optionCount * 43 + Math.max(0, optionCount - 1) * 8,
|
|
35993
|
-
|
|
36174
|
+
resolvedOptionListMaxHeight
|
|
35994
36175
|
);
|
|
35995
36176
|
return 24 + searchBlock + listHeight;
|
|
35996
|
-
}, [filteredOptions.length, showSearch]);
|
|
36177
|
+
}, [filteredOptions.length, resolvedOptionListMaxHeight, showSearch]);
|
|
35997
36178
|
const setOpen = react.useCallback(
|
|
35998
36179
|
(next) => {
|
|
35999
36180
|
if (!isOpenControlled) setUncontrolledOpen(next);
|
|
@@ -36241,7 +36422,7 @@ var Select = react.forwardRef(
|
|
|
36241
36422
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
36242
36423
|
reactNative.ScrollView,
|
|
36243
36424
|
{
|
|
36244
|
-
style: styles33.optionList,
|
|
36425
|
+
style: [styles33.optionList, { maxHeight: resolvedOptionListMaxHeight }],
|
|
36245
36426
|
contentContainerStyle: styles33.optionListContent,
|
|
36246
36427
|
keyboardShouldPersistTaps: "handled",
|
|
36247
36428
|
showsVerticalScrollIndicator: false,
|
|
@@ -37825,6 +38006,93 @@ var styles39 = reactNative.StyleSheet.create({
|
|
|
37825
38006
|
color: colors.white
|
|
37826
38007
|
}
|
|
37827
38008
|
});
|
|
38009
|
+
var CONTROL_SIZE = 16;
|
|
38010
|
+
var DOT_SIZE = 8;
|
|
38011
|
+
var RadioButton = react.forwardRef(
|
|
38012
|
+
function RadioButton2({
|
|
38013
|
+
value,
|
|
38014
|
+
defaultValue = false,
|
|
38015
|
+
onValueChange,
|
|
38016
|
+
disabled = false,
|
|
38017
|
+
variant: _variant = "default",
|
|
38018
|
+
label,
|
|
38019
|
+
children,
|
|
38020
|
+
style,
|
|
38021
|
+
labelStyle,
|
|
38022
|
+
className,
|
|
38023
|
+
hitSlop = 8,
|
|
38024
|
+
accessibilityLabel,
|
|
38025
|
+
...rest
|
|
38026
|
+
}, forwardedRef) {
|
|
38027
|
+
const containerRef = react.useRef(null);
|
|
38028
|
+
const isControlled = typeof value === "boolean";
|
|
38029
|
+
const [uncontrolledValue, setUncontrolledValue] = react.useState(defaultValue);
|
|
38030
|
+
const isActive = isControlled ? value : uncontrolledValue;
|
|
38031
|
+
const labelContent = children ?? label;
|
|
38032
|
+
const resolvedAccessibilityLabel = accessibilityLabel ?? (typeof labelContent === "string" ? labelContent : void 0);
|
|
38033
|
+
const setContainerRef = react.useMemo(() => mergeRefs(containerRef, forwardedRef), [forwardedRef]);
|
|
38034
|
+
useApplyWebClassName(containerRef, className);
|
|
38035
|
+
const handlePress = () => {
|
|
38036
|
+
if (disabled || isActive) return;
|
|
38037
|
+
if (!isControlled) setUncontrolledValue(true);
|
|
38038
|
+
onValueChange?.(true);
|
|
38039
|
+
};
|
|
38040
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
38041
|
+
reactNative.Pressable,
|
|
38042
|
+
{
|
|
38043
|
+
...rest,
|
|
38044
|
+
ref: setContainerRef,
|
|
38045
|
+
onPress: handlePress,
|
|
38046
|
+
disabled,
|
|
38047
|
+
hitSlop,
|
|
38048
|
+
accessibilityRole: "radio",
|
|
38049
|
+
accessibilityLabel: resolvedAccessibilityLabel,
|
|
38050
|
+
accessibilityState: { selected: isActive, disabled },
|
|
38051
|
+
style: [styles40.root, disabled && styles40.disabled, style],
|
|
38052
|
+
children: [
|
|
38053
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles40.control, children: isActive ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles40.dot }) : null }),
|
|
38054
|
+
labelContent != null && labelContent !== false ? typeof labelContent === "string" || typeof labelContent === "number" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.label, labelStyle], children: labelContent }) : labelContent : null
|
|
38055
|
+
]
|
|
38056
|
+
}
|
|
38057
|
+
);
|
|
38058
|
+
}
|
|
38059
|
+
);
|
|
38060
|
+
var styles40 = reactNative.StyleSheet.create({
|
|
38061
|
+
root: {
|
|
38062
|
+
flexDirection: "row",
|
|
38063
|
+
alignItems: "center",
|
|
38064
|
+
alignSelf: "flex-start",
|
|
38065
|
+
gap: 6
|
|
38066
|
+
},
|
|
38067
|
+
disabled: {
|
|
38068
|
+
opacity: 0.5
|
|
38069
|
+
},
|
|
38070
|
+
control: {
|
|
38071
|
+
width: CONTROL_SIZE,
|
|
38072
|
+
height: CONTROL_SIZE,
|
|
38073
|
+
borderRadius: 20,
|
|
38074
|
+
borderWidth: 1,
|
|
38075
|
+
borderColor: colors.grey700,
|
|
38076
|
+
backgroundColor: colors.dark,
|
|
38077
|
+
alignItems: "center",
|
|
38078
|
+
justifyContent: "center",
|
|
38079
|
+
flexShrink: 0
|
|
38080
|
+
},
|
|
38081
|
+
dot: {
|
|
38082
|
+
width: DOT_SIZE,
|
|
38083
|
+
height: DOT_SIZE,
|
|
38084
|
+
borderRadius: 43,
|
|
38085
|
+
backgroundColor: colors.primary
|
|
38086
|
+
},
|
|
38087
|
+
label: {
|
|
38088
|
+
flexShrink: 1,
|
|
38089
|
+
textAlign: "center",
|
|
38090
|
+
fontFamily: fonts.sans,
|
|
38091
|
+
fontSize: 12,
|
|
38092
|
+
fontWeight: "400",
|
|
38093
|
+
color: colors.white
|
|
38094
|
+
}
|
|
38095
|
+
});
|
|
37828
38096
|
|
|
37829
38097
|
// src/utils/popoverAlign.ts
|
|
37830
38098
|
function fitsCenter(triggerRect, panelWidth, viewportWidth, padding) {
|
|
@@ -37982,6 +38250,7 @@ exports.DatePicker = DatePicker;
|
|
|
37982
38250
|
exports.DollarIcon = DollarIcon;
|
|
37983
38251
|
exports.DownloadIcon = DownloadIcon;
|
|
37984
38252
|
exports.DragHandleIcon = DragHandleIcon;
|
|
38253
|
+
exports.DramIcon = DramIcon;
|
|
37985
38254
|
exports.Drawer = Drawer;
|
|
37986
38255
|
exports.EditIcon = EditIcon;
|
|
37987
38256
|
exports.EyeIcon = EyeIcon;
|
|
@@ -38024,8 +38293,10 @@ exports.MenuItem = MenuItem;
|
|
|
38024
38293
|
exports.MenuLinesIcon = MenuLinesIcon;
|
|
38025
38294
|
exports.MinusIcon = MinusIcon;
|
|
38026
38295
|
exports.Modal = Modal;
|
|
38296
|
+
exports.MoonStarsIcon = MoonStarsIcon;
|
|
38027
38297
|
exports.MoreHorizontalIcon = MoreHorizontalIcon;
|
|
38028
38298
|
exports.NavigateIcon = NavigateIcon;
|
|
38299
|
+
exports.NoPetsIcon = NoPetsIcon;
|
|
38029
38300
|
exports.NoSmokingIcon = NoSmokingIcon;
|
|
38030
38301
|
exports.PaginationDots = PaginationDots;
|
|
38031
38302
|
exports.PawIcon = PawIcon;
|
|
@@ -38034,6 +38305,7 @@ exports.PlusIcon = PlusIcon;
|
|
|
38034
38305
|
exports.QrCodeIcon = QrCodeIcon;
|
|
38035
38306
|
exports.QuantityInput = QuantityInput;
|
|
38036
38307
|
exports.QuietHoursIcon = QuietHoursIcon;
|
|
38308
|
+
exports.RadioButton = RadioButton;
|
|
38037
38309
|
exports.Range = Range;
|
|
38038
38310
|
exports.RatingInput = RatingInput;
|
|
38039
38311
|
exports.RatingStarIcon = RatingStarIcon;
|
|
@@ -38051,10 +38323,12 @@ exports.SidebarIcon = SidebarIcon;
|
|
|
38051
38323
|
exports.SortIcon = SortIcon;
|
|
38052
38324
|
exports.StarFilledIcon = StarFilledIcon;
|
|
38053
38325
|
exports.StarIcon = StarIcon;
|
|
38326
|
+
exports.StarOutlineIcon = StarOutlineIcon;
|
|
38054
38327
|
exports.StatCard = StatCard;
|
|
38055
38328
|
exports.StatusBadge = StatusBadge;
|
|
38056
38329
|
exports.StepList = StepList;
|
|
38057
38330
|
exports.StepPager = StepPager;
|
|
38331
|
+
exports.SunIcon = SunIcon;
|
|
38058
38332
|
exports.TableViewIcon = TableViewIcon;
|
|
38059
38333
|
exports.Textarea = Textarea;
|
|
38060
38334
|
exports.Toggle = Toggle;
|
|
@@ -38066,6 +38340,7 @@ exports.UsersAltIcon = UsersAltIcon;
|
|
|
38066
38340
|
exports.VerificationCodeInput = VerificationCodeInput;
|
|
38067
38341
|
exports.VideoIcon = VideoIcon;
|
|
38068
38342
|
exports.VideoOffIcon = VideoOffIcon;
|
|
38343
|
+
exports.WasherIcon = WasherIcon;
|
|
38069
38344
|
exports.WhatsAppIcon = WhatsAppIcon;
|
|
38070
38345
|
exports.ZoomOutIcon = ZoomOutIcon;
|
|
38071
38346
|
exports.abbreviateMonthName = abbreviateMonthName;
|