@commonsku/styles 1.17.30 → 1.17.32
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles/DateRangeDropdown.d.ts +2 -1
- package/dist/styles/DateRangeDropdown.d.ts.map +1 -1
- package/dist/styles/DateRangePicker.d.ts +4 -2
- package/dist/styles/DateRangePicker.d.ts.map +1 -1
- package/dist/styles/ProductCard.d.ts +1 -0
- package/dist/styles/ProductCard.d.ts.map +1 -1
- package/dist/styles/icons/SkubotLogo.d.ts +2 -7
- package/dist/styles/icons/SkubotLogo.d.ts.map +1 -1
- package/dist/styles/icons/SkubotSpinner.d.ts.map +1 -1
- package/dist/styles/tables/SelectionTable.d.ts.map +1 -1
- package/dist/styles/tables/VirtualTable.d.ts +1 -0
- package/dist/styles/tables/VirtualTable.d.ts.map +1 -1
- package/dist/styles/tables/types.d.ts +1 -0
- package/dist/styles/tables/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -868,6 +868,7 @@ declare const Product: (props: {
|
|
|
868
868
|
type ProductCardProps = React__default.PropsWithChildren<{
|
|
869
869
|
handleClick?: () => void;
|
|
870
870
|
selected: boolean;
|
|
871
|
+
loading?: boolean;
|
|
871
872
|
imgUrl: string;
|
|
872
873
|
title: string;
|
|
873
874
|
sku?: string;
|
|
@@ -2487,6 +2488,7 @@ type VirtualTableProps<RowType extends Record<string, unknown>, TableProps, Tabl
|
|
|
2487
2488
|
}) => React__default.CSSProperties;
|
|
2488
2489
|
gutterSize?: number;
|
|
2489
2490
|
onSortChange?: (sortState: UseSortByState<RowType>) => void;
|
|
2491
|
+
disableResizing?: boolean;
|
|
2490
2492
|
};
|
|
2491
2493
|
declare const VirtualTable: <RowType extends Record<string, unknown>, TableProps, TableFooterProps>(props: VirtualTableProps<RowType, TableProps, TableFooterProps>) => React__default.JSX.Element;
|
|
2492
2494
|
|
|
@@ -2519,14 +2521,16 @@ interface DateRangePreset {
|
|
|
2519
2521
|
type DateRangePickerProps = Omit<DatepickerProps, 'value' | 'onChange' | 'dateFormat'> & {
|
|
2520
2522
|
range: DateRange;
|
|
2521
2523
|
dateFormat?: string;
|
|
2522
|
-
onChange?: (range: DateRange, event?: SyntheticEvent<any
|
|
2524
|
+
onChange?: (range: DateRange, event?: SyntheticEvent<any>, closeDropdown?: boolean) => void;
|
|
2523
2525
|
presets?: DateRangePreset[];
|
|
2526
|
+
initialActiveTab?: 'custom' | 'preset';
|
|
2524
2527
|
};
|
|
2525
2528
|
declare const DateRangePicker: React__default.ForwardRefExoticComponent<Omit<DatepickerProps, "value" | "dateFormat" | "onChange"> & {
|
|
2526
2529
|
range: DateRange;
|
|
2527
2530
|
dateFormat?: string | undefined;
|
|
2528
|
-
onChange?: ((range: DateRange, event?: SyntheticEvent<any
|
|
2531
|
+
onChange?: ((range: DateRange, event?: SyntheticEvent<any>, closeDropdown?: boolean) => void) | undefined;
|
|
2529
2532
|
presets?: DateRangePreset[] | undefined;
|
|
2533
|
+
initialActiveTab?: "custom" | "preset" | undefined;
|
|
2530
2534
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2531
2535
|
|
|
2532
2536
|
interface DateRangeInputProps extends Omit<InputProps, "onChange"> {
|
|
@@ -2534,8 +2538,9 @@ interface DateRangeInputProps extends Omit<InputProps, "onChange"> {
|
|
|
2534
2538
|
selected: DateRange;
|
|
2535
2539
|
dateFormat: string;
|
|
2536
2540
|
onInputSelect: () => void;
|
|
2541
|
+
onClear?: () => void;
|
|
2537
2542
|
}
|
|
2538
|
-
declare const DateRangeInput: ({ value, error, noMargin, onClick, isClearable, selected, dateFormat, onInputSelect, ...props }: DateRangeInputProps) => React__default.JSX.Element;
|
|
2543
|
+
declare const DateRangeInput: ({ value, error, noMargin, onClick, isClearable, selected, dateFormat, onInputSelect, onClear, ...props }: DateRangeInputProps) => React__default.JSX.Element;
|
|
2539
2544
|
interface DateRangeDropdownProps extends DateRangePickerProps {
|
|
2540
2545
|
dateText?: string;
|
|
2541
2546
|
}
|
|
@@ -2827,12 +2832,8 @@ type CommonskuMainLogoProps = {
|
|
|
2827
2832
|
declare function CommonskuMainLogo({ color, size, altText, width, ...props }: CommonskuMainLogoProps): React__default.JSX.Element;
|
|
2828
2833
|
|
|
2829
2834
|
type SkubotLogoProps = {
|
|
2830
|
-
size?: TIconSize;
|
|
2831
|
-
width?: string | number;
|
|
2832
|
-
height?: string | number;
|
|
2833
|
-
altText?: string;
|
|
2834
2835
|
color?: string | undefined;
|
|
2835
|
-
} &
|
|
2836
|
+
} & SVGIconProps;
|
|
2836
2837
|
declare function SkubotLogo({ color, width, height, altText, ...props }: SkubotLogoProps): React__default.JSX.Element;
|
|
2837
2838
|
|
|
2838
2839
|
type SalesArrowIconDirection = 'up' | 'down';
|