@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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
ErrorIndicatorIcon,
|
|
6
|
+
ErrorSmallIndicatorIcon,
|
|
7
|
+
FailIndicatorIcon,
|
|
8
|
+
SuccessIndicatorIcon,
|
|
9
|
+
SuccessSmallIndicatorIcon,
|
|
10
|
+
WarningIndicatorIcon,
|
|
11
|
+
WarningSmallIndicatorIcon,
|
|
12
|
+
} from "../icons/indicator";
|
|
13
|
+
import { CircleFilled } from "./CircleFilled";
|
|
14
|
+
import { getSizeDimension, useStyles } from "./styles";
|
|
15
|
+
|
|
16
|
+
export type IndicatorIcon = "warning" | "error" | "success" | "fail";
|
|
17
|
+
|
|
18
|
+
export type IndicatorSize = "regular" | "small";
|
|
19
|
+
|
|
20
|
+
export type IndicatorCombinations = `${IndicatorIcon}-${IndicatorSize}`;
|
|
21
|
+
|
|
22
|
+
export interface IndicatorProps {
|
|
23
|
+
icon: IndicatorIcon;
|
|
24
|
+
variant?: "outline" | "filled" | "text" | "icon";
|
|
25
|
+
size?: IndicatorSize;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const mapVariantToIcon: Record<
|
|
30
|
+
IndicatorCombinations,
|
|
31
|
+
React.FunctionComponent<{ className?: string }>
|
|
32
|
+
> = {
|
|
33
|
+
"warning-regular": WarningIndicatorIcon,
|
|
34
|
+
"warning-small": WarningSmallIndicatorIcon,
|
|
35
|
+
"fail-regular": FailIndicatorIcon,
|
|
36
|
+
"fail-small": FailIndicatorIcon,
|
|
37
|
+
"error-regular": ErrorIndicatorIcon,
|
|
38
|
+
"error-small": ErrorSmallIndicatorIcon,
|
|
39
|
+
"success-regular": SuccessIndicatorIcon,
|
|
40
|
+
"success-small": SuccessSmallIndicatorIcon,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const Indicator = React.forwardRef<HTMLSpanElement, IndicatorProps>(
|
|
44
|
+
({ icon, size = "regular", className }, ref) => {
|
|
45
|
+
const classes = useStyles({ icon, size });
|
|
46
|
+
|
|
47
|
+
const Icon = mapVariantToIcon[`${icon}-${size}` as IndicatorCombinations];
|
|
48
|
+
|
|
49
|
+
const viewBoxSize = getSizeDimension(size);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<span className={clsx(classes.wrapper, className)} ref={ref}>
|
|
53
|
+
<svg
|
|
54
|
+
viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}
|
|
55
|
+
fill="none"
|
|
56
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
57
|
+
className={classes.absolute}
|
|
58
|
+
>
|
|
59
|
+
<CircleFilled size={size} className={classes.circlePath} />
|
|
60
|
+
</svg>
|
|
61
|
+
<Icon className={classes.absolute} />
|
|
62
|
+
</span>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { IndicatorCircle } from "./IndicatorCircle";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Indicator / Circle",
|
|
8
|
+
component: IndicatorCircle,
|
|
9
|
+
} as ComponentMeta<typeof IndicatorCircle>;
|
|
10
|
+
|
|
11
|
+
const Template: ComponentStory<typeof IndicatorCircle> = (args) => (
|
|
12
|
+
<IndicatorCircle {...args} />
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export const Warning = Template.bind({});
|
|
16
|
+
Warning.args = {
|
|
17
|
+
icon: "warning",
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const Error = Template.bind({});
|
|
21
|
+
Error.args = {
|
|
22
|
+
icon: "error",
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const Success = Template.bind({});
|
|
26
|
+
Success.args = {
|
|
27
|
+
icon: "success",
|
|
28
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { Circle } from "./Circle";
|
|
5
|
+
import { IndicatorIcon } from "./Indicator";
|
|
6
|
+
import { getSizeDimension, useStyles } from "./styles";
|
|
7
|
+
|
|
8
|
+
export interface IndicatorCircleProps {
|
|
9
|
+
icon: IndicatorIcon;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const IndicatorCircle = ({ icon, className }: IndicatorCircleProps) => {
|
|
14
|
+
const classes = useStyles({ size: "regular", icon });
|
|
15
|
+
|
|
16
|
+
const viewBoxSize = getSizeDimension("regular");
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<span className={clsx(classes.wrapper, classes.wrapperCircle, className)}>
|
|
20
|
+
<svg
|
|
21
|
+
viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}
|
|
22
|
+
fill="none"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
className={classes.absolute}
|
|
25
|
+
>
|
|
26
|
+
<Circle className={classes.circlePath} />
|
|
27
|
+
</svg>
|
|
28
|
+
{icon === "success" && (
|
|
29
|
+
<svg
|
|
30
|
+
viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}
|
|
31
|
+
fill="none"
|
|
32
|
+
className={classes.absolute}
|
|
33
|
+
>
|
|
34
|
+
<path
|
|
35
|
+
d="M8 12.8571L10.1053 15L16 9"
|
|
36
|
+
stroke="currentColor"
|
|
37
|
+
stroke-width="1.5"
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
/>
|
|
41
|
+
</svg>
|
|
42
|
+
)}
|
|
43
|
+
</span>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { IndicatorOutlined } from "./IndicatorOutlined";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Indicator / Outlined",
|
|
8
|
+
component: IndicatorOutlined,
|
|
9
|
+
} as ComponentMeta<typeof IndicatorOutlined>;
|
|
10
|
+
|
|
11
|
+
const Template: ComponentStory<typeof IndicatorOutlined> = (args) => (
|
|
12
|
+
<IndicatorOutlined {...args} />
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export const Warning = Template.bind({});
|
|
16
|
+
Warning.args = {
|
|
17
|
+
icon: "warning",
|
|
18
|
+
};
|
|
19
|
+
export const WarningSmall = Template.bind({});
|
|
20
|
+
WarningSmall.args = {
|
|
21
|
+
icon: "warning",
|
|
22
|
+
size: "small",
|
|
23
|
+
};
|
|
24
|
+
export const WarningText = Template.bind({});
|
|
25
|
+
WarningText.args = {
|
|
26
|
+
icon: "warning",
|
|
27
|
+
color: "text",
|
|
28
|
+
};
|
|
29
|
+
export const WarningSmallText = Template.bind({});
|
|
30
|
+
WarningSmallText.args = {
|
|
31
|
+
icon: "warning",
|
|
32
|
+
color: "text",
|
|
33
|
+
size: "small",
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const Error = Template.bind({});
|
|
37
|
+
Error.args = {
|
|
38
|
+
icon: "error",
|
|
39
|
+
};
|
|
40
|
+
export const ErrorSmall = Template.bind({});
|
|
41
|
+
ErrorSmall.args = {
|
|
42
|
+
icon: "error",
|
|
43
|
+
size: "small",
|
|
44
|
+
};
|
|
45
|
+
export const ErrorText = Template.bind({});
|
|
46
|
+
ErrorText.args = {
|
|
47
|
+
icon: "error",
|
|
48
|
+
color: "text",
|
|
49
|
+
};
|
|
50
|
+
export const ErrorSmallText = Template.bind({});
|
|
51
|
+
ErrorSmallText.args = {
|
|
52
|
+
icon: "error",
|
|
53
|
+
color: "text",
|
|
54
|
+
size: "small",
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const Fail = Template.bind({});
|
|
58
|
+
Fail.args = {
|
|
59
|
+
icon: "fail",
|
|
60
|
+
};
|
|
61
|
+
export const FailText = Template.bind({});
|
|
62
|
+
FailText.args = {
|
|
63
|
+
icon: "fail",
|
|
64
|
+
color: "text",
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const Success = Template.bind({});
|
|
68
|
+
Success.args = {
|
|
69
|
+
icon: "success",
|
|
70
|
+
};
|
|
71
|
+
export const SuccessSmall = Template.bind({});
|
|
72
|
+
SuccessSmall.args = {
|
|
73
|
+
icon: "success",
|
|
74
|
+
size: "small",
|
|
75
|
+
};
|
|
76
|
+
export const SuccessText = Template.bind({});
|
|
77
|
+
SuccessText.args = {
|
|
78
|
+
icon: "success",
|
|
79
|
+
color: "text",
|
|
80
|
+
};
|
|
81
|
+
export const SuccessSmallText = Template.bind({});
|
|
82
|
+
SuccessSmallText.args = {
|
|
83
|
+
icon: "success",
|
|
84
|
+
color: "text",
|
|
85
|
+
size: "small",
|
|
86
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
import { FailOutlineIndicatorIcon } from "../icons/indicator";
|
|
5
|
+
import { CircleOutline } from "./CircleOutline";
|
|
6
|
+
import {
|
|
7
|
+
IndicatorCombinations,
|
|
8
|
+
IndicatorIcon,
|
|
9
|
+
IndicatorSize,
|
|
10
|
+
mapVariantToIcon,
|
|
11
|
+
} from "./Indicator";
|
|
12
|
+
import { getSizeDimension, useStyles } from "./styles";
|
|
13
|
+
|
|
14
|
+
export interface IndicatorOutlinedProps {
|
|
15
|
+
icon: IndicatorIcon;
|
|
16
|
+
size?: IndicatorSize;
|
|
17
|
+
color?: "default" | "text";
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const getIconComponent = (icon: IndicatorIcon, size: IndicatorSize) => {
|
|
22
|
+
if (icon === "fail") {
|
|
23
|
+
return FailOutlineIndicatorIcon;
|
|
24
|
+
}
|
|
25
|
+
return mapVariantToIcon[`${icon}-${size}` as IndicatorCombinations];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const IndicatorOutlined = ({
|
|
29
|
+
icon,
|
|
30
|
+
size = "regular",
|
|
31
|
+
color = "default",
|
|
32
|
+
className,
|
|
33
|
+
}: IndicatorOutlinedProps) => {
|
|
34
|
+
const classes = useStyles({ icon, size });
|
|
35
|
+
|
|
36
|
+
const Icon = getIconComponent(icon, size);
|
|
37
|
+
const viewBoxSize = getSizeDimension(size);
|
|
38
|
+
|
|
39
|
+
const hasColor = color === "default";
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<span
|
|
43
|
+
className={clsx(
|
|
44
|
+
classes.wrapper,
|
|
45
|
+
hasColor && classes.wrapperOutline,
|
|
46
|
+
className
|
|
47
|
+
)}
|
|
48
|
+
>
|
|
49
|
+
<svg
|
|
50
|
+
viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}
|
|
51
|
+
fill="none"
|
|
52
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
53
|
+
className={classes.absolute}
|
|
54
|
+
>
|
|
55
|
+
<CircleOutline
|
|
56
|
+
size={size}
|
|
57
|
+
className={clsx(classes.absolute, hasColor && classes.circleOutline)}
|
|
58
|
+
/>
|
|
59
|
+
</svg>
|
|
60
|
+
<Icon />
|
|
61
|
+
</span>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Indicator";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { makeStyles, SaleorTheme } from "../theme";
|
|
2
|
+
import { IndicatorProps, IndicatorSize } from "./Indicator";
|
|
3
|
+
|
|
4
|
+
export const getIconColor =
|
|
5
|
+
(theme: SaleorTheme, type: "mid" | "dark") =>
|
|
6
|
+
(props: Pick<IndicatorProps, "icon">) => {
|
|
7
|
+
switch (props.icon) {
|
|
8
|
+
case "warning":
|
|
9
|
+
return theme.palette.saleor.warning[type];
|
|
10
|
+
case "success":
|
|
11
|
+
return theme.palette.saleor.success[type];
|
|
12
|
+
case "fail":
|
|
13
|
+
case "error":
|
|
14
|
+
return theme.palette.saleor.fail[type];
|
|
15
|
+
default:
|
|
16
|
+
return "inherit";
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const getSizeDimension = (size: IndicatorSize) =>
|
|
21
|
+
size === "regular" ? 24 : 16;
|
|
22
|
+
|
|
23
|
+
export const useStyles = makeStyles<
|
|
24
|
+
Required<Pick<IndicatorProps, "icon" | "size">>,
|
|
25
|
+
| "wrapper"
|
|
26
|
+
| "wrapperCircle"
|
|
27
|
+
| "wrapperOutline"
|
|
28
|
+
| "absolute"
|
|
29
|
+
| "circlePath"
|
|
30
|
+
| "circleOutline"
|
|
31
|
+
>((theme) => ({
|
|
32
|
+
wrapper: {
|
|
33
|
+
position: "relative",
|
|
34
|
+
display: "inline-block",
|
|
35
|
+
width: (props) => `${getSizeDimension(props.size)}px`,
|
|
36
|
+
height: (props) => `${getSizeDimension(props.size)}px`,
|
|
37
|
+
color: theme.palette.saleor.main[1],
|
|
38
|
+
//color: (props) => {
|
|
39
|
+
//if (props.variant === "outline") {
|
|
40
|
+
//return getBackgroundColor(theme)(props);
|
|
41
|
+
//}
|
|
42
|
+
//if (props.variant === "text") {
|
|
43
|
+
//return "inherit";
|
|
44
|
+
//}
|
|
45
|
+
//return theme.palette.saleor.main[1];
|
|
46
|
+
//},
|
|
47
|
+
},
|
|
48
|
+
wrapperCircle: {
|
|
49
|
+
color: getIconColor(theme, "mid"),
|
|
50
|
+
},
|
|
51
|
+
wrapperOutline: {
|
|
52
|
+
color: getIconColor(theme, "dark"),
|
|
53
|
+
},
|
|
54
|
+
absolute: {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
},
|
|
57
|
+
circlePath: {
|
|
58
|
+
fill: getIconColor(theme, "mid"),
|
|
59
|
+
},
|
|
60
|
+
circleOutline: {
|
|
61
|
+
stroke: getIconColor(theme, "dark"),
|
|
62
|
+
},
|
|
63
|
+
}));
|
|
@@ -41,145 +41,146 @@ export interface MultipleValueAutocompleteProps
|
|
|
41
41
|
onScrollToBottom?: () => void;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export const MultipleValueAutocomplete: React.FC<
|
|
45
|
-
|
|
44
|
+
export const MultipleValueAutocomplete: React.FC<
|
|
45
|
+
MultipleValueAutocompleteProps
|
|
46
|
+
> = ({
|
|
47
|
+
choices,
|
|
48
|
+
children,
|
|
49
|
+
enableReinitialize,
|
|
50
|
+
name,
|
|
51
|
+
InputProps,
|
|
52
|
+
initialValue = [],
|
|
53
|
+
loading,
|
|
54
|
+
popperPlacement = "bottom-start",
|
|
55
|
+
onChange,
|
|
56
|
+
onInputChange,
|
|
57
|
+
onScrollToBottom,
|
|
58
|
+
...rest
|
|
59
|
+
}) => {
|
|
60
|
+
const classes = useStyles();
|
|
61
|
+
const {
|
|
62
|
+
anchor,
|
|
63
|
+
comboboxProps,
|
|
64
|
+
filteredChoices,
|
|
65
|
+
getItemProps,
|
|
66
|
+
getSelectedItemProps,
|
|
67
|
+
getToggleButtonProps,
|
|
68
|
+
highlightedIndex,
|
|
69
|
+
inputProps,
|
|
70
|
+
inputRef,
|
|
71
|
+
inputValue,
|
|
72
|
+
inputWidth,
|
|
73
|
+
isOpen,
|
|
74
|
+
labelProps,
|
|
75
|
+
menuProps,
|
|
76
|
+
ref,
|
|
77
|
+
removeSelectedItem,
|
|
78
|
+
selectedItems,
|
|
79
|
+
} = useMultipleValueAutocomplete({
|
|
46
80
|
choices,
|
|
47
|
-
children,
|
|
48
81
|
enableReinitialize,
|
|
82
|
+
initialValue,
|
|
49
83
|
name,
|
|
50
|
-
InputProps,
|
|
51
|
-
initialValue = [],
|
|
52
|
-
loading,
|
|
53
|
-
popperPlacement = "bottom-start",
|
|
54
84
|
onChange,
|
|
55
85
|
onInputChange,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}) => {
|
|
59
|
-
const classes = useStyles();
|
|
60
|
-
const {
|
|
61
|
-
anchor,
|
|
62
|
-
comboboxProps,
|
|
63
|
-
filteredChoices,
|
|
64
|
-
getItemProps,
|
|
65
|
-
getSelectedItemProps,
|
|
66
|
-
getToggleButtonProps,
|
|
67
|
-
highlightedIndex,
|
|
68
|
-
inputProps,
|
|
69
|
-
inputRef,
|
|
70
|
-
inputValue,
|
|
71
|
-
inputWidth,
|
|
72
|
-
isOpen,
|
|
73
|
-
labelProps,
|
|
74
|
-
menuProps,
|
|
75
|
-
ref,
|
|
76
|
-
removeSelectedItem,
|
|
77
|
-
selectedItems,
|
|
78
|
-
} = useMultipleValueAutocomplete({
|
|
79
|
-
choices,
|
|
80
|
-
enableReinitialize,
|
|
81
|
-
initialValue,
|
|
82
|
-
name,
|
|
83
|
-
onChange,
|
|
84
|
-
onInputChange,
|
|
85
|
-
});
|
|
86
|
-
const { anchor: dropdownRef, position, setAnchor } = useElementScroll();
|
|
86
|
+
});
|
|
87
|
+
const { anchor: dropdownRef, position, setAnchor } = useElementScroll();
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
React.useEffect(() => {
|
|
90
|
+
if (
|
|
91
|
+
isOpen &&
|
|
92
|
+
onScrollToBottom &&
|
|
93
|
+
dropdownRef &&
|
|
94
|
+
isScrolledToBottom(dropdownRef, position!, 5)
|
|
95
|
+
) {
|
|
96
|
+
onScrollToBottom();
|
|
97
|
+
}
|
|
98
|
+
}, [position?.y, dropdownRef]);
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
>
|
|
126
|
-
{item.label}
|
|
127
|
-
</ChipRemovable>
|
|
128
|
-
)),
|
|
129
|
-
endAdornment: (
|
|
130
|
-
<>
|
|
131
|
-
{loading && (
|
|
132
|
-
<div className={classes.loader}>
|
|
133
|
-
<CircularProgress size={24} />
|
|
134
|
-
</div>
|
|
135
|
-
)}
|
|
136
|
-
<IconButton
|
|
137
|
-
{...getToggleButtonProps()}
|
|
138
|
-
aria-label="toggle menu"
|
|
139
|
-
className={classes.icon}
|
|
140
|
-
hoverOutline={false}
|
|
141
|
-
type="button"
|
|
142
|
-
variant="secondary"
|
|
143
|
-
>
|
|
144
|
-
<PlusIcon />
|
|
145
|
-
</IconButton>
|
|
146
|
-
</>
|
|
147
|
-
),
|
|
148
|
-
}}
|
|
149
|
-
inputProps={{ ref: inputRef, style: { width: inputWidth } }}
|
|
150
|
-
/>
|
|
151
|
-
<Popper
|
|
152
|
-
className={clsx(classes.popper, menuProps.className)}
|
|
153
|
-
open={isOpen}
|
|
154
|
-
anchorEl={anchor.current}
|
|
155
|
-
transition
|
|
156
|
-
placement={popperPlacement}
|
|
157
|
-
>
|
|
158
|
-
{({ TransitionProps, placement }) => (
|
|
159
|
-
<Grow
|
|
160
|
-
{...TransitionProps}
|
|
161
|
-
style={{
|
|
162
|
-
transformOrigin:
|
|
163
|
-
placement === "bottom" ? "left top" : "left bottom",
|
|
164
|
-
}}
|
|
100
|
+
return (
|
|
101
|
+
<>
|
|
102
|
+
<TextField
|
|
103
|
+
{...rest}
|
|
104
|
+
{...comboboxProps}
|
|
105
|
+
name={name}
|
|
106
|
+
InputLabelProps={{
|
|
107
|
+
shrink: isOpen || selectedItems.length || inputValue.length,
|
|
108
|
+
...labelProps,
|
|
109
|
+
}}
|
|
110
|
+
ref={ref}
|
|
111
|
+
InputProps={{
|
|
112
|
+
...InputProps,
|
|
113
|
+
...inputProps,
|
|
114
|
+
classes: {
|
|
115
|
+
...(InputProps?.classes ?? {}),
|
|
116
|
+
root: clsx(classes.inputContainer, InputProps?.classes?.root, {
|
|
117
|
+
[classes.inputContainerWithChips]: selectedItems.length > 0,
|
|
118
|
+
}),
|
|
119
|
+
input: clsx(classes.input, InputProps?.classes?.input),
|
|
120
|
+
},
|
|
121
|
+
startAdornment: selectedItems.map((item, index) => (
|
|
122
|
+
<ChipRemovable
|
|
123
|
+
key={`selected-item-${index}`}
|
|
124
|
+
{...getSelectedItemProps({ selectedItem: item, index })}
|
|
125
|
+
onRemove={() => removeSelectedItem(item)}
|
|
165
126
|
>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
127
|
+
{item.label}
|
|
128
|
+
</ChipRemovable>
|
|
129
|
+
)),
|
|
130
|
+
endAdornment: (
|
|
131
|
+
<>
|
|
132
|
+
{loading && (
|
|
133
|
+
<div className={classes.loader}>
|
|
134
|
+
<CircularProgress size={24} />
|
|
135
|
+
</div>
|
|
136
|
+
)}
|
|
137
|
+
<IconButton
|
|
138
|
+
{...getToggleButtonProps()}
|
|
139
|
+
aria-label="toggle menu"
|
|
140
|
+
className={classes.icon}
|
|
141
|
+
hoverOutline={false}
|
|
142
|
+
type="button"
|
|
143
|
+
variant="secondary"
|
|
172
144
|
>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
145
|
+
<PlusIcon />
|
|
146
|
+
</IconButton>
|
|
147
|
+
</>
|
|
148
|
+
),
|
|
149
|
+
}}
|
|
150
|
+
inputProps={{ ref: inputRef, style: { width: inputWidth } }}
|
|
151
|
+
/>
|
|
152
|
+
<Popper
|
|
153
|
+
className={clsx(classes.popper, menuProps.className)}
|
|
154
|
+
open={isOpen}
|
|
155
|
+
anchorEl={anchor.current}
|
|
156
|
+
transition
|
|
157
|
+
placement={popperPlacement}
|
|
158
|
+
>
|
|
159
|
+
{({ TransitionProps, placement }) => (
|
|
160
|
+
<Grow
|
|
161
|
+
{...TransitionProps}
|
|
162
|
+
style={{
|
|
163
|
+
transformOrigin:
|
|
164
|
+
placement === "bottom" ? "left top" : "left bottom",
|
|
165
|
+
}}
|
|
166
|
+
>
|
|
167
|
+
<Paper
|
|
168
|
+
className={classes.dropdown}
|
|
169
|
+
elevation={8}
|
|
170
|
+
style={{ width: anchor.current?.clientWidth }}
|
|
171
|
+
{...menuProps}
|
|
172
|
+
ref={mergeRefs(setAnchor, menuProps.ref)}
|
|
173
|
+
>
|
|
174
|
+
{children({
|
|
175
|
+
choices: filteredChoices,
|
|
176
|
+
highlightedIndex,
|
|
177
|
+
getItemProps,
|
|
178
|
+
inputValue,
|
|
179
|
+
})}
|
|
180
|
+
</Paper>
|
|
181
|
+
</Grow>
|
|
182
|
+
)}
|
|
183
|
+
</Popper>
|
|
184
|
+
</>
|
|
185
|
+
);
|
|
186
|
+
};
|