@proprioo/salatim 32.4.0 → 33.0.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 +4 -0
- package/lib/index.js +993 -978
- package/lib/index.js.map +1 -1
- package/lib/phone/src/utils.d.ts +1 -1
- package/lib/utils/src/gmaps.d.ts +3 -3
- package/package.json +35 -35
- package/lib/date/index.js +0 -11
- package/lib/date/index.js.map +0 -1
- package/lib/date/src/datePicker/DatePicker.js +0 -12
- package/lib/date/src/datePicker/DatePicker.js.map +0 -1
- package/lib/date/src/datePicker/DatePicker.styles.js +0 -27
- package/lib/date/src/datePicker/DatePicker.styles.js.map +0 -1
- package/lib/date/src/datePicker/DatePicker.test.d.ts +0 -1
- package/lib/date/src/datePicker/DatePicker.test.js +0 -64
- package/lib/date/src/datePicker/DatePicker.test.js.map +0 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.js +0 -38
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.js.map +0 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.stories.d.ts +0 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.stories.js +0 -38
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.stories.js.map +0 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.test.d.ts +0 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.test.js +0 -81
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.test.js.map +0 -1
- package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.js +0 -18
- package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.js.map +0 -1
- package/lib/date/src/interfaces.js +0 -3
- package/lib/date/src/interfaces.js.map +0 -1
- package/lib/date/src/singleMonth/SingleMonth.js +0 -11
- package/lib/date/src/singleMonth/SingleMonth.js.map +0 -1
- package/lib/date/src/singleMonth/SingleMonth.stories.d.ts +0 -1
- package/lib/date/src/singleMonth/SingleMonth.stories.js +0 -29
- package/lib/date/src/singleMonth/SingleMonth.stories.js.map +0 -1
- package/lib/date/src/singleMonth/SingleMonth.styles.js +0 -17
- package/lib/date/src/singleMonth/SingleMonth.styles.js.map +0 -1
- package/lib/date/src/typings.js +0 -3
- package/lib/date/src/typings.js.map +0 -1
- package/lib/energy/index.js +0 -16
- package/lib/energy/index.js.map +0 -1
- package/lib/energy/src/Energy.js +0 -14
- package/lib/energy/src/Energy.js.map +0 -1
- package/lib/energy/src/Energy.stories.d.ts +0 -1
- package/lib/energy/src/Energy.stories.js +0 -31
- package/lib/energy/src/Energy.stories.js.map +0 -1
- package/lib/energy/src/Energy.styles.js +0 -188
- package/lib/energy/src/Energy.styles.js.map +0 -1
- package/lib/energy/src/Energy.test.d.ts +0 -1
- package/lib/energy/src/Energy.test.js +0 -48
- package/lib/energy/src/Energy.test.js.map +0 -1
- package/lib/energy/src/Energy.utils.js +0 -192
- package/lib/energy/src/Energy.utils.js.map +0 -1
- package/lib/energy/src/Energy.utils.test.d.ts +0 -1
- package/lib/energy/src/Energy.utils.test.js +0 -113
- package/lib/energy/src/Energy.utils.test.js.map +0 -1
- package/lib/energy/src/interfaces.js +0 -34
- package/lib/energy/src/interfaces.js.map +0 -1
- package/lib/forms/index.js +0 -19
- package/lib/forms/index.js.map +0 -1
- package/lib/forms/src/errorForm/ErrorForm.styles.js +0 -16
- package/lib/forms/src/errorForm/ErrorForm.styles.js.map +0 -1
- package/lib/forms/src/errorForm/ErrorFormLayout.js +0 -8
- package/lib/forms/src/errorForm/ErrorFormLayout.js.map +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js +0 -29
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.schema.js +0 -41
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.schema.js.map +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.stories.d.ts +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.stories.js +0 -36
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.stories.js.map +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.test.d.ts +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.test.js +0 -105
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.test.js.map +0 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.utils.js +0 -24
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.utils.js.map +0 -1
- package/lib/forms/src/userForm/UserForm.js +0 -34
- package/lib/forms/src/userForm/UserForm.js.map +0 -1
- package/lib/forms/src/userForm/UserForm.schema.js +0 -44
- package/lib/forms/src/userForm/UserForm.schema.js.map +0 -1
- package/lib/forms/src/userForm/UserForm.stories.d.ts +0 -1
- package/lib/forms/src/userForm/UserForm.stories.js +0 -33
- package/lib/forms/src/userForm/UserForm.stories.js.map +0 -1
- package/lib/forms/src/userForm/UserForm.test.d.ts +0 -1
- package/lib/forms/src/userForm/UserForm.test.js +0 -127
- package/lib/forms/src/userForm/UserForm.test.js.map +0 -1
- package/lib/hooks/index.js +0 -13
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useDebounce/useDebounce.js +0 -27
- package/lib/hooks/useDebounce/useDebounce.js.map +0 -1
- package/lib/hooks/useDebounce/useDebounce.test.d.ts +0 -1
- package/lib/hooks/useDebounce/useDebounce.test.js +0 -36
- package/lib/hooks/useDebounce/useDebounce.test.js.map +0 -1
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.js +0 -83
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.js.map +0 -1
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.test.d.ts +0 -1
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.test.js +0 -28
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.test.js.map +0 -1
- package/lib/hooks/useFirstRender/useFirstRender.js +0 -13
- package/lib/hooks/useFirstRender/useFirstRender.js.map +0 -1
- package/lib/hooks/useOnClickOutside/useOnClickOutside.js +0 -30
- package/lib/hooks/useOnClickOutside/useOnClickOutside.js.map +0 -1
- package/lib/phone/index.js +0 -18
- package/lib/phone/index.js.map +0 -1
- package/lib/phone/src/metadata.custom.json +0 -1319
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.js +0 -14
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.js.map +0 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.stories.d.ts +0 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.stories.js +0 -15
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.stories.js.map +0 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.js +0 -27
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.js.map +0 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlags.test.d.ts +0 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlags.test.js +0 -41
- package/lib/phone/src/phoneAndFlag/PhoneAndFlags.test.js.map +0 -1
- package/lib/phone/src/phoneInput/Phone.js +0 -26
- package/lib/phone/src/phoneInput/Phone.js.map +0 -1
- package/lib/phone/src/phoneInput/Phone.stories.d.ts +0 -1
- package/lib/phone/src/phoneInput/Phone.stories.js +0 -61
- package/lib/phone/src/phoneInput/Phone.stories.js.map +0 -1
- package/lib/phone/src/phoneInput/Phone.styles.js +0 -85
- package/lib/phone/src/phoneInput/Phone.styles.js.map +0 -1
- package/lib/phone/src/phoneInput/Phone.test.d.ts +0 -1
- package/lib/phone/src/phoneInput/Phone.test.js +0 -87
- package/lib/phone/src/phoneInput/Phone.test.js.map +0 -1
- package/lib/phone/src/phoneInput/PhoneInput.js +0 -12
- package/lib/phone/src/phoneInput/PhoneInput.js.map +0 -1
- package/lib/phone/src/phoneInput/constants.js +0 -118
- package/lib/phone/src/phoneInput/constants.js.map +0 -1
- package/lib/phone/src/utils.js +0 -29
- package/lib/phone/src/utils.js.map +0 -1
- package/lib/phone/src/utils.test.d.ts +0 -1
- package/lib/phone/src/utils.test.js +0 -21
- package/lib/phone/src/utils.test.js.map +0 -1
- package/lib/ui/index.js +0 -118
- package/lib/ui/index.js.map +0 -1
- package/lib/ui/src/accordion/Accordion.interfaces.js +0 -10
- package/lib/ui/src/accordion/Accordion.interfaces.js.map +0 -1
- package/lib/ui/src/accordion/Accordion.js +0 -7
- package/lib/ui/src/accordion/Accordion.js.map +0 -1
- package/lib/ui/src/accordion/Accordion.stories.d.ts +0 -1
- package/lib/ui/src/accordion/Accordion.stories.js +0 -49
- package/lib/ui/src/accordion/Accordion.stories.js.map +0 -1
- package/lib/ui/src/accordion/Accordion.styles.js +0 -108
- package/lib/ui/src/accordion/Accordion.styles.js.map +0 -1
- package/lib/ui/src/accordion/Accordion.test.d.ts +0 -1
- package/lib/ui/src/accordion/Accordion.test.js +0 -98
- package/lib/ui/src/accordion/Accordion.test.js.map +0 -1
- package/lib/ui/src/accordion/AccordionContextConsumer.js +0 -9
- package/lib/ui/src/accordion/AccordionContextConsumer.js.map +0 -1
- package/lib/ui/src/accordion/AccordionContextProvider.js +0 -41
- package/lib/ui/src/accordion/AccordionContextProvider.js.map +0 -1
- package/lib/ui/src/accordion/AccordionHeader.js +0 -12
- package/lib/ui/src/accordion/AccordionHeader.js.map +0 -1
- package/lib/ui/src/accordion/AccordionItem.js +0 -13
- package/lib/ui/src/accordion/AccordionItem.js.map +0 -1
- package/lib/ui/src/accordion/AccordionPanel.js +0 -9
- package/lib/ui/src/accordion/AccordionPanel.js.map +0 -1
- package/lib/ui/src/accordion/AccordionStore.js +0 -35
- package/lib/ui/src/accordion/AccordionStore.js.map +0 -1
- package/lib/ui/src/accordion/ItemContextConsumer.js +0 -9
- package/lib/ui/src/accordion/ItemContextConsumer.js.map +0 -1
- package/lib/ui/src/accordion/ItemContextProvider.js +0 -21
- package/lib/ui/src/accordion/ItemContextProvider.js.map +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.js +0 -12
- package/lib/ui/src/agentBanner/AgentBanner.js.map +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.stories.d.ts +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.stories.js +0 -16
- package/lib/ui/src/agentBanner/AgentBanner.stories.js.map +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.styles.js +0 -85
- package/lib/ui/src/agentBanner/AgentBanner.styles.js.map +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.test.d.ts +0 -1
- package/lib/ui/src/agentBanner/AgentBanner.test.js +0 -30
- package/lib/ui/src/agentBanner/AgentBanner.test.js.map +0 -1
- package/lib/ui/src/agentCard/AgentCard.js +0 -16
- package/lib/ui/src/agentCard/AgentCard.js.map +0 -1
- package/lib/ui/src/agentCard/AgentCard.stories.d.ts +0 -1
- package/lib/ui/src/agentCard/AgentCard.stories.js +0 -17
- package/lib/ui/src/agentCard/AgentCard.stories.js.map +0 -1
- package/lib/ui/src/agentCard/AgentCard.styles.js +0 -87
- package/lib/ui/src/agentCard/AgentCard.styles.js.map +0 -1
- package/lib/ui/src/agentCard/AgentCard.test.d.ts +0 -1
- package/lib/ui/src/agentCard/AgentCard.test.js +0 -59
- package/lib/ui/src/agentCard/AgentCard.test.js.map +0 -1
- package/lib/ui/src/agentCard/AgentMock.js +0 -30
- package/lib/ui/src/agentCard/AgentMock.js.map +0 -1
- package/lib/ui/src/autocomplete/Autocomplete.js +0 -47
- package/lib/ui/src/autocomplete/Autocomplete.js.map +0 -1
- package/lib/ui/src/autocomplete/Autocomplete.stories.d.ts +0 -2
- package/lib/ui/src/autocomplete/Autocomplete.stories.js +0 -54
- package/lib/ui/src/autocomplete/Autocomplete.stories.js.map +0 -1
- package/lib/ui/src/autocomplete/Autocomplete.test.d.ts +0 -1
- package/lib/ui/src/autocomplete/Autocomplete.test.js +0 -61
- package/lib/ui/src/autocomplete/Autocomplete.test.js.map +0 -1
- package/lib/ui/src/block/Block.interfaces.js +0 -3
- package/lib/ui/src/block/Block.interfaces.js.map +0 -1
- package/lib/ui/src/block/Block.js +0 -7
- package/lib/ui/src/block/Block.js.map +0 -1
- package/lib/ui/src/block/Block.stories.d.ts +0 -1
- package/lib/ui/src/block/Block.stories.js +0 -25
- package/lib/ui/src/block/Block.stories.js.map +0 -1
- package/lib/ui/src/block/Block.styles.js +0 -86
- package/lib/ui/src/block/Block.styles.js.map +0 -1
- package/lib/ui/src/block/Block.test.d.ts +0 -1
- package/lib/ui/src/block/Block.test.js +0 -29
- package/lib/ui/src/block/Block.test.js.map +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.js +0 -11
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.js.map +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.stories.d.ts +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.stories.js +0 -21
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.stories.js.map +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.styles.js +0 -96
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.styles.js.map +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.d.ts +0 -1
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js +0 -58
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js.map +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.js +0 -11
- package/lib/ui/src/blockIcon/BlockIcon.js.map +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.stories.d.ts +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.stories.js +0 -24
- package/lib/ui/src/blockIcon/BlockIcon.stories.js.map +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.styles.js +0 -73
- package/lib/ui/src/blockIcon/BlockIcon.styles.js.map +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.test.d.ts +0 -1
- package/lib/ui/src/blockIcon/BlockIcon.test.js +0 -55
- package/lib/ui/src/blockIcon/BlockIcon.test.js.map +0 -1
- package/lib/ui/src/burger/Burger.interfaces.js +0 -3
- package/lib/ui/src/burger/Burger.interfaces.js.map +0 -1
- package/lib/ui/src/burger/Burger.js +0 -7
- package/lib/ui/src/burger/Burger.js.map +0 -1
- package/lib/ui/src/burger/Burger.stories.d.ts +0 -1
- package/lib/ui/src/burger/Burger.stories.js +0 -25
- package/lib/ui/src/burger/Burger.stories.js.map +0 -1
- package/lib/ui/src/burger/Burger.styles.js +0 -115
- package/lib/ui/src/burger/Burger.styles.js.map +0 -1
- package/lib/ui/src/burger/Burger.test.d.ts +0 -1
- package/lib/ui/src/burger/Burger.test.js +0 -41
- package/lib/ui/src/burger/Burger.test.js.map +0 -1
- package/lib/ui/src/button/Button.interfaces.js +0 -33
- package/lib/ui/src/button/Button.interfaces.js.map +0 -1
- package/lib/ui/src/button/Button.js +0 -28
- package/lib/ui/src/button/Button.js.map +0 -1
- package/lib/ui/src/button/Button.stories.d.ts +0 -1
- package/lib/ui/src/button/Button.stories.js +0 -33
- package/lib/ui/src/button/Button.stories.js.map +0 -1
- package/lib/ui/src/button/Button.styles.js +0 -450
- package/lib/ui/src/button/Button.styles.js.map +0 -1
- package/lib/ui/src/button/Button.test.d.ts +0 -1
- package/lib/ui/src/button/Button.test.js +0 -70
- package/lib/ui/src/button/Button.test.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.js +0 -12
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.stories.d.ts +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.stories.js +0 -16
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.stories.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.js +0 -121
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.js +0 -11
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.stories.d.ts +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.stories.js +0 -35
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.stories.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.js +0 -23
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.js.map +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.test.d.ts +0 -1
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.test.js +0 -53
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.test.js.map +0 -1
- package/lib/ui/src/card/Card.interfaces.js +0 -9
- package/lib/ui/src/card/Card.interfaces.js.map +0 -1
- package/lib/ui/src/card/Card.js +0 -46
- package/lib/ui/src/card/Card.js.map +0 -1
- package/lib/ui/src/card/Card.stories.d.ts +0 -1
- package/lib/ui/src/card/Card.stories.js +0 -46
- package/lib/ui/src/card/Card.stories.js.map +0 -1
- package/lib/ui/src/card/Card.styles.js +0 -154
- package/lib/ui/src/card/Card.styles.js.map +0 -1
- package/lib/ui/src/card/Card.test.d.ts +0 -1
- package/lib/ui/src/card/Card.test.js +0 -129
- package/lib/ui/src/card/Card.test.js.map +0 -1
- package/lib/ui/src/checkbox/Checkbox.js +0 -12
- package/lib/ui/src/checkbox/Checkbox.js.map +0 -1
- package/lib/ui/src/checkbox/Checkbox.stories.d.ts +0 -1
- package/lib/ui/src/checkbox/Checkbox.stories.js +0 -87
- package/lib/ui/src/checkbox/Checkbox.stories.js.map +0 -1
- package/lib/ui/src/checkbox/Checkbox.styles.js +0 -207
- package/lib/ui/src/checkbox/Checkbox.styles.js.map +0 -1
- package/lib/ui/src/checkbox/Checkbox.test.d.ts +0 -1
- package/lib/ui/src/checkbox/Checkbox.test.js +0 -52
- package/lib/ui/src/checkbox/Checkbox.test.js.map +0 -1
- package/lib/ui/src/checkbox/interfaces.js +0 -9
- package/lib/ui/src/checkbox/interfaces.js.map +0 -1
- package/lib/ui/src/dateInput/DateInput.js +0 -76
- package/lib/ui/src/dateInput/DateInput.js.map +0 -1
- package/lib/ui/src/dateInput/DateInput.stories.d.ts +0 -1
- package/lib/ui/src/dateInput/DateInput.stories.js +0 -34
- package/lib/ui/src/dateInput/DateInput.stories.js.map +0 -1
- package/lib/ui/src/dateInput/DateInput.test.d.ts +0 -1
- package/lib/ui/src/dateInput/DateInput.test.js +0 -95
- package/lib/ui/src/dateInput/DateInput.test.js.map +0 -1
- package/lib/ui/src/emailInput/EmailInput.interfaces.js +0 -3
- package/lib/ui/src/emailInput/EmailInput.interfaces.js.map +0 -1
- package/lib/ui/src/emailInput/EmailInput.js +0 -89
- package/lib/ui/src/emailInput/EmailInput.js.map +0 -1
- package/lib/ui/src/emailInput/EmailInput.stories.d.ts +0 -1
- package/lib/ui/src/emailInput/EmailInput.stories.js +0 -32
- package/lib/ui/src/emailInput/EmailInput.stories.js.map +0 -1
- package/lib/ui/src/emailInput/EmailInput.styles.js +0 -39
- package/lib/ui/src/emailInput/EmailInput.styles.js.map +0 -1
- package/lib/ui/src/emailInput/EmailInput.test.d.ts +0 -1
- package/lib/ui/src/emailInput/EmailInput.test.js +0 -136
- package/lib/ui/src/emailInput/EmailInput.test.js.map +0 -1
- package/lib/ui/src/fieldset/Fieldset.js +0 -8
- package/lib/ui/src/fieldset/Fieldset.js.map +0 -1
- package/lib/ui/src/fieldset/Fieldset.stories.d.ts +0 -1
- package/lib/ui/src/fieldset/Fieldset.stories.js +0 -15
- package/lib/ui/src/fieldset/Fieldset.stories.js.map +0 -1
- package/lib/ui/src/fieldset/Fieldset.styles.js +0 -73
- package/lib/ui/src/fieldset/Fieldset.styles.js.map +0 -1
- package/lib/ui/src/fieldset/Fieldset.test.d.ts +0 -1
- package/lib/ui/src/fieldset/Fieldset.test.js +0 -17
- package/lib/ui/src/fieldset/Fieldset.test.js.map +0 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.js +0 -64
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.js.map +0 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.stories.d.ts +0 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.stories.js +0 -40
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.stories.js.map +0 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.js +0 -45
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.js.map +0 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.stories.d.ts +0 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.stories.js +0 -28
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.stories.js.map +0 -1
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.js +0 -19
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.js.map +0 -1
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.test.d.ts +0 -1
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.test.js +0 -46
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.test.js.map +0 -1
- package/lib/ui/src/icons/Alert.js +0 -6
- package/lib/ui/src/icons/Alert.js.map +0 -1
- package/lib/ui/src/icons/Arrow.js +0 -6
- package/lib/ui/src/icons/Arrow.js.map +0 -1
- package/lib/ui/src/icons/Certificate.js +0 -6
- package/lib/ui/src/icons/Certificate.js.map +0 -1
- package/lib/ui/src/icons/CheckGreen.js +0 -6
- package/lib/ui/src/icons/CheckGreen.js.map +0 -1
- package/lib/ui/src/icons/ChevronRight.js +0 -6
- package/lib/ui/src/icons/ChevronRight.js.map +0 -1
- package/lib/ui/src/icons/Close.js +0 -6
- package/lib/ui/src/icons/Close.js.map +0 -1
- package/lib/ui/src/icons/CloseBox.js +0 -6
- package/lib/ui/src/icons/CloseBox.js.map +0 -1
- package/lib/ui/src/icons/DropDown.js +0 -6
- package/lib/ui/src/icons/DropDown.js.map +0 -1
- package/lib/ui/src/icons/EmoticonCool.js +0 -6
- package/lib/ui/src/icons/EmoticonCool.js.map +0 -1
- package/lib/ui/src/icons/Help.js +0 -6
- package/lib/ui/src/icons/Help.js.map +0 -1
- package/lib/ui/src/icons/Icon.props.js +0 -3
- package/lib/ui/src/icons/Icon.props.js.map +0 -1
- package/lib/ui/src/icons/Less.js +0 -6
- package/lib/ui/src/icons/Less.js.map +0 -1
- package/lib/ui/src/icons/Plus.js +0 -6
- package/lib/ui/src/icons/Plus.js.map +0 -1
- package/lib/ui/src/icons/Tick.js +0 -6
- package/lib/ui/src/icons/Tick.js.map +0 -1
- package/lib/ui/src/icons/TrustPilot.js +0 -6
- package/lib/ui/src/icons/TrustPilot.js.map +0 -1
- package/lib/ui/src/icons/index.js +0 -30
- package/lib/ui/src/icons/index.js.map +0 -1
- package/lib/ui/src/input/Input.js +0 -22
- package/lib/ui/src/input/Input.js.map +0 -1
- package/lib/ui/src/input/Input.stories.d.ts +0 -1
- package/lib/ui/src/input/Input.stories.js +0 -57
- package/lib/ui/src/input/Input.stories.js.map +0 -1
- package/lib/ui/src/input/Input.styles.js +0 -63
- package/lib/ui/src/input/Input.styles.js.map +0 -1
- package/lib/ui/src/input/Input.test.d.ts +0 -1
- package/lib/ui/src/input/Input.test.js +0 -57
- package/lib/ui/src/input/Input.test.js.map +0 -1
- package/lib/ui/src/inputBase/InputBase.interfaces.js +0 -3
- package/lib/ui/src/inputBase/InputBase.interfaces.js.map +0 -1
- package/lib/ui/src/inputBase/InputBase.js +0 -88
- package/lib/ui/src/inputBase/InputBase.js.map +0 -1
- package/lib/ui/src/inputBase/InputBase.styles.js +0 -262
- package/lib/ui/src/inputBase/InputBase.styles.js.map +0 -1
- package/lib/ui/src/inputBase/InputBase.test.d.ts +0 -1
- package/lib/ui/src/inputBase/InputBase.test.js +0 -65
- package/lib/ui/src/inputBase/InputBase.test.js.map +0 -1
- package/lib/ui/src/inputBase/InputBaseEnum.js +0 -11
- package/lib/ui/src/inputBase/InputBaseEnum.js.map +0 -1
- package/lib/ui/src/inputLoader/InputLoader.js +0 -7
- package/lib/ui/src/inputLoader/InputLoader.js.map +0 -1
- package/lib/ui/src/inputLoader/InputLoader.styles.js +0 -27
- package/lib/ui/src/inputLoader/InputLoader.styles.js.map +0 -1
- package/lib/ui/src/inputLoading/InputLoading.js +0 -7
- package/lib/ui/src/inputLoading/InputLoading.js.map +0 -1
- package/lib/ui/src/inputLoading/InputLoading.stories.d.ts +0 -1
- package/lib/ui/src/inputLoading/InputLoading.stories.js +0 -10
- package/lib/ui/src/inputLoading/InputLoading.stories.js.map +0 -1
- package/lib/ui/src/inputLoading/InputLoading.styles.js +0 -17
- package/lib/ui/src/inputLoading/InputLoading.styles.js.map +0 -1
- package/lib/ui/src/inputLoading/InputLoading.test.d.ts +0 -1
- package/lib/ui/src/inputLoading/InputLoading.test.js +0 -15
- package/lib/ui/src/inputLoading/InputLoading.test.js.map +0 -1
- package/lib/ui/src/loader/Loader.interfaces.js +0 -3
- package/lib/ui/src/loader/Loader.interfaces.js.map +0 -1
- package/lib/ui/src/loader/Loader.js +0 -9
- package/lib/ui/src/loader/Loader.js.map +0 -1
- package/lib/ui/src/loader/Loader.stories.d.ts +0 -1
- package/lib/ui/src/loader/Loader.stories.js +0 -23
- package/lib/ui/src/loader/Loader.stories.js.map +0 -1
- package/lib/ui/src/loader/Loader.styles.js +0 -83
- package/lib/ui/src/loader/Loader.styles.js.map +0 -1
- package/lib/ui/src/loader/Loader.test.d.ts +0 -1
- package/lib/ui/src/loader/Loader.test.js +0 -15
- package/lib/ui/src/loader/Loader.test.js.map +0 -1
- package/lib/ui/src/logo/Logo.js +0 -6
- package/lib/ui/src/logo/Logo.js.map +0 -1
- package/lib/ui/src/logo/Logo.stories.d.ts +0 -1
- package/lib/ui/src/logo/Logo.stories.js +0 -32
- package/lib/ui/src/logo/Logo.stories.js.map +0 -1
- package/lib/ui/src/mockForm/MockForm.js +0 -11
- package/lib/ui/src/mockForm/MockForm.js.map +0 -1
- package/lib/ui/src/mockForm/MockForm.test.d.ts +0 -1
- package/lib/ui/src/mockForm/MockForm.test.js +0 -15
- package/lib/ui/src/mockForm/MockForm.test.js.map +0 -1
- package/lib/ui/src/modal/Modal.interfaces.js +0 -19
- package/lib/ui/src/modal/Modal.interfaces.js.map +0 -1
- package/lib/ui/src/modal/Modal.js +0 -110
- package/lib/ui/src/modal/Modal.js.map +0 -1
- package/lib/ui/src/modal/Modal.reducer.js +0 -43
- package/lib/ui/src/modal/Modal.reducer.js.map +0 -1
- package/lib/ui/src/modal/Modal.stories.d.ts +0 -1
- package/lib/ui/src/modal/Modal.stories.js +0 -69
- package/lib/ui/src/modal/Modal.stories.js.map +0 -1
- package/lib/ui/src/modal/Modal.styles.js +0 -237
- package/lib/ui/src/modal/Modal.styles.js.map +0 -1
- package/lib/ui/src/modal/Modal.test.d.ts +0 -1
- package/lib/ui/src/modal/Modal.test.js +0 -78
- package/lib/ui/src/modal/Modal.test.js.map +0 -1
- package/lib/ui/src/nativeSelect/NativeSelect.js +0 -7
- package/lib/ui/src/nativeSelect/NativeSelect.js.map +0 -1
- package/lib/ui/src/nativeSelect/NativeSelect.styles.js +0 -16
- package/lib/ui/src/nativeSelect/NativeSelect.styles.js.map +0 -1
- package/lib/ui/src/nativeSelect/NativeSelect.test.d.ts +0 -1
- package/lib/ui/src/nativeSelect/NativeSelect.test.js +0 -30
- package/lib/ui/src/nativeSelect/NativeSelect.test.js.map +0 -1
- package/lib/ui/src/numberInput/NumberInput.js +0 -74
- package/lib/ui/src/numberInput/NumberInput.js.map +0 -1
- package/lib/ui/src/numberInput/NumberInput.stories.d.ts +0 -1
- package/lib/ui/src/numberInput/NumberInput.stories.js +0 -34
- package/lib/ui/src/numberInput/NumberInput.stories.js.map +0 -1
- package/lib/ui/src/numberInput/NumberInput.test.d.ts +0 -1
- package/lib/ui/src/numberInput/NumberInput.test.js +0 -150
- package/lib/ui/src/numberInput/NumberInput.test.js.map +0 -1
- package/lib/ui/src/numberInput/NumberInput.utils.js +0 -30
- package/lib/ui/src/numberInput/NumberInput.utils.js.map +0 -1
- package/lib/ui/src/numberInput/NumberInput.utils.test.d.ts +0 -1
- package/lib/ui/src/numberInput/NumberInput.utils.test.js +0 -45
- package/lib/ui/src/numberInput/NumberInput.utils.test.js.map +0 -1
- package/lib/ui/src/option/Option.js +0 -17
- package/lib/ui/src/option/Option.js.map +0 -1
- package/lib/ui/src/option/Option.styles.js +0 -82
- package/lib/ui/src/option/Option.styles.js.map +0 -1
- package/lib/ui/src/option/Option.test.d.ts +0 -1
- package/lib/ui/src/option/Option.test.js +0 -75
- package/lib/ui/src/option/Option.test.js.map +0 -1
- package/lib/ui/src/radio/Radio.js +0 -10
- package/lib/ui/src/radio/Radio.js.map +0 -1
- package/lib/ui/src/radio/Radio.stories.d.ts +0 -1
- package/lib/ui/src/radio/Radio.stories.js +0 -17
- package/lib/ui/src/radio/Radio.stories.js.map +0 -1
- package/lib/ui/src/radio/Radio.styles.js +0 -82
- package/lib/ui/src/radio/Radio.styles.js.map +0 -1
- package/lib/ui/src/radio/Radio.test.d.ts +0 -1
- package/lib/ui/src/radio/Radio.test.js +0 -47
- package/lib/ui/src/radio/Radio.test.js.map +0 -1
- package/lib/ui/src/select/Select.js +0 -60
- package/lib/ui/src/select/Select.js.map +0 -1
- package/lib/ui/src/select/Select.styles.js +0 -70
- package/lib/ui/src/select/Select.styles.js.map +0 -1
- package/lib/ui/src/select/Select.test.d.ts +0 -1
- package/lib/ui/src/select/Select.test.js +0 -54
- package/lib/ui/src/select/Select.test.js.map +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.js +0 -120
- package/lib/ui/src/selectWrapper/SelectWrapper.js.map +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.stories.d.ts +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.stories.js +0 -146
- package/lib/ui/src/selectWrapper/SelectWrapper.stories.js.map +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.js +0 -92
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.js.map +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.test.d.ts +0 -1
- package/lib/ui/src/selectWrapper/SelectWrapper.test.js +0 -101
- package/lib/ui/src/selectWrapper/SelectWrapper.test.js.map +0 -1
- package/lib/ui/src/subtitle/Subtitle.js +0 -8
- package/lib/ui/src/subtitle/Subtitle.js.map +0 -1
- package/lib/ui/src/subtitle/Subtitle.stories.d.ts +0 -1
- package/lib/ui/src/subtitle/Subtitle.stories.js +0 -20
- package/lib/ui/src/subtitle/Subtitle.stories.js.map +0 -1
- package/lib/ui/src/subtitle/Subtitle.styles.js +0 -18
- package/lib/ui/src/subtitle/Subtitle.styles.js.map +0 -1
- package/lib/ui/src/subtitle/Subtitle.test.d.ts +0 -1
- package/lib/ui/src/subtitle/Subtitle.test.js +0 -22
- package/lib/ui/src/subtitle/Subtitle.test.js.map +0 -1
- package/lib/ui/src/tag/Tag.js +0 -17
- package/lib/ui/src/tag/Tag.js.map +0 -1
- package/lib/ui/src/tag/Tag.stories.d.ts +0 -1
- package/lib/ui/src/tag/Tag.stories.js +0 -47
- package/lib/ui/src/tag/Tag.stories.js.map +0 -1
- package/lib/ui/src/tag/Tag.styles.js +0 -142
- package/lib/ui/src/tag/Tag.styles.js.map +0 -1
- package/lib/ui/src/tag/Tag.test.d.ts +0 -1
- package/lib/ui/src/tag/Tag.test.js +0 -65
- package/lib/ui/src/tag/Tag.test.js.map +0 -1
- package/lib/ui/src/tag/TagColors.js +0 -80
- package/lib/ui/src/tag/TagColors.js.map +0 -1
- package/lib/ui/src/tag/interfaces.js +0 -24
- package/lib/ui/src/tag/interfaces.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.js +0 -15
- package/lib/ui/src/textToggle/TextToggle.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.mocks.js +0 -6
- package/lib/ui/src/textToggle/TextToggle.mocks.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.stories.d.ts +0 -1
- package/lib/ui/src/textToggle/TextToggle.stories.js +0 -20
- package/lib/ui/src/textToggle/TextToggle.stories.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.styles.js +0 -73
- package/lib/ui/src/textToggle/TextToggle.styles.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.test.d.ts +0 -1
- package/lib/ui/src/textToggle/TextToggle.test.js +0 -75
- package/lib/ui/src/textToggle/TextToggle.test.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.utils.js +0 -21
- package/lib/ui/src/textToggle/TextToggle.utils.js.map +0 -1
- package/lib/ui/src/textToggle/TextToggle.utils.test.d.ts +0 -1
- package/lib/ui/src/textToggle/TextToggle.utils.test.js +0 -27
- package/lib/ui/src/textToggle/TextToggle.utils.test.js.map +0 -1
- package/lib/ui/src/textarea/Textarea.interfaces.js +0 -3
- package/lib/ui/src/textarea/Textarea.interfaces.js.map +0 -1
- package/lib/ui/src/textarea/Textarea.js +0 -100
- package/lib/ui/src/textarea/Textarea.js.map +0 -1
- package/lib/ui/src/textarea/Textarea.stories.d.ts +0 -1
- package/lib/ui/src/textarea/Textarea.stories.js +0 -64
- package/lib/ui/src/textarea/Textarea.stories.js.map +0 -1
- package/lib/ui/src/textarea/Textarea.styles.js +0 -83
- package/lib/ui/src/textarea/Textarea.styles.js.map +0 -1
- package/lib/ui/src/textarea/Textarea.test.d.ts +0 -1
- package/lib/ui/src/textarea/Textarea.test.js +0 -42
- package/lib/ui/src/textarea/Textarea.test.js.map +0 -1
- package/lib/ui/src/title/H1.js +0 -11
- package/lib/ui/src/title/H1.js.map +0 -1
- package/lib/ui/src/title/H1.styles.js +0 -14
- package/lib/ui/src/title/H1.styles.js.map +0 -1
- package/lib/ui/src/title/H1.test.d.ts +0 -1
- package/lib/ui/src/title/H1.test.js +0 -15
- package/lib/ui/src/title/H1.test.js.map +0 -1
- package/lib/ui/src/title/H2.js +0 -11
- package/lib/ui/src/title/H2.js.map +0 -1
- package/lib/ui/src/title/H2.styles.js +0 -14
- package/lib/ui/src/title/H2.styles.js.map +0 -1
- package/lib/ui/src/title/H2.test.d.ts +0 -1
- package/lib/ui/src/title/H2.test.js +0 -15
- package/lib/ui/src/title/H2.test.js.map +0 -1
- package/lib/ui/src/title/H3.js +0 -11
- package/lib/ui/src/title/H3.js.map +0 -1
- package/lib/ui/src/title/H3.styles.js +0 -14
- package/lib/ui/src/title/H3.styles.js.map +0 -1
- package/lib/ui/src/title/H3.test.d.ts +0 -1
- package/lib/ui/src/title/H3.test.js +0 -15
- package/lib/ui/src/title/H3.test.js.map +0 -1
- package/lib/ui/src/title/H4.js +0 -11
- package/lib/ui/src/title/H4.js.map +0 -1
- package/lib/ui/src/title/H4.styles.js +0 -14
- package/lib/ui/src/title/H4.styles.js.map +0 -1
- package/lib/ui/src/title/H4.test.d.ts +0 -1
- package/lib/ui/src/title/H4.test.js +0 -15
- package/lib/ui/src/title/H4.test.js.map +0 -1
- package/lib/ui/src/title/H5.js +0 -11
- package/lib/ui/src/title/H5.js.map +0 -1
- package/lib/ui/src/title/H5.styles.js +0 -14
- package/lib/ui/src/title/H5.styles.js.map +0 -1
- package/lib/ui/src/title/H5.test.d.ts +0 -1
- package/lib/ui/src/title/H5.test.js +0 -15
- package/lib/ui/src/title/H5.test.js.map +0 -1
- package/lib/ui/src/title/H6.js +0 -11
- package/lib/ui/src/title/H6.js.map +0 -1
- package/lib/ui/src/title/H6.styles.js +0 -14
- package/lib/ui/src/title/H6.styles.js.map +0 -1
- package/lib/ui/src/title/H6.test.d.ts +0 -1
- package/lib/ui/src/title/H6.test.js +0 -15
- package/lib/ui/src/title/H6.test.js.map +0 -1
- package/lib/ui/src/title/Title.interfaces.js +0 -3
- package/lib/ui/src/title/Title.interfaces.js.map +0 -1
- package/lib/ui/src/title/Title.js +0 -18
- package/lib/ui/src/title/Title.js.map +0 -1
- package/lib/ui/src/title/Title.stories.d.ts +0 -1
- package/lib/ui/src/title/Title.stories.js +0 -24
- package/lib/ui/src/title/Title.stories.js.map +0 -1
- package/lib/ui/src/title/Title.styles.js +0 -79
- package/lib/ui/src/title/Title.styles.js.map +0 -1
- package/lib/ui/src/toggle/Toggle.js +0 -14
- package/lib/ui/src/toggle/Toggle.js.map +0 -1
- package/lib/ui/src/toggle/Toggle.stories.d.ts +0 -1
- package/lib/ui/src/toggle/Toggle.stories.js +0 -36
- package/lib/ui/src/toggle/Toggle.stories.js.map +0 -1
- package/lib/ui/src/toggle/Toggle.styles.js +0 -114
- package/lib/ui/src/toggle/Toggle.styles.js.map +0 -1
- package/lib/ui/src/toggle/Toggle.test.d.ts +0 -1
- package/lib/ui/src/toggle/Toggle.test.js +0 -44
- package/lib/ui/src/toggle/Toggle.test.js.map +0 -1
- package/lib/ui/src/tooltip/Tooltip.js +0 -35
- package/lib/ui/src/tooltip/Tooltip.js.map +0 -1
- package/lib/ui/src/tooltip/Tooltip.stories.d.ts +0 -1
- package/lib/ui/src/tooltip/Tooltip.stories.js +0 -68
- package/lib/ui/src/tooltip/Tooltip.stories.js.map +0 -1
- package/lib/ui/src/tooltip/Tooltip.styles.js +0 -62
- package/lib/ui/src/tooltip/Tooltip.styles.js.map +0 -1
- package/lib/ui/src/tooltip/Tooltip.test.d.ts +0 -1
- package/lib/ui/src/tooltip/Tooltip.test.js +0 -42
- package/lib/ui/src/tooltip/Tooltip.test.js.map +0 -1
- package/lib/utils/index.js +0 -43
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/src/actions.js +0 -13
- package/lib/utils/src/actions.js.map +0 -1
- package/lib/utils/src/breakpoints.js +0 -13
- package/lib/utils/src/breakpoints.js.map +0 -1
- package/lib/utils/src/colors.js +0 -37
- package/lib/utils/src/colors.js.map +0 -1
- package/lib/utils/src/colors.test.d.ts +0 -1
- package/lib/utils/src/colors.test.js +0 -12
- package/lib/utils/src/colors.test.js.map +0 -1
- package/lib/utils/src/container.js +0 -29
- package/lib/utils/src/container.js.map +0 -1
- package/lib/utils/src/fonts.js +0 -24
- package/lib/utils/src/fonts.js.map +0 -1
- package/lib/utils/src/gmaps.js +0 -21
- package/lib/utils/src/gmaps.js.map +0 -1
- package/lib/utils/src/gmaps.test.d.ts +0 -1
- package/lib/utils/src/gmaps.test.js +0 -52
- package/lib/utils/src/gmaps.test.js.map +0 -1
- package/lib/utils/src/line.js +0 -15
- package/lib/utils/src/line.js.map +0 -1
- package/lib/utils/src/paragraphs.js +0 -122
- package/lib/utils/src/paragraphs.js.map +0 -1
- package/lib/utils/src/props.js +0 -3
- package/lib/utils/src/props.js.map +0 -1
- package/lib/utils/src/radius.js +0 -13
- package/lib/utils/src/radius.js.map +0 -1
- package/lib/utils/src/reset.js +0 -20
- package/lib/utils/src/reset.js.map +0 -1
- package/lib/utils/src/responsive.js +0 -33
- package/lib/utils/src/responsive.js.map +0 -1
- package/lib/utils/src/row.js +0 -47
- package/lib/utils/src/row.js.map +0 -1
- package/lib/utils/src/scrollbars.js +0 -39
- package/lib/utils/src/scrollbars.js.map +0 -1
- package/lib/utils/src/shadows.js +0 -11
- package/lib/utils/src/shadows.js.map +0 -1
- package/lib/utils/src/spacing.js +0 -7
- package/lib/utils/src/spacing.js.map +0 -1
- package/lib/utils/src/spacing.test.d.ts +0 -1
- package/lib/utils/src/spacing.test.js +0 -15
- package/lib/utils/src/spacing.test.js.map +0 -1
- package/lib/utils/src/test-utils.js +0 -56
- package/lib/utils/src/test-utils.js.map +0 -1
- package/lib/utils/src/utils.stories.d.ts +0 -1
- package/lib/utils/src/utils.stories.js +0 -27
- package/lib/utils/src/utils.stories.js.map +0 -1
- package/lib/utils/src/utils.styles.js +0 -221
- package/lib/utils/src/utils.styles.js.map +0 -1
package/lib/energy/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EnergyLevel = exports.getEPCLevels = exports.getEPCLevel = exports.getConsumptionLevel = exports.getCarbonFootprintLevel = exports.Energy = void 0;
|
|
7
|
-
var Energy_1 = require("./src/Energy");
|
|
8
|
-
Object.defineProperty(exports, "Energy", { enumerable: true, get: function () { return __importDefault(Energy_1).default; } });
|
|
9
|
-
var Energy_utils_1 = require("./src/Energy.utils");
|
|
10
|
-
Object.defineProperty(exports, "getCarbonFootprintLevel", { enumerable: true, get: function () { return Energy_utils_1.getCarbonFootprintLevel; } });
|
|
11
|
-
Object.defineProperty(exports, "getConsumptionLevel", { enumerable: true, get: function () { return Energy_utils_1.getConsumptionLevel; } });
|
|
12
|
-
Object.defineProperty(exports, "getEPCLevel", { enumerable: true, get: function () { return Energy_utils_1.getEPCLevel; } });
|
|
13
|
-
Object.defineProperty(exports, "getEPCLevels", { enumerable: true, get: function () { return Energy_utils_1.getEPCLevels; } });
|
|
14
|
-
var interfaces_1 = require("./src/interfaces");
|
|
15
|
-
Object.defineProperty(exports, "EnergyLevel", { enumerable: true, get: function () { return interfaces_1.EnergyLevel; } });
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
package/lib/energy/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/energy/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAIsB;AAHpB,iHAAA,OAAO,OAAU;AAInB,mDAK4B;AAJ1B,uHAAA,uBAAuB,OAAA;AACvB,mHAAA,mBAAmB,OAAA;AACnB,2GAAA,WAAW,OAAA;AACX,4GAAA,YAAY,OAAA;AAEd,+CAA6D;AAAtC,yGAAA,WAAW,OAAA"}
|
package/lib/energy/src/Energy.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const Energy_styles_1 = require("./Energy.styles");
|
|
5
|
-
const Energy_utils_1 = require("./Energy.utils");
|
|
6
|
-
const interfaces_1 = require("./interfaces");
|
|
7
|
-
const Energy = ({ carbonFootprint, carbonFootprintLevel, consumption, consumptionLevel, EPCLevel, textContent }) => {
|
|
8
|
-
// position of the EPC letter on the background gradient :
|
|
9
|
-
const EPC_LETTER_POS = EPCLevel === 1 ? 0 : (EPCLevel - 1) * Energy_styles_1.ARROW_SIZE + (EPCLevel - 2) * 10;
|
|
10
|
-
const { blankEPC, carbonFootprintLegend, carbonFootprintTitle, carbonFootprintUnit, consumptionLegend, consumptionTitle, consumptionUnit, EPCLegend, EPCTitle } = textContent;
|
|
11
|
-
return carbonFootprint && consumption ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Energy_styles_1.Title, { children: EPCTitle }), (0, jsx_runtime_1.jsxs)(Energy_styles_1.Layout, { "aria-label": EPCTitle, role: "document", children: [(0, jsx_runtime_1.jsx)("div", { "aria-label": EPCLegend, role: "group", tabIndex: 0, children: (0, jsx_runtime_1.jsx)(Energy_styles_1.EPCBackground, { children: (0, jsx_runtime_1.jsx)(Energy_styles_1.LetterWrapper, { background: (0, Energy_utils_1.translateEnergyLevelToColor)(EPCLevel), isMainScore: true, letterSize: Energy_styles_1.ARROW_SIZE, pos: EPC_LETTER_POS, children: interfaces_1.EnergyLevel[EPCLevel] }) }) }), (0, jsx_runtime_1.jsxs)(Energy_styles_1.DetailsWrapper, { children: [(0, jsx_runtime_1.jsxs)(Energy_styles_1.Detail, { "aria-label": consumptionLegend, role: "group", tabIndex: 0, children: [(0, jsx_runtime_1.jsx)(Energy_styles_1.DetailTitle, { children: consumptionTitle }), (0, jsx_runtime_1.jsxs)(Energy_styles_1.ValueWrapper, { children: [(0, jsx_runtime_1.jsx)(Energy_styles_1.DetailsValue, { children: consumption }), (0, jsx_runtime_1.jsx)(Energy_styles_1.LetterWrapper, { background: (0, Energy_utils_1.translateEnergyLevelToColor)(consumptionLevel), children: interfaces_1.EnergyLevel[consumptionLevel] })] }), (0, jsx_runtime_1.jsx)(Energy_styles_1.Unit, { children: consumptionUnit })] }), (0, jsx_runtime_1.jsxs)(Energy_styles_1.Detail, { "aria-label": carbonFootprintLegend, role: "group", tabIndex: 0, children: [(0, jsx_runtime_1.jsx)(Energy_styles_1.DetailTitle, { children: carbonFootprintTitle }), (0, jsx_runtime_1.jsxs)(Energy_styles_1.ValueWrapper, { children: [(0, jsx_runtime_1.jsx)(Energy_styles_1.DetailsValue, { children: carbonFootprint }), (0, jsx_runtime_1.jsx)(Energy_styles_1.LetterWrapper, { background: (0, Energy_utils_1.translateEnergyLevelToCarbonFootprintColor)(carbonFootprintLevel), children: interfaces_1.EnergyLevel[carbonFootprintLevel] })] }), (0, jsx_runtime_1.jsx)(Energy_styles_1.Unit, { children: carbonFootprintUnit })] })] })] })] })) : ((0, jsx_runtime_1.jsx)(Energy_styles_1.BlankEPC, { children: blankEPC }));
|
|
12
|
-
};
|
|
13
|
-
exports.default = Energy;
|
|
14
|
-
//# sourceMappingURL=Energy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Energy.js","sourceRoot":"","sources":["../../../packages/energy/src/Energy.tsx"],"names":[],"mappings":";;;AAEA,mDAayB;AACzB,iDAGwB;AACxB,6CAAyD;AAoBzD,MAAM,MAAM,GAAoB,CAAC,EAC/B,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACZ,EAAE,EAAE;IACH,0DAA0D;IAC1D,MAAM,cAAc,GAClB,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,0BAAU,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IAEzE,MAAM,EACJ,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,EACpB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,mBAAmB,GAAQ,IAC3B,IACM,IACV,IACL,CACP,CAAC,CAAC,CAAC,CACF,uBAAC,wBAAQ,cAAE,QAAQ,GAAY,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("@storybook/react");
|
|
8
|
-
const Energy_1 = __importDefault(require("./Energy"));
|
|
9
|
-
const interfaces_1 = require("./interfaces");
|
|
10
|
-
const defaultProps = {
|
|
11
|
-
carbonFootprint: 6,
|
|
12
|
-
carbonFootprintLevel: interfaces_1.EnergyLevel.B,
|
|
13
|
-
consumption: 120,
|
|
14
|
-
consumptionLevel: interfaces_1.EnergyLevel.C,
|
|
15
|
-
EPCLevel: interfaces_1.EnergyLevel.C,
|
|
16
|
-
textContent: {
|
|
17
|
-
blankEPC: 'Diagnostic de performance énergétique vierge',
|
|
18
|
-
carbonFootprintLegend: 'Émission de gaz à effet de serre : 6 kgeqCO2/m²/an, niveau : B',
|
|
19
|
-
carbonFootprintTitle: 'Émission',
|
|
20
|
-
carbonFootprintUnit: 'kgeqCO2/m²/an',
|
|
21
|
-
consumptionLegend: "Consommation d'électricité : 120 kWhEP/m²/an, niveau : C",
|
|
22
|
-
consumptionTitle: 'Consommation',
|
|
23
|
-
consumptionUnit: 'kWhEP/m²/an',
|
|
24
|
-
EPCLegend: 'Diagnostic de performance énergétique : niveau C',
|
|
25
|
-
EPCTitle: 'Diagnostic de performance énergétique'
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
(0, react_1.storiesOf)('Energy', module)
|
|
29
|
-
.add('EPC', () => (0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps)))
|
|
30
|
-
.add('Blank EPC', () => ((0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps, { carbonFootprint: 0, consumption: 0 }))));
|
|
31
|
-
//# sourceMappingURL=Energy.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Energy.stories.js","sourceRoot":"","sources":["../../../packages/energy/src/Energy.stories.tsx"],"names":[],"mappings":";;;;;;AAEA,4CAA6C;AAE7C,sDAA+C;AAC/C,6CAA2C;AAE3C,MAAM,YAAY,GAAgB;IAChC,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,wBAAW,CAAC,CAAC;IACnC,WAAW,EAAE,GAAG;IAChB,gBAAgB,EAAE,wBAAW,CAAC,CAAC;IAC/B,QAAQ,EAAE,wBAAW,CAAC,CAAC;IACvB,WAAW,EAAE;QACX,QAAQ,EAAE,8CAA8C;QACxD,qBAAqB,EACnB,gEAAgE;QAClE,oBAAoB,EAAE,UAAU;QAChC,mBAAmB,EAAE,eAAe;QACpC,iBAAiB,EACf,0DAA0D;QAC5D,gBAAgB,EAAE,cAAc;QAChC,eAAe,EAAE,aAAa;QAC9B,SAAS,EAAE,kDAAkD;QAC7D,QAAQ,EAAE,uCAAuC;KAClD;CACF,CAAC;AAEF,IAAA,iBAAS,EAAC,QAAQ,EAAE,MAAM,CAAC;KACxB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,uBAAC,gBAAM,oBAAK,YAAY,EAAI,CAAC;KAC9C,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CACtB,uBAAC,gBAAM,oBAAK,YAAY,IAAE,eAAe,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,IAAI,CACjE,CAAC,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Unit = exports.DetailsValue = exports.DetailsWrapper = exports.Detail = exports.ValueWrapper = exports.DetailTitle = exports.LetterWrapper = exports.EPCBackground = exports.BlankEPC = exports.Title = exports.Layout = exports.ARROW_SIZE = void 0;
|
|
27
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
-
const utils_1 = require("../../utils");
|
|
29
|
-
const Energy_utils_1 = require("./Energy.utils");
|
|
30
|
-
const interfaces_1 = require("./interfaces");
|
|
31
|
-
exports.ARROW_SIZE = 25;
|
|
32
|
-
const DETAILS_MARGIN = 24;
|
|
33
|
-
const EPC_BACKGROUND_WIDTH = 250;
|
|
34
|
-
const PDF_DETAILS_MARGIN = 86;
|
|
35
|
-
exports.Layout = styled_components_1.default.div `
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
width: 100%;
|
|
39
|
-
background-color: white;
|
|
40
|
-
|
|
41
|
-
@media print, (min-width: ${utils_1.breakpoints.base}px) {
|
|
42
|
-
flex-direction: row;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
exports.Title = styled_components_1.default.span `
|
|
46
|
-
${utils_1.paragraphs.tab};
|
|
47
|
-
|
|
48
|
-
font-size: ${utils_1.fonts.small};
|
|
49
|
-
`;
|
|
50
|
-
exports.BlankEPC = (0, styled_components_1.default)(exports.Title) `
|
|
51
|
-
display: block;
|
|
52
|
-
text-align: center;
|
|
53
|
-
`;
|
|
54
|
-
exports.EPCBackground = styled_components_1.default.div `
|
|
55
|
-
position: relative;
|
|
56
|
-
margin: ${(0, utils_1.convertPxToRem)(24)} 0;
|
|
57
|
-
width: ${(0, utils_1.convertPxToRem)(EPC_BACKGROUND_WIDTH)};
|
|
58
|
-
height: ${(0, utils_1.convertPxToRem)(25)};
|
|
59
|
-
background: ${() => (0, Energy_utils_1.generateEPCBackground)(interfaces_1.EnergyLevelColor, exports.ARROW_SIZE)};
|
|
60
|
-
|
|
61
|
-
@media print, (min-width: ${utils_1.breakpoints.base}px) {
|
|
62
|
-
margin: ${(0, utils_1.convertPxToRem)(52)} 0 0 0;
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
65
|
-
exports.LetterWrapper = styled_components_1.default.span `
|
|
66
|
-
padding: ${(0, utils_1.convertPxToRem)(6)} ${(0, utils_1.convertPxToRem)(8)};
|
|
67
|
-
border: ${(0, utils_1.convertPxToRem)(2)} solid white;
|
|
68
|
-
border-radius: ${utils_1.radius.normal};
|
|
69
|
-
background-color: ${({ background }) => background};
|
|
70
|
-
color: white;
|
|
71
|
-
font-size: ${utils_1.fonts.smaller};
|
|
72
|
-
|
|
73
|
-
${({ isMainScore, letterSize, pos }) => isMainScore &&
|
|
74
|
-
letterSize &&
|
|
75
|
-
(0, styled_components_1.css) `
|
|
76
|
-
position: absolute;
|
|
77
|
-
top: ${(0, utils_1.convertPxToRem)(-Math.floor(letterSize * 0.5))};
|
|
78
|
-
left: ${(0, utils_1.convertPxToRem)(pos || 0)};
|
|
79
|
-
padding: ${(0, utils_1.convertPxToRem)(Math.floor(letterSize * 0.4))}
|
|
80
|
-
${(0, utils_1.convertPxToRem)(Math.floor(letterSize * 0.6))};
|
|
81
|
-
text-align: center;
|
|
82
|
-
border-radius: ${utils_1.radius.bigger};
|
|
83
|
-
font-size: ${utils_1.fonts.big};
|
|
84
|
-
`};
|
|
85
|
-
|
|
86
|
-
//dashed line
|
|
87
|
-
@media print, (min-width: ${utils_1.breakpoints.base}px) {
|
|
88
|
-
${({ pos = 0, isMainScore }) => isMainScore &&
|
|
89
|
-
(0, styled_components_1.css) `
|
|
90
|
-
::before {
|
|
91
|
-
content: '';
|
|
92
|
-
position: absolute;
|
|
93
|
-
left: ${(0, utils_1.convertPxToRem)(24)};
|
|
94
|
-
top: ${(0, utils_1.convertPxToRem)(-12)};
|
|
95
|
-
height: ${(0, utils_1.convertPxToRem)(12)};
|
|
96
|
-
width: ${(0, utils_1.convertPxToRem)(EPC_BACKGROUND_WIDTH - pos + DETAILS_MARGIN - 24)};
|
|
97
|
-
border-left: ${(0, utils_1.convertPxToRem)(1)} dashed ${utils_1.colors.dark.base20};
|
|
98
|
-
border-top: ${(0, utils_1.convertPxToRem)(1)} dashed ${utils_1.colors.dark.base20};
|
|
99
|
-
}
|
|
100
|
-
`}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media print {
|
|
104
|
-
${({ pos = 0, isMainScore }) => isMainScore &&
|
|
105
|
-
(0, styled_components_1.css) `
|
|
106
|
-
::before {
|
|
107
|
-
width: ${(0, utils_1.convertPxToRem)(EPC_BACKGROUND_WIDTH - pos + PDF_DETAILS_MARGIN - 24)};
|
|
108
|
-
}
|
|
109
|
-
`}
|
|
110
|
-
}
|
|
111
|
-
`;
|
|
112
|
-
exports.DetailTitle = styled_components_1.default.span `
|
|
113
|
-
${utils_1.paragraphs.tab};
|
|
114
|
-
display: block;
|
|
115
|
-
font-size: ${utils_1.fonts.smallest};
|
|
116
|
-
color: ${utils_1.colors.grey.base};
|
|
117
|
-
text-transform: uppercase;
|
|
118
|
-
`;
|
|
119
|
-
exports.ValueWrapper = styled_components_1.default.span `
|
|
120
|
-
display: flex;
|
|
121
|
-
justify-content: space-between;
|
|
122
|
-
align-items: center;
|
|
123
|
-
padding: ${(0, utils_1.convertPxToRem)(16)} 0;
|
|
124
|
-
`;
|
|
125
|
-
exports.Detail = styled_components_1.default.div `
|
|
126
|
-
min-width: ${(0, utils_1.convertPxToRem)(128)};
|
|
127
|
-
width: 50%;
|
|
128
|
-
padding: 0 ${(0, utils_1.convertPxToRem)(16)} ${(0, utils_1.convertPxToRem)(18)};
|
|
129
|
-
`;
|
|
130
|
-
exports.DetailsWrapper = styled_components_1.default.div `
|
|
131
|
-
display: flex;
|
|
132
|
-
position: relative;
|
|
133
|
-
width: 40%;
|
|
134
|
-
max-width: ${(0, utils_1.convertPxToRem)(300)};
|
|
135
|
-
|
|
136
|
-
${exports.Detail} + ${exports.Detail} {
|
|
137
|
-
position: relative;
|
|
138
|
-
|
|
139
|
-
::before {
|
|
140
|
-
content: '';
|
|
141
|
-
position: absolute;
|
|
142
|
-
left: 0;
|
|
143
|
-
top: ${(0, utils_1.convertPxToRem)(33)};
|
|
144
|
-
height: ${(0, utils_1.convertPxToRem)(68)};
|
|
145
|
-
border-left: ${(0, utils_1.convertPxToRem)(1)} solid ${utils_1.colors.dark.base20};
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
//card borders
|
|
150
|
-
::before {
|
|
151
|
-
content: '';
|
|
152
|
-
position: absolute;
|
|
153
|
-
left: 0;
|
|
154
|
-
top: ${(0, utils_1.convertPxToRem)(18)};
|
|
155
|
-
min-width: ${(0, utils_1.convertPxToRem)(256)};
|
|
156
|
-
width: 100%;
|
|
157
|
-
max-width: ${(0, utils_1.convertPxToRem)(300)};
|
|
158
|
-
min-height: ${(0, utils_1.convertPxToRem)(100)};
|
|
159
|
-
height: 75%;
|
|
160
|
-
border: ${(0, utils_1.convertPxToRem)(1)} solid ${utils_1.colors.dark.base20};
|
|
161
|
-
border-radius: ${utils_1.radius.biggest};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@media (min-width: ${utils_1.breakpoints.base}px) {
|
|
165
|
-
margin-left: ${(0, utils_1.convertPxToRem)(DETAILS_MARGIN)};
|
|
166
|
-
min-width: ${(0, utils_1.convertPxToRem)(256)};
|
|
167
|
-
width: 50%;
|
|
168
|
-
max-width: ${(0, utils_1.convertPxToRem)(300)};
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@media print {
|
|
172
|
-
margin-left: ${(0, utils_1.convertPxToRem)(PDF_DETAILS_MARGIN)};
|
|
173
|
-
width: ${(0, utils_1.convertPxToRem)(316)};
|
|
174
|
-
|
|
175
|
-
::before {
|
|
176
|
-
max-width: unset;
|
|
177
|
-
width: ${(0, utils_1.convertPxToRem)(316)};
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
`;
|
|
181
|
-
exports.DetailsValue = styled_components_1.default.span `
|
|
182
|
-
font-size: ${(0, utils_1.convertPxToRem)(30)};
|
|
183
|
-
font-weight: bold;
|
|
184
|
-
`;
|
|
185
|
-
exports.Unit = styled_components_1.default.span `
|
|
186
|
-
font-size: ${utils_1.fonts.smaller};
|
|
187
|
-
`;
|
|
188
|
-
//# sourceMappingURL=Energy.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Energy.styles.js","sourceRoot":"","sources":["../../../packages/energy/src/Energy.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAgD;AAEhD,uCAOqB;AACrB,iDAAuD;AACvD,6CAAgD;AAEnC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 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_test_renderer_1 = __importDefault(require("react-test-renderer"));
|
|
8
|
-
const test_utils_1 = require("../../utils/src/test-utils");
|
|
9
|
-
const Energy_1 = __importDefault(require("./Energy"));
|
|
10
|
-
const interfaces_1 = require("./interfaces");
|
|
11
|
-
const defaultProps = {
|
|
12
|
-
carbonFootprint: 6,
|
|
13
|
-
carbonFootprintLevel: interfaces_1.EnergyLevel.B,
|
|
14
|
-
consumption: 120,
|
|
15
|
-
consumptionLevel: interfaces_1.EnergyLevel.C,
|
|
16
|
-
EPCLevel: interfaces_1.EnergyLevel.C,
|
|
17
|
-
textContent: {
|
|
18
|
-
blankEPC: 'Diagnostic de performance énergétique vierge',
|
|
19
|
-
carbonFootprintLegend: 'Émission de gaz à effet de serre : 6 kgeqCO2/m²/an, niveau : B',
|
|
20
|
-
carbonFootprintTitle: 'Émission',
|
|
21
|
-
carbonFootprintUnit: 'kgeqCO2/m²/an',
|
|
22
|
-
consumptionLegend: "Consommation d'électricité : 120 kWhEP/m²/an, niveau : C",
|
|
23
|
-
consumptionTitle: 'Consommation',
|
|
24
|
-
consumptionUnit: 'kWhEP/m²/an',
|
|
25
|
-
EPCLegend: 'Diagnostic de performance énergétique : niveau C',
|
|
26
|
-
EPCTitle: 'Diagnostic de performance énergétique'
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
describe('<Energy/>', () => {
|
|
30
|
-
it('should pass A11y test', () => (0, test_utils_1.testA11y)((0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps))));
|
|
31
|
-
it('should render component', () => {
|
|
32
|
-
const tree = react_test_renderer_1.default.create((0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps))).toJSON();
|
|
33
|
-
expect(tree).toMatchSnapshot();
|
|
34
|
-
});
|
|
35
|
-
it('should render blank EPC - no carbon footprint', () => {
|
|
36
|
-
const tree = react_test_renderer_1.default
|
|
37
|
-
.create((0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps, { carbonFootprint: 0, consumption: 185 })))
|
|
38
|
-
.toJSON();
|
|
39
|
-
expect(tree).toMatchSnapshot();
|
|
40
|
-
});
|
|
41
|
-
it('should render blank EPC - no consumption', () => {
|
|
42
|
-
const tree = react_test_renderer_1.default
|
|
43
|
-
.create((0, jsx_runtime_1.jsx)(Energy_1.default, Object.assign({}, defaultProps, { carbonFootprint: 30, consumption: 0 })))
|
|
44
|
-
.toJSON();
|
|
45
|
-
expect(tree).toMatchSnapshot();
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=Energy.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Energy.test.js","sourceRoot":"","sources":["../../../packages/energy/src/Energy.test.tsx"],"names":[],"mappings":";;;;;;AACA,8EAA2C;AAE3C,2DAAsD;AACtD,sDAA+C;AAC/C,6CAA2C;AAE3C,MAAM,YAAY,GAAgB;IAChC,eAAe,EAAE,CAAC;IAClB,oBAAoB,EAAE,wBAAW,CAAC,CAAC;IACnC,WAAW,EAAE,GAAG;IAChB,gBAAgB,EAAE,wBAAW,CAAC,CAAC;IAC/B,QAAQ,EAAE,wBAAW,CAAC,CAAC;IACvB,WAAW,EAAE;QACX,QAAQ,EAAE,8CAA8C;QACxD,qBAAqB,EACnB,gEAAgE;QAClE,oBAAoB,EAAE,UAAU;QAChC,mBAAmB,EAAE,eAAe;QACpC,iBAAiB,EACf,0DAA0D;QAC5D,gBAAgB,EAAE,cAAc;QAChC,eAAe,EAAE,aAAa;QAC9B,SAAS,EAAE,kDAAkD;QAC7D,QAAQ,EAAE,uCAAuC;KAClD;CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE,CAAC,IAAA,qBAAQ,EAAC,uBAAC,gBAAM,oBAAK,YAAY,EAAI,CAAC,CAAC,CAAC;IAE1E,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,IAAI,GAAG,6BAAQ,CAAC,MAAM,CAAC,uBAAC,gBAAM,oBAAK,YAAY,EAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAEpE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,IAAI,GAAG,6BAAQ;aAClB,MAAM,CACL,uBAAC,gBAAM,oBAAK,YAAY,IAAE,eAAe,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CACnE;aACA,MAAM,EAAE,CAAC;QAEZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,IAAI,GAAG,6BAAQ;aAClB,MAAM,CAAC,uBAAC,gBAAM,oBAAK,YAAY,IAAE,eAAe,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC;aACzE,MAAM,EAAE,CAAC;QAEZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.generateEPCBackground = exports.generateLinearGradient = exports.getEPCLevels = exports.getEPCLevel = exports.getCarbonFootprintLevel = exports.getConsumptionLevel = exports.translateEnergyLevelToCarbonFootprintColor = exports.translateEnergyLevelToColor = exports.RULES_UPDATE_DATE = void 0;
|
|
7
|
-
const isBefore_1 = __importDefault(require("date-fns/isBefore"));
|
|
8
|
-
const interfaces_1 = require("./interfaces");
|
|
9
|
-
exports.RULES_UPDATE_DATE = new Date('07/01/2021');
|
|
10
|
-
const translateEnergyLevelToColor = (level) => {
|
|
11
|
-
switch (level) {
|
|
12
|
-
case interfaces_1.EnergyLevel.A:
|
|
13
|
-
return interfaces_1.EnergyLevelColor.A;
|
|
14
|
-
case interfaces_1.EnergyLevel.B:
|
|
15
|
-
return interfaces_1.EnergyLevelColor.B;
|
|
16
|
-
case interfaces_1.EnergyLevel.C:
|
|
17
|
-
return interfaces_1.EnergyLevelColor.C;
|
|
18
|
-
case interfaces_1.EnergyLevel.D:
|
|
19
|
-
return interfaces_1.EnergyLevelColor.D;
|
|
20
|
-
case interfaces_1.EnergyLevel.E:
|
|
21
|
-
return interfaces_1.EnergyLevelColor.E;
|
|
22
|
-
case interfaces_1.EnergyLevel.F:
|
|
23
|
-
return interfaces_1.EnergyLevelColor.F;
|
|
24
|
-
default:
|
|
25
|
-
return interfaces_1.EnergyLevelColor.G;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.translateEnergyLevelToColor = translateEnergyLevelToColor;
|
|
29
|
-
const translateEnergyLevelToCarbonFootprintColor = (level) => {
|
|
30
|
-
switch (level) {
|
|
31
|
-
case interfaces_1.EnergyLevel.A:
|
|
32
|
-
return interfaces_1.CarbonFootprintLevelColor.A;
|
|
33
|
-
case interfaces_1.EnergyLevel.B:
|
|
34
|
-
return interfaces_1.CarbonFootprintLevelColor.B;
|
|
35
|
-
case interfaces_1.EnergyLevel.C:
|
|
36
|
-
return interfaces_1.CarbonFootprintLevelColor.C;
|
|
37
|
-
case interfaces_1.EnergyLevel.D:
|
|
38
|
-
return interfaces_1.CarbonFootprintLevelColor.D;
|
|
39
|
-
case interfaces_1.EnergyLevel.E:
|
|
40
|
-
return interfaces_1.CarbonFootprintLevelColor.E;
|
|
41
|
-
case interfaces_1.EnergyLevel.F:
|
|
42
|
-
return interfaces_1.CarbonFootprintLevelColor.F;
|
|
43
|
-
default:
|
|
44
|
-
return interfaces_1.CarbonFootprintLevelColor.G;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.translateEnergyLevelToCarbonFootprintColor = translateEnergyLevelToCarbonFootprintColor;
|
|
48
|
-
const getConsumptionLevel = (consumption, diagnosticDate) => {
|
|
49
|
-
if ((0, isBefore_1.default)(diagnosticDate, exports.RULES_UPDATE_DATE)) {
|
|
50
|
-
if (consumption <= 50) {
|
|
51
|
-
return interfaces_1.EnergyLevel.A;
|
|
52
|
-
}
|
|
53
|
-
else if (consumption < 91) {
|
|
54
|
-
return interfaces_1.EnergyLevel.B;
|
|
55
|
-
}
|
|
56
|
-
else if (consumption < 151) {
|
|
57
|
-
return interfaces_1.EnergyLevel.C;
|
|
58
|
-
}
|
|
59
|
-
else if (consumption < 231) {
|
|
60
|
-
return interfaces_1.EnergyLevel.D;
|
|
61
|
-
}
|
|
62
|
-
else if (consumption < 331) {
|
|
63
|
-
return interfaces_1.EnergyLevel.E;
|
|
64
|
-
}
|
|
65
|
-
else if (consumption < 451) {
|
|
66
|
-
return interfaces_1.EnergyLevel.F;
|
|
67
|
-
}
|
|
68
|
-
return interfaces_1.EnergyLevel.G;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
if (consumption < 70) {
|
|
72
|
-
return interfaces_1.EnergyLevel.A;
|
|
73
|
-
}
|
|
74
|
-
else if (consumption <= 110) {
|
|
75
|
-
return interfaces_1.EnergyLevel.B;
|
|
76
|
-
}
|
|
77
|
-
else if (consumption <= 180) {
|
|
78
|
-
return interfaces_1.EnergyLevel.C;
|
|
79
|
-
}
|
|
80
|
-
else if (consumption <= 250) {
|
|
81
|
-
return interfaces_1.EnergyLevel.D;
|
|
82
|
-
}
|
|
83
|
-
else if (consumption <= 330) {
|
|
84
|
-
return interfaces_1.EnergyLevel.E;
|
|
85
|
-
}
|
|
86
|
-
else if (consumption <= 420) {
|
|
87
|
-
return interfaces_1.EnergyLevel.F;
|
|
88
|
-
}
|
|
89
|
-
return interfaces_1.EnergyLevel.G;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
exports.getConsumptionLevel = getConsumptionLevel;
|
|
93
|
-
const getCarbonFootprintLevel = (carbonFootprint, diagnosticDate) => {
|
|
94
|
-
if ((0, isBefore_1.default)(diagnosticDate, exports.RULES_UPDATE_DATE)) {
|
|
95
|
-
if (carbonFootprint < 6) {
|
|
96
|
-
return interfaces_1.EnergyLevel.A;
|
|
97
|
-
}
|
|
98
|
-
else if (carbonFootprint <= 10) {
|
|
99
|
-
return interfaces_1.EnergyLevel.B;
|
|
100
|
-
}
|
|
101
|
-
else if (carbonFootprint <= 20) {
|
|
102
|
-
return interfaces_1.EnergyLevel.C;
|
|
103
|
-
}
|
|
104
|
-
else if (carbonFootprint <= 35) {
|
|
105
|
-
return interfaces_1.EnergyLevel.D;
|
|
106
|
-
}
|
|
107
|
-
else if (carbonFootprint <= 55) {
|
|
108
|
-
return interfaces_1.EnergyLevel.E;
|
|
109
|
-
}
|
|
110
|
-
else if (carbonFootprint < 80) {
|
|
111
|
-
return interfaces_1.EnergyLevel.F;
|
|
112
|
-
}
|
|
113
|
-
return interfaces_1.EnergyLevel.G;
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
if (carbonFootprint < 6) {
|
|
117
|
-
return interfaces_1.EnergyLevel.A;
|
|
118
|
-
}
|
|
119
|
-
else if (carbonFootprint <= 11) {
|
|
120
|
-
return interfaces_1.EnergyLevel.B;
|
|
121
|
-
}
|
|
122
|
-
else if (carbonFootprint <= 30) {
|
|
123
|
-
return interfaces_1.EnergyLevel.C;
|
|
124
|
-
}
|
|
125
|
-
else if (carbonFootprint <= 50) {
|
|
126
|
-
return interfaces_1.EnergyLevel.D;
|
|
127
|
-
}
|
|
128
|
-
else if (carbonFootprint <= 70) {
|
|
129
|
-
return interfaces_1.EnergyLevel.E;
|
|
130
|
-
}
|
|
131
|
-
else if (carbonFootprint <= 100) {
|
|
132
|
-
return interfaces_1.EnergyLevel.F;
|
|
133
|
-
}
|
|
134
|
-
return interfaces_1.EnergyLevel.G;
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
exports.getCarbonFootprintLevel = getCarbonFootprintLevel;
|
|
138
|
-
const getEPCLevel = (consumptionLevel, carbonFootprintLevel, diagnosticDate) => {
|
|
139
|
-
if ((0, isBefore_1.default)(diagnosticDate, exports.RULES_UPDATE_DATE)) {
|
|
140
|
-
return consumptionLevel;
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
if (consumptionLevel > carbonFootprintLevel) {
|
|
144
|
-
return consumptionLevel;
|
|
145
|
-
}
|
|
146
|
-
return carbonFootprintLevel;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
exports.getEPCLevel = getEPCLevel;
|
|
150
|
-
const getEPCLevels = (carbonFootprint, consumption, diagnosticDate) => {
|
|
151
|
-
const consumptionLevel = (0, exports.getConsumptionLevel)(consumption, diagnosticDate);
|
|
152
|
-
const carbonFootprintLevel = (0, exports.getCarbonFootprintLevel)(carbonFootprint, diagnosticDate);
|
|
153
|
-
const EPCLevel = (0, exports.getEPCLevel)(consumptionLevel, carbonFootprintLevel, diagnosticDate);
|
|
154
|
-
return { consumptionLevel, carbonFootprintLevel, EPCLevel };
|
|
155
|
-
};
|
|
156
|
-
exports.getEPCLevels = getEPCLevels;
|
|
157
|
-
const generateLinearGradient = (color, start, end, isArrow = false) => `linear-gradient(${isArrow ? 45 : 135}deg, transparent 0px, transparent ${start}px, ${color} ${start}px, ${color} ${end}px, transparent ${end}px)`;
|
|
158
|
-
exports.generateLinearGradient = generateLinearGradient;
|
|
159
|
-
const generateEPCBackground = (colorList, colorSize) => {
|
|
160
|
-
/*
|
|
161
|
-
CodePen example with generated EPC background :
|
|
162
|
-
https://codepen.io/mema17/pen/QWMjyqm?editors=1100
|
|
163
|
-
*/
|
|
164
|
-
const colors = Object.values(colorList);
|
|
165
|
-
const gradientList = colors.reduce((gradients, color) => {
|
|
166
|
-
const colorNumber = colors.indexOf(color);
|
|
167
|
-
const firstColorSize = Math.floor(colorSize * 1.4);
|
|
168
|
-
const colorStart = firstColorSize + (colorNumber - 1) * colorSize;
|
|
169
|
-
const colorEnd = colorStart + colorSize;
|
|
170
|
-
const defautlColorGradient = (0, exports.generateLinearGradient)(color, colorStart, colorEnd);
|
|
171
|
-
if (colorNumber === 0) {
|
|
172
|
-
const colorGradient = (0, exports.generateLinearGradient)(color, 0, firstColorSize);
|
|
173
|
-
gradients.unshift(colorGradient);
|
|
174
|
-
}
|
|
175
|
-
if (colorNumber === colors.length - 1) {
|
|
176
|
-
const lastStart = firstColorSize + colorNumber * colorSize;
|
|
177
|
-
const lastStop = lastStart + colorSize;
|
|
178
|
-
const arrowGradient = (0, exports.generateLinearGradient)(color, colorStart, firstColorSize + (colorNumber - 1) * colorSize + colorSize, true);
|
|
179
|
-
const lastArrow = (0, exports.generateLinearGradient)('white', lastStart, lastStop, true);
|
|
180
|
-
const lastColor = (0, exports.generateLinearGradient)('white', lastStart, lastStop);
|
|
181
|
-
gradients.unshift(lastArrow, lastColor, arrowGradient, defautlColorGradient);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
const arrowGradient = (0, exports.generateLinearGradient)(color, colorStart, colorEnd, true);
|
|
185
|
-
gradients.unshift(arrowGradient, defautlColorGradient);
|
|
186
|
-
}
|
|
187
|
-
return gradients;
|
|
188
|
-
}, []);
|
|
189
|
-
return gradientList.join(',');
|
|
190
|
-
};
|
|
191
|
-
exports.generateEPCBackground = generateEPCBackground;
|
|
192
|
-
//# sourceMappingURL=Energy.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1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