@northlight/ui 2.33.2 → 2.33.4
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/es/northlight.d.ts +5 -14
- package/dist/es/northlight.js +1 -1
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +1 -1
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/es/northlight.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ import * as _chakra_ui_layout_dist_stack_stack_utils from '@chakra-ui/layout/dis
|
|
|
27
27
|
import * as _chakra_ui_radio_dist_radio_group from '@chakra-ui/radio/dist/radio-group';
|
|
28
28
|
import * as react_select from 'react-select';
|
|
29
29
|
import * as react_select_dist_declarations_src_types from 'react-select/dist/declarations/src/types';
|
|
30
|
-
import * as _chakra_ui_switch_dist_switch from '@chakra-ui/switch/dist/switch';
|
|
31
30
|
import * as _chakra_ui_textarea_dist_textarea from '@chakra-ui/textarea/dist/textarea';
|
|
32
31
|
import { Props as Props$1 } from 'react-input-mask';
|
|
33
32
|
import { NumericFormatProps, NumberFormatValues, SourceInfo } from 'react-number-format';
|
|
@@ -2926,11 +2925,11 @@ type SpinnerProps = SpinnerProps$1;
|
|
|
2926
2925
|
*/
|
|
2927
2926
|
declare const Spinner: ({ ...rest }: SpinnerProps) => JSX.Element;
|
|
2928
2927
|
|
|
2929
|
-
|
|
2928
|
+
interface SwitchProps extends Omit<SwitchProps$1, 'value'> {
|
|
2930
2929
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
2931
2930
|
value?: boolean;
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2931
|
+
}
|
|
2932
|
+
interface SwitchFieldProps extends SwitchProps$1 {
|
|
2934
2933
|
name: string;
|
|
2935
2934
|
label: string;
|
|
2936
2935
|
validate?: RegisterOptions;
|
|
@@ -2938,7 +2937,7 @@ type SwitchFieldProps = SwitchProps$1 & {
|
|
|
2938
2937
|
direction?: StackDirection;
|
|
2939
2938
|
labelPlacement?: 'left' | 'right';
|
|
2940
2939
|
labelSize?: '2xs' | 'xs' | 'md' | 'lg';
|
|
2941
|
-
}
|
|
2940
|
+
}
|
|
2942
2941
|
|
|
2943
2942
|
/**
|
|
2944
2943
|
* @see SwitchField
|
|
@@ -2986,15 +2985,7 @@ declare const Switch: ({ value, onChange, name, size, ...rest }: SwitchProps) =>
|
|
|
2986
2985
|
* ?)
|
|
2987
2986
|
*
|
|
2988
2987
|
*/
|
|
2989
|
-
declare const SwitchField: (props:
|
|
2990
|
-
name: string;
|
|
2991
|
-
label: string;
|
|
2992
|
-
validate?: react_hook_form.RegisterOptions | undefined;
|
|
2993
|
-
isRequired?: boolean | undefined;
|
|
2994
|
-
direction?: _chakra_ui_layout_dist_stack_stack_utils.StackDirection | undefined;
|
|
2995
|
-
labelPlacement?: "right" | "left" | undefined;
|
|
2996
|
-
labelSize?: "md" | "lg" | "2xs" | "xs" | undefined;
|
|
2997
|
-
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
2988
|
+
declare const SwitchField: (props: SwitchFieldProps & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
2998
2989
|
|
|
2999
2990
|
interface TableProps extends Omit<TableProps$1, 'variant'> {
|
|
3000
2991
|
variant?: TableProps$1['variant'] | 'rounded';
|
package/dist/es/northlight.js
CHANGED
|
@@ -7170,7 +7170,7 @@ const getQuickSelectOptions = (state, locale, fiscalStartMonth, fiscalStartDay)
|
|
|
7170
7170
|
},
|
|
7171
7171
|
label: "Next Year"
|
|
7172
7172
|
};
|
|
7173
|
-
const offsetFiscalYear = thisDay.month < fiscalStartMonth || thisDay.month === fiscalStartMonth && thisDay.day < fiscalStartDay ? 1 : 0;
|
|
7173
|
+
const offsetFiscalYear = thisDay.month < fiscalStartMonth + 1 || thisDay.month === fiscalStartMonth + 1 && thisDay.day < fiscalStartDay ? 1 : 0;
|
|
7174
7174
|
const thisFiscalYear = {
|
|
7175
7175
|
value: {
|
|
7176
7176
|
start: startOfMonthWithDays(
|