@parrot-co/parrot-ui 0.0.87 → 0.0.89
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/main.js +62 -83
- package/dist/main.js.map +1 -1
- package/dist/module.js +62 -83
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +400 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +4 -3
- package/styles.css +1 -1
package/dist/module.js
CHANGED
|
@@ -3,7 +3,7 @@ import $hgUW1$react, {forwardRef as $hgUW1$forwardRef, useCallback as $hgUW1$use
|
|
|
3
3
|
import {useTextField as $hgUW1$useTextField, useLocale as $hgUW1$useLocale, useNumberField as $hgUW1$useNumberField, useToggleButton as $hgUW1$useToggleButton, useCheckbox as $hgUW1$useCheckbox, useCheckboxGroupItem as $hgUW1$useCheckboxGroupItem, useFocusRing as $hgUW1$useFocusRing, VisuallyHidden as $hgUW1$VisuallyHidden, useCheckboxGroup as $hgUW1$useCheckboxGroup, useRadio as $hgUW1$useRadio, useRadioGroup as $hgUW1$useRadioGroup, useMenuTrigger as $hgUW1$useMenuTrigger, usePress as $hgUW1$usePress, HiddenSelect as $hgUW1$HiddenSelect, useListBox as $hgUW1$useListBox, useOption as $hgUW1$useOption, useListBoxSection as $hgUW1$useListBoxSection, usePopover as $hgUW1$usePopover, Overlay as $hgUW1$Overlay, useDatePicker as $hgUW1$useDatePicker, useDateField as $hgUW1$useDateField, useDateSegment as $hgUW1$useDateSegment, useCalendar as $hgUW1$useCalendar, useCalendarGrid as $hgUW1$useCalendarGrid, useCalendarCell as $hgUW1$useCalendarCell, mergeProps as $hgUW1$mergeProps, useDrop as $hgUW1$useDrop, useProgressBar as $hgUW1$useProgressBar, useTabList as $hgUW1$useTabList, useTab as $hgUW1$useTab, useTabPanel as $hgUW1$useTabPanel, useHover as $hgUW1$useHover, useSwitch as $hgUW1$useSwitch, useModalOverlay as $hgUW1$useModalOverlay, useDialog as $hgUW1$useDialog} from "react-aria";
|
|
4
4
|
import {HiMinus as $hgUW1$HiMinus, HiPlus as $hgUW1$HiPlus, HiEye as $hgUW1$HiEye, HiX as $hgUW1$HiX, HiSelector as $hgUW1$HiSelector, HiCheck as $hgUW1$HiCheck, HiOutlineCalendar as $hgUW1$HiOutlineCalendar, HiChevronLeft as $hgUW1$HiChevronLeft, HiChevronRight as $hgUW1$HiChevronRight, HiOutlineDocumentAdd as $hgUW1$HiOutlineDocumentAdd, HiOutlineCheckCircle as $hgUW1$HiOutlineCheckCircle, HiOutlineTrash as $hgUW1$HiOutlineTrash, HiOutlineExclamationCircle as $hgUW1$HiOutlineExclamationCircle, HiOutlineRefresh as $hgUW1$HiOutlineRefresh, HiOutlinePaperClip as $hgUW1$HiOutlinePaperClip} from "react-icons/hi";
|
|
5
5
|
import {useNumberFieldState as $hgUW1$useNumberFieldState, useToggleState as $hgUW1$useToggleState, useCheckboxGroupState as $hgUW1$useCheckboxGroupState, useRadioGroupState as $hgUW1$useRadioGroupState, useMenuTriggerState as $hgUW1$useMenuTriggerState, useListState as $hgUW1$useListState, Item as $hgUW1$Item, Section as $hgUW1$Section, useDatePickerState as $hgUW1$useDatePickerState, useDateFieldState as $hgUW1$useDateFieldState, useCalendarState as $hgUW1$useCalendarState, useTabListState as $hgUW1$useTabListState, useOverlayTriggerState as $hgUW1$useOverlayTriggerState} from "react-stately";
|
|
6
|
-
import {createCalendar as $hgUW1$createCalendar, endOfMonth as $hgUW1$endOfMonth, getWeeksInMonth as $hgUW1$getWeeksInMonth, isSameMonth as $hgUW1$isSameMonth
|
|
6
|
+
import {parseDate as $hgUW1$parseDate, GregorianCalendar as $hgUW1$GregorianCalendar, createCalendar as $hgUW1$createCalendar, endOfMonth as $hgUW1$endOfMonth, getWeeksInMonth as $hgUW1$getWeeksInMonth, isSameMonth as $hgUW1$isSameMonth} from "@internationalized/date";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -534,7 +534,7 @@ const $d95a2216d3ccf702$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
534
534
|
const space = (0, $41cc567ab0625f8f$export$450c36e0b0e62ccd)();
|
|
535
535
|
const buttonGroupProps = (0, $9230e224c5c26d9c$export$749e21be8b14b968)();
|
|
536
536
|
const theme = (0, $5fc28f26e128d5c0$export$93d4e7f90805808f)();
|
|
537
|
-
const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = "violet", activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton,
|
|
537
|
+
const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = "violet", activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton, style: style, ...otherProps } = {
|
|
538
538
|
...buttonGroupProps,
|
|
539
539
|
...props
|
|
540
540
|
};
|
|
@@ -546,18 +546,6 @@ const $d95a2216d3ccf702$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
546
546
|
...otherProps,
|
|
547
547
|
elementType: as
|
|
548
548
|
}, state, buttonRef);
|
|
549
|
-
const getAppearance = (0, $hgUW1$react).useCallback(()=>{
|
|
550
|
-
if (theme?.buttonAppearance && appearance) return {
|
|
551
|
-
color: theme.buttonAppearance[appearance]?.color,
|
|
552
|
-
variant: theme.buttonAppearance[appearance]?.variant
|
|
553
|
-
};
|
|
554
|
-
return {
|
|
555
|
-
color: color,
|
|
556
|
-
variant: variant
|
|
557
|
-
};
|
|
558
|
-
}, [
|
|
559
|
-
appearance
|
|
560
|
-
]);
|
|
561
549
|
function getColor() {
|
|
562
550
|
if (!state.isSelected && isToggle) return {
|
|
563
551
|
color: idleColor,
|
|
@@ -568,14 +556,13 @@ const $d95a2216d3ccf702$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hgUW1$react
|
|
|
568
556
|
variant: activeVariant
|
|
569
557
|
};
|
|
570
558
|
return {
|
|
571
|
-
variant:
|
|
572
|
-
color:
|
|
559
|
+
variant: variant,
|
|
560
|
+
color: color
|
|
573
561
|
};
|
|
574
562
|
}
|
|
575
563
|
const Comp = as;
|
|
576
564
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)(Comp, {
|
|
577
565
|
style: style,
|
|
578
|
-
"data-appearance": appearance,
|
|
579
566
|
"data-pressed": isPressed,
|
|
580
567
|
"data-radius": radius,
|
|
581
568
|
"data-icon-button": isIconButton,
|
|
@@ -1581,18 +1568,22 @@ function $9f79d30a629e2c71$export$ef9b1a59e592288f({ label: label, selectionMode
|
|
|
1581
1568
|
|
|
1582
1569
|
|
|
1583
1570
|
|
|
1584
|
-
|
|
1571
|
+
function $693c180b2c3a8d81$var$createCalendar() {
|
|
1572
|
+
return new (0, $hgUW1$GregorianCalendar)();
|
|
1573
|
+
}
|
|
1574
|
+
const $693c180b2c3a8d81$export$d9781c7894a82487 = /*#__PURE__*/ $hgUW1$forwardRef((props, ref)=>{
|
|
1585
1575
|
const { locale: locale } = (0, $hgUW1$useLocale)();
|
|
1586
1576
|
const state = (0, $hgUW1$useDateFieldState)({
|
|
1587
1577
|
...props,
|
|
1588
1578
|
locale: locale,
|
|
1589
|
-
createCalendar: $
|
|
1579
|
+
createCalendar: $693c180b2c3a8d81$var$createCalendar
|
|
1590
1580
|
});
|
|
1591
1581
|
const fieldRef = $hgUW1$useRef(null);
|
|
1592
1582
|
const { fieldProps: fieldProps } = (0, $hgUW1$useDateField)(props, state, fieldRef);
|
|
1593
1583
|
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
1584
|
+
gap: "none",
|
|
1594
1585
|
style: {
|
|
1595
|
-
padding:
|
|
1586
|
+
padding: "4px 0px",
|
|
1596
1587
|
flex: 1
|
|
1597
1588
|
},
|
|
1598
1589
|
stretchY: true,
|
|
@@ -1600,14 +1591,14 @@ const $485d9a0fd20ce5fa$export$d9781c7894a82487 = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1600
1591
|
inline: true,
|
|
1601
1592
|
...fieldProps,
|
|
1602
1593
|
children: state.segments.map((segment, i)=>{
|
|
1603
|
-
return /*#__PURE__*/ (0, $hgUW1$jsx)($
|
|
1594
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)($693c180b2c3a8d81$var$DateSegment, {
|
|
1604
1595
|
segment: segment,
|
|
1605
1596
|
state: state
|
|
1606
1597
|
}, i);
|
|
1607
1598
|
})
|
|
1608
1599
|
});
|
|
1609
1600
|
});
|
|
1610
|
-
function $
|
|
1601
|
+
function $693c180b2c3a8d81$var$DateSegment({ segment: segment, state: state }) {
|
|
1611
1602
|
const ref = $hgUW1$useRef(null);
|
|
1612
1603
|
const { segmentProps: segmentProps } = (0, $hgUW1$useDateSegment)(segment, state, ref);
|
|
1613
1604
|
const segmentMaxValue = segment.maxValue ?? 0;
|
|
@@ -1617,6 +1608,7 @@ function $485d9a0fd20ce5fa$var$DateSegment({ segment: segment, state: state }) {
|
|
|
1617
1608
|
justify: "center",
|
|
1618
1609
|
ref: ref,
|
|
1619
1610
|
"data-placeholder": segment.isPlaceholder,
|
|
1611
|
+
"data-separator": segment.text === "/",
|
|
1620
1612
|
style: {
|
|
1621
1613
|
minWidth: segmentMaxValue.toString().length + "ch",
|
|
1622
1614
|
color: segment.text == "/" ? "var(--color-6)" : "var(--color-12)"
|
|
@@ -1634,7 +1626,6 @@ function $485d9a0fd20ce5fa$var$DateSegment({ segment: segment, state: state }) {
|
|
|
1634
1626
|
height: segment.isPlaceholder ? "" : 0,
|
|
1635
1627
|
pointerEvents: "none",
|
|
1636
1628
|
visibility: segment.isPlaceholder ? undefined : "hidden",
|
|
1637
|
-
fontStyle: "italic",
|
|
1638
1629
|
position: segment.isPlaceholder ? undefined : "absolute"
|
|
1639
1630
|
},
|
|
1640
1631
|
children: segment.placeholder
|
|
@@ -1643,7 +1634,7 @@ function $485d9a0fd20ce5fa$var$DateSegment({ segment: segment, state: state }) {
|
|
|
1643
1634
|
]
|
|
1644
1635
|
});
|
|
1645
1636
|
}
|
|
1646
|
-
$
|
|
1637
|
+
$693c180b2c3a8d81$export$d9781c7894a82487.displayName = "DateField";
|
|
1647
1638
|
|
|
1648
1639
|
|
|
1649
1640
|
|
|
@@ -1674,7 +1665,7 @@ function $b57bc04886adb8b4$export$b4085f3d3ede4716(array, keys) {
|
|
|
1674
1665
|
}
|
|
1675
1666
|
|
|
1676
1667
|
|
|
1677
|
-
const $
|
|
1668
|
+
const $11e1beb2a56c81ba$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRef(({ numberOfMonths: numberOfMonths = 1, color: color, ...props }, ref)=>{
|
|
1678
1669
|
const { locale: locale } = (0, $hgUW1$useLocale)();
|
|
1679
1670
|
const state = (0, $hgUW1$useCalendarState)({
|
|
1680
1671
|
...props,
|
|
@@ -1691,7 +1682,7 @@ const $4085fc0afae085ee$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1691
1682
|
gap: "xs",
|
|
1692
1683
|
direction: "column",
|
|
1693
1684
|
ref: ref,
|
|
1694
|
-
className: "p-calendar",
|
|
1685
|
+
className: "p-calendar-wrapper",
|
|
1695
1686
|
...calendarProps,
|
|
1696
1687
|
children: [
|
|
1697
1688
|
/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
@@ -1700,9 +1691,9 @@ const $4085fc0afae085ee$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1700
1691
|
className: "header",
|
|
1701
1692
|
children: [
|
|
1702
1693
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $e3f71af5eaf1c216$export$c25acd513dcc8062), {
|
|
1703
|
-
variant: "
|
|
1704
|
-
radius: "
|
|
1705
|
-
size: "
|
|
1694
|
+
variant: "outline",
|
|
1695
|
+
radius: "full",
|
|
1696
|
+
size: "sm",
|
|
1706
1697
|
color: "gray",
|
|
1707
1698
|
...prevButtonProps,
|
|
1708
1699
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$HiChevronLeft), {
|
|
@@ -1710,16 +1701,16 @@ const $4085fc0afae085ee$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1710
1701
|
})
|
|
1711
1702
|
}),
|
|
1712
1703
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6), {
|
|
1713
|
-
color: "
|
|
1704
|
+
color: "black",
|
|
1714
1705
|
size: "sm",
|
|
1715
|
-
weight: "
|
|
1706
|
+
weight: "regular",
|
|
1716
1707
|
as: "h2",
|
|
1717
1708
|
children: title
|
|
1718
1709
|
}),
|
|
1719
1710
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $e3f71af5eaf1c216$export$c25acd513dcc8062), {
|
|
1720
|
-
variant: "
|
|
1721
|
-
radius: "
|
|
1722
|
-
size: "
|
|
1711
|
+
variant: "outline",
|
|
1712
|
+
radius: "full",
|
|
1713
|
+
size: "sm",
|
|
1723
1714
|
color: "gray",
|
|
1724
1715
|
...nextButtonProps,
|
|
1725
1716
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$HiChevronRight), {
|
|
@@ -1731,7 +1722,7 @@ const $4085fc0afae085ee$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1731
1722
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
1732
1723
|
gap: "xl",
|
|
1733
1724
|
children: (0, $b57bc04886adb8b4$export$d02631cccf789723)(1, numberOfMonths).map((n)=>{
|
|
1734
|
-
return /*#__PURE__*/ (0, $hgUW1$jsx)($
|
|
1725
|
+
return /*#__PURE__*/ (0, $hgUW1$jsx)($11e1beb2a56c81ba$var$CalendarGrid, {
|
|
1735
1726
|
color: color,
|
|
1736
1727
|
state: state,
|
|
1737
1728
|
offset: {
|
|
@@ -1743,7 +1734,7 @@ const $4085fc0afae085ee$export$e1aef45b828286de = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1743
1734
|
]
|
|
1744
1735
|
});
|
|
1745
1736
|
});
|
|
1746
|
-
function $
|
|
1737
|
+
function $11e1beb2a56c81ba$var$CalendarGrid({ state: state, offset: offset = {}, color: color, ...props }) {
|
|
1747
1738
|
const { locale: locale } = (0, $hgUW1$useLocale)();
|
|
1748
1739
|
const startDate = state.visibleRange.start.add(offset);
|
|
1749
1740
|
const endDate = (0, $hgUW1$endOfMonth)(startDate);
|
|
@@ -1764,8 +1755,8 @@ function $4085fc0afae085ee$var$CalendarGrid({ state: state, offset: offset = {},
|
|
|
1764
1755
|
className: "p-date-cell",
|
|
1765
1756
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6), {
|
|
1766
1757
|
size: "sm",
|
|
1767
|
-
variant: "
|
|
1768
|
-
weight: "
|
|
1758
|
+
variant: "light",
|
|
1759
|
+
weight: "regular",
|
|
1769
1760
|
children: day
|
|
1770
1761
|
})
|
|
1771
1762
|
})
|
|
@@ -1776,7 +1767,7 @@ function $4085fc0afae085ee$var$CalendarGrid({ state: state, offset: offset = {},
|
|
|
1776
1767
|
children: [
|
|
1777
1768
|
...new Array(weeksInMonth).keys()
|
|
1778
1769
|
].map((weekIndex)=>/*#__PURE__*/ (0, $hgUW1$jsx)("tr", {
|
|
1779
|
-
children: state.getDatesInWeek(weekIndex, startDate).map((date, index)=>date ? /*#__PURE__*/ (0, $hgUW1$jsx)($
|
|
1770
|
+
children: state.getDatesInWeek(weekIndex, startDate).map((date, index)=>date ? /*#__PURE__*/ (0, $hgUW1$jsx)($11e1beb2a56c81ba$var$CalendarCell, {
|
|
1780
1771
|
color: color,
|
|
1781
1772
|
state: state,
|
|
1782
1773
|
date: date,
|
|
@@ -1787,7 +1778,7 @@ function $4085fc0afae085ee$var$CalendarGrid({ state: state, offset: offset = {},
|
|
|
1787
1778
|
]
|
|
1788
1779
|
});
|
|
1789
1780
|
}
|
|
1790
|
-
function $
|
|
1781
|
+
function $11e1beb2a56c81ba$var$CalendarCell({ state: state, currentMonth: currentMonth, color: color, ...props }) {
|
|
1791
1782
|
const ref = $hgUW1$useRef(null);
|
|
1792
1783
|
const { cellProps: cellProps, buttonProps: buttonProps, isSelected: isSelected, isDisabled: isDisabled, isUnavailable: isUnavailable, formattedDate: formattedDate } = (0, $hgUW1$useCalendarCell)(props, state, ref);
|
|
1793
1784
|
const { focusProps: focusProps, isFocusVisible: isFocusVisible, isFocused: isFocused } = (0, $hgUW1$useFocusRing)();
|
|
@@ -1809,7 +1800,7 @@ function $4085fc0afae085ee$var$CalendarCell({ state: state, currentMonth: curren
|
|
|
1809
1800
|
})
|
|
1810
1801
|
});
|
|
1811
1802
|
}
|
|
1812
|
-
$
|
|
1803
|
+
$11e1beb2a56c81ba$export$e1aef45b828286de.displayName = "Calendar";
|
|
1813
1804
|
|
|
1814
1805
|
|
|
1815
1806
|
|
|
@@ -1820,45 +1811,30 @@ $4085fc0afae085ee$export$e1aef45b828286de.displayName = "Calendar";
|
|
|
1820
1811
|
|
|
1821
1812
|
|
|
1822
1813
|
|
|
1823
|
-
function $84a2cb1644756cd1$export$85930906f541ddb8(date) {
|
|
1824
|
-
return new (0, $hgUW1$CalendarDate)(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
1825
|
-
}
|
|
1826
1814
|
|
|
1827
1815
|
|
|
1828
1816
|
|
|
1829
|
-
|
|
1830
|
-
const $0ae77811ab456f1f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $hgUW1$forwardRef(({ appearance: appearance = "filled", size: size = "md", color: color, shape: shape, numberOfMonths: numberOfMonths, value: value, onChange: onChange, defaultValue: defaultValue, dropdownIcon: dropdownIcon = /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$HiOutlineCalendar), {
|
|
1817
|
+
const $48aceaf3289ec325$export$7edc06cf1783b30f = /*#__PURE__*/ $hgUW1$forwardRef(({ appearance: appearance = "outline", size: size = "md", color: color, numberOfMonths: numberOfMonths, radius: radius, dropdownIcon: dropdownIcon = /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$HiOutlineCalendar), {
|
|
1831
1818
|
size: 16
|
|
1832
|
-
}), ...props }, ref)=>{
|
|
1819
|
+
}), value: value, defaultValue: defaultValue, onChange: onChange, ...props }, ref)=>{
|
|
1833
1820
|
const space = (0, $41cc567ab0625f8f$export$450c36e0b0e62ccd)();
|
|
1834
|
-
function
|
|
1835
|
-
onChange?.(
|
|
1821
|
+
function proxyOnChange(date) {
|
|
1822
|
+
onChange?.(date.toString(), date);
|
|
1836
1823
|
}
|
|
1837
|
-
|
|
1838
|
-
const proxyDateValues = $hgUW1$useMemo(()=>{
|
|
1839
|
-
return {
|
|
1840
|
-
value: value ? (0, $84a2cb1644756cd1$export$85930906f541ddb8)(value) : undefined,
|
|
1841
|
-
defaultValue: defaultValue ? (0, $84a2cb1644756cd1$export$85930906f541ddb8)(defaultValue) : undefined
|
|
1842
|
-
};
|
|
1843
|
-
}, [
|
|
1844
|
-
value?.toString(),
|
|
1845
|
-
defaultValue?.toString()
|
|
1846
|
-
]);
|
|
1847
|
-
const newPropsWithProxies = {
|
|
1824
|
+
const newProps = {
|
|
1848
1825
|
...props,
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1826
|
+
value: value ? (0, $hgUW1$parseDate)(value) : undefined,
|
|
1827
|
+
defaultValue: defaultValue ? (0, $hgUW1$parseDate)(defaultValue) : undefined,
|
|
1828
|
+
onChange: proxyOnChange
|
|
1852
1829
|
};
|
|
1853
|
-
const state = (0, $hgUW1$useDatePickerState)(
|
|
1830
|
+
const state = (0, $hgUW1$useDatePickerState)(newProps);
|
|
1854
1831
|
const pickerRef = $hgUW1$useRef(null);
|
|
1855
|
-
const { groupProps: groupProps, calendarProps: calendarProps, fieldProps: fieldProps, buttonProps: buttonProps, errorMessageProps: errorMessageProps, labelProps: labelProps } = (0, $hgUW1$useDatePicker)(
|
|
1832
|
+
const { groupProps: groupProps, calendarProps: calendarProps, fieldProps: fieldProps, buttonProps: buttonProps, errorMessageProps: errorMessageProps, labelProps: labelProps } = (0, $hgUW1$useDatePicker)(newProps, state, pickerRef);
|
|
1833
|
+
const theme = (0, $5fc28f26e128d5c0$export$93d4e7f90805808f)();
|
|
1856
1834
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
1835
|
+
"data-radius": radius ?? theme?.radius ?? "lg",
|
|
1857
1836
|
"data-size": size,
|
|
1858
|
-
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)(
|
|
1859
|
-
[space.compactItemWrapperAdjust]: true,
|
|
1860
|
-
"p-input-group": true
|
|
1861
|
-
}),
|
|
1837
|
+
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust),
|
|
1862
1838
|
stretchX: true,
|
|
1863
1839
|
stack: true,
|
|
1864
1840
|
gap: "xs",
|
|
@@ -1875,11 +1851,7 @@ const $0ae77811ab456f1f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1875
1851
|
stack: true,
|
|
1876
1852
|
children: [
|
|
1877
1853
|
/*#__PURE__*/ (0, $hgUW1$jsxs)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
1878
|
-
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)(
|
|
1879
|
-
"date-picker-trigger": true,
|
|
1880
|
-
"p-input": true,
|
|
1881
|
-
...space.classNames
|
|
1882
|
-
}),
|
|
1854
|
+
className: (0, $cce662c1d2ec881b$export$a274e22fb40f762e)("p-input-control", "date-picker-trigger", space.classNames),
|
|
1883
1855
|
ref: pickerRef,
|
|
1884
1856
|
justify: "space-between",
|
|
1885
1857
|
align: "center",
|
|
@@ -1887,14 +1859,14 @@ const $0ae77811ab456f1f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1887
1859
|
"data-color": color,
|
|
1888
1860
|
...groupProps,
|
|
1889
1861
|
children: [
|
|
1890
|
-
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
1862
|
+
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $693c180b2c3a8d81$export$d9781c7894a82487), {
|
|
1891
1863
|
appearance: appearance,
|
|
1892
1864
|
size: size,
|
|
1893
1865
|
...fieldProps
|
|
1894
1866
|
}),
|
|
1895
1867
|
/*#__PURE__*/ (0, $hgUW1$jsx)((0, $e3f71af5eaf1c216$export$c25acd513dcc8062), {
|
|
1896
1868
|
size: "sm",
|
|
1897
|
-
variant: "
|
|
1869
|
+
variant: "light",
|
|
1898
1870
|
color: color,
|
|
1899
1871
|
...buttonProps,
|
|
1900
1872
|
children: dropdownIcon
|
|
@@ -1906,10 +1878,16 @@ const $0ae77811ab456f1f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1906
1878
|
state: state,
|
|
1907
1879
|
triggerRef: pickerRef,
|
|
1908
1880
|
placement: "bottom start",
|
|
1909
|
-
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1881
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e2f278d76a00796a$export$f51f4c4ede09e011), {
|
|
1882
|
+
style: {
|
|
1883
|
+
maxHeight: "auto"
|
|
1884
|
+
},
|
|
1885
|
+
"data-radius": radius ?? theme?.radius ?? "lg",
|
|
1886
|
+
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $11e1beb2a56c81ba$export$e1aef45b828286de), {
|
|
1887
|
+
color: color,
|
|
1888
|
+
...calendarProps,
|
|
1889
|
+
numberOfMonths: numberOfMonths
|
|
1890
|
+
})
|
|
1913
1891
|
})
|
|
1914
1892
|
})
|
|
1915
1893
|
]
|
|
@@ -1921,7 +1899,7 @@ const $0ae77811ab456f1f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $hgUW1$forwardRe
|
|
|
1921
1899
|
]
|
|
1922
1900
|
});
|
|
1923
1901
|
});
|
|
1924
|
-
$
|
|
1902
|
+
$48aceaf3289ec325$export$7edc06cf1783b30f.displayName = "DateInput";
|
|
1925
1903
|
|
|
1926
1904
|
|
|
1927
1905
|
|
|
@@ -2581,7 +2559,7 @@ function $4bad2c10a2b6e638$var$Dialog({ width: width = 400, title: title, onCanc
|
|
|
2581
2559
|
title && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6), {
|
|
2582
2560
|
weight: "medium",
|
|
2583
2561
|
size: "md",
|
|
2584
|
-
color: "
|
|
2562
|
+
color: "black",
|
|
2585
2563
|
...titleProps,
|
|
2586
2564
|
as: "div",
|
|
2587
2565
|
children: title
|
|
@@ -2596,6 +2574,7 @@ function $4bad2c10a2b6e638$var$Dialog({ width: width = 400, title: title, onCanc
|
|
|
2596
2574
|
]
|
|
2597
2575
|
}),
|
|
2598
2576
|
props.isDismissable && showCloseButton && /*#__PURE__*/ (0, $hgUW1$jsx)((0, $e3f71af5eaf1c216$export$c25acd513dcc8062), {
|
|
2577
|
+
color: "gray",
|
|
2599
2578
|
onPress: handleClose,
|
|
2600
2579
|
variant: "ghost",
|
|
2601
2580
|
size: "sm",
|
|
@@ -2839,5 +2818,5 @@ function $aca304249f917497$export$39299b56cfd4e361({ appearance: appearance = "o
|
|
|
2839
2818
|
|
|
2840
2819
|
|
|
2841
2820
|
|
|
2842
|
-
export {$ee0105641360f1c1$export$e71c4d32a2263218 as Box, $11bc53f9891a6532$export$ef2184bd89960b14 as Grid, $11bc53f9891a6532$export$9eb849b9b922d396 as GridItem, $e2f278d76a00796a$export$f51f4c4ede09e011 as Flex, $ef10b8551376ecd8$export$f5b8910cec6cf069 as Input, $2e89c7375b40283e$export$6bf0cd3a219bbade as NumberInput, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6 as Text, $7794de767effca39$export$379139ebc1c2b235 as Textarea, $d95a2216d3ccf702$export$353f5b6fc5456de1 as Button, $e3f71af5eaf1c216$export$c25acd513dcc8062 as IconButton, $9230e224c5c26d9c$export$69b1032f2ecdf404 as ButtonGroup, $0ca204e719955216$export$48513f6b9f8ce62d as Checkbox, $1ab2e355b7aa4310$export$4aa08d5625cb8ead as CheckboxGroup, $e00a258f2e8c7774$export$d7b12c4107be0d61 as Radio, $e00a258f2e8c7774$export$a98f0dcb43a68a25 as RadioGroup, $e3711da06539818f$export$f8afaea2e9656b91 as RadioCard, $9f79d30a629e2c71$export$ef9b1a59e592288f as Select, $
|
|
2821
|
+
export {$ee0105641360f1c1$export$e71c4d32a2263218 as Box, $11bc53f9891a6532$export$ef2184bd89960b14 as Grid, $11bc53f9891a6532$export$9eb849b9b922d396 as GridItem, $e2f278d76a00796a$export$f51f4c4ede09e011 as Flex, $ef10b8551376ecd8$export$f5b8910cec6cf069 as Input, $2e89c7375b40283e$export$6bf0cd3a219bbade as NumberInput, $3157c40f7d0e6fa2$export$5f1af8db9871e1d6 as Text, $7794de767effca39$export$379139ebc1c2b235 as Textarea, $d95a2216d3ccf702$export$353f5b6fc5456de1 as Button, $e3f71af5eaf1c216$export$c25acd513dcc8062 as IconButton, $9230e224c5c26d9c$export$69b1032f2ecdf404 as ButtonGroup, $0ca204e719955216$export$48513f6b9f8ce62d as Checkbox, $1ab2e355b7aa4310$export$4aa08d5625cb8ead as CheckboxGroup, $e00a258f2e8c7774$export$d7b12c4107be0d61 as Radio, $e00a258f2e8c7774$export$a98f0dcb43a68a25 as RadioGroup, $e3711da06539818f$export$f8afaea2e9656b91 as RadioCard, $9f79d30a629e2c71$export$ef9b1a59e592288f as Select, $48aceaf3289ec325$export$7edc06cf1783b30f as DateInput, $11e1beb2a56c81ba$export$e1aef45b828286de as Calendar, $55bcc0e5986993c4$export$e2255cf6045e8d47 as Avatar, $f9f5a5b674d0a63f$export$1a5cb5295a7d2749 as FileUploader, $1a0bc09c6bea5bcc$export$1ff3c3f08ae963c0 as Separator, $2cc726bf01dd2fe8$export$b25a304ec7d746bb as Progress, $e1148cdb3a130657$export$3b0d6d7590275603 as Loader, $28ce03a907630a4d$export$be92b6f5f03c0fe9 as Root, $28ce03a907630a4d$export$6d08773d2e66f8f2 as Item, $c700d45659d35204$export$3288d34c523a1192 as Tag, $fac55dfefd316398$export$b5d5cf8927ab7262 as Switch, $6a8317ccd5d3ba90$export$dbada5ace43900dd as ColorTray, $62ecff109eaa29fb$export$50e381fea3a45244 as IconTray, $6bbafdf52af7a191$export$ea98c603db73aee7 as Sticker, $96f9bd3439bf983b$export$1aaa3deaa90ea306 as Tabs, $18afd8c09c9f3065$export$54ec01a60f47d33d as Table, $727b3a4d9b39464f$export$e6a97ba2cae5bb94 as Timeline, $4bad2c10a2b6e638$export$2b77a92f1a5ad772 as Modal, $4bad2c10a2b6e638$export$33ffd74ebf07f060 as useModal, $41cc567ab0625f8f$export$eef1e68107c58ef2 as Space, $aca304249f917497$export$39299b56cfd4e361 as TagInput, $5fc28f26e128d5c0$export$d8964aec282183a3 as ThemeProvider, $5fc28f26e128d5c0$export$93d4e7f90805808f as useTheme};
|
|
2843
2822
|
//# sourceMappingURL=module.js.map
|