@commonsku/styles 1.16.8 → 1.16.9
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 +17 -6
- package/dist/index.es.js +110 -30
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +109 -28
- package/dist/index.js.map +1 -1
- package/dist/styles/AlertNotification.d.ts +10 -6
- package/dist/styles/AlertNotification.d.ts.map +1 -1
- package/dist/styles/Select.d.ts.map +1 -1
- package/dist/styles/icons/DoubleArrowIcon.d.ts +41 -0
- package/dist/styles/icons/DoubleArrowIcon.d.ts.map +1 -0
- package/dist/styles/icons/HelpIcon.d.ts.map +1 -1
- package/dist/styles/icons/index.d.ts +1 -0
- package/dist/styles/icons/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2747,14 +2747,19 @@ declare type DoneButtonProps = {
|
|
|
2747
2747
|
} & SharedStyleTypes & SizerTypes;
|
|
2748
2748
|
declare function DoneButton({ size, variant, style, ...Props }: DoneButtonProps): JSX.Element;
|
|
2749
2749
|
|
|
2750
|
-
declare type
|
|
2751
|
-
alertType?: "neutral" | "success" | "error";
|
|
2752
|
-
style?: React$1.CSSProperties;
|
|
2750
|
+
declare type NotificationExtraContentProps = {
|
|
2753
2751
|
learnMore?: boolean;
|
|
2754
2752
|
href?: string;
|
|
2755
2753
|
linkText?: string;
|
|
2756
|
-
}
|
|
2757
|
-
declare
|
|
2754
|
+
};
|
|
2755
|
+
declare type NotificationIconProps = {
|
|
2756
|
+
alertType?: "neutral" | "success" | "error";
|
|
2757
|
+
};
|
|
2758
|
+
declare type AlertNotificationProps = React$1.PropsWithChildren<{
|
|
2759
|
+
style?: React$1.CSSProperties;
|
|
2760
|
+
}> & NotificationIconProps & NotificationExtraContentProps & SharedStyleTypes & SizerTypes;
|
|
2761
|
+
declare const AlertNotification: ({ href, linkText, children, alertType, learnMore, style, ...props }: AlertNotificationProps) => JSX.Element;
|
|
2762
|
+
//# sourceMappingURL=AlertNotification.d.ts.map
|
|
2758
2763
|
|
|
2759
2764
|
declare type IconFuncProps$1 = {
|
|
2760
2765
|
color: string;
|
|
@@ -3382,6 +3387,12 @@ declare function HelpIcon({ color, size, altText, ...props }: HelpIconProps): JS
|
|
|
3382
3387
|
declare type FileUploadIconProps = SVGIconProps;
|
|
3383
3388
|
declare function FileUploadIcon({ color, size, altText, ...props }: FileUploadIconProps): JSX.Element;
|
|
3384
3389
|
|
|
3390
|
+
declare type ArrowIconDirection$1 = 'left' | 'right' | 'down' | 'up';
|
|
3391
|
+
declare type DoubleArrowIconProps = SVGIconProps & {
|
|
3392
|
+
direction?: ArrowIconDirection$1;
|
|
3393
|
+
};
|
|
3394
|
+
declare function DoubleArrowIcon({ color, direction, size, altText, ...props }: DoubleArrowIconProps): JSX.Element;
|
|
3395
|
+
|
|
3385
3396
|
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";
|
|
3386
3397
|
//# sourceMappingURL=datepickerStyles.d.ts.map
|
|
3387
3398
|
|
|
@@ -3725,4 +3736,4 @@ declare const useClickOutside: <T extends HTMLElement = HTMLElement>(props: {
|
|
|
3725
3736
|
declare const useFallbackRef: <T>(forwardedRef: ForwardedRef<T>) => MutableRefObject<T | null>;
|
|
3726
3737
|
//# sourceMappingURL=useFallbackRef.d.ts.map
|
|
3727
3738
|
|
|
3728
|
-
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, 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, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CskuProps, CustomDateInput, Datepicker, DatepickerPorps, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropAreaProps, DropDownContent, Dropdown, DropdownItem, DropdownProps, DropzoneTypes, Dropzoned, DropzonedPreviews, 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, 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, TrashIcon, 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 };
|
|
3739
|
+
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, 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, 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, DropzoneTypes, Dropzoned, DropzonedPreviews, 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, 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, TrashIcon, 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 };
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _, { map, pick, keys, isUndefined, get, uniqueId, assign, range as range$1, isEmpty, tail, toNumber, isString, filter, partial, debounce } from 'lodash';
|
|
2
2
|
import styled, { css, createGlobalStyle, ThemeProvider, keyframes } from 'styled-components';
|
|
3
|
-
import React__default, { Fragment, useState, useEffect, useRef, useCallback, useImperativeHandle, Component, createContext, memo, forwardRef, useLayoutEffect
|
|
3
|
+
import React__default, { useMemo, Fragment, useState, useEffect, useRef, useCallback, useImperativeHandle, Component, createContext, memo, forwardRef, useLayoutEffect } from 'react';
|
|
4
4
|
import { useDropzone } from 'react-dropzone';
|
|
5
5
|
import BaseSelect from 'react-select';
|
|
6
6
|
export { components, createFilter, mergeStyles } from 'react-select';
|
|
@@ -2463,7 +2463,7 @@ function EPOIcon(_a) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
2465
|
function HelpIcon(_a) {
|
|
2466
|
-
var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "
|
|
2466
|
+
var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, altText = _d === void 0 ? "Help" : _d, props = __rest(_a, ["color", "size", "altText"]);
|
|
2467
2467
|
return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "HelpIcon" }, props),
|
|
2468
2468
|
React__default.createElement("title", { id: "HelpIcon" }, altText),
|
|
2469
2469
|
React__default.createElement("path", { d: "M9 16H11V14H9V16ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 4C7.79 4 6 5.79 6 8H8C8 6.9 8.9 6 10 6C11.1 6 12 6.9 12 8C12 10 9 9.75 9 13H11C11 10.75 14 10.5 14 8C14 5.79 12.21 4 10 4Z", fill: color }));
|
|
@@ -2505,7 +2505,7 @@ function FileUploadIcon(_a) {
|
|
|
2505
2505
|
var _b = _a.color, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.altText, props = __rest(_a, ["color", "size", "altText"]);
|
|
2506
2506
|
var clipId = "clip0_2603_83254_".concat(uniqueId('clip'));
|
|
2507
2507
|
return React__default.createElement(SVG, __assign({ size: size, "aria-labelledby": "FileUploadIcon", iconSizes: iconSizes$3 }, props),
|
|
2508
|
-
React__default.createElement("g", {
|
|
2508
|
+
React__default.createElement("g", { clipPath: "url(#".concat(clipId, ")") },
|
|
2509
2509
|
React__default.createElement("path", { d: "M74.6667 13.3333V50.6667H37.3333V13.3333H74.6667ZM74.6667 8H37.3333C34.4 8 32 10.4 32 13.3333V50.6667C32 53.6 34.4 56 37.3333 56H74.6667C77.6 56 80 53.6 80 50.6667V13.3333C80 10.4 77.6 8 74.6667 8ZM61.7067 31.6267L53.7067 41.9467L48 35.04L40 45.3333H72L61.7067 31.6267Z", fill: "#B8C4CB" })),
|
|
2510
2510
|
React__default.createElement("path", { d: "M97.26 19H99.9C102.36 19 104.28 17.08 104.28 14.8C104.28 12.52 102.36 10.6 99.9 10.6H97.26V19ZM98.16 18.16V11.44H99.9C101.88 11.44 103.38 12.94 103.38 14.8C103.38 16.66 101.88 18.16 99.9 18.16H98.16ZM105.96 19H106.8V15.82C106.8 14.68 107.64 13.96 108.6 13.96H108.96V13.12H108.72C107.4 13.12 106.8 14.02 106.8 14.02V13.24H105.96V19ZM113.577 19H114.417V15.34C114.417 14.08 113.457 13.12 112.137 13.12C110.757 13.12 109.977 14.2 109.977 14.2L110.517 14.74C110.517 14.74 111.117 13.9 112.137 13.9C112.977 13.9 113.577 14.5 113.577 15.34L111.357 15.7C110.277 15.88 109.677 16.48 109.677 17.44C109.677 18.28 110.517 19.12 111.717 19.12C112.977 19.12 113.577 18.22 113.577 18.22V19ZM113.577 16.42C113.577 17.56 112.797 18.34 111.717 18.34C110.937 18.34 110.517 17.92 110.517 17.44C110.517 16.9 110.877 16.552 111.597 16.42L113.577 16.06V16.42ZM116.151 20.32C116.151 20.32 116.931 21.52 118.551 21.52C120.111 21.52 121.371 20.26 121.371 18.64V13.24H120.531V14.02C120.531 14.02 119.991 13.12 118.611 13.12C117.111 13.12 115.911 14.38 115.911 16C115.911 17.62 117.111 18.88 118.611 18.88C119.991 18.88 120.531 17.98 120.531 17.98V18.64C120.531 19.84 119.631 20.74 118.551 20.74C117.351 20.74 116.691 19.78 116.691 19.78L116.151 20.32ZM118.611 18.1C117.591 18.1 116.751 17.2 116.751 16C116.751 14.8 117.591 13.9 118.611 13.9C119.691 13.9 120.531 14.8 120.531 16C120.531 17.2 119.691 18.1 118.611 18.1ZM129.292 19H130.132V15.34C130.132 14.08 129.172 13.12 127.852 13.12C126.472 13.12 125.692 14.2 125.692 14.2L126.232 14.74C126.232 14.74 126.832 13.9 127.852 13.9C128.692 13.9 129.292 14.5 129.292 15.34L127.072 15.7C125.992 15.88 125.392 16.48 125.392 17.44C125.392 18.28 126.232 19.12 127.432 19.12C128.692 19.12 129.292 18.22 129.292 18.22V19ZM129.292 16.42C129.292 17.56 128.512 18.34 127.432 18.34C126.652 18.34 126.232 17.92 126.232 17.44C126.232 16.9 126.592 16.552 127.312 16.42L129.292 16.06V16.42ZM132.046 19H132.886V15.82C132.886 14.68 133.666 13.9 134.686 13.9C135.586 13.9 136.246 14.56 136.246 15.58V19H137.086V15.58C137.086 14.08 136.126 13.12 134.746 13.12C133.486 13.12 132.886 14.08 132.886 14.08V13.24H132.046V19ZM143.387 19H144.227V10.6H143.387V14.08C143.387 14.08 142.727 13.12 141.407 13.12C139.847 13.12 138.587 14.38 138.587 16.12C138.587 17.86 139.847 19.12 141.407 19.12C142.727 19.12 143.387 18.16 143.387 18.16V19ZM141.407 18.34C140.327 18.34 139.427 17.44 139.427 16.12C139.427 14.8 140.327 13.9 141.407 13.9C142.427 13.9 143.387 14.86 143.387 16.12C143.387 17.38 142.427 18.34 141.407 18.34ZM153.102 19H153.942V10.6H153.102V14.08C153.102 14.08 152.442 13.12 151.122 13.12C149.562 13.12 148.302 14.38 148.302 16.12C148.302 17.86 149.562 19.12 151.122 19.12C152.442 19.12 153.102 18.16 153.102 18.16V19ZM151.122 18.34C150.042 18.34 149.142 17.44 149.142 16.12C149.142 14.8 150.042 13.9 151.122 13.9C152.142 13.9 153.102 14.86 153.102 16.12C153.102 17.38 152.142 18.34 151.122 18.34ZM155.917 19H156.757V15.82C156.757 14.68 157.597 13.96 158.557 13.96H158.917V13.12H158.677C157.357 13.12 156.757 14.02 156.757 14.02V13.24H155.917V19ZM162.457 19.12C164.077 19.12 165.397 17.8 165.397 16.12C165.397 14.44 164.077 13.12 162.457 13.12C160.837 13.12 159.517 14.44 159.517 16.12C159.517 17.8 160.837 19.12 162.457 19.12ZM162.457 18.34C161.317 18.34 160.357 17.368 160.357 16.12C160.357 14.86 161.317 13.9 162.457 13.9C163.597 13.9 164.557 14.86 164.557 16.12C164.557 17.38 163.597 18.34 162.457 18.34ZM166.898 21.52H167.738V18.16C167.738 18.16 168.398 19.12 169.718 19.12C171.278 19.12 172.538 17.86 172.538 16.12C172.538 14.38 171.278 13.12 169.718 13.12C168.398 13.12 167.738 14.08 167.738 14.08V13.24H166.898V21.52ZM169.718 18.34C168.698 18.34 167.738 17.38 167.738 16.12C167.738 14.86 168.698 13.9 169.718 13.9C170.798 13.9 171.698 14.8 171.698 16.12C171.698 17.44 170.798 18.34 169.718 18.34ZM97.02 33H97.86V29.82C97.86 28.68 98.64 27.9 99.66 27.9C100.56 27.9 101.22 28.56 101.22 29.58V33H102.06V29.58C102.06 28.08 101.1 27.12 99.72 27.12C98.46 27.12 97.86 28.08 97.86 28.08V24.6H97.02V33ZM108.3 31.38C108.3 31.38 107.652 32.34 106.44 32.34C105.36 32.34 104.46 31.44 104.4 30.42L109.08 30.432C109.08 30.432 109.14 30.24 109.14 30C109.14 28.32 107.94 27.12 106.38 27.12C104.88 27.12 103.56 28.44 103.56 30.12C103.56 31.8 104.88 33.12 106.44 33.12C108 33.12 108.84 31.92 108.84 31.92L108.3 31.38ZM104.4 29.7C104.52 28.74 105.36 27.9 106.38 27.9C107.4 27.9 108.18 28.68 108.3 29.7H104.4ZM110.636 33H111.476V29.82C111.476 28.68 112.316 27.96 113.276 27.96H113.636V27.12H113.396C112.076 27.12 111.476 28.02 111.476 28.02V27.24H110.636V33ZM118.975 31.38C118.975 31.38 118.327 32.34 117.115 32.34C116.035 32.34 115.135 31.44 115.075 30.42L119.755 30.432C119.755 30.432 119.815 30.24 119.815 30C119.815 28.32 118.615 27.12 117.055 27.12C115.555 27.12 114.235 28.44 114.235 30.12C114.235 31.8 115.555 33.12 117.115 33.12C118.675 33.12 119.515 31.92 119.515 31.92L118.975 31.38ZM115.075 29.7C115.195 28.74 116.035 27.9 117.055 27.9C118.075 27.9 118.855 28.68 118.975 29.7H115.075ZM126.351 33.12C127.971 33.12 129.291 31.8 129.291 30.12C129.291 28.44 127.971 27.12 126.351 27.12C124.731 27.12 123.411 28.44 123.411 30.12C123.411 31.8 124.731 33.12 126.351 33.12ZM126.351 32.34C125.211 32.34 124.251 31.368 124.251 30.12C124.251 28.86 125.211 27.9 126.351 27.9C127.491 27.9 128.451 28.86 128.451 30.12C128.451 31.38 127.491 32.34 126.351 32.34ZM130.792 33H131.632V29.82C131.632 28.68 132.472 27.96 133.432 27.96H133.792V27.12H133.552C132.232 27.12 131.632 28.02 131.632 28.02V27.24H130.792V33Z", fill: "#899CA9" }),
|
|
2511
2511
|
React__default.createElement("path", { d: "M97.2 53H100.74C102.36 53 103.5 51.86 103.5 50.54C103.5 49.04 102.06 48.5 102.06 48.5C102.06 48.5 103.08 48.08 103.08 46.82C103.08 45.62 102.06 44.6 100.56 44.6H97.2V53ZM98.52 51.86V49.1H100.74C101.58 49.1 102.18 49.7 102.18 50.48C102.18 51.26 101.58 51.86 100.74 51.86H98.52ZM98.52 48.02V45.74H100.56C101.28 45.74 101.76 46.22 101.76 46.88C101.76 47.54 101.28 48.02 100.56 48.02H98.52ZM104.996 53H106.196V50.06C106.196 49.04 106.916 48.32 107.756 48.32C107.996 48.32 108.236 48.38 108.236 48.38V47.12H107.936C106.796 47.12 106.196 48.02 106.196 48.02V47.24H104.996V53ZM108.843 50.12C108.843 51.8 110.163 53.12 111.843 53.12C113.523 53.12 114.843 51.8 114.843 50.12C114.843 48.44 113.523 47.12 111.843 47.12C110.163 47.12 108.843 48.44 108.843 50.12ZM111.843 51.98C110.823 51.98 110.043 51.2 110.043 50.12C110.043 49.04 110.823 48.26 111.843 48.26C112.863 48.26 113.643 49.04 113.643 50.12C113.643 51.2 112.863 51.98 111.843 51.98ZM117.484 53H118.624L119.884 49.16L121.144 53H122.284L124.324 47.24H123.004L121.684 51.14L120.424 47.24H119.344L118.084 51.14L116.764 47.24H115.444L117.484 53ZM124.741 52.04C124.741 52.04 125.521 53.12 127.021 53.12C128.401 53.12 129.241 52.28 129.241 51.32C129.241 49.28 126.181 49.76 126.181 48.8C126.181 48.5 126.481 48.2 127.081 48.2C127.861 48.2 128.341 48.68 128.341 48.68L129.121 47.9C129.121 47.9 128.461 47.12 127.081 47.12C125.761 47.12 124.981 47.9 124.981 48.8C124.981 50.84 128.041 50.36 128.041 51.32C128.041 51.68 127.681 52.04 127.021 52.04C126.121 52.04 125.521 51.26 125.521 51.26L124.741 52.04ZM134.876 51.2C134.876 51.2 134.216 51.98 133.196 51.98C132.236 51.98 131.516 51.32 131.396 50.54H135.836C135.836 50.54 135.896 50.3 135.896 49.94C135.896 48.32 134.696 47.12 133.076 47.12C131.456 47.12 130.136 48.44 130.136 50.12C130.136 51.8 131.456 53.12 133.136 53.12C134.816 53.12 135.596 52.04 135.596 52.04L134.876 51.2ZM131.396 49.52C131.636 48.74 132.176 48.2 133.076 48.2C133.916 48.2 134.456 48.74 134.636 49.52H131.396ZM140.091 53H141.411V49.52H145.011V48.26H141.411V45.86H145.971V44.6H140.091V53ZM147.056 53H148.256V47.24H147.056V53ZM146.936 45.44C146.936 45.86 147.296 46.16 147.656 46.16C148.016 46.16 148.376 45.86 148.376 45.44C148.376 45.02 148.016 44.72 147.656 44.72C147.296 44.72 146.936 45.02 146.936 45.44ZM150.056 53H151.256V44.6H150.056V53ZM157.376 51.2C157.376 51.2 156.716 51.98 155.696 51.98C154.736 51.98 154.016 51.32 153.896 50.54H158.336C158.336 50.54 158.396 50.3 158.396 49.94C158.396 48.32 157.196 47.12 155.576 47.12C153.956 47.12 152.636 48.44 152.636 50.12C152.636 51.8 153.956 53.12 155.636 53.12C157.316 53.12 158.096 52.04 158.096 52.04L157.376 51.2ZM153.896 49.52C154.136 48.74 154.676 48.2 155.576 48.2C156.416 48.2 156.956 48.74 157.136 49.52H153.896ZM159.171 52.04C159.171 52.04 159.951 53.12 161.451 53.12C162.831 53.12 163.671 52.28 163.671 51.32C163.671 49.28 160.611 49.76 160.611 48.8C160.611 48.5 160.911 48.2 161.511 48.2C162.291 48.2 162.771 48.68 162.771 48.68L163.551 47.9C163.551 47.9 162.891 47.12 161.511 47.12C160.191 47.12 159.411 47.9 159.411 48.8C159.411 50.84 162.471 50.36 162.471 51.32C162.471 51.68 162.111 52.04 161.451 52.04C160.551 52.04 159.951 51.26 159.951 51.26L159.171 52.04Z", fill: "#DA9B8A" }),
|
|
@@ -2514,6 +2514,80 @@ function FileUploadIcon(_a) {
|
|
|
2514
2514
|
React__default.createElement("rect", { width: "64", height: "64", fill: "white", transform: "translate(24)" }))));
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
+
var iconSizes$4 = {
|
|
2518
|
+
tiny: {
|
|
2519
|
+
width: 12,
|
|
2520
|
+
height: 12,
|
|
2521
|
+
viewBox: "0 0 32 32",
|
|
2522
|
+
},
|
|
2523
|
+
small: {
|
|
2524
|
+
width: 22,
|
|
2525
|
+
height: 22,
|
|
2526
|
+
viewBox: "0 0 32 32",
|
|
2527
|
+
},
|
|
2528
|
+
medium: {
|
|
2529
|
+
width: 32,
|
|
2530
|
+
height: 32,
|
|
2531
|
+
viewBox: "0 0 32 32",
|
|
2532
|
+
},
|
|
2533
|
+
large: {
|
|
2534
|
+
width: 62,
|
|
2535
|
+
height: 62,
|
|
2536
|
+
viewBox: "0 0 32 32",
|
|
2537
|
+
},
|
|
2538
|
+
huge: {
|
|
2539
|
+
width: 82,
|
|
2540
|
+
height: 82,
|
|
2541
|
+
viewBox: "0 0 32 32",
|
|
2542
|
+
},
|
|
2543
|
+
default: {
|
|
2544
|
+
width: 32,
|
|
2545
|
+
height: 32,
|
|
2546
|
+
viewBox: "0 0 32 32",
|
|
2547
|
+
},
|
|
2548
|
+
};
|
|
2549
|
+
function DoubleArrowIcon(_a) {
|
|
2550
|
+
var _b = _a.color, color = _b === void 0 ? teal.main : _b, _c = _a.direction, direction = _c === void 0 ? "right" : _c, _d = _a.size, size = _d === void 0 ? "medium" : _d, altText = _a.altText, props = __rest(_a, ["color", "direction", "size", "altText"]);
|
|
2551
|
+
var iconAltText = useMemo(function () {
|
|
2552
|
+
if (altText) {
|
|
2553
|
+
return altText;
|
|
2554
|
+
}
|
|
2555
|
+
switch (direction) {
|
|
2556
|
+
case 'right': return 'Next';
|
|
2557
|
+
case 'left': return 'Previous';
|
|
2558
|
+
default: return '';
|
|
2559
|
+
}
|
|
2560
|
+
}, [altText, direction]);
|
|
2561
|
+
var directionPaths = React__default.useMemo(function () {
|
|
2562
|
+
if (direction === "left") {
|
|
2563
|
+
return [
|
|
2564
|
+
'M24.3801 23.0592C24.9001 22.5392 24.9001 21.6992 24.3801 21.1792L19.2201 15.9926L24.3935 10.8192C24.9135 10.2992 24.9135 9.45922 24.3935 8.93922C23.8735 8.41922 23.0335 8.41922 22.5135 8.93922L16.3935 15.0592C15.8735 15.5792 15.8735 16.4192 16.3935 16.9392L22.5001 23.0592C23.0201 23.5792 23.8601 23.5792 24.3801 23.0592Z',
|
|
2565
|
+
'M15.5935 23.0592C16.1135 22.5392 16.1135 21.6992 15.5935 21.1792L10.4335 15.9926L15.6068 10.8192C16.1268 10.2992 16.1268 9.45922 15.6068 8.93922C15.0868 8.41922 14.2468 8.41922 13.7268 8.93922L7.6068 15.0592C7.0868 15.5792 7.0868 16.4192 7.6068 16.9392L13.7135 23.0592C14.2335 23.5792 15.0735 23.5792 15.5935 23.0592Z',
|
|
2566
|
+
];
|
|
2567
|
+
}
|
|
2568
|
+
else if (direction === 'down') {
|
|
2569
|
+
return [
|
|
2570
|
+
'M23.0588 7.62013C22.5388 7.10013 21.6988 7.10013 21.1788 7.62013L16.0055 12.7801L10.8188 7.6068C10.2988 7.0868 9.45883 7.0868 8.93883 7.6068C8.41883 8.1268 8.41883 8.9668 8.93883 9.4868L15.0588 15.6068C15.5788 16.1268 16.4188 16.1268 16.9388 15.6068L23.0588 9.4868C23.5788 8.98013 23.5788 8.14013 23.0588 7.62013Z',
|
|
2571
|
+
'M23.0588 16.4068C22.5388 15.8868 21.6988 15.8868 21.1788 16.4068L16.0055 21.5668L10.8322 16.3935C10.3122 15.8735 9.47216 15.8735 8.95216 16.3935C8.43216 16.9135 8.43216 17.7535 8.95216 18.2735L15.0722 24.3935C15.5922 24.9135 16.4322 24.9135 16.9522 24.3935L23.0722 18.2735C23.5788 17.7668 23.5788 16.9268 23.0588 16.4068Z',
|
|
2572
|
+
];
|
|
2573
|
+
}
|
|
2574
|
+
else if (direction === 'up') {
|
|
2575
|
+
return [
|
|
2576
|
+
'M8.94 24.3801C9.46 24.9001 10.3 24.9001 10.82 24.3801L16.0067 19.2201L21.18 24.3935C21.7 24.9135 22.54 24.9135 23.06 24.3935C23.58 23.8735 23.58 23.0335 23.06 22.5135L16.94 16.3935C16.42 15.8735 15.58 15.8735 15.06 16.3935L8.94 22.5001C8.42 23.0201 8.42 23.8601 8.94 24.3801Z',
|
|
2577
|
+
'M8.94 15.5935C9.46 16.1135 10.3 16.1135 10.82 15.5935L16.0067 10.4335L21.18 15.6068C21.7 16.1268 22.54 16.1268 23.06 15.6068C23.58 15.0868 23.58 14.2468 23.06 13.7268L16.94 7.6068C16.42 7.0868 15.58 7.0868 15.06 7.6068L8.94 13.7135C8.42 14.2335 8.42 15.0735 8.94 15.5935Z',
|
|
2578
|
+
];
|
|
2579
|
+
}
|
|
2580
|
+
return [
|
|
2581
|
+
'M7.61987 8.94078C7.09987 9.46078 7.09987 10.3008 7.61987 10.8208L12.7799 16.0074L7.60654 21.1808C7.08654 21.7008 7.08654 22.5408 7.60654 23.0608C8.12653 23.5808 8.96654 23.5808 9.48654 23.0608L15.6065 16.9408C16.1265 16.4208 16.1265 15.5808 15.6065 15.0608L9.49987 8.94078C8.97987 8.42078 8.13987 8.42078 7.61987 8.94078Z',
|
|
2582
|
+
'M16.4065 8.94078C15.8865 9.46078 15.8865 10.3008 16.4065 10.8208L21.5665 16.0074L16.3932 21.1808C15.8732 21.7008 15.8732 22.5408 16.3932 23.0608C16.9132 23.5808 17.7532 23.5808 18.2732 23.0608L24.3932 16.9408C24.9132 16.4208 24.9132 15.5808 24.3932 15.0608L18.2865 8.94078C17.7665 8.42078 16.9265 8.42078 16.4065 8.94078Z',
|
|
2583
|
+
];
|
|
2584
|
+
}, [direction]);
|
|
2585
|
+
return (React__default.createElement(SVG, __assign({ fill: "none", xmlns: "http://www.w3.org/2000/svg", iconSizes: iconSizes$4, size: size }, props),
|
|
2586
|
+
React__default.createElement("title", { id: "DoubleArrowIcon" }, iconAltText),
|
|
2587
|
+
React__default.createElement("path", { d: directionPaths[0], fill: color }),
|
|
2588
|
+
React__default.createElement("path", { d: directionPaths[1], fill: color })));
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2517
2591
|
var avatarSizes = {
|
|
2518
2592
|
tiny: {
|
|
2519
2593
|
size: '24px',
|
|
@@ -3582,12 +3656,13 @@ function skuSelectStyles(props) {
|
|
|
3582
3656
|
},
|
|
3583
3657
|
};
|
|
3584
3658
|
}
|
|
3585
|
-
var
|
|
3659
|
+
var skuSelectThemeByProps = function (props) { return function (theme) { return (__assign(__assign({}, theme), { borderRadius: 5, colors: __assign(__assign({}, theme.colors), { primary25: getThemeColor(props, 'primary0', colors.primary0), primary75: getThemeColor(props, 'primary0', colors.primary0), primary50: getThemeColor(props, 'primary10', colors.primary10), primary: getThemeColor(props, 'primary', colors.primary), neutral20: getThemeColor(props, 'select.border', colors.select.border), neutral30: getThemeColor(props, 'select.border', colors.select.border), neutral80: getThemeColor(props, 'textbody', colors.textbody), neutral90: getThemeColor(props, 'textbody', colors.textbody) }) })); }; };
|
|
3586
3660
|
// duplicate styles to overide .resku global styles
|
|
3587
3661
|
// : React.ForwardRefExoticComponent<SKUSelectProps & React.RefAttributes<BaseSelect>>
|
|
3588
3662
|
// React.ForwardRefExoticComponent<AdditionalSKUSelectProps & Omit<Pick<Props<unknown, boolean, GroupBase<unknown>>, "aria-errormessage" | "aria-invalid" | "aria-label" | ... 27 more ... | "form"> & InexactPartial<...> & InexactPartial<...>, StateManagedPropKeys> & Partial<...> & StateManagerAdditionalProps<...> & React.RefAttributes<...>>
|
|
3589
3663
|
var SKUSelect = React__default.forwardRef(function (_a, ref) {
|
|
3590
3664
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3665
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3591
3666
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3592
3667
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3593
3668
|
return React__default.createElement(BaseSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix }, (inPopup ? popupStyles : {}), { styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props));
|
|
@@ -3603,6 +3678,7 @@ var LabeledSelect = React__default.forwardRef(function (_a, ref) {
|
|
|
3603
3678
|
});
|
|
3604
3679
|
var SKUCreatableSelect = React__default.forwardRef(function (_a, ref) {
|
|
3605
3680
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3681
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3606
3682
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3607
3683
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3608
3684
|
return (React__default.createElement(BaseCreatableSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
|
|
@@ -3618,6 +3694,7 @@ var LabeledCreatableSelect = React__default.forwardRef(function (_a, ref) {
|
|
|
3618
3694
|
});
|
|
3619
3695
|
var SKUAsyncSelect = React__default.forwardRef(function (_a, ref) {
|
|
3620
3696
|
var noMargin = _a.noMargin, menuRelative = _a.menuRelative, inPopup = _a.inPopup, error = _a.error, props = __rest(_a, ["noMargin", "menuRelative", "inPopup", "error"]);
|
|
3697
|
+
var skuSelectTheme = skuSelectThemeByProps(props);
|
|
3621
3698
|
var classNamePrefix = "".concat(error ? 'select-error' : '', " commonsku-styles-select");
|
|
3622
3699
|
var selectStyleProps = __assign(__assign({}, props), { noMargin: noMargin, menuRelative: menuRelative, inPopup: inPopup, error: error, classNamePrefix: classNamePrefix, theme: skuSelectTheme });
|
|
3623
3700
|
return (React__default.createElement(BaseAsyncSelect, __assign({ ref: ref, classNamePrefix: classNamePrefix, styles: skuSelectStyles(selectStyleProps), theme: skuSelectTheme }, props, (inPopup ? popupStyles : {}))));
|
|
@@ -6056,7 +6133,27 @@ function LinkWithIcon(_a) {
|
|
|
6056
6133
|
}
|
|
6057
6134
|
var templateObject_1$K;
|
|
6058
6135
|
|
|
6059
|
-
var
|
|
6136
|
+
var NotificationExtraContent = memo(function (props) {
|
|
6137
|
+
var learnMore = props.learnMore, linkText = props.linkText, href = props.href;
|
|
6138
|
+
if (learnMore) {
|
|
6139
|
+
return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, "Learn More"));
|
|
6140
|
+
}
|
|
6141
|
+
if (linkText) {
|
|
6142
|
+
return (React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText));
|
|
6143
|
+
}
|
|
6144
|
+
return null;
|
|
6145
|
+
});
|
|
6146
|
+
var NotificationIcon = memo(function (props) {
|
|
6147
|
+
var alertType = props.alertType;
|
|
6148
|
+
if (alertType === "success") {
|
|
6149
|
+
return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6150
|
+
}
|
|
6151
|
+
else if (alertType === "error") {
|
|
6152
|
+
return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6153
|
+
}
|
|
6154
|
+
return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6155
|
+
});
|
|
6156
|
+
var notificationVariantStyles = function (alertType) {
|
|
6060
6157
|
switch (alertType) {
|
|
6061
6158
|
case "neutral":
|
|
6062
6159
|
return {
|
|
@@ -6077,31 +6174,14 @@ var NotificationVariantStyles = function (alertType) {
|
|
|
6077
6174
|
return {};
|
|
6078
6175
|
}
|
|
6079
6176
|
};
|
|
6080
|
-
var StyledNotification = styled.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n
|
|
6081
|
-
function
|
|
6082
|
-
var _b = _a.alertType, alertType = _b === void 0 ? "neutral" : _b, _c = _a.learnMore, learnMore = _c === void 0 ? false : _c,
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
return React__default.createElement(CompletedCheckmarkIcon, { color: colors.green.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6086
|
-
}
|
|
6087
|
-
else if (alertType === "error") {
|
|
6088
|
-
return React__default.createElement(AlertIcon, { color: colors.errors.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6089
|
-
}
|
|
6090
|
-
else {
|
|
6091
|
-
return React__default.createElement(InfoIcon, { color: colors.navy.dark, mr: 8, style: { flexShrink: 0 } });
|
|
6092
|
-
}
|
|
6093
|
-
}
|
|
6094
|
-
NotificationVariantStyles(alertType);
|
|
6095
|
-
return (React__default.createElement(StyledNotification, __assign({ alertType: alertType }, props),
|
|
6096
|
-
notificationIcon(),
|
|
6177
|
+
var StyledNotification = styled.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n&&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n}"], ["\n&&& {\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n width: fit-container;\n border-radius: 5px;\n padding: 24px 16px;\n display:flex;\n flex-direction: row;\n ", ";\n ", "\n ", "\n}"])), fontStyles.p.medium.fontSize, fontStyles.p.medium.fontFamily, fontStyles.p.medium.lineHeight, function (props) { return props.alertType ? notificationVariantStyles(props.alertType) : {}; }, SharedStyles, SizerCss);
|
|
6178
|
+
var AlertNotification = function (_a) {
|
|
6179
|
+
var href = _a.href, linkText = _a.linkText, children = _a.children, _b = _a.alertType, alertType = _b === void 0 ? "neutral" : _b, _c = _a.learnMore, learnMore = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? {} : _d, props = __rest(_a, ["href", "linkText", "children", "alertType", "learnMore", "style"]);
|
|
6180
|
+
return (React__default.createElement(StyledNotification, __assign({ alertType: alertType, style: style }, props),
|
|
6181
|
+
React__default.createElement(NotificationIcon, { alertType: alertType }),
|
|
6097
6182
|
children,
|
|
6098
|
-
learnMore
|
|
6099
|
-
|
|
6100
|
-
:
|
|
6101
|
-
linkText ?
|
|
6102
|
-
React__default.createElement(LinkWithIcon, { href: href, style: { marginLeft: "auto" }, pl: 24, flexShrink: true }, linkText)
|
|
6103
|
-
: null));
|
|
6104
|
-
}
|
|
6183
|
+
React__default.createElement(NotificationExtraContent, { href: href, learnMore: learnMore, linkText: linkText })));
|
|
6184
|
+
};
|
|
6105
6185
|
var templateObject_1$L;
|
|
6106
6186
|
|
|
6107
6187
|
function useNumberInput(props) {
|
|
@@ -7285,5 +7365,5 @@ function SimpleWindowedTable(_a) {
|
|
|
7285
7365
|
}
|
|
7286
7366
|
var templateObject_1$V;
|
|
7287
7367
|
|
|
7288
|
-
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconDoc, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
|
|
7368
|
+
export { AddIcon, AddNoteIcon, AddShoppingCartIcon, AddTaskIcon, AlertIcon, AlertNotification, ArrowIcon, Artwork, SKUAsyncSelect as AsyncSelect, Avatar, AwaitingProofIcon, Backdrop, Background, Badge, BotIcon, Box, BulletIcon, Button, ButtonsGroup, Calendar, CalendarDayBody, CalendarDaysBody, CalendarDaysHeader, CalendarIcon, CalendarTask, CalendarWrapper, CancelButton, ChangeRequestedIcon, ChatIcon, CheckMark, CheckboxIcon, CheckboxLabel, CheckmarkIcon, ChevronIcon, CircleProgressIcon, ClientApprovedIcon, ClipboardIcon, ClockIcon, Col, CollaborateIcon, CollapseStyled, CollapseWrapper, Collapsible, CollapsibleArrowIcon, CollapsibleLabel, CollapsiblePanel, CollapsiblePanelTitle, CollapsiblePanels, Collapsible$1 as CollapsibleV2, Collapsibles, Column, ColumnSelectIcon, CommentIcon, CommunityIcon, CompletedCheckmarkIcon, ConfirmPopup, ConnectedIcon, ConnectedPlusIcon, CouponIcon, SKUCreatableSelect as CreatableSelect, CreditCardIcon, Csku, CustomDateInput, Datepicker, DaysBodyWrapper, DaysHeaderWrapper, DefaultCalendarFooter, DefaultCalendarHeader, DefaultStar, DollarIcon, DoneButton, Dot, DoubleArrowIcon, DownloadIcon, DragIcon, DraggableTasksCalendar, DropArea, DropDownContent, Dropdown, DropdownItem, Dropzoned, DropzonedPreviews, EPOIcon, EditIcon, EllipsisIcon, EpsIcon, ErrorBoundary, EstimateCircleIcon, EyeIcon, FeedPost, FileUploadIcon, FilledChevronIcon, FolderIcon, GalleryIcon, GearIcon, GlobalStyle, Grid, GridCell, GridIcon, GridItem, GridRow, GridTable, GridTableContainer, H1, H2, H3, H4, H5, H6, HandleIcon, HeaderWrapper, HeadlessTable, HelpIcon, HistoryIcon, IconButton, IconDoc, Img, InfoIcon, Input, InputIconLabel, InputIconLabelContainer, InputStepper, InputStepperStyled, IntegrationsIcon, InventoryIcon, Label, LabeledAsyncSelect, LabeledCheckbox, LabeledCreatableSelect, LabeledIconInput, LabeledInput, LabeledMultiProgress, LabeledProgress, LabeledRadio, LabeledRadioGroup, LabeledRadioInButton, LabeledRadioInButtonGroup, LabeledSelect, LabeledTextarea, LightIndicator, Link, LinkWithIcon, ListIcon, Loading, LockIcon, MailIcon, MarketingStatusIcon, MenuIcon, MultiProgress, NavConnectIcon, NavFinanceIcon, NavManagementIcon, NavProdIcon, NavResourcesIcon, NavSalesIcon, NoteIcon, Number$1 as Number, NumberInput, OpportunityCircleIcon, OrderStatusIcon, Overlay, Padding, Page, PanelContact, PanelTileContact, PendingApprovalIcon, PercentIcon, PinIcon, Popup, PopupHeader, PresentationCircleIcon, Product, Progress, PromostandardsIcon, ProofReceivedIcon, ProofingCompleteIcon, Publisher, Radio, RadioIcon, RadioLabel, ReceiptLongIcon, ResponsiveTable, Row, SHARED_STYLE_MAPS, SalesArrowIcon, SalesOrderCircleIcon, SearchIcon, SKUSelect as Select, SharedStyles, ShopIcon, ShoppingCartIcon, ShowPopup, SidePanel, SimpleWindowedTable, SimpleWindowedTableStyles, SizerCss, SizerWrapper, Sparkles, Spinner, StarIcon, StarRating, StateDropdown, StatusDropdown, StyledCalendarTaskBody, StyledDayBody, StyledDayText, StyledDropArea, StyledDropdown, StyledPanel, StyledTask, SubtractIcon, SVG as SvgIcon, TBody, TD, TH, THSorted, THead, TR, Tab, TabBar, Table, TableIcon, Tabs, TargetIcon, Task, TaskBody, TaskIcon, TaskLabel, TaskName, TasksCalendar, TasksCalendarDayBody, TasksCalendarFooter, TasksCalendarHeader, TemplateIcon, Text, Textarea, Theme, Thermometer, TilesIcon, Toggle, ToggleLink, TrashIcon, UserIcon, UsersIcon, VirtualTable, VirtualTableStyles, Wrapper, XIcon, colors, createMeasurementStyle, datepickerStyles, fontFamilies, fontStyles, fonts, getColor, getFontStyle, getThemeColor, getThemeFontFamily, getThemeFontSize, getThemeFontStyle, getThemeProperty, parseCskuStyles, sizes$1 as sizes, themeOptions, toggleSizes, useCalendar, useClickOutside, useDelayUnmount, useFallbackRef, useLongPress, usePrefersReducedMotion, useRandomInterval, useWindowSize };
|
|
7289
7369
|
//# sourceMappingURL=index.es.js.map
|