@proprioo/salatim 18.6.0 → 19.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/lib/date/src/DayPicker.js +3 -14
- package/lib/date/src/DayPicker.js.map +1 -1
- package/lib/date/src/datePicker/DatePicker.js +18 -51
- package/lib/date/src/datePicker/DatePicker.js.map +1 -1
- package/lib/date/src/datePicker/DatePicker.styles.js +25 -8
- package/lib/date/src/datePicker/DatePicker.styles.js.map +1 -1
- package/lib/date/src/datePicker/DatePicker.test.js +22 -71
- package/lib/date/src/datePicker/DatePicker.test.js.map +1 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.js +22 -36
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.js.map +1 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.stories.js +25 -36
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.stories.js.map +1 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.test.js +55 -132
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.test.js.map +1 -1
- package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.js +5 -10
- package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.js.map +1 -1
- package/lib/date/src/singleMonth/SingleMonth.js +9 -12
- package/lib/date/src/singleMonth/SingleMonth.js.map +1 -1
- package/lib/date/src/singleMonth/SingleMonth.stories.js +21 -32
- package/lib/date/src/singleMonth/SingleMonth.stories.js.map +1 -1
- package/lib/date/src/singleMonth/SingleMonth.styles.js +54 -9
- package/lib/date/src/singleMonth/SingleMonth.styles.js.map +1 -1
- package/lib/date/src/singleMonth/SingleMonth.test.js +18 -67
- package/lib/date/src/singleMonth/SingleMonth.test.js.map +1 -1
- package/lib/energy/src/Energy.js +17 -18
- package/lib/energy/src/Energy.js.map +1 -1
- package/lib/energy/src/Energy.stories.js +9 -20
- package/lib/energy/src/Energy.stories.js.map +1 -1
- package/lib/energy/src/Energy.styles.js +161 -45
- package/lib/energy/src/Energy.styles.js.map +1 -1
- package/lib/energy/src/Energy.test.js +13 -24
- package/lib/energy/src/Energy.test.js.map +1 -1
- package/lib/energy/src/Energy.utils.js +24 -29
- package/lib/energy/src/Energy.utils.js.map +1 -1
- package/lib/energy/src/Energy.utils.test.js +51 -51
- package/lib/energy/src/Energy.utils.test.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.js +17 -37
- package/lib/forms/src/userForm/UserForm.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.schema.d.ts +9 -9
- package/lib/forms/src/userForm/UserForm.schema.js +6 -6
- package/lib/forms/src/userForm/UserForm.schema.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.stories.js +15 -15
- package/lib/forms/src/userForm/UserForm.stories.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.styles.js +9 -10
- package/lib/forms/src/userForm/UserForm.styles.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.test.js +56 -130
- package/lib/forms/src/userForm/UserForm.test.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +3 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useDebounce/useDebounce.js +6 -6
- package/lib/hooks/useDebounce/useDebounce.js.map +1 -1
- package/lib/hooks/useDebounce/useDebounce.test.js +12 -12
- package/lib/hooks/useDebounce/useDebounce.test.js.map +1 -1
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.js +11 -12
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.js.map +1 -1
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.test.js +16 -55
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.test.js.map +1 -1
- package/lib/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -0
- package/lib/hooks/useOnClickOutside/useOnClickOutside.js +30 -0
- package/lib/hooks/useOnClickOutside/useOnClickOutside.js.map +1 -0
- package/lib/index.js +2641 -4
- package/lib/index.js.map +1 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.js +11 -12
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.js.map +1 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.stories.js +9 -9
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.stories.js.map +1 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.js +17 -13
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.js.map +1 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlags.test.js +14 -14
- package/lib/phone/src/phoneAndFlag/PhoneAndFlags.test.js.map +1 -1
- package/lib/phone/src/phoneInput/Phone.js +8 -9
- package/lib/phone/src/phoneInput/Phone.js.map +1 -1
- package/lib/phone/src/phoneInput/Phone.stories.js +26 -37
- package/lib/phone/src/phoneInput/Phone.stories.js.map +1 -1
- package/lib/phone/src/phoneInput/Phone.styles.js +60 -13
- package/lib/phone/src/phoneInput/Phone.styles.js.map +1 -1
- package/lib/phone/src/phoneInput/Phone.test.js +57 -131
- package/lib/phone/src/phoneInput/Phone.test.js.map +1 -1
- package/lib/phone/src/phoneInput/PhoneInput.js +5 -8
- package/lib/phone/src/phoneInput/PhoneInput.js.map +1 -1
- package/lib/phone/src/phoneInput/constant.d.ts +3 -2
- package/lib/phone/src/phoneInput/constant.js.map +1 -1
- package/lib/phone/src/utils.d.ts +2 -1
- package/lib/phone/src/utils.js +6 -6
- package/lib/phone/src/utils.js.map +1 -1
- package/lib/phone/src/utils.test.js +6 -6
- package/lib/phone/src/utils.test.js.map +1 -1
- package/lib/setupTests.js +22 -46
- package/lib/setupTests.js.map +1 -1
- package/lib/ui/src/accordion/Accordion.js +3 -6
- package/lib/ui/src/accordion/Accordion.js.map +1 -1
- package/lib/ui/src/accordion/Accordion.stories.js +38 -51
- package/lib/ui/src/accordion/Accordion.stories.js.map +1 -1
- package/lib/ui/src/accordion/Accordion.styles.js +81 -33
- package/lib/ui/src/accordion/Accordion.styles.js.map +1 -1
- package/lib/ui/src/accordion/Accordion.test.js +73 -129
- package/lib/ui/src/accordion/Accordion.test.js.map +1 -1
- package/lib/ui/src/accordion/AccordionContextConsumer.js +3 -6
- package/lib/ui/src/accordion/AccordionContextConsumer.js.map +1 -1
- package/lib/ui/src/accordion/AccordionContextProvider.js +19 -37
- package/lib/ui/src/accordion/AccordionContextProvider.js.map +1 -1
- package/lib/ui/src/accordion/AccordionHeader.js +8 -14
- package/lib/ui/src/accordion/AccordionHeader.js.map +1 -1
- package/lib/ui/src/accordion/AccordionItem.js +7 -13
- package/lib/ui/src/accordion/AccordionItem.js.map +1 -1
- package/lib/ui/src/accordion/AccordionPanel.js +4 -10
- package/lib/ui/src/accordion/AccordionPanel.js.map +1 -1
- package/lib/ui/src/accordion/AccordionStore.js +14 -36
- package/lib/ui/src/accordion/AccordionStore.js.map +1 -1
- package/lib/ui/src/accordion/ItemContextConsumer.js +3 -6
- package/lib/ui/src/accordion/ItemContextConsumer.js.map +1 -1
- package/lib/ui/src/accordion/ItemContextProvider.js +10 -22
- package/lib/ui/src/accordion/ItemContextProvider.js.map +1 -1
- package/lib/ui/src/agentBanner/AgentBanner.js +13 -16
- package/lib/ui/src/agentBanner/AgentBanner.js.map +1 -1
- package/lib/ui/src/agentBanner/AgentBanner.stories.js +8 -8
- package/lib/ui/src/agentBanner/AgentBanner.stories.js.map +1 -1
- package/lib/ui/src/agentBanner/AgentBanner.styles.js +61 -18
- package/lib/ui/src/agentBanner/AgentBanner.styles.js.map +1 -1
- package/lib/ui/src/agentBanner/AgentBanner.test.js +13 -24
- package/lib/ui/src/agentBanner/AgentBanner.test.js.map +1 -1
- package/lib/ui/src/agentCard/AgentCard.js +19 -22
- package/lib/ui/src/agentCard/AgentCard.js.map +1 -1
- package/lib/ui/src/agentCard/AgentCard.stories.js +9 -9
- package/lib/ui/src/agentCard/AgentCard.stories.js.map +1 -1
- package/lib/ui/src/agentCard/AgentCard.styles.js +83 -16
- package/lib/ui/src/agentCard/AgentCard.styles.js.map +1 -1
- package/lib/ui/src/agentCard/AgentCard.test.js +21 -32
- package/lib/ui/src/agentCard/AgentCard.test.js.map +1 -1
- package/lib/ui/src/autocomplete/Autocomplete.js +16 -33
- package/lib/ui/src/autocomplete/Autocomplete.js.map +1 -1
- package/lib/ui/src/autocomplete/Autocomplete.stories.js +30 -41
- package/lib/ui/src/autocomplete/Autocomplete.stories.js.map +1 -1
- package/lib/ui/src/autocomplete/Autocomplete.test.js +67 -167
- package/lib/ui/src/autocomplete/Autocomplete.test.js.map +1 -1
- package/lib/ui/src/background/Background.styles.js +40 -17
- package/lib/ui/src/background/Background.styles.js.map +1 -1
- package/lib/ui/src/block/Block.js +5 -8
- package/lib/ui/src/block/Block.js.map +1 -1
- package/lib/ui/src/block/Block.stories.js +10 -10
- package/lib/ui/src/block/Block.stories.js.map +1 -1
- package/lib/ui/src/block/Block.styles.js +59 -24
- package/lib/ui/src/block/Block.styles.js.map +1 -1
- package/lib/ui/src/block/Block.test.js +11 -11
- package/lib/ui/src/block/Block.test.js.map +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.js +5 -6
- package/lib/ui/src/blockIcon/BlockIcon.js.map +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.stories.js +15 -15
- package/lib/ui/src/blockIcon/BlockIcon.stories.js.map +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.styles.js +53 -14
- package/lib/ui/src/blockIcon/BlockIcon.styles.js.map +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.test.js +21 -67
- package/lib/ui/src/blockIcon/BlockIcon.test.js.map +1 -1
- package/lib/ui/src/burger/Burger.js +6 -9
- package/lib/ui/src/burger/Burger.js.map +1 -1
- package/lib/ui/src/burger/Burger.stories.js +14 -27
- package/lib/ui/src/burger/Burger.stories.js.map +1 -1
- package/lib/ui/src/burger/Burger.styles.js +88 -23
- package/lib/ui/src/burger/Burger.styles.js.map +1 -1
- package/lib/ui/src/burger/Burger.test.js +18 -64
- package/lib/ui/src/burger/Burger.test.js.map +1 -1
- package/lib/ui/src/button/Button.js +6 -17
- package/lib/ui/src/button/Button.js.map +1 -1
- package/lib/ui/src/button/Button.stories.js +34 -45
- package/lib/ui/src/button/Button.stories.js.map +1 -1
- package/lib/ui/src/button/Button.styles.d.ts +4 -2
- package/lib/ui/src/button/Button.styles.js +416 -107
- package/lib/ui/src/button/Button.styles.js.map +1 -1
- package/lib/ui/src/button/Button.test.js +38 -84
- package/lib/ui/src/button/Button.test.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.js +7 -8
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.js +78 -21
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.js +4 -7
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.stories.js +8 -11
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.stories.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.js +16 -9
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.js.map +1 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.test.js +18 -68
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.test.js.map +1 -1
- package/lib/ui/src/card/Card.js +18 -19
- package/lib/ui/src/card/Card.js.map +1 -1
- package/lib/ui/src/card/Card.stories.js +21 -32
- package/lib/ui/src/card/Card.stories.js.map +1 -1
- package/lib/ui/src/card/Card.styles.js +81 -33
- package/lib/ui/src/card/Card.styles.js.map +1 -1
- package/lib/ui/src/card/Card.test.js +63 -141
- package/lib/ui/src/card/Card.test.js.map +1 -1
- package/lib/ui/src/card/icons/Dropdown.d.ts +0 -1
- package/lib/ui/src/card/icons/Dropdown.js +3 -3
- package/lib/ui/src/card/icons/Dropdown.js.map +1 -1
- package/lib/ui/src/card/icons/Dropup.d.ts +0 -1
- package/lib/ui/src/card/icons/Dropup.js +3 -3
- package/lib/ui/src/card/icons/Dropup.js.map +1 -1
- package/lib/ui/src/checkbox/Checkbox.d.ts +1 -0
- package/lib/ui/src/checkbox/Checkbox.js +9 -9
- package/lib/ui/src/checkbox/Checkbox.js.map +1 -1
- package/lib/ui/src/checkbox/Checkbox.stories.js +66 -48
- package/lib/ui/src/checkbox/Checkbox.stories.js.map +1 -1
- package/lib/ui/src/checkbox/Checkbox.styles.d.ts +5 -2
- package/lib/ui/src/checkbox/Checkbox.styles.js +149 -18
- package/lib/ui/src/checkbox/Checkbox.styles.js.map +1 -1
- package/lib/ui/src/checkbox/Checkbox.test.js +27 -62
- package/lib/ui/src/checkbox/Checkbox.test.js.map +1 -1
- package/lib/ui/src/dateInput/DateInput.js +20 -33
- package/lib/ui/src/dateInput/DateInput.js.map +1 -1
- package/lib/ui/src/dateInput/DateInput.stories.js +15 -26
- package/lib/ui/src/dateInput/DateInput.stories.js.map +1 -1
- package/lib/ui/src/dateInput/DateInput.test.js +51 -139
- package/lib/ui/src/dateInput/DateInput.test.js.map +1 -1
- package/lib/ui/src/emailInput/EmailInput.d.ts +0 -1
- package/lib/ui/src/emailInput/EmailInput.js +20 -31
- package/lib/ui/src/emailInput/EmailInput.js.map +1 -1
- package/lib/ui/src/emailInput/EmailInput.stories.js +15 -26
- package/lib/ui/src/emailInput/EmailInput.stories.js.map +1 -1
- package/lib/ui/src/emailInput/EmailInput.styles.js +32 -9
- package/lib/ui/src/emailInput/EmailInput.styles.js.map +1 -1
- package/lib/ui/src/emailInput/EmailInput.test.js +71 -149
- package/lib/ui/src/emailInput/EmailInput.test.js.map +1 -1
- package/lib/ui/src/fieldset/Fieldset.js +8 -11
- package/lib/ui/src/fieldset/Fieldset.js.map +1 -1
- package/lib/ui/src/fieldset/Fieldset.stories.js +7 -7
- package/lib/ui/src/fieldset/Fieldset.stories.js.map +1 -1
- package/lib/ui/src/fieldset/Fieldset.styles.js +34 -18
- package/lib/ui/src/fieldset/Fieldset.styles.js.map +1 -1
- package/lib/ui/src/fieldset/Fieldset.test.js +6 -6
- package/lib/ui/src/fieldset/Fieldset.test.js.map +1 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.js +34 -64
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.js.map +1 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.stories.js +26 -26
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.stories.js.map +1 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +1 -0
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.js +18 -46
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.js.map +1 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.stories.js +16 -18
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.stories.js.map +1 -1
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.js +11 -25
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.js.map +1 -1
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.test.js +15 -26
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.test.js.map +1 -1
- package/lib/ui/src/icons/Alert.d.ts +0 -1
- package/lib/ui/src/icons/Alert.js +3 -3
- package/lib/ui/src/icons/Alert.js.map +1 -1
- package/lib/ui/src/icons/Arrow.d.ts +0 -1
- package/lib/ui/src/icons/Arrow.js +3 -3
- package/lib/ui/src/icons/Arrow.js.map +1 -1
- package/lib/ui/src/icons/Certificate.js +3 -6
- package/lib/ui/src/icons/Certificate.js.map +1 -1
- package/lib/ui/src/icons/CheckGreen.d.ts +0 -1
- package/lib/ui/src/icons/CheckGreen.js +3 -3
- package/lib/ui/src/icons/CheckGreen.js.map +1 -1
- package/lib/ui/src/icons/ChevronRight.js +3 -6
- package/lib/ui/src/icons/ChevronRight.js.map +1 -1
- package/lib/ui/src/icons/Close.js +3 -6
- package/lib/ui/src/icons/Close.js.map +1 -1
- package/lib/ui/src/icons/CloseBox.d.ts +0 -1
- package/lib/ui/src/icons/CloseBox.js +3 -3
- package/lib/ui/src/icons/CloseBox.js.map +1 -1
- package/lib/ui/src/icons/DropDown.d.ts +0 -1
- package/lib/ui/src/icons/DropDown.js +3 -3
- package/lib/ui/src/icons/DropDown.js.map +1 -1
- package/lib/ui/src/icons/EmoticonCool.js +3 -6
- package/lib/ui/src/icons/EmoticonCool.js.map +1 -1
- package/lib/ui/src/icons/Help.js +3 -6
- package/lib/ui/src/icons/Help.js.map +1 -1
- package/lib/ui/src/icons/Less.js +3 -6
- package/lib/ui/src/icons/Less.js.map +1 -1
- package/lib/ui/src/icons/Plus.js +3 -6
- package/lib/ui/src/icons/Plus.js.map +1 -1
- package/lib/ui/src/icons/Tick.d.ts +0 -1
- package/lib/ui/src/icons/Tick.js +3 -3
- package/lib/ui/src/icons/Tick.js.map +1 -1
- package/lib/ui/src/icons/TrustPilot.d.ts +0 -1
- package/lib/ui/src/icons/TrustPilot.js +3 -3
- package/lib/ui/src/icons/TrustPilot.js.map +1 -1
- package/lib/ui/src/icons/index.d.ts +0 -1
- package/lib/ui/src/icons/index.js +11 -11
- package/lib/ui/src/icons/index.js.map +1 -1
- package/lib/ui/src/input/Input.js +5 -18
- package/lib/ui/src/input/Input.js.map +1 -1
- package/lib/ui/src/input/Input.stories.js +35 -46
- package/lib/ui/src/input/Input.stories.js.map +1 -1
- package/lib/ui/src/input/Input.styles.js +37 -9
- package/lib/ui/src/input/Input.styles.js.map +1 -1
- package/lib/ui/src/input/Input.test.js +17 -28
- package/lib/ui/src/input/Input.test.js.map +1 -1
- package/lib/ui/src/inputBase/InputBase.js +31 -43
- package/lib/ui/src/inputBase/InputBase.js.map +1 -1
- package/lib/ui/src/inputBase/InputBase.styles.js +243 -67
- package/lib/ui/src/inputBase/InputBase.styles.js.map +1 -1
- package/lib/ui/src/inputBase/InputBase.test.js +36 -98
- package/lib/ui/src/inputBase/InputBase.test.js.map +1 -1
- package/lib/ui/src/inputLoader/InputLoader.d.ts +0 -1
- package/lib/ui/src/inputLoader/InputLoader.js +4 -4
- package/lib/ui/src/inputLoader/InputLoader.js.map +1 -1
- package/lib/ui/src/inputLoader/InputLoader.styles.js +20 -10
- package/lib/ui/src/inputLoader/InputLoader.styles.js.map +1 -1
- package/lib/ui/src/inputLoading/InputLoading.js +3 -3
- package/lib/ui/src/inputLoading/InputLoading.js.map +1 -1
- package/lib/ui/src/inputLoading/InputLoading.stories.js +4 -4
- package/lib/ui/src/inputLoading/InputLoading.stories.js.map +1 -1
- package/lib/ui/src/inputLoading/InputLoading.styles.js +10 -8
- package/lib/ui/src/inputLoading/InputLoading.styles.js.map +1 -1
- package/lib/ui/src/inputLoading/InputLoading.test.js +6 -6
- package/lib/ui/src/inputLoading/InputLoading.test.js.map +1 -1
- package/lib/ui/src/loader/Loader.js +8 -11
- package/lib/ui/src/loader/Loader.js.map +1 -1
- package/lib/ui/src/loader/Loader.stories.js +9 -9
- package/lib/ui/src/loader/Loader.stories.js.map +1 -1
- package/lib/ui/src/loader/Loader.styles.js +56 -23
- package/lib/ui/src/loader/Loader.styles.js.map +1 -1
- package/lib/ui/src/loader/Loader.test.js +6 -6
- package/lib/ui/src/loader/Loader.test.js.map +1 -1
- package/lib/ui/src/logo/Logo.d.ts +0 -1
- package/lib/ui/src/logo/Logo.js +3 -3
- package/lib/ui/src/logo/Logo.js.map +1 -1
- package/lib/ui/src/logo/Logo.stories.js +11 -22
- package/lib/ui/src/logo/Logo.stories.js.map +1 -1
- package/lib/ui/src/mockForm/MockForm.js +5 -8
- package/lib/ui/src/mockForm/MockForm.js.map +1 -1
- package/lib/ui/src/mockForm/MockForm.test.js +6 -6
- package/lib/ui/src/mockForm/MockForm.test.js.map +1 -1
- package/lib/ui/src/modal/Modal.js +43 -49
- package/lib/ui/src/modal/Modal.js.map +1 -1
- package/lib/ui/src/modal/Modal.reducer.js +12 -24
- package/lib/ui/src/modal/Modal.reducer.js.map +1 -1
- package/lib/ui/src/modal/Modal.stories.js +25 -27
- package/lib/ui/src/modal/Modal.stories.js.map +1 -1
- package/lib/ui/src/modal/Modal.styles.d.ts +3 -1
- package/lib/ui/src/modal/Modal.styles.js +165 -32
- package/lib/ui/src/modal/Modal.styles.js.map +1 -1
- package/lib/ui/src/modal/Modal.test.js +34 -71
- package/lib/ui/src/modal/Modal.test.js.map +1 -1
- package/lib/ui/src/nativeSelect/NativeSelect.js +5 -11
- package/lib/ui/src/nativeSelect/NativeSelect.js.map +1 -1
- package/lib/ui/src/nativeSelect/NativeSelect.styles.js +9 -7
- package/lib/ui/src/nativeSelect/NativeSelect.styles.js.map +1 -1
- package/lib/ui/src/nativeSelect/NativeSelect.test.js +7 -18
- package/lib/ui/src/nativeSelect/NativeSelect.test.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.js +19 -30
- package/lib/ui/src/numberInput/NumberInput.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.stories.js +19 -30
- package/lib/ui/src/numberInput/NumberInput.stories.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.test.js +107 -254
- package/lib/ui/src/numberInput/NumberInput.test.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.utils.js +10 -10
- package/lib/ui/src/numberInput/NumberInput.utils.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.utils.test.js +30 -30
- package/lib/ui/src/numberInput/NumberInput.utils.test.js.map +1 -1
- package/lib/ui/src/option/Option.js +8 -11
- package/lib/ui/src/option/Option.js.map +1 -1
- package/lib/ui/src/option/Option.styles.js +59 -19
- package/lib/ui/src/option/Option.styles.js.map +1 -1
- package/lib/ui/src/option/Option.test.js +29 -71
- package/lib/ui/src/option/Option.test.js.map +1 -1
- package/lib/ui/src/panel/Panel.js +4 -7
- package/lib/ui/src/panel/Panel.js.map +1 -1
- package/lib/ui/src/panel/Panel.stories.js +9 -9
- package/lib/ui/src/panel/Panel.stories.js.map +1 -1
- package/lib/ui/src/panel/Panel.styles.js +25 -19
- package/lib/ui/src/panel/Panel.styles.js.map +1 -1
- package/lib/ui/src/panel/PanelColors.js +1 -1
- package/lib/ui/src/panel/PanelColors.js.map +1 -1
- package/lib/ui/src/radio/Radio.js +6 -7
- package/lib/ui/src/radio/Radio.js.map +1 -1
- package/lib/ui/src/radio/Radio.stories.js +12 -27
- package/lib/ui/src/radio/Radio.stories.js.map +1 -1
- package/lib/ui/src/radio/Radio.styles.js +74 -10
- package/lib/ui/src/radio/Radio.styles.js.map +1 -1
- package/lib/ui/src/radio/Radio.test.js +17 -63
- package/lib/ui/src/radio/Radio.test.js.map +1 -1
- package/lib/ui/src/select/Select.js +20 -48
- package/lib/ui/src/select/Select.js.map +1 -1
- package/lib/ui/src/select/Select.styles.js +38 -18
- package/lib/ui/src/select/Select.styles.js.map +1 -1
- package/lib/ui/src/select/Select.test.js +26 -72
- package/lib/ui/src/select/Select.test.js.map +1 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.js +33 -50
- package/lib/ui/src/selectWrapper/SelectWrapper.js.map +1 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.stories.js +64 -82
- package/lib/ui/src/selectWrapper/SelectWrapper.stories.js.map +1 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.js +71 -37
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.js.map +1 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.test.js +53 -107
- package/lib/ui/src/selectWrapper/SelectWrapper.test.js.map +1 -1
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.js +6 -7
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.js.map +1 -1
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.stories.js +7 -18
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.stories.js.map +1 -1
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.test.js +29 -67
- package/lib/ui/src/showMoreTextToggle/ShowMoreTextToggle.test.js.map +1 -1
- package/lib/ui/src/showMoreTextToggle/showMoreTextToggle.styles.js +22 -21
- package/lib/ui/src/showMoreTextToggle/showMoreTextToggle.styles.js.map +1 -1
- package/lib/ui/src/subtitle/Subtitle.js +5 -8
- package/lib/ui/src/subtitle/Subtitle.js.map +1 -1
- package/lib/ui/src/subtitle/Subtitle.stories.js +9 -20
- package/lib/ui/src/subtitle/Subtitle.stories.js.map +1 -1
- package/lib/ui/src/subtitle/Subtitle.styles.js +15 -16
- package/lib/ui/src/subtitle/Subtitle.styles.js.map +1 -1
- package/lib/ui/src/subtitle/Subtitle.test.js +9 -20
- package/lib/ui/src/subtitle/Subtitle.test.js.map +1 -1
- package/lib/ui/src/tag/Tag.js +32 -13
- package/lib/ui/src/tag/Tag.js.map +1 -1
- package/lib/ui/src/tag/Tag.stories.js +29 -40
- package/lib/ui/src/tag/Tag.stories.js.map +1 -1
- package/lib/ui/src/tag/Tag.styles.d.ts +0 -3
- package/lib/ui/src/tag/Tag.styles.js +141 -47
- package/lib/ui/src/tag/Tag.styles.js.map +1 -1
- package/lib/ui/src/tag/Tag.test.js +31 -80
- package/lib/ui/src/tag/Tag.test.js.map +1 -1
- package/lib/ui/src/tag/TagColors.js +1 -1
- package/lib/ui/src/tag/TagColors.js.map +1 -1
- package/lib/ui/src/textarea/Textarea.js +50 -77
- package/lib/ui/src/textarea/Textarea.js.map +1 -1
- package/lib/ui/src/textarea/Textarea.stories.js +42 -62
- package/lib/ui/src/textarea/Textarea.stories.js.map +1 -1
- package/lib/ui/src/textarea/Textarea.styles.d.ts +1 -1
- package/lib/ui/src/textarea/Textarea.styles.js +57 -32
- package/lib/ui/src/textarea/Textarea.styles.js.map +1 -1
- package/lib/ui/src/textarea/Textarea.test.js +17 -63
- package/lib/ui/src/textarea/Textarea.test.js.map +1 -1
- package/lib/ui/src/title/H1.js +6 -9
- package/lib/ui/src/title/H1.js.map +1 -1
- package/lib/ui/src/title/H1.styles.d.ts +2 -1
- package/lib/ui/src/title/H1.styles.js +7 -9
- package/lib/ui/src/title/H1.styles.js.map +1 -1
- package/lib/ui/src/title/H1.test.js +6 -6
- package/lib/ui/src/title/H1.test.js.map +1 -1
- package/lib/ui/src/title/H2.js +6 -9
- package/lib/ui/src/title/H2.js.map +1 -1
- package/lib/ui/src/title/H2.styles.d.ts +2 -1
- package/lib/ui/src/title/H2.styles.js +7 -9
- package/lib/ui/src/title/H2.styles.js.map +1 -1
- package/lib/ui/src/title/H2.test.js +6 -6
- package/lib/ui/src/title/H2.test.js.map +1 -1
- package/lib/ui/src/title/H3.js +7 -21
- package/lib/ui/src/title/H3.js.map +1 -1
- package/lib/ui/src/title/H3.styles.d.ts +2 -1
- package/lib/ui/src/title/H3.styles.js +7 -9
- package/lib/ui/src/title/H3.styles.js.map +1 -1
- package/lib/ui/src/title/H3.test.js +6 -6
- package/lib/ui/src/title/H3.test.js.map +1 -1
- package/lib/ui/src/title/H4.js +6 -9
- package/lib/ui/src/title/H4.js.map +1 -1
- package/lib/ui/src/title/H4.styles.d.ts +2 -1
- package/lib/ui/src/title/H4.styles.js +7 -9
- package/lib/ui/src/title/H4.styles.js.map +1 -1
- package/lib/ui/src/title/H4.test.js +6 -6
- package/lib/ui/src/title/H4.test.js.map +1 -1
- package/lib/ui/src/title/H5.js +6 -9
- package/lib/ui/src/title/H5.js.map +1 -1
- package/lib/ui/src/title/H5.styles.d.ts +2 -1
- package/lib/ui/src/title/H5.styles.js +7 -9
- package/lib/ui/src/title/H5.styles.js.map +1 -1
- package/lib/ui/src/title/H5.test.js +6 -6
- package/lib/ui/src/title/H5.test.js.map +1 -1
- package/lib/ui/src/title/H6.js +7 -21
- package/lib/ui/src/title/H6.js.map +1 -1
- package/lib/ui/src/title/H6.styles.d.ts +2 -1
- package/lib/ui/src/title/H6.styles.js +7 -9
- package/lib/ui/src/title/H6.styles.js.map +1 -1
- package/lib/ui/src/title/H6.test.js +6 -6
- package/lib/ui/src/title/H6.test.js.map +1 -1
- package/lib/ui/src/title/Title.js +2 -2
- package/lib/ui/src/title/Title.js.map +1 -1
- package/lib/ui/src/title/Title.stories.js +18 -18
- package/lib/ui/src/title/Title.stories.js.map +1 -1
- package/lib/ui/src/title/Title.styles.js +89 -22
- package/lib/ui/src/title/Title.styles.js.map +1 -1
- package/lib/ui/src/toggle/Toggle.js +8 -11
- package/lib/ui/src/toggle/Toggle.js.map +1 -1
- package/lib/ui/src/toggle/Toggle.stories.js +20 -31
- package/lib/ui/src/toggle/Toggle.stories.js.map +1 -1
- package/lib/ui/src/toggle/Toggle.styles.js +87 -13
- package/lib/ui/src/toggle/Toggle.styles.js.map +1 -1
- package/lib/ui/src/toggle/Toggle.test.js +23 -68
- package/lib/ui/src/toggle/Toggle.test.js.map +1 -1
- package/lib/ui/src/tooltip/Tooltip.js +20 -32
- package/lib/ui/src/tooltip/Tooltip.js.map +1 -1
- package/lib/ui/src/tooltip/Tooltip.stories.js +26 -37
- package/lib/ui/src/tooltip/Tooltip.stories.js.map +1 -1
- package/lib/ui/src/tooltip/Tooltip.styles.js +56 -9
- package/lib/ui/src/tooltip/Tooltip.styles.js.map +1 -1
- package/lib/ui/src/tooltip/Tooltip.test.js +22 -71
- package/lib/ui/src/tooltip/Tooltip.test.js.map +1 -1
- package/lib/utils/src/actions.js +2 -2
- package/lib/utils/src/actions.js.map +1 -1
- package/lib/utils/src/colors.js +23 -25
- package/lib/utils/src/colors.js.map +1 -1
- package/lib/utils/src/colors.test.js +7 -7
- package/lib/utils/src/colors.test.js.map +1 -1
- package/lib/utils/src/container.js +21 -9
- package/lib/utils/src/container.js.map +1 -1
- package/lib/utils/src/fonts.js +18 -19
- package/lib/utils/src/fonts.js.map +1 -1
- package/lib/utils/src/gmaps.d.ts +1 -0
- package/lib/utils/src/gmaps.js +11 -17
- package/lib/utils/src/gmaps.js.map +1 -1
- package/lib/utils/src/gmaps.test.js +22 -42
- package/lib/utils/src/gmaps.test.js.map +1 -1
- package/lib/utils/src/line.js +7 -8
- package/lib/utils/src/line.js.map +1 -1
- package/lib/utils/src/paragraphs.d.ts +2 -0
- package/lib/utils/src/paragraphs.js +92 -31
- package/lib/utils/src/paragraphs.js.map +1 -1
- package/lib/utils/src/radius.js +6 -6
- package/lib/utils/src/radius.js.map +1 -1
- package/lib/utils/src/responsive.js +13 -22
- package/lib/utils/src/responsive.js.map +1 -1
- package/lib/utils/src/row.js +37 -9
- package/lib/utils/src/row.js.map +1 -1
- package/lib/utils/src/scrollbars.js +32 -9
- package/lib/utils/src/scrollbars.js.map +1 -1
- package/lib/utils/src/shadows.js +6 -6
- package/lib/utils/src/shadows.js.map +1 -1
- package/lib/utils/src/spacing.js +1 -1
- package/lib/utils/src/spacing.js.map +1 -1
- package/lib/utils/src/spacing.test.js +10 -10
- package/lib/utils/src/spacing.test.js.map +1 -1
- package/lib/utils/src/test-utils.d.ts +1 -1
- package/lib/utils/src/test-utils.js +21 -69
- package/lib/utils/src/test-utils.js.map +1 -1
- package/lib/utils/src/utils.stories.js +29 -27
- package/lib/utils/src/utils.stories.js.map +1 -1
- package/lib/utils/src/utils.styles.d.ts +2 -0
- package/lib/utils/src/utils.styles.js +192 -56
- package/lib/utils/src/utils.styles.js.map +1 -1
- package/package.json +50 -56
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
3
|
if (k2 === undefined) k2 = k;
|
|
8
4
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -26,33 +22,98 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
23
|
};
|
|
28
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
const styled_components_1 = require("styled-components");
|
|
26
|
+
const breakpoints_1 = __importDefault(require("./breakpoints"));
|
|
27
|
+
const fonts_1 = __importStar(require("./fonts"));
|
|
28
|
+
const spacing_1 = require("./spacing");
|
|
29
|
+
const body1 = (0, styled_components_1.css) `
|
|
30
|
+
font-size: ${fonts_1.default.base};
|
|
31
|
+
line-height: ${(0, spacing_1.convertPxToRem)(24)};
|
|
32
|
+
margin: 0;
|
|
33
|
+
`;
|
|
34
|
+
const body2 = (0, styled_components_1.css) `
|
|
35
|
+
font-size: ${fonts_1.default.small};
|
|
36
|
+
line-height: ${(0, spacing_1.convertPxToRem)(18)};
|
|
37
|
+
margin: 0;
|
|
38
|
+
`;
|
|
39
|
+
const bodyLight1 = (0, styled_components_1.css) `
|
|
40
|
+
${body1};
|
|
41
|
+
font-weight: 300;
|
|
42
|
+
`;
|
|
43
|
+
const bodyLight2 = (0, styled_components_1.css) `
|
|
44
|
+
${body2};
|
|
45
|
+
font-weight: 300;
|
|
46
|
+
`;
|
|
47
|
+
const caption = (0, styled_components_1.css) `
|
|
48
|
+
font-size: ${fonts_1.default.smaller};
|
|
49
|
+
line-height: ${(0, spacing_1.convertPxToRem)(18)};
|
|
50
|
+
margin: 0;
|
|
51
|
+
`;
|
|
52
|
+
const tab = (0, styled_components_1.css) `
|
|
53
|
+
font-size: ${fonts_1.default.small};
|
|
54
|
+
line-height: ${(0, spacing_1.convertPxToRem)(18)};
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
margin: 0;
|
|
57
|
+
`;
|
|
58
|
+
const breadcrumb = (0, styled_components_1.css) `
|
|
59
|
+
font-size: ${fonts_1.default.smallest};
|
|
60
|
+
line-height: 1;
|
|
61
|
+
letter-spacing: 0.02em;
|
|
62
|
+
margin: 0;
|
|
63
|
+
`;
|
|
64
|
+
const big = (0, styled_components_1.css) `
|
|
65
|
+
font-size: ${(0, spacing_1.convertPxToRem)(20)};
|
|
66
|
+
line-height: ${(0, spacing_1.convertPxToRem)(24)};
|
|
67
|
+
margin: 0;
|
|
68
|
+
`;
|
|
69
|
+
const quote = (0, styled_components_1.css) `
|
|
70
|
+
font-size: ${(0, spacing_1.convertPxToRem)(28)};
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
line-height: 1.2;
|
|
73
|
+
letter-spacing: 0.02em;
|
|
74
|
+
text-transform: uppercase;
|
|
75
|
+
${fonts_1.IntegralCFFont};
|
|
76
|
+
|
|
77
|
+
@media (min-width: ${breakpoints_1.default.base}px) {
|
|
78
|
+
font-size: ${fonts_1.default.biggest};
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
const quoteSmaller = (0, styled_components_1.css) `
|
|
82
|
+
${quote};
|
|
83
|
+
font-size: ${(0, spacing_1.convertPxToRem)(24)};
|
|
84
|
+
|
|
85
|
+
@media (min-width: ${breakpoints_1.default.base}px) {
|
|
86
|
+
font-size: ${fonts_1.default.bigger};
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
const label = (0, styled_components_1.css) `
|
|
90
|
+
${fonts_1.ArchivoFont};
|
|
91
|
+
font-size: ${fonts_1.default.small};
|
|
92
|
+
line-height: 1.3;
|
|
93
|
+
`;
|
|
94
|
+
const subtitle1 = (0, styled_components_1.css) `
|
|
95
|
+
font-size: ${fonts_1.default.base};
|
|
96
|
+
line-height: ${(0, spacing_1.convertPxToRem)(24)};
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
`;
|
|
99
|
+
const subtitle2 = (0, styled_components_1.css) `
|
|
100
|
+
font-size: ${fonts_1.default.small};
|
|
101
|
+
line-height: ${(0, spacing_1.convertPxToRem)(20)};
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
`;
|
|
44
104
|
exports.default = {
|
|
45
|
-
body1
|
|
46
|
-
body2
|
|
47
|
-
bodyLight1
|
|
48
|
-
bodyLight2
|
|
49
|
-
caption
|
|
50
|
-
tab
|
|
51
|
-
breadcrumb
|
|
52
|
-
big
|
|
53
|
-
quote
|
|
54
|
-
quoteSmaller
|
|
55
|
-
|
|
105
|
+
body1,
|
|
106
|
+
body2,
|
|
107
|
+
bodyLight1,
|
|
108
|
+
bodyLight2,
|
|
109
|
+
caption,
|
|
110
|
+
tab,
|
|
111
|
+
breadcrumb,
|
|
112
|
+
big,
|
|
113
|
+
quote,
|
|
114
|
+
quoteSmaller,
|
|
115
|
+
subtitle1,
|
|
116
|
+
subtitle2,
|
|
117
|
+
label
|
|
56
118
|
};
|
|
57
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
58
119
|
//# sourceMappingURL=paragraphs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraphs.js","sourceRoot":"","sources":["../../../packages/utils/src/paragraphs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraphs.js","sourceRoot":"","sources":["../../../packages/utils/src/paragraphs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwC;AAExC,gEAAwC;AACxC,iDAA6D;AAC7D,uCAA2C;AAE3C,MAAM,KAAK,GAAG,IAAA,uBAAG,EAAA;eACF,eAAK,CAAC,IAAI;iBACR,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,MAAM,KAAK,GAAG,IAAA,uBAAG,EAAA;eACF,eAAK,CAAC,KAAK;iBACT,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,uBAAG,EAAA;IAClB,KAAK;;CAER,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,uBAAG,EAAA;IAClB,KAAK;;CAER,CAAC;AAEF,MAAM,OAAO,GAAG,IAAA,uBAAG,EAAA;eACJ,eAAK,CAAC,OAAO;iBACX,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,MAAM,GAAG,GAAG,IAAA,uBAAG,EAAA;eACA,eAAK,CAAC,KAAK;iBACT,IAAA,wBAAc,EAAC,EAAE,CAAC;;;CAGlC,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,uBAAG,EAAA;eACP,eAAK,CAAC,QAAQ;;;;CAI5B,CAAC;AAEF,MAAM,GAAG,GAAG,IAAA,uBAAG,EAAA;eACA,IAAA,wBAAc,EAAC,EAAE,CAAC;iBAChB,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,MAAM,KAAK,GAAG,IAAA,uBAAG,EAAA;eACF,IAAA,wBAAc,EAAC,EAAE,CAAC;;;;;IAK7B,sBAAc;;uBAEK,qBAAW,CAAC,IAAI;iBACtB,eAAK,CAAC,OAAO;;CAE7B,CAAC;AAEF,MAAM,YAAY,GAAG,IAAA,uBAAG,EAAA;IACpB,KAAK;eACM,IAAA,wBAAc,EAAC,EAAE,CAAC;;uBAEV,qBAAW,CAAC,IAAI;iBACtB,eAAK,CAAC,MAAM;;CAE5B,CAAC;AAEF,MAAM,KAAK,GAAG,IAAA,uBAAG,EAAA;IACb,mBAAW;eACA,eAAK,CAAC,KAAK;;CAEzB,CAAC;AAEF,MAAM,SAAS,GAAG,IAAA,uBAAG,EAAA;eACN,eAAK,CAAC,IAAI;iBACR,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,MAAM,SAAS,GAAG,IAAA,uBAAG,EAAA;eACN,eAAK,CAAC,KAAK;iBACT,IAAA,wBAAc,EAAC,EAAE,CAAC;;CAElC,CAAC;AAEF,kBAAe;IACb,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,OAAO;IACP,GAAG;IACH,UAAU;IACV,GAAG;IACH,KAAK;IACL,YAAY;IACZ,SAAS;IACT,SAAS;IACT,KAAK;CACN,CAAC"}
|
package/lib/utils/src/radius.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
const spacing_1 = require("../src/spacing");
|
|
4
4
|
exports.default = {
|
|
5
|
-
small: spacing_1.convertPxToRem(5),
|
|
6
|
-
normal: spacing_1.convertPxToRem(8),
|
|
7
|
-
big: spacing_1.convertPxToRem(10),
|
|
8
|
-
bigger: spacing_1.convertPxToRem(16),
|
|
9
|
-
biggest: spacing_1.convertPxToRem(24),
|
|
5
|
+
small: (0, spacing_1.convertPxToRem)(5),
|
|
6
|
+
normal: (0, spacing_1.convertPxToRem)(8),
|
|
7
|
+
big: (0, spacing_1.convertPxToRem)(10),
|
|
8
|
+
bigger: (0, spacing_1.convertPxToRem)(16),
|
|
9
|
+
biggest: (0, spacing_1.convertPxToRem)(24),
|
|
10
10
|
rounded: '50%',
|
|
11
11
|
max: '100%'
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radius.js","sourceRoot":"","sources":["../../../packages/utils/src/radius.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"radius.js","sourceRoot":"","sources":["../../../packages/utils/src/radius.ts"],"names":[],"mappings":";;AAAA,4CAAgD;AAEhD,kBAAe;IACb,KAAK,EAAE,IAAA,wBAAc,EAAC,CAAC,CAAC;IACxB,MAAM,EAAE,IAAA,wBAAc,EAAC,CAAC,CAAC;IACzB,GAAG,EAAE,IAAA,wBAAc,EAAC,EAAE,CAAC;IACvB,MAAM,EAAE,IAAA,wBAAc,EAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAA,wBAAc,EAAC,EAAE,CAAC;IAC3B,OAAO,EAAE,KAAK;IACd,GAAG,EAAE,MAAM;CACZ,CAAC"}
|
|
@@ -4,39 +4,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.isTouchDevice = exports.useSmallSmartphoneDevice = exports.useSmartphoneDevice = exports.useMobileDevice = exports.useMediaQuery = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
react_1.useEffect(
|
|
12
|
-
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const breakpoints_1 = __importDefault(require("./breakpoints"));
|
|
9
|
+
const useMediaQuery = (query) => {
|
|
10
|
+
const [matches, setMatches] = (0, react_1.useState)(false);
|
|
11
|
+
(0, react_1.useEffect)(() => {
|
|
12
|
+
const media = window.matchMedia(query);
|
|
13
13
|
if (media.matches !== matches) {
|
|
14
14
|
setMatches(media.matches);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
const listener = () => setMatches(media.matches);
|
|
17
17
|
// do not touch add / remove for backwards
|
|
18
18
|
media.addListener(listener);
|
|
19
|
-
return
|
|
19
|
+
return () => media.removeListener(listener);
|
|
20
20
|
}, [query]);
|
|
21
21
|
return matches;
|
|
22
22
|
};
|
|
23
23
|
exports.useMediaQuery = useMediaQuery;
|
|
24
|
-
|
|
25
|
-
return exports.useMediaQuery("(max-width: " + (breakpoints_1.default.base - 1) + "px)");
|
|
26
|
-
};
|
|
24
|
+
const useMobileDevice = () => (0, exports.useMediaQuery)(`(max-width: ${breakpoints_1.default.base - 1}px)`);
|
|
27
25
|
exports.useMobileDevice = useMobileDevice;
|
|
28
|
-
|
|
29
|
-
return exports.useMediaQuery("(max-width: " + (breakpoints_1.default.xsmall - 1) + "px)");
|
|
30
|
-
};
|
|
26
|
+
const useSmartphoneDevice = () => (0, exports.useMediaQuery)(`(max-width: ${breakpoints_1.default.xsmall - 1}px)`);
|
|
31
27
|
exports.useSmartphoneDevice = useSmartphoneDevice;
|
|
32
|
-
|
|
33
|
-
return exports.useMediaQuery("(max-width: " + (breakpoints_1.default.smallest - 1) + "px)");
|
|
34
|
-
};
|
|
28
|
+
const useSmallSmartphoneDevice = () => (0, exports.useMediaQuery)(`(max-width: ${breakpoints_1.default.smallest - 1}px)`);
|
|
35
29
|
exports.useSmallSmartphoneDevice = useSmallSmartphoneDevice;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
!!(typeof navigator !== 'undefined' &&
|
|
39
|
-
(navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
40
|
-
};
|
|
30
|
+
const isTouchDevice = () => !!(typeof window !== 'undefined' && 'ontouchstart' in window) ||
|
|
31
|
+
!!(typeof navigator !== 'undefined' && navigator.maxTouchPoints);
|
|
41
32
|
exports.isTouchDevice = isTouchDevice;
|
|
42
33
|
//# sourceMappingURL=responsive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive.js","sourceRoot":"","sources":["../../../packages/utils/src/responsive.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"responsive.js","sourceRoot":"","sources":["../../../packages/utils/src/responsive.ts"],"names":[],"mappings":";;;;;;AAAA,iCAA4C;AAE5C,gEAAwC;AAEjC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAEvD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAEvC,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE;YAC7B,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SAC3B;QAED,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEjD,0CAA0C;QAC1C,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE5B,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAnBW,QAAA,aAAa,iBAmBxB;AAEK,MAAM,eAAe,GAAG,GAAG,EAAE,CAClC,IAAA,qBAAa,EAAC,eAAe,qBAAW,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AAD7C,QAAA,eAAe,mBAC8B;AAEnD,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACtC,IAAA,qBAAa,EAAC,eAAe,qBAAW,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;AAD/C,QAAA,mBAAmB,uBAC4B;AAErD,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAC3C,IAAA,qBAAa,EAAC,eAAe,qBAAW,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,CAAC;AADjD,QAAA,wBAAwB,4BACyB;AAEvD,MAAM,aAAa,GAAG,GAAG,EAAE,CAChC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,IAAI,cAAc,IAAI,MAAM,CAAC;IAC7D,CAAC,CAAC,CAAC,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,cAAc,CAAC,CAAC;AAFtD,QAAA,aAAa,iBAEyC"}
|
package/lib/utils/src/row.js
CHANGED
|
@@ -1,17 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
4
|
};
|
|
9
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
6
|
exports.Row = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.Row = styled_components_1.default.div
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const breakpoints_1 = __importDefault(require("./breakpoints"));
|
|
9
|
+
const spacing_1 = require("./spacing");
|
|
10
|
+
exports.Row = styled_components_1.default.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
|
|
15
|
+
& > * {
|
|
16
|
+
&:not(:first-child) {
|
|
17
|
+
margin-top: ${(0, spacing_1.convertPxToRem)(24)};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (min-width: ${breakpoints_1.default.base}px) {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
|
|
24
|
+
& > * {
|
|
25
|
+
width: calc(50% - ${(0, spacing_1.convertPxToRem)(12)});
|
|
26
|
+
&:not(:first-child) {
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& > & {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
|
|
36
|
+
& > * {
|
|
37
|
+
width: calc(50% - ${(0, spacing_1.convertPxToRem)(4)});
|
|
38
|
+
&:not(:first-child) {
|
|
39
|
+
margin-top: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
15
44
|
exports.default = exports.Row;
|
|
16
|
-
var templateObject_1;
|
|
17
45
|
//# sourceMappingURL=row.js.map
|
package/lib/utils/src/row.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row.js","sourceRoot":"","sources":["../../../packages/utils/src/row.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"row.js","sourceRoot":"","sources":["../../../packages/utils/src/row.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AAEvC,gEAAwC;AACxC,uCAA2C;AAE9B,QAAA,GAAG,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;oBAOT,IAAA,wBAAc,EAAC,EAAE,CAAC;;;;uBAIf,qBAAW,CAAC,IAAI;;;;0BAIb,IAAA,wBAAc,EAAC,EAAE,CAAC;;;;;;;;;;;;0BAYlB,IAAA,wBAAc,EAAC,CAAC,CAAC;;;;;;CAM1C,CAAC;AAEF,kBAAe,WAAG,CAAC"}
|
|
@@ -1,16 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
4
|
};
|
|
9
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
const styled_components_1 = require("styled-components");
|
|
7
|
+
const colors_1 = __importDefault(require("./colors"));
|
|
8
|
+
const spacing_1 = require("./spacing");
|
|
9
|
+
const scrollbar = (0, styled_components_1.css) `
|
|
10
|
+
::-webkit-scrollbar-track {
|
|
11
|
+
background: transparent;
|
|
12
|
+
border: 0 none transparent;
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
box-shadow: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
::-webkit-scrollbar-thumb {
|
|
18
|
+
background: ${colors_1.default.orange.base};
|
|
19
|
+
border: 0 none transparent;
|
|
20
|
+
border-radius: ${(0, spacing_1.convertPxToRem)(5)};
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
::-webkit-scrollbar-button {
|
|
25
|
+
width: 0;
|
|
26
|
+
height: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::-webkit-scrollbar-corner {
|
|
30
|
+
background: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::-webkit-scrollbar {
|
|
34
|
+
width: ${(0, spacing_1.convertPxToRem)(3)};
|
|
35
|
+
height: ${(0, spacing_1.convertPxToRem)(3)};
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
14
38
|
exports.default = scrollbar;
|
|
15
|
-
var templateObject_1;
|
|
16
39
|
//# sourceMappingURL=scrollbars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbars.js","sourceRoot":"","sources":["../../../packages/utils/src/scrollbars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrollbars.js","sourceRoot":"","sources":["../../../packages/utils/src/scrollbars.ts"],"names":[],"mappings":";;;;;AAAA,yDAAwC;AAExC,sDAA8B;AAC9B,uCAA2C;AAE3C,MAAM,SAAS,GAAG,IAAA,uBAAG,EAAA;;;;;;;;;kBASH,gBAAM,CAAC,MAAM,CAAC,IAAI;;qBAEf,IAAA,wBAAc,EAAC,CAAC,CAAC;;;;;;;;;;;;;;aAczB,IAAA,wBAAc,EAAC,CAAC,CAAC;cAChB,IAAA,wBAAc,EAAC,CAAC,CAAC;;CAE9B,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/lib/utils/src/shadows.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
const spacing_1 = require("../src/spacing");
|
|
4
4
|
exports.default = {
|
|
5
|
-
level1:
|
|
6
|
-
level2:
|
|
7
|
-
level3:
|
|
8
|
-
level4:
|
|
9
|
-
level5:
|
|
5
|
+
level1: `0 ${(0, spacing_1.convertPxToRem)(1)} ${(0, spacing_1.convertPxToRem)(2)} rgba(51, 51, 51, 0.08)`,
|
|
6
|
+
level2: `0 ${(0, spacing_1.convertPxToRem)(4)} ${(0, spacing_1.convertPxToRem)(8)} rgba(51, 51, 51, 0.08)`,
|
|
7
|
+
level3: `0 ${(0, spacing_1.convertPxToRem)(6)} ${(0, spacing_1.convertPxToRem)(12)} rgba(51, 51, 51, 0.08)`,
|
|
8
|
+
level4: `0 ${(0, spacing_1.convertPxToRem)(8)} ${(0, spacing_1.convertPxToRem)(16)} rgba(51, 51, 51, 0.08)`,
|
|
9
|
+
level5: `0 ${(0, spacing_1.convertPxToRem)(10)} ${(0, spacing_1.convertPxToRem)(24)} rgba(51, 51, 51, 0.08)`
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=shadows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../../packages/utils/src/shadows.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../../packages/utils/src/shadows.ts"],"names":[],"mappings":";;AAAA,4CAAgD;AAEhD,kBAAe;IACb,MAAM,EAAE,KAAK,IAAA,wBAAc,EAAC,CAAC,CAAC,IAAI,IAAA,wBAAc,EAAC,CAAC,CAAC,yBAAyB;IAC5E,MAAM,EAAE,KAAK,IAAA,wBAAc,EAAC,CAAC,CAAC,IAAI,IAAA,wBAAc,EAAC,CAAC,CAAC,yBAAyB;IAC5E,MAAM,EAAE,KAAK,IAAA,wBAAc,EAAC,CAAC,CAAC,IAAI,IAAA,wBAAc,EAAC,EAAE,CAAC,yBAAyB;IAC7E,MAAM,EAAE,KAAK,IAAA,wBAAc,EAAC,CAAC,CAAC,IAAI,IAAA,wBAAc,EAAC,EAAE,CAAC,yBAAyB;IAC7E,MAAM,EAAE,KAAK,IAAA,wBAAc,EAAC,EAAE,CAAC,IAAI,IAAA,wBAAc,EAAC,EAAE,CAAC,yBAAyB;CAC/E,CAAC"}
|
package/lib/utils/src/spacing.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertPxToRem = exports.base = void 0;
|
|
4
4
|
exports.base = 16;
|
|
5
|
-
|
|
5
|
+
const convertPxToRem = (value) => `${value / exports.base}rem`;
|
|
6
6
|
exports.convertPxToRem = convertPxToRem;
|
|
7
7
|
//# sourceMappingURL=spacing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.js","sourceRoot":"","sources":["../../../packages/utils/src/spacing.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,EAAE,CAAC;AAChB,
|
|
1
|
+
{"version":3,"file":"spacing.js","sourceRoot":"","sources":["../../../packages/utils/src/spacing.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,EAAE,CAAC;AAChB,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,GAAG,KAAK,GAAG,YAAI,KAAK,CAAC;AAAjE,QAAA,cAAc,kBAAmD"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
describe('convertPxToRem',
|
|
5
|
-
it('should return rem value',
|
|
6
|
-
expect(spacing_1.convertPxToRem(24)).toEqual('1.5rem');
|
|
7
|
-
expect(spacing_1.convertPxToRem(20)).toEqual('1.25rem');
|
|
8
|
-
expect(spacing_1.convertPxToRem(16)).toEqual('1rem');
|
|
9
|
-
expect(spacing_1.convertPxToRem(12)).toEqual('0.75rem');
|
|
10
|
-
expect(spacing_1.convertPxToRem(8)).toEqual('0.5rem');
|
|
11
|
-
expect(spacing_1.convertPxToRem(4)).toEqual('0.25rem');
|
|
12
|
-
expect(spacing_1.convertPxToRem(2)).toEqual('0.125rem');
|
|
3
|
+
const spacing_1 = require("./spacing");
|
|
4
|
+
describe('convertPxToRem', () => {
|
|
5
|
+
it('should return rem value', () => {
|
|
6
|
+
expect((0, spacing_1.convertPxToRem)(24)).toEqual('1.5rem');
|
|
7
|
+
expect((0, spacing_1.convertPxToRem)(20)).toEqual('1.25rem');
|
|
8
|
+
expect((0, spacing_1.convertPxToRem)(16)).toEqual('1rem');
|
|
9
|
+
expect((0, spacing_1.convertPxToRem)(12)).toEqual('0.75rem');
|
|
10
|
+
expect((0, spacing_1.convertPxToRem)(8)).toEqual('0.5rem');
|
|
11
|
+
expect((0, spacing_1.convertPxToRem)(4)).toEqual('0.25rem');
|
|
12
|
+
expect((0, spacing_1.convertPxToRem)(2)).toEqual('0.125rem');
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=spacing.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacing.test.js","sourceRoot":"","sources":["../../../packages/utils/src/spacing.test.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"spacing.test.js","sourceRoot":"","sources":["../../../packages/utils/src/spacing.test.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAE3C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,CAAC,IAAA,wBAAc,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAA,wBAAc,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,CAAC,IAAA,wBAAc,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,CAAC,IAAA,wBAAc,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9C,MAAM,CAAC,IAAA,wBAAc,EAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAA,wBAAc,EAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAA,wBAAc,EAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare type TestA11YOptions = TestOptions & {
|
|
|
8
8
|
};
|
|
9
9
|
declare function ChildrenPassthrough({ children }: {
|
|
10
10
|
children: React.ReactElement;
|
|
11
|
-
}): React.ReactElement<any, string |
|
|
11
|
+
}): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
12
|
export interface TestOptions extends Omit<RenderOptions, 'wrapper'> {
|
|
13
13
|
wrapper?: typeof ChildrenPassthrough;
|
|
14
14
|
}
|
|
@@ -8,33 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
11
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
39
12
|
var t = {};
|
|
40
13
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -51,24 +24,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
51
24
|
};
|
|
52
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
26
|
exports.testA11y = exports.render = exports.flushPromises = void 0;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
27
|
+
const jest_axe_1 = require("jest-axe");
|
|
28
|
+
const react_1 = __importDefault(require("react"));
|
|
29
|
+
const react_2 = require("@testing-library/react");
|
|
57
30
|
expect.extend(jest_axe_1.toHaveNoViolations);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return __generator(this, function (_a) {
|
|
62
|
-
return [2 /*return*/, new Promise(function (resolve) {
|
|
63
|
-
setTimeout(resolve, timer);
|
|
64
|
-
})];
|
|
65
|
-
});
|
|
31
|
+
const flushPromises = (timer = 0) => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
+
return new Promise(resolve => {
|
|
33
|
+
setTimeout(resolve, timer);
|
|
66
34
|
});
|
|
67
|
-
};
|
|
35
|
+
});
|
|
68
36
|
exports.flushPromises = flushPromises;
|
|
69
37
|
// UI-less passthrough fallback to prevent using conditional logic in render
|
|
70
|
-
function ChildrenPassthrough(
|
|
71
|
-
var children = _a.children;
|
|
38
|
+
function ChildrenPassthrough({ children }) {
|
|
72
39
|
return children;
|
|
73
40
|
}
|
|
74
41
|
/**
|
|
@@ -78,35 +45,20 @@ function ChildrenPassthrough(_a) {
|
|
|
78
45
|
* @param component the component under test
|
|
79
46
|
* @param options customized test options
|
|
80
47
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return react_2.render(react_1.default.createElement(Wrapper, null, component), options);
|
|
48
|
+
const render = (component, _a = {}) => {
|
|
49
|
+
var { wrapper: Wrapper = ChildrenPassthrough } = _a, options = __rest(_a, ["wrapper"]);
|
|
50
|
+
return (0, react_2.render)(react_1.default.createElement(Wrapper, null, component), options);
|
|
85
51
|
};
|
|
86
52
|
exports.render = render;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var results;
|
|
98
|
-
return __generator(this, function (_a) {
|
|
99
|
-
switch (_a.label) {
|
|
100
|
-
case 0: return [4 /*yield*/, jest_axe_1.axe(container, axeOptions)];
|
|
101
|
-
case 1:
|
|
102
|
-
results = _a.sent();
|
|
103
|
-
expect(results).toHaveNoViolations();
|
|
104
|
-
return [2 /*return*/];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}); })];
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
};
|
|
53
|
+
const testA11y = (ui, _a = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
+
var { axeOptions } = _a, options = __rest(_a, ["axeOptions"]);
|
|
55
|
+
const container = react_1.default.isValidElement(ui)
|
|
56
|
+
? (0, exports.render)(ui, options).container
|
|
57
|
+
: ui;
|
|
58
|
+
return (0, react_2.act)(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const results = yield (0, jest_axe_1.axe)(container, axeOptions);
|
|
60
|
+
expect(results).toHaveNoViolations();
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
111
63
|
exports.testA11y = testA11y;
|
|
112
64
|
//# sourceMappingURL=test-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../../packages/utils/src/test-utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../../packages/utils/src/test-utils.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAAmD;AACnD,kDAA0B;AAE1B,kDAKgC;AAEhC,MAAM,CAAC,MAAM,CAAC,6BAAkB,CAAC,CAAC;AAE3B,MAAM,aAAa,GAAG,CAAO,KAAK,GAAG,CAAC,EAAE,EAAE;IAC/C,OAAA,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACpB,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAA;EAAA,CAAC;AAHQ,QAAA,aAAa,iBAGrB;AAKL,4EAA4E;AAC5E,SAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAoC;IACzE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAOD;;;;;;GAMG;AACI,MAAM,MAAM,GAAG,CACpB,SAA0C,EAC1C,KAAsE,EAAE,EAC1D,EAAE;QADhB,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,OAAgC,EAA3B,OAAO,cAApD,WAAsD,CAAF;IACnC,OAAA,IAAA,cAAS,EAAC,8BAAC,OAAO,QAAE,SAAS,CAAW,EAAE,OAAO,CAAC,CAAA;CAAA,CAAC;AAHzD,QAAA,MAAM,UAGmD;AAE/D,MAAM,QAAQ,GAAG,CACtB,EAAyB,EACzB,KAA8C,EAAE,EAChD,EAAE;QADF,EAAE,UAAU,OAAoC,EAA/B,OAAO,cAAxB,cAA0B,CAAF;IAExB,MAAM,SAAS,GAAG,eAAK,CAAC,cAAc,CAAC,EAAE,CAAC;QACxC,CAAC,CAAC,IAAA,cAAM,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC,SAAS;QAC/B,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,IAAA,WAAG,EAAC,GAAS,EAAE;QACpB,MAAM,OAAO,GAAG,MAAM,IAAA,cAAG,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAEjD,MAAM,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACvC,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAbW,QAAA,QAAQ,YAanB"}
|