@povio/ui 3.4.0-rc.1 → 3.4.0-rc.10
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/locales/en/translation.json.d.ts +158 -0
- package/dist/assets/locales/sl/translation.json.d.ts +154 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +4 -4
- package/dist/components/Menu/MenuMobile.js +5 -5
- package/dist/components/Menu/MenuPopover.js +2 -2
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +2 -2
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +5 -3
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +5 -3
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +9 -6
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +199 -193
- package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +7 -10
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -12
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -7
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +4 -5
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +49 -47
- package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
- 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 +3 -3
- package/dist/components/inputs/File/InputUpload.js +2 -2
- 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 +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -5
- package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +90 -88
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +265 -254
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +7 -6
- 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 +100 -99
- package/dist/components/inputs/Input/TextInput/TextInput.js +93 -91
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +50 -48
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -3
- 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 +4 -4
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +58 -56
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +57 -56
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
- 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 +5 -4
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
- package/dist/components/inputs/Selection/shared/select.context.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +10 -7
- package/dist/components/inputs/Slider/Slider.js +2 -2
- package/dist/components/inputs/TextEditor/TextEditor.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +5 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/Toggle/Toggle.js +2 -2
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +45 -28
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +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/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +4 -4
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
- package/dist/components/overlays/Drawer/Drawer.js +2 -2
- package/dist/components/overlays/Modal/Modal.js +3 -3
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +15 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +4 -4
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/Table.js +6 -8
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -3
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/theme.context.js +1 -1
- package/dist/config/uiConfig.context.d.ts +13 -4
- package/dist/config/uiConfig.context.js +19 -12
- package/dist/config/uiOverrides.context.js +2 -2
- 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.d.ts +1 -263
- package/dist/index.js +10 -70
- package/dist/rhf/Inputs.d.ts +60 -0
- package/dist/rhf/Inputs.js +148 -0
- package/dist/rhf/components.d.ts +80 -0
- package/dist/rhf/components.js +101 -0
- package/dist/rhf/dynamicInputs.d.ts +18 -0
- package/dist/rhf/dynamicInputs.js +5 -0
- package/dist/rhf/entrypoints.type-test.d.ts +1 -0
- package/dist/rhf/fieldAdapter.d.ts +7 -0
- package/dist/rhf/fieldAdapter.js +40 -0
- package/dist/rhf/form.types.d.ts +12 -0
- package/dist/rhf/useAutosave.d.ts +10 -0
- package/dist/rhf/useAutosave.js +71 -0
- package/dist/rhf/useForm.d.ts +18 -0
- package/dist/rhf/useForm.js +48 -0
- package/dist/rhf/useFormAutosave.d.ts +15 -0
- package/dist/rhf/useFormAutosave.js +59 -0
- package/dist/rhf.d.ts +225 -0
- package/dist/tanstack.d.ts +224 -0
- package/dist/tanstack.js +141 -0
- package/package.json +15 -2
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
1
|
import { clsx } from "clsx";
|
|
4
2
|
import { ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem } from "react-aria-components";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-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 { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
|
|
2
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
3
|
import { useInputCva } from "../../shared/input.cva.js";
|
|
5
4
|
import { popoverDefinition } from "../../../shared/popover.cva.js";
|
|
6
5
|
import { ColorPicker } from "./ColorPicker.js";
|
|
7
|
-
import {
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronDown } from "lucide-react";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { useState } from "react";
|
|
11
9
|
import { Button, Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.tsx
|
|
13
13
|
var ColorPickerDropdown = (t0) => {
|
|
14
14
|
const $ = c(28);
|
|
@@ -54,7 +54,7 @@ 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(ChevronDown, {
|
|
58
58
|
className: t5,
|
|
59
59
|
"aria-hidden": "true"
|
|
60
60
|
});
|
|
@@ -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 {
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Link } from "lucide-react";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { useEffect, useState } from "react";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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
|
});
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { AlignCenterIcon } from "../../../../assets/icons/AlignCenter.js";
|
|
2
|
-
import { AlignLeftIcon } from "../../../../assets/icons/AlignLeft.js";
|
|
3
|
-
import { AlignLeftRightIcon } from "../../../../assets/icons/AlignLeftRight.js";
|
|
4
|
-
import { AlignRightIcon } from "../../../../assets/icons/AlignRight.js";
|
|
5
1
|
import "../../../../config/i18n.js";
|
|
6
2
|
import { Select } from "../../Selection/Select/Select.js";
|
|
3
|
+
import { AlignCenter, AlignJustify, AlignLeft, AlignRight } from "lucide-react";
|
|
7
4
|
import { c } from "react/compiler-runtime";
|
|
8
5
|
import { jsx } from "react/jsx-runtime";
|
|
9
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -40,10 +37,10 @@ var TextAlignSelect = (t0) => {
|
|
|
40
37
|
let t3;
|
|
41
38
|
if ($0[5] !== getItem) {
|
|
42
39
|
t3 = [
|
|
43
|
-
getItem("left",
|
|
44
|
-
getItem("center",
|
|
45
|
-
getItem("right",
|
|
46
|
-
getItem("justify",
|
|
40
|
+
getItem("left", AlignLeft),
|
|
41
|
+
getItem("center", AlignCenter),
|
|
42
|
+
getItem("right", AlignRight),
|
|
43
|
+
getItem("justify", AlignJustify)
|
|
47
44
|
].filter(_temp2);
|
|
48
45
|
$0[5] = getItem;
|
|
49
46
|
$0[6] = t3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextColorIcon } from "../../../../assets/icons/TextColor.js";
|
|
2
1
|
import { ColorPickerDropdown } from "./ColorPickerDropdown.js";
|
|
3
2
|
import { defaultColors } from "../textEditor.types.js";
|
|
3
|
+
import { Baseline } from "lucide-react";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/TextEditor/Toolbar/TextColorSelect.tsx
|
|
@@ -27,9 +27,9 @@ var TextColorSelect = (t0) => {
|
|
|
27
27
|
const t3 = !editor.isEditable;
|
|
28
28
|
let t4;
|
|
29
29
|
if ($[4] !== textColor) {
|
|
30
|
-
t4 = /* @__PURE__ */ jsx(
|
|
30
|
+
t4 = /* @__PURE__ */ jsx(Baseline, {
|
|
31
31
|
className: "size-6",
|
|
32
|
-
textColor
|
|
32
|
+
style: { color: textColor }
|
|
33
33
|
});
|
|
34
34
|
$[4] = textColor;
|
|
35
35
|
$[5] = t4;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { HighlightIcon } from "../../../../assets/icons/Highlight.js";
|
|
2
|
-
import { HighlightOnIcon } from "../../../../assets/icons/HighlightOn.js";
|
|
3
1
|
import { ColorPickerDropdown } from "./ColorPickerDropdown.js";
|
|
4
2
|
import { defaultColors } from "../textEditor.types.js";
|
|
3
|
+
import { Highlighter } from "lucide-react";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
//#region src/components/inputs/TextEditor/Toolbar/TextHighlightSelect.tsx
|
|
@@ -29,10 +28,10 @@ var TextHighlightSelect = (t0) => {
|
|
|
29
28
|
const t3 = !editor.isEditable;
|
|
30
29
|
let t4;
|
|
31
30
|
if ($[4] !== highlightColor) {
|
|
32
|
-
t4 = highlightColor ? /* @__PURE__ */ jsx(
|
|
31
|
+
t4 = highlightColor ? /* @__PURE__ */ jsx(Highlighter, {
|
|
33
32
|
className: "size-6",
|
|
34
|
-
highlightColor
|
|
35
|
-
}) : /* @__PURE__ */ jsx(
|
|
33
|
+
style: { color: highlightColor }
|
|
34
|
+
}) : /* @__PURE__ */ jsx(Highlighter, { className: "size-6" });
|
|
36
35
|
$[4] = highlightColor;
|
|
37
36
|
$[5] = t4;
|
|
38
37
|
} else t4 = $[5];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { BulletedListIcon } from "../../../../assets/icons/BulletedList.js";
|
|
2
|
-
import { NumberedListIcon } from "../../../../assets/icons/NumberedList.js";
|
|
3
1
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
2
|
import "../../../../config/i18n.js";
|
|
3
|
+
import { List, ListOrdered } from "lucide-react";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
7
|
import { useTranslation } from "react-i18next";
|
|
9
8
|
//#region src/components/inputs/TextEditor/Toolbar/TextListActions.tsx
|
|
10
9
|
var TextListActions = (t0) => {
|
|
@@ -38,7 +37,7 @@ var TextListActions = (t0) => {
|
|
|
38
37
|
can: t2,
|
|
39
38
|
isEnabled: t3,
|
|
40
39
|
label: t(t4),
|
|
41
|
-
icon:
|
|
40
|
+
icon: List,
|
|
42
41
|
onPress: () => {
|
|
43
42
|
editor.chain().focus().toggleBulletList().run();
|
|
44
43
|
},
|
|
@@ -47,7 +46,7 @@ var TextListActions = (t0) => {
|
|
|
47
46
|
can: !!editor.extensionManager.extensions.find(_temp3),
|
|
48
47
|
isEnabled: () => editor.isEditable && editor.can().toggleOrderedList(),
|
|
49
48
|
label: t(_temp4),
|
|
50
|
-
icon:
|
|
49
|
+
icon: ListOrdered,
|
|
51
50
|
onPress: () => {
|
|
52
51
|
editor.chain().focus().toggleOrderedList().run();
|
|
53
52
|
},
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { BoldIcon } from "../../../../assets/icons/Bold.js";
|
|
2
|
-
import { ItalicIcon } from "../../../../assets/icons/Italic.js";
|
|
3
|
-
import { StrikethroughIcon } from "../../../../assets/icons/Strikethrough.js";
|
|
4
|
-
import { UnderlinedIcon } from "../../../../assets/icons/Underlined.js";
|
|
5
1
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
6
2
|
import "../../../../config/i18n.js";
|
|
3
|
+
import { Bold, Italic, Strikethrough, Underline } from "lucide-react";
|
|
4
|
+
import { clsx } from "clsx";
|
|
7
5
|
import { c } from "react/compiler-runtime";
|
|
8
6
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
7
|
import { useTranslation } from "react-i18next";
|
|
11
8
|
//#region src/components/inputs/TextEditor/Toolbar/TextMarksActions.tsx
|
|
12
9
|
var TextMarksActions = (t0) => {
|
|
@@ -41,7 +38,7 @@ var TextMarksActions = (t0) => {
|
|
|
41
38
|
can: t2,
|
|
42
39
|
isEnabled: t3,
|
|
43
40
|
label: t(t4),
|
|
44
|
-
icon:
|
|
41
|
+
icon: Bold,
|
|
45
42
|
onPress: () => {
|
|
46
43
|
editor.chain().focus().toggleBold().run();
|
|
47
44
|
},
|
|
@@ -51,7 +48,7 @@ var TextMarksActions = (t0) => {
|
|
|
51
48
|
can: !!editor.extensionManager.extensions.find(_temp3),
|
|
52
49
|
isEnabled: () => editor.isEditable && editor.can().toggleItalic(),
|
|
53
50
|
label: t(_temp4),
|
|
54
|
-
icon:
|
|
51
|
+
icon: Italic,
|
|
55
52
|
onPress: () => {
|
|
56
53
|
editor.chain().focus().toggleItalic().run();
|
|
57
54
|
},
|
|
@@ -61,7 +58,7 @@ var TextMarksActions = (t0) => {
|
|
|
61
58
|
can: !!editor.extensionManager.extensions.find(_temp5),
|
|
62
59
|
isEnabled: () => editor.isEditable && editor.can().toggleStrike(),
|
|
63
60
|
label: t(_temp6),
|
|
64
|
-
icon:
|
|
61
|
+
icon: Strikethrough,
|
|
65
62
|
onPress: () => {
|
|
66
63
|
editor.chain().focus().toggleStrike().run();
|
|
67
64
|
},
|
|
@@ -71,7 +68,7 @@ var TextMarksActions = (t0) => {
|
|
|
71
68
|
can: !!editor.extensionManager.extensions.find(_temp7),
|
|
72
69
|
isEnabled: () => editor.isEditable && editor.can().toggleUnderline(),
|
|
73
70
|
label: t(_temp8),
|
|
74
|
-
icon:
|
|
71
|
+
icon: Underline,
|
|
75
72
|
onPress: () => {
|
|
76
73
|
editor.chain().focus().toggleUnderline().run();
|
|
77
74
|
},
|
|
@@ -4,10 +4,10 @@ import { FieldController } from "../shared/form.binding.js";
|
|
|
4
4
|
import { FormFieldError } from "../FormField/FormFieldError.js";
|
|
5
5
|
import { CheckContent } from "../shared/CheckContent.js";
|
|
6
6
|
import { toggleContentClassName, toggleDefinition, toggleTypography } from "./toggle.cva.js";
|
|
7
|
-
import { c } from "react/compiler-runtime";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
7
|
import { clsx } from "clsx";
|
|
10
8
|
import { Switch } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { mergeRefs } from "@react-aria/utils";
|
|
12
12
|
//#region src/components/inputs/Toggle/Toggle.tsx
|
|
13
13
|
var ToggleBase = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import clsx$1 from "clsx";
|
|
6
6
|
//#region src/components/inputs/shared/CheckContent.tsx
|
|
7
7
|
var CheckContent = (t0) => {
|
|
8
8
|
const $ = c(3);
|
|
@@ -1,63 +1,77 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
1
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
3
2
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
3
|
import "../../../config/i18n.js";
|
|
4
|
+
import { X } from "lucide-react";
|
|
5
|
+
import { clsx } from "clsx";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
9
|
//#region src/components/inputs/shared/InputClear.tsx
|
|
10
10
|
var InputClear = (t0) => {
|
|
11
|
-
const $ = c(
|
|
11
|
+
const $ = c(17);
|
|
12
12
|
const { onClear, className, style, show, renderStatic } = t0;
|
|
13
|
-
const
|
|
13
|
+
const ui = UIConfig.useConfig();
|
|
14
|
+
const { t } = useTranslation("ui");
|
|
15
|
+
const alwaysShowClear = ui.input.alwaysShowClear;
|
|
14
16
|
let clearClassName;
|
|
15
17
|
let t1;
|
|
16
|
-
if ($[0] !== alwaysShowClear || $[1] !== className || $[2] !==
|
|
18
|
+
if ($[0] !== alwaysShowClear || $[1] !== className || $[2] !== onClear || $[3] !== renderStatic || $[4] !== show || $[5] !== style || $[6] !== t) {
|
|
17
19
|
t1 = Symbol.for("react.early_return_sentinel");
|
|
18
20
|
bb0: {
|
|
19
21
|
clearClassName = clsx("relative z-raised flex items-center", !alwaysShowClear && "md:invisible group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", "border-0!", !show && "invisible!", className);
|
|
20
22
|
if (renderStatic) {
|
|
21
23
|
let t2;
|
|
22
|
-
if ($[
|
|
23
|
-
t2 =
|
|
24
|
-
$[
|
|
25
|
-
|
|
24
|
+
if ($[9] !== show || $[10] !== t) {
|
|
25
|
+
t2 = show ? t(_temp) : void 0;
|
|
26
|
+
$[9] = show;
|
|
27
|
+
$[10] = t;
|
|
28
|
+
$[11] = t2;
|
|
29
|
+
} else t2 = $[11];
|
|
30
|
+
let t3;
|
|
31
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
+
t3 = /* @__PURE__ */ jsx(X, { className: "h-6 w-6 shrink-0" });
|
|
33
|
+
$[12] = t3;
|
|
34
|
+
} else t3 = $[12];
|
|
26
35
|
t1 = /* @__PURE__ */ jsx("button", {
|
|
27
36
|
type: "button",
|
|
28
|
-
"aria-hidden":
|
|
37
|
+
"aria-hidden": !show,
|
|
38
|
+
"aria-label": t2,
|
|
39
|
+
"data-static-clear-action": true,
|
|
29
40
|
tabIndex: -1,
|
|
41
|
+
onClick: onClear,
|
|
30
42
|
className: clsx("group inline-flex items-center justify-center border border-solid border-support-transparent-outline", "rounded-button-rounding-s p-0 text-interactive-text-secondary-idle", clearClassName),
|
|
31
43
|
style,
|
|
32
|
-
children:
|
|
44
|
+
children: t3
|
|
33
45
|
});
|
|
34
46
|
break bb0;
|
|
35
47
|
}
|
|
36
48
|
}
|
|
37
49
|
$[0] = alwaysShowClear;
|
|
38
50
|
$[1] = className;
|
|
39
|
-
$[2] =
|
|
40
|
-
$[3] =
|
|
41
|
-
$[4] =
|
|
42
|
-
$[5] =
|
|
43
|
-
$[6] =
|
|
51
|
+
$[2] = onClear;
|
|
52
|
+
$[3] = renderStatic;
|
|
53
|
+
$[4] = show;
|
|
54
|
+
$[5] = style;
|
|
55
|
+
$[6] = t;
|
|
56
|
+
$[7] = clearClassName;
|
|
57
|
+
$[8] = t1;
|
|
44
58
|
} else {
|
|
45
|
-
clearClassName = $[
|
|
46
|
-
t1 = $[
|
|
59
|
+
clearClassName = $[7];
|
|
60
|
+
t1 = $[8];
|
|
47
61
|
}
|
|
48
62
|
if (t1 !== Symbol.for("react.early_return_sentinel")) return t1;
|
|
49
63
|
let t2;
|
|
50
|
-
if ($[
|
|
64
|
+
if ($[13] !== clearClassName || $[14] !== onClear || $[15] !== style) {
|
|
51
65
|
t2 = /* @__PURE__ */ jsx(InputClearButton, {
|
|
52
66
|
onClear,
|
|
53
67
|
className: clearClassName,
|
|
54
68
|
style
|
|
55
69
|
});
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else t2 = $[
|
|
70
|
+
$[13] = clearClassName;
|
|
71
|
+
$[14] = onClear;
|
|
72
|
+
$[15] = style;
|
|
73
|
+
$[16] = t2;
|
|
74
|
+
} else t2 = $[16];
|
|
61
75
|
return t2;
|
|
62
76
|
};
|
|
63
77
|
var InputClearButton = (t0) => {
|
|
@@ -66,7 +80,7 @@ var InputClearButton = (t0) => {
|
|
|
66
80
|
const { t } = useTranslation("ui");
|
|
67
81
|
let t1;
|
|
68
82
|
if ($[0] !== t) {
|
|
69
|
-
t1 = t(
|
|
83
|
+
t1 = t(_temp2);
|
|
70
84
|
$[0] = t;
|
|
71
85
|
$[1] = t1;
|
|
72
86
|
} else t1 = $[1];
|
|
@@ -76,9 +90,9 @@ var InputClearButton = (t0) => {
|
|
|
76
90
|
color: "secondary",
|
|
77
91
|
className,
|
|
78
92
|
label: t1,
|
|
79
|
-
icon:
|
|
93
|
+
icon: X,
|
|
80
94
|
onPress: onClear,
|
|
81
|
-
onMouseDown:
|
|
95
|
+
onMouseDown: _temp3,
|
|
82
96
|
excludeFromTabOrder: true,
|
|
83
97
|
style
|
|
84
98
|
});
|
|
@@ -93,7 +107,10 @@ var InputClearButton = (t0) => {
|
|
|
93
107
|
function _temp($) {
|
|
94
108
|
return $.ui.clearAlt;
|
|
95
109
|
}
|
|
96
|
-
function _temp2(
|
|
110
|
+
function _temp2($) {
|
|
111
|
+
return $.ui.clearAlt;
|
|
112
|
+
}
|
|
113
|
+
function _temp3(e) {
|
|
97
114
|
return e.preventDefault();
|
|
98
115
|
}
|
|
99
116
|
//#endregion
|
|
@@ -6,5 +6,5 @@ interface TooltipWrapperProps {
|
|
|
6
6
|
triggerClassName?: string;
|
|
7
7
|
triggerTabIndex?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const TooltipWrapper: (props: TooltipWrapperProps) => string | number | bigint | boolean |
|
|
9
|
+
export declare const TooltipWrapper: (props: TooltipWrapperProps) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
5
|
//#region src/components/inputs/shared/input.cva.ts
|
|
6
6
|
var inputBaseDefinition = UIOverrides.defineConfig({
|
|
7
7
|
base: [uiOutlineClass, "flex w-full not-[textarea]:truncate"],
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
3
|
//#region src/components/inputs/shared/useStaticInputHandoff.ts
|
|
4
4
|
var useStaticInputHandoff = (t0) => {
|
|
5
|
-
const $ = c(
|
|
5
|
+
const $ = c(18);
|
|
6
6
|
const { inputRef, renderInput, setRenderInput, getFocusTarget, getPressTarget } = t0;
|
|
7
7
|
const [shouldFocus, setShouldFocus] = useState(false);
|
|
8
8
|
const pendingStaticChangeRef = useRef(null);
|
|
9
9
|
const pendingStaticFocusTargetRef = useRef(null);
|
|
10
10
|
const resolvedFocusTargetRef = useRef(null);
|
|
11
11
|
const shouldReplayStaticPressRef = useRef(false);
|
|
12
|
+
const hoverHandoffFrameRef = useRef(null);
|
|
12
13
|
let t1;
|
|
13
14
|
let t2;
|
|
14
|
-
if ($[0]
|
|
15
|
-
t1 = () => {
|
|
15
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
+
t1 = () => () => {
|
|
17
|
+
if (hoverHandoffFrameRef.current !== null) cancelAnimationFrame(hoverHandoffFrameRef.current);
|
|
18
|
+
};
|
|
19
|
+
t2 = [];
|
|
20
|
+
$[0] = t1;
|
|
21
|
+
$[1] = t2;
|
|
22
|
+
} else {
|
|
23
|
+
t1 = $[0];
|
|
24
|
+
t2 = $[1];
|
|
25
|
+
}
|
|
26
|
+
useLayoutEffect(t1, t2);
|
|
27
|
+
let t3;
|
|
28
|
+
let t4;
|
|
29
|
+
if ($[2] !== getFocusTarget || $[3] !== getPressTarget || $[4] !== inputRef || $[5] !== renderInput || $[6] !== shouldFocus) {
|
|
30
|
+
t3 = () => {
|
|
16
31
|
if (!renderInput || !shouldFocus) return;
|
|
17
32
|
const focusRealInput = (replayPendingInteraction) => {
|
|
18
33
|
const input = inputRef.current;
|
|
@@ -45,68 +60,79 @@ var useStaticInputHandoff = (t0) => {
|
|
|
45
60
|
cancelAnimationFrame(frame);
|
|
46
61
|
};
|
|
47
62
|
};
|
|
48
|
-
|
|
63
|
+
t4 = [
|
|
49
64
|
getFocusTarget,
|
|
50
65
|
getPressTarget,
|
|
51
66
|
inputRef,
|
|
52
67
|
renderInput,
|
|
53
68
|
shouldFocus
|
|
54
69
|
];
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
70
|
+
$[2] = getFocusTarget;
|
|
71
|
+
$[3] = getPressTarget;
|
|
72
|
+
$[4] = inputRef;
|
|
73
|
+
$[5] = renderInput;
|
|
74
|
+
$[6] = shouldFocus;
|
|
75
|
+
$[7] = t3;
|
|
76
|
+
$[8] = t4;
|
|
62
77
|
} else {
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
t3 = $[7];
|
|
79
|
+
t4 = $[8];
|
|
65
80
|
}
|
|
66
|
-
useLayoutEffect(
|
|
67
|
-
let t3;
|
|
68
|
-
let t4;
|
|
81
|
+
useLayoutEffect(t3, t4);
|
|
69
82
|
let t5;
|
|
70
|
-
|
|
71
|
-
|
|
83
|
+
let t6;
|
|
84
|
+
let t7;
|
|
85
|
+
if ($[9] !== setRenderInput) {
|
|
86
|
+
t5 = (focus, target) => {
|
|
72
87
|
pendingStaticFocusTargetRef.current = target ?? null;
|
|
73
88
|
setShouldFocus(focus);
|
|
74
|
-
|
|
89
|
+
if (focus) {
|
|
90
|
+
if (hoverHandoffFrameRef.current !== null) {
|
|
91
|
+
cancelAnimationFrame(hoverHandoffFrameRef.current);
|
|
92
|
+
hoverHandoffFrameRef.current = null;
|
|
93
|
+
}
|
|
94
|
+
setRenderInput(true);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
hoverHandoffFrameRef.current = requestAnimationFrame(() => {
|
|
98
|
+
hoverHandoffFrameRef.current = null;
|
|
99
|
+
setRenderInput(true);
|
|
100
|
+
});
|
|
75
101
|
};
|
|
76
|
-
|
|
102
|
+
t6 = (value) => {
|
|
77
103
|
pendingStaticChangeRef.current = value;
|
|
78
104
|
setShouldFocus(true);
|
|
79
105
|
setRenderInput(true);
|
|
80
106
|
};
|
|
81
|
-
|
|
107
|
+
t7 = () => {
|
|
82
108
|
shouldReplayStaticPressRef.current = true;
|
|
83
109
|
setShouldFocus(true);
|
|
84
110
|
setRenderInput(true);
|
|
85
111
|
};
|
|
86
|
-
$[
|
|
87
|
-
$[8] = t3;
|
|
88
|
-
$[9] = t4;
|
|
112
|
+
$[9] = setRenderInput;
|
|
89
113
|
$[10] = t5;
|
|
114
|
+
$[11] = t6;
|
|
115
|
+
$[12] = t7;
|
|
90
116
|
} else {
|
|
91
|
-
t3 = $[8];
|
|
92
|
-
t4 = $[9];
|
|
93
117
|
t5 = $[10];
|
|
118
|
+
t6 = $[11];
|
|
119
|
+
t7 = $[12];
|
|
94
120
|
}
|
|
95
|
-
let
|
|
96
|
-
if ($[
|
|
97
|
-
|
|
121
|
+
let t8;
|
|
122
|
+
if ($[13] !== shouldFocus || $[14] !== t5 || $[15] !== t6 || $[16] !== t7) {
|
|
123
|
+
t8 = {
|
|
98
124
|
shouldFocus,
|
|
99
|
-
renderRealInput:
|
|
100
|
-
replayStaticInputChange:
|
|
101
|
-
replayStaticInputPress:
|
|
125
|
+
renderRealInput: t5,
|
|
126
|
+
replayStaticInputChange: t6,
|
|
127
|
+
replayStaticInputPress: t7
|
|
102
128
|
};
|
|
103
|
-
$[
|
|
104
|
-
$[12] = t3;
|
|
105
|
-
$[13] = t4;
|
|
129
|
+
$[13] = shouldFocus;
|
|
106
130
|
$[14] = t5;
|
|
107
131
|
$[15] = t6;
|
|
108
|
-
|
|
109
|
-
|
|
132
|
+
$[16] = t7;
|
|
133
|
+
$[17] = t8;
|
|
134
|
+
} else t8 = $[17];
|
|
135
|
+
return t8;
|
|
110
136
|
};
|
|
111
137
|
//#endregion
|
|
112
138
|
export { useStaticInputHandoff };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { accordionDefinition } from "./accordion.cva.js";
|
|
3
3
|
import { AccordionItem } from "./AccordionItem.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { DisclosureGroup } from "react-aria-components";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/navigation/Accordion/Accordion.tsx
|
|
8
8
|
var Accordion = ({ items, variant = "filled", actionPosition = "right", allowsMultipleExpanded = false, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }) => {
|
|
9
9
|
return /* @__PURE__ */ jsx(DisclosureGroup, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
3
|
import { accordionChevronDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./accordion.cva.js";
|
|
5
|
-
import {
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
6
5
|
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
8
8
|
var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon, variant = "filled", actionPosition = "right", isSingle }) => {
|
|
9
9
|
const itemCva = UIOverrides.useCva("accordion.itemCva", accordionItemDefinition);
|
|
@@ -49,7 +49,7 @@ var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon,
|
|
|
49
49
|
})
|
|
50
50
|
]
|
|
51
51
|
})
|
|
52
|
-
}), /* @__PURE__ */ jsx(
|
|
52
|
+
}), /* @__PURE__ */ jsx(ChevronDown, { className: chevronCva({ isExpanded }) })]
|
|
53
53
|
}) }), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
54
54
|
className: panelCva({ isExpanded }),
|
|
55
55
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -2,8 +2,8 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { stepperDefinition } from "./stepper.cva.js";
|
|
3
3
|
import { StepperItem } from "./StepperItem.js";
|
|
4
4
|
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
|
+
import { Fragment } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Fragment as Fragment$1 } from "react";
|
|
7
7
|
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
8
8
|
var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientation = "horizontal", iconsOnly, titlesOnly, onStepClick, className }) => {
|
|
9
9
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -15,7 +15,7 @@ var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientat
|
|
|
15
15
|
"aria-label": "Progress",
|
|
16
16
|
children: steps.map((step, index) => {
|
|
17
17
|
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
18
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
19
19
|
step,
|
|
20
20
|
stepNumber: index + 1,
|
|
21
21
|
status,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckIcon } from "../../../assets/icons/Check.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
3
|
import { stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./stepper.cva.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Check } from "lucide-react";
|
|
7
5
|
import { clsx } from "clsx";
|
|
8
6
|
import { Button } from "react-aria-components";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
10
10
|
var StepperItem = (t0) => {
|
|
11
11
|
const $ = c(31);
|
|
@@ -26,7 +26,7 @@ var StepperItem = (t0) => {
|
|
|
26
26
|
} else t1 = $[2];
|
|
27
27
|
let t2;
|
|
28
28
|
if ($[3] !== status || $[4] !== stepNumber || $[5] !== stepperNumberCva) {
|
|
29
|
-
t2 = status === "completed" ? /* @__PURE__ */ jsx(
|
|
29
|
+
t2 = status === "completed" ? /* @__PURE__ */ jsx(Check, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
30
30
|
className: stepperNumberCva({ status }),
|
|
31
31
|
variant: "prominent-1",
|
|
32
32
|
size: "label-3",
|
|
@@ -2,8 +2,8 @@ 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 { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/overlays/ActionModal/ActionModal.tsx
|
|
8
8
|
var textAlignClassMap = {
|
|
9
9
|
left: "text-left",
|