@commonsku/styles 1.17.36 → 1.17.37
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 +42 -10
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles/AddressAutocomplete/AddressAutocompleteInput.d.ts.map +1 -1
- package/dist/styles/InputDropdown.d.ts.map +1 -1
- package/dist/styles/Switch.d.ts +35 -0
- package/dist/styles/Switch.d.ts.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -795,7 +795,7 @@ declare class Tabs extends Component<TabsProps, TabsState> {
|
|
|
795
795
|
render(): React__default.JSX.Element;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
declare const toggleSizes$
|
|
798
|
+
declare const toggleSizes$2: {
|
|
799
799
|
small: {
|
|
800
800
|
'font-family': string;
|
|
801
801
|
'font-size': string;
|
|
@@ -821,7 +821,7 @@ declare const toggleSizes$1: {
|
|
|
821
821
|
height: string;
|
|
822
822
|
};
|
|
823
823
|
};
|
|
824
|
-
type ToggleSize$
|
|
824
|
+
type ToggleSize$2 = keyof typeof toggleSizes$2;
|
|
825
825
|
declare const ToggleLink: styled_components.StyledComponent<"a", any, {
|
|
826
826
|
selected?: boolean | undefined;
|
|
827
827
|
stretch?: boolean | undefined;
|
|
@@ -830,7 +830,7 @@ declare const ToggleLink: styled_components.StyledComponent<"a", any, {
|
|
|
830
830
|
type ToggleProps = React__default.PropsWithChildren<{
|
|
831
831
|
stretch?: boolean;
|
|
832
832
|
onClick?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
833
|
-
size?: ToggleSize$
|
|
833
|
+
size?: ToggleSize$2;
|
|
834
834
|
} & SharedStyleTypes>;
|
|
835
835
|
declare const Toggle: ({ size, ...props }: ToggleProps) => React__default.JSX.Element;
|
|
836
836
|
|
|
@@ -3426,7 +3426,7 @@ declare const useFallbackRef: <T>(forwardedRef: ForwardedRef<T>) => MutableRefOb
|
|
|
3426
3426
|
declare const useValue: <T>(initialValue: T) => [T, React$1.Dispatch<React$1.SetStateAction<T>>];
|
|
3427
3427
|
//# sourceMappingURL=useValue.d.ts.map
|
|
3428
3428
|
|
|
3429
|
-
declare const toggleSizes: {
|
|
3429
|
+
declare const toggleSizes$1: {
|
|
3430
3430
|
small: {
|
|
3431
3431
|
'font-family': string;
|
|
3432
3432
|
'font-size': string;
|
|
@@ -3452,21 +3452,21 @@ declare const toggleSizes: {
|
|
|
3452
3452
|
height: string;
|
|
3453
3453
|
};
|
|
3454
3454
|
};
|
|
3455
|
-
type ToggleSize = keyof typeof toggleSizes;
|
|
3456
|
-
type CommonProps = {
|
|
3455
|
+
type ToggleSize$1 = keyof typeof toggleSizes$1;
|
|
3456
|
+
type CommonProps$1 = {
|
|
3457
3457
|
selected?: boolean;
|
|
3458
3458
|
stretch?: boolean;
|
|
3459
|
-
size?: ToggleSize;
|
|
3459
|
+
size?: ToggleSize$1;
|
|
3460
3460
|
};
|
|
3461
3461
|
type ToggleSwitchProps = {
|
|
3462
3462
|
onClick?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
3463
3463
|
style?: React__default.CSSProperties;
|
|
3464
|
-
} & CommonProps & Omit<Omit<Omit<BaseCskuProps, 'hidden'>, 'color'>, 'style'>;
|
|
3464
|
+
} & CommonProps$1 & Omit<Omit<Omit<BaseCskuProps, 'hidden'>, 'color'>, 'style'>;
|
|
3465
3465
|
type ToggleSwitchStatedProps = {
|
|
3466
3466
|
initialSelected?: boolean;
|
|
3467
3467
|
style?: React__default.CSSProperties;
|
|
3468
3468
|
onClick?: (value: boolean) => void;
|
|
3469
|
-
} & Omit<CommonProps, 'selected'> & Omit<BaseCskuProps, 'style'>;
|
|
3469
|
+
} & Omit<CommonProps$1, 'selected'> & Omit<BaseCskuProps, 'style'>;
|
|
3470
3470
|
declare const ToggleSwitchStyled: ({ onClick, size, selected, stretch, style, ...props }: ToggleSwitchProps) => React__default.JSX.Element;
|
|
3471
3471
|
declare const ToggleSwitch: ({ size, initialSelected, stretch, onClick, ...props }: ToggleSwitchStatedProps) => React__default.JSX.Element;
|
|
3472
3472
|
|
|
@@ -3645,4 +3645,36 @@ interface PaginationProps {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
declare const Pagination: ({ currentPage, totalPages, onChange, }: PaginationProps) => React__default.JSX.Element;
|
|
3647
3647
|
|
|
3648
|
-
|
|
3648
|
+
declare const toggleSizes: {
|
|
3649
|
+
small: {
|
|
3650
|
+
height: string;
|
|
3651
|
+
width: string;
|
|
3652
|
+
};
|
|
3653
|
+
medium: {
|
|
3654
|
+
height: string;
|
|
3655
|
+
width: string;
|
|
3656
|
+
};
|
|
3657
|
+
large: {
|
|
3658
|
+
height: string;
|
|
3659
|
+
width: string;
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
type ToggleSize = keyof typeof toggleSizes;
|
|
3663
|
+
type CommonProps = {
|
|
3664
|
+
selected?: boolean;
|
|
3665
|
+
stretch?: boolean;
|
|
3666
|
+
size?: ToggleSize;
|
|
3667
|
+
};
|
|
3668
|
+
type SwitchProps = {
|
|
3669
|
+
onClick?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
3670
|
+
style?: React__default.CSSProperties;
|
|
3671
|
+
} & CommonProps & Omit<Omit<Omit<BaseCskuProps, 'hidden'>, 'color'>, 'style'>;
|
|
3672
|
+
type SwitchStatedProps = {
|
|
3673
|
+
initialSelected?: boolean;
|
|
3674
|
+
style?: React__default.CSSProperties;
|
|
3675
|
+
onClick?: (value: boolean) => void;
|
|
3676
|
+
} & Omit<CommonProps, 'selected'> & Omit<BaseCskuProps, 'style'>;
|
|
3677
|
+
declare const SwitchStyled: ({ onClick, size, selected, stretch, style, ...props }: SwitchProps) => React__default.JSX.Element;
|
|
3678
|
+
declare const Switch: ({ size, initialSelected, stretch, onClick, ...props }: SwitchStatedProps) => React__default.JSX.Element;
|
|
3679
|
+
|
|
3680
|
+
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AddressAutocompleteInput, 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, ClearIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, ColPropTypes, CollaborateIcon, CollapseStyled, CollapseStyledProps, CollapseWrapper, CollapseWrapperProps, Collapsible$1 as Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelProps, CollapsiblePanelTitle, CollapsiblePanelTitleProps, CollapsiblePanels, CollapsiblePanelsProps, CollapsibleProps$1 as CollapsibleProps, Collapsible as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentBubbleIcon, CommentIcon, CommonskuMainLogo, CommunityIcon, CompletedCheckmarkIcon, ConfirmAlertPopup, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CskuProps, CustomDateInput, DateRange, DateRangeDropdown, DateRangeDropdownProps, DateRangeInput, DateRangeInputProps, DateRangePicker, DateRangePickerProps, DateRangePreset, Datepicker, DaysBodyWrapper, DebouncedInput, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DesignIcon, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropAreaProps, DropDownContent, Dropdown, DropdownItem, DropdownProps, Dropzone, DropzoneProps, DropzoneTypes, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EmptyStateArrowIcon as EmptyStateArrow, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridItemProps, GridProps, GridRow, GridTable, GridTableContainer, H1$1 as H1, H2$1 as H2, H3, H4, H5$1 as H5, H6, HandleIcon, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconButtonProps, IconDoc, ImageIcon, Img, InfoIcon, Input, InputDropdown, InputIconLabel, InputIconLabelContainer, InputProps, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCheckboxProps, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledInputProps, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledRadioProps, LabeledSelect, LabeledTextarea, LayersIcon, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MagicEraserIcon, MagicIcon, MailIcon, MarketingStatusIcon, MenuIcon, MergeIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavReportsIcon, NavResourcesIcon, NavSalesIcon, NestedOption, NoteIcon, Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, Pagination, PanelContact, PanelTileContact, PanelledSelect, PanelledSelectProps, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PopupProps, PresentationCircleIcon, Product, ProductCard, ProductDetail, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, RadioProps, ReceiptLongIcon, RenderChild, ResizableIcon, ResponsiveTable, Row$1 as Row, RowPropTypes, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SelectionTable, SharedStyleTypes, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableProps, SimpleWindowedTableStyles, SizerCss, SizerTypes, SizerWrapper, SkubotLogo, SkubotSpinner, SlideInIcon, Sparkles, Spinner, StarDarkIcon, StarIcon, StarLightIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, Switch, SwitchProps, SwitchStatedProps, SwitchStyled, TBody, TButtonIcon, TD, TDropdownItem, TH, THSorted, THead, TR, TSize, TSizeOffset, TSizeOffsetRight, TSizeStyle, TTab, Tab, TabBar, Table, TableIcon, Tabs, TabsProps, TagIcon, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TaskProps, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TemplateIcon, Text$1 as Text, TextProp, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, ToggleSwitch, ToggleSwitchProps, ToggleSwitchStatedProps, ToggleSwitchStyled, Tooltip, TrashIcon, TrendIcon, Typography, UploadIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, WarnIcon, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes, themeOptions, toggleSizes$2 as toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useValue, useWindowSize };
|