@saleor/macaw-ui 0.5.2 → 0.6.0
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +3 -3
- package/dist/types/Chip/ColorSwatch.d.ts +6 -0
- package/dist/types/Chip/common/ChipMovable.d.ts +5 -0
- package/dist/types/Chip/common/ChipRemovable.d.ts +6 -0
- package/dist/types/Chip/common/ChipSwatch.d.ts +7 -0
- package/dist/types/Chip/common/index.d.ts +3 -0
- package/dist/types/Indicator/Circle.d.ts +5 -0
- package/dist/types/Indicator/CircleFilled.d.ts +8 -0
- package/dist/types/Indicator/CircleOutline.d.ts +8 -0
- package/dist/types/Indicator/Indicator.d.ts +14 -0
- package/dist/types/Indicator/Indicator.stories.d.ts +11 -0
- package/dist/types/Indicator/IndicatorCircle.d.ts +7 -0
- package/dist/types/Indicator/IndicatorCircle.stories.d.ts +7 -0
- package/dist/types/Indicator/IndicatorFilled.d.ts +0 -0
- package/dist/types/Indicator/IndicatorOutlined.d.ts +9 -0
- package/dist/types/Indicator/IndicatorOutlined.stories.d.ts +18 -0
- package/dist/types/Indicator/index.d.ts +1 -0
- package/dist/types/Indicator/styles.d.ts +5 -0
- package/dist/types/Tooltip/Arrow.d.ts +11 -0
- package/dist/types/Tooltip/Tooltip.d.ts +17 -3
- package/dist/types/Tooltip/Tooltip.stories.d.ts +7 -5
- package/dist/types/Tooltip/styles.d.ts +9 -1
- package/dist/types/icons/20x20/BackIcon.d.ts +2 -0
- package/dist/types/icons/20x20/BackSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/BookmarksIcon.d.ts +2 -0
- package/dist/types/icons/20x20/BookmarksSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/CheckboxIcon.d.ts +2 -0
- package/dist/types/icons/20x20/CheckboxSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/ChevronIcon.d.ts +2 -0
- package/dist/{icons/RadioCheckedIcon.d.ts → types/icons/20x20/ChevronSmallIcon.d.ts} +1 -1
- package/dist/types/icons/20x20/CloseIcon.d.ts +2 -0
- package/dist/types/icons/20x20/CloseSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/DragIcon.d.ts +2 -0
- package/dist/types/icons/20x20/DragSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/FilterIcon.d.ts +2 -0
- package/dist/types/icons/20x20/FilterSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/MinusIcon.d.ts +2 -0
- package/dist/types/icons/20x20/MinusSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/MoreIcon.d.ts +2 -0
- package/dist/types/icons/20x20/MoreSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/NextIcon.d.ts +2 -0
- package/dist/types/icons/20x20/NextSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/PlusIcon.d.ts +2 -0
- package/dist/types/icons/20x20/PlusSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/SearchIcon.d.ts +2 -0
- package/dist/types/icons/20x20/SearchSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/SortBigIcon.d.ts +2 -0
- package/dist/types/icons/20x20/SortBigSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/SortSmallIcon.d.ts +2 -0
- package/dist/types/icons/20x20/SortSmallSmallIcon.d.ts +1 -0
- package/dist/types/icons/20x20/index.d.ts +14 -0
- package/dist/types/icons/24x24/AddEnvironmentIcon.d.ts +1 -0
- package/dist/{icons/MoreIcon.d.ts → types/icons/24x24/AppsIcon.d.ts} +1 -1
- package/dist/{icons → types/icons/24x24}/ArrowRightIcon.d.ts +0 -0
- package/dist/types/icons/24x24/BackspaceIcon.d.ts +1 -0
- package/dist/types/icons/24x24/BagIcon.d.ts +1 -0
- package/dist/types/icons/24x24/BillingIcon.d.ts +1 -0
- package/dist/{icons/CheckboxIcon.d.ts → types/icons/24x24/BookmarkIcon.d.ts} +1 -1
- package/dist/types/icons/24x24/CalendarIcon.d.ts +1 -0
- package/dist/{icons/ImageIcon.d.ts → types/icons/24x24/CheckIcon.d.ts} +1 -1
- package/dist/types/icons/24x24/ChevronIcon.d.ts +1 -0
- package/dist/types/icons/24x24/Close2Icon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/CloseIcon.d.ts +0 -0
- package/dist/types/icons/24x24/CodeIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ColumnsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/CopyIcon.d.ts +1 -0
- package/dist/types/icons/24x24/CustomersIcon.d.ts +1 -0
- package/dist/types/icons/24x24/DashboardIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/DeleteIcon.d.ts +0 -0
- package/dist/types/icons/24x24/DeveloperIcon.d.ts +1 -0
- package/dist/types/icons/24x24/DiscountsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/DownloadIcon.d.ts +1 -0
- package/dist/types/icons/24x24/DragIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/EditIcon.d.ts +0 -0
- package/dist/types/icons/24x24/EnvironmentIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ExpandIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ExpendableIcon.d.ts +1 -0
- package/dist/types/icons/24x24/EyeIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/FilteringIcon.d.ts +0 -0
- package/dist/types/icons/24x24/GenerateIcon.d.ts +1 -0
- package/dist/types/icons/24x24/GithubIcon.d.ts +1 -0
- package/dist/types/icons/24x24/GridIcon.d.ts +1 -0
- package/dist/types/icons/24x24/HelpIcon.d.ts +1 -0
- package/dist/{icons/RadioIcon.d.ts → types/icons/24x24/HowToIcon.d.ts} +1 -1
- package/dist/types/icons/24x24/LinkIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ListIcon.d.ts +1 -0
- package/dist/types/icons/24x24/MailIcon.d.ts +1 -0
- package/dist/types/icons/24x24/MigrateIcon.d.ts +1 -0
- package/dist/types/icons/24x24/MinusIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ModelsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/MoreHorizontalIcon.d.ts +1 -0
- package/dist/types/icons/24x24/NavigationIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/NavigatorIcon.d.ts +0 -0
- package/dist/types/icons/24x24/NextIcon.d.ts +1 -0
- package/dist/types/icons/24x24/NoConnectionIcon.d.ts +1 -0
- package/dist/types/icons/24x24/NotificationsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/OrdersIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PagesIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PermissionsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PhotoIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PlayIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/PlusIcon.d.ts +0 -0
- package/dist/types/icons/24x24/PresetIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PreviousIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PrinterIcon.d.ts +1 -0
- package/dist/types/icons/24x24/PrivacyIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ProcessIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ProductIcon.d.ts +1 -0
- package/dist/types/icons/24x24/RefreshIcon.d.ts +1 -0
- package/dist/types/icons/24x24/RemoveMemberIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ReplyIcon.d.ts +1 -0
- package/dist/{icons → types/icons/24x24}/SearchIcon.d.ts +0 -0
- package/dist/types/icons/24x24/SettingsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/SnapshotsIcon.d.ts +1 -0
- package/dist/types/icons/24x24/SortDownIcon.d.ts +1 -0
- package/dist/types/icons/24x24/SortUpIcon.d.ts +1 -0
- package/dist/types/icons/24x24/TasksIcon.d.ts +1 -0
- package/dist/types/icons/24x24/TimeIcon.d.ts +1 -0
- package/dist/types/icons/24x24/ToIcon.d.ts +1 -0
- package/dist/types/icons/24x24/TransferIcon.d.ts +1 -0
- package/dist/types/icons/24x24/TranslateIcon.d.ts +1 -0
- package/dist/types/icons/24x24/TranslationIcon.d.ts +1 -0
- package/dist/types/icons/24x24/WebsiteIcon.d.ts +1 -0
- package/dist/types/icons/24x24/WifiIcon.d.ts +1 -0
- package/dist/types/icons/24x24/index.d.ts +73 -0
- package/dist/types/icons/32x32/AttributesIcon.d.ts +2 -0
- package/dist/{icons/CheckboxCheckedIcon.d.ts → types/icons/32x32/AttributesLargeIcon.d.ts} +1 -1
- package/dist/types/icons/32x32/CustomerIcon.d.ts +2 -0
- package/dist/types/icons/32x32/CustomerLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/DigitalIcon.d.ts +2 -0
- package/dist/types/icons/32x32/DigitalLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/DiscountIcon.d.ts +2 -0
- package/dist/types/icons/32x32/DiscountLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/FilteringIcon.d.ts +2 -0
- package/dist/types/icons/32x32/FilteringLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/GiftCardIcon.d.ts +2 -0
- package/dist/types/icons/32x32/GiftCardLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/NavigationIcon.d.ts +2 -0
- package/dist/types/icons/32x32/NavigationLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/NotesIcon.d.ts +2 -0
- package/dist/types/icons/32x32/NotesLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/OmnichannelIcon.d.ts +2 -0
- package/dist/types/icons/32x32/OmnichannelLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/PermissionIcon.d.ts +2 -0
- package/dist/types/icons/32x32/PermissionLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/ProductIcon.d.ts +2 -0
- package/dist/types/icons/32x32/ProductLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/SearchIcon.d.ts +2 -0
- package/dist/types/icons/32x32/SearchLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/ShippingIcon.d.ts +2 -0
- package/dist/types/icons/32x32/ShippingLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/SiteSettingsIcon.d.ts +2 -0
- package/dist/types/icons/32x32/SiteSettingsLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/StaffMembersIcon.d.ts +2 -0
- package/dist/types/icons/32x32/StaffMembersLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/TaxesIcon.d.ts +2 -0
- package/dist/types/icons/32x32/TaxesLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/TokenIcon.d.ts +2 -0
- package/dist/types/icons/32x32/TokenLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/WarehouseIcon.d.ts +2 -0
- package/dist/types/icons/32x32/WarehouseLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/WifiIcon.d.ts +2 -0
- package/dist/types/icons/32x32/WifiLargeIcon.d.ts +1 -0
- package/dist/types/icons/32x32/index.d.ts +19 -0
- package/dist/types/icons/index.d.ts +9 -67
- package/dist/types/icons/indicator/AttentionIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/ErrorIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/FailIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/HelpIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/SuccessIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/WarningIndicator.d.ts +2 -0
- package/dist/types/icons/indicator/index.d.ts +2 -0
- package/dist/types/icons/indicator/regular/AttentionIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/ErrorIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/FailIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/FailOutlineIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/HelpIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/SuccessIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/WarningIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/regular/index.d.ts +6 -0
- package/dist/types/icons/indicator/small/ErrorSmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/OffSmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/On2SmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/OnSmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/SuccessSmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/WarningSmallIndicatorIcon.d.ts +2 -0
- package/dist/types/icons/indicator/small/index.d.ts +3 -0
- package/dist/types/icons/indicator.d.ts +11 -0
- package/dist/types/utils/mergeRefs.d.ts +1 -1
- package/dist/types/utils/useWatchMountRef.d.ts +2 -0
- package/package.json +21 -8
- package/src/.DS_Store +0 -0
- package/src/Chip/.DS_Store +0 -0
- package/src/Filter/FilterField/MultipleValueAutocompleteFilterField.tsx +42 -41
- package/src/Indicator/.DS_Store +0 -0
- package/src/Indicator/Circle.tsx +17 -0
- package/src/Indicator/CircleFilled.tsx +16 -0
- package/src/Indicator/CircleOutline.tsx +34 -0
- package/src/Indicator/Indicator.stories.tsx +49 -0
- package/src/Indicator/Indicator.tsx +65 -0
- package/src/Indicator/IndicatorCircle.stories.tsx +28 -0
- package/src/Indicator/IndicatorCircle.tsx +45 -0
- package/src/Indicator/IndicatorOutlined.stories.tsx +86 -0
- package/src/Indicator/IndicatorOutlined.tsx +63 -0
- package/src/Indicator/index.ts +1 -0
- package/src/Indicator/styles.ts +63 -0
- package/src/MultipleValueAutocomplete/MultipleValueAutocomplete.tsx +134 -133
- package/src/Pagination/PaginationRowNumberSelect.tsx +35 -34
- package/src/Tooltip/Arrow.tsx +54 -0
- package/src/Tooltip/Tooltip.stories.tsx +71 -8
- package/src/Tooltip/Tooltip.tsx +156 -15
- package/src/Tooltip/styles.ts +121 -9
- package/src/assets/.DS_Store +0 -0
- package/src/assets/icons/.DS_Store +0 -0
- package/src/assets/icons/20x20/back_small_icon.svg +1 -0
- package/src/assets/icons/20x20/bookmarks_small_icon.svg +1 -0
- package/src/assets/icons/20x20/checkbox_small_icon.svg +1 -0
- package/src/assets/icons/20x20/chevron_small_icon.svg +1 -0
- package/src/assets/icons/20x20/close_small_icon.svg +1 -0
- package/src/assets/icons/20x20/drag_small_icon.svg +1 -0
- package/src/assets/icons/20x20/filter_small_icon.svg +1 -0
- package/src/assets/icons/20x20/minus_small_icon.svg +1 -0
- package/src/assets/icons/20x20/more_small_icon.svg +1 -0
- package/src/assets/icons/20x20/next_small_icon.svg +1 -0
- package/src/assets/icons/20x20/plus_small_icon.svg +1 -0
- package/src/assets/icons/20x20/search_small_icon.svg +1 -0
- package/src/assets/icons/20x20/sort_big_small_icon.svg +1 -0
- package/src/assets/icons/20x20/sort_small_small_icon.svg +1 -0
- package/src/assets/icons/24x24/add_environment_icon.svg +1 -0
- package/src/assets/icons/24x24/apps_icon.svg +1 -0
- package/src/assets/icons/24x24/arrow_right_icon.svg +1 -0
- package/src/assets/icons/24x24/backspace_icon.svg +1 -0
- package/src/assets/icons/24x24/bag_icon.svg +1 -0
- package/src/assets/icons/24x24/billing_icon.svg +1 -0
- package/src/assets/icons/24x24/bookmark_icon.svg +1 -0
- package/src/assets/icons/24x24/calendar_icon.svg +1 -0
- package/src/assets/icons/24x24/check_icon.svg +1 -0
- package/src/assets/icons/24x24/chevron_icon.svg +1 -0
- package/src/assets/icons/24x24/close_2_icon.svg +1 -0
- package/src/assets/icons/24x24/close_icon.svg +1 -0
- package/src/assets/icons/24x24/code_icon.svg +1 -0
- package/src/assets/icons/24x24/columns_icon.svg +1 -0
- package/src/assets/icons/24x24/copy_icon.svg +1 -0
- package/src/assets/icons/24x24/customers_icon.svg +1 -0
- package/src/assets/icons/24x24/dashboard_icon.svg +1 -0
- package/src/assets/icons/24x24/delete_icon.svg +1 -0
- package/src/assets/icons/24x24/developer_icon.svg +1 -0
- package/src/assets/icons/24x24/discounts_icon.svg +1 -0
- package/src/assets/icons/24x24/download_icon.svg +1 -0
- package/src/assets/icons/24x24/drag_icon.svg +1 -0
- package/src/assets/icons/24x24/edit_icon.svg +1 -0
- package/src/assets/icons/24x24/environment_icon.svg +1 -0
- package/src/assets/icons/24x24/expand_icon.svg +1 -0
- package/src/assets/icons/24x24/expendable_icon.svg +1 -0
- package/src/assets/icons/24x24/eye_icon.svg +1 -0
- package/src/assets/icons/24x24/filtering_icon.svg +1 -0
- package/src/assets/icons/24x24/generate_icon.svg +1 -0
- package/src/assets/icons/24x24/github_icon.svg +1 -0
- package/src/assets/icons/24x24/grid_icon.svg +1 -0
- package/src/assets/icons/24x24/help_icon.svg +1 -0
- package/src/assets/icons/24x24/how to_icon.svg +1 -0
- package/src/assets/icons/24x24/link_icon.svg +1 -0
- package/src/assets/icons/24x24/list_icon.svg +1 -0
- package/src/assets/icons/24x24/mail_icon.svg +1 -0
- package/src/assets/icons/24x24/migrate_icon.svg +1 -0
- package/src/assets/icons/24x24/minus_icon.svg +1 -0
- package/src/assets/icons/24x24/models_icon.svg +1 -0
- package/src/assets/icons/24x24/more_horizontal_icon.svg +1 -0
- package/src/assets/icons/24x24/navigation_icon.svg +1 -0
- package/src/assets/icons/24x24/navigator_icon.svg +1 -0
- package/src/assets/icons/24x24/next_icon.svg +1 -0
- package/src/assets/icons/24x24/no_connection_icon.svg +1 -0
- package/src/assets/icons/24x24/notifications_icon.svg +1 -0
- package/src/assets/icons/24x24/orders_icon.svg +1 -0
- package/src/assets/icons/24x24/pages_icon.svg +1 -0
- package/src/assets/icons/24x24/permissions_icon.svg +1 -0
- package/src/assets/icons/24x24/photo_icon.svg +1 -0
- package/src/assets/icons/24x24/play_icon.svg +1 -0
- package/src/assets/icons/24x24/plus_icon.svg +1 -0
- package/src/assets/icons/24x24/preset_icon.svg +1 -0
- package/src/assets/icons/24x24/previous_icon.svg +1 -0
- package/src/assets/icons/24x24/printer_icon.svg +1 -0
- package/src/assets/icons/24x24/privacy_icon.svg +1 -0
- package/src/assets/icons/24x24/process_icon.svg +1 -0
- package/src/assets/icons/24x24/product_icon.svg +1 -0
- package/src/assets/icons/24x24/refresh_icon.svg +1 -0
- package/src/assets/icons/24x24/remove_member_icon.svg +1 -0
- package/src/assets/icons/24x24/reply_icon.svg +1 -0
- package/src/assets/icons/24x24/search_icon.svg +1 -0
- package/src/assets/icons/24x24/settings_icon.svg +1 -0
- package/src/assets/icons/24x24/snapshots_icon.svg +1 -0
- package/src/assets/icons/24x24/sort_down_icon.svg +1 -0
- package/src/assets/icons/24x24/sort_up_icon.svg +1 -0
- package/src/assets/icons/24x24/tasks_icon.svg +1 -0
- package/src/assets/icons/24x24/time_icon.svg +1 -0
- package/src/assets/icons/24x24/to_icon.svg +1 -0
- package/src/assets/icons/24x24/transfer_icon.svg +1 -0
- package/src/assets/icons/24x24/translate_icon.svg +1 -0
- package/src/assets/icons/24x24/translation_icon.svg +1 -0
- package/src/assets/icons/24x24/website_icon.svg +1 -0
- package/src/assets/icons/24x24/wifi_icon.svg +1 -0
- package/src/assets/icons/32x32/attributes_large_icon.svg +1 -0
- package/src/assets/icons/32x32/customer_large_icon.svg +1 -0
- package/src/assets/icons/32x32/digital_large_icon.svg +1 -0
- package/src/assets/icons/32x32/discount_large_icon.svg +1 -0
- package/src/assets/icons/32x32/filtering_large_icon.svg +1 -0
- package/src/assets/icons/32x32/gift card_large_icon.svg +1 -0
- package/src/assets/icons/32x32/navigation_large_icon.svg +1 -0
- package/src/assets/icons/32x32/notes_large_icon.svg +1 -0
- package/src/assets/icons/32x32/omnichannel_large_icon.svg +1 -0
- package/src/assets/icons/32x32/permission_large_icon.svg +1 -0
- package/src/assets/icons/32x32/product_large_icon.svg +1 -0
- package/src/assets/icons/32x32/search_large_icon.svg +1 -0
- package/src/assets/icons/32x32/shipping_large_icon.svg +1 -0
- package/src/assets/icons/32x32/site settings_large_icon.svg +1 -0
- package/src/assets/icons/32x32/staff members_large_icon.svg +1 -0
- package/src/assets/icons/32x32/taxes_large_icon.svg +1 -0
- package/src/assets/icons/32x32/token_large_icon.svg +1 -0
- package/src/assets/icons/32x32/warehouse_large_icon.svg +1 -0
- package/src/assets/icons/32x32/wifi_large_icon.svg +1 -0
- package/src/assets/icons/indicator/.DS_Store +0 -0
- package/src/assets/icons/indicator/regular/.DS_Store +0 -0
- package/src/assets/icons/indicator/regular/error_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/regular/fail_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/regular/fail_outline_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/regular/help_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/regular/success_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/regular/warning_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/small/.DS_Store +0 -0
- package/src/assets/icons/indicator/small/error_small_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/small/success_small_indicator_icon.svg +1 -0
- package/src/assets/icons/indicator/small/warning_small_indicator_icon.svg +1 -0
- package/src/icons/.DS_Store +0 -0
- package/src/icons/20x20/BackIcon.tsx +21 -0
- package/src/icons/20x20/BackSmallIcon.tsx +14 -0
- package/src/icons/20x20/BookmarksIcon.tsx +18 -0
- package/src/icons/20x20/BookmarksSmallIcon.tsx +11 -0
- package/src/icons/20x20/CheckboxIcon.tsx +21 -0
- package/src/icons/20x20/CheckboxSmallIcon.tsx +14 -0
- package/src/icons/20x20/ChevronIcon.tsx +21 -0
- package/src/icons/20x20/ChevronSmallIcon.tsx +14 -0
- package/src/icons/20x20/CloseIcon.tsx +20 -0
- package/src/icons/20x20/CloseSmallIcon.tsx +13 -0
- package/src/icons/20x20/DragIcon.tsx +20 -0
- package/src/icons/20x20/DragSmallIcon.tsx +13 -0
- package/src/icons/20x20/FilterIcon.tsx +20 -0
- package/src/icons/20x20/FilterSmallIcon.tsx +13 -0
- package/src/icons/20x20/MinusIcon.tsx +21 -0
- package/src/icons/20x20/MinusSmallIcon.tsx +14 -0
- package/src/icons/20x20/MoreIcon.tsx +20 -0
- package/src/icons/20x20/MoreSmallIcon.tsx +13 -0
- package/src/icons/20x20/NextIcon.tsx +21 -0
- package/src/icons/20x20/NextSmallIcon.tsx +14 -0
- package/src/icons/20x20/PlusIcon.tsx +21 -0
- package/src/icons/20x20/PlusSmallIcon.tsx +14 -0
- package/src/icons/20x20/SearchIcon.tsx +20 -0
- package/src/icons/20x20/SearchSmallIcon.tsx +13 -0
- package/src/icons/20x20/SortBigIcon.tsx +20 -0
- package/src/icons/20x20/SortBigSmallIcon.tsx +13 -0
- package/src/icons/20x20/SortSmallIcon.tsx +20 -0
- package/src/icons/20x20/SortSmallSmallIcon.tsx +13 -0
- package/src/icons/20x20/index.ts +14 -0
- package/src/icons/24x24/AddEnvironmentIcon.tsx +14 -0
- package/src/icons/24x24/AppsIcon.tsx +13 -0
- package/src/icons/24x24/ArrowRightIcon.tsx +14 -0
- package/src/icons/24x24/BackspaceIcon.tsx +14 -0
- package/src/icons/24x24/BagIcon.tsx +11 -0
- package/src/icons/24x24/BillingIcon.tsx +14 -0
- package/src/icons/24x24/BookmarkIcon.tsx +11 -0
- package/src/icons/24x24/CalendarIcon.tsx +14 -0
- package/src/icons/24x24/CheckIcon.tsx +14 -0
- package/src/icons/24x24/ChevronIcon.tsx +14 -0
- package/src/icons/24x24/Close2Icon.tsx +21 -0
- package/src/icons/24x24/CloseIcon.tsx +13 -0
- package/src/icons/24x24/CodeIcon.tsx +20 -0
- package/src/icons/24x24/ColumnsIcon.tsx +12 -0
- package/src/icons/24x24/CopyIcon.tsx +21 -0
- package/src/icons/24x24/CustomersIcon.tsx +15 -0
- package/src/icons/24x24/DashboardIcon.tsx +12 -0
- package/src/icons/24x24/DeleteIcon.tsx +14 -0
- package/src/icons/24x24/DeveloperIcon.tsx +26 -0
- package/src/icons/24x24/DiscountsIcon.tsx +13 -0
- package/src/icons/24x24/DownloadIcon.tsx +14 -0
- package/src/icons/24x24/DragIcon.tsx +13 -0
- package/src/icons/24x24/EditIcon.tsx +18 -0
- package/src/icons/24x24/EnvironmentIcon.tsx +18 -0
- package/src/icons/24x24/ExpandIcon.tsx +15 -0
- package/src/icons/24x24/ExpendableIcon.tsx +16 -0
- package/src/icons/24x24/EyeIcon.tsx +13 -0
- package/src/icons/24x24/FilteringIcon.tsx +14 -0
- package/src/icons/24x24/GenerateIcon.tsx +14 -0
- package/src/icons/24x24/GithubIcon.tsx +22 -0
- package/src/icons/24x24/GridIcon.tsx +43 -0
- package/src/icons/24x24/HelpIcon.tsx +17 -0
- package/src/icons/24x24/HowToIcon.tsx +21 -0
- package/src/icons/24x24/LinkIcon.tsx +14 -0
- package/src/icons/24x24/ListIcon.tsx +16 -0
- package/src/icons/24x24/MailIcon.tsx +13 -0
- package/src/icons/24x24/MigrateIcon.tsx +18 -0
- package/src/icons/24x24/MinusIcon.tsx +14 -0
- package/src/icons/24x24/ModelsIcon.tsx +20 -0
- package/src/icons/24x24/MoreHorizontalIcon.tsx +13 -0
- package/src/icons/24x24/NavigationIcon.tsx +13 -0
- package/src/icons/24x24/NavigatorIcon.tsx +14 -0
- package/src/icons/24x24/NextIcon.tsx +14 -0
- package/src/icons/24x24/NoConnectionIcon.tsx +18 -0
- package/src/icons/24x24/NotificationsIcon.tsx +14 -0
- package/src/icons/24x24/OrdersIcon.tsx +18 -0
- package/src/icons/24x24/PagesIcon.tsx +14 -0
- package/src/icons/24x24/PermissionsIcon.tsx +14 -0
- package/src/icons/24x24/PhotoIcon.tsx +14 -0
- package/src/icons/24x24/PlayIcon.tsx +13 -0
- package/src/icons/24x24/PlusIcon.tsx +14 -0
- package/src/icons/24x24/PresetIcon.tsx +17 -0
- package/src/icons/24x24/PreviousIcon.tsx +14 -0
- package/src/icons/24x24/PrinterIcon.tsx +14 -0
- package/src/icons/24x24/PrivacyIcon.tsx +15 -0
- package/src/icons/24x24/ProcessIcon.tsx +31 -0
- package/src/icons/24x24/ProductIcon.tsx +14 -0
- package/src/icons/24x24/RefreshIcon.tsx +14 -0
- package/src/icons/24x24/RemoveMemberIcon.tsx +16 -0
- package/src/icons/24x24/ReplyIcon.tsx +14 -0
- package/src/icons/24x24/SearchIcon.tsx +15 -0
- package/src/icons/24x24/SettingsIcon.tsx +16 -0
- package/src/icons/24x24/SnapshotsIcon.tsx +21 -0
- package/src/icons/24x24/SortDownIcon.tsx +13 -0
- package/src/icons/24x24/SortUpIcon.tsx +13 -0
- package/src/icons/24x24/TasksIcon.tsx +14 -0
- package/src/icons/24x24/TimeIcon.tsx +15 -0
- package/src/icons/24x24/ToIcon.tsx +14 -0
- package/src/icons/24x24/TransferIcon.tsx +14 -0
- package/src/icons/24x24/TranslateIcon.tsx +14 -0
- package/src/icons/24x24/TranslationIcon.tsx +15 -0
- package/src/icons/24x24/WebsiteIcon.tsx +35 -0
- package/src/icons/24x24/WifiIcon.tsx +14 -0
- package/src/icons/24x24/index.ts +73 -0
- package/src/icons/32x32/AttributesIcon.tsx +25 -0
- package/src/icons/32x32/AttributesLargeIcon.tsx +18 -0
- package/src/icons/32x32/CustomerIcon.tsx +21 -0
- package/src/icons/32x32/CustomerLargeIcon.tsx +14 -0
- package/src/icons/32x32/DigitalIcon.tsx +20 -0
- package/src/icons/32x32/DigitalLargeIcon.tsx +13 -0
- package/src/icons/32x32/DiscountIcon.tsx +24 -0
- package/src/icons/32x32/DiscountLargeIcon.tsx +17 -0
- package/src/icons/32x32/FilteringIcon.tsx +21 -0
- package/src/icons/32x32/FilteringLargeIcon.tsx +14 -0
- package/src/icons/32x32/GiftCardIcon.tsx +33 -0
- package/src/icons/32x32/GiftCardLargeIcon.tsx +26 -0
- package/src/icons/32x32/NavigationIcon.tsx +28 -0
- package/src/icons/32x32/NavigationLargeIcon.tsx +15 -0
- package/src/icons/32x32/NotesIcon.tsx +42 -0
- package/src/icons/32x32/NotesLargeIcon.tsx +35 -0
- package/src/icons/32x32/OmnichannelIcon.tsx +35 -0
- package/src/icons/32x32/OmnichannelLargeIcon.tsx +22 -0
- package/src/icons/32x32/PermissionIcon.tsx +28 -0
- package/src/icons/32x32/PermissionLargeIcon.tsx +15 -0
- package/src/icons/32x32/ProductIcon.tsx +20 -0
- package/src/icons/32x32/ProductLargeIcon.tsx +13 -0
- package/src/icons/32x32/SearchIcon.tsx +29 -0
- package/src/icons/32x32/SearchLargeIcon.tsx +15 -0
- package/src/icons/32x32/ShippingIcon.tsx +21 -0
- package/src/icons/32x32/ShippingLargeIcon.tsx +14 -0
- package/src/icons/32x32/SiteSettingsIcon.tsx +20 -0
- package/src/icons/32x32/SiteSettingsLargeIcon.tsx +14 -0
- package/src/icons/32x32/StaffMembersIcon.tsx +29 -0
- package/src/icons/32x32/StaffMembersLargeIcon.tsx +22 -0
- package/src/icons/32x32/TaxesIcon.tsx +44 -0
- package/src/icons/32x32/TaxesLargeIcon.tsx +37 -0
- package/src/icons/32x32/TokenIcon.tsx +21 -0
- package/src/icons/32x32/TokenLargeIcon.tsx +14 -0
- package/src/icons/32x32/WarehouseIcon.tsx +21 -0
- package/src/icons/32x32/WarehouseLargeIcon.tsx +14 -0
- package/src/icons/32x32/WifiIcon.tsx +21 -0
- package/src/icons/32x32/WifiLargeIcon.tsx +14 -0
- package/src/icons/32x32/index.ts +19 -0
- package/src/icons/index.ts +12 -67
- package/src/icons/indicator/index.ts +2 -0
- package/src/icons/indicator/regular/ErrorIndicatorIcon.tsx +24 -0
- package/src/icons/indicator/regular/FailIndicatorIcon.tsx +31 -0
- package/src/icons/indicator/regular/FailOutlineIndicatorIcon.tsx +31 -0
- package/src/icons/indicator/regular/HelpIndicatorIcon.tsx +30 -0
- package/src/icons/indicator/regular/SuccessIndicatorIcon.tsx +24 -0
- package/src/icons/indicator/regular/WarningIndicatorIcon.tsx +23 -0
- package/src/icons/indicator/regular/index.ts +6 -0
- package/src/icons/indicator/small/.DS_Store +0 -0
- package/src/icons/indicator/small/ErrorSmallIndicatorIcon.tsx +24 -0
- package/src/icons/indicator/small/SuccessSmallIndicatorIcon.tsx +24 -0
- package/src/icons/indicator/small/WarningSmallIndicatorIcon.tsx +23 -0
- package/src/icons/indicator/small/index.ts +3 -0
- package/src/utils/.DS_Store +0 -0
- package/src/utils/Decorator.tsx +1 -0
- package/src/utils/mergeRefs.ts +4 -4
- package/dist/ActionBar/ActionBar.d.ts +0 -8
- package/dist/ActionBar/ActionBar.stories.d.ts +0 -4
- package/dist/ActionBar/context.d.ts +0 -9
- package/dist/ActionBar/index.d.ts +0 -2
- package/dist/ActionBar/styles.d.ts +0 -2
- package/dist/Alert/Alert.d.ts +0 -8
- package/dist/Alert/Alert.stories.d.ts +0 -12
- package/dist/Alert/AlertBase.d.ts +0 -8
- package/dist/Alert/index.d.ts +0 -2
- package/dist/Alert/styles.d.ts +0 -2
- package/dist/Backlink/Backlink.d.ts +0 -8
- package/dist/Backlink/Backlink.stories.d.ts +0 -5
- package/dist/Backlink/context.d.ts +0 -5
- package/dist/Backlink/index.d.ts +0 -2
- package/dist/Backlink/styles.d.ts +0 -2
- package/dist/BaseList/BaseList.d.ts +0 -26
- package/dist/BaseList/context.d.ts +0 -7
- package/dist/BaseList/index.d.ts +0 -1
- package/dist/BaseList/styles.d.ts +0 -5
- package/dist/Button/Button.d.ts +0 -16
- package/dist/Button/index.d.ts +0 -1
- package/dist/Button/styles.d.ts +0 -2
- package/dist/ConfirmButton/ConfirmButton.d.ts +0 -11
- package/dist/ConfirmButton/ConfirmButton.stories.d.ts +0 -8
- package/dist/ConfirmButton/index.d.ts +0 -1
- package/dist/ConfirmButton/styles.d.ts +0 -2
- package/dist/DialogHeader/DialogHeader.d.ts +0 -6
- package/dist/DialogHeader/index.d.ts +0 -1
- package/dist/DialogHeader/styles.d.ts +0 -1
- package/dist/DialogTable/DialogTable.d.ts +0 -6
- package/dist/DialogTable/index.d.ts +0 -1
- package/dist/DialogTable/styles.d.ts +0 -1
- package/dist/Filter/Filter.d.ts +0 -10
- package/dist/Filter/Filter.stories.d.ts +0 -5
- package/dist/Filter/FilterBar.d.ts +0 -11
- package/dist/Filter/FilterContent.d.ts +0 -7
- package/dist/Filter/FilterField/MultipleSelectFilterField.d.ts +0 -6
- package/dist/Filter/FilterField/RangeFilterField.d.ts +0 -7
- package/dist/Filter/FilterField/SelectFilterField.d.ts +0 -6
- package/dist/Filter/FilterField/TextFilterField.d.ts +0 -6
- package/dist/Filter/FilterMenu.d.ts +0 -9
- package/dist/Filter/context.d.ts +0 -4
- package/dist/Filter/index.d.ts +0 -4
- package/dist/Filter/styles.d.ts +0 -2
- package/dist/Filter/types.d.ts +0 -49
- package/dist/Filter/utils.d.ts +0 -8
- package/dist/IconButton/IconButton.d.ts +0 -8
- package/dist/IconButton/index.d.ts +0 -1
- package/dist/IconButton/partials.d.ts +0 -14
- package/dist/IconButton/styles.d.ts +0 -2
- package/dist/LayoutButton/LayoutButton.d.ts +0 -7
- package/dist/LayoutButton/index.d.ts +0 -1
- package/dist/LayoutButton/styles.d.ts +0 -2
- package/dist/List/List.d.ts +0 -13
- package/dist/List/List.stories.d.ts +0 -5
- package/dist/List/context.d.ts +0 -8
- package/dist/List/index.d.ts +0 -1
- package/dist/List/styles.d.ts +0 -1
- package/dist/Notification/Notification.d.ts +0 -3
- package/dist/Notification/Notification.stories.d.ts +0 -10
- package/dist/Notification/index.d.ts +0 -2
- package/dist/Notification/styles.d.ts +0 -2
- package/dist/Notification/types.d.ts +0 -16
- package/dist/OffsettedList/OffsettedList.d.ts +0 -12
- package/dist/OffsettedList/OffsettedList.stories.d.ts +0 -5
- package/dist/OffsettedList/index.d.ts +0 -1
- package/dist/OffsettedList/styles.d.ts +0 -2
- package/dist/PageTabs/PageTab.d.ts +0 -3
- package/dist/PageTabs/PageTab.stories.d.ts +0 -4
- package/dist/PageTabs/PageTabPanel.d.ts +0 -4
- package/dist/PageTabs/PageTabs.d.ts +0 -5
- package/dist/PageTabs/index.d.ts +0 -3
- package/dist/PageTabs/styles.d.ts +0 -2
- package/dist/Pagination/Pagination.d.ts +0 -10
- package/dist/Pagination/PaginationActions.d.ts +0 -11
- package/dist/Pagination/PaginationRowNumberSelect.d.ts +0 -11
- package/dist/Pagination/TablePagination.d.ts +0 -6
- package/dist/Pagination/index.d.ts +0 -4
- package/dist/Pagination/styles.d.ts +0 -2
- package/dist/PillLink/PillLink.d.ts +0 -15
- package/dist/PillLink/index.d.ts +0 -1
- package/dist/PillLink/styles.d.ts +0 -2
- package/dist/ResponsiveTable/ResponsiveTable.d.ts +0 -8
- package/dist/ResponsiveTable/index.d.ts +0 -1
- package/dist/ResponsiveTable/styles.d.ts +0 -2
- package/dist/Savebar/ButtonTooltipDecorator.d.ts +0 -6
- package/dist/Savebar/Savebar.d.ts +0 -14
- package/dist/Savebar/Savebar.stories.d.ts +0 -6
- package/dist/Savebar/index.d.ts +0 -1
- package/dist/Savebar/styles.d.ts +0 -2
- package/dist/ScrollShadow/ScrollShadow.d.ts +0 -6
- package/dist/ScrollShadow/index.d.ts +0 -1
- package/dist/ScrollShadow/styles.d.ts +0 -1
- package/dist/Sidebar/ExpandButton.d.ts +0 -6
- package/dist/Sidebar/MenuItem.d.ts +0 -11
- package/dist/Sidebar/Sidebar.d.ts +0 -6
- package/dist/Sidebar/Sidebar.stories.d.ts +0 -6
- package/dist/Sidebar/fixtures.d.ts +0 -2
- package/dist/Sidebar/index.d.ts +0 -4
- package/dist/Sidebar/types.d.ts +0 -16
- package/dist/SidebarDrawer/MenuItemBtn.d.ts +0 -7
- package/dist/SidebarDrawer/SidebarDrawer.d.ts +0 -4
- package/dist/SidebarDrawer/SidebarDrawer.stories.d.ts +0 -4
- package/dist/SidebarDrawer/index.d.ts +0 -2
- package/dist/SidebarDrawer/styles.d.ts +0 -2
- package/dist/SquareButton/SquareButton.d.ts +0 -3
- package/dist/SquareButton/SquareButton.stories.d.ts +0 -5
- package/dist/SquareButton/index.d.ts +0 -1
- package/dist/StatusChip/StatusChip.d.ts +0 -3
- package/dist/StatusChip/StatusChip.stories.d.ts +0 -8
- package/dist/StatusChip/index.d.ts +0 -2
- package/dist/StatusChip/styles.d.ts +0 -3
- package/dist/StatusChip/types.d.ts +0 -8
- package/dist/Tooltip/Tooltip.d.ts +0 -6
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -7
- package/dist/Tooltip/index.d.ts +0 -1
- package/dist/Tooltip/styles.d.ts +0 -3
- package/dist/UserChipMenu/UserChipMenu.d.ts +0 -9
- package/dist/UserChipMenu/UserChipMenu.stories.d.ts +0 -6
- package/dist/UserChipMenu/UserChipMenuItem.d.ts +0 -6
- package/dist/UserChipMenu/context.d.ts +0 -4
- package/dist/UserChipMenu/index.d.ts +0 -2
- package/dist/UserChipMenu/styles.d.ts +0 -2
- package/dist/extensions/index.d.ts +0 -3
- package/dist/extensions/sendMessage.d.ts +0 -3
- package/dist/extensions/types.d.ts +0 -22
- package/dist/extensions/useExtensionMessage.d.ts +0 -2
- package/dist/icons/ArrowDropdownIcon.d.ts +0 -2
- package/dist/icons/CheckboxIndeterminateIcon.d.ts +0 -1
- package/dist/icons/CompleteIcon.d.ts +0 -2
- package/dist/icons/InfoIcon.d.ts +0 -2
- package/dist/icons/Logo.d.ts +0 -2
- package/dist/icons/LogoLight.d.ts +0 -2
- package/dist/icons/NotAllowedIcon.d.ts +0 -2
- package/dist/icons/NotAllowedInvertedIcon.d.ts +0 -2
- package/dist/icons/WarningIcon.d.ts +0 -2
- package/dist/icons/index.d.ts +0 -18
- package/dist/index.d.ts +0 -29
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -7
- package/dist/localStorageKeys.d.ts +0 -4
- package/dist/mjs/index.js +0 -5
- package/dist/mjs/index.js.map +0 -7
- package/dist/theme/Baseline.d.ts +0 -2
- package/dist/theme/ThemeProvider.d.ts +0 -17
- package/dist/theme/context.d.ts +0 -3
- package/dist/theme/createSaleorTheme/createSaleorTheme.d.ts +0 -3
- package/dist/theme/createSaleorTheme/index.d.ts +0 -2
- package/dist/theme/createSaleorTheme/overrides/buttons.d.ts +0 -3
- package/dist/theme/createSaleorTheme/overrides/controls.d.ts +0 -3
- package/dist/theme/createSaleorTheme/overrides/index.d.ts +0 -3
- package/dist/theme/createSaleorTheme/overrides/inputs.d.ts +0 -3
- package/dist/theme/createSaleorTheme/overrides/tables.d.ts +0 -3
- package/dist/theme/createSaleorTheme/palette.d.ts +0 -2
- package/dist/theme/createSaleorTheme/shadows.d.ts +0 -2
- package/dist/theme/createSaleorTheme/types.d.ts +0 -51
- package/dist/theme/index.d.ts +0 -4
- package/dist/theme/styles.d.ts +0 -5
- package/dist/theme/themes.d.ts +0 -3
- package/dist/theme/types.d.ts +0 -6
- package/dist/theme/utils.d.ts +0 -1
- package/dist/theme/utils.test.d.ts +0 -1
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/useElementScroll.d.ts +0 -12
- package/dist/tools/useLocalStorage.d.ts +0 -5
- package/dist/tools/useWindowScroll.d.ts +0 -4
- package/dist/types/StatusChip/styles.d.ts +0 -3
- package/dist/utils/Decorator.d.ts +0 -4
- package/dist/utils/useListStory.d.ts +0 -21
- package/src/icons/AddEnvironmentIcon.tsx +0 -12
- package/src/icons/AppsIcon.tsx +0 -12
- package/src/icons/ArrowRightIcon.tsx +0 -12
- package/src/icons/AttributesLargeIcon.tsx +0 -15
- package/src/icons/BackspaceIcon.tsx +0 -12
- package/src/icons/BillingIcon.tsx +0 -12
- package/src/icons/CalendarIcon.tsx +0 -12
- package/src/icons/ChevronIcon.tsx +0 -14
- package/src/icons/Close2Icon.tsx +0 -12
- package/src/icons/CloseIcon.tsx +0 -12
- package/src/icons/ColumnsIcon.tsx +0 -12
- package/src/icons/CopyIcon.tsx +0 -12
- package/src/icons/CustomersIcon.tsx +0 -12
- package/src/icons/DashboardIcon.tsx +0 -12
- package/src/icons/DeleteIcon.tsx +0 -12
- package/src/icons/DeveloperIcon.tsx +0 -38
- package/src/icons/DigitalLargeIcon.tsx +0 -15
- package/src/icons/DiscountsIcon.tsx +0 -20
- package/src/icons/DiscountsLargeIcon.tsx +0 -26
- package/src/icons/DownloadIcon.tsx +0 -12
- package/src/icons/DragIcon.tsx +0 -12
- package/src/icons/EditIcon.tsx +0 -12
- package/src/icons/EnvironmentIcon.tsx +0 -12
- package/src/icons/ExpandIcon.tsx +0 -22
- package/src/icons/EyeIcon.tsx +0 -12
- package/src/icons/FilteringIcon.tsx +0 -12
- package/src/icons/FilteringLargeIcon.tsx +0 -15
- package/src/icons/HelpIcon.tsx +0 -12
- package/src/icons/LinkIcon.tsx +0 -12
- package/src/icons/MailIcon.tsx +0 -16
- package/src/icons/MinusIcon.tsx +0 -12
- package/src/icons/MoreHorizontalIcon.tsx +0 -12
- package/src/icons/NavigationIcon.tsx +0 -26
- package/src/icons/NavigationLargeIcon.tsx +0 -15
- package/src/icons/NavigatorIcon.tsx +0 -14
- package/src/icons/NextIcon.tsx +0 -14
- package/src/icons/NoConnectionIcon.tsx +0 -25
- package/src/icons/NotesLargeIcon.tsx +0 -38
- package/src/icons/NotificationsIcon.tsx +0 -12
- package/src/icons/OmnichannelLargeIcon.tsx +0 -15
- package/src/icons/OrdersIcon.tsx +0 -12
- package/src/icons/PagesIcon.tsx +0 -12
- package/src/icons/PermissionLargeIcon.tsx +0 -15
- package/src/icons/PhotoIcon.tsx +0 -12
- package/src/icons/PlusIcon.tsx +0 -12
- package/src/icons/PreviousIcon.tsx +0 -14
- package/src/icons/PrinterIcon.tsx +0 -15
- package/src/icons/PrivacyIcon.tsx +0 -15
- package/src/icons/ProductIcon.tsx +0 -12
- package/src/icons/ProductLargeIcon.tsx +0 -16
- package/src/icons/RefreshIcon.tsx +0 -14
- package/src/icons/ReplyIcon.tsx +0 -12
- package/src/icons/SearchIcon.tsx +0 -12
- package/src/icons/SettingsIcon.tsx +0 -15
- package/src/icons/ShippingLargeIcon.tsx +0 -15
- package/src/icons/SnapshotsIcon.tsx +0 -12
- package/src/icons/TaxesLargeIcon.tsx +0 -15
- package/src/icons/TimeIcon.tsx +0 -12
- package/src/icons/TokenLargeIcon.tsx +0 -17
- package/src/icons/TransferIcon.tsx +0 -22
- package/src/icons/TranslationIcon.tsx +0 -12
- package/src/icons/WarehouseLargeIcon.tsx +0 -15
- package/src/icons/WebsiteIcon.tsx +0 -22
- package/src/icons/WifiIcon.tsx +0 -23
- package/src/icons/WifiLargeIcon.tsx +0 -33
|
@@ -15,39 +15,40 @@ export interface PaginationRowNumberSelectProps {
|
|
|
15
15
|
onChange?: (value: number) => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export const PaginationRowNumberSelect: React.FC<
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export const PaginationRowNumberSelect: React.FC<
|
|
19
|
+
PaginationRowNumberSelectProps
|
|
20
|
+
> = ({ className, choices, disabled, labels, rowNumber, onChange }) => {
|
|
21
|
+
const classes = useStyles({});
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
23
|
+
return (
|
|
24
|
+
<div className={clsx(classes.rowNumber, className)}>
|
|
25
|
+
<span className={classes.rowNumberLabel}>{labels.noOfRows}</span>
|
|
26
|
+
{onChange ? (
|
|
27
|
+
<Select
|
|
28
|
+
data-test-id="PaginationRowNumberSelect"
|
|
29
|
+
disabled={disabled}
|
|
30
|
+
inputProps={{
|
|
31
|
+
className: classes.rowNumberSelectLabel,
|
|
32
|
+
}}
|
|
33
|
+
className={classes.rowNumberSelect}
|
|
34
|
+
value={rowNumber}
|
|
35
|
+
onChange={(event) => onChange(event.target.value as number)}
|
|
36
|
+
>
|
|
37
|
+
{choices.length > 0 &&
|
|
38
|
+
choices.map((choice) => (
|
|
39
|
+
<MenuItem
|
|
40
|
+
value={choice}
|
|
41
|
+
key={choice}
|
|
42
|
+
data-test-id="rowNumberOption"
|
|
43
|
+
>
|
|
44
|
+
{choice}
|
|
45
|
+
</MenuItem>
|
|
46
|
+
))}
|
|
47
|
+
</Select>
|
|
48
|
+
) : (
|
|
49
|
+
` ${rowNumber}`
|
|
50
|
+
)}
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
53
54
|
PaginationRowNumberSelect.displayName = "PaginationRowNumberSelect";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Side } from "@floating-ui/react-dom-interactions";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import React, { forwardRef } from "react";
|
|
4
|
+
|
|
5
|
+
import { useTheme } from "../theme";
|
|
6
|
+
import { useArrowStyles } from "./styles";
|
|
7
|
+
import { TooltipProps } from "./Tooltip";
|
|
8
|
+
|
|
9
|
+
interface ArrowProps {
|
|
10
|
+
x: number | undefined;
|
|
11
|
+
y: number | undefined;
|
|
12
|
+
side: Side;
|
|
13
|
+
variant: TooltipProps["variant"];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const Arrow = forwardRef<HTMLDivElement, ArrowProps>(
|
|
17
|
+
({ x, y, side, variant }, ref) => {
|
|
18
|
+
const { themeType } = useTheme();
|
|
19
|
+
const classes = useArrowStyles({ variant, side });
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div
|
|
23
|
+
className={clsx(
|
|
24
|
+
classes.arrowContainer,
|
|
25
|
+
themeType === "dark" && classes.dark
|
|
26
|
+
)}
|
|
27
|
+
ref={ref}
|
|
28
|
+
style={{
|
|
29
|
+
top: y ?? "",
|
|
30
|
+
left: x ?? "",
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 8" fill="none">
|
|
34
|
+
<path
|
|
35
|
+
className={classes.backgroundPath}
|
|
36
|
+
fillRule="evenodd"
|
|
37
|
+
d="M12.25 7 8.6 2.133a2 2 0 0 0-3.2 0L1.75 7h10.5Z"
|
|
38
|
+
clipRule="evenodd"
|
|
39
|
+
/>
|
|
40
|
+
<path
|
|
41
|
+
className={classes.borderPath}
|
|
42
|
+
fillRule="evenodd"
|
|
43
|
+
d="M5.8 2.433c.6-.8 1.8-.8 2.4 0L11.25 6.5h1.25L9 1.833a2.5 2.5 0 0 0-4 0L1.5 6.5h1.25L5.8 2.433Z"
|
|
44
|
+
clipRule="evenodd"
|
|
45
|
+
/>
|
|
46
|
+
<path
|
|
47
|
+
className={classes.backgroundPath}
|
|
48
|
+
d="M12.5 6.5h-11l-.75 1h12.5l-.75-1Z"
|
|
49
|
+
/>
|
|
50
|
+
</svg>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
@@ -1,19 +1,82 @@
|
|
|
1
1
|
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
import isChromatic from "chromatic/isChromatic";
|
|
2
3
|
import React from "react";
|
|
3
4
|
|
|
4
5
|
import { SquareButton } from "../SquareButton";
|
|
6
|
+
import { makeStyles } from "../theme";
|
|
7
|
+
import { Decorator } from "../utils/Decorator";
|
|
5
8
|
import { Tooltip, TooltipProps } from "./Tooltip";
|
|
6
9
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
const Template: Story<TooltipProps> = (args) => {
|
|
11
|
+
return <Tooltip {...args} />;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const Default = Template.bind({});
|
|
15
|
+
Default.args = {
|
|
16
|
+
variant: undefined,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const WithHeader = Template.bind({});
|
|
20
|
+
WithHeader.args = {
|
|
21
|
+
variant: undefined,
|
|
22
|
+
header: "App Permissions",
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const Success = Template.bind({});
|
|
26
|
+
Success.args = {
|
|
27
|
+
variant: "success",
|
|
10
28
|
};
|
|
11
29
|
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
export const Error = Template.bind({});
|
|
31
|
+
Error.args = {
|
|
32
|
+
variant: "error",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const Warning = Template.bind({});
|
|
36
|
+
Warning.args = {
|
|
37
|
+
variant: "warning",
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const useStyles = makeStyles({
|
|
41
|
+
pageWrapper: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
width: "210vw",
|
|
44
|
+
height: "150vh",
|
|
45
|
+
},
|
|
46
|
+
storyWrapper: {
|
|
47
|
+
paddingTop: "10%",
|
|
48
|
+
paddingLeft: "90vw",
|
|
49
|
+
},
|
|
50
|
+
tip: {
|
|
51
|
+
position: "static",
|
|
52
|
+
left: "12px",
|
|
53
|
+
top: "12px",
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const TooltipDecorator = (storyFn: any) => {
|
|
58
|
+
const classes = useStyles();
|
|
59
|
+
|
|
60
|
+
if (isChromatic()) {
|
|
61
|
+
return storyFn();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div className={classes.pageWrapper}>
|
|
66
|
+
<div className={classes.tip}>Scroll to right to test tooltip</div>
|
|
67
|
+
<div className={classes.storyWrapper}>{storyFn()}</div>
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
16
71
|
|
|
17
72
|
export default {
|
|
18
73
|
title: "Tooltip",
|
|
19
|
-
|
|
74
|
+
component: Tooltip,
|
|
75
|
+
args: {
|
|
76
|
+
title: "Tooltip",
|
|
77
|
+
children: <SquareButton>Hover</SquareButton>,
|
|
78
|
+
placement: "top-start",
|
|
79
|
+
open: isChromatic() ? true : undefined,
|
|
80
|
+
},
|
|
81
|
+
decorators: [TooltipDecorator, Decorator],
|
|
82
|
+
} as Meta<TooltipProps>;
|
package/src/Tooltip/Tooltip.tsx
CHANGED
|
@@ -1,28 +1,169 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
arrow,
|
|
3
|
+
autoUpdate,
|
|
4
|
+
flip,
|
|
5
|
+
FloatingPortal,
|
|
6
|
+
offset,
|
|
7
|
+
Placement,
|
|
8
|
+
shift,
|
|
9
|
+
Side,
|
|
10
|
+
useDismiss,
|
|
11
|
+
useFloating,
|
|
12
|
+
useFocus,
|
|
13
|
+
useHover,
|
|
14
|
+
useInteractions,
|
|
15
|
+
useRole,
|
|
16
|
+
} from "@floating-ui/react-dom-interactions";
|
|
17
|
+
import clsx from "clsx";
|
|
3
18
|
import React from "react";
|
|
4
19
|
|
|
20
|
+
import { useTheme } from "../theme";
|
|
21
|
+
import { mergeRefs } from "../utils/mergeRefs";
|
|
22
|
+
import { Arrow } from "./Arrow";
|
|
5
23
|
import useStyles from "./styles";
|
|
6
24
|
|
|
7
|
-
export interface TooltipProps
|
|
8
|
-
variant?: "
|
|
25
|
+
export interface TooltipProps {
|
|
26
|
+
variant?: "success" | "warning" | "error";
|
|
27
|
+
placement?: Placement;
|
|
28
|
+
arrow?: boolean;
|
|
29
|
+
onClick?: React.MouseEventHandler<any>;
|
|
30
|
+
onOpen?: () => void;
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
open?: boolean;
|
|
33
|
+
initialOpen?: boolean;
|
|
9
34
|
disabled?: boolean;
|
|
35
|
+
children: React.ReactElement;
|
|
36
|
+
header?: React.ReactNode;
|
|
37
|
+
title?: React.ReactNode;
|
|
38
|
+
/** Ref for element that triggers opening the tooltip on hover */
|
|
39
|
+
referenceRef?: React.Ref<HTMLElement>;
|
|
40
|
+
/** Ref for tooltip div element */
|
|
41
|
+
floatingRef?: React.Ref<HTMLDivElement>;
|
|
10
42
|
}
|
|
11
43
|
|
|
12
44
|
export const Tooltip: React.FC<TooltipProps> = ({
|
|
13
|
-
|
|
45
|
+
variant,
|
|
46
|
+
placement: initialPlacement = "bottom-start",
|
|
47
|
+
arrow: hasArrow = true,
|
|
48
|
+
onOpen,
|
|
49
|
+
onClose,
|
|
50
|
+
onClick,
|
|
51
|
+
open: forceState,
|
|
52
|
+
initialOpen = false,
|
|
14
53
|
disabled = false,
|
|
15
|
-
|
|
16
|
-
|
|
54
|
+
children,
|
|
55
|
+
header,
|
|
56
|
+
title,
|
|
57
|
+
referenceRef,
|
|
58
|
+
floatingRef,
|
|
17
59
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
60
|
+
const { themeType } = useTheme();
|
|
61
|
+
|
|
62
|
+
const [stateOpen, setStateOpen] = React.useState(initialOpen);
|
|
63
|
+
const arrowRef = React.useRef<HTMLSpanElement | null>(null);
|
|
64
|
+
|
|
65
|
+
const open = forceState ?? stateOpen;
|
|
66
|
+
|
|
67
|
+
const {
|
|
68
|
+
x,
|
|
69
|
+
y,
|
|
70
|
+
placement,
|
|
71
|
+
strategy,
|
|
72
|
+
context,
|
|
73
|
+
update,
|
|
74
|
+
reference,
|
|
75
|
+
floating,
|
|
76
|
+
middlewareData: { arrow: { x: arrowX, y: arrowY } = {} },
|
|
77
|
+
} = useFloating({
|
|
78
|
+
placement: initialPlacement,
|
|
79
|
+
open,
|
|
80
|
+
onOpenChange: (isOpen) => {
|
|
81
|
+
setStateOpen(isOpen);
|
|
82
|
+
|
|
83
|
+
if (isOpen) {
|
|
84
|
+
onOpen?.();
|
|
85
|
+
} else {
|
|
86
|
+
onClose?.();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
middleware: [
|
|
90
|
+
offset(5),
|
|
91
|
+
flip(),
|
|
92
|
+
// padding matches padding of tooltip box
|
|
93
|
+
shift({ padding: 12 }),
|
|
94
|
+
// padding matches border-radius of tooltip box
|
|
95
|
+
arrow({ element: arrowRef, padding: 8 }),
|
|
96
|
+
],
|
|
97
|
+
whileElementsMounted: autoUpdate,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
101
|
+
useHover(context, { restMs: 10 }),
|
|
102
|
+
useFocus(context),
|
|
103
|
+
useRole(context, { role: "tooltip" }),
|
|
104
|
+
useDismiss(context),
|
|
105
|
+
]);
|
|
106
|
+
|
|
107
|
+
const side = React.useMemo<Side>(() => {
|
|
108
|
+
return placement.split("-")[0] as Side;
|
|
109
|
+
}, [placement]);
|
|
110
|
+
|
|
111
|
+
const classes = useStyles({ variant, side });
|
|
112
|
+
|
|
113
|
+
if (disabled) {
|
|
114
|
+
return children;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const mountReference = React.useCallback(
|
|
118
|
+
mergeRefs(reference, referenceRef),
|
|
119
|
+
[]
|
|
120
|
+
);
|
|
121
|
+
const mountFloating = React.useCallback(mergeRefs(floating, floatingRef), []);
|
|
122
|
+
const mountArrow = React.useCallback((el: HTMLDivElement) => {
|
|
123
|
+
arrowRef.current = el;
|
|
124
|
+
update();
|
|
125
|
+
}, []);
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
{React.cloneElement(
|
|
130
|
+
children,
|
|
131
|
+
getReferenceProps({
|
|
132
|
+
ref: mountReference,
|
|
133
|
+
...children.props,
|
|
134
|
+
})
|
|
135
|
+
)}
|
|
136
|
+
<FloatingPortal>
|
|
137
|
+
{open && (
|
|
138
|
+
<div
|
|
139
|
+
{...getFloatingProps({
|
|
140
|
+
ref: mountFloating,
|
|
141
|
+
className: clsx(themeType === "dark" && classes.dark),
|
|
142
|
+
style: {
|
|
143
|
+
position: strategy,
|
|
144
|
+
top: y ?? "",
|
|
145
|
+
left: x ?? "",
|
|
146
|
+
},
|
|
147
|
+
})}
|
|
148
|
+
onClick={onClick}
|
|
149
|
+
>
|
|
150
|
+
<div className={classes.tooltip}>
|
|
151
|
+
{header && <div className={classes.header}>{header}</div>}
|
|
152
|
+
{title}
|
|
153
|
+
</div>
|
|
154
|
+
{hasArrow && (
|
|
155
|
+
<Arrow
|
|
156
|
+
ref={mountArrow}
|
|
157
|
+
x={arrowX}
|
|
158
|
+
y={arrowY}
|
|
159
|
+
variant={variant}
|
|
160
|
+
side={side}
|
|
161
|
+
/>
|
|
162
|
+
)}
|
|
163
|
+
</div>
|
|
164
|
+
)}
|
|
165
|
+
</FloatingPortal>
|
|
166
|
+
</>
|
|
26
167
|
);
|
|
27
168
|
};
|
|
28
169
|
|
package/src/Tooltip/styles.ts
CHANGED
|
@@ -1,28 +1,140 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Side } from "@floating-ui/core";
|
|
2
|
+
|
|
3
|
+
import { dark, light, makeStyles, SaleorTheme } from "../theme";
|
|
2
4
|
import { TooltipProps } from "./Tooltip";
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
export type StyleProps = Pick<TooltipProps, "variant"> & { side: Side };
|
|
7
|
+
|
|
8
|
+
export const getBorderColor = (isDark: boolean) => (props: StyleProps) => {
|
|
9
|
+
if (isDark) {
|
|
10
|
+
switch (props.variant) {
|
|
11
|
+
case "success":
|
|
12
|
+
return dark.success.light;
|
|
13
|
+
case "warning":
|
|
14
|
+
return dark.warning.light;
|
|
15
|
+
case "error":
|
|
16
|
+
return dark.fail.light;
|
|
17
|
+
default:
|
|
18
|
+
return "#797d7d"; // dark.main[3] without alpha
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
switch (props.variant) {
|
|
23
|
+
case "success":
|
|
24
|
+
return light.success.mid;
|
|
25
|
+
case "warning":
|
|
26
|
+
return light.warning.mid;
|
|
27
|
+
case "error":
|
|
28
|
+
return light.fail.mid;
|
|
29
|
+
default:
|
|
30
|
+
return "#7d7f7f"; // light.main[3] without alpha
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const getBackgroundColor =
|
|
35
|
+
(isDark: boolean, theme: SaleorTheme) => (props: StyleProps) => {
|
|
36
|
+
if (isDark) {
|
|
37
|
+
switch (props.variant) {
|
|
38
|
+
case "success":
|
|
39
|
+
return dark.success.dark;
|
|
40
|
+
case "warning":
|
|
41
|
+
return dark.warning.dark;
|
|
42
|
+
case "error":
|
|
43
|
+
return dark.fail.dark;
|
|
44
|
+
default:
|
|
45
|
+
return dark.main[1];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return theme.palette.common.white;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const useStyles = makeStyles<StyleProps, "tooltip" | "dark" | "header">(
|
|
5
53
|
(theme) => ({
|
|
54
|
+
dark: {
|
|
55
|
+
"& $tooltip": {
|
|
56
|
+
color: (props) => {
|
|
57
|
+
return props.variant ? dark.main[2] : light.main[2];
|
|
58
|
+
},
|
|
59
|
+
backgroundColor: getBackgroundColor(true, theme),
|
|
60
|
+
borderColor: getBorderColor(true),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
6
63
|
tooltip: {
|
|
7
|
-
backgroundColor: (
|
|
64
|
+
backgroundColor: getBackgroundColor(false, theme),
|
|
65
|
+
padding: theme.spacing(1.5),
|
|
66
|
+
borderRadius: theme.spacing(1),
|
|
67
|
+
border: `1px solid ${theme.palette.saleor.main[3]}`,
|
|
68
|
+
borderWidth: "1px",
|
|
69
|
+
fontWeight: 500,
|
|
70
|
+
borderColor: getBorderColor(false),
|
|
71
|
+
|
|
72
|
+
color: (props) => {
|
|
8
73
|
switch (props.variant) {
|
|
9
|
-
case "info":
|
|
10
|
-
return theme.palette.info.main;
|
|
11
74
|
case "success":
|
|
12
|
-
return theme.palette.success.
|
|
75
|
+
return theme.palette.success.dark;
|
|
13
76
|
case "warning":
|
|
14
|
-
return theme.palette.warning.
|
|
77
|
+
return theme.palette.warning.dark;
|
|
15
78
|
case "error":
|
|
16
|
-
return theme.palette.error.
|
|
79
|
+
return theme.palette.error.dark;
|
|
17
80
|
default:
|
|
18
|
-
return theme.palette.
|
|
81
|
+
return theme.palette.saleor.main[1];
|
|
19
82
|
}
|
|
20
83
|
},
|
|
21
84
|
},
|
|
85
|
+
header: {
|
|
86
|
+
fontSize: theme.typography.caption.fontSize,
|
|
87
|
+
letterSpacing: "0.1em",
|
|
88
|
+
fontWeight: 500,
|
|
89
|
+
textTransform: "uppercase",
|
|
90
|
+
marginBottom: theme.spacing(0.5),
|
|
91
|
+
color: light.main[3],
|
|
92
|
+
},
|
|
22
93
|
}),
|
|
23
94
|
{
|
|
24
95
|
name: "Tooltip",
|
|
25
96
|
}
|
|
26
97
|
);
|
|
27
98
|
|
|
99
|
+
export const useArrowStyles = makeStyles<StyleProps>(
|
|
100
|
+
(theme) => ({
|
|
101
|
+
borderPath: {
|
|
102
|
+
fill: getBorderColor(false),
|
|
103
|
+
},
|
|
104
|
+
backgroundPath: {
|
|
105
|
+
fill: getBackgroundColor(false, theme),
|
|
106
|
+
},
|
|
107
|
+
arrowContainer: {
|
|
108
|
+
width: "14px",
|
|
109
|
+
height: "8px",
|
|
110
|
+
position: "absolute",
|
|
111
|
+
transform: (props) => {
|
|
112
|
+
switch (props.side) {
|
|
113
|
+
case "top":
|
|
114
|
+
return "rotate(180deg)";
|
|
115
|
+
case "bottom":
|
|
116
|
+
return "rotate(0deg)";
|
|
117
|
+
case "left":
|
|
118
|
+
return "rotate(90deg)";
|
|
119
|
+
case "right":
|
|
120
|
+
return "rotate(-90deg)";
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
top: (props) => (props.side === "bottom" && "-13px") || "",
|
|
124
|
+
bottom: (props) => (props.side === "top" && "-13px") || "",
|
|
125
|
+
left: (props) => (props.side === "right" && "-16px") || "",
|
|
126
|
+
right: (props) => (props.side === "left" && "-16px") || "",
|
|
127
|
+
},
|
|
128
|
+
dark: {
|
|
129
|
+
"& $borderPath": {
|
|
130
|
+
fill: getBorderColor(true),
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
"& $backgroundPath": {
|
|
134
|
+
fill: getBackgroundColor(true, theme),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
}),
|
|
138
|
+
{ name: "TooltipArrow" }
|
|
139
|
+
);
|
|
28
140
|
export default useStyles;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.5 5.5 8 10l4.5 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 17.5h-.75a.75.75 0 0 0 1.085.67L5 17.5Zm5-2.5.335-.67a.75.75 0 0 0-.67 0L10 15Zm5 2.5-.335.67a.75.75 0 0 0 1.085-.67H15ZM4.25 4v13.5h1.5V4h-1.5Zm1.085 14.17 5-2.5-.67-1.34-5 2.5.67 1.34Zm4.33-2.5 5 2.5.67-1.34-5-2.5-.67 1.34Zm6.085 1.83V4h-1.5v13.5h1.5ZM13 1.25H7v1.5h6v-1.5ZM15.75 4A2.75 2.75 0 0 0 13 1.25v1.5c.69 0 1.25.56 1.25 1.25h1.5Zm-10 0c0-.69.56-1.25 1.25-1.25v-1.5A2.75 2.75 0 0 0 4.25 4h1.5Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m4 11 3 3 9-9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m6 8 4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 6.53a.75.75 0 0 0-1.06-1.06L10 8.94 6.53 5.47a.75.75 0 0 0-1.06 1.06L8.94 10l-3.47 3.47a.75.75 0 1 0 1.06 1.06L10 11.06l3.47 3.47a.75.75 0 1 0 1.06-1.06L11.06 10l3.47-3.47Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm1.5 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-6.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm1.5 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 7V3h14v4l-5 5v3.5L8 17v-5L3 7Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 10h10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm6-1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm4.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m8 14.5 4.5-4.5L8 5.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 5v10m-5-5h10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.75 9a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0ZM9 2.25a6.75 6.75 0 1 0 4.213 12.024l3.257 3.256a.75.75 0 1 0 1.06-1.06l-3.256-3.257A6.75 6.75 0 0 0 9 2.25Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 4v12m0-12L6 8m4-4 4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 4v12m0 0-4-4m4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 10H3m0 0v5a2 2 0 0 0 2 2h7m-9-7V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5m0 0v5a2 2 0 0 1-2 2h-7m9-7h-2.5M12 17v4m0 0H6m6 0h7M12 7.002v6m3-3H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 3.5v7M3.5 7h7m4 14H20a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1h-5.5a1 1 0 0 0-1 1V20a1 1 0 0 0 1 1Zm0-10.5H20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-5.5a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1ZM4 21h5.5a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1V20a1 1 0 0 0 1 1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 12h15.5m0 0-5-5m5 5-5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22 6H7l-5 6 5 6h15V6Zm-10 4 4 4m0-4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 7v-.75a.75.75 0 0 0-.748.697L4 7ZM3 21l-.748-.053A.75.75 0 0 0 3 21.75V21Zm18 0v.75a.75.75 0 0 0 .748-.803L21 21ZM20 7l.748-.053A.75.75 0 0 0 20 6.25V7ZM8.75 11a.75.75 0 0 0-1.5 0h1.5Zm8 0a.75.75 0 0 0-1.5 0h1.5ZM3.252 6.947l-1 14 1.496.106 1-14-1.496-.106ZM3 21.75h18v-1.5H3v1.5Zm18.748-.803-1-14-1.496.106 1 14 1.497-.106ZM8 6.25H4v1.5h4v-1.5ZM8 7h.75v.003a.613.613 0 0 0 0-.023l.006-.098c.007-.09.02-.223.047-.384.054-.326.161-.749.368-1.163a2.77 2.77 0 0 1 .933-1.086c.426-.284 1.028-.499 1.896-.499v-1.5c-1.13 0-2.03.285-2.728.751A4.26 4.26 0 0 0 7.83 4.665a5.665 5.665 0 0 0-.507 1.587 5.655 5.655 0 0 0-.073.744V7H8Zm12-.75h-4v1.5h4v-1.5Zm-4 0H8v1.5h8v-1.5Zm-4-2.5c.87 0 1.47.215 1.897.499.43.287.727.675.932 1.086.207.414.315.837.369 1.163a4.15 4.15 0 0 1 .052.482v.023V7h1.5v-.024l-.001-.046a5.625 5.625 0 0 0-.071-.678 5.663 5.663 0 0 0-.507-1.587A4.259 4.259 0 0 0 14.73 3c-.7-.466-1.597-.751-2.729-.751v1.5ZM8 11l-.75.001v.009a1.558 1.558 0 0 0 .002.057c.002.034.004.079.01.133a3.817 3.817 0 0 0 .615 1.716C8.531 13.9 9.781 14.75 12 14.75v-1.5c-1.781 0-2.532-.65-2.876-1.166A2.317 2.317 0 0 1 8.751 11v-.008V11H8Zm4 3.75c2.219 0 3.468-.85 4.124-1.834a3.815 3.815 0 0 0 .615-1.716 2.62 2.62 0 0 0 .011-.175V11h-1.5v-.008V11a2.055 2.055 0 0 1-.044.306 2.314 2.314 0 0 1-.33.778c-.344.516-1.094 1.166-2.876 1.166v1.5Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17 10.5V21l-3.5-2-3.5 2-3.5-2L3 21V6a3 3 0 0 1 3-3h12.5M17 10.5h2.5a1 1 0 0 0 1-1V5a2 2 0 0 0-2-2v0M17 10.5V6c0-2 1.5-3 1.5-3m-12 5h7m-7 3h7m-7 3h7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 21h-.75a.75.75 0 0 0 1.122.651L5 21Zm7-4 .373-.651a.75.75 0 0 0-.745 0L12 17Zm7 4-.372.651A.75.75 0 0 0 19.75 21H19ZM4.25 5v16h1.5V5h-1.5Zm1.122 16.651 7-4-.744-1.302-7 4 .744 1.302Zm6.256-4 7 4 .744-1.302-7-4-.744 1.302ZM19.75 21V5h-1.5v16h1.5ZM17 2.25H7v1.5h10v-1.5ZM19.75 5A2.75 2.75 0 0 0 17 2.25v1.5c.69 0 1.25.56 1.25 1.25h1.5Zm-14 0c0-.69.56-1.25 1.25-1.25v-1.5A2.75 2.75 0 0 0 4.25 5h1.5Z" fill="currentColor"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 11V6a1 1 0 0 1 1-1h3m-4 6v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-9M4 11h16m0 0V6a1 1 0 0 0-1-1h-3M8 5V3m0 2v2m0-2h8m0 0V3m0 2v2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m6 13.5 3 3 9-9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m8 10 4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m8 8.002 8 8m-8 0 8-8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="12" cy="12.002" r="10" stroke="currentColor" stroke-width="1.5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.53 6.472a.75.75 0 1 0-1.06 1.06l4.47 4.47-4.47 4.47a.75.75 0 0 0 1.06 1.06l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.06-1.06l-4.47-4.47 4.47-4.47a.75.75 0 0 0-1.06-1.06L12 10.942l-4.47-4.47Z" fill="currentColor"/></svg>
|