@povio/ui 3.4.0-rc.7 → 3.4.0-rc.9
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 +7 -16
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +3 -6
- package/dist/components/Menu/MenuMobile.js +4 -7
- package/dist/components/Menu/MenuPopover.js +1 -1
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +2 -2
- package/dist/components/buttons/SplitButton/SplitButton.js +2 -2
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -1
- 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 +4 -11
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateField.js +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.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 +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +1 -1
- package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +1 -1
- package/dist/components/inputs/File/FileUpload.js +2 -2
- 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 +3 -6
- package/dist/components/inputs/File/shared/FileUploadContentError.js +3 -7
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +3 -7
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +3 -7
- package/dist/components/inputs/File/shared/InputUploadContent.js +2 -2
- package/dist/components/inputs/File/shared/InputUploadFilled.js +2 -2
- 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 +3 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -6
- 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 +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +2 -2
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/inputs/Input/TextArea/TextArea.js +1 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +1 -1
- package/dist/components/inputs/Input/shared/InputContent.js +1 -1
- 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 +2 -2
- 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 +3 -3
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +4 -5
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBox.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 +3 -6
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -6
- package/dist/components/inputs/Selection/shared/select.context.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.js +3 -3
- 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 +3 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +2 -2
- 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 +14 -22
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/inputs/shared/form.binding.js +1 -1
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -6
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +3 -6
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +2 -2
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +3 -6
- package/dist/components/overlays/Drawer/Drawer.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +6 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +3 -3
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +2 -2
- 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/InfiniteTable.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +39 -149
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -6
- package/dist/components/text/Tag/Tag.js +3 -6
- 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.js +5 -14
- package/dist/config/uiOverrides.context.js +1 -1
- package/dist/rhf/Inputs.js +1 -1
- package/package.json +1 -1
- 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 +0 -15
- package/dist/react-icons-sprite-8250f4ef.svg +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
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
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition } from "./breadcrumbs.cva.js";
|
|
4
3
|
import { MenuDesktop } from "../Menu/MenuDesktop.js";
|
|
5
4
|
import { Typography } from "../text/Typography/Typography.js";
|
|
6
5
|
import { Tooltip as Tooltip$1 } from "../overlays/Tooltip/Tooltip.js";
|
|
7
6
|
import { LinkContext } from "../../config/link.context.js";
|
|
8
|
-
import {
|
|
7
|
+
import { ChevronRight } from "lucide-react";
|
|
9
8
|
import { clsx } from "clsx";
|
|
10
9
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
11
|
-
import { Breadcrumb, Breadcrumbs, Button, Link } from "react-aria-components";
|
|
10
|
+
import { Breadcrumb, Breadcrumbs, Button, Link as Link$1 } from "react-aria-components";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
13
13
|
var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false }) => {
|
|
14
14
|
const breadcrumbsCva = UIOverrides.useCva("breadcrumbs.cva", breadcrumbsDefinition);
|
|
@@ -35,7 +35,7 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
35
35
|
const hiddenItems = items.length > 2 ? items.slice(1, -1) : [];
|
|
36
36
|
const firstItem = items[0];
|
|
37
37
|
const lastItem = items[items.length - 1];
|
|
38
|
-
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link;
|
|
38
|
+
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link$1;
|
|
39
39
|
const renderBreadcrumbLink = (item, isCurrent, iconOnly) => /* @__PURE__ */ jsxs(LinkComponent, {
|
|
40
40
|
...item.link,
|
|
41
41
|
className: breadcrumbItem({ isCurrent }),
|
|
@@ -80,18 +80,12 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
80
80
|
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
81
81
|
id: firstItem.id,
|
|
82
82
|
className: breadcrumbSegmentCva({}),
|
|
83
|
-
children: [renderBreadcrumbLink(firstItem, false, iconOnly_0), /* @__PURE__ */ jsx(
|
|
84
|
-
iconId: "ri-lucide-react-ChevronRight",
|
|
85
|
-
className: breadcrumbChevronCva({})
|
|
86
|
-
})]
|
|
83
|
+
children: [renderBreadcrumbLink(firstItem, false, iconOnly_0), /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })]
|
|
87
84
|
}),
|
|
88
85
|
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
89
86
|
id: "ellipsis",
|
|
90
87
|
className: breadcrumbSegmentCva({}),
|
|
91
|
-
children: [renderEllipsis(), /* @__PURE__ */ jsx(
|
|
92
|
-
iconId: "ri-lucide-react-ChevronRight",
|
|
93
|
-
className: breadcrumbChevronCva({})
|
|
94
|
-
})]
|
|
88
|
+
children: [renderEllipsis(), /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })]
|
|
95
89
|
}),
|
|
96
90
|
/* @__PURE__ */ jsx(Breadcrumb, {
|
|
97
91
|
id: lastItem.id,
|
|
@@ -110,10 +104,7 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
110
104
|
children: (item_1) => /* @__PURE__ */ jsx(Breadcrumb, {
|
|
111
105
|
id: item_1.id,
|
|
112
106
|
className: breadcrumbSegmentCva({}),
|
|
113
|
-
children: ({ isCurrent: isCurrent_0 }) => /* @__PURE__ */ jsxs(Fragment, { children: [renderBreadcrumbLink(item_1, isCurrent_0, iconOnly_0 && item_1 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(
|
|
114
|
-
iconId: "ri-lucide-react-ChevronRight",
|
|
115
|
-
className: breadcrumbChevronCva({})
|
|
116
|
-
})] })
|
|
107
|
+
children: ({ isCurrent: isCurrent_0 }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [renderBreadcrumbLink(item_1, isCurrent_0, iconOnly_0 && item_1 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })] })
|
|
117
108
|
})
|
|
118
109
|
});
|
|
119
110
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MenuDesktop } from "./MenuDesktop.js";
|
|
2
2
|
import { MenuMobile } from "./MenuMobile.js";
|
|
3
3
|
import { useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Menu/Menu.tsx
|
|
7
7
|
var Menu = (props) => {
|
|
8
8
|
const $ = c(4);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuPopover } from "./MenuPopover.js";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { MenuTrigger } from "react-aria-components";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Menu/MenuDesktop.tsx
|
|
6
6
|
var MenuDesktop = (t0) => {
|
|
7
7
|
const $ = c(12);
|
|
@@ -1,10 +1,10 @@
|
|
|
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
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { menuItemDefinition } from "./menu.cva.js";
|
|
4
|
-
import {
|
|
3
|
+
import { ArrowRight } from "lucide-react";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { MenuItem } from "react-aria-components";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Menu/MenuItem.tsx
|
|
9
9
|
var MenuItem$1 = (t0) => {
|
|
10
10
|
const $ = c(9);
|
|
@@ -19,10 +19,7 @@ var MenuItem$1 = (t0) => {
|
|
|
19
19
|
const t2 = content ?? label;
|
|
20
20
|
let t3;
|
|
21
21
|
if ($[0] !== hasSubmenu) {
|
|
22
|
-
t3 = hasSubmenu && /* @__PURE__ */ jsx(
|
|
23
|
-
iconId: "ri-lucide-react-ArrowRight",
|
|
24
|
-
className: "size-6"
|
|
25
|
-
});
|
|
22
|
+
t3 = hasSubmenu && /* @__PURE__ */ jsx(ArrowRight, { className: "size-6" });
|
|
26
23
|
$[0] = hasSubmenu;
|
|
27
24
|
$[1] = t3;
|
|
28
25
|
} else t3 = $[1];
|
|
@@ -1,13 +1,13 @@
|
|
|
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
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { menuDefinition, menuItemDefinition } from "./menu.cva.js";
|
|
4
3
|
import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
5
4
|
import { BottomSheet } from "../overlays/BottomSheet/BottomSheet.js";
|
|
6
|
-
import {
|
|
5
|
+
import { ArrowLeft } from "lucide-react";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { useRef, useState } from "react";
|
|
9
8
|
import { Button, Menu } from "react-aria-components";
|
|
10
9
|
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/Menu/MenuMobile.tsx
|
|
12
12
|
var MenuMobile = (t0) => {
|
|
13
13
|
const $ = c(23);
|
|
@@ -84,16 +84,13 @@ var MenuMobile = (t0) => {
|
|
|
84
84
|
const onBack = t4;
|
|
85
85
|
let t5;
|
|
86
86
|
if ($[11] !== activeItem || $[12] !== handleAction || $[13] !== items || $[14] !== menuCva || $[15] !== menuItemCva || $[16] !== props) {
|
|
87
|
-
t5 = () => /* @__PURE__ */ jsxs(Fragment, { children: [activeItem && /* @__PURE__ */ jsxs(Button, {
|
|
87
|
+
t5 = () => /* @__PURE__ */ jsxs(Fragment$1, { children: [activeItem && /* @__PURE__ */ jsxs(Button, {
|
|
88
88
|
className: clsx(menuItemCva({
|
|
89
89
|
...props,
|
|
90
90
|
isMobile: true
|
|
91
91
|
})),
|
|
92
92
|
onPress: onBack,
|
|
93
|
-
children: [/* @__PURE__ */ jsx(
|
|
94
|
-
iconId: "ri-lucide-react-ArrowLeft",
|
|
95
|
-
className: "size-6"
|
|
96
|
-
}), activeItem.label]
|
|
93
|
+
children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "size-6" }), activeItem.label]
|
|
97
94
|
}), /* @__PURE__ */ jsx("div", {
|
|
98
95
|
onClickCapture: (e) => {
|
|
99
96
|
lastEventRef.current = e;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
2
2
|
import { menuDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition } from "./menu.cva.js";
|
|
3
3
|
import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useRef } from "react";
|
|
6
5
|
import { Menu, Popover, SubmenuTrigger } from "react-aria-components";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Menu/MenuPopover.tsx
|
|
9
9
|
var MenuPopover = (t0) => {
|
|
10
10
|
const $ = c(28);
|
|
@@ -3,9 +3,9 @@ import { LinkContext } from "../../../config/link.context.js";
|
|
|
3
3
|
import { ButtonContent } from "../shared/ButtonContent.js";
|
|
4
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
5
|
import { buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, buttonTypography } from "./button.cva.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { Button, Link, ToggleButton } from "react-aria-components";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/buttons/Button/Button.tsx
|
|
10
10
|
var Button$1 = ({ icon: Icon, iconPosition, children, isLoading, className, link, iconClassName, noDisableWhenLoading, contentRef, ...props }) => {
|
|
11
11
|
const linkContext = LinkContext.useLinkContext();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from "../../overlays/Tooltip/Tooltip.js";
|
|
2
2
|
import { Button } from "../Button/Button.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.tsx
|
|
6
6
|
var IconButton = (t0) => {
|
|
7
7
|
const $ = c(11);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { ButtonContent } from "../shared/ButtonContent.js";
|
|
3
3
|
import { pillButtonContent, pillButtonDefinition, pillButtonIconSize, pillButtonTypography } from "./pillButton.cva.js";
|
|
4
|
-
import {
|
|
4
|
+
import { X } from "lucide-react";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { Button, ToggleButton } from "react-aria-components";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/buttons/PillButton/PillButton.tsx
|
|
10
10
|
var PillButton = (t0) => {
|
|
11
11
|
const $ = c(17);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
2
|
import { IconButton } from "../IconButton/IconButton.js";
|
|
3
3
|
import { Menu } from "../../Menu/Menu.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/SplitButton/SplitButton.tsx
|
|
9
9
|
var SplitButton = (t0) => {
|
|
10
10
|
const $ = c(36);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/buttons/TextButton/TextButton.tsx
|
|
5
5
|
var TextButton = (t0) => {
|
|
6
6
|
const $ = c(7);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/buttons/ToggleButton/ToggleButton.tsx
|
|
5
5
|
var ToggleButton = (t0) => {
|
|
6
6
|
const $ = c(6);
|
|
@@ -2,9 +2,9 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
3
|
import { buttonContentLabel } from "./buttonContent.cva.js";
|
|
4
4
|
import { Loader } from "../../status/Loader/Loader.js";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { isValidElement } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/shared/ButtonContent.tsx
|
|
9
9
|
var ButtonContent = ({ ref, content, isLoading, icon: Icon, iconClassName, hideText, iconPosition = "left", typography: typographyOverrides }) => {
|
|
10
10
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
@@ -17,7 +17,7 @@ var ButtonContent = ({ ref, content, isLoading, icon: Icon, iconClassName, hideT
|
|
|
17
17
|
variant: "prominent-1",
|
|
18
18
|
...typographyOverrides
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
21
21
|
iconOrLoader && iconPosition === "left" && iconOrLoader,
|
|
22
22
|
/* @__PURE__ */ jsx("span", {
|
|
23
23
|
className: clsx(typographyCva({
|
|
@@ -5,10 +5,10 @@ import { checkboxContentClassName, checkboxIndicatorClass, checkboxTypography }
|
|
|
5
5
|
import { FormFieldError } from "../FormField/FormFieldError.js";
|
|
6
6
|
import { CheckContent } from "../shared/CheckContent.js";
|
|
7
7
|
import { CheckboxCheckmark } from "./CheckboxCheckmark.js";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { clsx } from "clsx";
|
|
10
9
|
import { Checkbox } from "react-aria-components";
|
|
11
10
|
import { c } from "react/compiler-runtime";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { mergeRefs } from "@react-aria/utils";
|
|
13
13
|
//#region src/components/inputs/Checkbox/Checkbox.tsx
|
|
14
14
|
var CheckboxBase = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { checkboxDefinition, checkboxIconDefinition } from "./checkbox.cva.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { Check, Minus } from "lucide-react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
6
6
|
var CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Check, indeterminateIcon: IndeterminateIcon = Minus, ...props }) => {
|
|
7
7
|
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
@@ -6,10 +6,10 @@ import { CheckboxBase } from "./Checkbox.js";
|
|
|
6
6
|
import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
|
|
7
7
|
import { FormField } from "../FormField/FormField.js";
|
|
8
8
|
import { inputBaseDefinition, inputSizeDefinition } from "../shared/input.cva.js";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { clsx } from "clsx";
|
|
11
10
|
import { CheckboxGroup } from "react-aria-components";
|
|
12
11
|
import { c } from "react/compiler-runtime";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useLabel } from "react-aria";
|
|
14
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
15
15
|
//#region src/components/inputs/Checkbox/CheckboxGroup.tsx
|
|
@@ -13,9 +13,9 @@ import { getStaticCalendarDateSegments, getStaticDateTimeFocusTarget } from "../
|
|
|
13
13
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
14
14
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
15
15
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
16
|
import { clsx } from "clsx";
|
|
18
17
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useDatePicker, useLocale } from "react-aria";
|
|
20
20
|
import { mergeRefs } from "@react-aria/utils";
|
|
21
21
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
@@ -15,10 +15,10 @@ import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
|
15
15
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
16
16
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
17
17
|
import { RangeCalendar } from "../shared/RangeCalendar.js";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
18
|
import { clsx } from "clsx";
|
|
20
19
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
21
20
|
import { Button } from "react-aria-components";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
import { useDateRangePicker, useLocale as useLocale$1 } from "react-aria";
|
|
23
23
|
import { mergeRefs } from "@react-aria/utils";
|
|
24
24
|
import { useTranslation } from "react-i18next";
|
|
@@ -13,9 +13,9 @@ import { getStaticCalendarDateTimeSegments, getStaticDateTimeFocusTarget } from
|
|
|
13
13
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
14
14
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
15
15
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
16
|
import { clsx } from "clsx";
|
|
18
17
|
import { useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useDatePicker, useLocale } from "react-aria";
|
|
20
20
|
import { mergeRefs } from "@react-aria/utils";
|
|
21
21
|
import { Time, createCalendar, getLocalTimeZone, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
@@ -10,10 +10,10 @@ import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
|
10
10
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
11
11
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
12
12
|
import { TimePickerInput } from "../shared/TimePickerInput.js";
|
|
13
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
13
|
import { clsx } from "clsx";
|
|
15
14
|
import { useEffect, useRef, useState } from "react";
|
|
16
15
|
import { c } from "react/compiler-runtime";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { useLocale, useTimeField } from "react-aria";
|
|
18
18
|
import { mergeRefs } from "@react-aria/utils";
|
|
19
19
|
import { getLocalTimeZone, now, toTime } from "@internationalized/date";
|
|
@@ -3,9 +3,9 @@ import { CalendarHeader } from "./CalendarHeader.js";
|
|
|
3
3
|
import { MonthPicker } from "./MonthPicker.js";
|
|
4
4
|
import { TimePickerForm } from "./TimePickerForm.js";
|
|
5
5
|
import { YearPicker } from "./YearPicker.js";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { useCallback, useEffect, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useCalendar } from "@react-aria/calendar";
|
|
10
10
|
//#region src/components/inputs/DateTime/shared/Calendar.tsx
|
|
11
11
|
var Calendar = ({ className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity = "day", setDateValueOnDateSelection = false, onDateSelectionChange, ...props }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { useCallback, useMemo, useRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { mergeProps } from "@react-aria/utils";
|
|
6
6
|
import { isSameDay } from "@internationalized/date";
|
|
7
7
|
import { useCalendarCell } from "@react-aria/calendar";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { CalendarCell } from "./CalendarCell.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useCalendarGrid } from "@react-aria/calendar";
|
|
6
6
|
//#region src/components/inputs/DateTime/shared/CalendarGrid.tsx
|
|
7
7
|
var WEEK_INDICES = [
|
|
@@ -1,9 +1,8 @@
|
|
|
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
1
|
import { PillButton } from "../../../buttons/PillButton/PillButton.js";
|
|
3
|
-
import {
|
|
2
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { Button, ToggleButtonGroup } from "react-aria-components";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { CalendarDateTime, Time } from "@internationalized/date";
|
|
8
7
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
9
8
|
//#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
|
|
@@ -41,10 +40,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
41
40
|
...prevButtonProps,
|
|
42
41
|
isDisabled: !!toggleState,
|
|
43
42
|
className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
|
|
44
|
-
children: /* @__PURE__ */ jsx(
|
|
45
|
-
iconId: "ri-lucide-react-ChevronLeft",
|
|
46
|
-
className: "size-6 text-interactive-text-secondary-idle"
|
|
47
|
-
})
|
|
43
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-6 text-interactive-text-secondary-idle" })
|
|
48
44
|
})
|
|
49
45
|
}),
|
|
50
46
|
/* @__PURE__ */ jsxs(ToggleButtonGroup, {
|
|
@@ -112,10 +108,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
|
|
|
112
108
|
...nextButtonProps,
|
|
113
109
|
isDisabled: !!toggleState,
|
|
114
110
|
className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
|
|
115
|
-
children: /* @__PURE__ */ jsx(
|
|
116
|
-
iconId: "ri-lucide-react-ChevronRight",
|
|
117
|
-
className: "size-6 text-interactive-text-secondary-idle"
|
|
118
|
-
})
|
|
111
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-6 text-interactive-text-secondary-idle" })
|
|
119
112
|
})
|
|
120
113
|
})
|
|
121
114
|
]
|
|
@@ -2,9 +2,9 @@ import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconBu
|
|
|
2
2
|
import { PillButton } from "../../../buttons/PillButton/PillButton.js";
|
|
3
3
|
import "../../../../config/i18n.js";
|
|
4
4
|
import { Select } from "../../Selection/Select/Select.js";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useMemo } from "react";
|
|
7
5
|
import { ChevronDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
9
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
10
10
|
//#region src/components/inputs/DateTime/shared/CalendarSelectHeader.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DateSegmentItem } from "./DateSegmentItem.js";
|
|
2
2
|
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
3
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
|
|
5
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
6
6
|
import { useDateField, useLocale } from "react-aria";
|
|
7
7
|
import { CalendarDate, CalendarDateTime, createCalendar } from "@internationalized/date";
|
|
8
8
|
import { DateTime } from "luxon";
|
|
@@ -130,7 +130,7 @@ var DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManua
|
|
|
130
130
|
return formattedDate.toFormat(format);
|
|
131
131
|
};
|
|
132
132
|
const formattedDisplayValue = getFormattedDisplayValue();
|
|
133
|
-
let fieldContent = /* @__PURE__ */ jsx(Fragment, { children: segmentsToRender.map((segment_7, i) => /* @__PURE__ */ jsx(DateSegmentItem, {
|
|
133
|
+
let fieldContent = /* @__PURE__ */ jsx(Fragment$1, { children: segmentsToRender.map((segment_7, i) => /* @__PURE__ */ jsx(DateSegmentItem, {
|
|
134
134
|
segment: segment_7,
|
|
135
135
|
segmentGroup,
|
|
136
136
|
state,
|
|
@@ -10,10 +10,10 @@ import { datePickerInputContentRowDefinition } from "./datePickerInput.cva.js";
|
|
|
10
10
|
import { renderDatePickerTodayIcon } from "./datePickerTodayIcon.js";
|
|
11
11
|
import { useFirefoxDateSegmentSelectionGuard } from "./useFirefoxDateSegmentSelectionGuard.js";
|
|
12
12
|
import { InputClear } from "../../shared/InputClear.js";
|
|
13
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
13
|
import { clsx } from "clsx";
|
|
15
14
|
import { useCallback, useImperativeHandle, useRef, useState } from "react";
|
|
16
15
|
import { Button } from "react-aria-components";
|
|
16
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
18
18
|
import { getLocalTimeZone, today } from "@internationalized/date";
|
|
19
19
|
//#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
|
|
@@ -140,7 +140,7 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
|
|
|
140
140
|
size: "label-1",
|
|
141
141
|
className: "text-text-default-3",
|
|
142
142
|
children: placeholder
|
|
143
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
143
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
144
144
|
ref: dateFieldRef,
|
|
145
145
|
...normalizedFieldProps,
|
|
146
146
|
isDisabled,
|
|
@@ -154,7 +154,7 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
|
|
|
154
154
|
format,
|
|
155
155
|
timeZone: effectiveTimeZone,
|
|
156
156
|
segmentGroup: normalizedEndFieldProps ? "start" : void 0
|
|
157
|
-
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
157
|
+
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
158
158
|
className: clsx("pointer-events-none select-none", isDisabled && "text-interactive-text-secondary-disabled"),
|
|
159
159
|
children: "–"
|
|
160
160
|
}), /* @__PURE__ */ jsx(DateField, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
1
|
import { clsx } from "clsx";
|
|
3
2
|
import { useRef } from "react";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useDateSegment } from "react-aria";
|
|
6
6
|
//#region src/components/inputs/DateTime/shared/DateSegmentItem.tsx
|
|
7
7
|
var getPlaceholder = (segment) => {
|
|
@@ -93,7 +93,7 @@ var DateSegmentItemView = (t0) => {
|
|
|
93
93
|
const t12 = isPlaceholder ? "" : text;
|
|
94
94
|
let t13;
|
|
95
95
|
if ($[10] !== t11 || $[11] !== t12) {
|
|
96
|
-
t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t11, t12] });
|
|
96
|
+
t13 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t11, t12] });
|
|
97
97
|
$[10] = t11;
|
|
98
98
|
$[11] = t12;
|
|
99
99
|
$[12] = t13;
|
|
@@ -2,10 +2,10 @@ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { BottomSheet } from "../../../overlays/BottomSheet/BottomSheet.js";
|
|
3
3
|
import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
|
|
4
4
|
import { popoverDefinition } from "../../../shared/popover.cva.js";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import clsx$1 from "clsx";
|
|
7
6
|
import { Dialog, Popover } from "react-aria-components";
|
|
8
7
|
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/inputs/DateTime/shared/DateTimeDialog.tsx
|
|
10
10
|
var DateTimeDialog = (t0) => {
|
|
11
11
|
const $ = c(26);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../config/i18n.js";
|
|
2
2
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
//#region src/components/inputs/DateTime/shared/DateTimeDialogFooter.tsx
|
|
7
7
|
var DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress, onApply }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { useRef } from "react";
|
|
5
4
|
import { ListBox, ListBoxItem } from "react-aria-components";
|
|
6
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
8
8
|
//#region src/components/inputs/DateTime/shared/MonthPicker.tsx
|
|
9
9
|
var MonthPicker = (t0) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CalendarGrid } from "./CalendarGrid.js";
|
|
2
2
|
import { CalendarSelectHeader } from "./CalendarSelectHeader.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { useRef } from "react";
|
|
6
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useRangeCalendar } from "@react-aria/calendar";
|
|
8
8
|
//#region src/components/inputs/DateTime/shared/RangeCalendar.tsx
|
|
9
9
|
var RangeCalendar = (t0) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateSegmentItem } from "./DateSegmentItem.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/inputs/DateTime/shared/TimeField.tsx
|
|
5
5
|
var TimeField = (t0) => {
|
|
6
6
|
const $ = c(8);
|
|
@@ -3,12 +3,12 @@ import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconBu
|
|
|
3
3
|
import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
|
|
4
4
|
import { getPlaceholder } from "./DateSegmentItem.js";
|
|
5
5
|
import { useLongPressRepeat } from "../../../../hooks/useLongPressRepeat.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useEffect, useRef } from "react";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { useDateSegment, useLocale, useTimeField } from "react-aria";
|
|
11
|
-
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
12
12
|
import { Time } from "@internationalized/date";
|
|
13
13
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
14
14
|
//#region src/components/inputs/DateTime/shared/TimePickerForm.tsx
|
|
@@ -7,11 +7,11 @@ import { inputBaseDefinition, inputSizeDefinition } from "../../shared/input.cva
|
|
|
7
7
|
import { useFirefoxDateSegmentSelectionGuard } from "./useFirefoxDateSegmentSelectionGuard.js";
|
|
8
8
|
import { InputClear } from "../../shared/InputClear.js";
|
|
9
9
|
import { TimeField } from "./TimeField.js";
|
|
10
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { clsx } from "clsx";
|
|
12
11
|
import { useRef, useState } from "react";
|
|
13
12
|
import { Button } from "react-aria-components";
|
|
14
13
|
import { c } from "react/compiler-runtime";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
16
16
|
import { mergeRefs } from "@react-aria/utils";
|
|
17
17
|
//#region src/components/inputs/DateTime/shared/TimePickerInput.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { useScrollableListBox } from "../../../../hooks/useScrollableListBox.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { useRef } from "react";
|
|
6
5
|
import { ListBox, ListBoxItem } from "react-aria-components";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { today } from "@internationalized/date";
|
|
9
9
|
import { useDateFormatter } from "@react-aria/i18n";
|
|
10
10
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconButton } from "../../../buttons/IconButton/IconButton.js";
|
|
2
2
|
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/DateTime/shared/datePickerTodayIcon.tsx
|
|
6
6
|
var TodayIcon = (t0) => {
|
|
7
7
|
const $ = c(9);
|
|
@@ -8,11 +8,11 @@ import { FileCardList } from "./shared/FileCardList.js";
|
|
|
8
8
|
import { FileUploadContentEmpty } from "./shared/FileUploadContentEmpty.js";
|
|
9
9
|
import { FileUploadContent } from "./shared/FileUploadContent.js";
|
|
10
10
|
import { fileUploadDropZoneDefinition } from "./shared/fileUpload.cva.js";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { clsx } from "clsx";
|
|
13
12
|
import { useCallback, useState } from "react";
|
|
14
13
|
import { DropZone } from "react-aria-components";
|
|
15
14
|
import { c } from "react/compiler-runtime";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { mergeRefs, useLabels } from "@react-aria/utils";
|
|
17
17
|
import { useTranslation } from "react-i18next";
|
|
18
18
|
//#region src/components/inputs/File/FileUpload.tsx
|
|
@@ -142,7 +142,7 @@ var FileUploadBase = (props) => {
|
|
|
142
142
|
isContainer: !!children,
|
|
143
143
|
className: "group/file-upload-drop-zone"
|
|
144
144
|
}),
|
|
145
|
-
children: children ? /* @__PURE__ */ jsxs(Fragment, { children: [children({
|
|
145
|
+
children: children ? /* @__PURE__ */ jsxs(Fragment$1, { children: [children({
|
|
146
146
|
files: uploadState,
|
|
147
147
|
onRemove: handleRemove,
|
|
148
148
|
onCancel: handleCancelUpload
|