@povio/ui 2.3.0 → 2.3.2-rc.1
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/assets/icons/AlignCenter.js +26 -11
- package/dist/assets/icons/AlignLeft.js +26 -11
- package/dist/assets/icons/AlignLeftRight.js +26 -11
- package/dist/assets/icons/AlignRight.js +26 -11
- package/dist/assets/icons/ArrowDropDown.js +26 -11
- package/dist/assets/icons/ArrowDropUp.js +26 -11
- package/dist/assets/icons/ArrowLeft.js +26 -11
- package/dist/assets/icons/ArrowRight.js +26 -11
- package/dist/assets/icons/Bold.js +26 -11
- package/dist/assets/icons/BulletedList.js +26 -11
- package/dist/assets/icons/Calendar.js +28 -13
- package/dist/assets/icons/Check.js +28 -13
- package/dist/assets/icons/CheckCircle.js +26 -11
- package/dist/assets/icons/CheckboxCheckmark.js +29 -14
- package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
- package/dist/assets/icons/ChevronDown.js +28 -13
- package/dist/assets/icons/ChevronLeft.js +28 -13
- package/dist/assets/icons/ChevronRight.js +28 -13
- package/dist/assets/icons/ChevronUp.js +28 -13
- package/dist/assets/icons/ChevronsLeft.js +28 -13
- package/dist/assets/icons/ChevronsRight.js +28 -13
- package/dist/assets/icons/Clock.js +26 -11
- package/dist/assets/icons/Close.js +26 -11
- package/dist/assets/icons/DateTime.js +35 -14
- package/dist/assets/icons/DragIndicator.js +26 -11
- package/dist/assets/icons/File.js +28 -13
- package/dist/assets/icons/Highlight.js +26 -11
- package/dist/assets/icons/HighlightOn.js +49 -15
- package/dist/assets/icons/Home.js +26 -11
- package/dist/assets/icons/Info.js +37 -16
- package/dist/assets/icons/Italic.js +26 -11
- package/dist/assets/icons/Link.js +26 -11
- package/dist/assets/icons/Menu.js +26 -11
- package/dist/assets/icons/NumberedList.js +26 -11
- package/dist/assets/icons/PointerHorizontal.js +26 -11
- package/dist/assets/icons/PointerVertical.js +26 -11
- package/dist/assets/icons/Search.js +26 -11
- package/dist/assets/icons/Send.js +28 -13
- package/dist/assets/icons/Strikethrough.js +26 -11
- package/dist/assets/icons/TextColor.js +48 -14
- package/dist/assets/icons/Today.js +26 -11
- package/dist/assets/icons/Underlined.js +28 -13
- package/dist/assets/icons/Upload.js +35 -14
- package/dist/assets/icons/Visibility.js +26 -11
- package/dist/assets/icons/VisibilityOff.js +26 -11
- package/dist/assets/icons/WarningFilled.js +28 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
- package/dist/components/Menu/Menu.js +18 -2
- package/dist/components/Menu/MenuDesktop.js +41 -7
- package/dist/components/Menu/MenuItem.js +32 -9
- package/dist/components/Menu/MenuMobile.js +97 -38
- package/dist/components/Menu/MenuPopover.js +105 -29
- package/dist/components/buttons/IconButton/IconButton.js +40 -8
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.js +55 -17
- package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
- package/dist/components/buttons/TextButton/TextButton.js +30 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
- package/dist/components/buttons/shared/ButtonContent.js +80 -22
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/inputs/Checkbox/Checkbox.js +201 -35
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +3 -0
- package/dist/components/inputs/Checkbox/checkbox.cva.js +4 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +11 -5
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +364 -76
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +11 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +452 -167
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +269 -57
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +6 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +605 -130
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
- package/dist/components/inputs/DateTime/shared/Calendar.js +332 -119
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +3 -2
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +301 -102
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +3 -2
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +146 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +249 -93
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.js +311 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +12 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +382 -138
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +96 -11
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +81 -27
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
- package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +210 -65
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +4 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +7 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +13 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +14 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +117 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +39 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +85 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- package/dist/components/inputs/File/FileUpload.js +87 -44
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/shared/FileCard.js +104 -41
- package/dist/components/inputs/File/shared/FileCardList.js +47 -12
- package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
- package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
- package/dist/components/inputs/File/shared/InputUploadContent.js +148 -34
- package/dist/components/inputs/File/shared/InputUploadFilled.js +50 -9
- package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +119 -37
- package/dist/components/inputs/FormField/FormFieldError.js +25 -5
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
- package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +6 -0
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +11 -0
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +450 -95
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +575 -0
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +4 -0
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +5 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +305 -90
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +421 -91
- package/dist/components/inputs/Input/shared/InputContent.js +192 -59
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
- package/dist/components/inputs/Inputs/Form.js +40 -11
- package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
- package/dist/components/inputs/Inputs/InputItem.js +69 -14
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +353 -60
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +17 -0
- package/dist/components/inputs/RadioGroup/radio.cva.js +42 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +213 -22
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +34 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +36 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +104 -0
- package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
- package/dist/components/inputs/Selection/Select/Select.js +224 -18
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +393 -138
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +330 -116
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +12 -5
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +7 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +24 -0
- package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/select.context.js +67 -36
- package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +3 -0
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +37 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +80 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +528 -0
- package/dist/components/inputs/Slider/Slider.d.ts +2 -1
- package/dist/components/inputs/Slider/Slider.js +265 -75
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
- package/dist/components/inputs/TextEditor/TextEditor.js +447 -98
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
- package/dist/components/inputs/Toggle/Toggle.js +214 -37
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +3 -0
- package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
- package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
- package/dist/components/inputs/shared/CheckContent.js +21 -11
- package/dist/components/inputs/shared/InputClear.d.ts +2 -1
- package/dist/components/inputs/shared/InputClear.js +89 -10
- package/dist/components/inputs/shared/StaticInput.d.ts +38 -0
- package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
- package/dist/components/inputs/shared/input.cva.d.ts +10 -0
- package/dist/components/inputs/shared/input.cva.js +54 -14
- package/dist/components/inputs/shared/label.cva.js +2 -2
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +4 -0
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +14 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +100 -0
- package/dist/components/navigation/Accordion/Accordion.js +69 -22
- package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
- package/dist/components/navigation/Stepper/Stepper.js +67 -22
- package/dist/components/navigation/Stepper/StepperItem.js +104 -31
- package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +122 -25
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
- package/dist/components/overlays/Drawer/Drawer.js +62 -20
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +83 -27
- package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
- package/dist/components/segment/Segment.js +218 -57
- package/dist/components/segment/SegmentItem.js +67 -10
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.js +167 -64
- package/dist/components/status/Alert/Alert.js +97 -30
- package/dist/components/status/Loader/Loader.js +77 -22
- package/dist/components/status/Toast/Toast.js +21 -13
- package/dist/components/status/Toast/useToast.js +62 -57
- package/dist/components/table/ColumnConfig.js +158 -54
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.js +84 -18
- package/dist/components/table/Table.js +28 -27
- package/dist/components/text/Link/Link.js +19 -7
- package/dist/components/text/Typography/Typography.js +23 -8
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +23 -9
- package/dist/config/router.context.js +42 -16
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.d.ts +21 -7
- package/dist/config/uiConfig.context.js +68 -15
- package/dist/config/uiStyle.context.d.ts +27 -4
- package/dist/config/uiStyle.context.js +15 -5
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +3 -0
- package/dist/hooks/useBreakpoint.js +16 -3
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFilters.js +125 -64
- package/dist/hooks/useForm.js +42 -8
- package/dist/hooks/useFormAutosave.js +101 -30
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +91 -24
- package/dist/hooks/useLocalStorage.js +43 -10
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.js +49 -19
- package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
- package/dist/hooks/useQueryAutocomplete.js +57 -0
- package/dist/hooks/useScrollableListBox.js +37 -16
- package/dist/hooks/useSorting.js +69 -28
- package/dist/hooks/useStateAndRef.js +21 -7
- package/dist/hooks/useTableColumnConfig.js +124 -31
- package/dist/hooks/useTranslationMemo.js +25 -5
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -2
- package/dist/tw-ui-plugin.js +8 -1
- package/dist/utils/date-time.utils.d.ts +38 -10
- package/dist/utils/date-time.utils.js +134 -22
- package/dist/utils/dom.utils.js +1 -1
- package/dist/utils/query.utils.d.ts +4 -0
- package/dist/utils/query.utils.js +8 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
|
2
2
|
import { BottomSheetHeader } from "./BottomSheetHeader.js";
|
|
3
3
|
import { useStateAndRef } from "../../../hooks/useStateAndRef.js";
|
|
4
4
|
import { DomUtils } from "../../../utils/dom.utils.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -26,6 +27,7 @@ var staticTransition = {
|
|
|
26
27
|
1
|
|
27
28
|
]
|
|
28
29
|
};
|
|
30
|
+
var KEYBOARD_INSET_THRESHOLD = 48;
|
|
29
31
|
var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = true, isScrollable = true, height = "full", label, portalContainerRef, children, footer, hideHeader, hideThumb: hideThumbProp, sheetMarginTop = 96, sheetMarginBottom = 128, closeDragThreshold: closeDragThresholdProp, closeVelocityThreshold: closeVelocityThresholdProp, shouldCloseOnInteractOutside, containerClassName, overlayClassName, headerTypography: headerTypographyProp }) => {
|
|
30
32
|
const uiConfig = UIConfig.useConfig();
|
|
31
33
|
const closeDragThreshold = closeDragThresholdProp ?? uiConfig.bottomSheet.closeDragThreshold;
|
|
@@ -48,6 +50,27 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
48
50
|
const focusTrapRef = useRef(null);
|
|
49
51
|
const [footerElement, footerRef, setFooterElement] = useStateAndRef(null);
|
|
50
52
|
const [footerHeight, setFooterHeight] = useState(0);
|
|
53
|
+
const [keyboardInset, setKeyboardInset] = useState(0);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (!isOpen) {
|
|
56
|
+
setKeyboardInset(0);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const vv = window.visualViewport;
|
|
60
|
+
if (!vv) return;
|
|
61
|
+
const update = () => {
|
|
62
|
+
const naturalHeight = vv.height * Math.max(vv.scale, 1);
|
|
63
|
+
const next = Math.max(0, window.innerHeight - naturalHeight);
|
|
64
|
+
setKeyboardInset(next > KEYBOARD_INSET_THRESHOLD ? Math.round(next) : 0);
|
|
65
|
+
};
|
|
66
|
+
update();
|
|
67
|
+
vv.addEventListener("resize", update);
|
|
68
|
+
vv.addEventListener("scroll", update);
|
|
69
|
+
return () => {
|
|
70
|
+
vv.removeEventListener("resize", update);
|
|
71
|
+
vv.removeEventListener("scroll", update);
|
|
72
|
+
};
|
|
73
|
+
}, [isOpen]);
|
|
51
74
|
useEffect(() => {
|
|
52
75
|
if (!footerElement) return;
|
|
53
76
|
const onResize = () => {
|
|
@@ -77,6 +100,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
77
100
|
isOpen: true,
|
|
78
101
|
UNSTABLE_portalContainer: portalContainerRef?.current,
|
|
79
102
|
className: clsx("fixed top-0 left-0 z-10 w-screen h-dvh", containerClassName),
|
|
103
|
+
style: { "--bottom-sheet-keyboard-inset": `${keyboardInset}px` },
|
|
80
104
|
onOpenChange,
|
|
81
105
|
isDismissable,
|
|
82
106
|
ref: overlayRef,
|
|
@@ -104,13 +128,14 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
104
128
|
onAnimationComplete: (data) => {
|
|
105
129
|
onStateChange?.(data.y === 0 ? "opened" : "closed");
|
|
106
130
|
},
|
|
107
|
-
onAnimationStart: (
|
|
108
|
-
onStateChange?.(
|
|
131
|
+
onAnimationStart: (data_0) => {
|
|
132
|
+
onStateChange?.(data_0.y === 0 ? "opening" : "closing");
|
|
109
133
|
},
|
|
110
134
|
transition: staticTransition,
|
|
111
135
|
style: {
|
|
112
136
|
y,
|
|
113
|
-
|
|
137
|
+
height: "calc(100dvh - var(--bottom-sheet-keyboard-inset, 0px))",
|
|
138
|
+
minHeight: "calc(100dvh - var(--bottom-sheet-keyboard-inset, 0px))"
|
|
114
139
|
},
|
|
115
140
|
drag: "y",
|
|
116
141
|
dragListener: false,
|
|
@@ -188,7 +213,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
188
213
|
initial: { opacity: 0 },
|
|
189
214
|
exit: { opacity: 0 },
|
|
190
215
|
ref: setFooterElement,
|
|
191
|
-
className: clsx("pointer-events-auto absolute z-50 w-full bg-elevation-fill-default-2", "top-[100dvh] left-0 translate-y-[calc(-100%-var(--scroll-position,
|
|
216
|
+
className: clsx("pointer-events-auto absolute z-50 w-full bg-elevation-fill-default-2", "top-[calc(100dvh-var(--bottom-sheet-keyboard-inset,0))] left-0 translate-y-[calc(-100%-var(--scroll-position,0))]"),
|
|
192
217
|
children: footer
|
|
193
218
|
})
|
|
194
219
|
] })
|
|
@@ -196,36 +221,108 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
196
221
|
})]
|
|
197
222
|
}) });
|
|
198
223
|
};
|
|
199
|
-
var BottomSheet = (
|
|
224
|
+
var BottomSheet = (t0) => {
|
|
225
|
+
const $ = c(30);
|
|
226
|
+
let children;
|
|
227
|
+
let isOpen;
|
|
228
|
+
let onOpenChange;
|
|
229
|
+
let portalContainerRef;
|
|
230
|
+
let rest;
|
|
231
|
+
let trigger;
|
|
232
|
+
if ($[0] !== t0) {
|
|
233
|
+
({isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest} = t0);
|
|
234
|
+
$[0] = t0;
|
|
235
|
+
$[1] = children;
|
|
236
|
+
$[2] = isOpen;
|
|
237
|
+
$[3] = onOpenChange;
|
|
238
|
+
$[4] = portalContainerRef;
|
|
239
|
+
$[5] = rest;
|
|
240
|
+
$[6] = trigger;
|
|
241
|
+
} else {
|
|
242
|
+
children = $[1];
|
|
243
|
+
isOpen = $[2];
|
|
244
|
+
onOpenChange = $[3];
|
|
245
|
+
portalContainerRef = $[4];
|
|
246
|
+
rest = $[5];
|
|
247
|
+
trigger = $[6];
|
|
248
|
+
}
|
|
200
249
|
const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
|
|
201
250
|
const hasTrigger = !!trigger;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
setIsSheetOpen(open);
|
|
208
|
-
onOpenChange?.(open);
|
|
251
|
+
let t1;
|
|
252
|
+
let t2;
|
|
253
|
+
if ($[7] !== hasTrigger || $[8] !== isOpen) {
|
|
254
|
+
t1 = () => {
|
|
255
|
+
if (hasTrigger) setIsSheetOpen(!!isOpen);
|
|
209
256
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
257
|
+
t2 = [isOpen, hasTrigger];
|
|
258
|
+
$[7] = hasTrigger;
|
|
259
|
+
$[8] = isOpen;
|
|
260
|
+
$[9] = t1;
|
|
261
|
+
$[10] = t2;
|
|
262
|
+
} else {
|
|
263
|
+
t1 = $[9];
|
|
264
|
+
t2 = $[10];
|
|
265
|
+
}
|
|
266
|
+
useEffect(t1, t2);
|
|
267
|
+
if (trigger) {
|
|
268
|
+
let t3;
|
|
269
|
+
if ($[11] !== onOpenChange) {
|
|
270
|
+
t3 = (open) => {
|
|
271
|
+
setIsSheetOpen(open);
|
|
272
|
+
onOpenChange?.(open);
|
|
273
|
+
};
|
|
274
|
+
$[11] = onOpenChange;
|
|
275
|
+
$[12] = t3;
|
|
276
|
+
} else t3 = $[12];
|
|
277
|
+
const handleOpenChange = t3;
|
|
278
|
+
let t4;
|
|
279
|
+
if ($[13] !== children || $[14] !== handleOpenChange || $[15] !== isSheetOpen || $[16] !== portalContainerRef || $[17] !== rest) {
|
|
280
|
+
t4 = /* @__PURE__ */ jsx(BottomSheetBase, {
|
|
214
281
|
isOpen: isSheetOpen,
|
|
215
282
|
onOpenChange: handleOpenChange,
|
|
216
283
|
portalContainerRef,
|
|
217
284
|
...rest,
|
|
218
285
|
children
|
|
219
|
-
})
|
|
220
|
-
|
|
286
|
+
});
|
|
287
|
+
$[13] = children;
|
|
288
|
+
$[14] = handleOpenChange;
|
|
289
|
+
$[15] = isSheetOpen;
|
|
290
|
+
$[16] = portalContainerRef;
|
|
291
|
+
$[17] = rest;
|
|
292
|
+
$[18] = t4;
|
|
293
|
+
} else t4 = $[18];
|
|
294
|
+
let t5;
|
|
295
|
+
if ($[19] !== handleOpenChange || $[20] !== isSheetOpen || $[21] !== t4 || $[22] !== trigger) {
|
|
296
|
+
t5 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
297
|
+
isOpen: isSheetOpen,
|
|
298
|
+
onOpenChange: handleOpenChange,
|
|
299
|
+
children: [trigger, t4]
|
|
300
|
+
});
|
|
301
|
+
$[19] = handleOpenChange;
|
|
302
|
+
$[20] = isSheetOpen;
|
|
303
|
+
$[21] = t4;
|
|
304
|
+
$[22] = trigger;
|
|
305
|
+
$[23] = t5;
|
|
306
|
+
} else t5 = $[23];
|
|
307
|
+
return t5;
|
|
221
308
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
309
|
+
let t3;
|
|
310
|
+
if ($[24] !== children || $[25] !== isOpen || $[26] !== onOpenChange || $[27] !== portalContainerRef || $[28] !== rest) {
|
|
311
|
+
t3 = /* @__PURE__ */ jsx(BottomSheetBase, {
|
|
312
|
+
isOpen,
|
|
313
|
+
onOpenChange,
|
|
314
|
+
portalContainerRef,
|
|
315
|
+
...rest,
|
|
316
|
+
children
|
|
317
|
+
});
|
|
318
|
+
$[24] = children;
|
|
319
|
+
$[25] = isOpen;
|
|
320
|
+
$[26] = onOpenChange;
|
|
321
|
+
$[27] = portalContainerRef;
|
|
322
|
+
$[28] = rest;
|
|
323
|
+
$[29] = t3;
|
|
324
|
+
} else t3 = $[29];
|
|
325
|
+
return t3;
|
|
229
326
|
};
|
|
230
327
|
//#endregion
|
|
231
328
|
export { BottomSheet };
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
3
|
import "../../../config/i18n.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { clsx } from "clsx";
|
|
6
7
|
import { Button } from "react-aria-components";
|
|
7
8
|
import { useTranslation } from "react-i18next";
|
|
8
9
|
//#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
|
|
9
|
-
var BottomSheetHeader = (
|
|
10
|
+
var BottomSheetHeader = (t0) => {
|
|
11
|
+
const $ = c(17);
|
|
12
|
+
const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
|
|
10
13
|
const { t } = useTranslation("ui");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
const t1 = !isDismissable && "pt-list-height-title-top";
|
|
15
|
+
let t2;
|
|
16
|
+
if ($[0] !== t1) {
|
|
17
|
+
t2 = clsx("pb-list-height-title-bottom", t1);
|
|
18
|
+
$[0] = t1;
|
|
19
|
+
$[1] = t2;
|
|
20
|
+
} else t2 = $[1];
|
|
21
|
+
let t3;
|
|
22
|
+
if ($[2] !== dragControls || $[3] !== hideThumb || $[4] !== isDismissable) {
|
|
23
|
+
t3 = isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
|
|
14
24
|
className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2-5",
|
|
15
25
|
onPointerDown: (e) => {
|
|
16
26
|
e.preventDefault();
|
|
@@ -18,7 +28,15 @@ var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHe
|
|
|
18
28
|
},
|
|
19
29
|
"aria-hidden": true,
|
|
20
30
|
children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-elevation-fill-default-3" })
|
|
21
|
-
})
|
|
31
|
+
});
|
|
32
|
+
$[2] = dragControls;
|
|
33
|
+
$[3] = hideThumb;
|
|
34
|
+
$[4] = isDismissable;
|
|
35
|
+
$[5] = t3;
|
|
36
|
+
} else t3 = $[5];
|
|
37
|
+
let t4;
|
|
38
|
+
if ($[6] !== headerTypography || $[7] !== hideHeader || $[8] !== isDismissable || $[9] !== label || $[10] !== onClose || $[11] !== t) {
|
|
39
|
+
t4 = !hideHeader && /* @__PURE__ */ jsxs("div", {
|
|
22
40
|
className: "flex justify-between px-list-side-title",
|
|
23
41
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
24
42
|
size: "label-2",
|
|
@@ -27,12 +45,34 @@ var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHe
|
|
|
27
45
|
children: label
|
|
28
46
|
}), onClose && isDismissable && /* @__PURE__ */ jsx(Button, {
|
|
29
47
|
onPress: onClose,
|
|
30
|
-
"aria-label": t(
|
|
48
|
+
"aria-label": t(_temp),
|
|
31
49
|
className: "-m-2 shrink-0 p-2 text-interactive-text-secondary-idle focus-visible:outline-interactive-text-secondary-focus",
|
|
32
50
|
children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6" })
|
|
33
51
|
})]
|
|
34
|
-
})
|
|
35
|
-
|
|
52
|
+
});
|
|
53
|
+
$[6] = headerTypography;
|
|
54
|
+
$[7] = hideHeader;
|
|
55
|
+
$[8] = isDismissable;
|
|
56
|
+
$[9] = label;
|
|
57
|
+
$[10] = onClose;
|
|
58
|
+
$[11] = t;
|
|
59
|
+
$[12] = t4;
|
|
60
|
+
} else t4 = $[12];
|
|
61
|
+
let t5;
|
|
62
|
+
if ($[13] !== t2 || $[14] !== t3 || $[15] !== t4) {
|
|
63
|
+
t5 = /* @__PURE__ */ jsxs("div", {
|
|
64
|
+
className: t2,
|
|
65
|
+
children: [t3, t4]
|
|
66
|
+
});
|
|
67
|
+
$[13] = t2;
|
|
68
|
+
$[14] = t3;
|
|
69
|
+
$[15] = t4;
|
|
70
|
+
$[16] = t5;
|
|
71
|
+
} else t5 = $[16];
|
|
72
|
+
return t5;
|
|
36
73
|
};
|
|
74
|
+
function _temp($) {
|
|
75
|
+
return $.ui.closeAlt;
|
|
76
|
+
}
|
|
37
77
|
//#endregion
|
|
38
78
|
export { BottomSheetHeader };
|
|
@@ -1,35 +1,77 @@
|
|
|
1
1
|
import { modalOverlay } from "../Modal/modal.cva.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { clsx } from "clsx";
|
|
4
5
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
5
6
|
//#region src/components/overlays/Drawer/Drawer.tsx
|
|
6
|
-
var Drawer = (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
var Drawer = (t0) => {
|
|
8
|
+
const $ = c(25);
|
|
9
|
+
const { label, isOpen, portalContainerRef, onOpenChange, trigger, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside } = t0;
|
|
10
|
+
if (trigger) {
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== children || $[1] !== className || $[2] !== dialogClassName || $[3] !== isDismissable || $[4] !== label || $[5] !== overlayClassName || $[6] !== portalContainerRef || $[7] !== shouldCloseOnInteractOutside) {
|
|
13
|
+
t1 = /* @__PURE__ */ jsx(DrawerOverlay, {
|
|
14
|
+
label,
|
|
15
|
+
portalContainerRef,
|
|
16
|
+
isDismissable,
|
|
17
|
+
overlayClassName,
|
|
18
|
+
dialogClassName,
|
|
19
|
+
className,
|
|
20
|
+
shouldCloseOnInteractOutside,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
$[0] = children;
|
|
24
|
+
$[1] = className;
|
|
25
|
+
$[2] = dialogClassName;
|
|
26
|
+
$[3] = isDismissable;
|
|
27
|
+
$[4] = label;
|
|
28
|
+
$[5] = overlayClassName;
|
|
29
|
+
$[6] = portalContainerRef;
|
|
30
|
+
$[7] = shouldCloseOnInteractOutside;
|
|
31
|
+
$[8] = t1;
|
|
32
|
+
} else t1 = $[8];
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[9] !== isOpen || $[10] !== onOpenChange || $[11] !== t1 || $[12] !== trigger) {
|
|
35
|
+
t2 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
36
|
+
isOpen,
|
|
37
|
+
onOpenChange,
|
|
38
|
+
children: [trigger, t1]
|
|
39
|
+
});
|
|
40
|
+
$[9] = isOpen;
|
|
41
|
+
$[10] = onOpenChange;
|
|
42
|
+
$[11] = t1;
|
|
43
|
+
$[12] = trigger;
|
|
44
|
+
$[13] = t2;
|
|
45
|
+
} else t2 = $[13];
|
|
46
|
+
return t2;
|
|
47
|
+
}
|
|
48
|
+
let t1;
|
|
49
|
+
if ($[14] !== children || $[15] !== className || $[16] !== dialogClassName || $[17] !== isDismissable || $[18] !== isOpen || $[19] !== label || $[20] !== onOpenChange || $[21] !== overlayClassName || $[22] !== portalContainerRef || $[23] !== shouldCloseOnInteractOutside) {
|
|
50
|
+
t1 = /* @__PURE__ */ jsx(DrawerOverlay, {
|
|
51
|
+
isOpen,
|
|
52
|
+
onOpenChange,
|
|
12
53
|
portalContainerRef,
|
|
13
54
|
isDismissable,
|
|
14
55
|
overlayClassName,
|
|
15
56
|
dialogClassName,
|
|
16
57
|
className,
|
|
58
|
+
label,
|
|
17
59
|
shouldCloseOnInteractOutside,
|
|
18
60
|
children
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
61
|
+
});
|
|
62
|
+
$[14] = children;
|
|
63
|
+
$[15] = className;
|
|
64
|
+
$[16] = dialogClassName;
|
|
65
|
+
$[17] = isDismissable;
|
|
66
|
+
$[18] = isOpen;
|
|
67
|
+
$[19] = label;
|
|
68
|
+
$[20] = onOpenChange;
|
|
69
|
+
$[21] = overlayClassName;
|
|
70
|
+
$[22] = portalContainerRef;
|
|
71
|
+
$[23] = shouldCloseOnInteractOutside;
|
|
72
|
+
$[24] = t1;
|
|
73
|
+
} else t1 = $[24];
|
|
74
|
+
return t1;
|
|
33
75
|
};
|
|
34
76
|
var DrawerOverlay = ({ label, isOpen, onOpenChange, portalContainerRef, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside }) => {
|
|
35
77
|
return /* @__PURE__ */ jsx(ModalOverlay, {
|
|
@@ -2,40 +2,96 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
|
2
2
|
import { BottomSheet } from "../BottomSheet/BottomSheet.js";
|
|
3
3
|
import { useBreakpoint } from "../../../hooks/useBreakpoint.js";
|
|
4
4
|
import { popover } from "../../shared/popover.cva.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
import { Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
8
9
|
//#region src/components/overlays/ResponsivePopover/ResponsivePopover.tsx
|
|
9
|
-
var ResponsivePopover = (
|
|
10
|
+
var ResponsivePopover = (t0) => {
|
|
11
|
+
const $ = c(23);
|
|
12
|
+
const { trigger, isOpen, onOpenChange, children, popoverClassName, sheetLabel } = t0;
|
|
10
13
|
const popoverCva = UIStyle.useCva("popover.cva", popover);
|
|
11
|
-
if (!useBreakpoint("md"))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
if (!useBreakpoint("md")) {
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== children) {
|
|
17
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
18
|
+
className: "p-4",
|
|
19
|
+
children
|
|
20
|
+
});
|
|
21
|
+
$[0] = children;
|
|
22
|
+
$[1] = t1;
|
|
23
|
+
} else t1 = $[1];
|
|
24
|
+
let t2;
|
|
25
|
+
if ($[2] !== isOpen || $[3] !== onOpenChange || $[4] !== sheetLabel || $[5] !== t1 || $[6] !== trigger) {
|
|
26
|
+
t2 = /* @__PURE__ */ jsx(BottomSheet, {
|
|
27
|
+
isOpen,
|
|
28
|
+
onOpenChange,
|
|
29
|
+
trigger,
|
|
30
|
+
height: "auto",
|
|
31
|
+
isDismissable: true,
|
|
32
|
+
label: sheetLabel,
|
|
33
|
+
children: t1
|
|
34
|
+
});
|
|
35
|
+
$[2] = isOpen;
|
|
36
|
+
$[3] = onOpenChange;
|
|
37
|
+
$[4] = sheetLabel;
|
|
38
|
+
$[5] = t1;
|
|
39
|
+
$[6] = trigger;
|
|
40
|
+
$[7] = t2;
|
|
41
|
+
} else t2 = $[7];
|
|
42
|
+
return t2;
|
|
43
|
+
}
|
|
44
|
+
let t1;
|
|
45
|
+
if ($[8] !== popoverClassName) {
|
|
46
|
+
t1 = clsx("my-4 outline-none", popoverClassName);
|
|
47
|
+
$[8] = popoverClassName;
|
|
48
|
+
$[9] = t1;
|
|
49
|
+
} else t1 = $[9];
|
|
50
|
+
let t2;
|
|
51
|
+
if ($[10] !== popoverCva) {
|
|
52
|
+
t2 = clsx(popoverCva({}), "overflow-hidden p-2");
|
|
53
|
+
$[10] = popoverCva;
|
|
54
|
+
$[11] = t2;
|
|
55
|
+
} else t2 = $[11];
|
|
56
|
+
let t3;
|
|
57
|
+
if ($[12] !== children || $[13] !== t2) {
|
|
58
|
+
t3 = /* @__PURE__ */ jsx(Dialog, {
|
|
59
|
+
className: "outline-none",
|
|
60
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: t2,
|
|
62
|
+
children
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
$[12] = children;
|
|
66
|
+
$[13] = t2;
|
|
67
|
+
$[14] = t3;
|
|
68
|
+
} else t3 = $[14];
|
|
69
|
+
let t4;
|
|
70
|
+
if ($[15] !== t1 || $[16] !== t3) {
|
|
71
|
+
t4 = /* @__PURE__ */ jsx(Popover, {
|
|
72
|
+
className: t1,
|
|
28
73
|
offset: 0,
|
|
29
74
|
placement: "bottom start",
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
75
|
+
children: t3
|
|
76
|
+
});
|
|
77
|
+
$[15] = t1;
|
|
78
|
+
$[16] = t3;
|
|
79
|
+
$[17] = t4;
|
|
80
|
+
} else t4 = $[17];
|
|
81
|
+
let t5;
|
|
82
|
+
if ($[18] !== isOpen || $[19] !== onOpenChange || $[20] !== t4 || $[21] !== trigger) {
|
|
83
|
+
t5 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
84
|
+
isOpen,
|
|
85
|
+
onOpenChange,
|
|
86
|
+
children: [trigger, t4]
|
|
87
|
+
});
|
|
88
|
+
$[18] = isOpen;
|
|
89
|
+
$[19] = onOpenChange;
|
|
90
|
+
$[20] = t4;
|
|
91
|
+
$[21] = trigger;
|
|
92
|
+
$[22] = t5;
|
|
93
|
+
} else t5 = $[22];
|
|
94
|
+
return t5;
|
|
39
95
|
};
|
|
40
96
|
//#endregion
|
|
41
97
|
export { ResponsivePopover };
|