@jetshop/ui 6.3.8 → 6.3.9-alpha.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/CloudflareImage/FlightImage.test.js +277 -0
- package/package.json +2 -2
- package/Accordion/Accordion.d.ts +0 -33
- package/Accordion/Accordion.js +0 -59
- package/Accordion/Accordion.js.map +0 -1
- package/Auth/FormFields/CountriesInput.d.ts +0 -16
- package/Auth/FormFields/CountriesInput.js +0 -28
- package/Auth/FormFields/CountriesInput.js.map +0 -1
- package/Auth/LogInBehavior.d.ts +0 -22
- package/Auth/LogInBehavior.js +0 -24
- package/Auth/LogInBehavior.js.map +0 -1
- package/Auth/LogInFormProvider.d.ts +0 -7
- package/Auth/LogInFormProvider.js +0 -70
- package/Auth/LogInFormProvider.js.map +0 -1
- package/Auth/LogOut.d.ts +0 -10
- package/Auth/LogOut.js +0 -24
- package/Auth/LogOut.js.map +0 -1
- package/Auth/logInValidator.d.ts +0 -10
- package/Auth/logInValidator.js +0 -16
- package/Auth/logInValidator.js.map +0 -1
- package/Breadcrumbs/Breadcrumbs.d.ts +0 -14
- package/Breadcrumbs/Breadcrumbs.js +0 -84
- package/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/Breadcrumbs/getParentsOrCanonicalRoute.d.ts +0 -3
- package/Breadcrumbs/getParentsOrCanonicalRoute.js +0 -14
- package/Breadcrumbs/getParentsOrCanonicalRoute.js.map +0 -1
- package/Breadcrumbs/index.d.ts +0 -1
- package/Breadcrumbs/index.js +0 -2
- package/Breadcrumbs/index.js.map +0 -1
- package/Breakpoints.d.ts +0 -12
- package/Breakpoints.js +0 -36
- package/Breakpoints.js.map +0 -1
- package/Button/Button.d.ts +0 -14
- package/Button/Button.js +0 -60
- package/Button/Button.js.map +0 -1
- package/Button/SecondaryButton.d.ts +0 -2
- package/Button/SecondaryButton.js +0 -9
- package/Button/SecondaryButton.js.map +0 -1
- package/Button/TrendButton.d.ts +0 -2
- package/Button/TrendButton.js +0 -8
- package/Button/TrendButton.js.map +0 -1
- package/Button/index.d.ts +0 -4
- package/Button/index.js +0 -5
- package/Button/index.js.map +0 -1
- package/CategoryLink.d.ts +0 -11
- package/CategoryLink.js +0 -49
- package/CategoryLink.js.map +0 -1
- package/ChannelSelector/ChannelListItem.d.ts +0 -10
- package/ChannelSelector/ChannelListItem.js +0 -51
- package/ChannelSelector/ChannelListItem.js.map +0 -1
- package/ChannelSelector/ChannelSelector.d.ts +0 -63
- package/ChannelSelector/ChannelSelector.js +0 -80
- package/ChannelSelector/ChannelSelector.js.map +0 -1
- package/ChannelSelector/ChannelSelectorButtons.d.ts +0 -2
- package/ChannelSelector/ChannelSelectorButtons.js +0 -20
- package/ChannelSelector/ChannelSelectorButtons.js.map +0 -1
- package/ChannelSelector/Channels.d.ts +0 -17
- package/ChannelSelector/Channels.js +0 -12
- package/ChannelSelector/Channels.js.map +0 -1
- package/ChannelSelector/LargeSelector.d.ts +0 -3
- package/ChannelSelector/LargeSelector.js +0 -67
- package/ChannelSelector/LargeSelector.js.map +0 -1
- package/ChannelSelector/MiniSelector.d.ts +0 -4
- package/ChannelSelector/MiniSelector.js +0 -58
- package/ChannelSelector/MiniSelector.js.map +0 -1
- package/ChannelSelector/Region.d.ts +0 -28
- package/ChannelSelector/Region.js +0 -21
- package/ChannelSelector/Region.js.map +0 -1
- package/ChannelSelector/groupBy.d.ts +0 -7
- package/ChannelSelector/groupBy.js +0 -16
- package/ChannelSelector/groupBy.js.map +0 -1
- package/Checkbox/Checkbox.d.ts +0 -14
- package/Checkbox/Checkbox.js +0 -70
- package/Checkbox/Checkbox.js.map +0 -1
- package/Checkbox/CheckboxGroup.d.ts +0 -27
- package/Checkbox/CheckboxGroup.js +0 -22
- package/Checkbox/CheckboxGroup.js.map +0 -1
- package/Checkbox/index.d.ts +0 -2
- package/Checkbox/index.js +0 -3
- package/Checkbox/index.js.map +0 -1
- package/ContentPageLink.d.ts +0 -11
- package/ContentPageLink.js +0 -46
- package/ContentPageLink.js.map +0 -1
- package/ContentRenderer.d.ts +0 -9
- package/ContentRenderer.js +0 -36
- package/ContentRenderer.js.map +0 -1
- package/DropdownMenu/Button.d.ts +0 -7
- package/DropdownMenu/Button.js +0 -33
- package/DropdownMenu/Button.js.map +0 -1
- package/DropdownMenu/DropdownMenu.d.ts +0 -21
- package/DropdownMenu/DropdownMenu.js +0 -72
- package/DropdownMenu/DropdownMenu.js.map +0 -1
- package/DropdownMenu/Item.d.ts +0 -13
- package/DropdownMenu/Item.js +0 -48
- package/DropdownMenu/Item.js.map +0 -1
- package/DropdownMenu/Items.d.ts +0 -16
- package/DropdownMenu/Items.js +0 -53
- package/DropdownMenu/Items.js.map +0 -1
- package/DropdownMenu/index.d.ts +0 -4
- package/DropdownMenu/index.js +0 -5
- package/DropdownMenu/index.js.map +0 -1
- package/ErrorBoundary/Generic.d.ts +0 -18
- package/ErrorBoundary/Generic.js +0 -69
- package/ErrorBoundary/Generic.js.map +0 -1
- package/ErrorBoundary/PassThrough.d.ts +0 -3
- package/ErrorBoundary/PassThrough.js +0 -7
- package/ErrorBoundary/PassThrough.js.map +0 -1
- package/Gallery/Gallery.d.ts +0 -39
- package/Gallery/Gallery.js +0 -121
- package/Gallery/Gallery.js.map +0 -1
- package/Gallery/constructGallery.d.ts +0 -15
- package/Gallery/constructGallery.js +0 -40
- package/Gallery/constructGallery.js.map +0 -1
- package/Image/BaseImage.d.ts +0 -39
- package/Image/BaseImage.js +0 -192
- package/Image/BaseImage.js.map +0 -1
- package/Image/Fallback.d.ts +0 -5
- package/Image/Fallback.js +0 -4
- package/Image/Fallback.js.map +0 -1
- package/Image/FlightImage.d.ts +0 -51
- package/Image/FlightImage.js +0 -59
- package/Image/FlightImage.js.map +0 -1
- package/Image/Image.d.ts +0 -2
- package/Image/Image.js +0 -3
- package/Image/Image.js.map +0 -1
- package/Image/index.d.ts +0 -1
- package/Image/index.js +0 -2
- package/Image/index.js.map +0 -1
- package/Image/useConstructImage.d.ts +0 -49
- package/Image/useConstructImage.js +0 -122
- package/Image/useConstructImage.js.map +0 -1
- package/Image/utils/aspectRatioToFraction.d.ts +0 -2
- package/Image/utils/aspectRatioToFraction.js +0 -11
- package/Image/utils/aspectRatioToFraction.js.map +0 -1
- package/Image/utils/getFullUrl.d.ts +0 -6
- package/Image/utils/getFullUrl.js +0 -18
- package/Image/utils/getFullUrl.js.map +0 -1
- package/Image/utils/getImageWidth.d.ts +0 -1
- package/Image/utils/getImageWidth.js +0 -12
- package/Image/utils/getImageWidth.js.map +0 -1
- package/Image/utils/getImageWidths.d.ts +0 -2
- package/Image/utils/getImageWidths.js +0 -21
- package/Image/utils/getImageWidths.js.map +0 -1
- package/Image/utils/getLQIP.d.ts +0 -8
- package/Image/utils/getLQIP.js +0 -20
- package/Image/utils/getLQIP.js.map +0 -1
- package/Image/utils/getLargestSize.d.ts +0 -7
- package/Image/utils/getLargestSize.js +0 -17
- package/Image/utils/getLargestSize.js.map +0 -1
- package/Image/utils/getSizeForBreakpoint.d.ts +0 -2
- package/Image/utils/getSizeForBreakpoint.js +0 -16
- package/Image/utils/getSizeForBreakpoint.js.map +0 -1
- package/Image/utils/getSizesMap.d.ts +0 -2
- package/Image/utils/getSizesMap.js +0 -35
- package/Image/utils/getSizesMap.js.map +0 -1
- package/Image/utils/getSmallestSize.d.ts +0 -2
- package/Image/utils/getSmallestSize.js +0 -12
- package/Image/utils/getSmallestSize.js.map +0 -1
- package/Image/utils/getSrcSetFromWidths.d.ts +0 -10
- package/Image/utils/getSrcSetFromWidths.js +0 -9
- package/Image/utils/getSrcSetFromWidths.js.map +0 -1
- package/Image/utils/getSrcWithParams.d.ts +0 -3
- package/Image/utils/getSrcWithParams.js +0 -29
- package/Image/utils/getSrcWithParams.js.map +0 -1
- package/Image/utils/paddingForAspectRatio.d.ts +0 -1
- package/Image/utils/paddingForAspectRatio.js +0 -6
- package/Image/utils/paddingForAspectRatio.js.map +0 -1
- package/Image/utils/remToPx.d.ts +0 -1
- package/Image/utils/remToPx.js +0 -2
- package/Image/utils/remToPx.js.map +0 -1
- package/Image/utils/sizeToNumber.d.ts +0 -2
- package/Image/utils/sizeToNumber.js +0 -27
- package/Image/utils/sizeToNumber.js.map +0 -1
- package/Input/Input.d.ts +0 -6
- package/Input/Input.js +0 -45
- package/Input/Input.js.map +0 -1
- package/Input/index.d.ts +0 -3
- package/Input/index.js +0 -4
- package/Input/index.js.map +0 -1
- package/JetshopText.d.ts +0 -3
- package/JetshopText.js +0 -13
- package/JetshopText.js.map +0 -1
- package/Loading/LoadingBar.d.ts +0 -8
- package/Loading/LoadingBar.js +0 -58
- package/Loading/LoadingBar.js.map +0 -1
- package/Loading/LoadingLine.d.ts +0 -31
- package/Loading/LoadingLine.js +0 -26
- package/Loading/LoadingLine.js.map +0 -1
- package/Loading/NetworkStatusNotifier.d.ts +0 -6
- package/Loading/NetworkStatusNotifier.js +0 -8
- package/Loading/NetworkStatusNotifier.js.map +0 -1
- package/Menu/MenuContainer.d.ts +0 -28
- package/Menu/MenuContainer.js +0 -46
- package/Menu/MenuContainer.js.map +0 -1
- package/Menu/RecursiveTree.d.ts +0 -28
- package/Menu/RecursiveTree.js +0 -91
- package/Menu/RecursiveTree.js.map +0 -1
- package/Modal/Drawer/Drawer.d.ts +0 -12
- package/Modal/Drawer/Drawer.js +0 -31
- package/Modal/Drawer/Drawer.js.map +0 -1
- package/Modal/Drawer/DrawerTarget.d.ts +0 -6
- package/Modal/Drawer/DrawerTarget.js +0 -12
- package/Modal/Drawer/DrawerTarget.js.map +0 -1
- package/Modal/Drawer/DrawerTrigger.d.ts +0 -11
- package/Modal/Drawer/DrawerTrigger.js +0 -16
- package/Modal/Drawer/DrawerTrigger.js.map +0 -1
- package/Modal/Drawer/index.d.ts +0 -3
- package/Modal/Drawer/index.js +0 -4
- package/Modal/Drawer/index.js.map +0 -1
- package/Modal/Flyout/FlyoutTarget.d.ts +0 -10
- package/Modal/Flyout/FlyoutTarget.js +0 -15
- package/Modal/Flyout/FlyoutTarget.js.map +0 -1
- package/Modal/Flyout/FlyoutTrigger.d.ts +0 -15
- package/Modal/Flyout/FlyoutTrigger.js +0 -18
- package/Modal/Flyout/FlyoutTrigger.js.map +0 -1
- package/Modal/Flyout/index.d.ts +0 -2
- package/Modal/Flyout/index.js +0 -3
- package/Modal/Flyout/index.js.map +0 -1
- package/Modal/ModalContext.d.ts +0 -26
- package/Modal/ModalContext.js +0 -9
- package/Modal/ModalContext.js.map +0 -1
- package/Modal/ModalProvider.d.ts +0 -5
- package/Modal/ModalProvider.js +0 -83
- package/Modal/ModalProvider.js.map +0 -1
- package/Modal/ModalRoot.d.ts +0 -3
- package/Modal/ModalRoot.js +0 -44
- package/Modal/ModalRoot.js.map +0 -1
- package/Modal/ModalTrigger.d.ts +0 -9
- package/Modal/ModalTrigger.js +0 -9
- package/Modal/ModalTrigger.js.map +0 -1
- package/Pagination/Pagination.d.ts +0 -7
- package/Pagination/Pagination.js +0 -23
- package/Pagination/Pagination.js.map +0 -1
- package/Pagination/PaginationBehaviour.d.ts +0 -52
- package/Pagination/PaginationBehaviour.js +0 -68
- package/Pagination/PaginationBehaviour.js.map +0 -1
- package/Pagination/index.d.ts +0 -2
- package/Pagination/index.js +0 -3
- package/Pagination/index.js.map +0 -1
- package/Pagination/usePagination.d.ts +0 -15
- package/Pagination/usePagination.js +0 -46
- package/Pagination/usePagination.js.map +0 -1
- package/PreOrderDateSelector/PreOrderDateSelector.d.ts +0 -23
- package/PreOrderDateSelector/PreOrderDateSelector.js +0 -74
- package/PreOrderDateSelector/PreOrderDateSelector.js.map +0 -1
- package/PreOrderDateSelector/index.d.ts +0 -2
- package/PreOrderDateSelector/index.js +0 -3
- package/PreOrderDateSelector/index.js.map +0 -1
- package/Price/Currency.d.ts +0 -9
- package/Price/Currency.js +0 -11
- package/Price/Currency.js.map +0 -1
- package/Price/Price.d.ts +0 -44
- package/Price/Price.js +0 -74
- package/Price/Price.js.map +0 -1
- package/Price/index.d.ts +0 -1
- package/Price/index.js +0 -2
- package/Price/index.js.map +0 -1
- package/ProductLink.d.ts +0 -23
- package/ProductLink.js +0 -88
- package/ProductLink.js.map +0 -1
- package/ProductList/Badges.d.ts +0 -6
- package/ProductList/Badges.js +0 -56
- package/ProductList/Badges.js.map +0 -1
- package/ProductList/GridProduct.d.ts +0 -24
- package/ProductList/GridProduct.js +0 -58
- package/ProductList/GridProduct.js.map +0 -1
- package/ProductList/ProductGrid.d.ts +0 -16
- package/ProductList/ProductGrid.js +0 -30
- package/ProductList/ProductGrid.js.map +0 -1
- package/ProductList/ProductImage.d.ts +0 -12
- package/ProductList/ProductImage.js +0 -21
- package/ProductList/ProductImage.js.map +0 -1
- package/ProductSpecifications/ProductSpecifications.d.ts +0 -8
- package/ProductSpecifications/ProductSpecifications.js +0 -78
- package/ProductSpecifications/ProductSpecifications.js.map +0 -1
- package/ScrollRestorationHandler/ScrollRestorationHandler.d.ts +0 -8
- package/ScrollRestorationHandler/ScrollRestorationHandler.js +0 -17
- package/ScrollRestorationHandler/ScrollRestorationHandler.js.map +0 -1
- package/ScrollRestorationHandler/index.d.ts +0 -1
- package/ScrollRestorationHandler/index.js +0 -2
- package/ScrollRestorationHandler/index.js.map +0 -1
- package/ScrollRestorationHandler/isInIgnoredRouteTypes.d.ts +0 -8
- package/ScrollRestorationHandler/isInIgnoredRouteTypes.js +0 -8
- package/ScrollRestorationHandler/isInIgnoredRouteTypes.js.map +0 -1
- package/ScrollRestorationHandler/useScrollRestore.d.ts +0 -9
- package/ScrollRestorationHandler/useScrollRestore.js +0 -20
- package/ScrollRestorationHandler/useScrollRestore.js.map +0 -1
- package/Search/SearchAutoCompleteContainer.d.ts +0 -45
- package/Search/SearchAutoCompleteContainer.js +0 -172
- package/Search/SearchAutoCompleteContainer.js.map +0 -1
- package/Search/SearchField.d.ts +0 -26
- package/Search/SearchField.js +0 -98
- package/Search/SearchField.js.map +0 -1
- package/Search/SearchPage/PageOf.d.ts +0 -5
- package/Search/SearchPage/PageOf.js +0 -7
- package/Search/SearchPage/PageOf.js.map +0 -1
- package/Search/SearchPage/SearchMeta.d.ts +0 -16
- package/Search/SearchPage/SearchMeta.js +0 -20
- package/Search/SearchPage/SearchMeta.js.map +0 -1
- package/Search/SearchPage/SearchPageBehaviour.d.ts +0 -19
- package/Search/SearchPage/SearchPageBehaviour.js +0 -75
- package/Search/SearchPage/SearchPageBehaviour.js.map +0 -1
- package/Search/SuggestedTerm.d.ts +0 -16
- package/Search/SuggestedTerm.js +0 -35
- package/Search/SuggestedTerm.js.map +0 -1
- package/Search/index.d.ts +0 -1
- package/Search/index.js +0 -2
- package/Search/index.js.map +0 -1
- package/Select/Components.d.ts +0 -28
- package/Select/Components.js +0 -91
- package/Select/Components.js.map +0 -1
- package/Select/SelectComponents/Quantity.d.ts +0 -5
- package/Select/SelectComponents/Quantity.js +0 -8
- package/Select/SelectComponents/Quantity.js.map +0 -1
- package/Select/index.d.ts +0 -5
- package/Select/index.js +0 -2
- package/Select/index.js.map +0 -1
- package/SortOrder/SortOrder.d.ts +0 -16
- package/SortOrder/SortOrder.js +0 -33
- package/SortOrder/SortOrder.js.map +0 -1
- package/SortOrder/SortOrderDropdown.d.ts +0 -9
- package/SortOrder/SortOrderDropdown.js +0 -25
- package/SortOrder/SortOrderDropdown.js.map +0 -1
- package/SortOrder/SortOrderList.d.ts +0 -7
- package/SortOrder/SortOrderList.js +0 -17
- package/SortOrder/SortOrderList.js.map +0 -1
- package/StartPageRenderer/StartPageRenderer.d.ts +0 -17
- package/StartPageRenderer/StartPageRenderer.js +0 -52
- package/StartPageRenderer/StartPageRenderer.js.map +0 -1
- package/StartPageRenderer/index.d.ts +0 -1
- package/StartPageRenderer/index.js +0 -2
- package/StartPageRenderer/index.js.map +0 -1
- package/Stock/StockStatusContainer.d.ts +0 -21
- package/Stock/StockStatusContainer.js +0 -45
- package/Stock/StockStatusContainer.js.map +0 -1
- package/Text/Text.d.ts +0 -11
- package/Text/Text.js +0 -22
- package/Text/Text.js.map +0 -1
- package/Text/index.d.ts +0 -3
- package/Text/index.js +0 -4
- package/Text/index.js.map +0 -1
- package/Theme/createTheme.d.ts +0 -16
- package/Theme/createTheme.js +0 -5
- package/Theme/createTheme.js.map +0 -1
- package/Theme/cssReset.d.ts +0 -1
- package/Theme/cssReset.js +0 -160
- package/Theme/cssReset.js.map +0 -1
- package/Theme/normalizeCss.d.ts +0 -1
- package/Theme/normalizeCss.js +0 -357
- package/Theme/normalizeCss.js.map +0 -1
- package/Theme/sanitizeCss.d.ts +0 -1
- package/Theme/sanitizeCss.js +0 -572
- package/Theme/sanitizeCss.js.map +0 -1
- package/WindowGrid/WindowGrid.d.ts +0 -11
- package/WindowGrid/WindowGrid.js +0 -58
- package/WindowGrid/WindowGrid.js.map +0 -1
- package/WindowGrid/index.d.ts +0 -1
- package/WindowGrid/index.js +0 -2
- package/WindowGrid/index.js.map +0 -1
- package/WindowGrid/useResizeObserver.d.ts +0 -3
- package/WindowGrid/useResizeObserver.js +0 -14
- package/WindowGrid/useResizeObserver.js.map +0 -1
- package/WindowGrid/useScrollWithWindow.d.ts +0 -12
- package/WindowGrid/useScrollWithWindow.js +0 -39
- package/WindowGrid/useScrollWithWindow.js.map +0 -1
- package/fuzzySearch/fuzzySearch.d.ts +0 -8
- package/fuzzySearch/fuzzySearch.js +0 -43
- package/fuzzySearch/fuzzySearch.js.map +0 -1
- package/fuzzySearch/index.d.ts +0 -1
- package/fuzzySearch/index.js +0 -2
- package/fuzzySearch/index.js.map +0 -1
- package/hooks/index.d.ts +0 -2
- package/hooks/index.js +0 -3
- package/hooks/index.js.map +0 -1
- package/hooks/useOnClickOutside.d.ts +0 -6
- package/hooks/useOnClickOutside.js +0 -17
- package/hooks/useOnClickOutside.js.map +0 -1
- package/hooks/useOnEsc.d.ts +0 -4
- package/hooks/useOnEsc.js +0 -17
- package/hooks/useOnEsc.js.map +0 -1
- package/utils/breakpoints.d.ts +0 -23
- package/utils/breakpoints.js +0 -94
- package/utils/breakpoints.js.map +0 -1
- package/utils/callAllEventHandlers.d.ts +0 -5
- package/utils/callAllEventHandlers.js +0 -9
- package/utils/callAllEventHandlers.js.map +0 -1
- package/utils/text.d.ts +0 -1
- package/utils/text.js +0 -23
- package/utils/text.js.map +0 -1
- package/utils/theme.d.ts +0 -3
- package/utils/theme.js +0 -5
- package/utils/theme.js.map +0 -1
- package/utils/useHoverIntent.d.ts +0 -10
- package/utils/useHoverIntent.js +0 -78
- package/utils/useHoverIntent.js.map +0 -1
- package/utils/usePropsOfType.d.ts +0 -11
- package/utils/usePropsOfType.js +0 -18
- package/utils/usePropsOfType.js.map +0 -1
- package/withFlightUI.d.ts +0 -17
- package/withFlightUI.js +0 -20
- package/withFlightUI.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { styled } from 'linaria/react';
|
|
2
|
-
import Button from '../Button/Button';
|
|
3
|
-
const commonStyles = `
|
|
4
|
-
font-size: 1rem;
|
|
5
|
-
border: 1px solid transparent;
|
|
6
|
-
padding: 1rem;
|
|
7
|
-
/* Button is a child of a flex container, so this aligns to bottom */
|
|
8
|
-
margin-top: auto;
|
|
9
|
-
width: 100%;
|
|
10
|
-
`;
|
|
11
|
-
export const CommitButton = styled(Button) `
|
|
12
|
-
background: #2f80ed;
|
|
13
|
-
${commonStyles};
|
|
14
|
-
`;
|
|
15
|
-
export const CancelButton = styled(Button) `
|
|
16
|
-
background: white;
|
|
17
|
-
color: #000;
|
|
18
|
-
${commonStyles};
|
|
19
|
-
`;
|
|
20
|
-
//# sourceMappingURL=ChannelSelectorButtons.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectorButtons.js","sourceRoot":"","sources":["ChannelSelectorButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,YAAY,GAAG;;;;;;;CAOpB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;IAEtC,YAAY;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;IAGtC,YAAY;CACf,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SelectedChannel } from '@jetshop/core/components/ChannelContext/ChannelContext';
|
|
2
|
-
import { Channel } from '@jetshop/core/types';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SelectChannel } from './ChannelSelector';
|
|
5
|
-
export interface ChannelsProps {
|
|
6
|
-
/** An array of channels */
|
|
7
|
-
channels: Channel[];
|
|
8
|
-
/** The selected channel obj */
|
|
9
|
-
selectedChannel: SelectedChannel;
|
|
10
|
-
/** Called with the country obj when a country is selected */
|
|
11
|
-
onSelect: SelectChannel;
|
|
12
|
-
}
|
|
13
|
-
declare const Channels: React.SFC<ChannelsProps>;
|
|
14
|
-
export default Channels;
|
|
15
|
-
export declare const ChannelList: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & {
|
|
16
|
-
as?: React.ElementType<any>;
|
|
17
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { styled } from 'linaria/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import CountryListItem from './ChannelListItem';
|
|
4
|
-
const Channels = ({ channels, selectedChannel, onSelect }) => {
|
|
5
|
-
return channels ? (React.createElement(ChannelList, null, channels.map((channel) => (React.createElement(CountryListItem, { channel: channel, key: channel.name, isSelected: channel.name === selectedChannel.name, onSelect: onSelect }))))) : null;
|
|
6
|
-
};
|
|
7
|
-
export default Channels;
|
|
8
|
-
export const ChannelList = styled('ul') `
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
`;
|
|
12
|
-
//# sourceMappingURL=Channels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Channels.js","sourceRoot":"","sources":["Channels.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAYhD,MAAM,QAAQ,GAA6B,CAAC,EAC1C,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,oBAAC,WAAW,QACT,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,CAClC,oBAAC,eAAe,IACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,OAAO,CAAC,IAAI,EACjB,UAAU,EAAE,OAAO,CAAC,IAAI,KAAK,eAAe,CAAC,IAAI,EACjD,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CACU,CACf,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;CAGtC,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { styled } from 'linaria/react';
|
|
3
|
-
import { RegionGroup, RegionWrapper } from './Region';
|
|
4
|
-
import { CommitButton, CancelButton } from './ChannelSelectorButtons';
|
|
5
|
-
import { LangCurrWrapper, SelectorBody, Title } from './ChannelSelector';
|
|
6
|
-
import { CheckboxWrapper } from '../Checkbox/CheckboxGroup';
|
|
7
|
-
const SelectorWrapper = styled('div') `
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
font-size: 1rem;
|
|
11
|
-
border: 1px solid #e8e8e8;
|
|
12
|
-
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.07);
|
|
13
|
-
|
|
14
|
-
${RegionGroup} {
|
|
15
|
-
max-width: calc(20% - 2rem);
|
|
16
|
-
margin: 0 1rem;
|
|
17
|
-
min-width: 15rem;
|
|
18
|
-
flex-grow: 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
${RegionWrapper} {
|
|
22
|
-
display: flex;
|
|
23
|
-
margin: 0 -1rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
${Title} {
|
|
27
|
-
margin: 0;
|
|
28
|
-
padding: 0;
|
|
29
|
-
border: 0;
|
|
30
|
-
font-size: 1rem;
|
|
31
|
-
padding-bottom: 3rem;
|
|
32
|
-
font-weight: 600;
|
|
33
|
-
text-align: left;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
${CommitButton}, ${CancelButton} {
|
|
37
|
-
width: 20%;
|
|
38
|
-
max-width: 15rem;
|
|
39
|
-
margin-left: auto;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
${CancelButton} {
|
|
43
|
-
border-color: #cccccc;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
${LangCurrWrapper} {
|
|
47
|
-
display: flex;
|
|
48
|
-
padding: 1.5rem;
|
|
49
|
-
margin-bottom: 1rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
${CheckboxWrapper} {
|
|
53
|
-
margin-right: 2rem;
|
|
54
|
-
width: calc(20% + 1rem);
|
|
55
|
-
strong {
|
|
56
|
-
font-weight: 600;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
${SelectorBody} {
|
|
60
|
-
padding: 1rem;
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
const LargeSelector = ({ children }) => {
|
|
64
|
-
return React.createElement(SelectorWrapper, null, children);
|
|
65
|
-
};
|
|
66
|
-
export default LargeSelector;
|
|
67
|
-
//# sourceMappingURL=LargeSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LargeSelector.js","sourceRoot":"","sources":["LargeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;IAOjC,WAAkB;;;;;;;IAOlB,aAAoB;;;;;IAKpB,KAAY;;;;;;;;;;IAUZ,YAAmB,KAAK,YAAmB;;;;;;IAM3C,YAAmB;;;;IAInB,eAAsB;;;;;;IAMtB,eAAsB;;;;;;;IAOtB,YAAmB;;;CAGtB,CAAC;AAEF,MAAM,aAAa,GAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChD,OAAO,oBAAC,eAAe,QAAE,QAAQ,CAAmB,CAAC;AACvD,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { styled } from 'linaria/react';
|
|
14
|
-
import { LangCurrWrapper, SelectorBody, Title } from './ChannelSelector';
|
|
15
|
-
import { CheckboxWrapper } from '../Checkbox/CheckboxGroup';
|
|
16
|
-
const SelectorWrapper = styled('div') `
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
font-size: 1rem;
|
|
20
|
-
max-width: 16em;
|
|
21
|
-
border: 1px solid #e8e8e8;
|
|
22
|
-
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.07);
|
|
23
|
-
background-color: white;
|
|
24
|
-
|
|
25
|
-
/* Style the wrapper around language and currency radios */
|
|
26
|
-
${LangCurrWrapper} {
|
|
27
|
-
padding: 1rem;
|
|
28
|
-
margin: 0.5rem;
|
|
29
|
-
font-size: 0.875rem;
|
|
30
|
-
${CheckboxWrapper} {
|
|
31
|
-
margin-top: 1rem;
|
|
32
|
-
&:first-child {
|
|
33
|
-
margin-top: 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
${SelectorBody} {
|
|
39
|
-
padding: 1rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
${Title} {
|
|
43
|
-
margin: 0;
|
|
44
|
-
padding: 0;
|
|
45
|
-
padding-bottom: 1rem;
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
font-size: 0.875em;
|
|
48
|
-
border-bottom: 1px solid #e8e8e8;
|
|
49
|
-
text-align: center;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
const MiniSelector = (_a) => {
|
|
53
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
54
|
-
return React.createElement(SelectorWrapper, Object.assign({}, props), children);
|
|
55
|
-
};
|
|
56
|
-
/** @component */
|
|
57
|
-
export default MiniSelector;
|
|
58
|
-
//# sourceMappingURL=MiniSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiniSelector.js","sourceRoot":"","sources":["MiniSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;IAUjC,eAAsB;;;;MAIpB,eAAsB;;;;;;;;IAQxB,YAAmB;;;;IAInB,KAAY;;;;;;;;;CASf,CAAC;AAEF,MAAM,YAAY,GAAc,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IACnD,OAAO,oBAAC,eAAe,oBAAK,KAAK,GAAG,QAAQ,CAAmB,CAAC;AAClE,CAAC,CAAC;AAEF,iBAAiB;AACjB,eAAe,YAAY,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Channel } from '@jetshop/core/types';
|
|
2
|
-
import React, { SFC } from 'react';
|
|
3
|
-
export interface ChannelWithRegion extends Channel {
|
|
4
|
-
region: string;
|
|
5
|
-
}
|
|
6
|
-
export interface RenderCallback {
|
|
7
|
-
(props: {
|
|
8
|
-
regionCountries: {
|
|
9
|
-
[key: string]: Channel[];
|
|
10
|
-
};
|
|
11
|
-
region: string;
|
|
12
|
-
}): React.ReactElement<any>;
|
|
13
|
-
}
|
|
14
|
-
export interface RegionProps {
|
|
15
|
-
channels: ChannelWithRegion[];
|
|
16
|
-
render: RenderCallback;
|
|
17
|
-
}
|
|
18
|
-
export declare const Region: SFC<RegionProps>;
|
|
19
|
-
export default Region;
|
|
20
|
-
export declare const RegionName: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement> & {
|
|
21
|
-
as?: React.ElementType<any>;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const RegionWrapper: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
24
|
-
as?: React.ElementType<any>;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const RegionGroup: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
27
|
-
as?: React.ElementType<any>;
|
|
28
|
-
}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { styled } from 'linaria/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import groupBy from './groupBy';
|
|
4
|
-
export const Region = ({ channels, render }) => {
|
|
5
|
-
const groupedCountries = groupBy(channels, channel => channel.region);
|
|
6
|
-
return (React.createElement(RegionWrapper, null, Object.keys(groupedCountries).map(region => {
|
|
7
|
-
const regionCountries = groupedCountries[region];
|
|
8
|
-
return render({ regionCountries, region });
|
|
9
|
-
})));
|
|
10
|
-
};
|
|
11
|
-
export default Region;
|
|
12
|
-
export const RegionName = styled('h2') `
|
|
13
|
-
text-transform: uppercase;
|
|
14
|
-
font-size: 1rem;
|
|
15
|
-
line-height: 1.5rem;
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
margin: 1rem 0 0.5rem 0;
|
|
18
|
-
`;
|
|
19
|
-
export const RegionWrapper = styled('div') ``;
|
|
20
|
-
export const RegionGroup = styled('div') ``;
|
|
21
|
-
//# sourceMappingURL=Region.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Region.js","sourceRoot":"","sources":["Region.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,KAAc,MAAM,OAAO,CAAC;AACnC,OAAO,OAAO,MAAM,WAAW,CAAC;AAiBhC,MAAM,CAAC,MAAM,MAAM,GAAqB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/D,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAEnE,CAAC;IACF,OAAO,CACL,oBAAC,aAAa,QACX,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAC1C,MAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAEjD,OAAO,MAAM,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,CAAC,CAAC,CACY,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC;AAEtB,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;CAMrC,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,EAAE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Takes in an array and a keyGetter function by which to select
|
|
3
|
-
* the key to group by. Returns an array.
|
|
4
|
-
*/
|
|
5
|
-
export default function groupBy(list, keyGetter) {
|
|
6
|
-
// Return if the keyGetter does not return a string
|
|
7
|
-
if (typeof keyGetter(list[0]) !== 'string')
|
|
8
|
-
return list;
|
|
9
|
-
return list.reduce((groups, item) => {
|
|
10
|
-
const key = keyGetter(item);
|
|
11
|
-
groups[key] = groups[key] || [];
|
|
12
|
-
groups[key].push(item);
|
|
13
|
-
return groups;
|
|
14
|
-
}, {});
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=groupBy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groupBy.js","sourceRoot":"","sources":["groupBy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,IAAS,EACT,SAA8B;IAE9B,mDAAmD;IACnD,IAAI,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,MAAW,EAAE,IAAI,EAAE,EAAE;QACvC,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
package/Checkbox/Checkbox.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type CheckboxProps = {
|
|
3
|
-
label: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
export type CheckboxCompound = {
|
|
7
|
-
Label?: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: React.SFC<CheckboxProps & React.InputHTMLAttributes<HTMLInputElement>> & CheckboxCompound & {
|
|
10
|
-
Label: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLLabelElement> & React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
11
|
-
as?: React.ElementType<any>;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
package/Checkbox/Checkbox.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { styled } from 'linaria/react';
|
|
14
|
-
import { ReactComponent as Check } from '../svg/Check.svg';
|
|
15
|
-
const CheckInput = styled('input') `
|
|
16
|
-
/* hide browser default checkbox */
|
|
17
|
-
position: absolute;
|
|
18
|
-
opacity: 0;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
`;
|
|
21
|
-
const CheckBox = styled('span') `
|
|
22
|
-
height: 22px;
|
|
23
|
-
width: 22px;
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
border: 1px solid black;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
margin-right: 0.5rem;
|
|
30
|
-
`;
|
|
31
|
-
const CheckMark = styled(Check) `
|
|
32
|
-
display: none;
|
|
33
|
-
width: 1em;
|
|
34
|
-
height: 1em;
|
|
35
|
-
use {
|
|
36
|
-
fill: white;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
const Label = styled('label') `
|
|
40
|
-
display: flex;
|
|
41
|
-
position: relative;
|
|
42
|
-
height: 22px;
|
|
43
|
-
align-items: center;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
white-space: nowrap;
|
|
47
|
-
:hover input ~ span {
|
|
48
|
-
background-color: #ccc;
|
|
49
|
-
}
|
|
50
|
-
input:focus ~ span {
|
|
51
|
-
border-color: #2f80ed;
|
|
52
|
-
}
|
|
53
|
-
input:checked ~ span {
|
|
54
|
-
svg {
|
|
55
|
-
display: block;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
const Checkbox = (_a) => {
|
|
60
|
-
var { label, className } = _a, props = __rest(_a, ["label", "className"]);
|
|
61
|
-
return (React.createElement(Label, { className: className || '', "data-testid": `checkbox-${label}` },
|
|
62
|
-
React.createElement(CheckInput, Object.assign({ type: "checkbox" }, props)),
|
|
63
|
-
React.createElement(CheckBox, null,
|
|
64
|
-
React.createElement(CheckMark, null)),
|
|
65
|
-
label));
|
|
66
|
-
};
|
|
67
|
-
export default Object.assign(Checkbox, {
|
|
68
|
-
Label
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=Checkbox.js.map
|
package/Checkbox/Checkbox.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;;;;;CAKjC,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;;;;;CAS9B,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;;;;;;;CAO9B,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;;;;;;;;;;;;;;;;;;;CAmB5B,CAAC;AAWF,MAAM,QAAQ,GAGO,CAAC,EAA8B,EAAE,EAAE;QAAlC,EAAE,KAAK,EAAE,SAAS,OAAY,EAAP,KAAK,cAA5B,sBAA8B,CAAF;IAChD,OAAO,CACL,oBAAC,KAAK,IAAC,SAAS,EAAE,SAAS,IAAI,EAAE,iBAAe,YAAY,KAAK,EAAE;QACjE,oBAAC,UAAU,kBAAC,IAAI,EAAC,UAAU,IAAK,KAAK,EAAI;QACzC,oBAAC,QAAQ;YACP,oBAAC,SAAS,OAAG,CACJ;QACV,KAAK,CACA,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IACrC,KAAK;CACN,CAAC,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type CheckboxGroupChange = (val: string) => any;
|
|
3
|
-
export interface Item {
|
|
4
|
-
/** The checkbox label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** The checkbox value; applied to the underlying input element */
|
|
7
|
-
val: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Props {
|
|
10
|
-
items: Item[];
|
|
11
|
-
selectedItem: string;
|
|
12
|
-
/** The label to display for the entire group */
|
|
13
|
-
groupLabel?: string;
|
|
14
|
-
/** Called when the value changes */
|
|
15
|
-
handleChange: CheckboxGroupChange;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const Radio: import("linaria/lib/StyledMeta").StyledMeta & React.SFC<import("./Checkbox").CheckboxProps & React.InputHTMLAttributes<HTMLInputElement>> & import("./Checkbox").CheckboxCompound & {
|
|
19
|
-
Label: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLLabelElement> & React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
20
|
-
as?: React.ElementType<any>;
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
export declare const CheckboxWrapper: import("linaria/lib/StyledMeta").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
24
|
-
as?: React.ElementType<any>;
|
|
25
|
-
}>;
|
|
26
|
-
declare const CheckboxGroup: React.SFC<Props>;
|
|
27
|
-
export default CheckboxGroup;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Checkbox from './Checkbox';
|
|
3
|
-
import { styled } from 'linaria/react';
|
|
4
|
-
export const Radio = styled(Checkbox) `
|
|
5
|
-
display: flex;
|
|
6
|
-
margin-top: 1rem;
|
|
7
|
-
& span {
|
|
8
|
-
width: 16px;
|
|
9
|
-
height: 16px;
|
|
10
|
-
border-radius: 50%;
|
|
11
|
-
flex: 0 0 auto;
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
const Label = styled('span') `
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
`;
|
|
17
|
-
export const CheckboxWrapper = styled('div') ``;
|
|
18
|
-
const CheckboxGroup = ({ selectedItem, items, handleChange, groupLabel, className }) => (React.createElement(CheckboxWrapper, { className: className },
|
|
19
|
-
groupLabel && React.createElement(Label, null, groupLabel),
|
|
20
|
-
items.map(item => (React.createElement(Radio, { type: "radio", key: item.val, value: item.val, tabIndex: 0, checked: selectedItem === item.val ? true : false, label: item.label, onChange: () => handleChange(item.val) })))));
|
|
21
|
-
export default CheckboxGroup;
|
|
22
|
-
//# sourceMappingURL=CheckboxGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAoBvC,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;;;;;;;;CASpC,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;CAE3B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,EAAE,CAAC;AAE/C,MAAM,aAAa,GAAqB,CAAC,EACvC,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,UAAU,EACV,SAAS,EACV,EAAE,EAAE,CAAC,CACJ,oBAAC,eAAe,IAAC,SAAS,EAAE,SAAS;IAClC,UAAU,IAAI,oBAAC,KAAK,QAAE,UAAU,CAAS;IACzC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACjB,oBAAC,KAAK,IACJ,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,GAAG,EACf,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EACjD,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,GACtC,CACH,CAAC,CACc,CACnB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/Checkbox/index.d.ts
DELETED
package/Checkbox/index.js
DELETED
package/Checkbox/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,eAAe,QAAQ,CAAC"}
|
package/ContentPageLink.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { LinkProps } from 'react-router-dom';
|
|
3
|
-
import { Page } from '@jetshop/core/types';
|
|
4
|
-
export interface ContentPageLinkProps extends Partial<LinkProps> {
|
|
5
|
-
page: Page;
|
|
6
|
-
className?: string;
|
|
7
|
-
preloadRoute?: boolean;
|
|
8
|
-
onMouseEnter?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => any;
|
|
9
|
-
}
|
|
10
|
-
declare const ContentPageLink: React.FC<ContentPageLinkProps>;
|
|
11
|
-
export default ContentPageLink;
|
package/ContentPageLink.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { Link } from 'react-router-dom';
|
|
14
|
-
import { useRoutePreload } from '@jetshop/core/hooks/useRoutePreload';
|
|
15
|
-
import { useHoverIntent } from './utils/useHoverIntent';
|
|
16
|
-
const ContentPageLink = function ContentPageLink(props) {
|
|
17
|
-
const { page, onMouseEnter, preloadRoute = true } = props, rest = __rest(props, ["page", "onMouseEnter", "preloadRoute"]);
|
|
18
|
-
const { primaryRoute } = page;
|
|
19
|
-
const { preload } = useRoutePreload();
|
|
20
|
-
const contentPreload = () => {
|
|
21
|
-
if (!(primaryRoute === null || primaryRoute === void 0 ? void 0 : primaryRoute.path)) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
preload({
|
|
25
|
-
pathname: primaryRoute.path,
|
|
26
|
-
routeType: 'Page',
|
|
27
|
-
preloadRoute
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
const [, intentRef] = useHoverIntent({
|
|
31
|
-
onHover: () => {
|
|
32
|
-
contentPreload();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return (React.createElement(Link, Object.assign({ to: {
|
|
36
|
-
pathname: primaryRoute === null || primaryRoute === void 0 ? void 0 : primaryRoute.path,
|
|
37
|
-
state: { type: 'Page' }
|
|
38
|
-
}, innerRef: intentRef, onTouchStart: contentPreload, onMouseEnter: (event) => {
|
|
39
|
-
contentPreload();
|
|
40
|
-
if (typeof onMouseEnter === 'function') {
|
|
41
|
-
onMouseEnter(event);
|
|
42
|
-
}
|
|
43
|
-
} }, rest)));
|
|
44
|
-
};
|
|
45
|
-
export default ContentPageLink;
|
|
46
|
-
//# sourceMappingURL=ContentPageLink.js.map
|
package/ContentPageLink.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageLink.js","sourceRoot":"","sources":["ContentPageLink.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAWxD,MAAM,eAAe,GACnB,SAAS,eAAe,CAAC,KAAK;IAC5B,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA5D,wCAAoD,CAAQ,CAAC;IACnE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,EAAE,CAAC;IACtC,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,IAAI,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,CAAA,EAAE;YACvB,OAAO;SACR;QACD,OAAO,CAAC;YACN,QAAQ,EAAE,YAAY,CAAC,IAAI;YAC3B,SAAS,EAAE,MAAM;YACjB,YAAY;SACb,CAAC,CAAC;IACL,CAAC,CAAC;IACF,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG,cAAc,CAAC;QACnC,OAAO,EAAE,GAAG,EAAE;YACZ,cAAc,EAAE,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,IAAI,kBACH,EAAE,EAAE;YACF,QAAQ,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI;YAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACxB,EACD,QAAQ,EAAE,SAAgB,EAC1B,YAAY,EAAE,cAAc,EAC5B,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE;YACtB,cAAc,EAAE,CAAC;YACjB,IAAI,OAAO,YAAY,KAAK,UAAU,EAAE;gBACtC,YAAY,CAAC,KAAK,CAAC,CAAC;aACrB;QACH,CAAC,IACG,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEJ,eAAe,eAAe,CAAC"}
|
package/ContentRenderer.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ContentItem } from '@jetshop/core/types';
|
|
3
|
-
export type Components = {
|
|
4
|
-
[key: string]: React.FC<any>;
|
|
5
|
-
};
|
|
6
|
-
export declare function ContentRenderer({ items, components }: {
|
|
7
|
-
items: ContentItem[];
|
|
8
|
-
components: Components;
|
|
9
|
-
}): JSX.Element;
|
package/ContentRenderer.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
const convertPropsToObject = (item) => {
|
|
3
|
-
const props = item.properties.reduce((merged, current) => {
|
|
4
|
-
var _a, _b;
|
|
5
|
-
if ((current === null || current === void 0 ? void 0 : current.valueType) === 'SCALAR') {
|
|
6
|
-
merged[current.name] = {
|
|
7
|
-
type: current.type,
|
|
8
|
-
value: (_a = current === null || current === void 0 ? void 0 : current.value) === null || _a === void 0 ? void 0 : _a.value,
|
|
9
|
-
__typename: (_b = current === null || current === void 0 ? void 0 : current.value) === null || _b === void 0 ? void 0 : _b.__typename
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
merged[current.name] = {
|
|
14
|
-
type: current.type,
|
|
15
|
-
value: current.value
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
return merged;
|
|
19
|
-
}, {});
|
|
20
|
-
return props;
|
|
21
|
-
};
|
|
22
|
-
const renderContent = ({ items, components }) => items.map((item, index) => {
|
|
23
|
-
const Component = components[item.type.toUpperCase()] || components[item.type];
|
|
24
|
-
const props = convertPropsToObject(item);
|
|
25
|
-
if (Component) {
|
|
26
|
-
return (React.createElement(Component, Object.assign({ key: `${item.type}-${index}` }, props), (item === null || item === void 0 ? void 0 : item.children) && item.children.length > 0
|
|
27
|
-
? renderContent({ items: item.children, components })
|
|
28
|
-
: null));
|
|
29
|
-
}
|
|
30
|
-
else
|
|
31
|
-
return null;
|
|
32
|
-
});
|
|
33
|
-
export function ContentRenderer({ items, components }) {
|
|
34
|
-
return React.createElement(React.Fragment, null, renderContent({ items, components }));
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=ContentRenderer.js.map
|
package/ContentRenderer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRenderer.js","sourceRoot":"","sources":["ContentRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,oBAAoB,GAAG,CAAC,IAAiB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;;QACvD,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,MAAK,QAAQ,EAAE;YACnC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG;gBACrB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,MAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAiC,0CAAE,KAAK;gBACzD,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,UAAU;aACvC,CAAC;SACH;aAAM;YACL,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG;gBACrB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,OAAO,CAAC,KAA2B;aAC3C,CAAC;SACH;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAA4G,CAAC,CAAC;IAEjH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,UAAU,EAIX,EAAiB,EAAE,CAClB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;IACxB,MAAM,SAAS,GACb,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE/D,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEzC,IAAI,SAAS,EAAE;QACb,OAAO,CACL,oBAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,IAAM,KAAK,GAC/C,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,KAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;YACzC,CAAC,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;YACrD,CAAC,CAAC,IAAI,CACE,CACb,CAAC;KACH;;QAAM,OAAO,IAAI,CAAC;AACrB,CAAC,CAAC,CAAC;AAEL,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,UAAU,EAIX;IACC,OAAO,0CAAG,aAAa,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAI,CAAC;AACrD,CAAC"}
|
package/DropdownMenu/Button.d.ts
DELETED
package/DropdownMenu/Button.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useRef, useEffect } from 'react';
|
|
13
|
-
import { DropdownMenuContext } from './DropdownMenu';
|
|
14
|
-
import { withFlightUI } from '../withFlightUI';
|
|
15
|
-
const Button = (_a) => {
|
|
16
|
-
var { children } = _a, rest = __rest(_a, ["children"]);
|
|
17
|
-
const { isOpen, setIsOpen } = React.useContext(DropdownMenuContext);
|
|
18
|
-
const prevOpenState = useRef(isOpen);
|
|
19
|
-
const buttonRef = useRef();
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
if (!isOpen && prevOpenState.current === true)
|
|
22
|
-
buttonRef.current.focus();
|
|
23
|
-
prevOpenState.current = isOpen;
|
|
24
|
-
}, [isOpen]);
|
|
25
|
-
const clickHandler = (event) => {
|
|
26
|
-
event.stopPropagation();
|
|
27
|
-
setIsOpen((o) => !o);
|
|
28
|
-
typeof rest.onClick === 'function' && rest.onClick();
|
|
29
|
-
};
|
|
30
|
-
return withFlightUI(children, Object.assign({ as: 'button', 'data-flight-dropdown-button': '', 'aria-expanded': isOpen, 'aria-haspopup': 'menu', type: 'button', role: 'button', ref: buttonRef, onClick: clickHandler }, rest));
|
|
31
|
-
};
|
|
32
|
-
export { Button };
|
|
33
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["Button.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAqB,MAAM,iBAAiB,CAAC;AAElE,MAAM,MAAM,GAKR,CAAC,EAAqB,EAAE,EAAE;QAAzB,EAAE,QAAQ,OAAW,EAAN,IAAI,cAAnB,YAAqB,CAAF;IACtB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,EAAmC,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI;YAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACzE,aAAa,CAAC,OAAO,GAAG,MAAM,CAAC;IACjC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,YAAY,GAAG,CAAC,KAAmC,EAAE,EAAE;QAC3D,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACrB,OAAO,IAAI,CAAC,OAAO,KAAK,UAAU,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;IACvD,CAAC,CAAC;IAEF,OAAO,YAAY,CAAC,QAAQ,kBAC1B,EAAE,EAAE,QAAQ,EACZ,6BAA6B,EAAE,EAAE,EACjC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,QAAQ,EACd,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,YAAY,IAClB,IAAI,EACP,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FlightUIProps } from '../withFlightUI';
|
|
3
|
-
export declare const DropdownMenuContext: React.Context<{
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
itemRefs: React.RefObject<any>;
|
|
7
|
-
}>;
|
|
8
|
-
interface DropdownMenuProps extends FlightUIProps {
|
|
9
|
-
/** The initial open state of the dropdown menu
|
|
10
|
-
* @default false
|
|
11
|
-
* */
|
|
12
|
-
initialOpen?: boolean;
|
|
13
|
-
/** Set to true if you'd like to disable all default styling */
|
|
14
|
-
unstyled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const DropdownMenu: React.NamedExoticComponent<DropdownMenuProps>;
|
|
17
|
-
export declare function useDropdownMenu(): {
|
|
18
|
-
isOpen: boolean;
|
|
19
|
-
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
-
};
|
|
21
|
-
export {};
|