@povio/ui 3.4.0-rc.4 → 3.4.0-rc.6
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/components/Breadcrumbs/Breadcrumbs.js +13 -4
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +6 -3
- package/dist/components/Menu/MenuMobile.js +6 -3
- package/dist/components/Menu/MenuPopover.js +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +3 -3
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +2 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +196 -191
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +13 -9
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +7 -11
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimeField.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +46 -44
- package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.js +1 -1
- package/dist/components/inputs/File/FileUploadContainer.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +5 -2
- package/dist/components/inputs/File/shared/FileUploadContentError.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +7 -4
- package/dist/components/inputs/File/shared/InputUploadContent.js +3 -3
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormField.js +1 -1
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -3
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +6 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +89 -87
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +264 -253
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +5 -4
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +99 -98
- package/dist/components/inputs/Input/TextInput/TextInput.js +92 -90
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +49 -47
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/Inputs/Inputs.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +55 -53
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +56 -54
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +7 -3
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +6 -3
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +2 -2
- package/dist/components/inputs/Slider/Slider.js +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -3
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +5 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +9 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +1 -1
- package/dist/components/inputs/Toggle/Toggle.js +1 -1
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +7 -4
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/inputs/shared/form.binding.js +1 -1
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/AccordionItem.js +5 -2
- package/dist/components/navigation/Stepper/StepperItem.js +6 -3
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +6 -3
- package/dist/components/overlays/Drawer/Drawer.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- package/dist/components/overlays/Tooltip/Tooltip.js +14 -5
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +1 -1
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/status/Loader/Loader.js +1 -1
- package/dist/components/status/Toast/Toast.js +1 -1
- package/dist/components/status/Toast/useToast.js +1 -1
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +148 -40
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +5 -2
- package/dist/components/text/Tag/Tag.js +5 -2
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/uiConfig.context.js +13 -6
- package/dist/config/uiOverrides.context.js +1 -1
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.js +1 -1
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/index.js +1 -40
- package/dist/node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js +15 -0
- package/dist/react-icons-sprite-4cbd6962.svg +1 -0
- package/dist/rhf/Inputs.js +1 -1
- package/dist/rhf.d.ts +0 -39
- package/dist/tanstack.d.ts +0 -39
- package/dist/tanstack.js +1 -40
- package/package.json +2 -1
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
|
@@ -7,16 +7,16 @@ import { SelectContext } from "./select.context.js";
|
|
|
7
7
|
import { SelectInput } from "./SelectInput.js";
|
|
8
8
|
import { SelectListBox } from "./SelectListBox.js";
|
|
9
9
|
import { selectPopoverDefinition } from "./selectDesktop.cva.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { clsx } from "clsx";
|
|
13
12
|
import { Fragment as Fragment$1, useLayoutEffect, useRef, useState } from "react";
|
|
14
13
|
import { ComboBox, DialogTrigger, Popover } from "react-aria-components";
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
15
15
|
import { useLabel, usePreventScroll } from "react-aria";
|
|
16
16
|
import { mergeRefs } from "@react-aria/utils";
|
|
17
17
|
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
18
18
|
var SelectDesktop = (t0) => {
|
|
19
|
-
const $ = c(
|
|
19
|
+
const $ = c(130);
|
|
20
20
|
let containerClassName;
|
|
21
21
|
let customTrigger;
|
|
22
22
|
let error;
|
|
@@ -61,7 +61,7 @@ var SelectDesktop = (t0) => {
|
|
|
61
61
|
showSelectionContent = $[12];
|
|
62
62
|
trailingContent = $[13];
|
|
63
63
|
}
|
|
64
|
-
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isLoading, as, size, collapseAfter, selectedTagsType } = props;
|
|
64
|
+
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, isLoading, as, size, collapseAfter, selectedTagsType } = props;
|
|
65
65
|
const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
|
|
66
66
|
const selectPopoverCva = UIOverrides.useCva("select.popoverCva", selectPopoverDefinition);
|
|
67
67
|
const t1 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
|
|
@@ -280,7 +280,7 @@ var SelectDesktop = (t0) => {
|
|
|
280
280
|
$[77] = t20;
|
|
281
281
|
} else t20 = $[77];
|
|
282
282
|
let t21;
|
|
283
|
-
if ($[78] !== as || $[79] !== className || $[80] !== collapseAfter || $[81] !== customTrigger || $[82] !== dialogTriggerProps || $[83] !== error || $[84] !== fieldProps || $[85] !== headerProps || $[86] !== hideDropdownIcon || $[87] !== inputClassName || $[88] !== isClearable || $[89] !==
|
|
283
|
+
if ($[78] !== as || $[79] !== className || $[80] !== collapseAfter || $[81] !== customTrigger || $[82] !== dialogTriggerProps || $[83] !== error || $[84] !== fieldProps || $[85] !== headerProps || $[86] !== hideDropdownIcon || $[87] !== inputClassName || $[88] !== isClearable || $[89] !== isClearableIfDisabled || $[90] !== isDirty || $[91] !== isDisabled || $[92] !== isRequired || $[93] !== isSearchable || $[94] !== leadingContent || $[95] !== onBlur || $[96] !== placeholder || $[97] !== ref || $[98] !== selectedTagsType || $[99] !== showSelectionContent || $[100] !== size || $[101] !== trailingContent || $[102] !== variant) {
|
|
284
284
|
t21 = customTrigger ? /* @__PURE__ */ jsx(DialogTrigger, {
|
|
285
285
|
...dialogTriggerProps,
|
|
286
286
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -300,6 +300,7 @@ var SelectDesktop = (t0) => {
|
|
|
300
300
|
hideDropdownIcon,
|
|
301
301
|
isSearchable,
|
|
302
302
|
isClearable,
|
|
303
|
+
isClearableIfDisabled,
|
|
303
304
|
showSelectionContent,
|
|
304
305
|
inputClassName,
|
|
305
306
|
leadingContent,
|
|
@@ -326,23 +327,24 @@ var SelectDesktop = (t0) => {
|
|
|
326
327
|
$[86] = hideDropdownIcon;
|
|
327
328
|
$[87] = inputClassName;
|
|
328
329
|
$[88] = isClearable;
|
|
329
|
-
$[89] =
|
|
330
|
-
$[90] =
|
|
331
|
-
$[91] =
|
|
332
|
-
$[92] =
|
|
333
|
-
$[93] =
|
|
334
|
-
$[94] =
|
|
335
|
-
$[95] =
|
|
336
|
-
$[96] =
|
|
337
|
-
$[97] =
|
|
338
|
-
$[98] =
|
|
339
|
-
$[99] =
|
|
340
|
-
$[100] =
|
|
341
|
-
$[101] =
|
|
342
|
-
$[102] =
|
|
343
|
-
|
|
330
|
+
$[89] = isClearableIfDisabled;
|
|
331
|
+
$[90] = isDirty;
|
|
332
|
+
$[91] = isDisabled;
|
|
333
|
+
$[92] = isRequired;
|
|
334
|
+
$[93] = isSearchable;
|
|
335
|
+
$[94] = leadingContent;
|
|
336
|
+
$[95] = onBlur;
|
|
337
|
+
$[96] = placeholder;
|
|
338
|
+
$[97] = ref;
|
|
339
|
+
$[98] = selectedTagsType;
|
|
340
|
+
$[99] = showSelectionContent;
|
|
341
|
+
$[100] = size;
|
|
342
|
+
$[101] = trailingContent;
|
|
343
|
+
$[102] = variant;
|
|
344
|
+
$[103] = t21;
|
|
345
|
+
} else t21 = $[103];
|
|
344
346
|
let t22;
|
|
345
|
-
if ($[
|
|
347
|
+
if ($[104] !== ignoreTriggerWidth || $[105] !== isOpen || $[106] !== isSearchable || $[107] !== popoverCva || $[108] !== popoverWidth || $[109] !== props || $[110] !== selectPopoverCva || $[111] !== setIsOpen || $[112] !== showPopover) {
|
|
346
348
|
t22 = (!isSearchable || showPopover) && /* @__PURE__ */ jsx(Popover, {
|
|
347
349
|
triggerRef,
|
|
348
350
|
isOpen,
|
|
@@ -356,19 +358,19 @@ var SelectDesktop = (t0) => {
|
|
|
356
358
|
autoFocus: !isSearchable
|
|
357
359
|
})
|
|
358
360
|
});
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
} else t22 = $[
|
|
361
|
+
$[104] = ignoreTriggerWidth;
|
|
362
|
+
$[105] = isOpen;
|
|
363
|
+
$[106] = isSearchable;
|
|
364
|
+
$[107] = popoverCva;
|
|
365
|
+
$[108] = popoverWidth;
|
|
366
|
+
$[109] = props;
|
|
367
|
+
$[110] = selectPopoverCva;
|
|
368
|
+
$[111] = setIsOpen;
|
|
369
|
+
$[112] = showPopover;
|
|
370
|
+
$[113] = t22;
|
|
371
|
+
} else t22 = $[113];
|
|
370
372
|
let t23;
|
|
371
|
-
if ($[
|
|
373
|
+
if ($[114] !== as || $[115] !== formFieldProps || $[116] !== onFocusCapture || $[117] !== onMouseEnter || $[118] !== t20 || $[119] !== t21 || $[120] !== t22) {
|
|
372
374
|
t23 = /* @__PURE__ */ jsxs(FormField, {
|
|
373
375
|
...formFieldProps,
|
|
374
376
|
...t20,
|
|
@@ -378,38 +380,38 @@ var SelectDesktop = (t0) => {
|
|
|
378
380
|
ref: wrapperRef,
|
|
379
381
|
children: [t21, t22]
|
|
380
382
|
});
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else t23 = $[
|
|
383
|
+
$[114] = as;
|
|
384
|
+
$[115] = formFieldProps;
|
|
385
|
+
$[116] = onFocusCapture;
|
|
386
|
+
$[117] = onMouseEnter;
|
|
387
|
+
$[118] = t20;
|
|
388
|
+
$[119] = t21;
|
|
389
|
+
$[120] = t22;
|
|
390
|
+
$[121] = t23;
|
|
391
|
+
} else t23 = $[121];
|
|
390
392
|
let t24;
|
|
391
|
-
if ($[
|
|
393
|
+
if ($[122] !== WrapperComponent || $[123] !== t19 || $[124] !== t23) {
|
|
392
394
|
t24 = /* @__PURE__ */ jsx(WrapperComponent, {
|
|
393
395
|
...t19,
|
|
394
396
|
children: t23
|
|
395
397
|
});
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
} else t24 = $[
|
|
398
|
+
$[122] = WrapperComponent;
|
|
399
|
+
$[123] = t19;
|
|
400
|
+
$[124] = t23;
|
|
401
|
+
$[125] = t24;
|
|
402
|
+
} else t24 = $[125];
|
|
401
403
|
let t25;
|
|
402
|
-
if ($[
|
|
404
|
+
if ($[126] !== as || $[127] !== error || $[128] !== t24) {
|
|
403
405
|
t25 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
404
406
|
as,
|
|
405
407
|
error,
|
|
406
408
|
children: t24
|
|
407
409
|
});
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
} else t25 = $[
|
|
410
|
+
$[126] = as;
|
|
411
|
+
$[127] = error;
|
|
412
|
+
$[128] = t24;
|
|
413
|
+
$[129] = t25;
|
|
414
|
+
} else t25 = $[129];
|
|
413
415
|
return t25;
|
|
414
416
|
};
|
|
415
417
|
function _temp(item) {
|
|
@@ -4,12 +4,12 @@ import { FormFieldHeaderProps } from '../../FormField/FormFieldHeader';
|
|
|
4
4
|
import { SelectBaseProps } from './SelectBase';
|
|
5
5
|
import { SelectItem } from './select.types';
|
|
6
6
|
import { InputVariantProps } from '../../shared/input.cva';
|
|
7
|
-
interface SelectInputProps extends InputVariantProps, Pick<SelectBaseProps, "ref" | "placeholder" | "isDisabled" | "hideDropdownIcon" | "isSearchable" | "isClearable" | "onBlur" | "showSelectionContent" | "inputClassName" | "selectedTagsType" | "collapseAfter" | "isRequired" | "isDirty" | "leadingContent" | "trailingContent" | "onMouseEnter" | "onFocusCapture"> {
|
|
7
|
+
interface SelectInputProps extends InputVariantProps, Pick<SelectBaseProps, "ref" | "placeholder" | "isDisabled" | "hideDropdownIcon" | "isSearchable" | "isClearable" | "isClearableIfDisabled" | "onBlur" | "showSelectionContent" | "inputClassName" | "selectedTagsType" | "collapseAfter" | "isRequired" | "isDirty" | "leadingContent" | "trailingContent" | "onMouseEnter" | "onFocusCapture"> {
|
|
8
8
|
isInvalid?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
fieldProps?: AriaFieldProps;
|
|
11
11
|
headerProps?: FormFieldHeaderProps;
|
|
12
12
|
onCloseComboBox?: (state: ComboBoxState<SelectItem> | null) => void;
|
|
13
13
|
}
|
|
14
|
-
export declare const SelectInput: ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const SelectInput: ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactIconsSpriteIcon } from "../../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
2
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
3
3
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
4
|
import "../../../../config/i18n.js";
|
|
@@ -9,17 +9,17 @@ import { SelectInputTags } from "./SelectInputTags.js";
|
|
|
9
9
|
import { SelectContext } from "./select.context.js";
|
|
10
10
|
import { selectInputTagsContentWrapperDefinition } from "./selectInput.cva.js";
|
|
11
11
|
import { useKeyInteractions } from "../../../../hooks/useKeyInteractions.js";
|
|
12
|
-
import { c } from "react/compiler-runtime";
|
|
13
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
13
|
import { clsx } from "clsx";
|
|
15
14
|
import { use, useRef, useState } from "react";
|
|
16
15
|
import { Button, ComboBoxStateContext, Input } from "react-aria-components";
|
|
16
|
+
import { c } from "react/compiler-runtime";
|
|
17
17
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
18
18
|
import { useTranslation } from "react-i18next";
|
|
19
19
|
//#region src/components/inputs/Selection/shared/SelectInput.tsx
|
|
20
20
|
var SelectInput = (t0) => {
|
|
21
|
-
const $0 = c(
|
|
22
|
-
const { ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props } = t0;
|
|
21
|
+
const $0 = c(137);
|
|
22
|
+
const { ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props } = t0;
|
|
23
23
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
24
24
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
25
25
|
const inputClearClassCva = UIOverrides.useCva("input.clearClassCva", inputClearClassDefinition);
|
|
@@ -355,8 +355,8 @@ var SelectInput = (t0) => {
|
|
|
355
355
|
$0[92] = t38;
|
|
356
356
|
} else t38 = $0[92];
|
|
357
357
|
let t39;
|
|
358
|
-
if ($0[93] !== as || $0[94] !== inputClearClassCva || $0[95] !== isClearable || $0[96] !==
|
|
359
|
-
t39 = isClearable && !isDisabled && /* @__PURE__ */ jsx(InputClear, {
|
|
358
|
+
if ($0[93] !== as || $0[94] !== inputClearClassCva || $0[95] !== isClearable || $0[96] !== isClearableIfDisabled || $0[97] !== isDisabled || $0[98] !== onClear || $0[99] !== showClearButton) {
|
|
359
|
+
t39 = isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
360
360
|
onClear: () => {
|
|
361
361
|
onClear();
|
|
362
362
|
},
|
|
@@ -366,22 +366,23 @@ var SelectInput = (t0) => {
|
|
|
366
366
|
$0[93] = as;
|
|
367
367
|
$0[94] = inputClearClassCva;
|
|
368
368
|
$0[95] = isClearable;
|
|
369
|
-
$0[96] =
|
|
370
|
-
$0[97] =
|
|
371
|
-
$0[98] =
|
|
372
|
-
$0[99] =
|
|
373
|
-
|
|
369
|
+
$0[96] = isClearableIfDisabled;
|
|
370
|
+
$0[97] = isDisabled;
|
|
371
|
+
$0[98] = onClear;
|
|
372
|
+
$0[99] = showClearButton;
|
|
373
|
+
$0[100] = t39;
|
|
374
|
+
} else t39 = $0[100];
|
|
374
375
|
let t40;
|
|
375
|
-
if ($0[
|
|
376
|
+
if ($0[101] !== trailingContent) {
|
|
376
377
|
t40 = trailingContent && /* @__PURE__ */ jsx("div", {
|
|
377
378
|
className: "flex shrink-0 items-center",
|
|
378
379
|
children: trailingContent
|
|
379
380
|
});
|
|
380
|
-
$0[
|
|
381
|
-
$0[
|
|
382
|
-
} else t40 = $0[
|
|
381
|
+
$0[101] = trailingContent;
|
|
382
|
+
$0[102] = t40;
|
|
383
|
+
} else t40 = $0[102];
|
|
383
384
|
let t41;
|
|
384
|
-
if ($0[
|
|
385
|
+
if ($0[103] !== hideDropdownIcon || $0[104] !== inputSizeCva || $0[105] !== isDisabled || $0[106] !== isOpen || $0[107] !== isSearchable || $0[108] !== setIsOpen || $0[109] !== size || $0[110] !== t) {
|
|
385
386
|
t41 = !hideDropdownIcon && /* @__PURE__ */ jsx(Button, {
|
|
386
387
|
excludeFromTabOrder: true,
|
|
387
388
|
"aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
|
|
@@ -390,23 +391,24 @@ var SelectInput = (t0) => {
|
|
|
390
391
|
onPress: () => {
|
|
391
392
|
if (!isSearchable) setIsOpen(!isOpen);
|
|
392
393
|
},
|
|
393
|
-
children: /* @__PURE__ */ jsx(
|
|
394
|
+
children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
395
|
+
iconId: "ri-lucide-react-ChevronDown",
|
|
394
396
|
className: clsx("size-6 shrink-0", isOpen && "rotate-180", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
|
|
395
397
|
"aria-hidden": "true"
|
|
396
398
|
})
|
|
397
399
|
});
|
|
398
|
-
$0[
|
|
399
|
-
$0[
|
|
400
|
-
$0[
|
|
401
|
-
$0[
|
|
402
|
-
$0[
|
|
403
|
-
$0[
|
|
404
|
-
$0[
|
|
405
|
-
$0[
|
|
406
|
-
$0[
|
|
407
|
-
} else t41 = $0[
|
|
400
|
+
$0[103] = hideDropdownIcon;
|
|
401
|
+
$0[104] = inputSizeCva;
|
|
402
|
+
$0[105] = isDisabled;
|
|
403
|
+
$0[106] = isOpen;
|
|
404
|
+
$0[107] = isSearchable;
|
|
405
|
+
$0[108] = setIsOpen;
|
|
406
|
+
$0[109] = size;
|
|
407
|
+
$0[110] = t;
|
|
408
|
+
$0[111] = t41;
|
|
409
|
+
} else t41 = $0[111];
|
|
408
410
|
let t42;
|
|
409
|
-
if ($0[
|
|
411
|
+
if ($0[112] !== focusWithinProps || $0[113] !== hoverProps || $0[114] !== onFocusCapture || $0[115] !== onMouseEnter || $0[116] !== ref || $0[117] !== t16 || $0[118] !== t18 || $0[119] !== t19 || $0[120] !== t20 || $0[121] !== t21 || $0[122] !== t22 || $0[123] !== t23 || $0[124] !== t24 || $0[125] !== t25 || $0[126] !== t26 || $0[127] !== t27 || $0[128] !== t28 || $0[129] !== t29 || $0[130] !== t30 || $0[131] !== t31 || $0[132] !== t38 || $0[133] !== t39 || $0[134] !== t40 || $0[135] !== t41) {
|
|
410
412
|
t42 = /* @__PURE__ */ jsxs("div", {
|
|
411
413
|
ref,
|
|
412
414
|
className: t16,
|
|
@@ -437,32 +439,32 @@ var SelectInput = (t0) => {
|
|
|
437
439
|
t41
|
|
438
440
|
]
|
|
439
441
|
});
|
|
440
|
-
$0[
|
|
441
|
-
$0[
|
|
442
|
-
$0[
|
|
443
|
-
$0[
|
|
444
|
-
$0[
|
|
445
|
-
$0[
|
|
446
|
-
$0[
|
|
447
|
-
$0[
|
|
448
|
-
$0[
|
|
449
|
-
$0[
|
|
450
|
-
$0[
|
|
451
|
-
$0[
|
|
452
|
-
$0[
|
|
453
|
-
$0[
|
|
454
|
-
$0[
|
|
455
|
-
$0[
|
|
456
|
-
$0[
|
|
457
|
-
$0[
|
|
458
|
-
$0[
|
|
459
|
-
$0[
|
|
460
|
-
$0[
|
|
461
|
-
$0[
|
|
462
|
-
$0[
|
|
463
|
-
$0[
|
|
464
|
-
$0[
|
|
465
|
-
} else t42 = $0[
|
|
442
|
+
$0[112] = focusWithinProps;
|
|
443
|
+
$0[113] = hoverProps;
|
|
444
|
+
$0[114] = onFocusCapture;
|
|
445
|
+
$0[115] = onMouseEnter;
|
|
446
|
+
$0[116] = ref;
|
|
447
|
+
$0[117] = t16;
|
|
448
|
+
$0[118] = t18;
|
|
449
|
+
$0[119] = t19;
|
|
450
|
+
$0[120] = t20;
|
|
451
|
+
$0[121] = t21;
|
|
452
|
+
$0[122] = t22;
|
|
453
|
+
$0[123] = t23;
|
|
454
|
+
$0[124] = t24;
|
|
455
|
+
$0[125] = t25;
|
|
456
|
+
$0[126] = t26;
|
|
457
|
+
$0[127] = t27;
|
|
458
|
+
$0[128] = t28;
|
|
459
|
+
$0[129] = t29;
|
|
460
|
+
$0[130] = t30;
|
|
461
|
+
$0[131] = t31;
|
|
462
|
+
$0[132] = t38;
|
|
463
|
+
$0[133] = t39;
|
|
464
|
+
$0[134] = t40;
|
|
465
|
+
$0[135] = t41;
|
|
466
|
+
$0[136] = t42;
|
|
467
|
+
} else t42 = $0[136];
|
|
466
468
|
return t42;
|
|
467
469
|
};
|
|
468
470
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tag } from "../../../text/Tag/Tag.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
5
5
|
var SelectInputTags = (t0) => {
|
|
6
6
|
const $ = c(25);
|
|
@@ -3,10 +3,10 @@ import "../../../../config/i18n.js";
|
|
|
3
3
|
import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
|
|
4
4
|
import { SelectContext } from "./select.context.js";
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { useRef } from "react";
|
|
9
8
|
import { ListBoxItem } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
12
12
|
var SelectListBoxItem = (t0) => {
|
|
@@ -3,10 +3,10 @@ import "../../../../config/i18n.js";
|
|
|
3
3
|
import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
|
|
4
4
|
import { SelectContext } from "./select.context.js";
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { useRef } from "react";
|
|
9
8
|
import { ListBoxItem } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
|
|
12
12
|
var SelectListBoxItemSelectAll = (t0) => {
|
|
@@ -4,9 +4,9 @@ import "../../../../config/i18n.js";
|
|
|
4
4
|
import { SelectContext } from "./select.context.js";
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
6
|
import { useIntersectionObserver } from "../../../../hooks/useIntersectionObserver.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
9
8
|
import { ListBoxItem } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
|
|
12
12
|
var SelectListBoxLoadingItem = (t0) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../config/i18n.js";
|
|
2
2
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
3
3
|
import { SelectContext } from "./select.context.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
//#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
|
|
9
9
|
var SelectListBoxSelectionBar = (t0) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ReactIconsSpriteIcon } from "../../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
1
2
|
import { BottomSheet } from "../../../overlays/BottomSheet/BottomSheet.js";
|
|
2
3
|
import { FormField } from "../../FormField/FormField.js";
|
|
3
4
|
import { SelectContext } from "./select.context.js";
|
|
4
5
|
import { SelectInput } from "./SelectInput.js";
|
|
5
6
|
import { SelectListBox } from "./SelectListBox.js";
|
|
6
|
-
import { SearchIcon } from "../../../../assets/icons/Search.js";
|
|
7
7
|
import { FormFieldHeaderClose } from "../../FormField/FormFieldHeaderClose.js";
|
|
8
8
|
import { TextInput } from "../../Input/TextInput/TextInput.js";
|
|
9
9
|
import { SelectListBoxSelectionBar } from "./SelectListBoxSelectionBar.js";
|
|
@@ -14,7 +14,7 @@ import { DialogTrigger } from "react-aria-components";
|
|
|
14
14
|
import { useLabel } from "react-aria";
|
|
15
15
|
//#region src/components/inputs/Selection/shared/SelectMobile.tsx
|
|
16
16
|
var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, bottomSheetProps, ...props }) => {
|
|
17
|
-
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, as, size, collapseAfter, selectedTagsType } = props;
|
|
17
|
+
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, isClearableIfDisabled, as, size, collapseAfter, selectedTagsType } = props;
|
|
18
18
|
const formFieldProps = {
|
|
19
19
|
error,
|
|
20
20
|
label,
|
|
@@ -77,6 +77,7 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
|
|
|
77
77
|
hideDropdownIcon,
|
|
78
78
|
isSearchable: false,
|
|
79
79
|
isClearable,
|
|
80
|
+
isClearableIfDisabled,
|
|
80
81
|
showSelectionContent,
|
|
81
82
|
onBlur: void 0,
|
|
82
83
|
fieldProps,
|
|
@@ -109,7 +110,10 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
|
|
|
109
110
|
rightContent: /* @__PURE__ */ jsx(FormFieldHeaderClose, { onClose: close }),
|
|
110
111
|
inputClassName,
|
|
111
112
|
className: "mb-list-height-title-bottom px-list-side-title",
|
|
112
|
-
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(
|
|
113
|
+
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
114
|
+
iconId: "ri-lucide-react-Search",
|
|
115
|
+
className: "size-6"
|
|
116
|
+
}) : void 0,
|
|
113
117
|
size: "default",
|
|
114
118
|
isClearable
|
|
115
119
|
}), /* @__PURE__ */ jsx(SelectListBox, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactIconsSpriteIcon } from "../../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
2
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
3
3
|
import { inputSizeDefinition } from "../../shared/input.cva.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
7
|
//#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
|
|
8
8
|
var StaticSelectTrailingContent = (t0) => {
|
|
9
9
|
const $ = c(10);
|
|
@@ -26,7 +26,10 @@ var StaticSelectTrailingContent = (t0) => {
|
|
|
26
26
|
tabIndex: -1,
|
|
27
27
|
className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
|
|
28
28
|
"aria-hidden": "true",
|
|
29
|
-
children: /* @__PURE__ */ jsx(
|
|
29
|
+
children: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
30
|
+
iconId: "ri-lucide-react-ChevronDown",
|
|
31
|
+
className: clsx("size-6 shrink-0", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle")
|
|
32
|
+
})
|
|
30
33
|
}) : void 0;
|
|
31
34
|
$[2] = hideDropdownIcon;
|
|
32
35
|
$[3] = inputSizeCva;
|
|
@@ -59,6 +59,7 @@ export interface InputFrameProps extends InputVariantProps, Partial<FormFieldPro
|
|
|
59
59
|
isLoading?: boolean;
|
|
60
60
|
action?: InputFrameAction;
|
|
61
61
|
isClearable?: boolean;
|
|
62
|
+
isClearableIfDisabled?: boolean;
|
|
62
63
|
showClear?: boolean;
|
|
63
64
|
onStaticInteract?: (shouldFocus: boolean, target?: EventTarget | null) => void;
|
|
64
65
|
onStaticPress?: () => void;
|
|
@@ -20,7 +20,7 @@ var InputFrame = (props) => {
|
|
|
20
20
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
21
21
|
const generatedInputId = useId();
|
|
22
22
|
const pendingStaticPressPointerIdRef = useRef(null);
|
|
23
|
-
const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement = "content-wrapper", trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, showClear, onStaticInteract, onStaticPress, staticPressTarget = "frame", clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentGroup = "input", contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent = true, reserveTrailingContent, labelPlacement = "content-wrapper", trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
|
|
23
|
+
const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement = "content-wrapper", trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, isClearableIfDisabled, showClear, onStaticInteract, onStaticPress, staticPressTarget = "frame", clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentGroup = "input", contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent = true, reserveTrailingContent, labelPlacement = "content-wrapper", trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
|
|
24
24
|
const as = asProp ?? ui.input.as;
|
|
25
25
|
const size = sizeProp ?? ui.input.size;
|
|
26
26
|
const variant = variantProp ?? ui.input.variant;
|
|
@@ -103,7 +103,7 @@ var InputFrame = (props) => {
|
|
|
103
103
|
hasClear && /* @__PURE__ */ jsx(InputClear, {
|
|
104
104
|
onClear: () => onClear?.(),
|
|
105
105
|
className: clearClassName,
|
|
106
|
-
show: !!showClear && !isDisabled,
|
|
106
|
+
show: !!showClear && (!isDisabled || isClearableIfDisabled === true),
|
|
107
107
|
renderStatic: true
|
|
108
108
|
}),
|
|
109
109
|
trailingContent,
|
|
@@ -3,10 +3,10 @@ import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
|
3
3
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
4
4
|
import { FieldController } from "../shared/form.binding.js";
|
|
5
5
|
import { FormField } from "../FormField/FormField.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { clsx } from "clsx";
|
|
9
8
|
import { Slider, SliderThumb, SliderTrack } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { mergeRefs } from "@react-aria/utils";
|
|
11
11
|
//#region src/components/inputs/Slider/Slider.tsx
|
|
12
12
|
var SliderBase = (props) => {
|
|
@@ -6,10 +6,10 @@ import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
|
|
|
6
6
|
import { FormField } from "../FormField/FormField.js";
|
|
7
7
|
import { inputSideDefinition } from "../shared/input.cva.js";
|
|
8
8
|
import { TextEditorToolbar } from "./Toolbar/TextEditorToolbar.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { clsx } from "clsx";
|
|
12
11
|
import { useEffect, useRef, useState } from "react";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
13
|
import { useFocusVisible, useFocusWithin, useHover, useLabel } from "react-aria";
|
|
14
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
15
15
|
import { Color } from "@tiptap/extension-color";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem } from "react-aria-components";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
//#region src/components/inputs/TextEditor/Toolbar/ColorPicker.tsx
|
|
6
6
|
var ColorPicker = (t0) => {
|
|
7
7
|
const $ = c(8);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactIconsSpriteIcon } from "../../../../node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
2
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
3
3
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
4
|
import { useInputCva } from "../../shared/input.cva.js";
|
|
5
5
|
import { popoverDefinition } from "../../../shared/popover.cva.js";
|
|
6
6
|
import { ColorPicker } from "./ColorPicker.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { clsx } from "clsx";
|
|
10
9
|
import { useState } from "react";
|
|
11
10
|
import { Button, Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
12
|
//#region src/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.tsx
|
|
13
13
|
var ColorPickerDropdown = (t0) => {
|
|
14
14
|
const $ = c(28);
|
|
@@ -54,7 +54,8 @@ var ColorPickerDropdown = (t0) => {
|
|
|
54
54
|
} else t5 = $[7];
|
|
55
55
|
let t6;
|
|
56
56
|
if ($[8] !== t5) {
|
|
57
|
-
t6 = /* @__PURE__ */ jsx(
|
|
57
|
+
t6 = /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
58
|
+
iconId: "ri-lucide-react-ChevronDown",
|
|
58
59
|
className: t5,
|
|
59
60
|
"aria-hidden": "true"
|
|
60
61
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { LinkIcon } from "../../../../assets/icons/Link.js";
|
|
2
1
|
import { Button } from "../../../buttons/Button/Button.js";
|
|
3
2
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
3
|
import "../../../../config/i18n.js";
|
|
5
4
|
import { TextInput } from "../../Input/TextInput/TextInput.js";
|
|
6
5
|
import { ResponsivePopover } from "../../../overlays/ResponsivePopover/ResponsivePopover.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { useEffect, useState } from "react";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { Link } from "lucide-react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
12
|
//#region src/components/inputs/TextEditor/Toolbar/HyperlinkAction.tsx
|
|
13
13
|
var HyperlinkAction = (t0) => {
|
|
@@ -79,7 +79,7 @@ var HyperlinkAction = (t0) => {
|
|
|
79
79
|
t9 = /* @__PURE__ */ jsx(InlineIconButton, {
|
|
80
80
|
color: "secondary",
|
|
81
81
|
label: t6,
|
|
82
|
-
icon:
|
|
82
|
+
icon: Link,
|
|
83
83
|
className: t7,
|
|
84
84
|
isDisabled: t8
|
|
85
85
|
});
|