@povio/ui 2.3.2-rc.3 → 2.3.3
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 +11 -26
- package/dist/assets/icons/AlignLeft.js +11 -26
- package/dist/assets/icons/AlignLeftRight.js +11 -26
- package/dist/assets/icons/AlignRight.js +11 -26
- package/dist/assets/icons/ArrowDropDown.js +11 -26
- package/dist/assets/icons/ArrowDropUp.js +11 -26
- package/dist/assets/icons/ArrowLeft.js +11 -26
- package/dist/assets/icons/ArrowRight.js +11 -26
- package/dist/assets/icons/Bold.js +11 -26
- package/dist/assets/icons/BulletedList.js +11 -26
- package/dist/assets/icons/Calendar.js +13 -28
- package/dist/assets/icons/Check.js +13 -28
- package/dist/assets/icons/CheckCircle.js +11 -26
- package/dist/assets/icons/CheckboxCheckmark.js +14 -29
- package/dist/assets/icons/CheckboxIndeterminate.js +14 -29
- package/dist/assets/icons/ChevronDown.js +13 -28
- package/dist/assets/icons/ChevronLeft.js +13 -28
- package/dist/assets/icons/ChevronRight.js +13 -28
- package/dist/assets/icons/ChevronUp.js +13 -28
- package/dist/assets/icons/ChevronsLeft.js +13 -28
- package/dist/assets/icons/ChevronsRight.js +13 -28
- package/dist/assets/icons/Clock.js +11 -26
- package/dist/assets/icons/Close.js +11 -26
- package/dist/assets/icons/DateTime.js +14 -35
- package/dist/assets/icons/DragIndicator.js +11 -26
- package/dist/assets/icons/File.js +13 -28
- package/dist/assets/icons/Highlight.js +11 -26
- package/dist/assets/icons/HighlightOn.js +15 -49
- package/dist/assets/icons/Home.js +11 -26
- package/dist/assets/icons/Info.js +16 -37
- package/dist/assets/icons/Italic.js +11 -26
- package/dist/assets/icons/Link.js +11 -26
- package/dist/assets/icons/Menu.js +11 -26
- package/dist/assets/icons/NumberedList.js +11 -26
- package/dist/assets/icons/PointerHorizontal.js +11 -26
- package/dist/assets/icons/PointerVertical.js +11 -26
- package/dist/assets/icons/Search.js +11 -26
- package/dist/assets/icons/Send.js +13 -28
- package/dist/assets/icons/Strikethrough.js +11 -26
- package/dist/assets/icons/TextColor.js +14 -48
- package/dist/assets/icons/Today.js +11 -26
- package/dist/assets/icons/Underlined.js +13 -28
- package/dist/assets/icons/Upload.js +14 -35
- package/dist/assets/icons/Visibility.js +11 -26
- package/dist/assets/icons/VisibilityOff.js +11 -26
- package/dist/assets/icons/WarningFilled.js +13 -28
- package/dist/assets/locales/sl/translation.json.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js +56 -207
- package/dist/components/Menu/Menu.js +2 -18
- package/dist/components/Menu/MenuDesktop.js +7 -41
- package/dist/components/Menu/MenuItem.js +9 -32
- package/dist/components/Menu/MenuMobile.js +38 -97
- package/dist/components/Menu/MenuPopover.js +29 -105
- package/dist/components/buttons/IconButton/IconButton.js +8 -40
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -2
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +9 -34
- package/dist/components/buttons/PillButton/PillButton.js +17 -55
- package/dist/components/buttons/SplitButton/SplitButton.js +18 -103
- package/dist/components/buttons/TextButton/TextButton.js +8 -30
- package/dist/components/buttons/ToggleButton/ToggleButton.js +8 -28
- package/dist/components/buttons/shared/ButtonContent.js +22 -80
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +35 -201
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +10 -24
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -3
- package/dist/components/inputs/Checkbox/checkbox.cva.js +1 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +75 -368
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +298 -506
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +5 -13
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +56 -273
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -6
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +130 -606
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +2 -5
- package/dist/components/inputs/DateTime/shared/Calendar.js +119 -332
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -3
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +102 -301
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -3
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +33 -146
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +93 -249
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +137 -318
- package/dist/components/inputs/DateTime/shared/DateField.js +112 -311
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -13
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +139 -383
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +11 -96
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +27 -81
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +10 -59
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
- package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +110 -279
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +1 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +65 -210
- package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
- package/dist/components/inputs/File/FileUpload.js +44 -87
- package/dist/components/inputs/File/FileUploadContainer.js +7 -15
- package/dist/components/inputs/File/InputUpload.js +79 -317
- package/dist/components/inputs/File/shared/FileCard.js +41 -104
- package/dist/components/inputs/File/shared/FileCardList.js +12 -47
- package/dist/components/inputs/File/shared/FileUploadContent.js +44 -175
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +46 -149
- package/dist/components/inputs/File/shared/FileUploadContentError.js +93 -234
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +97 -230
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +55 -199
- package/dist/components/inputs/File/shared/InputUploadContent.js +34 -148
- package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -49
- package/dist/components/inputs/File/shared/ProgressBar.js +9 -48
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +37 -119
- package/dist/components/inputs/FormField/FormFieldError.js +5 -25
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +22 -81
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
- package/dist/components/inputs/FormField/FormFieldHelper.js +6 -26
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +2 -5
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +97 -447
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +9 -48
- package/dist/components/inputs/Input/TextArea/TextArea.js +90 -305
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -3
- package/dist/components/inputs/Input/TextInput/TextInput.js +90 -419
- package/dist/components/inputs/Input/shared/InputContent.js +59 -192
- package/dist/components/inputs/Inputs/Form.js +11 -40
- package/dist/components/inputs/Inputs/InputItem.d.ts +21 -15
- package/dist/components/inputs/Inputs/InputItem.js +14 -69
- package/dist/components/inputs/Inputs/Inputs.js +11 -37
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/components/inputs/RadioGroup/RadioGroup.js +61 -353
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -17
- package/dist/components/inputs/RadioGroup/radio.cva.js +1 -42
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +2 -6
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +22 -214
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +18 -3
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +8 -104
- package/dist/components/inputs/Selection/Select/Select.d.ts +3 -7
- package/dist/components/inputs/Selection/Select/Select.js +18 -225
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -8
- package/dist/components/inputs/Selection/shared/SelectBase.js +18 -69
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +138 -393
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +116 -330
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +25 -99
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +52 -164
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +21 -70
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -9
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/select.context.js +36 -67
- package/dist/components/inputs/Selection/shared/select.types.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/useSelectItems.js +49 -109
- package/dist/components/inputs/Slider/Slider.d.ts +1 -2
- package/dist/components/inputs/Slider/Slider.js +76 -265
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +98 -447
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -1
- package/dist/components/inputs/Toggle/Toggle.js +37 -214
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -3
- package/dist/components/inputs/Toggle/toggle.cva.js +1 -2
- package/dist/components/inputs/shared/CheckContent.d.ts +1 -2
- package/dist/components/inputs/shared/CheckContent.js +11 -21
- package/dist/components/inputs/shared/InputClear.d.ts +1 -2
- package/dist/components/inputs/shared/InputClear.js +12 -88
- package/dist/components/inputs/shared/TooltipWrapper.js +11 -50
- package/dist/components/inputs/shared/input.cva.d.ts +0 -10
- package/dist/components/inputs/shared/input.cva.js +4 -32
- package/dist/components/navigation/Accordion/Accordion.js +22 -69
- package/dist/components/navigation/Accordion/AccordionItem.js +41 -86
- package/dist/components/navigation/Stepper/Stepper.js +22 -67
- package/dist/components/navigation/Stepper/StepperItem.js +31 -104
- package/dist/components/navigation/Stepper/StepperSeparator.js +5 -23
- package/dist/components/overlays/ActionModal/ActionModal.js +35 -169
- package/dist/components/overlays/BottomSheet/BottomSheet.js +23 -96
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +8 -48
- package/dist/components/overlays/Drawer/Drawer.js +20 -62
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +27 -83
- package/dist/components/overlays/Tooltip/Tooltip.js +28 -137
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +12 -37
- package/dist/components/segment/Segment.js +57 -218
- package/dist/components/segment/SegmentItem.js +10 -67
- package/dist/components/shared/pagination/Pagination.js +22 -108
- package/dist/components/shared/pagination/PaginationList.js +64 -167
- package/dist/components/status/Alert/Alert.js +30 -97
- package/dist/components/status/Loader/Loader.js +22 -77
- package/dist/components/status/Toast/Toast.js +13 -21
- package/dist/components/status/Toast/useToast.js +57 -62
- package/dist/components/table/ColumnConfig.js +54 -158
- package/dist/components/table/InfiniteTable.js +16 -67
- package/dist/components/table/PaginatedTable.js +18 -84
- package/dist/components/table/Table.js +27 -28
- package/dist/components/text/Link/Link.js +7 -19
- package/dist/components/text/Typography/Typography.js +8 -23
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +9 -23
- package/dist/config/router.context.js +16 -42
- package/dist/config/theme.context.js +45 -98
- package/dist/config/uiConfig.context.d.ts +6 -19
- package/dist/config/uiConfig.context.js +14 -67
- package/dist/config/uiStyle.context.d.ts +4 -27
- package/dist/config/uiStyle.context.js +5 -15
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +0 -3
- package/dist/hooks/useBreakpoint.js +3 -16
- package/dist/hooks/useDebounceCallback.js +17 -51
- package/dist/hooks/useFilters.js +64 -125
- package/dist/hooks/useForm.js +8 -42
- package/dist/hooks/useFormAutosave.js +30 -101
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +24 -91
- package/dist/hooks/useLocalStorage.js +10 -43
- package/dist/hooks/useLongPressRepeat.js +20 -55
- package/dist/hooks/usePagination.js +19 -49
- package/dist/hooks/useScrollableListBox.js +16 -37
- package/dist/hooks/useSorting.js +28 -69
- package/dist/hooks/useStateAndRef.js +7 -21
- package/dist/hooks/useTableColumnConfig.js +31 -124
- package/dist/hooks/useTranslationMemo.js +5 -25
- package/dist/index.d.ts +0 -7
- package/dist/index.js +2 -4
- package/dist/tw-ui-plugin.js +0 -6
- package/dist/utils/date-time.utils.d.ts +10 -38
- package/dist/utils/date-time.utils.js +22 -134
- package/package.json +1 -1
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -7
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -13
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -39
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -85
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -6
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -11
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -575
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -4
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -36
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -14
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -173
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -36
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -3
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -37
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -82
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -548
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -4
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -14
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -100
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -14
- package/dist/hooks/useQueryAutocomplete.js +0 -57
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
2
|
import { stepperSeparatorCva } from "./stepper.cva.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
//#region src/components/navigation/Stepper/StepperSeparator.tsx
|
|
6
|
-
var StepperSeparator = (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if ($[0] !== contentOrientation || $[1] !== orientation || $[2] !== stepperSeparatorCva$1) {
|
|
12
|
-
t1 = stepperSeparatorCva$1({
|
|
13
|
-
orientation,
|
|
14
|
-
contentOrientation
|
|
15
|
-
});
|
|
16
|
-
$[0] = contentOrientation;
|
|
17
|
-
$[1] = orientation;
|
|
18
|
-
$[2] = stepperSeparatorCva$1;
|
|
19
|
-
$[3] = t1;
|
|
20
|
-
} else t1 = $[3];
|
|
21
|
-
let t2;
|
|
22
|
-
if ($[4] !== t1) {
|
|
23
|
-
t2 = /* @__PURE__ */ jsx("div", { className: t1 });
|
|
24
|
-
$[4] = t1;
|
|
25
|
-
$[5] = t2;
|
|
26
|
-
} else t2 = $[5];
|
|
27
|
-
return t2;
|
|
5
|
+
var StepperSeparator = ({ orientation, contentOrientation }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: UIStyle.useCva("stepper.separatorCva", stepperSeparatorCva)({
|
|
7
|
+
orientation,
|
|
8
|
+
contentOrientation
|
|
9
|
+
}) });
|
|
28
10
|
};
|
|
29
11
|
//#endregion
|
|
30
12
|
export { StepperSeparator };
|
|
@@ -2,7 +2,6 @@ import { Typography } from "../../text/Typography/Typography.js";
|
|
|
2
2
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
3
3
|
import { Button } from "../../buttons/Button/Button.js";
|
|
4
4
|
import { Modal } from "../Modal/Modal.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
//#region src/components/overlays/ActionModal/ActionModal.tsx
|
|
@@ -11,178 +10,45 @@ var textAlignClassMap = {
|
|
|
11
10
|
center: "text-center",
|
|
12
11
|
right: "text-right"
|
|
13
12
|
};
|
|
14
|
-
var ActionModal = (
|
|
15
|
-
const $ = c(52);
|
|
16
|
-
let description;
|
|
17
|
-
let descriptionClassName;
|
|
18
|
-
let descriptionTypography;
|
|
19
|
-
let heading;
|
|
20
|
-
let modalClassName;
|
|
21
|
-
let modalProps;
|
|
22
|
-
let primaryAction;
|
|
23
|
-
let secondaryAction;
|
|
24
|
-
let t1;
|
|
25
|
-
let t2;
|
|
26
|
-
let titleClassName;
|
|
27
|
-
let titleTypography;
|
|
28
|
-
if ($[0] !== t0) {
|
|
29
|
-
({heading, description, primaryAction, secondaryAction, buttonSize: t1, textAlign: t2, modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps} = t0);
|
|
30
|
-
$[0] = t0;
|
|
31
|
-
$[1] = description;
|
|
32
|
-
$[2] = descriptionClassName;
|
|
33
|
-
$[3] = descriptionTypography;
|
|
34
|
-
$[4] = heading;
|
|
35
|
-
$[5] = modalClassName;
|
|
36
|
-
$[6] = modalProps;
|
|
37
|
-
$[7] = primaryAction;
|
|
38
|
-
$[8] = secondaryAction;
|
|
39
|
-
$[9] = t1;
|
|
40
|
-
$[10] = t2;
|
|
41
|
-
$[11] = titleClassName;
|
|
42
|
-
$[12] = titleTypography;
|
|
43
|
-
} else {
|
|
44
|
-
description = $[1];
|
|
45
|
-
descriptionClassName = $[2];
|
|
46
|
-
descriptionTypography = $[3];
|
|
47
|
-
heading = $[4];
|
|
48
|
-
modalClassName = $[5];
|
|
49
|
-
modalProps = $[6];
|
|
50
|
-
primaryAction = $[7];
|
|
51
|
-
secondaryAction = $[8];
|
|
52
|
-
t1 = $[9];
|
|
53
|
-
t2 = $[10];
|
|
54
|
-
titleClassName = $[11];
|
|
55
|
-
titleTypography = $[12];
|
|
56
|
-
}
|
|
57
|
-
const buttonSize = t1 === void 0 ? "m" : t1;
|
|
58
|
-
const textAlign = t2 === void 0 ? "left" : t2;
|
|
13
|
+
var ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps }) => {
|
|
59
14
|
const ui = UIConfig.useConfig();
|
|
60
15
|
const textAlignClass = textAlignClassMap[textAlign];
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
$[14] = t3;
|
|
66
|
-
} else t3 = $[14];
|
|
67
|
-
const t4 = titleTypography ?? ui.actionModal.titleTypography;
|
|
68
|
-
let t5;
|
|
69
|
-
if ($[15] !== textAlignClass || $[16] !== titleClassName) {
|
|
70
|
-
t5 = clsx("text-text-default-1", textAlignClass, titleClassName);
|
|
71
|
-
$[15] = textAlignClass;
|
|
72
|
-
$[16] = titleClassName;
|
|
73
|
-
$[17] = t5;
|
|
74
|
-
} else t5 = $[17];
|
|
75
|
-
let t6;
|
|
76
|
-
if ($[18] !== heading || $[19] !== t4 || $[20] !== t5) {
|
|
77
|
-
t6 = /* @__PURE__ */ jsx(Typography, {
|
|
78
|
-
...t4,
|
|
79
|
-
as: "h2",
|
|
80
|
-
className: t5,
|
|
81
|
-
children: heading
|
|
82
|
-
});
|
|
83
|
-
$[18] = heading;
|
|
84
|
-
$[19] = t4;
|
|
85
|
-
$[20] = t5;
|
|
86
|
-
$[21] = t6;
|
|
87
|
-
} else t6 = $[21];
|
|
88
|
-
const t7 = descriptionTypography ?? ui.actionModal.descriptionTypography;
|
|
89
|
-
let t8;
|
|
90
|
-
if ($[22] !== descriptionClassName || $[23] !== textAlignClass) {
|
|
91
|
-
t8 = clsx("text-text-default-1", textAlignClass, descriptionClassName);
|
|
92
|
-
$[22] = descriptionClassName;
|
|
93
|
-
$[23] = textAlignClass;
|
|
94
|
-
$[24] = t8;
|
|
95
|
-
} else t8 = $[24];
|
|
96
|
-
let t9;
|
|
97
|
-
if ($[25] !== description || $[26] !== t7 || $[27] !== t8) {
|
|
98
|
-
t9 = /* @__PURE__ */ jsx(Typography, {
|
|
99
|
-
...t7,
|
|
100
|
-
className: t8,
|
|
101
|
-
children: description
|
|
102
|
-
});
|
|
103
|
-
$[25] = description;
|
|
104
|
-
$[26] = t7;
|
|
105
|
-
$[27] = t8;
|
|
106
|
-
$[28] = t9;
|
|
107
|
-
} else t9 = $[28];
|
|
108
|
-
let t10;
|
|
109
|
-
if ($[29] !== t6 || $[30] !== t9) {
|
|
110
|
-
t10 = /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
return /* @__PURE__ */ jsxs(Modal, {
|
|
17
|
+
modalClassName: clsx("w-modal", modalClassName),
|
|
18
|
+
...modalProps,
|
|
19
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
111
20
|
className: "flex flex-col gap-modal-gap-text",
|
|
112
|
-
children: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
color: secondaryAction?.color ?? "secondary",
|
|
124
|
-
width: "fill",
|
|
125
|
-
onPress: secondaryAction?.onPress,
|
|
126
|
-
className: clsx("min-w-40 flex-1 shrink-0", secondaryAction?.className),
|
|
127
|
-
children: secondaryAction?.label
|
|
128
|
-
});
|
|
129
|
-
$[32] = buttonSize;
|
|
130
|
-
$[33] = secondaryAction;
|
|
131
|
-
$[34] = t11;
|
|
132
|
-
} else t11 = $[34];
|
|
133
|
-
const t12 = primaryAction?.variant ?? "contained";
|
|
134
|
-
const t13 = primaryAction?.color ?? "primary";
|
|
135
|
-
const t14 = primaryAction.onPress;
|
|
136
|
-
const t15 = primaryAction?.className;
|
|
137
|
-
let t16;
|
|
138
|
-
if ($[35] !== t15) {
|
|
139
|
-
t16 = clsx("min-w-40 flex-1 shrink-0", t15);
|
|
140
|
-
$[35] = t15;
|
|
141
|
-
$[36] = t16;
|
|
142
|
-
} else t16 = $[36];
|
|
143
|
-
let t17;
|
|
144
|
-
if ($[37] !== buttonSize || $[38] !== primaryAction.label || $[39] !== primaryAction.onPress || $[40] !== t12 || $[41] !== t13 || $[42] !== t16) {
|
|
145
|
-
t17 = /* @__PURE__ */ jsx(Button, {
|
|
146
|
-
variant: t12,
|
|
147
|
-
size: buttonSize,
|
|
148
|
-
color: t13,
|
|
149
|
-
width: "fill",
|
|
150
|
-
onPress: t14,
|
|
151
|
-
className: t16,
|
|
152
|
-
children: primaryAction.label
|
|
153
|
-
});
|
|
154
|
-
$[37] = buttonSize;
|
|
155
|
-
$[38] = primaryAction.label;
|
|
156
|
-
$[39] = primaryAction.onPress;
|
|
157
|
-
$[40] = t12;
|
|
158
|
-
$[41] = t13;
|
|
159
|
-
$[42] = t16;
|
|
160
|
-
$[43] = t17;
|
|
161
|
-
} else t17 = $[43];
|
|
162
|
-
let t18;
|
|
163
|
-
if ($[44] !== t11 || $[45] !== t17) {
|
|
164
|
-
t18 = /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
22
|
+
...titleTypography ?? ui.actionModal.titleTypography,
|
|
23
|
+
as: "h2",
|
|
24
|
+
className: clsx("text-text-default-1", textAlignClass, titleClassName),
|
|
25
|
+
children: heading
|
|
26
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
27
|
+
...descriptionTypography ?? ui.actionModal.descriptionTypography,
|
|
28
|
+
className: clsx("text-text-default-1", textAlignClass, descriptionClassName),
|
|
29
|
+
children: description
|
|
30
|
+
})]
|
|
31
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
165
32
|
className: "flex w-full flex-wrap gap-modal-gap-buttons pt-1",
|
|
166
|
-
children: [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
return t19;
|
|
33
|
+
children: [secondaryAction && /* @__PURE__ */ jsx(Button, {
|
|
34
|
+
variant: secondaryAction?.variant ?? "contained",
|
|
35
|
+
size: buttonSize,
|
|
36
|
+
color: secondaryAction?.color ?? "secondary",
|
|
37
|
+
width: "fill",
|
|
38
|
+
onPress: secondaryAction?.onPress,
|
|
39
|
+
className: clsx("min-w-40 flex-1 shrink-0", secondaryAction?.className),
|
|
40
|
+
children: secondaryAction?.label
|
|
41
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
42
|
+
variant: primaryAction?.variant ?? "contained",
|
|
43
|
+
size: buttonSize,
|
|
44
|
+
color: primaryAction?.color ?? "primary",
|
|
45
|
+
width: "fill",
|
|
46
|
+
onPress: primaryAction.onPress,
|
|
47
|
+
className: clsx("min-w-40 flex-1 shrink-0", primaryAction?.className),
|
|
48
|
+
children: primaryAction.label
|
|
49
|
+
})]
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
186
52
|
};
|
|
187
53
|
//#endregion
|
|
188
54
|
export { ActionModal };
|
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -128,8 +127,8 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
128
127
|
onAnimationComplete: (data) => {
|
|
129
128
|
onStateChange?.(data.y === 0 ? "opened" : "closed");
|
|
130
129
|
},
|
|
131
|
-
onAnimationStart: (
|
|
132
|
-
onStateChange?.(
|
|
130
|
+
onAnimationStart: (data) => {
|
|
131
|
+
onStateChange?.(data.y === 0 ? "opening" : "closing");
|
|
133
132
|
},
|
|
134
133
|
transition: staticTransition,
|
|
135
134
|
style: {
|
|
@@ -221,108 +220,36 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
221
220
|
})]
|
|
222
221
|
}) });
|
|
223
222
|
};
|
|
224
|
-
var BottomSheet = (
|
|
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
|
-
}
|
|
223
|
+
var BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }) => {
|
|
249
224
|
const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
|
|
250
225
|
const hasTrigger = !!trigger;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
t1 = () => {
|
|
255
|
-
if (hasTrigger) setIsSheetOpen(!!isOpen);
|
|
256
|
-
};
|
|
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);
|
|
226
|
+
useEffect(() => {
|
|
227
|
+
if (hasTrigger) setIsSheetOpen(!!isOpen);
|
|
228
|
+
}, [isOpen, hasTrigger]);
|
|
267
229
|
if (trigger) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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, {
|
|
230
|
+
const handleOpenChange = (open) => {
|
|
231
|
+
setIsSheetOpen(open);
|
|
232
|
+
onOpenChange?.(open);
|
|
233
|
+
};
|
|
234
|
+
return /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
235
|
+
isOpen: isSheetOpen,
|
|
236
|
+
onOpenChange: handleOpenChange,
|
|
237
|
+
children: [trigger, /* @__PURE__ */ jsx(BottomSheetBase, {
|
|
281
238
|
isOpen: isSheetOpen,
|
|
282
239
|
onOpenChange: handleOpenChange,
|
|
283
240
|
portalContainerRef,
|
|
284
241
|
...rest,
|
|
285
242
|
children
|
|
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;
|
|
308
|
-
}
|
|
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
|
|
243
|
+
})]
|
|
317
244
|
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
245
|
+
}
|
|
246
|
+
return /* @__PURE__ */ jsx(BottomSheetBase, {
|
|
247
|
+
isOpen,
|
|
248
|
+
onOpenChange,
|
|
249
|
+
portalContainerRef,
|
|
250
|
+
...rest,
|
|
251
|
+
children
|
|
252
|
+
});
|
|
326
253
|
};
|
|
327
254
|
//#endregion
|
|
328
255
|
export { BottomSheet };
|
|
@@ -1,26 +1,16 @@
|
|
|
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";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { Button } from "react-aria-components";
|
|
8
7
|
import { useTranslation } from "react-i18next";
|
|
9
8
|
//#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
|
|
10
|
-
var BottomSheetHeader = (
|
|
11
|
-
const $ = c(17);
|
|
12
|
-
const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
|
|
9
|
+
var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose }) => {
|
|
13
10
|
const { t } = useTranslation("ui");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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", {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
+
className: clsx("pb-list-height-title-bottom", !isDismissable && "pt-list-height-title-top"),
|
|
13
|
+
children: [isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
|
|
24
14
|
className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2-5",
|
|
25
15
|
onPointerDown: (e) => {
|
|
26
16
|
e.preventDefault();
|
|
@@ -28,15 +18,7 @@ var BottomSheetHeader = (t0) => {
|
|
|
28
18
|
},
|
|
29
19
|
"aria-hidden": true,
|
|
30
20
|
children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-elevation-fill-default-3" })
|
|
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", {
|
|
21
|
+
}), !hideHeader && /* @__PURE__ */ jsxs("div", {
|
|
40
22
|
className: "flex justify-between px-list-side-title",
|
|
41
23
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
42
24
|
size: "label-2",
|
|
@@ -45,34 +27,12 @@ var BottomSheetHeader = (t0) => {
|
|
|
45
27
|
children: label
|
|
46
28
|
}), onClose && isDismissable && /* @__PURE__ */ jsx(Button, {
|
|
47
29
|
onPress: onClose,
|
|
48
|
-
"aria-label": t(
|
|
30
|
+
"aria-label": t(($) => $.ui.closeAlt),
|
|
49
31
|
className: "-m-2 shrink-0 p-2 text-interactive-text-secondary-idle focus-visible:outline-interactive-text-secondary-focus",
|
|
50
32
|
children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6" })
|
|
51
33
|
})]
|
|
52
|
-
})
|
|
53
|
-
|
|
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;
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
73
36
|
};
|
|
74
|
-
function _temp($) {
|
|
75
|
-
return $.ui.closeAlt;
|
|
76
|
-
}
|
|
77
37
|
//#endregion
|
|
78
38
|
export { BottomSheetHeader };
|
|
@@ -1,77 +1,35 @@
|
|
|
1
1
|
import { modalOverlay } from "../Modal/modal.cva.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
6
5
|
//#region src/components/overlays/Drawer/Drawer.tsx
|
|
7
|
-
var Drawer = (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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,
|
|
6
|
+
var Drawer = ({ label, isOpen, portalContainerRef, onOpenChange, trigger, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside }) => {
|
|
7
|
+
if (trigger) return /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
8
|
+
isOpen,
|
|
9
|
+
onOpenChange,
|
|
10
|
+
children: [trigger, /* @__PURE__ */ jsx(DrawerOverlay, {
|
|
11
|
+
label,
|
|
53
12
|
portalContainerRef,
|
|
54
13
|
isDismissable,
|
|
55
14
|
overlayClassName,
|
|
56
15
|
dialogClassName,
|
|
57
16
|
className,
|
|
58
|
-
label,
|
|
59
17
|
shouldCloseOnInteractOutside,
|
|
60
18
|
children
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsx(DrawerOverlay, {
|
|
22
|
+
isOpen,
|
|
23
|
+
onOpenChange,
|
|
24
|
+
portalContainerRef,
|
|
25
|
+
isDismissable,
|
|
26
|
+
overlayClassName,
|
|
27
|
+
dialogClassName,
|
|
28
|
+
className,
|
|
29
|
+
label,
|
|
30
|
+
shouldCloseOnInteractOutside,
|
|
31
|
+
children
|
|
32
|
+
});
|
|
75
33
|
};
|
|
76
34
|
var DrawerOverlay = ({ label, isOpen, onOpenChange, portalContainerRef, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside }) => {
|
|
77
35
|
return /* @__PURE__ */ jsx(ModalOverlay, {
|