@commonsku/styles 1.14.2 → 1.14.6
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.d.ts +237 -14
- package/dist/index.es.js +766 -209
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +778 -207
- package/dist/index.js.map +1 -1
- package/dist/styles/AlertNotification.d.ts +13 -0
- package/dist/styles/AlertNotification.d.ts.map +1 -0
- package/dist/styles/Artwork.d.ts +1 -0
- package/dist/styles/Artwork.d.ts.map +1 -1
- package/dist/styles/Button.d.ts +2 -2
- package/dist/styles/Button.d.ts.map +1 -1
- package/dist/styles/CancelButton.d.ts.map +1 -1
- package/dist/styles/DoneButton.d.ts +11 -0
- package/dist/styles/DoneButton.d.ts.map +1 -0
- package/dist/styles/Dropdown.d.ts +3 -2
- package/dist/styles/Dropdown.d.ts.map +1 -1
- package/dist/styles/Img.d.ts.map +1 -1
- package/dist/styles/Input.d.ts +25 -5
- package/dist/styles/Input.d.ts.map +1 -1
- package/dist/styles/InputStepper.d.ts +16 -0
- package/dist/styles/InputStepper.d.ts.map +1 -0
- package/dist/styles/LightIndicator.d.ts.map +1 -1
- package/dist/styles/LinkWithIcon.d.ts +22 -0
- package/dist/styles/LinkWithIcon.d.ts.map +1 -0
- package/dist/styles/NumberInput.d.ts +54 -0
- package/dist/styles/NumberInput.d.ts.map +1 -0
- package/dist/styles/Task.d.ts.map +1 -1
- package/dist/styles/Theme.d.ts +4 -0
- package/dist/styles/Theme.d.ts.map +1 -1
- package/dist/styles/Toggle.d.ts +30 -1
- package/dist/styles/Toggle.d.ts.map +1 -1
- package/dist/styles/colors.d.ts +8 -0
- package/dist/styles/colors.d.ts.map +1 -1
- package/dist/styles/hooks/index.d.ts +1 -0
- package/dist/styles/hooks/index.d.ts.map +1 -1
- package/dist/styles/hooks/useLongPress.d.ts +8 -0
- package/dist/styles/hooks/useLongPress.d.ts.map +1 -0
- package/dist/styles/icons/CheckboxIcon.d.ts +12 -0
- package/dist/styles/icons/CheckboxIcon.d.ts.map +1 -0
- package/dist/styles/icons/CommentIcon.d.ts +28 -0
- package/dist/styles/icons/CommentIcon.d.ts.map +1 -0
- package/dist/styles/icons/CompletedCheckmarkIcon.d.ts +1 -1
- package/dist/styles/icons/CompletedCheckmarkIcon.d.ts.map +1 -1
- package/dist/styles/icons/EllipsisIcon.d.ts +6 -0
- package/dist/styles/icons/EllipsisIcon.d.ts.map +1 -0
- package/dist/styles/icons/RadioIcon.d.ts +5 -1
- package/dist/styles/icons/RadioIcon.d.ts.map +1 -1
- package/dist/styles/icons/SvgIcon.d.ts +2 -0
- package/dist/styles/icons/SvgIcon.d.ts.map +1 -1
- package/dist/styles/icons/index.d.ts +3 -0
- package/dist/styles/icons/index.d.ts.map +1 -1
- package/dist/styles/index.d.ts +7 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/tables/VirtualTable.d.ts +57 -0
- package/dist/styles/tables/VirtualTable.d.ts.map +1 -0
- package/dist/styles/tables/VirtualTableStyles.d.ts +11 -0
- package/dist/styles/tables/VirtualTableStyles.d.ts.map +1 -0
- package/dist/styles/tables/index.d.ts +2 -0
- package/dist/styles/tables/index.d.ts.map +1 -1
- package/dist/styles/tables/table-types.d.ts +19 -0
- package/dist/styles/tables/table-types.d.ts.map +1 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import BaseCreatableSelect, { Props as Props$2 } from 'react-select/creatable';
|
|
|
8
8
|
export { makeCreatableSelect } from 'react-select/creatable';
|
|
9
9
|
import BaseAsyncSelect, { Props as Props$1 } from 'react-select/async';
|
|
10
10
|
import BaseDatePicker, { ReactDatePickerProps } from 'react-datepicker';
|
|
11
|
-
import { Column, SortingRule } from 'react-table';
|
|
11
|
+
import { UseFiltersColumnProps, UseGroupByColumnProps, UseResizeColumnsColumnProps, UseSortByColumnProps, UseTableRowProps, UseExpandedRowProps, UseGroupByRowProps, UseRowSelectRowProps, UseRowStateRowProps, Column, SortingRule } from 'react-table';
|
|
12
12
|
import { ListOnScrollProps } from 'react-window';
|
|
13
13
|
|
|
14
14
|
declare type SharedStyleTypes = {
|
|
@@ -226,7 +226,7 @@ declare const sizes: {
|
|
|
226
226
|
};
|
|
227
227
|
declare type TSize$1 = keyof typeof sizes;
|
|
228
228
|
declare type ButtonPreset = 'edit' | 'delete' | 'add' | 'remove' | 'close';
|
|
229
|
-
declare type ButtonVariant = 'primary' | 'secondary' | 'cta' | 'error' | '
|
|
229
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'cta' | 'error' | 'disabled' | 'text' | 'primary-light';
|
|
230
230
|
declare type ButtonProps = {
|
|
231
231
|
secondary?: boolean;
|
|
232
232
|
cta?: boolean;
|
|
@@ -250,7 +250,7 @@ declare type IconButtonProps = React$1.PropsWithChildren<ButtonProps & {
|
|
|
250
250
|
iconProps?: {
|
|
251
251
|
[key: string]: any;
|
|
252
252
|
};
|
|
253
|
-
iconPosition?: 'left' | 'right' | 'top';
|
|
253
|
+
iconPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
254
254
|
preset?: ButtonPreset;
|
|
255
255
|
style?: React$1.CSSProperties;
|
|
256
256
|
}> & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -309,7 +309,11 @@ declare const LabeledIconInput: React$1.ForwardRefExoticComponent<React$1.InputH
|
|
|
309
309
|
labelOnTop?: boolean | undefined;
|
|
310
310
|
Icon: React$1.ReactElement;
|
|
311
311
|
iconPosition?: "left" | "right" | undefined;
|
|
312
|
+
iconLabelStyles?: React$1.CSSProperties | undefined;
|
|
312
313
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
314
|
+
declare const CheckboxLabel: StyledComponent<"label", any, {
|
|
315
|
+
disabled?: boolean | undefined;
|
|
316
|
+
}, never>;
|
|
313
317
|
declare const RadioLabel: StyledComponent<"label", any, {
|
|
314
318
|
disabled?: boolean | undefined;
|
|
315
319
|
}, never>;
|
|
@@ -328,10 +332,25 @@ declare const Dot: StyledComponent<"span", any, {
|
|
|
328
332
|
isHovering?: boolean | undefined;
|
|
329
333
|
disabled?: boolean | undefined;
|
|
330
334
|
} & SharedStyleTypes, never>;
|
|
331
|
-
declare
|
|
335
|
+
declare type LabeledRadioProps = RadioProps & {
|
|
332
336
|
label: string;
|
|
337
|
+
labelStyle?: React$1.CSSProperties;
|
|
338
|
+
radioIconStyle?: React$1.CSSProperties;
|
|
339
|
+
radioColor?: string;
|
|
340
|
+
radioHoverColor?: string;
|
|
341
|
+
};
|
|
342
|
+
declare const LabeledRadio: React$1.FC<LabeledRadioProps>;
|
|
343
|
+
declare const LabeledRadioInButton: React$1.FC<LabeledRadioProps & {
|
|
344
|
+
flexGrow?: boolean;
|
|
345
|
+
}>;
|
|
346
|
+
declare const LabeledRadioGroup: React$1.FC<LabeledRadioProps & {
|
|
347
|
+
name: string;
|
|
348
|
+
radios: [{
|
|
349
|
+
label: string;
|
|
350
|
+
value: any;
|
|
351
|
+
}];
|
|
333
352
|
}>;
|
|
334
|
-
declare const
|
|
353
|
+
declare const LabeledRadioInButtonGroup: React$1.FC<LabeledRadioProps & {
|
|
335
354
|
name: string;
|
|
336
355
|
radios: [{
|
|
337
356
|
label: string;
|
|
@@ -343,9 +362,10 @@ declare type LabeledCheckboxProps = {
|
|
|
343
362
|
disabled?: boolean;
|
|
344
363
|
label: string | React$1.ReactNode;
|
|
345
364
|
name?: string;
|
|
346
|
-
checkboxStyle?: CSSProperties;
|
|
347
365
|
labelStyle?: CSSProperties;
|
|
348
|
-
|
|
366
|
+
checkboxStyle?: React$1.CSSProperties;
|
|
367
|
+
checkboxColor?: string;
|
|
368
|
+
checkboxHoverColor?: string;
|
|
349
369
|
hoverByLabel?: boolean;
|
|
350
370
|
stopPropagation?: boolean;
|
|
351
371
|
[key: string]: any;
|
|
@@ -506,16 +526,44 @@ declare class Tabs extends Component<TabsProps, TabsState> {
|
|
|
506
526
|
render(): JSX.Element;
|
|
507
527
|
}
|
|
508
528
|
|
|
529
|
+
declare const toggleSizes: {
|
|
530
|
+
small: {
|
|
531
|
+
'font-family': string;
|
|
532
|
+
'font-size': string;
|
|
533
|
+
'line-height': string;
|
|
534
|
+
padding: string;
|
|
535
|
+
borderRadius: string;
|
|
536
|
+
height: string;
|
|
537
|
+
};
|
|
538
|
+
medium: {
|
|
539
|
+
'font-family': string;
|
|
540
|
+
'font-size': string;
|
|
541
|
+
'line-height': string;
|
|
542
|
+
padding: string;
|
|
543
|
+
borderRadius: string;
|
|
544
|
+
height: string;
|
|
545
|
+
};
|
|
546
|
+
large: {
|
|
547
|
+
'font-family': string;
|
|
548
|
+
'font-size': string;
|
|
549
|
+
'line-height': string;
|
|
550
|
+
padding: string;
|
|
551
|
+
borderRadius: string;
|
|
552
|
+
height: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
declare type ToggleSize = keyof typeof toggleSizes;
|
|
509
556
|
declare const ToggleLink: StyledComponent<"a", any, {
|
|
510
557
|
selected?: boolean | undefined;
|
|
511
558
|
stretch?: boolean | undefined;
|
|
559
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
512
560
|
} & SharedStyleTypes, never>;
|
|
513
561
|
declare type ToggleProps = React$1.PropsWithChildren<{
|
|
514
562
|
stretch?: boolean;
|
|
515
563
|
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
564
|
+
size?: ToggleSize;
|
|
516
565
|
} & SharedStyleTypes>;
|
|
517
|
-
declare const Toggle: (props: ToggleProps) => JSX.Element;
|
|
518
|
-
//# sourceMappingURL=Toggle.d.ts.map
|
|
566
|
+
declare const Toggle: ({ size, ...props }: ToggleProps) => JSX.Element;
|
|
519
567
|
|
|
520
568
|
declare type BaseTextareaProps = {
|
|
521
569
|
noMargin?: boolean;
|
|
@@ -560,6 +608,7 @@ declare type ArtworkProps = {
|
|
|
560
608
|
onEdit?: Function | VoidFunction;
|
|
561
609
|
onDelete?: Function | VoidFunction;
|
|
562
610
|
onSave?: Function | VoidFunction;
|
|
611
|
+
onError?: Function | VoidFunction;
|
|
563
612
|
onDownload?: Function | VoidFunction;
|
|
564
613
|
inputProps?: InputProps;
|
|
565
614
|
inputEl?: React$1.ReactNode;
|
|
@@ -669,10 +718,12 @@ declare const colors: {
|
|
|
669
718
|
'90': string;
|
|
670
719
|
main: string;
|
|
671
720
|
'main-hover': string;
|
|
721
|
+
mainHover: string;
|
|
672
722
|
light: string;
|
|
673
723
|
lightest: string;
|
|
674
724
|
dark: string;
|
|
675
725
|
'dark-hover': string;
|
|
726
|
+
darkHover: string;
|
|
676
727
|
darkest: string;
|
|
677
728
|
};
|
|
678
729
|
secondary1: {
|
|
@@ -754,10 +805,12 @@ declare const colors: {
|
|
|
754
805
|
'90': string;
|
|
755
806
|
main: string;
|
|
756
807
|
'main-hover': string;
|
|
808
|
+
mainHover: string;
|
|
757
809
|
light: string;
|
|
758
810
|
lightest: string;
|
|
759
811
|
dark: string;
|
|
760
812
|
'dark-hover': string;
|
|
813
|
+
darkHover: string;
|
|
761
814
|
darkest: string;
|
|
762
815
|
};
|
|
763
816
|
pink: {
|
|
@@ -1122,10 +1175,12 @@ declare const themeOptions: {
|
|
|
1122
1175
|
'90': string;
|
|
1123
1176
|
main: string;
|
|
1124
1177
|
'main-hover': string;
|
|
1178
|
+
mainHover: string;
|
|
1125
1179
|
light: string;
|
|
1126
1180
|
lightest: string;
|
|
1127
1181
|
dark: string;
|
|
1128
1182
|
'dark-hover': string;
|
|
1183
|
+
darkHover: string;
|
|
1129
1184
|
darkest: string;
|
|
1130
1185
|
};
|
|
1131
1186
|
secondary1: {
|
|
@@ -1207,10 +1262,12 @@ declare const themeOptions: {
|
|
|
1207
1262
|
'90': string;
|
|
1208
1263
|
main: string;
|
|
1209
1264
|
'main-hover': string;
|
|
1265
|
+
mainHover: string;
|
|
1210
1266
|
light: string;
|
|
1211
1267
|
lightest: string;
|
|
1212
1268
|
dark: string;
|
|
1213
1269
|
'dark-hover': string;
|
|
1270
|
+
darkHover: string;
|
|
1214
1271
|
darkest: string;
|
|
1215
1272
|
};
|
|
1216
1273
|
pink: {
|
|
@@ -1681,8 +1738,9 @@ declare type DropdownProps = {
|
|
|
1681
1738
|
mouseLeaveCallback?: any;
|
|
1682
1739
|
size?: TSize$1;
|
|
1683
1740
|
style?: CSSObject;
|
|
1741
|
+
buttonVariant?: ButtonVariant;
|
|
1684
1742
|
};
|
|
1685
|
-
declare const Dropdown: ({ items, children, underlined, primary, text, icon, openMenu, mouseLeaveCallback, size, style, ...props }: React$1.PropsWithChildren<DropdownProps & DropdownContentProps>) => JSX.Element;
|
|
1743
|
+
declare const Dropdown: ({ items, children, underlined, primary, text, icon, openMenu, mouseLeaveCallback, size, style, buttonVariant, ...props }: React$1.PropsWithChildren<DropdownProps & DropdownContentProps>) => JSX.Element;
|
|
1686
1744
|
|
|
1687
1745
|
declare const Badge: StyledComponent<"span", any, {
|
|
1688
1746
|
color?: string | undefined;
|
|
@@ -1908,6 +1966,7 @@ declare type BaseSVGIconProps = {
|
|
|
1908
1966
|
altText?: string;
|
|
1909
1967
|
pointer?: boolean;
|
|
1910
1968
|
iconSizes?: TIconSizeObj;
|
|
1969
|
+
disabled?: boolean;
|
|
1911
1970
|
} & SharedStyleTypes;
|
|
1912
1971
|
declare type SVGIconProps = React.SVGAttributes<SVGElement> & BaseSVGIconProps;
|
|
1913
1972
|
declare const SVG: StyledComponent<"svg", any, {
|
|
@@ -1948,6 +2007,7 @@ declare const SVG: StyledComponent<"svg", any, {
|
|
|
1948
2007
|
viewBox: string;
|
|
1949
2008
|
};
|
|
1950
2009
|
} | undefined;
|
|
2010
|
+
disabled?: boolean | undefined;
|
|
1951
2011
|
} & SharedStyleTypes, never>;
|
|
1952
2012
|
|
|
1953
2013
|
declare type LightIndicatorProps = {
|
|
@@ -1974,6 +2034,148 @@ declare type CancelButtonProps = {
|
|
|
1974
2034
|
} & SharedStyleTypes & SizerTypes;
|
|
1975
2035
|
declare function CancelButton({ size, variant, style, ...Props }: CancelButtonProps): JSX.Element;
|
|
1976
2036
|
|
|
2037
|
+
declare type DoneButtonProps = {
|
|
2038
|
+
size?: TSize$1;
|
|
2039
|
+
style?: React$1.CSSProperties;
|
|
2040
|
+
variant?: ButtonVariant;
|
|
2041
|
+
} & SharedStyleTypes & SizerTypes;
|
|
2042
|
+
declare function DoneButton({ size, variant, style, ...Props }: DoneButtonProps): JSX.Element;
|
|
2043
|
+
|
|
2044
|
+
declare type AlertNotificationProps = React$1.PropsWithChildren<{
|
|
2045
|
+
alertType?: "neutral" | "success" | "error";
|
|
2046
|
+
style?: React$1.CSSProperties;
|
|
2047
|
+
learnMore?: boolean;
|
|
2048
|
+
href?: string;
|
|
2049
|
+
linkText?: string;
|
|
2050
|
+
}> & SharedStyleTypes & SizerTypes;
|
|
2051
|
+
declare function AlertNotification({ alertType, learnMore, href, linkText, children, style, ...props }: AlertNotificationProps): JSX.Element;
|
|
2052
|
+
|
|
2053
|
+
declare type IconFuncProps$1 = {
|
|
2054
|
+
color: string;
|
|
2055
|
+
[key: string]: any;
|
|
2056
|
+
};
|
|
2057
|
+
declare type LinkWithIconProps = React$1.PropsWithChildren<{
|
|
2058
|
+
Icon?: TButtonIcon | React$1.ReactElement<IconFuncProps$1>;
|
|
2059
|
+
href?: string;
|
|
2060
|
+
color?: string;
|
|
2061
|
+
hoverColor?: string;
|
|
2062
|
+
flexShrink?: boolean;
|
|
2063
|
+
iconProps?: {
|
|
2064
|
+
[key: string]: any;
|
|
2065
|
+
};
|
|
2066
|
+
style?: React$1.CSSProperties;
|
|
2067
|
+
} & SharedStyleTypes & SizerTypes>;
|
|
2068
|
+
declare function LinkWithIcon({ Icon, href, children, color, hoverColor, flexShrink, iconProps, style, ...props }: LinkWithIconProps): JSX.Element;
|
|
2069
|
+
|
|
2070
|
+
declare type LocaleOptions = {
|
|
2071
|
+
maximumFractionDigits?: number;
|
|
2072
|
+
minimumSignificantDigits?: number;
|
|
2073
|
+
maximumSignificantDigits?: number;
|
|
2074
|
+
numberingSystem?: string;
|
|
2075
|
+
currencySign?: string;
|
|
2076
|
+
currency?: string;
|
|
2077
|
+
unit?: string;
|
|
2078
|
+
style?: 'decimal' | 'currency' | 'percent' | 'unit';
|
|
2079
|
+
unitDisplay?: 'long' | 'short' | 'narrow';
|
|
2080
|
+
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
|
|
2081
|
+
notation?: 'standard' | 'scientific' | 'engineering' | 'compact';
|
|
2082
|
+
signDisplay?: 'auto' | 'never' | 'always' | 'exceptZero';
|
|
2083
|
+
localeMatcher?: string;
|
|
2084
|
+
useGrouping?: boolean;
|
|
2085
|
+
minimumIntegerDigits?: number;
|
|
2086
|
+
minimumFractionDigits?: number;
|
|
2087
|
+
};
|
|
2088
|
+
declare type NumberInputProps = Omit<InputProps, 'onChange'> & {
|
|
2089
|
+
defaultValue?: string | number;
|
|
2090
|
+
label?: string;
|
|
2091
|
+
icon?: (props: object) => React$1.ReactElement;
|
|
2092
|
+
onClickIcon?: (value: string | number) => string | undefined | void;
|
|
2093
|
+
iconStyles?: {};
|
|
2094
|
+
labelStyle?: React$1.CSSProperties;
|
|
2095
|
+
onChange?: (value: number | string | null, action?: string) => void;
|
|
2096
|
+
localeOptions?: LocaleOptions;
|
|
2097
|
+
inputMode?: "none" | "text" | "numeric" | "decimal";
|
|
2098
|
+
};
|
|
2099
|
+
declare function NumberInput(props: NumberInputProps): JSX.Element;
|
|
2100
|
+
|
|
2101
|
+
declare type InputStepperProps = Omit<NumberInputProps, 'value'> & {
|
|
2102
|
+
min?: number;
|
|
2103
|
+
max?: number;
|
|
2104
|
+
initialValue?: number | string;
|
|
2105
|
+
width?: string;
|
|
2106
|
+
label?: string;
|
|
2107
|
+
labelStyle?: React$1.CSSProperties;
|
|
2108
|
+
inputDisabled?: boolean;
|
|
2109
|
+
};
|
|
2110
|
+
declare function InputStepper(props: InputStepperProps): JSX.Element;
|
|
2111
|
+
|
|
2112
|
+
interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>> extends UseFiltersColumnProps<D>, UseGroupByColumnProps<D>, UseResizeColumnsColumnProps<D>, UseSortByColumnProps<D> {
|
|
2113
|
+
}
|
|
2114
|
+
interface Row$1<D extends Record<string, unknown> = Record<string, unknown>> extends UseTableRowProps<D>, UseExpandedRowProps<D>, UseGroupByRowProps<D>, UseRowSelectRowProps<D>, UseRowStateRowProps<D> {
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
declare type VirtualTableProps = {
|
|
2118
|
+
columns: Column<object>[];
|
|
2119
|
+
data: object[];
|
|
2120
|
+
itemSize?: (value: {
|
|
2121
|
+
index: number;
|
|
2122
|
+
row: Row$1;
|
|
2123
|
+
}) => number;
|
|
2124
|
+
height?: number;
|
|
2125
|
+
minWidth?: number;
|
|
2126
|
+
maxWidth?: number;
|
|
2127
|
+
defaultSort?: SortingRule<string>;
|
|
2128
|
+
onClickRow?: (row?: object, index?: number) => void;
|
|
2129
|
+
onScroll?: ((props: ListOnScrollProps) => any);
|
|
2130
|
+
onUpdateData?: (...args: any) => void;
|
|
2131
|
+
useTableProps?: object;
|
|
2132
|
+
tableHeaderProps?: {
|
|
2133
|
+
className?: string;
|
|
2134
|
+
style?: React$1.CSSProperties;
|
|
2135
|
+
};
|
|
2136
|
+
tableFooterProps?: {
|
|
2137
|
+
className?: string;
|
|
2138
|
+
style?: React$1.CSSProperties;
|
|
2139
|
+
};
|
|
2140
|
+
TableFooter?: (props: React$1.PropsWithChildren<{
|
|
2141
|
+
[key: string]: any;
|
|
2142
|
+
}>) => React$1.ReactElement;
|
|
2143
|
+
customTableFooterProps?: object;
|
|
2144
|
+
className?: string;
|
|
2145
|
+
hideFooter?: boolean;
|
|
2146
|
+
hideHeader?: boolean;
|
|
2147
|
+
NoRowsFound?: (props: React$1.PropsWithChildren<{
|
|
2148
|
+
[key: string]: any;
|
|
2149
|
+
}>) => React$1.ReactElement;
|
|
2150
|
+
renderRowSubComponent?: (props: React$1.PropsWithChildren<{
|
|
2151
|
+
[key: string]: any;
|
|
2152
|
+
}>) => React$1.ReactElement;
|
|
2153
|
+
onSort?: (value: {
|
|
2154
|
+
column: ColumnInstance;
|
|
2155
|
+
}) => void;
|
|
2156
|
+
onResize?: VoidFunction;
|
|
2157
|
+
rowGroupStyles?: (value: {
|
|
2158
|
+
row: Row$1;
|
|
2159
|
+
style: React$1.CSSProperties;
|
|
2160
|
+
}) => React$1.CSSProperties;
|
|
2161
|
+
rowStyles?: (value: {
|
|
2162
|
+
row: Row$1;
|
|
2163
|
+
style: React$1.CSSProperties;
|
|
2164
|
+
}) => React$1.CSSProperties;
|
|
2165
|
+
gutterSize?: number;
|
|
2166
|
+
};
|
|
2167
|
+
declare const VirtualTable: (props: VirtualTableProps) => JSX.Element;
|
|
2168
|
+
|
|
2169
|
+
declare const VirtualTableStyles: StyledComponent<"div", any, {
|
|
2170
|
+
tableHeight?: string | number | undefined;
|
|
2171
|
+
bordered?: string | boolean | undefined;
|
|
2172
|
+
rowClickable?: boolean | undefined;
|
|
2173
|
+
hoverRowBg?: string | boolean | undefined;
|
|
2174
|
+
selectedRowIndex?: number | undefined;
|
|
2175
|
+
selectedRowStyle?: boolean | CSSObject | undefined;
|
|
2176
|
+
}, never>;
|
|
2177
|
+
//# sourceMappingURL=VirtualTableStyles.d.ts.map
|
|
2178
|
+
|
|
1977
2179
|
declare type TableIconProps = SVGIconProps;
|
|
1978
2180
|
declare function TableIcon({ color, size, altText, ...props }: TableIconProps): JSX.Element;
|
|
1979
2181
|
|
|
@@ -2132,7 +2334,7 @@ declare type AlertIconProps = SVGIconProps & {
|
|
|
2132
2334
|
declare function AlertIcon({ color, size, filled, altText, ...props }: AlertIconProps): JSX.Element;
|
|
2133
2335
|
|
|
2134
2336
|
declare type AddIconProps = SVGIconProps;
|
|
2135
|
-
declare function
|
|
2337
|
+
declare function CompletedCheckmarkIcon({ color, size, altText, ...props }: AddIconProps): JSX.Element;
|
|
2136
2338
|
|
|
2137
2339
|
declare type BulletIconProps = SVGIconProps;
|
|
2138
2340
|
declare function BulletIcon({ color, size, ...props }: BulletIconProps): JSX.Element;
|
|
@@ -2225,7 +2427,7 @@ declare type CheckmarkIconProps = SVGIconProps;
|
|
|
2225
2427
|
declare function CheckmarkIcon({ color, size, altText, ...props }: CheckmarkIconProps): JSX.Element;
|
|
2226
2428
|
|
|
2227
2429
|
declare type AddIconProps$1 = SVGIconProps;
|
|
2228
|
-
declare function AddIcon
|
|
2430
|
+
declare function AddIcon({ color, size, altText, ...props }: AddIconProps$1): JSX.Element;
|
|
2229
2431
|
|
|
2230
2432
|
declare type SubtractIconProps = SVGIconProps;
|
|
2231
2433
|
declare function SubtractIcon({ color, size, altText, ...props }: SubtractIconProps): JSX.Element;
|
|
@@ -2241,8 +2443,21 @@ declare function ClipboardIcon({ color, size, ...props }: ClipboardIconProps): J
|
|
|
2241
2443
|
|
|
2242
2444
|
declare type RadioIconProps = SVGIconProps & {
|
|
2243
2445
|
selected?: boolean;
|
|
2446
|
+
hover?: boolean;
|
|
2447
|
+
hoverColor?: string;
|
|
2448
|
+
disabled?: boolean;
|
|
2449
|
+
disabledColor?: string;
|
|
2450
|
+
};
|
|
2451
|
+
declare function RadioIcon({ color, hoverColor, disabledColor, size, hover, selected, disabled, altText, ...props }: RadioIconProps): JSX.Element;
|
|
2452
|
+
|
|
2453
|
+
declare type CheckboxIconProps = SVGIconProps & {
|
|
2454
|
+
selected?: boolean;
|
|
2455
|
+
hover?: boolean;
|
|
2456
|
+
hoverColor?: string;
|
|
2457
|
+
disabled?: boolean;
|
|
2458
|
+
disabledColor?: string;
|
|
2244
2459
|
};
|
|
2245
|
-
declare function
|
|
2460
|
+
declare function CheckboxIcon({ color, hoverColor, disabledColor, size, hover, selected, disabled, altText, ...props }: CheckboxIconProps): JSX.Element;
|
|
2246
2461
|
|
|
2247
2462
|
declare type EditIconProps = SVGIconProps & {
|
|
2248
2463
|
filled?: boolean;
|
|
@@ -2290,6 +2505,14 @@ declare function EyeIcon({ color, size, hide, altText, ...props }: EyeIconProps)
|
|
|
2290
2505
|
declare type MenuIconProps = SVGIconProps;
|
|
2291
2506
|
declare function MenuIcon({ color, size, altText, ...props }: MenuIconProps): JSX.Element;
|
|
2292
2507
|
|
|
2508
|
+
declare type CommentIconProps = {
|
|
2509
|
+
number?: number;
|
|
2510
|
+
} & SVGIconProps;
|
|
2511
|
+
declare function CommentIcon({ color, size, altText, number, ...props }: CommentIconProps): JSX.Element;
|
|
2512
|
+
|
|
2513
|
+
declare type EllipsisIconProps = SVGIconProps;
|
|
2514
|
+
declare function EllipsisIcon({ color, size, altText, ...props }: EllipsisIconProps): JSX.Element;
|
|
2515
|
+
|
|
2293
2516
|
declare const datepickerStyles = "\n.commonsku-styles-datepicker {\n &.react-datepicker-wrapper {\n width: 100%;\n }\n\n .react-datepicker__input-container {\n display: block;\n width: 100%;\n }\n\n .react-datepicker {\n border: 1px solid var(--color-primary1-60);\n outline: none;\n box-shadow: 1px 1px 0px var(--color-primary1-60),\n -1px -1px 0px var(--color-primary1-60),\n 1px -1px 0px var(--color-primary1-60),\n -1px 1px 0px var(--color-primary1-60);\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header,\n .react-datepicker__header {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .react-datepicker__header,\n .react-datepicker__today-button {\n background: var(--color-neutrals-20);\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .react-datepicker__header {\n border-bottom: none;\n }\n\n .react-datepicker__today-button {\n border-top: none;\n }\n\n .react-datepicker__day {\n outline: none;\n }\n\n .react-datepicker__day :not(\n .react-datepicker__day--outside-month,\n .react-datepicker__day--selected\n ) {\n color: var(--color-neutrals-90);\n }\n\n .react-datepicker__day:hover :not(.react-datepicker__day--selected),\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n background-color: var(--color-neutrals-20);\n }\n\n .react-datepicker__day--outside-month {\n color: var(--color-neutrals-70);\n }\n\n .react-datepicker__day--weekend {\n color: var(--color-errors-main);\n }\n\n .react-datepicker__day--selected,\n .react-datepicker__day--keyboard-selected,\n .react-datepicker__month-text--keyboard-selected,\n .react-datepicker__quarter-text--keyboard-selected,\n .react-datepicker__year-text--keyboard-selected\n {\n background-color: var(--color-primary1-60);\n color: #fff;\n }\n\n .react-datepicker__triangle {\n border-bottom-color: var(--color-neutrals-20) !important;\n }\n\n .react-datepicker__triangle::before {\n border-bottom-color: var(--color-primary1-60) !important;\n border-top-color: var(--color-primary1-60) !important;\n }\n\n .react-datepicker__month-select,\n .react-datepicker__year-select {\n height: 30px;\n border: 2px solid var(--color-primary1-60);\n padding: 3px;\n border-radius: 5px;\n outline: none;\n }\n\n .react-datepicker__navigation {\n border: 0.45rem solid transparent;\n\n &.react-datepicker__navigation--next {\n border-left: 7px solid var(--color-primary1-60);\n margin-top: 8px;\n }\n \n &.react-datepicker__navigation--previous {\n border-right: 7px solid var(--color-primary1-60);\n margin-top: 8px;\n }\n }\n}\n";
|
|
2294
2517
|
//# sourceMappingURL=datepickerStyles.d.ts.map
|
|
2295
2518
|
|
|
@@ -2577,4 +2800,4 @@ declare type SimpleWindowedTableProps = {
|
|
|
2577
2800
|
};
|
|
2578
2801
|
declare function SimpleWindowedTable({ columns, data, itemSize, height, minWidth, maxWidth, defaultSort, onClickRow, onScroll, onUpdateData, useTableProps, tableHeaderProps, tableFooterProps, hideFooter, className, NoRowsFound, }: SimpleWindowedTableProps): JSX.Element;
|
|
2579
2802
|
|
|
2580
|
-
export { AddIcon
|
|
2803
|
+
export { AddIcon, AddNoteIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, ArtworkProps, SKUAsyncSelect as AsyncSelect, Avatar, AvatarColor, AvatarShape, AvatarSize, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonPreset, ButtonVariant, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarTaskProps, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, ColPropTypes, CollapseStyled, CollapseStyledProps, CollapseWrapper, CollapseWrapperProps, Collapsible, CollapsiblePanel, CollapsiblePanelProps, CollapsiblePanelTitle, CollapsiblePanelTitleProps, CollapsiblePanels, CollapsiblePanelsProps, CollapsibleProps, ColumnSelectIcon, CommentIcon, CompletedCheckmarkIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CustomDateInput, Datepicker, DatepickerPorps, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DownloadIcon, DraggableTasksCalendar, DropArea, DropAreaProps, DropDownContent, Dropdown, DropdownItem, DropdownProps, DropzoneTypes, Dropzoned, DropzonedPreviews, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridIcon, H1, H2, H3, H4, H5, H6, HeaderWrapper, HeadlessTable, IconButton, IconButtonProps, IconDoc, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputProps, InputStepper, IntegrationsIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCheckboxProps, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledRadioProps, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number, NumberInput, OpportunityCircleIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PopupProps, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, RadioProps, ReceiptLongIcon, ResponsiveTable, Row, RowPropTypes, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyleTypes, SharedStyles, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableProps, SimpleWindowedTableStyles, SizerCss, SizerTypes, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TButtonIcon, TD, TDropdownItem, TH, THSorted, THead, TR, TSize$1 as TSize, TSizeOffset, TSizeOffsetRight, TSizeStyle, TTab, Tab, TabBar, Table, TableIcon, Tabs, TabsProps, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TaskProps, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, TextProp, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, sizes, themeOptions, toggleSizes };
|