@commonsku/styles 1.16.10 → 1.16.12
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 +71 -3
- package/dist/index.es.js +223 -43
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +228 -42
- package/dist/index.js.map +1 -1
- package/dist/styles/ConfirmAlertPopup.d.ts +14 -0
- package/dist/styles/ConfirmAlertPopup.d.ts.map +1 -0
- package/dist/styles/Csku.d.ts +1 -0
- package/dist/styles/Csku.d.ts.map +1 -1
- package/dist/styles/DropArea.d.ts +4 -0
- package/dist/styles/DropArea.d.ts.map +1 -1
- package/dist/styles/Popup.d.ts +4 -0
- package/dist/styles/Popup.d.ts.map +1 -1
- package/dist/styles/ToggleSwitch.d.ts +47 -0
- package/dist/styles/ToggleSwitch.d.ts.map +1 -0
- package/dist/styles/icons/ImageIcon.d.ts +6 -0
- package/dist/styles/icons/ImageIcon.d.ts.map +1 -0
- package/dist/styles/icons/index.d.ts +1 -0
- package/dist/styles/icons/index.d.ts.map +1 -1
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -139,7 +139,11 @@ declare type DropzoneTypes = {
|
|
|
139
139
|
showDroppedFiles?: boolean;
|
|
140
140
|
} & DropzoneOptions;
|
|
141
141
|
declare function Dropzoned({ placeholder, accept, showDroppedFiles, ...props }: DropzoneTypes): JSX.Element;
|
|
142
|
-
declare function DropzonedPreviews({ placeholder, accept, onDrop, ...props }: DropzoneTypes): JSX.Element;
|
|
142
|
+
declare function DropzonedPreviews({ placeholder, accept, onDrop, ...props }: DropzoneTypes): JSX.Element;
|
|
143
|
+
declare type DropzoneSimpleProps = {
|
|
144
|
+
children: React$1.ReactElement;
|
|
145
|
+
} & DropzoneOptions;
|
|
146
|
+
declare function DropzonedSimple({ accept, children, ...props }: DropzoneSimpleProps): React$1.ReactElement<any, string | React$1.JSXElementConstructor<any>> | null;
|
|
143
147
|
|
|
144
148
|
declare type TSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
145
149
|
|
|
@@ -1397,6 +1401,7 @@ declare type PopupProps = React$1.PropsWithChildren<{
|
|
|
1397
1401
|
overlayZIndex?: number;
|
|
1398
1402
|
popupClassName?: string;
|
|
1399
1403
|
contentClassName?: string;
|
|
1404
|
+
PopupWindowComponent?: React$1.ComponentType<React$1.ComponentPropsWithRef<any>>;
|
|
1400
1405
|
} & SharedStyleTypes> & React$1.HTMLAttributes<HTMLDivElement>;
|
|
1401
1406
|
declare const Popup: React$1.ForwardRefExoticComponent<{
|
|
1402
1407
|
header?: React$1.Component<{}, {}, any> | undefined;
|
|
@@ -1414,6 +1419,7 @@ declare const Popup: React$1.ForwardRefExoticComponent<{
|
|
|
1414
1419
|
overlayZIndex?: number | undefined;
|
|
1415
1420
|
popupClassName?: string | undefined;
|
|
1416
1421
|
contentClassName?: string | undefined;
|
|
1422
|
+
PopupWindowComponent?: React$1.ComponentType<any> | undefined;
|
|
1417
1423
|
} & SharedStyleTypes & {
|
|
1418
1424
|
children?: React$1.ReactNode;
|
|
1419
1425
|
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1423,7 +1429,9 @@ declare const ShowPopup: React$1.FC<Omit<PopupProps, 'onClose'> & {
|
|
|
1423
1429
|
render?: React$1.FC<{
|
|
1424
1430
|
onClick: () => void;
|
|
1425
1431
|
}>;
|
|
1426
|
-
}>;
|
|
1432
|
+
}>;
|
|
1433
|
+
declare type ChevronPopupProps = Omit<PopupProps, 'PopupWindowComponent'>;
|
|
1434
|
+
declare const ChevronPopup: (props: ChevronPopupProps) => JSX.Element;
|
|
1427
1435
|
|
|
1428
1436
|
declare const TaskLabel: StyledComponent<"div", any, {
|
|
1429
1437
|
hasCheckbox?: boolean | undefined;
|
|
@@ -2919,6 +2927,7 @@ declare type ResponsiveValue<T = string | number> = T | Array<T | null> | {
|
|
|
2919
2927
|
|
|
2920
2928
|
declare const createMeasurementStyle: (v: string | number, keys: string[]) => {};
|
|
2921
2929
|
declare type BaseCskuProps = {
|
|
2930
|
+
forceStyles?: boolean;
|
|
2922
2931
|
pr?: ResponsiveValue<string | number>;
|
|
2923
2932
|
pl?: ResponsiveValue<string | number>;
|
|
2924
2933
|
pt?: ResponsiveValue<string | number>;
|
|
@@ -3396,6 +3405,9 @@ declare type DoubleArrowIconProps = SVGIconProps & {
|
|
|
3396
3405
|
};
|
|
3397
3406
|
declare function DoubleArrowIcon({ color, direction, size, altText, ...props }: DoubleArrowIconProps): JSX.Element;
|
|
3398
3407
|
|
|
3408
|
+
declare type ImageIcon = SVGIconProps;
|
|
3409
|
+
declare function ImageIcon(props: ImageIcon): JSX.Element;
|
|
3410
|
+
|
|
3399
3411
|
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";
|
|
3400
3412
|
//# sourceMappingURL=datepickerStyles.d.ts.map
|
|
3401
3413
|
|
|
@@ -3407,6 +3419,18 @@ declare type ConfirmPopupProps = {
|
|
|
3407
3419
|
};
|
|
3408
3420
|
declare const ConfirmPopup: (props: ConfirmPopupProps) => JSX.Element;
|
|
3409
3421
|
|
|
3422
|
+
declare type ConfirmAlertPopupProps = React$1.PropsWithChildren<{
|
|
3423
|
+
padding?: string;
|
|
3424
|
+
maxWidth: string | number;
|
|
3425
|
+
title?: React$1.ReactNode;
|
|
3426
|
+
disableActionButton?: boolean;
|
|
3427
|
+
cancelButtonContent?: React$1.ReactNode;
|
|
3428
|
+
actionButtonContent?: React$1.ReactNode;
|
|
3429
|
+
onAction?: () => void;
|
|
3430
|
+
onClose?: () => void;
|
|
3431
|
+
}>;
|
|
3432
|
+
declare const ConfirmAlertPopup: (props: ConfirmAlertPopupProps) => JSX.Element;
|
|
3433
|
+
|
|
3410
3434
|
declare type CalendarDayBodyProps = React$1.PropsWithChildren<{
|
|
3411
3435
|
day: Date;
|
|
3412
3436
|
selectedDate: Date;
|
|
@@ -3739,4 +3763,48 @@ declare const useClickOutside: <T extends HTMLElement = HTMLElement>(props: {
|
|
|
3739
3763
|
declare const useFallbackRef: <T>(forwardedRef: ForwardedRef<T>) => MutableRefObject<T | null>;
|
|
3740
3764
|
//# sourceMappingURL=useFallbackRef.d.ts.map
|
|
3741
3765
|
|
|
3742
|
-
|
|
3766
|
+
declare const toggleSizes$1: {
|
|
3767
|
+
small: {
|
|
3768
|
+
'font-family': string;
|
|
3769
|
+
'font-size': string;
|
|
3770
|
+
'line-height': string;
|
|
3771
|
+
padding: string;
|
|
3772
|
+
borderRadius: string;
|
|
3773
|
+
height: string;
|
|
3774
|
+
};
|
|
3775
|
+
medium: {
|
|
3776
|
+
'font-family': string;
|
|
3777
|
+
'font-size': string;
|
|
3778
|
+
'line-height': string;
|
|
3779
|
+
padding: string;
|
|
3780
|
+
borderRadius: string;
|
|
3781
|
+
height: string;
|
|
3782
|
+
};
|
|
3783
|
+
large: {
|
|
3784
|
+
'font-family': string;
|
|
3785
|
+
'font-size': string;
|
|
3786
|
+
'line-height': string;
|
|
3787
|
+
padding: string;
|
|
3788
|
+
borderRadius: string;
|
|
3789
|
+
height: string;
|
|
3790
|
+
};
|
|
3791
|
+
};
|
|
3792
|
+
declare type ToggleSize$1 = keyof typeof toggleSizes$1;
|
|
3793
|
+
declare type CommonProps = {
|
|
3794
|
+
selected?: boolean;
|
|
3795
|
+
stretch?: boolean;
|
|
3796
|
+
size?: ToggleSize$1;
|
|
3797
|
+
};
|
|
3798
|
+
declare type ToggleSwitchProps = {
|
|
3799
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
3800
|
+
style?: React$1.CSSProperties;
|
|
3801
|
+
} & CommonProps & Omit<Omit<Omit<BaseCskuProps, 'hidden'>, 'color'>, 'style'>;
|
|
3802
|
+
declare type ToggleSwitchStatedProps = {
|
|
3803
|
+
initialSelected?: boolean;
|
|
3804
|
+
style?: React$1.CSSProperties;
|
|
3805
|
+
onClick?: (value: boolean) => void;
|
|
3806
|
+
} & Omit<CommonProps, 'selected'> & Omit<BaseCskuProps, 'style'>;
|
|
3807
|
+
declare const ToggleSwitchStyled: ({ onClick, size, selected, stretch, style, ...props }: ToggleSwitchProps) => JSX.Element;
|
|
3808
|
+
declare const ToggleSwitch: ({ size, initialSelected, stretch, onClick, ...props }: ToggleSwitchStatedProps) => JSX.Element;
|
|
3809
|
+
|
|
3810
|
+
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, ArtworkProps, SKUAsyncSelect as AsyncSelect, Avatar, AvatarColor, AvatarShape, AvatarSize, AwaitingProofIcon, Backdrop, Background, Badge, BaseCskuProps, BotIcon, Box, BulletIcon, Button, ButtonPreset, ButtonProps, ButtonVariant, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarTaskProps, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, ChevronPopup, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, ColPropTypes, CollaborateIcon, CollapseStyled, CollapseStyledProps, CollapseWrapper, CollapseWrapperProps, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelProps, CollapsiblePanelTitle, CollapsiblePanelTitleProps, CollapsiblePanels, CollapsiblePanelsProps, CollapsibleProps, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmAlertPopup, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CskuProps, CustomDateInput, Datepicker, DatepickerPorps, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropAreaProps, DropDownContent, Dropdown, DropdownItem, DropdownProps, DropzoneSimpleProps, DropzoneTypes, Dropzoned, DropzonedPreviews, DropzonedSimple, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridItemProps, GridProps, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconButtonProps, IconDoc, ImageIcon, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputProps, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, 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, OrderStatusIcon, 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, ShopIcon, ShoppingCartIcon, 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, ToggleSwitch, ToggleSwitchProps, ToggleSwitchStatedProps, ToggleSwitchStyled, TrashIcon, UploadIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
|