@mirai/ui 2.1.2 → 2.1.4
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/build/components/Action/Action.js +25 -21
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.stories.js +3 -2
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/index.js +1 -1
- package/build/components/Action/index.js.map +1 -1
- package/build/components/Button/Button.js +32 -27
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.stories.js +43 -22
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Button/index.js.map +1 -1
- package/build/components/Calendar/Calendar.Month.js +53 -43
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Week.js +78 -51
- package/build/components/Calendar/Calendar.Week.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +11 -12
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.constants.js +2 -2
- package/build/components/Calendar/Calendar.constants.js.map +1 -1
- package/build/components/Calendar/Calendar.js +143 -93
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +41 -23
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js +2 -3
- package/build/components/Calendar/helpers/getFirstDateOfMonth.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js +6 -7
- package/build/components/Calendar/helpers/getFirstDateOfWeek.js.map +1 -1
- package/build/components/Calendar/helpers/getFirstDayOfWeek.js +5 -6
- package/build/components/Calendar/helpers/getFirstDayOfWeek.js.map +1 -1
- package/build/components/Calendar/helpers/getHeader.js +4 -5
- package/build/components/Calendar/helpers/getHeader.js.map +1 -1
- package/build/components/Calendar/helpers/getMonthRef.js +8 -10
- package/build/components/Calendar/helpers/getMonthRef.js.map +1 -1
- package/build/components/Calendar/helpers/getScrollTo.js +15 -9
- package/build/components/Calendar/helpers/getScrollTo.js.map +1 -1
- package/build/components/Calendar/helpers/getToday.js +3 -2
- package/build/components/Calendar/helpers/getToday.js.map +1 -1
- package/build/components/Calendar/helpers/getWeekDays.js +7 -8
- package/build/components/Calendar/helpers/getWeekDays.js.map +1 -1
- package/build/components/Calendar/helpers/getWeekNumber.js +3 -4
- package/build/components/Calendar/helpers/getWeekNumber.js.map +1 -1
- package/build/components/Calendar/helpers/index.js +9 -9
- package/build/components/Calendar/helpers/index.js.map +1 -1
- package/build/components/Calendar/index.js +1 -1
- package/build/components/Calendar/index.js.map +1 -1
- package/build/components/Form/Form.constants.js +5 -5
- package/build/components/Form/Form.constants.js.map +1 -1
- package/build/components/Form/Form.js +109 -75
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/Form.stories.js +78 -45
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/Form/helpers/getChildrenErrors.js +19 -17
- package/build/components/Form/helpers/getChildrenErrors.js.map +1 -1
- package/build/components/Form/helpers/getChildrenValues.js +20 -14
- package/build/components/Form/helpers/getChildrenValues.js.map +1 -1
- package/build/components/Form/helpers/getField.js +4 -6
- package/build/components/Form/helpers/getField.js.map +1 -1
- package/build/components/Form/helpers/groupState.js +10 -9
- package/build/components/Form/helpers/groupState.js.map +1 -1
- package/build/components/Form/helpers/index.js +4 -4
- package/build/components/Form/helpers/index.js.map +1 -1
- package/build/components/Form/index.js +1 -1
- package/build/components/Form/index.js.map +1 -1
- package/build/components/InputDate/InputDate.js +31 -18
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/InputDate.stories.js +29 -16
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputDate/helpers/formatValue.js +13 -12
- package/build/components/InputDate/helpers/formatValue.js.map +1 -1
- package/build/components/InputDate/helpers/index.js +1 -1
- package/build/components/InputDate/helpers/index.js.map +1 -1
- package/build/components/InputDate/index.js +1 -1
- package/build/components/InputDate/index.js.map +1 -1
- package/build/components/InputNumber/InputNumber.js +37 -25
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/InputNumber.stories.js +15 -6
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/InputNumber/index.js.map +1 -1
- package/build/components/InputOption/InputOption.constants.js +3 -3
- package/build/components/InputOption/InputOption.constants.js.map +1 -1
- package/build/components/InputOption/InputOption.js +26 -23
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +15 -6
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputOption/index.js +2 -2
- package/build/components/InputOption/index.js.map +1 -1
- package/build/components/InputPhone/InputPhone.js +114 -72
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/InputPhone.stories.js +40 -20
- package/build/components/InputPhone/InputPhone.stories.js.map +1 -1
- package/build/components/InputPhone/helpers/index.js +2 -2
- package/build/components/InputPhone/helpers/index.js.map +1 -1
- package/build/components/InputPhone/helpers/parseValue.js +17 -9
- package/build/components/InputPhone/helpers/parseValue.js.map +1 -1
- package/build/components/InputPhone/helpers/sanitizePrefixes.js +12 -5
- package/build/components/InputPhone/helpers/sanitizePrefixes.js.map +1 -1
- package/build/components/InputPhone/index.js +1 -1
- package/build/components/InputPhone/index.js.map +1 -1
- package/build/components/InputSelect/InputSelect.js +49 -28
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/InputSelect.stories.js +21 -10
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputSelect/index.js +1 -1
- package/build/components/InputSelect/index.js.map +1 -1
- package/build/components/InputSelect/partials/InputSelect.Expand.js +2 -3
- package/build/components/InputSelect/partials/InputSelect.Expand.js.map +1 -1
- package/build/components/InputSelect/partials/index.js +1 -1
- package/build/components/InputSelect/partials/index.js.map +1 -1
- package/build/components/InputText/InputText.js +69 -38
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +33 -16
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/InputText/index.js +1 -1
- package/build/components/InputText/index.js.map +1 -1
- package/build/components/InputText/partials/InputText.Hint.js +8 -8
- package/build/components/InputText/partials/InputText.Hint.js.map +1 -1
- package/build/components/InputText/partials/InputText.IconState.js +4 -7
- package/build/components/InputText/partials/InputText.IconState.js.map +1 -1
- package/build/components/InputText/partials/InputText.Label.js +13 -12
- package/build/components/InputText/partials/InputText.Label.js.map +1 -1
- package/build/components/InputText/partials/index.js +3 -3
- package/build/components/InputText/partials/index.js.map +1 -1
- package/build/components/Menu/Menu.Option.js +12 -12
- package/build/components/Menu/Menu.Option.js.map +1 -1
- package/build/components/Menu/Menu.js +39 -29
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +18 -7
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/Menu/index.js.map +1 -1
- package/build/components/Modal/Modal.constants.js +2 -2
- package/build/components/Modal/Modal.constants.js.map +1 -1
- package/build/components/Modal/Modal.js +91 -60
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/Modal.stories.js +31 -13
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Modal/index.js +2 -2
- package/build/components/Modal/index.js.map +1 -1
- package/build/components/Notification/Notification.js +20 -19
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.stories.js +13 -12
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Notification/index.js +1 -1
- package/build/components/Notification/index.js.map +1 -1
- package/build/components/Progress/Progress.js +12 -9
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/Progress.stories.js +4 -3
- package/build/components/Progress/Progress.stories.js.map +1 -1
- package/build/components/Progress/index.js +1 -1
- package/build/components/Progress/index.js.map +1 -1
- package/build/components/Slider/Slider.Item.js +19 -13
- package/build/components/Slider/Slider.Item.js.map +1 -1
- package/build/components/Slider/Slider.constants.js +2 -2
- package/build/components/Slider/Slider.constants.js.map +1 -1
- package/build/components/Slider/Slider.js +126 -76
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/Slider.stories.js +26 -23
- package/build/components/Slider/Slider.stories.js.map +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/Slider/index.js.map +1 -1
- package/build/components/Table/Table.ColumnFilter.js +111 -74
- package/build/components/Table/Table.ColumnFilter.js.map +1 -1
- package/build/components/Table/Table.Filter.js +38 -29
- package/build/components/Table/Table.Filter.js.map +1 -1
- package/build/components/Table/Table.Row.js +61 -46
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.constants.js +3 -3
- package/build/components/Table/Table.constants.js.map +1 -1
- package/build/components/Table/Table.js +106 -75
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.stories.js +61 -33
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/helpers/index.js +2 -2
- package/build/components/Table/helpers/index.js.map +1 -1
- package/build/components/Table/helpers/select.js +67 -55
- package/build/components/Table/helpers/select.js.map +1 -1
- package/build/components/Table/helpers/storage.js +5 -5
- package/build/components/Table/helpers/storage.js.map +1 -1
- package/build/components/Table/index.js +1 -1
- package/build/components/Table/index.js.map +1 -1
- package/build/components/Tooltip/Tooltip.js +72 -50
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/Tooltip.stories.js +96 -85
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/components/Tooltip/helpers/index.js +1 -1
- package/build/components/Tooltip/helpers/index.js.map +1 -1
- package/build/components/Tooltip/helpers/isPressableInstance.js +5 -7
- package/build/components/Tooltip/helpers/isPressableInstance.js.map +1 -1
- package/build/components/Tooltip/index.js +1 -1
- package/build/components/Tooltip/index.js.map +1 -1
- package/build/components/index.js +17 -17
- package/build/components/index.js.map +1 -1
- package/build/helpers/CustomElement.js +27 -10
- package/build/helpers/CustomElement.js.map +1 -1
- package/build/helpers/getIconState.js +5 -7
- package/build/helpers/getIconState.js.map +1 -1
- package/build/helpers/getInputDateErrors.js +10 -11
- package/build/helpers/getInputDateErrors.js.map +1 -1
- package/build/helpers/getInputErrors.js +27 -26
- package/build/helpers/getInputErrors.js.map +1 -1
- package/build/helpers/getInputPhoneErrors.js +13 -12
- package/build/helpers/getInputPhoneErrors.js.map +1 -1
- package/build/helpers/getNavigator.js +8 -9
- package/build/helpers/getNavigator.js.map +1 -1
- package/build/helpers/index.js +9 -9
- package/build/helpers/index.js.map +1 -1
- package/build/helpers/isJest.js +5 -4
- package/build/helpers/isJest.js.map +1 -1
- package/build/helpers/isPlaywright.js +3 -3
- package/build/helpers/isPlaywright.js.map +1 -1
- package/build/helpers/isValidDate.js +38 -22
- package/build/helpers/isValidDate.js.map +1 -1
- package/build/helpers/isValidEmail.js +3 -4
- package/build/helpers/isValidEmail.js.map +1 -1
- package/build/helpers/isValidPhone.js +8 -10
- package/build/helpers/isValidPhone.js.map +1 -1
- package/build/helpers/styles.js +7 -4
- package/build/helpers/styles.js.map +1 -1
- package/build/hooks/helpers/getResolution.js +6 -6
- package/build/hooks/helpers/getResolution.js.map +1 -1
- package/build/hooks/helpers/index.js +2 -2
- package/build/hooks/helpers/index.js.map +1 -1
- package/build/hooks/helpers/sanitizePx.js +3 -2
- package/build/hooks/helpers/sanitizePx.js.map +1 -1
- package/build/hooks/index.js +1 -1
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/useDevice.js +35 -19
- package/build/hooks/useDevice.js.map +1 -1
- package/build/hooks/useDevice.stories.js +13 -6
- package/build/hooks/useDevice.stories.js.map +1 -1
- package/build/index.js +5 -5
- package/build/index.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.js +17 -18
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +15 -6
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Checkbox/index.js +1 -1
- package/build/primitives/Checkbox/index.js.map +1 -1
- package/build/primitives/Icon/Icon.constants.js +1 -1
- package/build/primitives/Icon/Icon.constants.js.map +1 -1
- package/build/primitives/Icon/Icon.js +29 -24
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +8 -7
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Icon/index.js +2 -2
- package/build/primitives/Icon/index.js.map +1 -1
- package/build/primitives/Input/Input.js +55 -43
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +24 -12
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Input/helpers/index.js +1 -1
- package/build/primitives/Input/helpers/index.js.map +1 -1
- package/build/primitives/Input/helpers/parseValue.js +5 -6
- package/build/primitives/Input/helpers/parseValue.js.map +1 -1
- package/build/primitives/Input/index.js +1 -1
- package/build/primitives/Input/index.js.map +1 -1
- package/build/primitives/Layer/Layer.js +89 -77
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +9 -8
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Layer/LayerContent.js +2 -5
- package/build/primitives/Layer/LayerContent.js.map +1 -1
- package/build/primitives/Layer/helpers/getElementLayout.js +9 -13
- package/build/primitives/Layer/helpers/getElementLayout.js.map +1 -1
- package/build/primitives/Layer/helpers/getLayerPosition.js +65 -64
- package/build/primitives/Layer/helpers/getLayerPosition.js.map +1 -1
- package/build/primitives/Layer/helpers/getModalParent.js +8 -10
- package/build/primitives/Layer/helpers/getModalParent.js.map +1 -1
- package/build/primitives/Layer/helpers/getScrollParent.js +4 -6
- package/build/primitives/Layer/helpers/getScrollParent.js.map +1 -1
- package/build/primitives/Layer/helpers/index.js +5 -5
- package/build/primitives/Layer/helpers/index.js.map +1 -1
- package/build/primitives/Layer/helpers/isComponentFixed.js +20 -10
- package/build/primitives/Layer/helpers/isComponentFixed.js.map +1 -1
- package/build/primitives/Layer/index.js +2 -2
- package/build/primitives/Layer/index.js.map +1 -1
- package/build/primitives/Pressable/Pressable.constants.js +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +41 -33
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/Pressable.stories.js +5 -4
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Pressable/index.js +1 -1
- package/build/primitives/Pressable/index.js.map +1 -1
- package/build/primitives/Primitive/Primitive.constants.js +4 -4
- package/build/primitives/Primitive/Primitive.constants.js.map +1 -1
- package/build/primitives/Primitive/Primitive.js +24 -18
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/Primitive.stories.js +7 -6
- package/build/primitives/Primitive/Primitive.stories.js.map +1 -1
- package/build/primitives/Primitive/helpers/getProps.js +17 -9
- package/build/primitives/Primitive/helpers/getProps.js.map +1 -1
- package/build/primitives/Primitive/helpers/getTag.js +4 -5
- package/build/primitives/Primitive/helpers/getTag.js.map +1 -1
- package/build/primitives/Primitive/helpers/index.js +2 -2
- package/build/primitives/Primitive/helpers/index.js.map +1 -1
- package/build/primitives/Primitive/index.js +1 -1
- package/build/primitives/Primitive/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +14 -11
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +15 -6
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/Radio/index.js +1 -1
- package/build/primitives/Radio/index.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.js +85 -62
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +13 -11
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/index.js +1 -1
- package/build/primitives/ScrollView/index.js.map +1 -1
- package/build/primitives/Select/Select.js +49 -41
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +24 -12
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Select/index.js +1 -1
- package/build/primitives/Select/index.js.map +1 -1
- package/build/primitives/Switch/Switch.js +13 -12
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +15 -6
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Switch/index.js +1 -1
- package/build/primitives/Switch/index.js.map +1 -1
- package/build/primitives/Text/Text.js +43 -33
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +6 -6
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/Text/helpers/color.js +11 -13
- package/build/primitives/Text/helpers/color.js.map +1 -1
- package/build/primitives/Text/helpers/index.js +2 -2
- package/build/primitives/Text/helpers/index.js.map +1 -1
- package/build/primitives/Text/helpers/parseMarkdown.js +52 -41
- package/build/primitives/Text/helpers/parseMarkdown.js.map +1 -1
- package/build/primitives/Text/index.js +1 -1
- package/build/primitives/Text/index.js.map +1 -1
- package/build/primitives/View/View.js +20 -13
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/View.stories.js +7 -6
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/primitives/View/index.js +1 -1
- package/build/primitives/View/index.js.map +1 -1
- package/build/primitives/index.js +12 -12
- package/build/primitives/index.js.map +1 -1
- package/build/theme/helpers/camelcase.js +5 -4
- package/build/theme/helpers/camelcase.js.map +1 -1
- package/build/theme/helpers/index.js +2 -2
- package/build/theme/helpers/index.js.map +1 -1
- package/build/theme/helpers/palette.js +32 -19
- package/build/theme/helpers/palette.js.map +1 -1
- package/build/theme/index.js +2 -2
- package/build/theme/index.js.map +1 -1
- package/build/theme/theme.constants.js +5 -5
- package/build/theme/theme.constants.js.map +1 -1
- package/build/theme/theme.js +81 -59
- package/build/theme/theme.js.map +1 -1
- package/build/theme/theme.stories.js +29 -19
- package/build/theme/theme.stories.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.js","names":["_react","_interopRequireWildcard","require","_","_Modal","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_default","exports","title","Story","props","visible","setVisible","useState","visibleSecond","setVisibleSecond","handleBack","_len","others","Array","_key","console","log","handleClose","_len2","_key2","handleOverflow","_len3","_key3","createElement","Fragment","Text","bold","headline","Button","onPress","Modal","onClose","onOverflow","View","style","padding","onBack","storyName","args","blur","fit","mobileBehavior","overflow","portal","testId","argTypes"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport { Button, Text, View } from '../../';\nimport { Modal } from './Modal';\n\nexport default {\n title: 'Components',\n};\n\nexport const Story = (props) => {\n const [visible, setVisible] = useState(true);\n const [visibleSecond, setVisibleSecond] = useState(false);\n\n const handleBack = (...others) => {\n console.log('<Modal>::onBack', ...others);\n setVisibleSecond(false);\n };\n\n const handleClose = (...others) => {\n console.log('<Modal>::onClose', ...others);\n setVisible(false);\n };\n\n const handleOverflow = (...others) => {\n console.log('<Modal>::onOverflow', ...others);\n handleClose(others);\n };\n\n return (\n <>\n <Text bold headline>\n What is Lorem Ipsum?\n </Text>\n <Text>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make\n a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,\n remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing\n Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions\n of Lorem Ipsum.\n </Text>\n\n <Button onPress={() => setVisible(true)}>Show modal</Button>\n\n <Text bold headline>\n Where does it come from?\n </Text>\n <Text>\n Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin\n literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney\n College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and\n going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum\n comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by\n Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.\n The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32.\n </Text>\n\n <Modal {...props} onClose={handleClose} onOverflow={handleOverflow} visible={visible}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n <Button onPress={() => setVisibleSecond(true)}>Show another Modal</Button>\n </View>\n </Modal>\n\n <Modal {...props} onBack={handleBack} onOverflow={handleOverflow} visible={visibleSecond}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n </View>\n </Modal>\n </>\n );\n};\nStory.storyName = 'Modal';\n\nStory.args = {\n blur: false,\n fit: false,\n mobileBehavior: false,\n overflow: true,\n portal: false,\n title: 'title',\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,CAAA,GAAAD,OAAA;AACA,IA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","_","_Modal","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","Symbol","iterator","f","o","next","done","push","value","return","isArray","_default","exports","title","Story","props","_useState","useState","_useState2","visible","setVisible","_useState3","_useState4","visibleSecond","setVisibleSecond","handleBack","_console","_len","others","_key","console","log","concat","handleClose","_console2","_len2","_key2","handleOverflow","_console3","_len3","_key3","createElement","Fragment","Text","bold","headline","Button","onPress","Modal","onClose","onOverflow","View","style","padding","onBack","storyName","args","blur","fit","mobileBehavior","overflow","portal","testId","argTypes"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport { Button, Text, View } from '../../';\nimport { Modal } from './Modal';\n\nexport default {\n title: 'Components',\n};\n\nexport const Story = (props) => {\n const [visible, setVisible] = useState(true);\n const [visibleSecond, setVisibleSecond] = useState(false);\n\n const handleBack = (...others) => {\n console.log('<Modal>::onBack', ...others);\n setVisibleSecond(false);\n };\n\n const handleClose = (...others) => {\n console.log('<Modal>::onClose', ...others);\n setVisible(false);\n };\n\n const handleOverflow = (...others) => {\n console.log('<Modal>::onOverflow', ...others);\n handleClose(others);\n };\n\n return (\n <>\n <Text bold headline>\n What is Lorem Ipsum?\n </Text>\n <Text>\n Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's\n standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make\n a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,\n remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing\n Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions\n of Lorem Ipsum.\n </Text>\n\n <Button onPress={() => setVisible(true)}>Show modal</Button>\n\n <Text bold headline>\n Where does it come from?\n </Text>\n <Text>\n Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin\n literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney\n College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and\n going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum\n comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by\n Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.\n The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32.\n </Text>\n\n <Modal {...props} onClose={handleClose} onOverflow={handleOverflow} visible={visible}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n <Button onPress={() => setVisibleSecond(true)}>Show another Modal</Button>\n </View>\n </Modal>\n\n <Modal {...props} onBack={handleBack} onOverflow={handleOverflow} visible={visibleSecond}>\n <View style={{ padding: 'var(--mirai-ui-space-L)' }}>\n <Text>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi nemo adipisci consequatur et tenetur natus\n dolore, facere facilis placeat nostrum unde cumque. Voluptas enim rerum voluptatum, deserunt fugiat\n aspernatur excepturi.\n </Text>\n </View>\n </Modal>\n </>\n );\n};\nStory.storyName = 'Modal';\n\nStory.args = {\n blur: false,\n fit: false,\n mobileBehavior: false,\n overflow: true,\n portal: false,\n title: 'title',\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,CAAA,GAAAD,OAAA;AAC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C,OAAO,EAAE;IAA0B;EAAE,gBAClDlG,MAAA,CAAAW,OAAA,CAAA2E,aAAA,CAACnF,CAAA,CAAAqF,IAAI,QAAC,qOAIA,CAAC,eACPxF,MAAA,CAAAW,OAAA,CAAA2E,aAAA,CAACnF,CAAA,CAAAwF,MAAM;IAACC,OAAO,EAAE,SAATA,OAAOA,CAAA;MAAA,OAAQvB,gBAAgB,CAAC,IAAI,CAAC;IAAA;EAAC,GAAC,oBAA0B,CACrE,CACD,CAAC,eAERrE,MAAA,CAAAW,OAAA,CAAA2E,aAAA,CAAClF,MAAA,CAAAyF,KAAK,EAAApE,QAAA,KAAKmC,KAAK;IAAEuC,MAAM,EAAE7B,UAAW;IAACyB,UAAU,EAAEb,cAAe;IAAClB,OAAO,EAAEI;EAAc,iBACvFpE,MAAA,CAAAW,OAAA,CAAA2E,aAAA,CAACnF,CAAA,CAAA6F,IAAI;IAACC,KAAK,EAAE;MAAEC,OAAO,EAAE;IAA0B;EAAE,gBAClDlG,MAAA,CAAAW,OAAA,CAAA2E,aAAA,CAACnF,CAAA,CAAAqF,IAAI,QAAC,qOAIA,CACF,CACD,CACP,CAAC;AAEP,CAAC;AACD7B,KAAK,CAACyC,SAAS,GAAG,OAAO;AAEzBzC,KAAK,CAAC0C,IAAI,GAAG;EACXC,IAAI,EAAE,KAAK;EACXC,GAAG,EAAE,KAAK;EACVC,cAAc,EAAE,KAAK;EACrBC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,KAAK;EACbhD,KAAK,EAAE,OAAO;EACd;EACAiD,MAAM,EAAE,YAAY;EACpBV,KAAK,EAAE,CAAC;AACV,CAAC;AAEDtC,KAAK,CAACiD,QAAQ,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _exportNames = {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "MODAL_EVENT_VISIBLE", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () {
|
|
11
|
+
get: function get() {
|
|
12
12
|
return _Modal2.EVENT_VISIBLE;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
@@ -19,7 +19,7 @@ Object.keys(_Modal).forEach(function (key) {
|
|
|
19
19
|
if (key in exports && exports[key] === _Modal[key]) return;
|
|
20
20
|
Object.defineProperty(exports, key, {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () {
|
|
22
|
+
get: function get() {
|
|
23
23
|
return _Modal[key];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Modal","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Modal2"],"sources":["../../../src/components/Modal/index.js"],"sourcesContent":["export * from './Modal';\nexport { EVENT_VISIBLE as MODAL_EVENT_VISIBLE } from './Modal.constants';\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Modal","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Modal2"],"sources":["../../../src/components/Modal/index.js"],"sourcesContent":["export * from './Modal';\nexport { EVENT_VISIBLE as MODAL_EVENT_VISIBLE } from './Modal.constants';\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAb,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAb,OAAA","ignoreList":[]}
|
|
@@ -9,27 +9,29 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _NotificationModule = _interopRequireDefault(require("./Notification.module.css"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
|
+
var _excluded = ["children", "contrast", "error", "info", "inline", "large", "small", "success", "title", "warning", "wide", "onClose"];
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
17
|
+
var Notification = exports.Notification = function Notification(_ref) {
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
contrast = _ref.contrast,
|
|
20
|
+
error = _ref.error,
|
|
21
|
+
info = _ref.info,
|
|
22
|
+
_ref$inline = _ref.inline,
|
|
23
|
+
inline = _ref$inline === void 0 ? false : _ref$inline,
|
|
24
|
+
large = _ref.large,
|
|
25
|
+
small = _ref.small,
|
|
26
|
+
success = _ref.success,
|
|
27
|
+
title = _ref.title,
|
|
28
|
+
warning = _ref.warning,
|
|
29
|
+
wide = _ref.wide,
|
|
30
|
+
onClose = _ref.onClose,
|
|
31
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
30
32
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
31
33
|
row: true,
|
|
32
|
-
tag:
|
|
34
|
+
tag: "notification".concat(error ? '-error' : warning ? '-warning' : ''),
|
|
33
35
|
className: (0, _helpers.styles)(_NotificationModule.default.notification, contrast ? _NotificationModule.default.contrast : error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, large ? _NotificationModule.default.large : small ? _NotificationModule.default.small : undefined, wide && _NotificationModule.default.wide, others.className)
|
|
34
36
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
35
37
|
headline: large,
|
|
@@ -51,7 +53,7 @@ const Notification = _ref => {
|
|
|
51
53
|
small: small
|
|
52
54
|
}, children)), !inline && !large && onClose && /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
|
|
53
55
|
onPress: onClose,
|
|
54
|
-
testId: others.testId ?
|
|
56
|
+
testId: others.testId ? "".concat(others.testId, "-button-close") : undefined
|
|
55
57
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
56
58
|
headline: large,
|
|
57
59
|
paragraph: small,
|
|
@@ -59,7 +61,6 @@ const Notification = _ref => {
|
|
|
59
61
|
value: _primitives.ICON.CLOSE
|
|
60
62
|
})));
|
|
61
63
|
};
|
|
62
|
-
exports.Notification = Notification;
|
|
63
64
|
Notification.displayName = 'Component:Notification';
|
|
64
65
|
Notification.propTypes = {
|
|
65
66
|
children: _propTypes.default.any.isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["_propTypes","_interopRequireDefault","require","_react","_NotificationModule","_helpers","_primitives","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Notification","_ref","children","contrast","error","info","inline","large","small","success","title","warning","wide","onClose","others","createElement","View","row","tag","className","styles","style","notification","undefined","outlined","Icon","headline","paragraph","level","value","getIconState","texts","Text","action","bold","Pressable","onPress","testId","ICON","CLOSE","
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["_propTypes","_interopRequireDefault","require","_react","_NotificationModule","_helpers","_primitives","_excluded","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","s","includes","propertyIsEnumerable","Notification","exports","_ref","children","contrast","error","info","_ref$inline","inline","large","small","success","title","warning","wide","onClose","others","createElement","View","row","tag","concat","className","styles","style","notification","undefined","outlined","Icon","headline","paragraph","level","value","getIconState","texts","Text","action","bold","Pressable","onPress","testId","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","string","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport style from './Notification.module.css';\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\n\nconst Notification = ({\n children,\n contrast,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n title,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n tag={`notification${error ? '-error' : warning ? '-warning' : ''}`}\n className={styles(\n style.notification,\n contrast\n ? style.contrast\n : error\n ? style.error\n : warning\n ? style.warning\n : success\n ? style.success\n : info\n ? style.info\n : undefined,\n inline ? style.inline : style.outlined,\n large ? style.large : small ? style.small : undefined,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={getIconState({ error, success, warning })} />\n\n <View className={style.texts}>\n {title && (\n <Text action={small} bold headline={large}>\n {title}\n </Text>\n )}\n {children && (\n <Text action={!small && !large} small={small}>\n {children}\n </Text>\n )}\n </View>\n\n {!inline && !large && onClose && (\n <Pressable onPress={onClose} testId={others.testId ? `${others.testId}-button-close` : undefined}>\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={ICON.CLOSE} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.any.isRequired,\n contrast: PropTypes.bool,\n error: PropTypes.bool,\n info: PropTypes.bool,\n inline: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n title: PropTypes.string,\n warning: PropTypes.bool,\n wide: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAqE,IAAAK,SAAA;AAAA,SAAAN,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD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M;IAACqB,KAAK,EAAEtB,KAAK,GAAG,CAAC,GAAG,CAAE;IAACuB,KAAK,EAAES,gBAAI,CAACC;EAAM,CAAE,CAC1E,CAET,CAAC;AAAA,CACR;AAED1C,YAAY,CAAC2C,WAAW,GAAG,wBAAwB;AAEnD3C,YAAY,CAAC4C,SAAS,GAAG;EACvBzC,QAAQ,EAAE0C,kBAAS,CAACC,GAAG,CAACC,UAAU;EAClC3C,QAAQ,EAAEyC,kBAAS,CAACG,IAAI;EACxB3C,KAAK,EAAEwC,kBAAS,CAACG,IAAI;EACrB1C,IAAI,EAAEuC,kBAAS,CAACG,IAAI;EACpBxC,MAAM,EAAEqC,kBAAS,CAACG,IAAI;EACtBvC,KAAK,EAAEoC,kBAAS,CAACG,IAAI;EACrBtC,KAAK,EAAEmC,kBAAS,CAACG,IAAI;EACrBrC,OAAO,EAAEkC,kBAAS,CAACG,IAAI;EACvBpC,KAAK,EAAEiC,kBAAS,CAACI,MAAM;EACvBpC,OAAO,EAAEgC,kBAAS,CAACG,IAAI;EACvBlC,IAAI,EAAE+B,kBAAS,CAACG,IAAI;EACpBjC,OAAO,EAAE8B,kBAAS,CAACK;AACrB,CAAC","ignoreList":[]}
|
|
@@ -12,18 +12,19 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
12
12
|
var _default = exports.default = {
|
|
13
13
|
title: 'Components'
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
var Story = exports.Story = function Story(props) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
17
|
+
style: {
|
|
18
|
+
gap: 'var(--mirai-ui-space-M)'
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_Notification.Notification, props), /*#__PURE__*/_react.default.createElement(_Notification.Notification, _extends({}, props, {
|
|
21
|
+
small: true
|
|
22
|
+
})), /*#__PURE__*/_react.default.createElement(_Notification.Notification, _extends({}, props, {
|
|
23
|
+
large: true
|
|
24
|
+
})), /*#__PURE__*/_react.default.createElement(_Notification.Notification, _extends({}, props, {
|
|
25
|
+
inline: true
|
|
26
|
+
})));
|
|
27
|
+
};
|
|
27
28
|
Story.storyName = 'Notification';
|
|
28
29
|
Story.args = {
|
|
29
30
|
children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.stories.js","names":["_react","_interopRequireDefault","require","_primitives","_Notification","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_default","exports","title","Story","props","createElement","View","style","gap","Notification","small","large","inline","storyName","args","children","contrast","error","info","success","warning","wide","testId","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import React from 'react';\nimport { View } from '../../primitives';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <View style={{ gap: 'var(--mirai-ui-space-M)' }}>\n <Notification {...props} />\n <Notification {...props} small />\n <Notification {...props} large />\n <Notification {...props} inline />\n </View>\n);\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',\n contrast: true,\n title: 'Your booking is on Hold',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n wide: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAA8C,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAAA,IAAAO,QAAA,GAAAC,OAAA,CAAAd,OAAA,GAE/B;EAAEe,KAAK,EAAE;AAAa,CAAC;AAE/B,
|
|
1
|
+
{"version":3,"file":"Notification.stories.js","names":["_react","_interopRequireDefault","require","_primitives","_Notification","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_default","exports","title","Story","props","createElement","View","style","gap","Notification","small","large","inline","storyName","args","children","contrast","error","info","success","warning","wide","testId","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import React from 'react';\nimport { View } from '../../primitives';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <View style={{ gap: 'var(--mirai-ui-space-M)' }}>\n <Notification {...props} />\n <Notification {...props} small />\n <Notification {...props} large />\n <Notification {...props} inline />\n </View>\n);\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'We hold your booking until _Feb 14, 12:00 AM_. If your reserve change, we will get back to you.',\n contrast: true,\n title: 'Your booking is on Hold',\n error: false,\n info: false,\n inline: false,\n large: false,\n small: false,\n success: false,\n warning: false,\n wide: false,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory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CAACrB,aAAA,CAAAyB,YAAY,EAAArB,QAAA,KAAKgB,KAAK;IAAEO,KAAK;EAAA,EAAE,CAAC,eACjC/B,MAAA,CAAAO,OAAA,CAAAkB,aAAA,CAACrB,aAAA,CAAAyB,YAAY,EAAArB,QAAA,KAAKgB,KAAK;IAAEQ,MAAM;EAAA,EAAE,CAC7B,CAAC;AAAA,CACR;AAEDT,KAAK,CAACU,SAAS,GAAG,cAAc;AAEhCV,KAAK,CAACW,IAAI,GAAG;EACXC,QAAQ,EAAE,iGAAiG;EAC3GC,QAAQ,EAAE,IAAI;EACdd,KAAK,EAAE,yBAAyB;EAChCe,KAAK,EAAE,KAAK;EACZC,IAAI,EAAE,KAAK;EACXN,MAAM,EAAE,KAAK;EACbD,KAAK,EAAE,KAAK;EACZD,KAAK,EAAE,KAAK;EACZS,OAAO,EAAE,KAAK;EACdC,OAAO,EAAE,KAAK;EACdC,IAAI,EAAE,KAAK;EACX;EACAC,MAAM,EAAE,YAAY;EACpBf,KAAK,EAAE,CAAC;AACV,CAAC;AAEDJ,KAAK,CAACoB,QAAQ,GAAG;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAU;AAC/B,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ Object.keys(_Notification).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _Notification[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () {
|
|
12
|
+
get: function get() {
|
|
13
13
|
return _Notification[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Notification","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/components/Notification/index.js"],"sourcesContent":["export * from './Notification';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Notification","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/components/Notification/index.js"],"sourcesContent":["export * from './Notification';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -9,15 +9,19 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _ProgressModule = _interopRequireDefault(require("./Progress.module.css"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
|
+
var _excluded = ["indeterminate", "value", "visible"];
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
17
|
+
var Progress = exports.Progress = function Progress(_ref) {
|
|
18
|
+
var _ref$indeterminate = _ref.indeterminate,
|
|
19
|
+
indeterminate = _ref$indeterminate === void 0 ? false : _ref$indeterminate,
|
|
20
|
+
_ref$value = _ref.value,
|
|
21
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
22
|
+
_ref$visible = _ref.visible,
|
|
23
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
24
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
|
21
25
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
22
26
|
tag: "progress",
|
|
23
27
|
className: (0, _helpers.styles)(_ProgressModule.default.progress, visible && _ProgressModule.default.visible, others.className)
|
|
@@ -25,11 +29,10 @@ const Progress = _ref => {
|
|
|
25
29
|
tag: "progress-value",
|
|
26
30
|
className: (0, _helpers.styles)(_ProgressModule.default.value, indeterminate && _ProgressModule.default.indeterminate),
|
|
27
31
|
style: !indeterminate ? {
|
|
28
|
-
width:
|
|
32
|
+
width: "".concat(value, "%")
|
|
29
33
|
} : undefined
|
|
30
34
|
}));
|
|
31
35
|
};
|
|
32
|
-
exports.Progress = Progress;
|
|
33
36
|
Progress.displayName = 'Component:Progress';
|
|
34
37
|
Progress.propTypes = {
|
|
35
38
|
indeterminate: _propTypes.default.bool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","names":["_propTypes","_interopRequireDefault","require","_react","_ProgressModule","_helpers","_primitives","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Progress","_ref","indeterminate","value","visible","others","createElement","View","tag","className","styles","style","progress","width","
|
|
1
|
+
{"version":3,"file":"Progress.js","names":["_propTypes","_interopRequireDefault","require","_react","_ProgressModule","_helpers","_primitives","_excluded","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","s","includes","propertyIsEnumerable","Progress","exports","_ref","_ref$indeterminate","indeterminate","_ref$value","value","_ref$visible","visible","others","createElement","View","tag","className","styles","style","progress","width","concat","undefined","displayName","propTypes","PropTypes","bool","number"],"sources":["../../../src/components/Progress/Progress.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport style from './Progress.module.css';\nimport { styles } from '../../helpers';\nimport { View } from '../../primitives';\n\nconst Progress = ({ indeterminate = false, value = 0, visible = false, ...others }) => (\n <View {...others} tag=\"progress\" className={styles(style.progress, visible && style.visible, others.className)}>\n <View\n tag=\"progress-value\"\n className={styles(style.value, indeterminate && style.indeterminate)}\n style={!indeterminate ? { width: `${value}%` } : undefined}\n />\n </View>\n);\n\nProgress.displayName = 'Component:Progress';\n\nProgress.propTypes = {\n indeterminate: PropTypes.bool,\n value: PropTypes.number,\n visible: PropTypes.bool,\n};\n\nexport { Progress };\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAwC,IAAAK,SAAA;AAAA,SAAAN,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,K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return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
var _default = exports.default = {
|
|
12
12
|
title: 'Components'
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
var INSTANCES = Array.from(Array(3).keys());
|
|
15
|
+
var Story = exports.Story = function Story(props) {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_Progress.Progress, props);
|
|
17
|
+
};
|
|
17
18
|
Story.storyName = 'Progress';
|
|
18
19
|
Story.args = {
|
|
19
20
|
indeterminate: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.stories.js","names":["_react","_interopRequireDefault","require","_","_Progress","e","__esModule","default","_default","exports","title","INSTANCES","Array","from","keys","Story","props","createElement","Progress","storyName","args","indeterminate","value","visible","testId","style","argTypes"],"sources":["../../../src/components/Progress/Progress.stories.jsx"],"sourcesContent":["import React from 'react';\n\nimport { Text, View } from '../..';\nimport { Progress } from './Progress';\n\nexport default { title: 'Components' };\n\nconst INSTANCES = Array.from(Array(3).keys());\n\nexport const Story = (props) => <Progress {...props} />;\n\nStory.storyName = 'Progress';\n\nStory.args = {\n indeterminate: false,\n value: 25,\n visible: true,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,CAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAsC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEvB;EAAEG,KAAK,EAAE;AAAa,CAAC;AAEtC,
|
|
1
|
+
{"version":3,"file":"Progress.stories.js","names":["_react","_interopRequireDefault","require","_","_Progress","e","__esModule","default","_default","exports","title","INSTANCES","Array","from","keys","Story","props","createElement","Progress","storyName","args","indeterminate","value","visible","testId","style","argTypes"],"sources":["../../../src/components/Progress/Progress.stories.jsx"],"sourcesContent":["import React from 'react';\n\nimport { Text, View } from '../..';\nimport { Progress } from './Progress';\n\nexport default { title: 'Components' };\n\nconst INSTANCES = Array.from(Array(3).keys());\n\nexport const Story = (props) => <Progress {...props} />;\n\nStory.storyName = 'Progress';\n\nStory.args = {\n indeterminate: false,\n value: 25,\n visible: true,\n // inherited properties\n testId: 'test-story',\n style: {},\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,CAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAsC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEvB;EAAEG,KAAK,EAAE;AAAa,CAAC;AAEtC,IAAMC,SAAS,GAAGC,KAAK,CAACC,IAAI,CAACD,KAAK,CAAC,CAAC,CAAC,CAACE,IAAI,CAAC,CAAC,CAAC;AAEtC,IAAMC,KAAK,GAAAN,OAAA,CAAAM,KAAA,GAAG,SAARA,KAAKA,CAAIC,KAAK;EAAA,oBAAKhB,MAAA,CAAAO,OAAA,CAAAU,aAAA,CAACb,SAAA,CAAAc,QAAQ,EAAKF,KAAQ,CAAC;AAAA;AAEvDD,KAAK,CAACI,SAAS,GAAG,UAAU;AAE5BJ,KAAK,CAACK,IAAI,GAAG;EACXC,aAAa,EAAE,KAAK;EACpBC,KAAK,EAAE,EAAE;EACTC,OAAO,EAAE,IAAI;EACb;EACAC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,CAAC;AACV,CAAC;AAEDV,KAAK,CAACW,QAAQ,GAAG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Progress","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/components/Progress/index.js"],"sourcesContent":["export * from './Progress';\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,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Progress","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../src/components/Progress/index.js"],"sourcesContent":["export * from './Progress';\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","ignoreList":[]}
|
|
@@ -9,21 +9,28 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _SliderModule = _interopRequireDefault(require("./Slider.module.css"));
|
|
10
10
|
var _helpers = require("../../helpers");
|
|
11
11
|
var _primitives = require("../../primitives");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
18
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
+
var Item = exports.Item = function Item(_ref) {
|
|
22
|
+
var height = _ref.height,
|
|
23
|
+
image = _ref.image,
|
|
24
|
+
width = _ref.width;
|
|
25
|
+
var _useState = (0, _react.useState)(),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
portrait = _useState2[0],
|
|
28
|
+
setPortrait = _useState2[1];
|
|
29
|
+
(0, _react.useEffect)(function () {
|
|
23
30
|
if (!image || portrait !== undefined) return;
|
|
24
|
-
|
|
31
|
+
var img = new Image();
|
|
25
32
|
img.src = image;
|
|
26
|
-
img.onload = ()
|
|
33
|
+
img.onload = function () {
|
|
27
34
|
setPortrait(img.width / img.height < 1);
|
|
28
35
|
};
|
|
29
36
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -32,13 +39,12 @@ const Item = _ref => {
|
|
|
32
39
|
tag: "image",
|
|
33
40
|
className: (0, _helpers.styles)(_SliderModule.default.image, portrait && _SliderModule.default.portrait),
|
|
34
41
|
style: {
|
|
35
|
-
backgroundImage: image ?
|
|
42
|
+
backgroundImage: image ? "url(".concat(image, ")") : undefined,
|
|
36
43
|
height,
|
|
37
44
|
width
|
|
38
45
|
}
|
|
39
46
|
});
|
|
40
47
|
};
|
|
41
|
-
exports.Item = Item;
|
|
42
48
|
Item.propTypes = {
|
|
43
49
|
height: _propTypes.default.number,
|
|
44
50
|
image: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.Item.js","names":["_propTypes","_interopRequireDefault","require","_react","_interopRequireWildcard","_SliderModule","_helpers","_primitives","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Item","_ref","height","image","width","
|
|
1
|
+
{"version":3,"file":"Slider.Item.js","names":["_propTypes","_interopRequireDefault","require","_react","_interopRequireWildcard","_SliderModule","_helpers","_primitives","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","f","o","next","done","push","value","return","isArray","Item","exports","_ref","height","image","width","_useState","useState","_useState2","portrait","setPortrait","useEffect","undefined","img","Image","src","onload","createElement","View","tag","className","styles","style","backgroundImage","concat","propTypes","PropTypes","number","string"],"sources":["../../../src/components/Slider/Slider.Item.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport style from './Slider.module.css';\nimport { styles } from '../../helpers';\nimport { View } from '../../primitives';\n\nconst Item = ({ height, image, width }) => {\n const [portrait, setPortrait] = useState();\n\n useEffect(() => {\n if (!image || portrait !== undefined) return;\n\n const img = new Image();\n img.src = image;\n img.onload = () => {\n setPortrait(img.width / img.height < 1);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [image]);\n\n return (\n <View\n tag=\"image\"\n className={styles(style.image, portrait && style.portrait)}\n style={{ backgroundImage: image ? `url(${image})` : undefined, height, width }}\n />\n );\n};\n\nItem.propTypes = {\n height: PropTypes.number,\n image: PropTypes.string,\n width: PropTypes.number,\n};\n\nexport { Item };\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,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,GAAGX,KAAK;IACfS,GAAG,CAACG,MAAM,GAAG,YAAM;MACjBN,WAAW,CAACG,GAAG,CAACR,KAAK,GAAGQ,GAAG,CAACV,MAAM,GAAG,CAAC,CAAC;IACzC,CAAC;IACD;EACF,CAAC,EAAE,CAACC,KAAK,CAAC,CAAC;EAEX,oBACEvD,MAAA,CAAAW,OAAA,CAAAyD,aAAA,CAAChE,WAAA,CAAAiE,IAAI;IACHC,GAAG,EAAC,OAAO;IACXC,SAAS,EAAE,IAAAC,eAAM,EAACC,qBAAK,CAAClB,KAAK,EAAEK,QAAQ,IAAIa,qBAAK,CAACb,QAAQ,CAAE;IAC3Da,KAAK,EAAE;MAAEC,eAAe,EAAEnB,KAAK,UAAAoB,MAAA,CAAUpB,KAAK,SAAMQ,SAAS;MAAET,MAAM;MAAEE;IAAM;EAAE,CAChF,CAAC;AAEN,CAAC;AAEDL,IAAI,CAACyB,SAAS,GAAG;EACftB,MAAM,EAAEuB,kBAAS,CAACC,MAAM;EACxBvB,KAAK,EAAEsB,kBAAS,CAACE,MAAM;EACvBvB,KAAK,EAAEqB,kBAAS,CAACC;AACnB,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SCROLL_DELAY = exports.PRELOAD_IMAGES = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
var PRELOAD_IMAGES = exports.PRELOAD_IMAGES = 1;
|
|
8
|
+
var SCROLL_DELAY = exports.SCROLL_DELAY = 1000;
|
|
9
9
|
//# sourceMappingURL=Slider.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.constants.js","names":["PRELOAD_IMAGES","exports","SCROLL_DELAY"],"sources":["../../../src/components/Slider/Slider.constants.js"],"sourcesContent":["const PRELOAD_IMAGES = 1;\n\nconst SCROLL_DELAY = 1000;\n\nexport { PRELOAD_IMAGES, SCROLL_DELAY };\n"],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Slider.constants.js","names":["PRELOAD_IMAGES","exports","SCROLL_DELAY"],"sources":["../../../src/components/Slider/Slider.constants.js"],"sourcesContent":["const PRELOAD_IMAGES = 1;\n\nconst SCROLL_DELAY = 1000;\n\nexport { PRELOAD_IMAGES, SCROLL_DELAY };\n"],"mappings":";;;;;;AAAA,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,CAAC;AAExB,IAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG,IAAI","ignoreList":[]}
|