@northlight/ui 2.1.0 → 2.2.0
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/LICENSE +21 -0
- package/dist/es/northlight.d.mts +21 -6
- package/dist/es/northlight.mjs +59 -33
- package/dist/es/northlight.mjs.map +1 -1
- package/dist/ts/types.d.ts +21 -6
- package/dist/umd/northlight.js +66 -32
- package/dist/umd/northlight.js.map +1 -1
- package/dist/umd/northlight.min.js +3 -3
- package/dist/umd/northlight.min.js.map +1 -1
- package/package.json +3 -2
- package/CHANGELOG.md +0 -1609
package/dist/ts/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccordionProps, AccordionButtonProps, AccordionPanelProps, AccordionItemProps, AvatarProps as AvatarProps$1, AlertProps as AlertProps$1, AspectRatioProps, StackProps, BadgeProps, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, StackDirection, IconButtonProps as IconButtonProps$1, InputProps, FlexProps, BoxProps, TagProps as TagProps$1, IconProps as IconProps$1, SystemStyleObject, HeadingProps as HeadingProps$1, TextProps, FormLabelProps as FormLabelProps$1, Heading, Text, ModalProps as ModalProps$1, NumberInputProps as NumberInputProps$1, PinInputProps as PinInputProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SpinnerProps as SpinnerProps$1, SwitchProps as SwitchProps$1, TabsProps as TabsProps$1, TabPanelProps as TabPanelProps$1, TextareaProps as TextareaProps$1, UseToastOptions as UseToastOptions$1, FadeProps as FadeProps$1, ScaleFadeProps as ScaleFadeProps$1, SlideProps as SlideProps$1, SlideFadeProps as SlideFadeProps$1, CollapseProps as CollapseProps$1, TabListProps, TabProps, LinkProps, GridProps, GridItemProps, EditableProps as EditableProps$1 } from '@chakra-ui/react';
|
|
2
|
-
export { AbsoluteCenter, AccordionButtonProps, AccordionIcon, AccordionIconProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AlertDescription, AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertIcon, AlertTitle, AspectRatioProps, BadgeProps, Box, BoxProps, BreadcrumbItem as Breadcrumb, BreadcrumbLink, BreadcrumbSeparator, Breadcrumb as Breadcrumbs, ButtonGroup, Card, CardBody, CardFooter, CardHeader, Center, Modal as ChakraModal, CheckboxGroup, Circle, CircularProgress, CircularProgressLabel, CloseButton, Code, Container, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, Editable, EditableInput, EditablePreview, Flex, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, Heading, Highlight, Image, Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Kbd, Link, LinkOverlay, List, ListIcon, ListItem, Menu, MenuButton, MenuCommand, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, NumberDecrementStepper, NumberIncrementStepper, OrderedList, PinInputField, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RangeSlider, RangeSliderFilledTrack, RangeSliderMark, RangeSliderThumb, RangeSliderTrack, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, Slider, SliderFilledTrack, SliderMark, SliderThumb, SliderTrack, Spacer, Stack, StackDivider, Stat, StatArrow, StatGroup, StatHelpText, StatLabel, StatNumber, TabIndicator as StepIndicator, TabPanels as StepPanels, Tab, TabIndicator, TabList, TabPanels, Table, TableCaption, TableContainer, TagCloseButton, TagLabel, TagLeftIcon, TagRightIcon, Tbody, Td, Text, Tfoot, Th, Thead, Tooltip, Tr, UnorderedList, VStack, VisuallyHidden, VisuallyHiddenInput, Wrap, WrapItem, useBoolean, useBreakpoint, useBreakpointValue, useClipboard, useControllableProp, useControllableState, useDisclosure, useEditable, useEditableControls, useEditableState, useInterval, useMediaQuery, useMergeRefs, useNumberInput, useOutsideClick, usePrefersReducedMotion, useRadio, useRadioGroup, useTab, useTabs, useTheme, useToken } from '@chakra-ui/react';
|
|
2
|
+
export { AbsoluteCenter, AccordionButtonProps, AccordionIcon, AccordionIconProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AlertDescription, AlertDialog, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertIcon, AlertTitle, AspectRatioProps, BadgeProps, Box, BoxProps, BreadcrumbItem as Breadcrumb, BreadcrumbLink, BreadcrumbSeparator, Breadcrumb as Breadcrumbs, ButtonGroup, Card, CardBody, CardFooter, CardHeader, Center, Modal as ChakraModal, CheckboxGroup, Circle, CircularProgress, CircularProgressLabel, CloseButton, Code, Container, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, Editable, EditableInput, EditablePreview, Flex, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, Heading, Hide, Highlight, Image, Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, Kbd, Link, LinkOverlay, List, ListIcon, ListItem, Menu, MenuButton, MenuCommand, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, NumberDecrementStepper, NumberIncrementStepper, OrderedList, PinInputField, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, Portal, RangeSlider, RangeSliderFilledTrack, RangeSliderMark, RangeSliderThumb, RangeSliderTrack, Show, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, Slider, SliderFilledTrack, SliderMark, SliderThumb, SliderTrack, Spacer, Stack, StackDivider, Stat, StatArrow, StatGroup, StatHelpText, StatLabel, StatNumber, TabIndicator as StepIndicator, TabPanels as StepPanels, Tab, TabIndicator, TabList, TabPanels, Table, TableCaption, TableContainer, TagCloseButton, TagLabel, TagLeftIcon, TagRightIcon, Tbody, Td, Text, Tfoot, Th, Thead, Tooltip, Tr, UnorderedList, VStack, VisuallyHidden, VisuallyHiddenInput, Wrap, WrapItem, useBoolean, useBreakpoint, useBreakpointValue, useClipboard, useControllableProp, useControllableState, useDisclosure, useEditable, useEditableControls, useEditableState, useInterval, useMediaQuery, useMergeRefs, useNumberInput, useOutsideClick, usePrefersReducedMotion, useRadio, useRadioGroup, useTab, useTabs, useTheme, useToken } from '@chakra-ui/react';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ChangeEvent, ComponentType, InputHTMLAttributes, ReactNode, ReactElement } from 'react';
|
|
5
5
|
import { RegisterOptions, FieldValues, UseFormReturn as UseFormReturn$1, SetValueConfig, ControllerRenderProps, UseFormProps, FieldError, Merge, FieldErrorsImpl } from 'react-hook-form';
|
|
@@ -13,11 +13,11 @@ import { Props, GroupBase, ActionMeta, ChakraStylesConfig, SelectInstance, MenuL
|
|
|
13
13
|
export { AsyncCreatableSelect, AsyncSelect, Select as ChakraReactSelect, CreatableSelect } from 'chakra-react-select';
|
|
14
14
|
import { DndContextProps, UseDroppableArguments, UseDraggableArguments, UniqueIdentifier, CollisionDetection, SensorDescriptor, SensorOptions } from '@dnd-kit/core';
|
|
15
15
|
export * from '@dnd-kit/core';
|
|
16
|
-
export { useInterval as dndUseInterval } from '@dnd-kit/core';
|
|
17
16
|
import { UseSortableArguments, SortingStrategy, SortableContextProps } from '@dnd-kit/sortable';
|
|
18
17
|
export * from '@dnd-kit/sortable';
|
|
19
18
|
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
20
19
|
export * from '@dnd-kit/utilities';
|
|
20
|
+
export { useInterval as dndUseInterval } from '@dnd-kit/utilities';
|
|
21
21
|
export * from '@dnd-kit/modifiers';
|
|
22
22
|
import { VariableSizeListProps, VariableSizeList, VariableSizeGridProps, VariableSizeGrid } from 'react-window';
|
|
23
23
|
import * as _chakra_ui_system_dist_system_types from '@chakra-ui/system/dist/system.types';
|
|
@@ -654,6 +654,7 @@ interface DateRangePickerProps extends Omit<AriaDateRangePickerProps<DateValue>,
|
|
|
654
654
|
minValue?: string | undefined;
|
|
655
655
|
maxValue?: string | undefined;
|
|
656
656
|
fiscalStartMonth?: number;
|
|
657
|
+
fiscalStartDay?: number;
|
|
657
658
|
mode?: DatePickerMode;
|
|
658
659
|
}
|
|
659
660
|
interface DatePickerFieldProps extends Omit<InputProps, 'onChange'>, InputFieldProps {
|
|
@@ -668,6 +669,7 @@ interface DatePickerFieldProps extends Omit<InputProps, 'onChange'>, InputFieldP
|
|
|
668
669
|
onChange?: (date: DateValue) => void;
|
|
669
670
|
isClearable?: boolean;
|
|
670
671
|
fiscalStartMonth?: number;
|
|
672
|
+
fiscalStartDay?: number;
|
|
671
673
|
}
|
|
672
674
|
interface DateRangePickerFieldProps extends Omit<DatePickerFieldProps, 'onChange'> {
|
|
673
675
|
onChange?: (date: null | DateRange) => void;
|
|
@@ -752,17 +754,19 @@ declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
|
752
754
|
* ?)
|
|
753
755
|
*
|
|
754
756
|
* @example (Example)
|
|
755
|
-
*
|
|
757
|
+
* ## Sophisticated example
|
|
758
|
+
* The `DateRangePickerField` can have **fiscalStartMonth** and **fiscalStartDay** as a `number`
|
|
756
759
|
* (?
|
|
757
760
|
* <Form initialValues={{date: null}}>
|
|
758
761
|
* <DateRangePickerField
|
|
759
762
|
* name="date"
|
|
760
|
-
* mode="
|
|
763
|
+
* mode="advanced"
|
|
761
764
|
* variant="filled"
|
|
762
|
-
*
|
|
765
|
+
* fiscalStartMonth={3}
|
|
766
|
+
* fiscalStartDay={5}
|
|
763
767
|
* dateFormat="mm|dd-yyyy"
|
|
764
768
|
* minValue="2023-01-01"
|
|
765
|
-
* maxValue="
|
|
769
|
+
* maxValue="2028-01-01"
|
|
766
770
|
* />
|
|
767
771
|
* </Form>
|
|
768
772
|
* ?)
|
|
@@ -2464,6 +2468,17 @@ type SelectFieldProps<T> = Omit<SelectProps<T>, 'onChange'> & InputFieldProps &
|
|
|
2464
2468
|
* <Select
|
|
2465
2469
|
* options={[{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]}
|
|
2466
2470
|
* onChange={(value, action) => console.log('Selected:', value)}
|
|
2471
|
+
* isClearable={ true }
|
|
2472
|
+
* />
|
|
2473
|
+
* ?)
|
|
2474
|
+
*
|
|
2475
|
+
* @example (Example)
|
|
2476
|
+
* ## Clearable Select
|
|
2477
|
+
* (?
|
|
2478
|
+
* <Select
|
|
2479
|
+
* options={[{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]}
|
|
2480
|
+
* onChange={(value, action) => console.log('Selected:', value)}
|
|
2481
|
+
* isClearable={ true }
|
|
2467
2482
|
* />
|
|
2468
2483
|
* ?)
|
|
2469
2484
|
*
|
package/dist/umd/northlight.js
CHANGED
|
@@ -1584,9 +1584,9 @@
|
|
|
1584
1584
|
const handleChange = (val, event) => {
|
|
1585
1585
|
var _a;
|
|
1586
1586
|
onChange(val, event);
|
|
1587
|
-
if (!isMulti && !ramda.isNil(
|
|
1587
|
+
if (!isMulti && !ramda.isNil(val)) {
|
|
1588
1588
|
onAdd(val.value);
|
|
1589
|
-
} else if (val.length > items.current.length) {
|
|
1589
|
+
} else if (!ramda.isNil(val) && val.length > items.current.length) {
|
|
1590
1590
|
onAdd((_a = ramda.last(val)) == null ? void 0 : _a.value);
|
|
1591
1591
|
} else {
|
|
1592
1592
|
const removedItems = ramda.map(
|
|
@@ -3796,8 +3796,16 @@
|
|
|
3796
3796
|
children
|
|
3797
3797
|
)));
|
|
3798
3798
|
|
|
3799
|
-
const getQuickSelectOptions = (state, locale, fiscalStartMonth) => {
|
|
3799
|
+
const getQuickSelectOptions = (state, locale, fiscalStartMonth, fiscalStartDay) => {
|
|
3800
3800
|
const thisDay = date.today(state.timeZone);
|
|
3801
|
+
const startOfMonthWithDays = (date, { months, days }) => {
|
|
3802
|
+
const start = date.add({ months }).set({ day: days });
|
|
3803
|
+
return start;
|
|
3804
|
+
};
|
|
3805
|
+
const endOfMonthWithDays = (date, { months, days }) => {
|
|
3806
|
+
const end = date.add({ months }).set({ day: days }).subtract({ days: 1 });
|
|
3807
|
+
return end;
|
|
3808
|
+
};
|
|
3801
3809
|
const thisWeek = {
|
|
3802
3810
|
value: {
|
|
3803
3811
|
start: date.startOfWeek(thisDay, locale),
|
|
@@ -3870,66 +3878,78 @@
|
|
|
3870
3878
|
};
|
|
3871
3879
|
const thisFiscalYear = {
|
|
3872
3880
|
value: {
|
|
3873
|
-
start:
|
|
3874
|
-
date.startOfYear(thisDay)
|
|
3881
|
+
start: startOfMonthWithDays(
|
|
3882
|
+
date.startOfYear(thisDay),
|
|
3883
|
+
{ months: fiscalStartMonth, days: fiscalStartDay }
|
|
3875
3884
|
),
|
|
3876
|
-
end:
|
|
3877
|
-
date.startOfYear(thisDay)
|
|
3885
|
+
end: endOfMonthWithDays(
|
|
3886
|
+
date.startOfYear(thisDay),
|
|
3887
|
+
{ months: fiscalStartMonth + 11, days: fiscalStartDay }
|
|
3878
3888
|
)
|
|
3879
3889
|
},
|
|
3880
3890
|
label: "This Fiscal Year"
|
|
3881
3891
|
};
|
|
3882
3892
|
const lastFiscalYear = {
|
|
3883
3893
|
value: {
|
|
3884
|
-
start:
|
|
3885
|
-
date.startOfYear(thisDay).
|
|
3894
|
+
start: startOfMonthWithDays(
|
|
3895
|
+
date.startOfYear(thisDay).subtract({ years: 1 }),
|
|
3896
|
+
{ months: fiscalStartMonth, days: fiscalStartDay - 1 }
|
|
3886
3897
|
),
|
|
3887
|
-
end:
|
|
3888
|
-
date.startOfYear(thisDay).
|
|
3898
|
+
end: endOfMonthWithDays(
|
|
3899
|
+
date.startOfYear(thisDay).subtract({ years: 1 }),
|
|
3900
|
+
{ months: fiscalStartMonth + 11, days: fiscalStartDay }
|
|
3889
3901
|
)
|
|
3890
3902
|
},
|
|
3891
3903
|
label: "Last Fiscal Year"
|
|
3892
3904
|
};
|
|
3893
3905
|
const F1 = {
|
|
3894
3906
|
value: {
|
|
3895
|
-
start:
|
|
3896
|
-
date.startOfYear(thisDay)
|
|
3907
|
+
start: startOfMonthWithDays(
|
|
3908
|
+
date.startOfYear(thisDay),
|
|
3909
|
+
{ months: fiscalStartMonth, days: fiscalStartDay }
|
|
3897
3910
|
),
|
|
3898
|
-
end:
|
|
3899
|
-
date.startOfYear(thisDay)
|
|
3911
|
+
end: endOfMonthWithDays(
|
|
3912
|
+
date.startOfYear(thisDay),
|
|
3913
|
+
{ months: fiscalStartMonth + 2, days: fiscalStartDay }
|
|
3900
3914
|
)
|
|
3901
3915
|
},
|
|
3902
3916
|
label: fiscalStartMonth === 0 ? "Q1" : "FQ1"
|
|
3903
3917
|
};
|
|
3904
3918
|
const F2 = {
|
|
3905
3919
|
value: {
|
|
3906
|
-
start:
|
|
3907
|
-
date.startOfYear(thisDay)
|
|
3920
|
+
start: startOfMonthWithDays(
|
|
3921
|
+
date.startOfYear(thisDay),
|
|
3922
|
+
{ months: fiscalStartMonth + 3, days: fiscalStartDay }
|
|
3908
3923
|
),
|
|
3909
|
-
end:
|
|
3910
|
-
date.startOfYear(thisDay)
|
|
3924
|
+
end: endOfMonthWithDays(
|
|
3925
|
+
date.startOfYear(thisDay),
|
|
3926
|
+
{ months: fiscalStartMonth + 5, days: fiscalStartDay }
|
|
3911
3927
|
)
|
|
3912
3928
|
},
|
|
3913
3929
|
label: fiscalStartMonth === 0 ? "Q2" : "FQ2"
|
|
3914
3930
|
};
|
|
3915
3931
|
const F3 = {
|
|
3916
3932
|
value: {
|
|
3917
|
-
start:
|
|
3918
|
-
date.startOfYear(thisDay)
|
|
3933
|
+
start: startOfMonthWithDays(
|
|
3934
|
+
date.startOfYear(thisDay),
|
|
3935
|
+
{ months: fiscalStartMonth + 6, days: fiscalStartDay }
|
|
3919
3936
|
),
|
|
3920
|
-
end:
|
|
3921
|
-
date.startOfYear(thisDay)
|
|
3937
|
+
end: endOfMonthWithDays(
|
|
3938
|
+
date.startOfYear(thisDay),
|
|
3939
|
+
{ months: fiscalStartMonth + 8, days: fiscalStartDay }
|
|
3922
3940
|
)
|
|
3923
3941
|
},
|
|
3924
3942
|
label: fiscalStartMonth === 0 ? "Q3" : "FQ3"
|
|
3925
3943
|
};
|
|
3926
3944
|
const F4 = {
|
|
3927
3945
|
value: {
|
|
3928
|
-
start:
|
|
3929
|
-
date.startOfYear(thisDay)
|
|
3946
|
+
start: startOfMonthWithDays(
|
|
3947
|
+
date.startOfYear(thisDay),
|
|
3948
|
+
{ months: fiscalStartMonth + 9, days: fiscalStartDay }
|
|
3930
3949
|
),
|
|
3931
|
-
end:
|
|
3932
|
-
date.startOfYear(thisDay)
|
|
3950
|
+
end: endOfMonthWithDays(
|
|
3951
|
+
date.startOfYear(thisDay),
|
|
3952
|
+
{ months: fiscalStartMonth + 11, days: fiscalStartDay }
|
|
3933
3953
|
)
|
|
3934
3954
|
},
|
|
3935
3955
|
label: fiscalStartMonth === 0 ? "Q4" : "FQ4"
|
|
@@ -3956,12 +3976,13 @@
|
|
|
3956
3976
|
const QuickSelect = ({
|
|
3957
3977
|
state,
|
|
3958
3978
|
fiscalStartMonth = 0,
|
|
3979
|
+
fiscalStartDay = 0,
|
|
3959
3980
|
updateVisibleRange,
|
|
3960
3981
|
locale = "",
|
|
3961
3982
|
height = "xs"
|
|
3962
3983
|
}) => {
|
|
3963
3984
|
const { quickDates, fiscalQuarters } = React.useMemo(
|
|
3964
|
-
() => getQuickSelectOptions(state, locale, fiscalStartMonth),
|
|
3985
|
+
() => getQuickSelectOptions(state, locale, fiscalStartMonth, fiscalStartDay),
|
|
3965
3986
|
[]
|
|
3966
3987
|
);
|
|
3967
3988
|
const updateDate = (newDate) => () => {
|
|
@@ -4065,14 +4086,15 @@
|
|
|
4065
4086
|
state,
|
|
4066
4087
|
ref
|
|
4067
4088
|
);
|
|
4068
|
-
const { fiscalStartMonth, handleClose, resetDate, isClearable = true } = props;
|
|
4089
|
+
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4069
4090
|
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$1a({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4070
4091
|
QuickSelect,
|
|
4071
4092
|
{
|
|
4072
4093
|
state,
|
|
4073
4094
|
updateVisibleRange: () => setUpdateRange(true),
|
|
4074
4095
|
locale,
|
|
4075
|
-
fiscalStartMonth
|
|
4096
|
+
fiscalStartMonth,
|
|
4097
|
+
fiscalStartDay
|
|
4076
4098
|
}
|
|
4077
4099
|
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1a({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.Box, { w: "52" }, /* @__PURE__ */ React.createElement(Label$1, { textAlign: "center" }, months[state.visibleRange.start.month - 1], " -", " ", months[state.visibleRange.start.month], " ", state.visibleRange.end.year)), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1a({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "start", spacing: 4 }, /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(AdjustRange, { state, adjust: "start" })), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 1 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 1 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(
|
|
4078
4100
|
RangeCalendarGrid,
|
|
@@ -4117,7 +4139,7 @@
|
|
|
4117
4139
|
state,
|
|
4118
4140
|
ref
|
|
4119
4141
|
);
|
|
4120
|
-
const { fiscalStartMonth, handleClose, resetDate, isClearable = true } = props;
|
|
4142
|
+
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4121
4143
|
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$f(__spreadValues$19({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4122
4144
|
QuickSelect,
|
|
4123
4145
|
{
|
|
@@ -4126,6 +4148,7 @@
|
|
|
4126
4148
|
},
|
|
4127
4149
|
locale,
|
|
4128
4150
|
fiscalStartMonth,
|
|
4151
|
+
fiscalStartDay,
|
|
4129
4152
|
height: "72"
|
|
4130
4153
|
}
|
|
4131
4154
|
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$19({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.HStack, { w: "full", justify: "center" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$19({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.Stack, { h: "full", justify: "space-between" }, /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "end", pt: "2" }, isClearable && /* @__PURE__ */ React.createElement(Button$1, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button$1, { variant: "brand", onClick: handleClose, size: "sm" }, "Save")))))));
|
|
@@ -4165,6 +4188,7 @@
|
|
|
4165
4188
|
isInvalid = false,
|
|
4166
4189
|
dateFormat,
|
|
4167
4190
|
fiscalStartMonth,
|
|
4191
|
+
fiscalStartDay,
|
|
4168
4192
|
mode = "advanced",
|
|
4169
4193
|
variant = "outline",
|
|
4170
4194
|
onChange: onChangeCallback = ramda.identity,
|
|
@@ -4258,6 +4282,7 @@
|
|
|
4258
4282
|
resetDate,
|
|
4259
4283
|
handleClose,
|
|
4260
4284
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
4285
|
+
fiscalStartDay: fiscalStartDay || 0,
|
|
4261
4286
|
isClearable
|
|
4262
4287
|
})
|
|
4263
4288
|
), mode === "advanced" && /* @__PURE__ */ React.createElement(
|
|
@@ -4266,6 +4291,7 @@
|
|
|
4266
4291
|
resetDate,
|
|
4267
4292
|
handleClose,
|
|
4268
4293
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
4294
|
+
fiscalStartDay: fiscalStartDay || 0,
|
|
4269
4295
|
isClearable
|
|
4270
4296
|
})
|
|
4271
4297
|
)))
|
|
@@ -12173,6 +12199,10 @@
|
|
|
12173
12199
|
enumerable: true,
|
|
12174
12200
|
get: function () { return react.Heading; }
|
|
12175
12201
|
});
|
|
12202
|
+
Object.defineProperty(exports, 'Hide', {
|
|
12203
|
+
enumerable: true,
|
|
12204
|
+
get: function () { return react.Hide; }
|
|
12205
|
+
});
|
|
12176
12206
|
Object.defineProperty(exports, 'Highlight', {
|
|
12177
12207
|
enumerable: true,
|
|
12178
12208
|
get: function () { return react.Highlight; }
|
|
@@ -12369,6 +12399,10 @@
|
|
|
12369
12399
|
enumerable: true,
|
|
12370
12400
|
get: function () { return react.RangeSliderTrack; }
|
|
12371
12401
|
});
|
|
12402
|
+
Object.defineProperty(exports, 'Show', {
|
|
12403
|
+
enumerable: true,
|
|
12404
|
+
get: function () { return react.Show; }
|
|
12405
|
+
});
|
|
12372
12406
|
Object.defineProperty(exports, 'SimpleGrid', {
|
|
12373
12407
|
enumerable: true,
|
|
12374
12408
|
get: function () { return react.SimpleGrid; }
|
|
@@ -12679,7 +12713,7 @@
|
|
|
12679
12713
|
});
|
|
12680
12714
|
Object.defineProperty(exports, 'dndUseInterval', {
|
|
12681
12715
|
enumerable: true,
|
|
12682
|
-
get: function () { return
|
|
12716
|
+
get: function () { return utilities.useInterval; }
|
|
12683
12717
|
});
|
|
12684
12718
|
exports.Accordion = Accordion;
|
|
12685
12719
|
exports.AccordionButton = AccordionButton;
|