@webiny/ui 0.0.0-unstable.99666aeb00 → 0.0.0-unstable.a9593f74dd
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/Accordion/Accordion.d.ts +1 -1
- package/Accordion/Accordion.js +3 -1
- package/Accordion/Accordion.js.map +1 -1
- package/Accordion/Accordion.stories.js +3 -1
- package/Accordion/Accordion.stories.js.map +1 -1
- package/Accordion/AccordionItem.d.ts +4 -3
- package/Accordion/AccordionItem.js +6 -6
- package/Accordion/AccordionItem.js.map +1 -1
- package/Accordion/AccordionItemActions.d.ts +9 -1
- package/Accordion/AccordionItemActions.js +13 -2
- package/Accordion/AccordionItemActions.js.map +1 -1
- package/Accordion/index.js +3 -1
- package/Accordion/index.js.map +1 -1
- package/Alert/Alert.d.ts +1 -1
- package/Alert/Alert.js +3 -1
- package/Alert/Alert.js.map +1 -1
- package/Alert/Alert.stories.js +3 -1
- package/Alert/Alert.stories.js.map +1 -1
- package/Alert/index.js +3 -1
- package/Alert/index.js.map +1 -1
- package/AutoComplete/AutoComplete.js +13 -9
- package/AutoComplete/AutoComplete.js.map +1 -1
- package/AutoComplete/AutoComplete.stories.js +3 -1
- package/AutoComplete/AutoComplete.stories.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.d.ts +6 -2
- package/AutoComplete/MultiAutoComplete.js +15 -3
- package/AutoComplete/MultiAutoComplete.js.map +1 -1
- package/AutoComplete/MultiAutoComplete.stories.js +3 -1
- package/AutoComplete/MultiAutoComplete.stories.js.map +1 -1
- package/AutoComplete/index.js +3 -1
- package/AutoComplete/index.js.map +1 -1
- package/AutoComplete/styles.js +3 -1
- package/AutoComplete/styles.js.map +1 -1
- package/AutoComplete/types.d.ts +3 -3
- package/AutoComplete/types.js +3 -1
- package/AutoComplete/types.js.map +1 -1
- package/AutoComplete/utils.js +3 -1
- package/AutoComplete/utils.js.map +1 -1
- package/Avatar/Avatar.d.ts +7 -1
- package/Avatar/Avatar.js +3 -1
- package/Avatar/Avatar.js.map +1 -1
- package/Avatar/Avatar.stories.js +3 -1
- package/Avatar/Avatar.stories.js.map +1 -1
- package/Avatar/index.js +3 -1
- package/Avatar/index.js.map +1 -1
- package/Button/Button.d.ts +5 -6
- package/Button/Button.js +3 -1
- package/Button/Button.js.map +1 -1
- package/Button/Button.stories.js +3 -1
- package/Button/Button.stories.js.map +1 -1
- package/Button/Button.styles.js +3 -1
- package/Button/Button.styles.js.map +1 -1
- package/Button/CopyButton/CopyButton.d.ts +2 -2
- package/Button/CopyButton/CopyButton.js +3 -1
- package/Button/CopyButton/CopyButton.js.map +1 -1
- package/Button/CopyButton/CopyButton.stories.js +3 -1
- package/Button/CopyButton/CopyButton.stories.js.map +1 -1
- package/Button/IconButton/IconButton.d.ts +2 -1
- package/Button/IconButton/IconButton.js +3 -1
- package/Button/IconButton/IconButton.js.map +1 -1
- package/Button/IconButton/IconButton.stories.js +3 -1
- package/Button/IconButton/IconButton.stories.js.map +1 -1
- package/Button/index.js +3 -1
- package/Button/index.js.map +1 -1
- package/Carousel/Carousel.js +3 -1
- package/Carousel/Carousel.js.map +1 -1
- package/Carousel/Carouser.stories.js +3 -1
- package/Carousel/Carouser.stories.js.map +1 -1
- package/Carousel/index.js +3 -1
- package/Carousel/index.js.map +1 -1
- package/Checkbox/Checkbox.d.ts +0 -1
- package/Checkbox/Checkbox.js +4 -4
- package/Checkbox/Checkbox.js.map +1 -1
- package/Checkbox/Checkbox.stories.js +3 -1
- package/Checkbox/Checkbox.stories.js.map +1 -1
- package/Checkbox/Checkbox.styles.js +3 -1
- package/Checkbox/Checkbox.styles.js.map +1 -1
- package/Checkbox/CheckboxGroup.js +3 -1
- package/Checkbox/CheckboxGroup.js.map +1 -1
- package/Checkbox/CheckboxGroup.stories.js +3 -1
- package/Checkbox/CheckboxGroup.stories.js.map +1 -1
- package/Checkbox/index.js +3 -1
- package/Checkbox/index.js.map +1 -1
- package/Chips/Chip.d.ts +2 -2
- package/Chips/Chip.js +3 -1
- package/Chips/Chip.js.map +1 -1
- package/Chips/Chips.d.ts +1 -1
- package/Chips/Chips.js +3 -1
- package/Chips/Chips.js.map +1 -1
- package/Chips/Chips.stories.js +3 -1
- package/Chips/Chips.stories.js.map +1 -1
- package/Chips/index.js +3 -1
- package/Chips/index.js.map +1 -1
- package/Chips/styles.js +3 -1
- package/Chips/styles.js.map +1 -1
- package/CodeEditor/CodeEditor.d.ts +3 -0
- package/CodeEditor/CodeEditor.js +12 -3
- package/CodeEditor/CodeEditor.js.map +1 -1
- package/CodeEditor/CodeEditor.stories.js +3 -1
- package/CodeEditor/CodeEditor.stories.js.map +1 -1
- package/CodeEditor/index.js +3 -1
- package/CodeEditor/index.js.map +1 -1
- package/ColorPicker/ColorPicker.js +4 -2
- package/ColorPicker/ColorPicker.js.map +1 -1
- package/ColorPicker/ColorPicker.stories.js +3 -1
- package/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/ColorPicker/index.js +3 -1
- package/ColorPicker/index.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.js +23 -48
- package/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
- package/ConfirmationDialog/ConfirmationDialog.stories.js +3 -1
- package/ConfirmationDialog/ConfirmationDialog.stories.js.map +1 -1
- package/ConfirmationDialog/index.js +3 -1
- package/ConfirmationDialog/index.js.map +1 -1
- package/ConfirmationDialog/withConfirmation.d.ts +2 -2
- package/ConfirmationDialog/withConfirmation.js +3 -1
- package/ConfirmationDialog/withConfirmation.js.map +1 -1
- package/DataTable/ColumnDirection.d.ts +5 -0
- package/DataTable/ColumnDirection.js +20 -0
- package/DataTable/ColumnDirection.js.map +1 -0
- package/DataTable/ColumnsVisibility.d.ts +7 -0
- package/DataTable/ColumnsVisibility.js +65 -0
- package/DataTable/ColumnsVisibility.js.map +1 -0
- package/DataTable/DataTable.d.ts +27 -8
- package/DataTable/DataTable.js +179 -61
- package/DataTable/DataTable.js.map +1 -1
- package/DataTable/DataTable.stories.js +3 -1
- package/DataTable/DataTable.stories.js.map +1 -1
- package/DataTable/index.js +3 -1
- package/DataTable/index.js.map +1 -1
- package/DataTable/styled.d.ts +31 -5
- package/DataTable/styled.js +42 -8
- package/DataTable/styled.js.map +1 -1
- package/DateTime/Date.d.ts +7 -0
- package/DateTime/Date.js +41 -0
- package/DateTime/Date.js.map +1 -0
- package/DateTime/index.d.ts +1 -0
- package/DateTime/index.js +14 -0
- package/DateTime/index.js.map +1 -0
- package/DelayedOnChange/DelayedOnChange.d.ts +1 -2
- package/DelayedOnChange/DelayedOnChange.js +14 -1
- package/DelayedOnChange/DelayedOnChange.js.map +1 -1
- package/DelayedOnChange/index.js +3 -1
- package/DelayedOnChange/index.js.map +1 -1
- package/DelayedOnChange/withDelayedOnChange.d.ts +1 -1
- package/DelayedOnChange/withDelayedOnChange.js +3 -1
- package/DelayedOnChange/withDelayedOnChange.js.map +1 -1
- package/Dialog/Dialog.d.ts +6 -7
- package/Dialog/Dialog.js +3 -4
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/Dialog.stories.js +3 -1
- package/Dialog/Dialog.stories.js.map +1 -1
- package/Dialog/index.js +3 -1
- package/Dialog/index.js.map +1 -1
- package/Drawer/Drawer.d.ts +13 -11
- package/Drawer/Drawer.js +34 -5
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/Drawer.stories.js +3 -1
- package/Drawer/Drawer.stories.js.map +1 -1
- package/Drawer/index.js +3 -1
- package/Drawer/index.js.map +1 -1
- package/DynamicFieldset/Fieldset.d.ts +3 -3
- package/DynamicFieldset/Fieldset.js +3 -1
- package/DynamicFieldset/Fieldset.js.map +1 -1
- package/DynamicFieldset/index.js +3 -1
- package/DynamicFieldset/index.js.map +1 -1
- package/Elevation/Elevation.js +3 -1
- package/Elevation/Elevation.js.map +1 -1
- package/Elevation/Elevation.stories.js +3 -1
- package/Elevation/Elevation.stories.js.map +1 -1
- package/Elevation/index.js +3 -1
- package/Elevation/index.js.map +1 -1
- package/FormElementMessage/FormElementMessage.js +3 -1
- package/FormElementMessage/FormElementMessage.js.map +1 -1
- package/FormElementMessage/index.js +3 -1
- package/FormElementMessage/index.js.map +1 -1
- package/FullName/FullName.js +3 -1
- package/FullName/FullName.js.map +1 -1
- package/FullName/index.js +3 -1
- package/FullName/index.js.map +1 -1
- package/Grid/Grid.js +3 -1
- package/Grid/Grid.js.map +1 -1
- package/Grid/Grid.stories.js +3 -1
- package/Grid/Grid.stories.js.map +1 -1
- package/Grid/index.js +3 -1
- package/Grid/index.js.map +1 -1
- package/Helpers/ClassNames.js +5 -3
- package/Helpers/ClassNames.js.map +1 -1
- package/Helpers/index.js +3 -1
- package/Helpers/index.js.map +1 -1
- package/Icon/Icon.d.ts +2 -2
- package/Icon/Icon.js +3 -1
- package/Icon/Icon.js.map +1 -1
- package/Icon/Icon.stories.js +3 -1
- package/Icon/Icon.stories.js.map +1 -1
- package/Icon/index.js +3 -1
- package/Icon/index.js.map +1 -1
- package/Image/Image.d.ts +1 -2
- package/Image/Image.js +5 -1
- package/Image/Image.js.map +1 -1
- package/Image/Image.stories.js +3 -1
- package/Image/Image.stories.js.map +1 -1
- package/Image/index.js +3 -1
- package/Image/index.js.map +1 -1
- package/ImageEditor/ImageEditor.d.ts +3 -4
- package/ImageEditor/ImageEditor.js +29 -64
- package/ImageEditor/ImageEditor.js.map +1 -1
- package/ImageEditor/index.js +3 -1
- package/ImageEditor/index.js.map +1 -1
- package/ImageEditor/toolbar/crop.js +3 -1
- package/ImageEditor/toolbar/crop.js.map +1 -1
- package/ImageEditor/toolbar/filter.js +13 -11
- package/ImageEditor/toolbar/filter.js.map +1 -1
- package/ImageEditor/toolbar/flip.js +3 -1
- package/ImageEditor/toolbar/flip.js.map +1 -1
- package/ImageEditor/toolbar/icons/index.js +3 -1
- package/ImageEditor/toolbar/icons/index.js.map +1 -1
- package/ImageEditor/toolbar/index.js +3 -1
- package/ImageEditor/toolbar/index.js.map +1 -1
- package/ImageEditor/toolbar/rotate.js +14 -22
- package/ImageEditor/toolbar/rotate.js.map +1 -1
- package/ImageEditor/toolbar/types.d.ts +1 -2
- package/ImageEditor/toolbar/types.js +3 -1
- package/ImageEditor/toolbar/types.js.map +1 -1
- package/ImageUpload/Image.d.ts +2 -1
- package/ImageUpload/Image.js +3 -1
- package/ImageUpload/Image.js.map +1 -1
- package/ImageUpload/ImageEditorDialog.js +3 -1
- package/ImageUpload/ImageEditorDialog.js.map +1 -1
- package/ImageUpload/MultiImageUpload.d.ts +4 -2
- package/ImageUpload/MultiImageUpload.js +62 -133
- package/ImageUpload/MultiImageUpload.js.map +1 -1
- package/ImageUpload/MultiImageUpload.stories.js +3 -1
- package/ImageUpload/MultiImageUpload.stories.js.map +1 -1
- package/ImageUpload/SingleImageUpload.d.ts +4 -2
- package/ImageUpload/SingleImageUpload.js +17 -32
- package/ImageUpload/SingleImageUpload.js.map +1 -1
- package/ImageUpload/SingleImageUpload.stories.js +3 -1
- package/ImageUpload/SingleImageUpload.stories.js.map +1 -1
- package/ImageUpload/index.js +3 -1
- package/ImageUpload/index.js.map +1 -1
- package/ImageUpload/styled.d.ts +0 -2
- package/ImageUpload/styled.js +3 -1
- package/ImageUpload/styled.js.map +1 -1
- package/Input/Input.d.ts +7 -2
- package/Input/Input.js +20 -39
- package/Input/Input.js.map +1 -1
- package/Input/Input.stories.js +3 -1
- package/Input/Input.stories.js.map +1 -1
- package/Input/__tests__/Input.test.js +3 -3
- package/Input/__tests__/Input.test.js.map +1 -1
- package/Input/index.js +3 -1
- package/Input/index.js.map +1 -1
- package/Input/styled.js +3 -1
- package/Input/styled.js.map +1 -1
- package/List/CollapsibleList/CollapsibleList.stories.js +3 -1
- package/List/CollapsibleList/CollapsibleList.stories.js.map +1 -1
- package/List/CollapsibleList/index.d.ts +1 -1
- package/List/CollapsibleList/index.js +3 -1
- package/List/CollapsibleList/index.js.map +1 -1
- package/List/DataList/DataList.d.ts +31 -3
- package/List/DataList/DataList.js +3 -1
- package/List/DataList/DataList.js.map +1 -1
- package/List/DataList/DataList.stories.js +4 -2
- package/List/DataList/DataList.stories.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.d.ts +2 -2
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js +4 -2
- package/List/DataList/DataListModalOverlay/DataListModalOverlay.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.d.ts +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js +3 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayAction.js.map +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.d.ts +1 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js +3 -1
- package/List/DataList/DataListModalOverlay/DataListModalOverlayContext.js.map +1 -1
- package/List/DataList/DataListModalOverlay/index.js +3 -1
- package/List/DataList/DataListModalOverlay/index.js.map +1 -1
- package/List/DataList/DataListWithSections.d.ts +31 -3
- package/List/DataList/DataListWithSections.js +6 -1
- package/List/DataList/DataListWithSections.js.map +1 -1
- package/List/DataList/Loader.js +3 -1
- package/List/DataList/Loader.js.map +1 -1
- package/List/DataList/NoData.d.ts +2 -2
- package/List/DataList/NoData.js +3 -1
- package/List/DataList/NoData.js.map +1 -1
- package/List/DataList/icons/index.js +3 -1
- package/List/DataList/icons/index.js.map +1 -1
- package/List/DataList/index.js +3 -1
- package/List/DataList/index.js.map +1 -1
- package/List/DataList/types.d.ts +6 -6
- package/List/DataList/types.js +3 -1
- package/List/DataList/types.js.map +1 -1
- package/List/List.d.ts +0 -1
- package/List/List.js +3 -1
- package/List/List.js.map +1 -1
- package/List/List.stories.js +3 -1
- package/List/List.stories.js.map +1 -1
- package/List/icons/index.js +3 -1
- package/List/icons/index.js.map +1 -1
- package/List/index.js +3 -1
- package/List/index.js.map +1 -1
- package/Menu/Menu.d.ts +3 -2
- package/Menu/Menu.js +11 -7
- package/Menu/Menu.js.map +1 -1
- package/Menu/Menu.stories.js +3 -1
- package/Menu/Menu.stories.js.map +1 -1
- package/Menu/index.js +3 -1
- package/Menu/index.js.map +1 -1
- package/Mosaic/Mosaic.d.ts +12 -1
- package/Mosaic/Mosaic.js +4 -4
- package/Mosaic/Mosaic.js.map +1 -1
- package/Mosaic/Mosaic.stories.js +3 -1
- package/Mosaic/Mosaic.stories.js.map +1 -1
- package/Mosaic/index.js +3 -1
- package/Mosaic/index.js.map +1 -1
- package/Progress/CircularProgress.d.ts +9 -1
- package/Progress/CircularProgress.js +3 -1
- package/Progress/CircularProgress.js.map +1 -1
- package/Progress/index.js +3 -1
- package/Progress/index.js.map +1 -1
- package/Radio/Radio.d.ts +0 -1
- package/Radio/Radio.js +4 -4
- package/Radio/Radio.js.map +1 -1
- package/Radio/Radio.styles.js +3 -1
- package/Radio/Radio.styles.js.map +1 -1
- package/Radio/RadioGroup.js +3 -1
- package/Radio/RadioGroup.js.map +1 -1
- package/Radio/RadioGroup.stories.js +3 -1
- package/Radio/RadioGroup.stories.js.map +1 -1
- package/Radio/index.js +3 -1
- package/Radio/index.js.map +1 -1
- package/RichTextEditor/RichTextEditor.d.ts +7 -7
- package/RichTextEditor/RichTextEditor.js +68 -70
- package/RichTextEditor/RichTextEditor.js.map +1 -1
- package/RichTextEditor/RichTextEditor.stories.js +3 -1
- package/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/RichTextEditor/createPropsFromConfig.js +3 -1
- package/RichTextEditor/createPropsFromConfig.js.map +1 -1
- package/RichTextEditor/index.js +3 -1
- package/RichTextEditor/index.js.map +1 -1
- package/Ripple/Ripple.d.ts +2 -1
- package/Ripple/Ripple.js +3 -1
- package/Ripple/Ripple.js.map +1 -1
- package/Ripple/Ripple.stories.js +3 -1
- package/Ripple/Ripple.stories.js.map +1 -1
- package/Ripple/index.js +3 -1
- package/Ripple/index.js.map +1 -1
- package/Scrollbar/Scrollbar.d.ts +1 -1
- package/Scrollbar/Scrollbar.js +3 -1
- package/Scrollbar/Scrollbar.js.map +1 -1
- package/Scrollbar/Scrollbar.stories.js +3 -1
- package/Scrollbar/Scrollbar.stories.js.map +1 -1
- package/Scrollbar/index.js +3 -1
- package/Scrollbar/index.js.map +1 -1
- package/Section/Section.stories.js +3 -1
- package/Section/Section.stories.js.map +1 -1
- package/Section/index.d.ts +3 -2
- package/Section/index.js +3 -1
- package/Section/index.js.map +1 -1
- package/Select/Select.d.ts +5 -3
- package/Select/Select.js +4 -2
- package/Select/Select.js.map +1 -1
- package/Select/Select.stories.js +3 -1
- package/Select/Select.stories.js.map +1 -1
- package/Select/index.js +3 -1
- package/Select/index.js.map +1 -1
- package/Select/styled.js +3 -1
- package/Select/styled.js.map +1 -1
- package/Skeleton/Skeleton.js +3 -1
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/Skeleton.stories.js +3 -1
- package/Skeleton/Skeleton.stories.js.map +1 -1
- package/Skeleton/index.js +3 -1
- package/Skeleton/index.js.map +1 -1
- package/Slider/Slider.d.ts +1 -1
- package/Slider/Slider.js +3 -1
- package/Slider/Slider.js.map +1 -1
- package/Slider/Slider.stories.js +3 -1
- package/Slider/Slider.stories.js.map +1 -1
- package/Slider/index.js +3 -1
- package/Slider/index.js.map +1 -1
- package/Snackbar/Snackbar.d.ts +0 -1
- package/Snackbar/Snackbar.js +3 -1
- package/Snackbar/Snackbar.js.map +1 -1
- package/Snackbar/Snackbar.stories.js +3 -1
- package/Snackbar/Snackbar.stories.js.map +1 -1
- package/Snackbar/index.js +3 -1
- package/Snackbar/index.js.map +1 -1
- package/Switch/Switch.d.ts +0 -1
- package/Switch/Switch.js +3 -1
- package/Switch/Switch.js.map +1 -1
- package/Switch/Switch.stories.js +3 -1
- package/Switch/Switch.stories.js.map +1 -1
- package/Switch/index.js +3 -1
- package/Switch/index.js.map +1 -1
- package/Tabs/Tab.d.ts +1 -1
- package/Tabs/Tab.js +4 -3
- package/Tabs/Tab.js.map +1 -1
- package/Tabs/Tabs.js +4 -3
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/Tabs.stories.js +3 -1
- package/Tabs/Tabs.stories.js.map +1 -1
- package/Tabs/index.js +3 -1
- package/Tabs/index.js.map +1 -1
- package/Tags/Tags.d.ts +4 -4
- package/Tags/Tags.js +3 -1
- package/Tags/Tags.js.map +1 -1
- package/Tags/Tags.stories.js +3 -1
- package/Tags/Tags.stories.js.map +1 -1
- package/Tags/index.js +3 -1
- package/Tags/index.js.map +1 -1
- package/TimeAgo/index.d.ts +3 -0
- package/TimeAgo/index.js +15 -0
- package/TimeAgo/index.js.map +1 -0
- package/Tooltip/Tooltip.js +4 -2
- package/Tooltip/Tooltip.js.map +1 -1
- package/Tooltip/Tooltip.stories.js +3 -1
- package/Tooltip/Tooltip.stories.js.map +1 -1
- package/Tooltip/index.js +3 -1
- package/Tooltip/index.js.map +1 -1
- package/TopAppBar/TopAppBar.js +3 -1
- package/TopAppBar/TopAppBar.js.map +1 -1
- package/TopAppBar/TopAppBar.stories.js +3 -1
- package/TopAppBar/TopAppBar.stories.js.map +1 -1
- package/TopAppBar/TopAppBarActionItem.js +3 -1
- package/TopAppBar/TopAppBarActionItem.js.map +1 -1
- package/TopAppBar/TopAppBarNavigationIcon.js +3 -1
- package/TopAppBar/TopAppBarNavigationIcon.js.map +1 -1
- package/TopAppBar/TopAppBarPrimary.js +3 -1
- package/TopAppBar/TopAppBarPrimary.js.map +1 -1
- package/TopAppBar/TopAppBarSecondary.js +3 -1
- package/TopAppBar/TopAppBarSecondary.js.map +1 -1
- package/TopAppBar/TopAppBarSection.js +3 -1
- package/TopAppBar/TopAppBarSection.js.map +1 -1
- package/TopAppBar/TopAppBarTitle.js +3 -1
- package/TopAppBar/TopAppBarTitle.js.map +1 -1
- package/TopAppBar/index.js +3 -1
- package/TopAppBar/index.js.map +1 -1
- package/TopProgressBar/TopProgressBar.js +3 -1
- package/TopProgressBar/TopProgressBar.js.map +1 -1
- package/TopProgressBar/TopProgressBar.stories.js +3 -1
- package/TopProgressBar/TopProgressBar.stories.js.map +1 -1
- package/TopProgressBar/hoc/index.js +3 -1
- package/TopProgressBar/hoc/index.js.map +1 -1
- package/TopProgressBar/hoc/withTopProgressBar.js +3 -1
- package/TopProgressBar/hoc/withTopProgressBar.js.map +1 -1
- package/TopProgressBar/index.js +3 -1
- package/TopProgressBar/index.js.map +1 -1
- package/Typography/Typography.d.ts +1 -1
- package/Typography/Typography.js +3 -1
- package/Typography/Typography.js.map +1 -1
- package/Typography/Typography.stories.js +3 -1
- package/Typography/Typography.stories.js.map +1 -1
- package/Typography/index.js +3 -1
- package/Typography/index.js.map +1 -1
- package/package.json +15 -14
- package/types.js +3 -1
package/Dialog/Dialog.js
CHANGED
|
@@ -8,10 +8,8 @@ exports.DialogTitle = exports.DialogContent = exports.DialogCancel = exports.Dia
|
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
12
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
13
|
var _react = _interopRequireDefault(require("react"));
|
|
16
14
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
17
15
|
var _dialog = require("@rmwc/dialog");
|
|
@@ -28,7 +26,6 @@ var Dialog = /*#__PURE__*/function (_React$Component) {
|
|
|
28
26
|
/**
|
|
29
27
|
* We can safely cast
|
|
30
28
|
*/
|
|
31
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "container", void 0);
|
|
32
29
|
_this.container = document.getElementById("dialog-container");
|
|
33
30
|
if (!_this.container) {
|
|
34
31
|
_this.container = document.createElement("div");
|
|
@@ -102,4 +99,6 @@ var DialogAccept = function DialogAccept(props) {
|
|
|
102
99
|
"data-testid": "dialog-accept"
|
|
103
100
|
}), props.children);
|
|
104
101
|
};
|
|
105
|
-
exports.DialogAccept = DialogAccept;
|
|
102
|
+
exports.DialogAccept = DialogAccept;
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=Dialog.js.map
|
package/Dialog/Dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Dialog","props","container","document","getElementById","createElement","setAttribute","body","appendChild","children","ReactDOM","createPortal","getClasses","React","Component","DialogTitle","DialogContent","addMargin","css","DialogActions","DialogButton","DialogCancel","DialogAccept"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {\n Dialog as RmwcDialog,\n DialogProps as RmwcDialogProps,\n DialogOnCloseEventT,\n DialogContent as RmwcDialogContent,\n DialogContentProps as RmwcDialogContentProps,\n DialogTitle as RmwcDialogTitle,\n DialogTitleProps as RmwcDialogTitleProps,\n DialogActions as RmwcDialogActions,\n DialogActionsProps as RmwcDialogActionsProps,\n DialogButton as RmwcDialogButton,\n DialogButtonProps as RmwcDialogButtonProps\n} from \"@rmwc/dialog\";\nimport { css } from \"emotion\";\nimport { getClasses } from \"~/Helpers\";\n\nexport type DialogOnClose = (event: DialogOnCloseEventT) => void;\n\nexport interface DialogProps extends RmwcDialogProps {\n className?: string;\n\n // Component's custom in-line styles.\n style?: React.CSSProperties;\n\n // If true, dialog will be permanently fixed inside of a view (works for temporary and persistent modes).\n open?: boolean;\n\n onClose?: (evt: DialogOnCloseEventT) => void;\n\n preventOutsideDismiss?: boolean;\n}\n\nexport class Dialog extends React.Component<DialogProps> {\n container: HTMLElement;\n\n constructor(props: DialogProps) {\n super(props);\n /**\n * We can safely cast\n */\n this.container = document.getElementById(\"dialog-container\") as HTMLElement;\n\n if (!this.container) {\n this.container = document.createElement(\"div\");\n this.container.setAttribute(\"id\", \"dialog-container\");\n const container = this.container;\n document.body && document.body.appendChild(container);\n }\n }\n\n public override render() {\n const { children, ...props } = this.props;\n const container = this.container;\n\n // Let's pass \"permanent\" / \"persistent\" / \"temporary\" flags as \"mode\" prop instead.\n return ReactDOM.createPortal(\n <RmwcDialog {...getClasses(props, \"webiny-ui-dialog\")}>{children}</RmwcDialog>,\n container\n );\n }\n}\n\nexport interface DialogTitleProps extends RmwcDialogTitleProps {\n /**\n * Title text.\n */\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * Dialog's header, which can accept DialogHeaderTitle component or any other set of components.\n */\nexport const DialogTitle
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_dialog","_emotion","_Helpers","_excluded","Dialog","_React$Component","_inherits2","default","_super","_createSuper2","props","_this","_classCallCheck2","call","container","document","getElementById","createElement","setAttribute","body","appendChild","_createClass2","key","value","render","_this$props","children","_objectWithoutProperties2","ReactDOM","createPortal","getClasses","React","Component","exports","DialogTitle","DialogContent","addMargin","css","DialogActions","DialogButton","DialogCancel","Object","assign","action","DialogAccept"],"sources":["Dialog.tsx"],"sourcesContent":["import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {\n Dialog as RmwcDialog,\n DialogProps as RmwcDialogProps,\n DialogOnCloseEventT,\n DialogContent as RmwcDialogContent,\n DialogContentProps as RmwcDialogContentProps,\n DialogTitle as RmwcDialogTitle,\n DialogTitleProps as RmwcDialogTitleProps,\n DialogActions as RmwcDialogActions,\n DialogActionsProps as RmwcDialogActionsProps,\n DialogButton as RmwcDialogButton,\n DialogButtonProps as RmwcDialogButtonProps\n} from \"@rmwc/dialog\";\nimport { css } from \"emotion\";\nimport { getClasses } from \"~/Helpers\";\n\nexport type DialogOnClose = (event: DialogOnCloseEventT) => void;\n\nexport interface DialogProps extends RmwcDialogProps {\n className?: string;\n\n // Component's custom in-line styles.\n style?: React.CSSProperties;\n\n // If true, dialog will be permanently fixed inside of a view (works for temporary and persistent modes).\n open?: boolean;\n\n onClose?: (evt: DialogOnCloseEventT) => void;\n\n preventOutsideDismiss?: boolean;\n}\n\nexport class Dialog extends React.Component<DialogProps> {\n container: HTMLElement;\n\n constructor(props: DialogProps) {\n super(props);\n /**\n * We can safely cast\n */\n this.container = document.getElementById(\"dialog-container\") as HTMLElement;\n\n if (!this.container) {\n this.container = document.createElement(\"div\");\n this.container.setAttribute(\"id\", \"dialog-container\");\n const container = this.container;\n document.body && document.body.appendChild(container);\n }\n }\n\n public override render() {\n const { children, ...props } = this.props;\n const container = this.container;\n\n // Let's pass \"permanent\" / \"persistent\" / \"temporary\" flags as \"mode\" prop instead.\n return ReactDOM.createPortal(\n <RmwcDialog {...getClasses(props, \"webiny-ui-dialog\")}>{children}</RmwcDialog>,\n container\n );\n }\n}\n\nexport interface DialogTitleProps extends RmwcDialogTitleProps {\n /**\n * Title text.\n */\n children: React.ReactNode[] | React.ReactNode;\n}\n\n/**\n * Dialog's header, which can accept DialogHeaderTitle component or any other set of components.\n */\nexport const DialogTitle = (props: DialogTitleProps) => (\n <RmwcDialogTitle {...getClasses(props, \"webiny-ui-dialog__title\")} />\n);\n\nexport type DialogContentProps = RmwcDialogContentProps & {\n /**\n * Dialog content.\n */\n children: React.ReactNode[] | React.ReactNode;\n\n className?: string;\n};\n\n/**\n * A simple component for showing dialog's body.\n */\nexport const DialogContent = (props: DialogContentProps) => (\n <RmwcDialogContent {...getClasses(props, \"webiny-ui-dialog__content\")} />\n);\n\nexport interface DialogActionsProps extends RmwcDialogActionsProps {\n /**\n * Action buttons.\n */\n children: React.ReactNode[] | React.ReactNode;\n\n // Dialog component's custom in-line styles.\n style?: React.CSSProperties;\n}\n\nconst addMargin = css`\n button:last-of-type {\n margin-left: 8px;\n }\n`;\n\n/**\n * Can be used to show accept and cancel buttons.\n */\nexport const DialogActions = (props: DialogActionsProps) => (\n <RmwcDialogActions {...getClasses(props, [addMargin, \"webiny-ui-dialog__actions\"])} />\n);\n\ninterface DialogButtonProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n\n className?: string;\n}\n\n/**\n * Use this to show a simple button.\n */\nexport const DialogButton = (props: DialogButtonProps) => (\n <RmwcDialogButton {...getClasses(props, \"webiny-ui-dialog__button\")} />\n);\n\ninterface DialogCancelProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\n/**\n * Use this to close the dialog without taking any additional action.\n */\nexport const DialogCancel = (props: DialogCancelProps) => {\n return (\n <DialogButton\n {...getClasses(props, \"webiny-ui-dialog__button webiny-ui-dialog__button--cancel\")}\n action=\"close\"\n data-testid=\"dialog-cancel\"\n >\n {props.children}\n </DialogButton>\n );\n};\n\ninterface DialogAcceptProps extends RmwcDialogButtonProps {\n /**\n * Callback to execute then button is clicked.\n */\n onClick?: (e: React.MouseEvent) => void;\n}\n\n/**\n * Use this to close the dialog without taking any additional action.\n */\nexport const DialogAccept = (props: DialogAcceptProps) => {\n return (\n <DialogButton\n {...getClasses(props, \"webiny-ui-dialog__button webiny-ui-dialog__button--accept\")}\n action=\"accept\"\n data-testid=\"dialog-accept\"\n >\n {props.children}\n </DialogButton>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAaA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAuC,IAAAK,SAAA;AAAA,IAkB1BC,MAAM,0BAAAC,gBAAA;EAAA,IAAAC,UAAA,CAAAC,OAAA,EAAAH,MAAA,EAAAC,gBAAA;EAAA,IAAAG,MAAA,OAAAC,aAAA,CAAAF,OAAA,EAAAH,MAAA;EAGf,SAAAA,OAAYM,KAAkB,EAAE;IAAA,IAAAC,KAAA;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AA2D,CAAC;IAClFiC,MAAM,EAAC,OAAO;IACd,eAAY;EAAe,IAE1BjC,KAAK,CAACgB,QACG,CAAC;AAEvB,CAAC;AAACO,OAAA,CAAAO,YAAA,GAAAA,YAAA;AASF;AACA;AACA;AACO,IAAMI,YAAY,GAAG,SAAfA,YAAYA,CAAIlC,KAAwB,EAAK;EACtD,oBACId,MAAA,CAAAW,OAAA,CAAAU,aAAA,CAACsB,YAAY,EAAAE,MAAA,CAAAC,MAAA,KACL,IAAAZ,mBAAU,EAACpB,KAAK,EAAE,2DAA2D,CAAC;IAClFiC,MAAM,EAAC,QAAQ;IACf,eAAY;EAAe,IAE1BjC,KAAK,CAACgB,QACG,CAAC;AAEvB,CAAC;AAACO,OAAA,CAAAW,YAAA,GAAAA,YAAA"}
|
package/Dialog/Dialog.stories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["story","storiesOf","module","addDecorator","withKnobs","add","open","boolean","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_Story","_README","_addonKnobs","_","story","storiesOf","module","addDecorator","withKnobs","add","open","boolean","default","createElement","Story","StoryReadme","readme","StorySandbox","title","StorySandboxExample","Dialog","DialogTitle","DialogContent","DialogActions","DialogCancel","onClick","console","log","DialogAccept","StorySandboxCode","concat","info","propTables","DialogButton"],"sources":["Dialog.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { storiesOf } from \"@storybook/react\";\nimport {\n Story,\n StoryReadme,\n StorySandboxCode,\n StorySandbox,\n StorySandboxExample\n} from \"@webiny/storybook-utils/Story\";\nimport readme from \"./../Dialog/README.md\";\nimport { withKnobs, boolean } from \"@storybook/addon-knobs\";\n\nimport {\n Dialog,\n DialogButton,\n DialogAccept,\n DialogCancel,\n DialogActions,\n DialogTitle,\n DialogContent\n} from \".\";\n\nconst story = storiesOf(\"Components/Dialog\", module);\nstory.addDecorator(withKnobs);\n\nstory.add(\n \"usage\",\n () => {\n const open = boolean(\"Open\", false);\n\n return (\n <Story>\n <StoryReadme>{readme}</StoryReadme>\n <StorySandbox title={\"dialog\"}>\n <StorySandboxExample title={\"A list with all possible options\"}>\n Toggle <code>open</code> prop via the bottom knobs.\n <br />\n <br />\n Note that instead of using <code>DialogFooter.Button</code> with{\" \"}\n <code>accept</code> or <code>cancel</code> prop, you can use a shorter{\" \"}\n <code>DialogAccept</code> and <code>DialogCancel</code> components\n respectively.\n <Dialog open={open}>\n <DialogTitle>Delete confirmation</DialogTitle>\n <DialogContent>Are you sure you want to delete?</DialogContent>\n <DialogActions>\n <DialogCancel onClick={() => console.log(\"Cancel\")}>\n Cancel\n </DialogCancel>\n <DialogAccept onClick={() => console.log(\"Accept\")}>\n OK\n </DialogAccept>\n </DialogActions>\n </Dialog>\n </StorySandboxExample>\n <StorySandboxCode>\n {`\n <Dialog open={${open}}>\n <DialogTitle>\n Delete confirmation\n </DialogTitle>\n <DialogBody>Are you sure you want to delete?</DialogBody>\n <DialogFooter>\n <DialogCancel onClick={() => console.log(\"Cancel\")}>Cancel</DialogCancel>\n <DialogAccept onClick={() => console.log(\"Accept\")}>OK</DialogAccept>\n </DialogFooter>\n </Dialog>\n `}\n </StorySandboxCode>\n </StorySandbox>\n </Story>\n );\n },\n {\n info: {\n propTables: [\n Dialog,\n DialogButton,\n DialogAccept,\n DialogCancel,\n DialogActions,\n DialogTitle,\n DialogContent\n ]\n }\n }\n);\n"],"mappings":";;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAOA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAEA,IAAAK,CAAA,GAAAL,OAAA;AAUA,IAAMM,KAAK,GAAG,IAAAC,iBAAS,EAAC,mBAAmB,EAAEC,MAAM,CAAC;AACpDF,KAAK,CAACG,YAAY,CAACC,qBAAS,CAAC;AAE7BJ,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CAAAC,aAAA,CAACV,CAAA,CAAAmB,aAAa,QAAC,kCAA+C,CAAC,eAC/D1B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACV,CAAA,CAAAoB,aAAa,qBACV3B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACV,CAAA,CAAAqB,YAAY;IAACC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMC,OAAO,CAACC,GAAG,CAAC,QAAQ,CAAC;IAAA;EAAC,GAAC,QAEtC,CAAC,eACf/B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACV,CAAA,CAAAyB,YAAY;IAACH,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMC,OAAO,CAACC,GAAG,CAAC,QAAQ,CAAC;IAAA;EAAC,GAAC,IAEtC,CACH,CACX,CACS,CAAC,eACtB/B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,MAAA,CAAA6B,gBAAgB,+CAAAC,MAAA,CAEDpB,IAAI,8iBAWF,CACR,CACX,CAAC;AAEhB,CAAC,EACD;EACIqB,IAAI,EAAE;IACFC,UAAU,EAAE,CACRZ,QAAM,EACNa,cAAY,EACZL,cAAY,EACZJ,cAAY,EACZD,eAAa,EACbF,aAAW,EACXC,eAAa;EAErB;AACJ,CACJ,CAAC"}
|
package/Dialog/index.js
CHANGED
package/Dialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog\";\n"],"mappings":";;;;;AAAA;
|
|
1
|
+
{"version":3,"names":["_Dialog","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Dialog\";\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
package/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { CSSObject } from "@emotion/react";
|
|
2
3
|
import { DrawerProps as RmwcDrawerProps, DrawerHeaderProps as RmwcDrawerHeaderProps, DrawerContentProps as RmwcDrawerContentProps } from "@rmwc/drawer";
|
|
3
4
|
declare type DrawerHeaderProps = RmwcDrawerHeaderProps & {
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Drawer content.
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* CSS class name
|
|
11
|
+
*/
|
|
5
12
|
className?: string;
|
|
6
13
|
};
|
|
7
14
|
/**
|
|
@@ -9,10 +16,6 @@ declare type DrawerHeaderProps = RmwcDrawerHeaderProps & {
|
|
|
9
16
|
*/
|
|
10
17
|
declare const DrawerHeader: (props: DrawerHeaderProps) => JSX.Element;
|
|
11
18
|
export declare type DrawerContentProps = RmwcDrawerContentProps & {
|
|
12
|
-
/**
|
|
13
|
-
* Drawer direction.
|
|
14
|
-
*/
|
|
15
|
-
dir?: string;
|
|
16
19
|
/**
|
|
17
20
|
* Drawer content.
|
|
18
21
|
*/
|
|
@@ -27,10 +30,6 @@ export declare type DrawerContentProps = RmwcDrawerContentProps & {
|
|
|
27
30
|
*/
|
|
28
31
|
declare const DrawerContent: (props: DrawerContentProps) => JSX.Element;
|
|
29
32
|
declare type DrawerProps = RmwcDrawerProps & {
|
|
30
|
-
/**
|
|
31
|
-
* Drawer direction.
|
|
32
|
-
*/
|
|
33
|
-
dir?: string;
|
|
34
33
|
/**
|
|
35
34
|
* Drawer content.
|
|
36
35
|
*/
|
|
@@ -39,9 +38,12 @@ declare type DrawerProps = RmwcDrawerProps & {
|
|
|
39
38
|
* CSS class name
|
|
40
39
|
*/
|
|
41
40
|
className?: string;
|
|
41
|
+
style?: CSSObject;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Use Drawer component to display navigation for the whole app or just a small section of it.
|
|
45
45
|
*/
|
|
46
|
-
declare const Drawer: (props: DrawerProps) => JSX.Element;
|
|
47
|
-
|
|
46
|
+
declare const Drawer: ({ style, children, ...props }: DrawerProps) => JSX.Element;
|
|
47
|
+
declare const DrawerRight: (props: DrawerProps) => JSX.Element;
|
|
48
|
+
declare const DrawerLeft: (props: DrawerProps) => JSX.Element;
|
|
49
|
+
export { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };
|
package/Drawer/Drawer.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
|
-
exports.DrawerHeader = exports.DrawerContent = exports.Drawer = void 0;
|
|
8
|
-
var
|
|
8
|
+
exports.DrawerRight = exports.DrawerLeft = exports.DrawerHeader = exports.DrawerContent = exports.Drawer = void 0;
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
12
|
var _drawer = require("@rmwc/drawer");
|
|
13
|
+
var _excluded = ["style", "children"];
|
|
10
14
|
/**
|
|
11
15
|
* Shows header of the drawer.
|
|
12
16
|
*/
|
|
@@ -21,10 +25,35 @@ var DrawerContent = function DrawerContent(props) {
|
|
|
21
25
|
return /*#__PURE__*/_react.default.createElement(_drawer.DrawerContent, props);
|
|
22
26
|
};
|
|
23
27
|
exports.DrawerContent = DrawerContent;
|
|
28
|
+
var DirectionRTL = /*#__PURE__*/(0, _styled.default)("div", {
|
|
29
|
+
label: "DirectionRTL",
|
|
30
|
+
target: "el0bo470"
|
|
31
|
+
})(".mdc-drawer.mdc-drawer--modal,.mdc-drawer.mdc-drawer--dismissable{left:initial;right:0;}.mdc-drawer--animate{-webkit-transform:translateX(100%);transform:translateX(100%);}.mdc-drawer.mdc-drawer--opening{-webkit-transform:translateX(0%) !important;transform:translateX(0%) !important;}.mdc-drawer.mdc-drawer--closing{-webkit-transform:translateX(100%) !important;transform:translateX(100%) !important;}");
|
|
32
|
+
|
|
24
33
|
/**
|
|
25
34
|
* Use Drawer component to display navigation for the whole app or just a small section of it.
|
|
26
35
|
*/
|
|
27
|
-
var Drawer = function Drawer(
|
|
28
|
-
|
|
36
|
+
var Drawer = function Drawer(_ref) {
|
|
37
|
+
var style = _ref.style,
|
|
38
|
+
children = _ref.children,
|
|
39
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
|
+
// Style the drawer using the styles that were passed in.
|
|
41
|
+
var Drawer = (0, _react.useMemo)(function () {
|
|
42
|
+
return style ? /*#__PURE__*/(0, _styled.default)(_drawer.Drawer, {
|
|
43
|
+
target: "el0bo471",
|
|
44
|
+
label: "Drawer"
|
|
45
|
+
})(style) : _drawer.Drawer;
|
|
46
|
+
}, [style]);
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(Drawer, props, children);
|
|
48
|
+
};
|
|
49
|
+
exports.Drawer = Drawer;
|
|
50
|
+
var DrawerRight = function DrawerRight(props) {
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(DirectionRTL, null, /*#__PURE__*/_react.default.createElement(Drawer, props));
|
|
29
52
|
};
|
|
30
|
-
exports.
|
|
53
|
+
exports.DrawerRight = DrawerRight;
|
|
54
|
+
var DrawerLeft = function DrawerLeft(props) {
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(Drawer, props);
|
|
56
|
+
};
|
|
57
|
+
exports.DrawerLeft = DrawerLeft;
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=Drawer.js.map
|
package/Drawer/Drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DrawerHeader","props","DrawerContent","Drawer"],"sources":["Drawer.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Drawer as RmwcDrawer,\n DrawerContent as RmwcDrawerContent,\n DrawerHeader as RmwcDrawerHeader,\n DrawerProps as RmwcDrawerProps,\n DrawerHeaderProps as RmwcDrawerHeaderProps,\n DrawerContentProps as RmwcDrawerContentProps\n} from \"@rmwc/drawer\";\n\ntype DrawerHeaderProps = RmwcDrawerHeaderProps & {\n children:
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_styled","_interopRequireDefault","_drawer","_excluded","DrawerHeader","props","default","createElement","exports","DrawerContent","DirectionRTL","styled","label","target","Drawer","_ref","style","children","_objectWithoutProperties2","useMemo","RmwcDrawer","DrawerRight","DrawerLeft"],"sources":["Drawer.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { CSSObject } from \"@emotion/react\";\nimport styled from \"@emotion/styled\";\nimport {\n Drawer as RmwcDrawer,\n DrawerContent as RmwcDrawerContent,\n DrawerHeader as RmwcDrawerHeader,\n DrawerProps as RmwcDrawerProps,\n DrawerHeaderProps as RmwcDrawerHeaderProps,\n DrawerContentProps as RmwcDrawerContentProps\n} from \"@rmwc/drawer\";\n\ntype DrawerHeaderProps = RmwcDrawerHeaderProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\n/**\n * Shows header of the drawer.\n */\nconst DrawerHeader = (props: DrawerHeaderProps) => <RmwcDrawerHeader {...props} />;\n\nexport type DrawerContentProps = RmwcDrawerContentProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\n/**\n * Shows drawer content. It can be anything, but commonly a List component would suffice here.\n */\nconst DrawerContent = (props: DrawerContentProps) => <RmwcDrawerContent {...props} />;\n\ntype DrawerProps = RmwcDrawerProps & {\n /**\n * Drawer content.\n */\n children: React.ReactNode;\n\n /**\n * CSS class name\n */\n className?: string;\n\n style?: CSSObject;\n};\n\nconst DirectionRTL = styled.div`\n .mdc-drawer.mdc-drawer--modal,\n .mdc-drawer.mdc-drawer--dismissable {\n left: initial;\n right: 0;\n }\n\n .mdc-drawer--animate {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n }\n\n .mdc-drawer.mdc-drawer--opening {\n -webkit-transform: translateX(0%) !important;\n transform: translateX(0%) !important;\n }\n\n .mdc-drawer.mdc-drawer--closing {\n -webkit-transform: translateX(100%) !important;\n transform: translateX(100%) !important;\n }\n`;\n\n/**\n * Use Drawer component to display navigation for the whole app or just a small section of it.\n */\nconst Drawer = ({ style, children, ...props }: DrawerProps) => {\n // Style the drawer using the styles that were passed in.\n const Drawer = useMemo(() => (style ? styled(RmwcDrawer)(style) : RmwcDrawer), [style]);\n\n return <Drawer {...props}>{children}</Drawer>;\n};\n\nconst DrawerRight = (props: DrawerProps) => {\n return (\n <DirectionRTL>\n <Drawer {...props} />\n </DirectionRTL>\n );\n};\n\nconst DrawerLeft = (props: DrawerProps) => {\n return <Drawer {...props} />;\n};\n\nexport { Drawer, DrawerHeader, DrawerContent, DrawerRight, DrawerLeft };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAOsB,IAAAI,SAAA;AActB;AACA;AACA;AACA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAIC,KAAwB;EAAA,oBAAKR,MAAA,CAAA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UAAU,GAAG,SAAbA,UAAUA,CAAIjB,KAAkB,EAAK;EACvC,oBAAOR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACO,MAAM,EAAKT,KAAQ,CAAC;AAChC,CAAC;AAACG,OAAA,CAAAc,UAAA,GAAAA,UAAA"}
|
package/Drawer/Drawer.stories.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["story","storiesOf","module","addDecorator","withKnobs","add","open","boolean","readme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_Story","_List","_README","_addonKnobs","_Drawer","story","storiesOf","module","addDecorator","withKnobs","add","open","boolean","default","createElement","Story","StoryReadme","readme","StorySandbox","title","StorySandboxExample","Drawer","DrawerHeader","DrawerContent","List","ListItem","StorySandboxCode","info","propTables"],"sources":["Drawer.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { storiesOf } from \"@storybook/react\";\nimport {\n Story,\n StoryReadme,\n StorySandboxCode,\n StorySandbox,\n StorySandboxExample\n} from \"@webiny/storybook-utils/Story\";\nimport { List, ListItem } from \"./../List\";\n\nimport readme from \"./../Drawer/README.md\";\nimport { withKnobs, boolean } from \"@storybook/addon-knobs\";\nimport { Drawer, DrawerHeader, DrawerContent } from \"./Drawer\";\n\nconst story = storiesOf(\"Components/Drawer\", module);\nstory.addDecorator(withKnobs);\n\nstory.add(\n \"usage\",\n () => {\n const open = boolean(\"Open\", true);\n\n return (\n <Story>\n <StoryReadme>{readme}</StoryReadme>\n <StorySandbox title={\"drawer\"}>\n <StorySandboxExample title={\"A list with all possible options\"}>\n <Drawer open={open}>\n <DrawerHeader>Main Menu</DrawerHeader>\n <DrawerContent>\n <List>\n <ListItem>Users</ListItem>\n <ListItem>Companies</ListItem>\n <ListItem>Brands</ListItem>\n <ListItem>ACL</ListItem>\n <ListItem>Settings</ListItem>\n </List>\n </DrawerContent>\n </Drawer>\n </StorySandboxExample>\n <StorySandboxCode>\n {`\n <Drawer>\n <DrawerHeader>Main Menu</DrawerHeader>\n <DrawerContent>\n <List>\n <ListItem>Users</ListItem>\n <ListItem>Companies</ListItem>\n <ListItem>Brands</ListItem>\n <ListItem>ACL</ListItem>\n <ListItem>Settings</ListItem>\n </List>\n </DrawerContent>\n </Drawer>\n `}\n </StorySandboxCode>\n </StorySandbox>\n </Story>\n );\n },\n { info: { propTables: [Drawer, DrawerHeader, DrawerContent] } }\n);\n"],"mappings":";;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAOA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAEA,IAAMO,KAAK,GAAG,IAAAC,iBAAS,EAAC,mBAAmB,EAAEC,MAAM,CAAC;AACpDF,KAAK,CAACG,YAAY,CAACC,qBAAS,CAAC;AAE7BJ,KAAK,CAACK,GAAG,CACL,OAAO,EACP,YAAM;EACF,IAAMC,IAAI,GAAG,IAAAC,mBAAO,EAAC,MAAM,EAAE,IAAI,CAAC;EAElC,oBACIhB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAe,KAAK,qBACFnB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAgB,WAAW,QAAEC,eAAoB,CAAC,eACnCrB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAkB,YAAY;IAACC,KAAK,EAAE;EAAS,gBAC1BvB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAAoB,mBAAmB;IAACD,KAAK,EAAE;EAAmC,gBAC3DvB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAiB,MAAM;IAACV,IAAI,EAAEA;EAAK,gBACff,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAkB,YAAY,QAAC,WAAuB,CAAC,eACtC1B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAmB,aAAa,qBACV3B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAuB,IAAI,qBACD5B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAwB,QAAQ,QAAC,OAAe,CAAC,eAC1B7B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAwB,QAAQ,QAAC,WAAmB,CAAC,eAC9B7B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAwB,QAAQ,QAAC,QAAgB,CAAC,eAC3B7B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAwB,QAAQ,QAAC,KAAa,CAAC,eACxB7B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACb,KAAA,CAAAwB,QAAQ,QAAC,UAAkB,CAC1B,CACK,CACX,CACS,CAAC,eACtB7B,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,MAAA,CAAA0B,gBAAgB,2mBAeC,CACR,CACX,CAAC;AAEhB,CAAC,EACD;EAAEC,IAAI,EAAE;IAAEC,UAAU,EAAE,CAACP,cAAM,EAAEC,oBAAY,EAAEC,qBAAa;EAAE;AAAE,CAClE,CAAC"}
|
package/Drawer/index.js
CHANGED
package/Drawer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Drawer\";\n"],"mappings":";;;;;AAAA;
|
|
1
|
+
{"version":3,"names":["_Drawer","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Drawer\";\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -14,8 +14,8 @@ interface ChildrenRenderPropEmptyCallable {
|
|
|
14
14
|
}
|
|
15
15
|
interface ChildrenRenderProp {
|
|
16
16
|
actions: {
|
|
17
|
-
add:
|
|
18
|
-
remove:
|
|
17
|
+
add: (index?: number) => () => void;
|
|
18
|
+
remove: (index: number) => () => void;
|
|
19
19
|
};
|
|
20
20
|
header: (cb: ChildrenRenderPropHeaderCallable) => React.ReactNode;
|
|
21
21
|
row: (cb: ChildrenRenderPropRowCallable) => React.ReactNode;
|
|
@@ -28,7 +28,7 @@ interface FieldsetProps {
|
|
|
28
28
|
isValid: null | boolean;
|
|
29
29
|
message?: string;
|
|
30
30
|
};
|
|
31
|
-
onChange:
|
|
31
|
+
onChange: (value: any) => void;
|
|
32
32
|
children: (props: ChildrenRenderProp) => React.ReactNode;
|
|
33
33
|
}
|
|
34
34
|
declare class Fieldset extends React.Component<FieldsetProps> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DynamicFieldsetRow","styled","paddingBottom","padding","display","Fieldset","add","index","addData","remove","removeData","props","value","onChange","dotProp","delete","slice","cb","header","rows","map","record","data","empty","children","actions","renderHeader","row","renderRow","renderEmpty","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_dotPropImmutable","_FormElementMessage","_styled","DynamicFieldsetRow","styled","target","label","paddingBottom","padding","display","Fieldset","_React$Component","_inherits2","default","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","add","index","undefined","addData","remove","removeData","_this$props","props","value","onChange","dotProp","delete","_toConsumableArray2","slice","cb","header","rows","map","record","createElement","key","data","empty","_createClass2","renderComponent","children","actions","renderHeader","row","renderRow","renderEmpty","Fragment","render","_this$props2","description","_this$props2$validati","validation","isValid","FormElementMessage","error","message","React","Component","_default","exports"],"sources":["Fieldset.tsx"],"sourcesContent":["import React from \"react\";\nimport dotProp from \"dot-prop-immutable\";\nimport { FormElementMessage } from \"~/FormElementMessage\";\nimport styled from \"@emotion/styled\";\n\ninterface ChildrenRenderPropRowCallableParams {\n index: number;\n data: any;\n}\ninterface ChildrenRenderPropRowCallable {\n (params: ChildrenRenderPropRowCallableParams): React.ReactNode;\n}\n\ninterface ChildrenRenderPropHeaderCallable {\n (): React.ReactNode;\n}\ninterface ChildrenRenderPropEmptyCallable {\n (): React.ReactNode;\n}\ninterface ChildrenRenderProp {\n actions: {\n add: (index?: number) => () => void;\n remove: (index: number) => () => void;\n };\n header: (cb: ChildrenRenderPropHeaderCallable) => React.ReactNode;\n row: (cb: ChildrenRenderPropRowCallable) => React.ReactNode;\n empty: (cb: ChildrenRenderPropEmptyCallable) => React.ReactNode;\n}\n\ninterface FieldsetProps {\n value?: any[];\n description?: string;\n validation?: { isValid: null | boolean; message?: string };\n onChange: (value: any) => void;\n children: (props: ChildrenRenderProp) => React.ReactNode;\n}\n\nconst DynamicFieldsetRow = styled(\"div\")({\n paddingBottom: 10,\n \"> .mdc-layout-grid\": {\n padding: 0,\n \"> .mdc-layout-grid__inner\": {\n display: \"block\"\n }\n }\n});\n\nclass Fieldset extends React.Component<FieldsetProps> {\n static defaultProps: Partial<FieldsetProps> = {\n value: []\n };\n\n header: React.ReactNode = null;\n rows: React.ReactNode = null;\n empty: React.ReactNode = null;\n\n actions = {\n add:\n (index = -1) =>\n () =>\n this.addData(index),\n remove:\n (index = -1) =>\n () =>\n this.removeData(index)\n };\n\n removeData = (index: number) => {\n const { value, onChange } = this.props;\n onChange(dotProp.delete(value, index));\n };\n\n addData = (index = -1) => {\n const { onChange } = this.props;\n let value = this.props.value;\n if (!value) {\n value = [];\n }\n if (index < 0) {\n onChange([...value, {}]);\n } else {\n onChange([...value.slice(0, index + 1), {}, ...value.slice(index + 1)]);\n }\n };\n\n renderHeader = (cb: () => React.ReactNode): React.ReactNode => {\n this.header = cb();\n return null;\n };\n\n renderRow = (cb: ChildrenRenderPropRowCallable): React.ReactNode => {\n const { value } = this.props;\n if (!value) {\n return null;\n }\n this.rows = value.map((record, index) => {\n return (\n <DynamicFieldsetRow key={index}>{cb({ data: record, index })}</DynamicFieldsetRow>\n );\n });\n return null;\n };\n\n renderEmpty = (cb: () => React.ReactNode): React.ReactNode => {\n this.empty = cb();\n return null;\n };\n\n public renderComponent(): React.ReactNode {\n const { value } = this.props;\n const { children } = this.props;\n\n children({\n actions: this.actions,\n header: this.renderHeader,\n row: this.renderRow,\n empty: this.renderEmpty\n });\n\n if (!value || value.length === 0) {\n return this.empty;\n }\n\n return (\n <React.Fragment>\n {this.header}\n {this.rows}\n </React.Fragment>\n );\n }\n\n public override render() {\n const { description, validation = { isValid: null } } = this.props;\n\n return (\n <>\n {this.renderComponent()}\n {validation.isValid === false && (\n <FormElementMessage error>{validation.message}</FormElementMessage>\n )}\n\n {validation.isValid !== false && description && (\n <FormElementMessage>{description}</FormElementMessage>\n )}\n </>\n );\n }\n}\n\nexport default Fieldset;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAkCA,IAAMI,kBAAkB,oBAAGC,eAAM,EAAC,KAAK;EAAAC,MAAA;EAAAC,KAAA;AAAA,GAAE;EACrCC,aAAa,EAAE,EAAE;EACjB,oBAAoB,EAAE;IAClBC,OAAO,EAAE,CAAC;IAC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H,QAAQ,kBACoC;EAC1C2B,KAAK,EAAE;AACX,CAAC;AAAA,IAAAmC,QAAA,GAmGU9D,QAAQ;AAAA+D,OAAA,CAAA5D,OAAA,GAAA2D,QAAA"}
|
package/DynamicFieldset/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default as DynamicFieldset } from \"./Fieldset\";\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
|
1
|
+
{"version":3,"names":["_Fieldset","_interopRequireDefault","require"],"sources":["index.ts"],"sourcesContent":["export { default as DynamicFieldset } from \"./Fieldset\";\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA"}
|
package/Elevation/Elevation.js
CHANGED
|
@@ -16,4 +16,6 @@ var Elevation = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
16
16
|
}, props), props.children);
|
|
17
17
|
});
|
|
18
18
|
exports.Elevation = Elevation;
|
|
19
|
-
Elevation.displayName = "Elevation";
|
|
19
|
+
Elevation.displayName = "Elevation";
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=Elevation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Elevation","React","forwardRef","props","ref","children","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Elevation as RmwcElevation } from \"@rmwc/elevation\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * Elevation component visually raises any content by applying shadow.\n */\nconst Elevation = React.forwardRef((props: ElevationProps, ref: React.Ref<any>) => {\n return (\n <RmwcElevation ref={ref} {...props}>\n {props.children}\n </RmwcElevation>\n );\n});\n\nElevation.displayName = \"Elevation\";\n\nexport { Elevation };\n"],"mappings":";;;;;;;AAAA;AACA;AAmBA;AACA;AACA;AACA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_elevation","Elevation","React","forwardRef","props","ref","default","createElement","Object","assign","children","exports","displayName"],"sources":["Elevation.tsx"],"sourcesContent":["import React from \"react\";\nimport { Elevation as RmwcElevation } from \"@rmwc/elevation\";\n\nexport type ElevationProps = {\n // Any element that needs to be highlighted.\n children?: React.ReactNode;\n\n // Increasing this number (from 0 to 24) will increase the amount of shadow applied.\n z: number;\n\n // Adds smooth transitions when the z value changes.\n transition?: boolean;\n\n // CSS class name\n className?: string;\n\n // Style object\n style?: React.CSSProperties;\n};\n\n/**\n * Elevation component visually raises any content by applying shadow.\n */\nconst Elevation = React.forwardRef((props: ElevationProps, ref: React.Ref<any>) => {\n return (\n <RmwcElevation ref={ref} {...props}>\n {props.children}\n </RmwcElevation>\n );\n});\n\nElevation.displayName = \"Elevation\";\n\nexport { Elevation };\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAmBA;AACA;AACA;AACA,IAAME,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAAC,UAACC,KAAqB,EAAEC,GAAmB,EAAK;EAC/E,oBACIR,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACP,UAAA,CAAAC,SAAa,EAAAO,MAAA,CAAAC,MAAA;IAACJ,GAAG,EAAEA;EAAI,GAAKD,KAAK,GAC7BA,KAAK,CAACM,QACI,CAAC;AAExB,CAAC,CAAC;AAACC,OAAA,CAAAV,SAAA,GAAAA,SAAA;AAEHA,SAAS,CAACW,WAAW,GAAG,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["story","storiesOf","module","addDecorator","withKnobs","add","transition","boolean","z","select","Array","keys","style","padding","backgroundColor","readme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_Story","_README","_addonKnobs","_Elevation","story","storiesOf","module","addDecorator","withKnobs","add","transition","boolean","z","select","_toConsumableArray2","default","Array","keys","style","padding","backgroundColor","createElement","Story","StoryReadme","readme","StorySandbox","title","StorySandboxExample","Elevation","StorySandboxCode","concat","info","propTables"],"sources":["Elevation.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport { storiesOf } from \"@storybook/react\";\nimport {\n Story,\n StoryReadme,\n StorySandboxCode,\n StorySandbox,\n StorySandboxExample\n} from \"@webiny/storybook-utils/Story\";\nimport readme from \"./../Elevation/README.md\";\nimport { withKnobs, boolean, select } from \"@storybook/addon-knobs\";\nimport { Elevation } from \"./Elevation\";\n\nconst story = storiesOf(\"Components/Elevation\", module);\nstory.addDecorator(withKnobs);\n\nstory.add(\n \"usage\",\n () => {\n const transition = boolean(\"Transition\", true);\n const z = select(\"Z (elevation height)\", [...Array(25).keys()], 1);\n\n const style = {\n padding: 20,\n backgroundColor: \"white\"\n };\n\n return (\n <Story>\n <StoryReadme>{readme}</StoryReadme>\n <StorySandbox title={\"An area with applied elevation\"}>\n <StorySandboxExample>\n <Elevation z={z} transition={transition}>\n <div style={style}>This is an elevated content.</div>\n </Elevation>\n </StorySandboxExample>\n <StorySandboxCode>\n {`\n <Elevation z={${z}} transition={${transition}}>\n <div>This is an elevated content.</div>\n </Elevation>\n `}\n </StorySandboxCode>\n </StorySandbox>\n </Story>\n );\n },\n { info: { propTables: [Elevation] } }\n);\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAOA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAEA,IAAMM,KAAK,GAAG,IAAAC,iBAAS,EAAC,sBAAsB,EAAEC,MAAM,CAAC;AACvDF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evation/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":";;;;;AAAA;
|
|
1
|
+
{"version":3,"names":["_Elevation","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./Elevation\";\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -15,4 +15,6 @@ var FormElementMessage = function FormElementMessage(props) {
|
|
|
15
15
|
className: classNames
|
|
16
16
|
}, props.children);
|
|
17
17
|
};
|
|
18
|
-
exports.FormElementMessage = FormElementMessage;
|
|
18
|
+
exports.FormElementMessage = FormElementMessage;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=FormElementMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FormElementMessage","props","classNames","classnames","className","error","children"],"sources":["FormElementMessage.tsx"],"sourcesContent":["import React from \"react\";\nimport classnames from \"classnames\";\n\ntype Props = {\n // message to display\n children: React.ReactNode;\n\n // optional class name\n className?: string;\n\n // is it an error message we're displaying\n error?: boolean;\n};\n\nconst FormElementMessage = (props: Props) => {\n const classNames = classnames(\n \"mdc-text-field-helper-text mdc-text-field-helper-text--persistent\",\n props.className,\n { \"mdc-text-field-helper-text--error\": props.error }\n );\n\n return <div className={classNames}>{props.children}</div>;\n};\n\nexport { FormElementMessage };\n"],"mappings":";;;;;;;AAAA;AACA;AAaA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_classnames","FormElementMessage","props","classNames","classnames","className","error","default","createElement","children","exports"],"sources":["FormElementMessage.tsx"],"sourcesContent":["import React from \"react\";\nimport classnames from \"classnames\";\n\ntype Props = {\n // message to display\n children: React.ReactNode;\n\n // optional class name\n className?: string;\n\n // is it an error message we're displaying\n error?: boolean;\n};\n\nconst FormElementMessage = (props: Props) => {\n const classNames = classnames(\n \"mdc-text-field-helper-text mdc-text-field-helper-text--persistent\",\n props.className,\n { \"mdc-text-field-helper-text--error\": props.error }\n );\n\n return <div className={classNames}>{props.children}</div>;\n};\n\nexport { FormElementMessage };\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAaA,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,KAAY,EAAK;EACzC,IAAMC,UAAU,GAAG,IAAAC,mBAAU,EACzB,mEAAmE,EACnEF,KAAK,CAACG,SAAS,EACf;IAAE,mCAAmC,EAAEH,KAAK,CAACI;EAAM,CACvD,CAAC;EAED,oBAAOT,MAAA,CAAAU,OAAA,CAAAC,aAAA;IAAKH,SAAS,EAAEF;EAAW,GAAED,KAAK,CAACO,QAAc,CAAC;AAC7D,CAAC;AAACC,OAAA,CAAAT,kBAAA,GAAAA,kBAAA"}
|
|
@@ -9,4 +9,6 @@ Object.defineProperty(exports, "FormElementMessage", {
|
|
|
9
9
|
return _FormElementMessage.FormElementMessage;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var _FormElementMessage = require("./FormElementMessage");
|
|
12
|
+
var _FormElementMessage = require("./FormElementMessage");
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":";;;;;;;;;;;AAAA"}
|
|
1
|
+
{"version":3,"names":["_FormElementMessage","require"],"sources":["index.ts"],"sourcesContent":["export { FormElementMessage } from \"./FormElementMessage\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA"}
|
package/FullName/FullName.js
CHANGED
package/FullName/FullName.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FullName","props","data","output","firstName","lastName"],"sources":["FullName.ts"],"sourcesContent":["type Props = {\n data?: {\n firstName?: string;\n lastName?: string;\n };\n};\n\nconst FullName = (props: Props) => {\n const { data } = props;\n\n if (!data) {\n return \"N/A\";\n }\n\n let output = \"\";\n if (data.firstName) {\n output += data.firstName;\n }\n\n if (data.lastName) {\n output += \" \" + data.lastName;\n }\n\n return output;\n};\n\nexport { FullName };\n"],"mappings":";;;;;;AAOA,IAAMA,QAAQ,GAAG,SAAXA,
|
|
1
|
+
{"version":3,"names":["FullName","props","data","output","firstName","lastName","exports"],"sources":["FullName.ts"],"sourcesContent":["type Props = {\n data?: {\n firstName?: string;\n lastName?: string;\n };\n};\n\nconst FullName = (props: Props) => {\n const { data } = props;\n\n if (!data) {\n return \"N/A\";\n }\n\n let output = \"\";\n if (data.firstName) {\n output += data.firstName;\n }\n\n if (data.lastName) {\n output += \" \" + data.lastName;\n }\n\n return output;\n};\n\nexport { FullName };\n"],"mappings":";;;;;;AAOA,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,KAAY,EAAK;EAC/B,IAAQC,IAAI,GAAKD,KAAK,CAAdC,IAAI;EAEZ,IAAI,CAACA,IAAI,EAAE;IACP,OAAO,KAAK;EAChB;EAEA,IAAIC,MAAM,GAAG,EAAE;EACf,IAAID,IAAI,CAACE,SAAS,EAAE;IAChBD,MAAM,IAAID,IAAI,CAACE,SAAS;EAC5B;EAEA,IAAIF,IAAI,CAACG,QAAQ,EAAE;IACfF,MAAM,IAAI,GAAG,GAAGD,IAAI,CAACG,QAAQ;EACjC;EAEA,OAAOF,MAAM;AACjB,CAAC;AAACG,OAAA,CAAAN,QAAA,GAAAA,QAAA"}
|
package/FullName/index.js
CHANGED
package/FullName/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":";;;;;AAAA;
|
|
1
|
+
{"version":3,"names":["_FullName","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.ts"],"sourcesContent":["export * from \"./FullName\";\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
package/Grid/Grid.js
CHANGED
package/Grid/Grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Cell","props","children","GridInner","displayName","Grid"],"sources":["Grid.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Grid as RmwcGrid,\n GridCell as RmwcGridCell,\n GridRow as RmwcGridInner,\n GridCellProps as RmwcGridCellProps,\n GridProps as RmwcGridProps\n} from \"@rmwc/grid\";\nimport { CSSProperties } from \"react\";\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\nexport type GridProps = RmwcGridProps & {\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Cell must be direct children of Grid component.\n */\nexport const Cell = (props: CellProps) => {\n return <RmwcGridCell {...props}>{props.children}</RmwcGridCell>;\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = (props: GridInnerProps) => {\n return <RmwcGridInner {...props}>{props.children}</RmwcGridInner>;\n};\n\nGridInner.displayName = \"GridInner\";\n\n/**\n * Use Grid component to display a list of choices, once the handler is triggered.\n */\nexport const Grid = (props: GridProps) => {\n return <RmwcGrid {...props}>{props.children}</RmwcGrid>;\n};\n"],"mappings":";;;;;;;AAAA;AACA;AAwBA;AACA;AACA;AACO,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_grid","Cell","props","default","createElement","GridCell","children","exports","GridInner","GridRow","displayName","Grid"],"sources":["Grid.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Grid as RmwcGrid,\n GridCell as RmwcGridCell,\n GridRow as RmwcGridInner,\n GridCellProps as RmwcGridCellProps,\n GridProps as RmwcGridProps\n} from \"@rmwc/grid\";\nimport { CSSProperties } from \"react\";\n\nexport type CellProps = RmwcGridCellProps & {\n // One or more Cell components.\n children?: React.ReactNode;\n\n // CSS class name that will be added to the element\n className?: string;\n\n style?: { [key: string]: any };\n};\n\nexport type GridProps = RmwcGridProps & {\n className?: string;\n style?: CSSProperties;\n};\n\n/**\n * Cell must be direct children of Grid component.\n */\nexport const Cell = (props: CellProps) => {\n return <RmwcGridCell {...props}>{props.children}</RmwcGridCell>;\n};\n\nexport type GridInnerProps = {\n // One or more Cell components.\n children: React.ReactElement<typeof Cell> | React.ReactElement<typeof Cell>[];\n\n /**\n * CSS class name\n */\n className?: string;\n};\n\nexport const GridInner = (props: GridInnerProps) => {\n return <RmwcGridInner {...props}>{props.children}</RmwcGridInner>;\n};\n\nGridInner.displayName = \"GridInner\";\n\n/**\n * Use Grid component to display a list of choices, once the handler is triggered.\n */\nexport const Grid = (props: GridProps) => {\n return <RmwcGrid {...props}>{props.children}</RmwcGrid>;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAwBA;AACA;AACA;AACO,IAAME,IAAI,GAAG,SAAPA,IAAIA,CAAIC,KAAgB,EAAK;EACtC,oBAAOL,MAAA,CAAAM,OAAA,CAAAC,aAAA,CAACJ,KAAA,CAAAK,QAAY,EAAKH,KAAK,EAAGA,KAAK,CAACI,QAAuB,CAAC;AACnE,CAAC;AAACC,OAAA,CAAAN,IAAA,GAAAA,IAAA;AAYK,IAAMO,SAAS,GAAG,SAAZA,SAASA,CAAIN,KAAqB,EAAK;EAChD,oBAAOL,MAAA,CAAAM,OAAA,CAAAC,aAAA,CAACJ,KAAA,CAAAS,OAAa,EAAKP,KAAK,EAAGA,KAAK,CAACI,QAAwB,CAAC;AACrE,CAAC;AAACC,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAEFA,SAAS,CAACE,WAAW,GAAG,WAAW;;AAEnC;AACA;AACA;AACO,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAIT,KAAgB,EAAK;EACtC,oBAAOL,MAAA,CAAAM,OAAA,CAAAC,aAAA,CAACJ,KAAA,CAAAW,IAAQ,EAAKT,KAAK,EAAGA,KAAK,CAACI,QAAmB,CAAC;AAC3D,CAAC;AAACC,OAAA,CAAAI,IAAA,GAAAA,IAAA"}
|