@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.cjs
CHANGED
|
@@ -11109,6 +11109,7 @@ function ResponsiveSheet({
|
|
|
11109
11109
|
title ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
11110
11110
|
"div",
|
|
11111
11111
|
{
|
|
11112
|
+
"aria-hidden": "true",
|
|
11112
11113
|
className: cn(
|
|
11113
11114
|
"text-center mb-3 text-[26px] font-semibold leading-7",
|
|
11114
11115
|
titleClassName
|
|
@@ -11119,6 +11120,7 @@ function ResponsiveSheet({
|
|
|
11119
11120
|
description ? /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
11120
11121
|
"p",
|
|
11121
11122
|
{
|
|
11123
|
+
"aria-hidden": "true",
|
|
11122
11124
|
className: cn(
|
|
11123
11125
|
"text-center text-[16px] leading-6 text-[var(--primary)]/70",
|
|
11124
11126
|
descriptionClassName
|
|
@@ -12119,6 +12121,7 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
12119
12121
|
const containerRef = React40.useRef(null);
|
|
12120
12122
|
const hasValue = Boolean(value);
|
|
12121
12123
|
const helperText = placeholder ?? label;
|
|
12124
|
+
const shouldDescribeHelperText = !hasValue && helperText !== label;
|
|
12122
12125
|
const isBlocked = Boolean(disabled) || Boolean(loading);
|
|
12123
12126
|
const triggerError = error ?? invalid;
|
|
12124
12127
|
const {
|
|
@@ -12132,6 +12135,8 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
12132
12135
|
describedBy,
|
|
12133
12136
|
getOptionId: getOptionId2
|
|
12134
12137
|
} = useSelectIds({ name, hasValue, error, hideErrorMessage });
|
|
12138
|
+
const triggerHelperTextId = shouldDescribeHelperText ? helperTextId : void 0;
|
|
12139
|
+
const triggerDescribedBy = shouldDescribeHelperText ? describedBy : describedErrorId;
|
|
12135
12140
|
const {
|
|
12136
12141
|
mobileListRef,
|
|
12137
12142
|
mobileScrollTop,
|
|
@@ -12287,7 +12292,7 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
12287
12292
|
error,
|
|
12288
12293
|
invalid,
|
|
12289
12294
|
listboxId,
|
|
12290
|
-
describedBy,
|
|
12295
|
+
describedBy: triggerDescribedBy,
|
|
12291
12296
|
triggerRef: combinedRef,
|
|
12292
12297
|
onClick: handleTriggerClick,
|
|
12293
12298
|
onKeyDown: handleRootTriggerKeyDown,
|
|
@@ -12311,10 +12316,10 @@ var AirbnbSelect = React40.forwardRef(function AirbnbSelect2({
|
|
|
12311
12316
|
hideErrorMessage,
|
|
12312
12317
|
labelId,
|
|
12313
12318
|
valueId,
|
|
12314
|
-
helperTextId,
|
|
12319
|
+
helperTextId: triggerHelperTextId,
|
|
12315
12320
|
errorId: error ? errorId : void 0,
|
|
12316
12321
|
listboxId,
|
|
12317
|
-
describedBy,
|
|
12322
|
+
describedBy: triggerDescribedBy,
|
|
12318
12323
|
onClick: handleTriggerClick,
|
|
12319
12324
|
onKeyDown: handleRootTriggerKeyDown,
|
|
12320
12325
|
onBlur
|