@chekinapp/ui 0.0.53 → 0.0.54
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 +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10806,6 +10806,7 @@ function ResponsiveSheet({
|
|
|
10806
10806
|
title ? /* @__PURE__ */ jsx129(
|
|
10807
10807
|
"div",
|
|
10808
10808
|
{
|
|
10809
|
+
"aria-hidden": "true",
|
|
10809
10810
|
className: cn(
|
|
10810
10811
|
"text-center mb-3 text-[26px] font-semibold leading-7",
|
|
10811
10812
|
titleClassName
|
|
@@ -10816,6 +10817,7 @@ function ResponsiveSheet({
|
|
|
10816
10817
|
description ? /* @__PURE__ */ jsx129(
|
|
10817
10818
|
"p",
|
|
10818
10819
|
{
|
|
10820
|
+
"aria-hidden": "true",
|
|
10819
10821
|
className: cn(
|
|
10820
10822
|
"text-center text-[16px] leading-6 text-[var(--primary)]/70",
|
|
10821
10823
|
descriptionClassName
|
|
@@ -11816,6 +11818,7 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
11816
11818
|
const containerRef = React40.useRef(null);
|
|
11817
11819
|
const hasValue = Boolean(value);
|
|
11818
11820
|
const helperText = placeholder ?? label;
|
|
11821
|
+
const shouldDescribeHelperText = !hasValue && helperText !== label;
|
|
11819
11822
|
const isBlocked = Boolean(disabled) || Boolean(loading);
|
|
11820
11823
|
const triggerError = error ?? invalid;
|
|
11821
11824
|
const {
|
|
@@ -11829,6 +11832,8 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
11829
11832
|
describedBy,
|
|
11830
11833
|
getOptionId: getOptionId2
|
|
11831
11834
|
} = useSelectIds({ name, hasValue, error, hideErrorMessage });
|
|
11835
|
+
const triggerHelperTextId = shouldDescribeHelperText ? helperTextId : void 0;
|
|
11836
|
+
const triggerDescribedBy = shouldDescribeHelperText ? describedBy : describedErrorId;
|
|
11832
11837
|
const {
|
|
11833
11838
|
mobileListRef,
|
|
11834
11839
|
mobileScrollTop,
|
|
@@ -11984,7 +11989,7 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
11984
11989
|
error,
|
|
11985
11990
|
invalid,
|
|
11986
11991
|
listboxId,
|
|
11987
|
-
describedBy,
|
|
11992
|
+
describedBy: triggerDescribedBy,
|
|
11988
11993
|
triggerRef: combinedRef,
|
|
11989
11994
|
onClick: handleTriggerClick,
|
|
11990
11995
|
onKeyDown: handleRootTriggerKeyDown,
|
|
@@ -12008,10 +12013,10 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
12008
12013
|
hideErrorMessage,
|
|
12009
12014
|
labelId,
|
|
12010
12015
|
valueId,
|
|
12011
|
-
helperTextId,
|
|
12016
|
+
helperTextId: triggerHelperTextId,
|
|
12012
12017
|
errorId: error ? errorId : void 0,
|
|
12013
12018
|
listboxId,
|
|
12014
|
-
describedBy,
|
|
12019
|
+
describedBy: triggerDescribedBy,
|
|
12015
12020
|
onClick: handleTriggerClick,
|
|
12016
12021
|
onKeyDown: handleRootTriggerKeyDown,
|
|
12017
12022
|
onBlur
|