@decisiv/ui-components 2.0.1-alpha.21 → 2.0.1-alpha.211
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/lib/atoms/BaseButton/index.d.ts.map +1 -1
- package/lib/atoms/BaseButton/index.js +1 -1
- package/lib/atoms/BooleanInput/elements.d.ts.map +1 -1
- package/lib/atoms/BooleanInput/elements.js +8 -3
- package/lib/atoms/BooleanInput/index.d.ts.map +1 -1
- package/lib/atoms/BooleanInput/index.js +26 -5
- package/lib/atoms/BooleanInput/index.test.js +17 -6
- package/lib/atoms/BooleanInput/types.d.ts +4 -0
- package/lib/atoms/BooleanInput/types.d.ts.map +1 -1
- package/lib/atoms/BooleanInput/types.js +5 -1
- package/lib/atoms/Calendar/hooks/useCalendar/index.d.ts.map +1 -1
- package/lib/atoms/Calendar/hooks/useCalendar/index.js +2 -1
- package/lib/atoms/Calendar/hooks/useCalendar/index.test.js +5 -6
- package/lib/atoms/Calendar/index.d.ts.map +1 -1
- package/lib/atoms/Calendar/index.js +46 -6
- package/lib/atoms/Calendar/index.test.js +68 -38
- package/lib/atoms/Calendar/types.d.ts +1 -1
- package/lib/atoms/Calendar/types.d.ts.map +1 -1
- package/lib/atoms/Calendar/types.js +5 -1
- package/lib/atoms/InputField/Containers.d.ts +12 -6
- package/lib/atoms/InputField/Containers.d.ts.map +1 -1
- package/lib/atoms/InputField/Containers.js +8 -6
- package/lib/atoms/InputField/HelpMessage.d.ts +1 -1
- package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
- package/lib/atoms/InputField/HelpMessage.js +23 -7
- package/lib/atoms/InputField/InputLabel.d.ts +1 -0
- package/lib/atoms/InputField/InputLabel.d.ts.map +1 -1
- package/lib/atoms/InputField/InputLabel.js +2 -1
- package/lib/atoms/InputField/index.d.ts +8 -1
- package/lib/atoms/InputField/index.d.ts.map +1 -1
- package/lib/atoms/InputField/index.js +33 -9
- package/lib/atoms/InputField/index.test.js +144 -0
- package/lib/atoms/InputField/schema.d.ts.map +1 -1
- package/lib/atoms/InputField/schema.js +3 -2
- package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
- package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
- package/lib/atoms/OptionsList/{Category.js → Category/index.js} +13 -21
- package/lib/atoms/OptionsList/Category/styles.d.ts +6 -0
- package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Category/styles.js +36 -0
- package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
- package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Option/index.js +172 -0
- package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
- package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Option/styles.js +86 -0
- package/lib/atoms/OptionsList/context.d.ts +1 -0
- package/lib/atoms/OptionsList/context.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.js +20 -9
- package/lib/atoms/OptionsList/index.test.js +249 -156
- package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
- package/lib/atoms/OptionsList/schema.js +4 -1
- package/lib/atoms/OptionsList/types.d.ts +25 -0
- package/lib/atoms/OptionsList/types.d.ts.map +1 -1
- package/lib/atoms/OptionsList/types.js +5 -1
- package/lib/atoms/RequiredIcon.d.ts +9 -0
- package/lib/atoms/RequiredIcon.d.ts.map +1 -0
- package/lib/atoms/{InputField/RequiredIcon.js → RequiredIcon.js} +7 -3
- package/lib/components/Accordion/types.js +5 -1
- package/lib/components/Accordion/useAccordion/types.js +5 -1
- package/lib/components/Alert/Container.d.ts +201 -0
- package/lib/components/Alert/Container.d.ts.map +1 -0
- package/lib/components/Alert/Container.js +26 -0
- package/lib/components/Alert/StyledButton.d.ts +5 -0
- package/lib/components/Alert/StyledButton.d.ts.map +1 -0
- package/lib/components/Alert/StyledButton.js +23 -0
- package/lib/components/Alert/index.d.ts +27 -0
- package/lib/components/Alert/index.d.ts.map +1 -0
- package/lib/components/Alert/index.js +112 -0
- package/lib/components/Alert/index.test.js +79 -0
- package/lib/components/Alert/intents.d.ts +13 -0
- package/lib/components/Alert/intents.d.ts.map +1 -0
- package/lib/components/Alert/intents.js +72 -0
- package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
- package/lib/components/Alert/schema.d.ts.map +1 -0
- package/lib/components/Alert/schema.js +25 -0
- package/lib/components/Alert/types.d.ts +36 -0
- package/lib/components/Alert/types.d.ts.map +1 -0
- package/lib/components/Alert/types.js +32 -0
- package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
- package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
- package/lib/components/Avatar/AvatarContainer.js +12 -13
- package/lib/components/Avatar/AvatarContent.d.ts +2 -2
- package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
- package/lib/components/Avatar/AvatarContent.js +24 -20
- package/lib/components/Avatar/index.d.ts.map +1 -1
- package/lib/components/Avatar/index.js +39 -5
- package/lib/components/Avatar/index.test.js +4 -0
- package/lib/components/Avatar/schema.d.ts.map +1 -1
- package/lib/components/Avatar/schema.js +3 -1
- package/lib/components/Avatar/types.d.ts +15 -2
- package/lib/components/Avatar/types.d.ts.map +1 -1
- package/lib/components/Avatar/types.js +5 -1
- package/lib/components/Badge/constants.d.ts +2 -0
- package/lib/components/Badge/constants.d.ts.map +1 -0
- package/lib/components/Badge/constants.js +29 -0
- package/lib/components/Badge/index.d.ts.map +1 -1
- package/lib/components/Badge/index.js +3 -70
- package/lib/components/Badge/index.test.js +62 -8
- package/lib/components/Badge/schema.d.ts.map +1 -1
- package/lib/components/Badge/schema.js +2 -1
- package/lib/components/Badge/styles.d.ts +3 -0
- package/lib/components/Badge/styles.d.ts.map +1 -0
- package/lib/components/Badge/styles.js +96 -0
- package/lib/components/Badge/types.d.ts +3 -2
- package/lib/components/Badge/types.d.ts.map +1 -1
- package/lib/components/Badge/types.js +7 -3
- package/lib/components/Breadcrumbs/types.js +5 -1
- package/lib/components/Button/StyledButton.d.ts +3 -6
- package/lib/components/Button/StyledButton.d.ts.map +1 -1
- package/lib/components/Button/StyledButton.js +39 -11
- package/lib/components/Button/index.d.ts.map +1 -1
- package/lib/components/Button/index.js +51 -12
- package/lib/components/Button/index.test.js +43 -8
- package/lib/components/Button/schema.d.ts.map +1 -1
- package/lib/components/Button/schema.js +4 -1
- package/lib/components/Button/types.d.ts +4 -1
- package/lib/components/Button/types.d.ts.map +1 -1
- package/lib/components/Button/types.js +5 -1
- package/lib/components/Checkbox/index.d.ts.map +1 -1
- package/lib/components/Checkbox/index.js +3 -1
- package/lib/components/Checkbox/schema.d.ts.map +1 -1
- package/lib/components/Checkbox/schema.js +2 -0
- package/lib/components/CheckboxGroup/index.d.ts +1 -1
- package/lib/components/Combobox/Target.d.ts.map +1 -1
- package/lib/components/Combobox/Target.js +52 -14
- package/lib/components/Combobox/index.d.ts.map +1 -1
- package/lib/components/Combobox/index.js +231 -89
- package/lib/components/Combobox/index.test.js +425 -147
- package/lib/components/Combobox/schema.d.ts.map +1 -1
- package/lib/components/Combobox/schema.js +13 -3
- package/lib/components/Combobox/types.d.ts +13 -3
- package/lib/components/Combobox/types.d.ts.map +1 -1
- package/lib/components/Combobox/types.js +5 -1
- package/lib/components/Drawer/index.d.ts +22 -0
- package/lib/components/Drawer/index.d.ts.map +1 -0
- package/lib/components/Drawer/index.js +115 -0
- package/lib/components/Drawer/index.test.js +139 -0
- package/lib/components/Drawer/schema.d.ts +3 -0
- package/lib/components/Drawer/schema.d.ts.map +1 -0
- package/lib/components/Drawer/schema.js +32 -0
- package/lib/components/Drawer/styles.d.ts +11 -0
- package/lib/components/Drawer/styles.d.ts.map +1 -0
- package/lib/components/Drawer/styles.js +79 -0
- package/lib/components/DropdownList/index.d.ts +1 -0
- package/lib/components/DropdownList/index.d.ts.map +1 -1
- package/lib/components/DropdownList/index.js +70 -22
- package/lib/components/DropdownList/index.test.js +47 -15
- package/lib/components/DropdownList/propTypes.d.ts +4 -0
- package/lib/components/DropdownList/propTypes.d.ts.map +1 -0
- package/lib/components/DropdownList/propTypes.js +42 -0
- package/lib/components/DropdownList/schema.d.ts.map +1 -1
- package/lib/components/DropdownList/schema.js +2 -1
- package/lib/components/DropdownList/types.d.ts +2 -0
- package/lib/components/DropdownList/types.d.ts.map +1 -1
- package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
- package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
- package/lib/components/Filter/ActionFilter/index.js +43 -0
- package/lib/components/Filter/IconWrapper/index.d.ts +197 -0
- package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -0
- package/lib/components/Filter/IconWrapper/index.js +35 -0
- package/lib/components/Filter/SimplePrimary/index.d.ts +5 -0
- package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
- package/lib/components/Filter/SimplePrimary/index.js +46 -0
- package/lib/components/Filter/SimplePrimary/index.test.js +34 -0
- package/lib/components/Filter/StyledFilter.d.ts +4 -0
- package/lib/components/Filter/StyledFilter.d.ts.map +1 -0
- package/lib/components/Filter/StyledFilter.js +66 -0
- package/lib/components/Filter/StyledLabel/index.d.ts +8 -0
- package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -0
- package/lib/components/Filter/StyledLabel/index.js +38 -0
- package/lib/components/Filter/index.d.ts +6 -0
- package/lib/components/Filter/index.d.ts.map +1 -0
- package/lib/components/Filter/index.js +107 -0
- package/lib/components/Filter/index.test.js +70 -0
- package/lib/components/Filter/kind.d.ts +7 -0
- package/lib/components/Filter/kind.d.ts.map +1 -0
- package/lib/components/Filter/kind.js +43 -0
- package/lib/components/Filter/schema.d.ts +9 -0
- package/lib/components/Filter/schema.d.ts.map +1 -0
- package/lib/components/Filter/schema.js +37 -0
- package/lib/components/Filter/types.d.ts +31 -0
- package/lib/components/Filter/types.d.ts.map +1 -0
- package/lib/components/Filter/types.js +5 -0
- package/lib/components/JumpTo/JumpToMenu.d.ts +2 -2
- package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
- package/lib/components/JumpTo/JumpToMenu.js +53 -12
- package/lib/components/JumpTo/index.test.js +84 -0
- package/lib/components/JumpTo/schema.d.ts.map +1 -1
- package/lib/components/JumpTo/schema.js +2 -1
- package/lib/components/JumpTo/types.d.ts +1 -0
- package/lib/components/JumpTo/types.d.ts.map +1 -1
- package/lib/components/JumpTo/types.js +5 -1
- package/lib/components/JumpTo/utils.d.ts.map +1 -1
- package/lib/components/JumpTo/utils.js +3 -7
- package/lib/components/LeftNav/Item/ClickArea.js +1 -1
- package/lib/components/LeftNav/Item/ItemWrapper.d.ts.map +1 -1
- package/lib/components/LeftNav/Item/ItemWrapper.js +3 -1
- package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts +7 -0
- package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts.map +1 -0
- package/lib/components/LeftNav/Item/MenuItemWrapper.js +20 -0
- package/lib/components/LeftNav/Item/NavCollapsedXItem/index.d.ts.map +1 -1
- package/lib/components/LeftNav/Item/NavCollapsedXItem/index.js +7 -5
- package/lib/components/LeftNav/Item/NavExpandedItem/index.d.ts.map +1 -1
- package/lib/components/LeftNav/Item/NavExpandedItem/index.js +24 -13
- package/lib/components/LeftNav/Item/types.d.ts +1 -1
- package/lib/components/LeftNav/Item/types.d.ts.map +1 -1
- package/lib/components/LeftNav/Item/types.js +5 -1
- package/lib/components/LeftNav/index.test.js +13 -3
- package/lib/components/LeftNav/schema.d.ts.map +1 -1
- package/lib/components/LeftNav/schema.js +2 -0
- package/lib/components/LeftNav/types.d.ts +1 -0
- package/lib/components/LeftNav/types.d.ts.map +1 -1
- package/lib/components/LeftNav/types.js +5 -1
- package/lib/components/Link/DisabledLink.d.ts +7 -0
- package/lib/components/Link/DisabledLink.d.ts.map +1 -0
- package/lib/components/Link/DisabledLink.js +46 -0
- package/lib/components/Link/Link.d.ts +4 -0
- package/lib/components/Link/Link.d.ts.map +1 -0
- package/lib/components/Link/Link.js +67 -0
- package/lib/components/Link/index.d.ts +4 -23
- package/lib/components/Link/index.d.ts.map +1 -1
- package/lib/components/Link/index.js +20 -158
- package/lib/components/Link/index.test.js +63 -42
- package/lib/components/Link/schema.d.ts.map +1 -1
- package/lib/components/Link/schema.js +2 -1
- package/lib/components/Link/styles.d.ts +20 -0
- package/lib/components/Link/styles.d.ts.map +1 -0
- package/lib/components/Link/styles.js +131 -0
- package/lib/components/Link/types.d.ts +28 -0
- package/lib/components/Link/types.d.ts.map +1 -0
- package/lib/components/Link/types.js +5 -0
- package/lib/components/List/BaseCell/index.d.ts +6 -0
- package/lib/components/List/BaseCell/index.d.ts.map +1 -0
- package/lib/components/List/BaseCell/index.js +17 -0
- package/lib/components/List/BaseCell/index.test.js +33 -0
- package/lib/components/List/BaseCell/styles.d.ts +198 -0
- package/lib/components/List/BaseCell/styles.d.ts.map +1 -0
- package/lib/components/List/BaseCell/styles.js +26 -0
- package/lib/components/List/ContentContainer/index.d.ts +21 -0
- package/lib/components/List/ContentContainer/index.d.ts.map +1 -0
- package/lib/components/List/ContentContainer/index.js +82 -0
- package/lib/components/List/ContentContainer/index.test.js +102 -0
- package/lib/components/List/DefaultCell/index.d.ts +6 -0
- package/lib/components/List/DefaultCell/index.d.ts.map +1 -0
- package/lib/components/List/DefaultCell/index.js +26 -0
- package/lib/components/List/EditableCell/index.d.ts +13 -0
- package/lib/components/List/EditableCell/index.d.ts.map +1 -0
- package/lib/components/List/EditableCell/index.js +47 -0
- package/lib/components/List/EditableCell/styles.d.ts +204 -0
- package/lib/components/List/EditableCell/styles.d.ts.map +1 -0
- package/lib/components/List/EditableCell/styles.js +47 -0
- package/lib/components/List/LabelContainer/index.d.ts +9 -0
- package/lib/components/List/LabelContainer/index.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/index.js +38 -0
- package/lib/components/List/LabelContainer/index.test.js +105 -0
- package/lib/components/List/LabelContainer/styles.d.ts +4 -0
- package/lib/components/List/LabelContainer/styles.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/styles.js +28 -0
- package/lib/components/List/ListItem/index.d.ts +8 -0
- package/lib/components/List/ListItem/index.d.ts.map +1 -0
- package/lib/components/List/ListItem/index.js +43 -0
- package/lib/components/List/ListItem/index.test.js +76 -0
- package/lib/components/List/ListItem/schema.d.ts +4 -0
- package/lib/components/List/ListItem/schema.d.ts.map +1 -0
- package/lib/components/List/ListItem/schema.js +30 -0
- package/lib/components/List/ListItem/styles.d.ts +2 -0
- package/lib/components/List/ListItem/styles.d.ts.map +1 -0
- package/lib/components/List/ListItem/styles.js +23 -0
- package/lib/components/List/constants.d.ts +19 -0
- package/lib/components/List/constants.d.ts.map +1 -0
- package/lib/components/List/constants.js +28 -0
- package/lib/components/List/index.d.ts +15 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +67 -0
- package/lib/components/List/index.test.js +64 -0
- package/lib/components/List/schema.d.ts +4 -0
- package/lib/components/List/schema.d.ts.map +1 -0
- package/lib/components/List/schema.js +26 -0
- package/lib/components/List/styles.d.ts +198 -0
- package/lib/components/List/styles.d.ts.map +1 -0
- package/lib/components/List/styles.js +34 -0
- package/lib/components/List/types.d.ts +15 -0
- package/lib/components/List/types.d.ts.map +1 -0
- package/lib/components/List/types.js +5 -0
- package/lib/components/Loading/Loading.d.ts +12 -0
- package/lib/components/Loading/Loading.d.ts.map +1 -0
- package/lib/components/Loading/Loading.js +70 -0
- package/lib/components/Loading/index.d.ts +4 -0
- package/lib/components/Loading/index.d.ts.map +1 -0
- package/lib/components/Loading/index.js +33 -0
- package/lib/components/Loading/index.test.js +55 -0
- package/lib/components/Loading/schema.d.ts +4 -0
- package/lib/components/Loading/schema.d.ts.map +1 -0
- package/lib/components/Loading/schema.js +31 -0
- package/lib/components/Loading/styles.d.ts +211 -0
- package/lib/components/Loading/styles.d.ts.map +1 -0
- package/lib/components/Loading/styles.js +77 -0
- package/lib/components/Loading/types.d.ts +10 -0
- package/lib/components/Loading/types.d.ts.map +1 -0
- package/lib/components/Loading/types.js +5 -0
- package/lib/components/Menu/types.js +5 -1
- package/lib/components/Modal/Manager.d.ts +6 -0
- package/lib/components/Modal/Manager.d.ts.map +1 -0
- package/lib/components/Modal/Manager.js +53 -0
- package/lib/components/Modal/ResponsiveModalWrapper.d.ts +11 -0
- package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
- package/lib/components/Modal/ResponsiveModalWrapper.js +82 -0
- package/lib/components/Modal/components.d.ts +201 -3
- package/lib/components/Modal/components.d.ts.map +1 -1
- package/lib/components/Modal/components.js +16 -24
- package/lib/components/Modal/index.d.ts +8 -4
- package/lib/components/Modal/index.d.ts.map +1 -1
- package/lib/components/Modal/index.js +63 -95
- package/lib/components/Modal/index.test.js +89 -0
- package/lib/components/Modal/schema.d.ts.map +1 -1
- package/lib/components/Modal/schema.js +2 -1
- package/lib/components/Modal/types.d.ts +2 -1
- package/lib/components/Modal/types.d.ts.map +1 -1
- package/lib/components/Modal/types.js +5 -1
- package/lib/components/Modal/utils.d.ts +1 -1
- package/lib/components/Modal/utils.d.ts.map +1 -1
- package/lib/components/Modal/utils.js +7 -5
- package/lib/components/Notifications/Notification/components.d.ts +3 -3
- package/lib/components/Notifications/Notification/components.d.ts.map +1 -1
- package/lib/components/Notifications/Notification/components.js +12 -6
- package/lib/components/Notifications/Notification/index.d.ts +3 -6
- package/lib/components/Notifications/Notification/index.d.ts.map +1 -1
- package/lib/components/Notifications/Notification/index.js +19 -12
- package/lib/components/Notifications/Notification/index.test.js +38 -19
- package/lib/components/Notifications/NotificationsPanel/index.d.ts +2 -1
- package/lib/components/Notifications/NotificationsPanel/index.d.ts.map +1 -1
- package/lib/components/Notifications/NotificationsPanel/index.js +41 -22
- package/lib/components/Notifications/NotificationsPanel/schema.js +1 -1
- package/lib/components/Notifications/Notifier.test.js +79 -10
- package/lib/components/Notifications/constants.d.ts +2 -0
- package/lib/components/Notifications/constants.d.ts.map +1 -0
- package/lib/components/Notifications/constants.js +16 -0
- package/lib/components/Notifications/schema.d.ts.map +1 -1
- package/lib/components/Notifications/schema.js +2 -1
- package/lib/components/Notifications/useNotifications.d.ts +1 -0
- package/lib/components/Notifications/useNotifications.d.ts.map +1 -1
- package/lib/components/Notifications/useNotifications.test.js +7 -4
- package/lib/components/Pagination/Pages.d.ts +1 -7
- package/lib/components/Pagination/Pages.d.ts.map +1 -1
- package/lib/components/Pagination/Pages.js +17 -0
- package/lib/components/Pagination/Pagination.d.ts +13 -14
- package/lib/components/Pagination/Pagination.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.js +20 -5
- package/lib/components/Pagination/Pagination.test.js +14 -0
- package/lib/components/Pagination/paginate.d.ts +1 -1
- package/lib/components/Pagination/paginate.d.ts.map +1 -1
- package/lib/components/Pagination/paginate.js +4 -0
- package/lib/components/Pagination/paginate.test.js +38 -17
- package/lib/components/Pagination/schema.d.ts.map +1 -1
- package/lib/components/Pagination/schema.js +3 -1
- package/lib/components/Pagination/types.d.ts +24 -1
- package/lib/components/Pagination/types.d.ts.map +1 -1
- package/lib/components/Pagination/types.js +5 -1
- package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
- package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
- package/lib/components/PasswordField/IconWrapper.js +32 -0
- package/lib/components/PasswordField/Input.d.ts +6 -0
- package/lib/components/PasswordField/Input.d.ts.map +1 -0
- package/lib/components/PasswordField/Input.js +28 -0
- package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
- package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
- package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
- package/lib/components/PasswordField/index.d.ts +14 -0
- package/lib/components/PasswordField/index.d.ts.map +1 -0
- package/lib/components/PasswordField/index.js +113 -0
- package/lib/components/PasswordField/index.test.js +217 -0
- package/lib/components/PasswordField/schema.d.ts +3 -0
- package/lib/components/PasswordField/schema.d.ts.map +1 -0
- package/lib/components/PasswordField/schema.js +27 -0
- package/lib/components/Popover/Arrow.d.ts +2 -2
- package/lib/components/Popover/index.d.ts.map +1 -1
- package/lib/components/Popover/index.js +19 -8
- package/lib/components/Popover/schema.d.ts.map +1 -1
- package/lib/components/Popover/schema.js +27 -20
- package/lib/components/Popover/types.d.ts +4 -2
- package/lib/components/Popover/types.d.ts.map +1 -1
- package/lib/components/Popover/utils.d.ts +1 -1
- package/lib/components/SearchInput/index.d.ts +11 -0
- package/lib/components/SearchInput/index.d.ts.map +1 -0
- package/lib/components/SearchInput/index.js +176 -0
- package/lib/components/SearchInput/index.test.js +660 -0
- package/lib/components/SearchInput/schema.d.ts +3 -0
- package/lib/components/SearchInput/schema.d.ts.map +1 -0
- package/lib/components/SearchInput/schema.js +37 -0
- package/lib/components/SearchInput/styles.d.ts +1176 -0
- package/lib/components/SearchInput/styles.d.ts.map +1 -0
- package/lib/components/SearchInput/styles.js +97 -0
- package/lib/components/SearchInput/types.d.ts +38 -0
- package/lib/components/SearchInput/types.d.ts.map +1 -0
- package/lib/components/SearchInput/types.js +5 -0
- package/lib/components/Select/Target.d.ts.map +1 -1
- package/lib/components/Select/Target.js +6 -2
- package/lib/components/Select/index.d.ts.map +1 -1
- package/lib/components/Select/index.js +26 -3
- package/lib/components/Select/index.test.js +106 -23
- package/lib/components/Select/schema.d.ts.map +1 -1
- package/lib/components/Select/schema.js +5 -0
- package/lib/components/Select/types.d.ts +6 -3
- package/lib/components/Select/types.d.ts.map +1 -1
- package/lib/components/Select/types.js +5 -1
- package/lib/components/SelectDate/Target.d.ts.map +1 -1
- package/lib/components/SelectDate/Target.js +6 -2
- package/lib/components/SelectDate/index.d.ts.map +1 -1
- package/lib/components/SelectDate/index.js +35 -4
- package/lib/components/SelectDate/index.test.js +108 -51
- package/lib/components/SelectDate/schema.d.ts.map +1 -1
- package/lib/components/SelectDate/schema.js +3 -0
- package/lib/components/SelectDate/types.d.ts +3 -0
- package/lib/components/SelectDate/types.d.ts.map +1 -1
- package/lib/components/SelectDate/types.js +5 -1
- package/lib/components/SelectDateRange/index.d.ts.map +1 -1
- package/lib/components/SelectDateRange/index.js +34 -3
- package/lib/components/SelectDateRange/index.test.js +115 -58
- package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
- package/lib/components/SelectDateRange/schema.js +3 -0
- package/lib/components/SelectDateRange/types.js +5 -1
- package/lib/components/StepTracker/index.d.ts +11 -0
- package/lib/components/StepTracker/index.d.ts.map +1 -0
- package/lib/components/StepTracker/index.js +56 -0
- package/lib/components/StepTracker/index.test.js +89 -0
- package/lib/components/StepTracker/schema.d.ts +3 -0
- package/lib/components/StepTracker/schema.d.ts.map +1 -0
- package/lib/components/StepTracker/schema.js +19 -0
- package/lib/components/StepTracker/styles.d.ts +605 -0
- package/lib/components/StepTracker/styles.d.ts.map +1 -0
- package/lib/components/StepTracker/styles.js +114 -0
- package/lib/components/Table/Body.d.ts.map +1 -1
- package/lib/components/Table/Body.js +28 -17
- package/lib/components/Table/Container.d.ts.map +1 -1
- package/lib/components/Table/Container.js +6 -1
- package/lib/components/Table/DataRow.d.ts.map +1 -1
- package/lib/components/Table/DataRow.js +26 -18
- package/lib/components/Table/Head.d.ts +1 -1
- package/lib/components/Table/Head.d.ts.map +1 -1
- package/lib/components/Table/Head.js +10 -5
- package/lib/components/Table/HeaderCell/index.d.ts.map +1 -1
- package/lib/components/Table/HeaderCell/index.js +19 -6
- package/lib/components/Table/HeaderCell/types.d.ts +6 -1
- package/lib/components/Table/HeaderCell/types.d.ts.map +1 -1
- package/lib/components/Table/HeaderCell/types.js +5 -1
- package/lib/components/Table/Provider.d.ts +5 -5
- package/lib/components/Table/Provider.d.ts.map +1 -1
- package/lib/components/Table/Provider.js +10 -11
- package/lib/components/Table/index.d.ts.map +1 -1
- package/lib/components/Table/index.js +110 -20
- package/lib/components/Table/index.test.js +80 -33
- package/lib/components/Table/schema.columns.d.ts.map +1 -1
- package/lib/components/Table/schema.columns.js +6 -4
- package/lib/components/Table/schema.d.ts.map +1 -1
- package/lib/components/Table/schema.js +7 -6
- package/lib/components/Table/types.d.ts +19 -4
- package/lib/components/Table/types.d.ts.map +1 -1
- package/lib/components/Table/utils.d.ts +2 -8
- package/lib/components/Table/utils.d.ts.map +1 -1
- package/lib/components/Table/utils.js +21 -20
- package/lib/components/Tabs/Tab/index.d.ts +13 -0
- package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/index.js +94 -0
- package/lib/components/Tabs/Tab/schema.d.ts +3 -0
- package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/styles.d.ts +7 -0
- package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/styles.js +37 -0
- package/lib/components/Tabs/context.d.ts +2 -2
- package/lib/components/Tabs/context.d.ts.map +1 -1
- package/lib/components/Tabs/context.js +1 -1
- package/lib/components/Tabs/index.d.ts +17 -6
- package/lib/components/Tabs/index.d.ts.map +1 -1
- package/lib/components/Tabs/index.js +104 -163
- package/lib/components/Tabs/index.test.js +54 -2
- package/lib/components/Tabs/styles.d.ts +4 -0
- package/lib/components/Tabs/styles.d.ts.map +1 -0
- package/lib/components/Tabs/styles.js +35 -0
- package/lib/components/Tag/Action.d.ts +4 -0
- package/lib/components/Tag/Action.d.ts.map +1 -0
- package/lib/components/Tag/Action.js +39 -0
- package/lib/components/Tag/constants.d.ts +2 -2
- package/lib/components/Tag/constants.d.ts.map +1 -1
- package/lib/components/Tag/constants.js +4 -4
- package/lib/components/Tag/index.d.ts +1 -3
- package/lib/components/Tag/index.d.ts.map +1 -1
- package/lib/components/Tag/index.js +40 -97
- package/lib/components/Tag/index.test.js +239 -2
- package/lib/components/Tag/propTypes.d.ts +4 -1
- package/lib/components/Tag/propTypes.d.ts.map +1 -1
- package/lib/components/Tag/propTypes.js +5 -2
- package/lib/components/Tag/schema.d.ts.map +1 -1
- package/lib/components/Tag/schema.js +2 -0
- package/lib/components/Tag/styles.d.ts +13 -0
- package/lib/components/Tag/styles.d.ts.map +1 -0
- package/lib/components/Tag/styles.js +133 -0
- package/lib/components/Tag/types.d.ts +9 -10
- package/lib/components/Tag/types.d.ts.map +1 -1
- package/lib/components/Tag/types.js +5 -1
- package/lib/components/TagInput/index.d.ts +10 -0
- package/lib/components/TagInput/index.d.ts.map +1 -0
- package/lib/components/TagInput/index.js +217 -0
- package/lib/components/TagInput/index.test.js +1001 -0
- package/lib/components/TagInput/schema.d.ts +3 -0
- package/lib/components/TagInput/schema.d.ts.map +1 -0
- package/lib/components/TagInput/schema.js +30 -0
- package/lib/components/TagInput/styles.d.ts +10 -0
- package/lib/components/TagInput/styles.d.ts.map +1 -0
- package/lib/components/TagInput/styles.js +52 -0
- package/lib/components/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/TextArea/TextArea.js +1 -1
- package/lib/components/TextArea/index.js +1 -0
- package/lib/components/TextArea/index.test.js +5 -0
- package/lib/components/TextField/Input.js +1 -1
- package/lib/components/TextField/index.test.js +5 -0
- package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
- package/lib/components/Toggle/Fieldset.js +20 -11
- package/lib/components/Toggle/Option.d.ts.map +1 -1
- package/lib/components/Toggle/Option.js +1 -1
- package/lib/components/Toggle/Slider.d.ts +1 -3
- package/lib/components/Toggle/Slider.d.ts.map +1 -1
- package/lib/components/Toggle/Slider.js +29 -24
- package/lib/components/Toggle/index.d.ts.map +1 -1
- package/lib/components/Toggle/index.js +6 -1
- package/lib/components/Toggle/index.test.js +39 -10
- package/lib/components/Toggle/propTypes.js +1 -1
- package/lib/components/Toggle/schema.js +1 -1
- package/lib/components/Toggle/types.d.ts +3 -2
- package/lib/components/Toggle/types.d.ts.map +1 -1
- package/lib/components/Toggle/types.js +5 -1
- package/lib/components/ToggleView/ToggleView.d.ts +5 -0
- package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
- package/lib/components/ToggleView/ToggleView.js +80 -0
- package/lib/components/ToggleView/index.d.ts +4 -0
- package/lib/components/ToggleView/index.d.ts.map +1 -0
- package/lib/components/ToggleView/index.js +33 -0
- package/lib/components/ToggleView/index.test.js +61 -0
- package/lib/components/ToggleView/schema.d.ts +3 -0
- package/lib/components/ToggleView/schema.d.ts.map +1 -0
- package/lib/components/ToggleView/schema.js +24 -0
- package/lib/components/ToggleView/styles.d.ts +6 -0
- package/lib/components/ToggleView/styles.d.ts.map +1 -0
- package/lib/components/ToggleView/styles.js +23 -0
- package/lib/components/ToggleView/types.d.ts +23 -0
- package/lib/components/ToggleView/types.d.ts.map +1 -0
- package/lib/components/ToggleView/types.js +12 -0
- package/lib/components/Tooltip/index.d.ts.map +1 -1
- package/lib/components/Tooltip/index.js +3 -13
- package/lib/components/Tooltip/schema.d.ts +3 -0
- package/lib/components/Tooltip/schema.d.ts.map +1 -0
- package/lib/components/Tooltip/schema.js +29 -0
- package/lib/components/TopNav/Menu/index.d.ts +1 -1
- package/lib/components/TopNav/index.d.ts +1 -1
- package/lib/components/Typography/withColors.d.ts +1 -1
- package/lib/components/Typography/withColors.d.ts.map +1 -1
- package/lib/components/Typography/withColors.js +1 -1
- package/lib/components/Wizard/index.d.ts +24 -0
- package/lib/components/Wizard/index.d.ts.map +1 -0
- package/lib/components/Wizard/index.js +146 -0
- package/lib/components/Wizard/index.test.js +591 -0
- package/lib/components/Wizard/schema.d.ts +3 -0
- package/lib/components/Wizard/schema.d.ts.map +1 -0
- package/lib/components/Wizard/schema.js +37 -0
- package/lib/components/Wizard/styles.d.ts +990 -0
- package/lib/components/Wizard/styles.d.ts.map +1 -0
- package/lib/components/Wizard/styles.js +79 -0
- package/lib/components/index.d.ts +12 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +205 -1
- package/lib/modifiers/palette.d.ts +36 -0
- package/lib/modifiers/palette.d.ts.map +1 -0
- package/lib/modifiers/palette.js +88 -0
- package/lib/modifiers/spacingSchema.d.ts.map +1 -1
- package/lib/modifiers/spacingSchema.js +29 -16
- package/lib/providers/ConfigProvider/index.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/index.js +5 -1
- package/lib/providers/ConfigProvider/utils/context.d.ts +1 -1
- package/lib/providers/ConfigProvider/utils/context.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/normalizer.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/normalizer.js +1 -1
- package/lib/providers/ConfigProvider/utils/translations.d.ts +42 -0
- package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/translations.js +43 -1
- package/lib/providers/NotificationsProvider/index.d.ts +6 -5
- package/lib/providers/NotificationsProvider/index.d.ts.map +1 -1
- package/lib/providers/NotificationsProvider/index.js +47 -28
- package/lib/providers/NotificationsProvider/types.d.ts +4 -1
- package/lib/providers/NotificationsProvider/types.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +5 -0
- package/lib/utils/commonUIColors.d.ts +351 -3
- package/lib/utils/commonUIColors.d.ts.map +1 -1
- package/lib/utils/commonUIColors.js +6 -2
- package/lib/utils/joinClassnames.d.ts +3 -0
- package/lib/utils/joinClassnames.d.ts.map +1 -0
- package/lib/utils/joinClassnames.js +26 -0
- package/lib/utils/useDebounce.d.ts +2 -0
- package/lib/utils/useDebounce.d.ts.map +1 -0
- package/lib/utils/useDebounce.js +37 -0
- package/lib/utils/useFirstMount.d.ts +2 -0
- package/lib/utils/useFirstMount.d.ts.map +1 -0
- package/lib/utils/useFirstMount.js +19 -0
- package/lib/utils/useStackingContext.d.ts +12 -0
- package/lib/utils/useStackingContext.d.ts.map +1 -0
- package/lib/utils/useStackingContext.js +46 -0
- package/lib/utils/useUpdateEffect.d.ts +4 -0
- package/lib/utils/useUpdateEffect.d.ts.map +1 -0
- package/lib/utils/useUpdateEffect.js +28 -0
- package/package.json +2 -2
- package/CHANGELOG.md +0 -796
- package/lib/atoms/InputField/RequiredIcon.d.ts +0 -4
- package/lib/atoms/InputField/RequiredIcon.d.ts.map +0 -1
- package/lib/atoms/OptionsList/Category.d.ts +0 -4
- package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
- package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
- package/lib/atoms/OptionsList/Option.js +0 -194
- package/lib/components/Tabs/Tab.d.ts +0 -5
- package/lib/components/Tabs/Tab.d.ts.map +0 -1
- package/lib/components/Tabs/Tab.js +0 -109
- package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
- package/lib/components/Tabs/types.d.ts +0 -27
- package/lib/components/Tabs/types.d.ts.map +0 -1
- package/lib/components/Tabs/types.js +0 -1
- package/lib/components/Tag/ActionButton.d.ts +0 -5
- package/lib/components/Tag/ActionButton.d.ts.map +0 -1
- package/lib/components/Tag/ActionButton.js +0 -56
- /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
|
@@ -79,20 +79,50 @@ describe('Calendar', function () {
|
|
|
79
79
|
var today = new Date();
|
|
80
80
|
expect(queryByText("".concat(months[today.getMonth()], " ").concat(today.getFullYear()))).toBeInTheDocument();
|
|
81
81
|
});
|
|
82
|
+
it('renders the "go to today" button as disabled if its in the current month', function () {
|
|
83
|
+
var _render3 = render(_react.default.createElement(_.default, null)),
|
|
84
|
+
queryByText = _render3.queryByText;
|
|
85
|
+
|
|
86
|
+
expect(queryByText('Today').closest('button')).toHaveAttribute('disabled');
|
|
87
|
+
});
|
|
88
|
+
it('renders the "go to today" button as enabled if its not in the current month', function () {
|
|
89
|
+
var _render4 = render(_react.default.createElement(_.default, {
|
|
90
|
+
viewMonth: {
|
|
91
|
+
year: 2020,
|
|
92
|
+
month: 1
|
|
93
|
+
}
|
|
94
|
+
})),
|
|
95
|
+
queryByText = _render4.queryByText;
|
|
96
|
+
|
|
97
|
+
expect(queryByText('Today').closest('button')).not.toHaveAttribute('disabled');
|
|
98
|
+
});
|
|
99
|
+
it('renders the "go to today" button as enabled if its in the current month of a different year', function () {
|
|
100
|
+
var today = new Date();
|
|
101
|
+
|
|
102
|
+
var _render5 = render(_react.default.createElement(_.default, {
|
|
103
|
+
viewMonth: {
|
|
104
|
+
year: today.getFullYear() - 1,
|
|
105
|
+
month: today.getMonth()
|
|
106
|
+
}
|
|
107
|
+
})),
|
|
108
|
+
queryByText = _render5.queryByText;
|
|
109
|
+
|
|
110
|
+
expect(queryByText('Today').closest('button')).not.toHaveAttribute('disabled');
|
|
111
|
+
});
|
|
82
112
|
it('renders a button to view the previous month', function () {
|
|
83
113
|
var _rtlRender = (0, _react2.render)(_react.default.createElement(_ArrowLeft.default, null)),
|
|
84
114
|
svgContainer = _rtlRender.container;
|
|
85
115
|
|
|
86
116
|
var arrowLeftPathD = svgContainer.querySelector('svg path').getAttribute('d');
|
|
87
117
|
|
|
88
|
-
var
|
|
118
|
+
var _render6 = render(_react.default.createElement(_.default, {
|
|
89
119
|
viewMonth: {
|
|
90
120
|
year: 2020,
|
|
91
121
|
month: 1
|
|
92
122
|
}
|
|
93
123
|
})),
|
|
94
|
-
queryByLabelText =
|
|
95
|
-
queryByText =
|
|
124
|
+
queryByLabelText = _render6.queryByLabelText,
|
|
125
|
+
queryByText = _render6.queryByText;
|
|
96
126
|
|
|
97
127
|
var viewPrevMonthButton = queryByLabelText(/view previous month/i);
|
|
98
128
|
expect(viewPrevMonthButton).toBeInTheDocument();
|
|
@@ -108,14 +138,14 @@ describe('Calendar', function () {
|
|
|
108
138
|
|
|
109
139
|
var arrowRightPathD = svgContainer.querySelector('svg path').getAttribute('d');
|
|
110
140
|
|
|
111
|
-
var
|
|
141
|
+
var _render7 = render(_react.default.createElement(_.default, {
|
|
112
142
|
viewMonth: {
|
|
113
143
|
year: 2020,
|
|
114
144
|
month: 1
|
|
115
145
|
}
|
|
116
146
|
})),
|
|
117
|
-
queryByLabelText =
|
|
118
|
-
queryByText =
|
|
147
|
+
queryByLabelText = _render7.queryByLabelText,
|
|
148
|
+
queryByText = _render7.queryByText;
|
|
119
149
|
|
|
120
150
|
var viewNextMonthButton = queryByLabelText(/view next month/i);
|
|
121
151
|
expect(viewNextMonthButton).toBeInTheDocument();
|
|
@@ -126,13 +156,13 @@ describe('Calendar', function () {
|
|
|
126
156
|
expect(queryByText('February 2020')).toBeInTheDocument();
|
|
127
157
|
});
|
|
128
158
|
it('renders a header for each day of the week', function () {
|
|
129
|
-
var
|
|
159
|
+
var _render8 = render(_react.default.createElement(_.default, {
|
|
130
160
|
viewMonth: {
|
|
131
161
|
year: 2020,
|
|
132
162
|
month: 1
|
|
133
163
|
}
|
|
134
164
|
})),
|
|
135
|
-
queryByText =
|
|
165
|
+
queryByText = _render8.queryByText;
|
|
136
166
|
|
|
137
167
|
var _iteratorNormalCompletion = true;
|
|
138
168
|
var _didIteratorError = false;
|
|
@@ -159,13 +189,13 @@ describe('Calendar', function () {
|
|
|
159
189
|
}
|
|
160
190
|
});
|
|
161
191
|
it('renders a date button for every day of the month', function () {
|
|
162
|
-
var
|
|
192
|
+
var _render9 = render(_react.default.createElement(_.default, {
|
|
163
193
|
viewMonth: {
|
|
164
194
|
year: 2020,
|
|
165
195
|
month: 2
|
|
166
196
|
}
|
|
167
197
|
})),
|
|
168
|
-
queryByText =
|
|
198
|
+
queryByText = _render9.queryByText; // 2020 is a leap year.
|
|
169
199
|
|
|
170
200
|
|
|
171
201
|
var datesInFebruary2020 = (0, _range.default)(1, 30);
|
|
@@ -204,10 +234,10 @@ describe('Calendar', function () {
|
|
|
204
234
|
var today = new Date();
|
|
205
235
|
var selected = new Date(today.getFullYear(), today.getMonth() - 1, 1);
|
|
206
236
|
|
|
207
|
-
var
|
|
237
|
+
var _render10 = render(_react.default.createElement(_.default, {
|
|
208
238
|
selected: selected
|
|
209
239
|
})),
|
|
210
|
-
queryByText =
|
|
240
|
+
queryByText = _render10.queryByText;
|
|
211
241
|
|
|
212
242
|
expect(queryByText("".concat(months[selected.getMonth()], " ").concat(selected.getFullYear()))).toBeInTheDocument();
|
|
213
243
|
});
|
|
@@ -215,10 +245,10 @@ describe('Calendar', function () {
|
|
|
215
245
|
var today = new Date();
|
|
216
246
|
var selected = new Date(today.getFullYear() + 1, today.getMonth() + 2, 1);
|
|
217
247
|
|
|
218
|
-
var
|
|
248
|
+
var _render11 = render(_react.default.createElement(_.default, {
|
|
219
249
|
selected: selected
|
|
220
250
|
})),
|
|
221
|
-
queryByText =
|
|
251
|
+
queryByText = _render11.queryByText;
|
|
222
252
|
|
|
223
253
|
_react2.fireEvent.click(queryByText(/today/i));
|
|
224
254
|
|
|
@@ -229,14 +259,14 @@ describe('Calendar', function () {
|
|
|
229
259
|
it('selects the clicked date', function () {
|
|
230
260
|
var onChange = jest.fn();
|
|
231
261
|
|
|
232
|
-
var
|
|
262
|
+
var _render12 = render(_react.default.createElement(_.default, {
|
|
233
263
|
onChange: onChange,
|
|
234
264
|
viewMonth: {
|
|
235
265
|
year: 2020,
|
|
236
266
|
month: 2
|
|
237
267
|
}
|
|
238
268
|
})),
|
|
239
|
-
queryByText =
|
|
269
|
+
queryByText = _render12.queryByText;
|
|
240
270
|
|
|
241
271
|
var date = 7;
|
|
242
272
|
var selectedDate = (0, _utils.buildJSDate)({
|
|
@@ -257,14 +287,14 @@ describe('Calendar', function () {
|
|
|
257
287
|
it('clears the selected date if already selected', function () {
|
|
258
288
|
var onChange = jest.fn();
|
|
259
289
|
|
|
260
|
-
var
|
|
290
|
+
var _render13 = render(_react.default.createElement(_.default, {
|
|
261
291
|
onChange: onChange,
|
|
262
292
|
viewMonth: {
|
|
263
293
|
year: 2020,
|
|
264
294
|
month: 2
|
|
265
295
|
}
|
|
266
296
|
})),
|
|
267
|
-
queryByText =
|
|
297
|
+
queryByText = _render13.queryByText;
|
|
268
298
|
|
|
269
299
|
var date = 7;
|
|
270
300
|
var selectedDate = (0, _utils.buildJSDate)({
|
|
@@ -294,7 +324,7 @@ describe('Calendar', function () {
|
|
|
294
324
|
date: date
|
|
295
325
|
});
|
|
296
326
|
|
|
297
|
-
var
|
|
327
|
+
var _render14 = render(_react.default.createElement(_.default, {
|
|
298
328
|
onChange: onChange,
|
|
299
329
|
viewMonth: {
|
|
300
330
|
year: 2020,
|
|
@@ -302,7 +332,7 @@ describe('Calendar', function () {
|
|
|
302
332
|
},
|
|
303
333
|
disabledDateRules: [[_constants.DisabledDateRuleName.IS, selectedDate]]
|
|
304
334
|
})),
|
|
305
|
-
queryByText =
|
|
335
|
+
queryByText = _render14.queryByText;
|
|
306
336
|
|
|
307
337
|
var selectedDateButton = queryByText(function (content, element) {
|
|
308
338
|
return element.nodeName === 'BUTTON' && element.textContent === String(date);
|
|
@@ -318,14 +348,14 @@ describe('Calendar', function () {
|
|
|
318
348
|
it('initializes the calendar with the default selected value', function () {
|
|
319
349
|
var defaultSelected = new Date(2020, 1, 7);
|
|
320
350
|
|
|
321
|
-
var
|
|
351
|
+
var _render15 = render(_react.default.createElement(_.default, {
|
|
322
352
|
defaultSelected: defaultSelected,
|
|
323
353
|
viewMonth: {
|
|
324
354
|
year: 2020,
|
|
325
355
|
month: 2
|
|
326
356
|
}
|
|
327
357
|
})),
|
|
328
|
-
queryByText =
|
|
358
|
+
queryByText = _render15.queryByText;
|
|
329
359
|
|
|
330
360
|
var selectedDateButton = queryByText(function (content, element) {
|
|
331
361
|
return element.nodeName === 'BUTTON' && element.textContent === '7';
|
|
@@ -335,15 +365,15 @@ describe('Calendar', function () {
|
|
|
335
365
|
it('does NOT update selected value when default selected prop changes', function () {
|
|
336
366
|
var defaultSelected = new Date(2020, 1, 7);
|
|
337
367
|
|
|
338
|
-
var
|
|
368
|
+
var _render16 = render(_react.default.createElement(_.default, {
|
|
339
369
|
defaultSelected: defaultSelected,
|
|
340
370
|
viewMonth: {
|
|
341
371
|
year: 2020,
|
|
342
372
|
month: 2
|
|
343
373
|
}
|
|
344
374
|
})),
|
|
345
|
-
queryByText =
|
|
346
|
-
rerender =
|
|
375
|
+
queryByText = _render16.queryByText,
|
|
376
|
+
rerender = _render16.rerender;
|
|
347
377
|
|
|
348
378
|
var newDefaultSelected = new Date(2020, 1, 15);
|
|
349
379
|
rerender(_react.default.createElement(_.default, {
|
|
@@ -367,14 +397,14 @@ describe('Calendar', function () {
|
|
|
367
397
|
it('initializes the calendar with the selected value', function () {
|
|
368
398
|
var selected = new Date(2020, 1, 7);
|
|
369
399
|
|
|
370
|
-
var
|
|
400
|
+
var _render17 = render(_react.default.createElement(_.default, {
|
|
371
401
|
selected: selected,
|
|
372
402
|
viewMonth: {
|
|
373
403
|
year: 2020,
|
|
374
404
|
month: 2
|
|
375
405
|
}
|
|
376
406
|
})),
|
|
377
|
-
queryByText =
|
|
407
|
+
queryByText = _render17.queryByText;
|
|
378
408
|
|
|
379
409
|
var selectedDateButton = queryByText(function (content, element) {
|
|
380
410
|
return element.nodeName === 'BUTTON' && element.textContent === '7';
|
|
@@ -384,15 +414,15 @@ describe('Calendar', function () {
|
|
|
384
414
|
it('updates selected value when selected prop changes', function () {
|
|
385
415
|
var selected = new Date(2020, 1, 7);
|
|
386
416
|
|
|
387
|
-
var
|
|
417
|
+
var _render18 = render(_react.default.createElement(_.default, {
|
|
388
418
|
selected: selected,
|
|
389
419
|
viewMonth: {
|
|
390
420
|
year: 2020,
|
|
391
421
|
month: 2
|
|
392
422
|
}
|
|
393
423
|
})),
|
|
394
|
-
queryByText =
|
|
395
|
-
rerender =
|
|
424
|
+
queryByText = _render18.queryByText,
|
|
425
|
+
rerender = _render18.rerender;
|
|
396
426
|
|
|
397
427
|
var newSelected = new Date(2020, 1, 15);
|
|
398
428
|
rerender(_react.default.createElement(_.default, {
|
|
@@ -415,7 +445,7 @@ describe('Calendar', function () {
|
|
|
415
445
|
var onChange = jest.fn();
|
|
416
446
|
var selected = new Date(2020, 1, 7);
|
|
417
447
|
|
|
418
|
-
var
|
|
448
|
+
var _render19 = render(_react.default.createElement(_.default, {
|
|
419
449
|
onChange: onChange,
|
|
420
450
|
selected: selected,
|
|
421
451
|
viewMonth: {
|
|
@@ -423,7 +453,7 @@ describe('Calendar', function () {
|
|
|
423
453
|
month: 2
|
|
424
454
|
}
|
|
425
455
|
})),
|
|
426
|
-
rerender =
|
|
456
|
+
rerender = _render19.rerender;
|
|
427
457
|
|
|
428
458
|
var newSelected = new Date(2020, 1, 15);
|
|
429
459
|
rerender(_react.default.createElement(_.default, {
|
|
@@ -440,7 +470,7 @@ describe('Calendar', function () {
|
|
|
440
470
|
var onChange = jest.fn();
|
|
441
471
|
var selected = new Date(2020, 1, 7);
|
|
442
472
|
|
|
443
|
-
var
|
|
473
|
+
var _render20 = render(_react.default.createElement(_.default, {
|
|
444
474
|
onChange: onChange,
|
|
445
475
|
selected: selected,
|
|
446
476
|
viewMonth: {
|
|
@@ -448,7 +478,7 @@ describe('Calendar', function () {
|
|
|
448
478
|
month: 2
|
|
449
479
|
}
|
|
450
480
|
})),
|
|
451
|
-
queryByText =
|
|
481
|
+
queryByText = _render20.queryByText;
|
|
452
482
|
|
|
453
483
|
var selectedDateButton = queryByText(function (content, element) {
|
|
454
484
|
return element.nodeName === 'BUTTON' && element.textContent === '7';
|
|
@@ -468,7 +498,7 @@ describe('Calendar', function () {
|
|
|
468
498
|
describe('date range', function () {
|
|
469
499
|
it('highlights the active date range', function () {
|
|
470
500
|
// disabled date is added to ensure range styles overrides disabled styles
|
|
471
|
-
var
|
|
501
|
+
var _render21 = render(_react.default.createElement(_.default, {
|
|
472
502
|
variant: "range",
|
|
473
503
|
viewMonth: {
|
|
474
504
|
year: 2020,
|
|
@@ -477,7 +507,7 @@ describe('Calendar', function () {
|
|
|
477
507
|
selected: [new Date(2020, 1, 15)],
|
|
478
508
|
disabledDateRules: [[_constants.DisabledDateRuleName.IS, new Date(2020, 1, 16)]]
|
|
479
509
|
})),
|
|
480
|
-
queryByText =
|
|
510
|
+
queryByText = _render21.queryByText;
|
|
481
511
|
|
|
482
512
|
_react2.fireEvent.mouseOver(queryByText('20')); // TODO test for start and end date styles, currently linear gradient is not supported
|
|
483
513
|
// https://github.com/testing-library/jest-dom/issues/170
|
|
@@ -517,7 +547,7 @@ describe('Calendar', function () {
|
|
|
517
547
|
});
|
|
518
548
|
it('highlights the selected date range', function () {
|
|
519
549
|
// disabled date is added to ensure range styles overrides disabled styles
|
|
520
|
-
var
|
|
550
|
+
var _render22 = render(_react.default.createElement(_.default, {
|
|
521
551
|
variant: "range",
|
|
522
552
|
viewMonth: {
|
|
523
553
|
year: 2020,
|
|
@@ -526,7 +556,7 @@ describe('Calendar', function () {
|
|
|
526
556
|
selected: [new Date(2020, 1, 15), new Date(2020, 1, 20)],
|
|
527
557
|
disabledDateRules: [[_constants.DisabledDateRuleName.IS, new Date(2020, 1, 16)]]
|
|
528
558
|
})),
|
|
529
|
-
queryByText =
|
|
559
|
+
queryByText = _render22.queryByText; // TODO test for start and end date styles, currently linear gradient is not supported
|
|
530
560
|
// https://github.com/testing-library/jest-dom/issues/170
|
|
531
561
|
|
|
532
562
|
|
|
@@ -90,7 +90,7 @@ interface TBaseCalendarProps {
|
|
|
90
90
|
focusOnRender?: boolean;
|
|
91
91
|
onChange?: (date?: Date | TSelectedDates) => void;
|
|
92
92
|
onClick?: MouseEventHandler;
|
|
93
|
-
|
|
93
|
+
width?: string;
|
|
94
94
|
viewMonth?: Date | TDisplayMonth;
|
|
95
95
|
disabledDateRules?: TDisabledDateRule[];
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atoms/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM9D,oBAAY,MAAM,GAAG,MAAM,CAAC;AAM5B,oBAAY,KAAK,GACb,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF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BAAmB,GACnB,wBAAwB,CAAC;AAE7B,UAAU,kBAAkB;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,cAAc,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atoms/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM9D,oBAAY,MAAM,GAAG,MAAM,CAAC;AAM5B,oBAAY,KAAK,GACb,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC;AAMP,oBAAY,iBAAiB,GACzB,iBAAiB,GACjB,mBAAmB,GACnB,YAAY,GACZ,SAAS,GACT,YAAY,CAAC;AAEjB,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB;AAMD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAA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1B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,oBAAY,cAAc,GACtB,0BAA0B,GAC1B,yBAAyB,CAAC"}
|
|
@@ -40,7 +40,7 @@ export declare const InputFieldContainer: import("styled-components").StyledComp
|
|
|
40
40
|
readonly LG: "LG";
|
|
41
41
|
readonly XL: "XL";
|
|
42
42
|
}> | undefined;
|
|
43
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
43
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
44
44
|
readonly XS: "XS";
|
|
45
45
|
readonly SM: "SM";
|
|
46
46
|
readonly MD: "MD";
|
|
@@ -205,6 +205,9 @@ interface InputContainerProps extends FlexComponentProps {
|
|
|
205
205
|
hasWarning?: boolean;
|
|
206
206
|
isFocused?: boolean;
|
|
207
207
|
readOnly?: boolean;
|
|
208
|
+
hiddenLabel: boolean;
|
|
209
|
+
isTextArea: boolean;
|
|
210
|
+
multiple: boolean;
|
|
208
211
|
}
|
|
209
212
|
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
210
213
|
readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
@@ -242,7 +245,7 @@ export declare const InputContainer: import("styled-components").StyledComponent
|
|
|
242
245
|
readonly LG: "LG";
|
|
243
246
|
readonly XL: "XL";
|
|
244
247
|
}> | undefined;
|
|
245
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
248
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
246
249
|
readonly XS: "XS";
|
|
247
250
|
readonly SM: "SM";
|
|
248
251
|
readonly MD: "MD";
|
|
@@ -435,7 +438,7 @@ export declare const IconContainer: import("styled-components").StyledComponent<
|
|
|
435
438
|
readonly LG: "LG";
|
|
436
439
|
readonly XL: "XL";
|
|
437
440
|
}> | undefined;
|
|
438
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
441
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
439
442
|
readonly XS: "XS";
|
|
440
443
|
readonly SM: "SM";
|
|
441
444
|
readonly MD: "MD";
|
|
@@ -594,6 +597,9 @@ export declare const IconContainer: import("styled-components").StyledComponent<
|
|
|
594
597
|
}> & {
|
|
595
598
|
alignItems: string;
|
|
596
599
|
justifyContent: string;
|
|
600
|
+
} & {
|
|
601
|
+
hiddenLabel?: boolean | undefined;
|
|
602
|
+
rightPlacement?: boolean | undefined;
|
|
597
603
|
}, "alignItems" | "justifyContent">;
|
|
598
604
|
export declare const InputInnerContainer: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
599
605
|
readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
@@ -631,7 +637,7 @@ export declare const InputInnerContainer: import("styled-components").StyledComp
|
|
|
631
637
|
readonly LG: "LG";
|
|
632
638
|
readonly XL: "XL";
|
|
633
639
|
}> | undefined;
|
|
634
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
640
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
635
641
|
readonly XS: "XS";
|
|
636
642
|
readonly SM: "SM";
|
|
637
643
|
readonly MD: "MD";
|
|
@@ -790,9 +796,9 @@ export declare const InputInnerContainer: import("styled-components").StyledComp
|
|
|
790
796
|
}> & {
|
|
791
797
|
flex: number;
|
|
792
798
|
flexWrap: string;
|
|
793
|
-
paddingLeft: number;
|
|
794
799
|
} & {
|
|
795
800
|
hasIcon?: boolean | undefined;
|
|
796
|
-
|
|
801
|
+
hiddenLabel: boolean;
|
|
802
|
+
}, "flexWrap" | "flex">;
|
|
797
803
|
export {};
|
|
798
804
|
//# sourceMappingURL=Containers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Containers.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/Containers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Containers.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/Containers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAWtC,OAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAa/B,CAAC;AAEF,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAiCD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAwD1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAuBzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4B/B,CAAC"}
|
|
@@ -11,6 +11,8 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"));
|
|
13
13
|
|
|
14
|
+
var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
|
|
15
|
+
|
|
14
16
|
var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
|
|
15
17
|
|
|
16
18
|
var _dynamicModifiers = require("../../utils/dynamicModifiers");
|
|
@@ -32,6 +34,7 @@ var InputFieldContainer = (0, _styledComponents.default)(_Flex.default).attrs({
|
|
|
32
34
|
componentId: "me30fz-0"
|
|
33
35
|
})(["flex:1;max-width:100%;", ";"], (0, _styleModifiers.when)('overflow', 'auto', (0, _styledComponents.css)(["overflow:auto;"])));
|
|
34
36
|
exports.InputFieldContainer = InputFieldContainer;
|
|
37
|
+
var hiddenLabelStyles = (0, _styledComponents.css)(["min-height:32px;"]);
|
|
35
38
|
var inactiveStyles = (0, _styledComponents.css)(["background:", ";border-color:", ";cursor:not-allowed;position:relative;&:active,&:hover{background:", ";border-color:", ";", ";}*{cursor:not-allowed;}"], (0, _toColorString.default)(_color.default.opacity.fullMoon50), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _toColorString.default)(_color.default.opacity.fullMoon50), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _focusRingWithColor.default)({
|
|
36
39
|
red: 0,
|
|
37
40
|
green: 0,
|
|
@@ -42,22 +45,21 @@ var onFocusStyles = (0, _styledComponents.css)(["border-color:", ";", ";&:hover{
|
|
|
42
45
|
var InputContainer = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
43
46
|
displayName: "Containers__InputContainer",
|
|
44
47
|
componentId: "me30fz-1"
|
|
45
|
-
})(["background:", ";border:1px solid ", ";box-sizing:border-box;min-height:50px;position:relative;width:100%;", ";& ~ *{cursor:default;margin-top:", "px;width:100%;}&:hover{border-color:", ";}&:active{border-color:", ";", ";}", ";", ";", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _dynamicModifiers.applyDynamicModifiers)('cursor'), _spacing.default.base * 0.5, (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _focusRingWithColor.default)(_color.default.interaction.pacificOcean40), (0, _styleModifiers.when)('isFocused', onFocusStyles), (0, _styleModifiers.when)('hasWarning', (0, _styledComponents.css)(["border-color:", ";&:active,&:hover{border-color:", ";}"], (0, _toColorString.default)(_color.default.status.warning.medium), (0, _toColorString.default)(_color.default.status.warning.medium))), (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles));
|
|
48
|
+
})(["background:", ";border:1px solid ", ";box-sizing:border-box;min-height:50px;position:relative;width:100%;", ";& ~ *{cursor:default;margin-top:", "px;width:100%;}&:hover{border-color:", ";}&:active{border-color:", ";", ";}", ";", ";", ";", ";", ";", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _dynamicModifiers.applyDynamicModifiers)('cursor'), _spacing.default.base * 0.5, (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _focusRingWithColor.default)(_color.default.interaction.pacificOcean40), (0, _styleModifiers.when)('isFocused', onFocusStyles), (0, _styleModifiers.when)('hasWarning', (0, _styledComponents.css)(["border-color:", ";&:active,&:hover{border-color:", ";}"], (0, _toColorString.default)(_color.default.status.warning.medium), (0, _toColorString.default)(_color.default.status.warning.medium))), (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles), (0, _styleModifiers.when)('hiddenLabel', hiddenLabelStyles), (0, _styleModifiers.whenNot)('isTextArea', (0, _styledComponents.css)(["height:32px;"])), (0, _styleModifiers.when)('multiple', (0, _styledComponents.css)(["height:auto;"])));
|
|
46
49
|
exports.InputContainer = InputContainer;
|
|
47
50
|
var IconContainer = (0, _styledComponents.default)(_Flex.default).attrs({
|
|
48
|
-
alignItems: '
|
|
51
|
+
alignItems: 'flex-start',
|
|
49
52
|
justifyContent: 'center'
|
|
50
53
|
}).withConfig({
|
|
51
54
|
displayName: "Containers__IconContainer",
|
|
52
55
|
componentId: "me30fz-2"
|
|
53
|
-
})(["color:", ";margin:
|
|
56
|
+
})(["color:", ";margin:16px 0 6px 15px;", " ", ""], (0, _toColorString.default)(_color.default.base.alaskanHusky), (0, _styleModifiers.when)('rightPlacement', (0, _styledComponents.css)(["margin:0;align-items:center;margin-right:", ";margin-left:", ";"], (0, _rem.default)(_spacing.default.base * 0.8), (0, _rem.default)(_spacing.default.base * 0.8))), (0, _styleModifiers.when)('hiddenLabel', (0, _styledComponents.css)(["margin:8px 0 8px 10px;"])));
|
|
54
57
|
exports.IconContainer = IconContainer;
|
|
55
58
|
var InputInnerContainer = (0, _styledComponents.default)(_Flex.default).attrs({
|
|
56
59
|
flex: 1,
|
|
57
|
-
flexWrap: 'wrap'
|
|
58
|
-
paddingLeft: 1
|
|
60
|
+
flexWrap: 'wrap'
|
|
59
61
|
}).withConfig({
|
|
60
62
|
displayName: "Containers__InputInnerContainer",
|
|
61
63
|
componentId: "me30fz-3"
|
|
62
|
-
})(["max-width:100%;", ";"], (0, _styleModifiers.when)('hasIcon', (0, _styledComponents.css)(["max-width:calc(100% -
|
|
64
|
+
})(["max-width:100%;padding-top:6px;padding-left:15px;", ";", ";", ";"], (0, _styleModifiers.when)('hasIcon', (0, _styledComponents.css)(["max-width:calc(100% - 10px);"])), (0, _styleModifiers.whenNot)('hasIcon', (0, _styledComponents.css)(["padding-left:10px;"])), (0, _styleModifiers.whenAll)([['hasIcon', true], ['hiddenLabel', true]], (0, _styledComponents.css)(["padding-left:10px;"])));
|
|
63
65
|
exports.InputInnerContainer = InputInnerContainer;
|
|
@@ -4,7 +4,7 @@ export interface HelpMessageProps {
|
|
|
4
4
|
helpMessage?: string;
|
|
5
5
|
maxLength?: number;
|
|
6
6
|
showCharacterCount?: boolean;
|
|
7
|
-
contentLength
|
|
7
|
+
contentLength?: number;
|
|
8
8
|
}
|
|
9
9
|
declare function HelpMessage(props: HelpMessageProps): JSX.Element | null;
|
|
10
10
|
declare namespace HelpMessage {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpMessage.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/HelpMessage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"HelpMessage.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/HelpMessage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA6ChE;kBA7CQ,WAAW;;;;;;;;;;;;;;AA8DpB,eAAe,WAAW,CAAC"}
|
|
@@ -28,16 +28,32 @@ function HelpMessage(props) {
|
|
|
28
28
|
var helpMessage = props.helpMessage,
|
|
29
29
|
maxLength = props.maxLength,
|
|
30
30
|
showCharacterCount = props.showCharacterCount,
|
|
31
|
-
contentLength = props.contentLength
|
|
31
|
+
_props$contentLength = props.contentLength,
|
|
32
|
+
contentLength = _props$contentLength === void 0 ? 0 : _props$contentLength;
|
|
32
33
|
var translate = (0, _useTranslations.default)();
|
|
33
|
-
var showCount = Boolean(maxLength && showCharacterCount);
|
|
34
|
+
var showCount = Boolean(maxLength && showCharacterCount);
|
|
35
|
+
var countSurpassed = maxLength && contentLength > maxLength;
|
|
36
|
+
|
|
37
|
+
var countMessage = _react.default.useMemo(function () {
|
|
38
|
+
if (!showCount) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (countSurpassed) {
|
|
43
|
+
return translate(undefined, 'textArea.countMessageOver', {
|
|
44
|
+
surplus: _react.default.createElement(RemainingCount, null, contentLength - maxLength),
|
|
45
|
+
max: "".concat(maxLength)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return translate(undefined, 'textArea.countMessage', {
|
|
50
|
+
remaining: _react.default.createElement(RemainingCount, null, maxLength - contentLength),
|
|
51
|
+
max: "".concat(maxLength)
|
|
52
|
+
});
|
|
53
|
+
}, [contentLength, countSurpassed, maxLength, showCount, translate]);
|
|
34
54
|
|
|
35
|
-
var countMessage = showCount && translate(undefined, 'textArea.countMessage', {
|
|
36
|
-
remaining: _react.default.createElement(RemainingCount, null, maxLength - contentLength),
|
|
37
|
-
max: "".concat(maxLength)
|
|
38
|
-
});
|
|
39
55
|
return helpMessage || showCount ? _react.default.createElement(_Message.default, {
|
|
40
|
-
intent:
|
|
56
|
+
intent: countSurpassed ? 'warning' : 'help'
|
|
41
57
|
}, helpMessage, helpMessage && showCount && _react.default.createElement("br", null), countMessage) : null;
|
|
42
58
|
}
|
|
43
59
|
|
|
@@ -4,6 +4,7 @@ interface InputLabelProps extends PProps, React.LabelHTMLAttributes<HTMLLabelEle
|
|
|
4
4
|
color?: PProps['color'];
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
readOnly?: boolean;
|
|
7
|
+
hidden?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const InputLabel: import("styled-components").StyledComponent<"p", any, PProps & {
|
|
9
10
|
as: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/InputLabel.ts"],"names":[],"mappings":";AAIA,OAAO,EAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAExD,UAAU,eACR,SAAQ,MAAM,EACZ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/InputLabel.ts"],"names":[],"mappings":";AAIA,OAAO,EAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAExD,UAAU,eACR,SAAQ,MAAM,EACZ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAqBD,QAAA,MAAM,UAAU;;;;6CAoBf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -14,6 +14,7 @@ var _Typography = require("../../components/Typography");
|
|
|
14
14
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
15
15
|
|
|
16
16
|
var inactiveStyles = (0, _styledComponents.css)(["cursor:not-allowed;*{cursor:not-allowed;}"]);
|
|
17
|
+
var visuallyHiddenStyles = (0, _styledComponents.css)(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"]);
|
|
17
18
|
var InputLabel = (0, _styledComponents.default)(_Typography.P).attrs({
|
|
18
19
|
as: 'label',
|
|
19
20
|
color: 'alaskanHusky',
|
|
@@ -21,6 +22,6 @@ var InputLabel = (0, _styledComponents.default)(_Typography.P).attrs({
|
|
|
21
22
|
}).withConfig({
|
|
22
23
|
displayName: "InputLabel",
|
|
23
24
|
componentId: "ldhs58-0"
|
|
24
|
-
})(["display:block;padding-
|
|
25
|
+
})(["display:block;padding-right:10px;text-align:left;width:100%;cursor:inherit;*{cursor:inherit;}", ";", ";", ";"], (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles), (0, _styleModifiers.when)('hidden', visuallyHiddenStyles));
|
|
25
26
|
var _default = InputLabel;
|
|
26
27
|
exports.default = _default;
|
|
@@ -14,6 +14,8 @@ export interface InputComponentProps {
|
|
|
14
14
|
ref: Ref<any>;
|
|
15
15
|
required?: boolean;
|
|
16
16
|
value?: string | number | string[];
|
|
17
|
+
autoComplete?: string;
|
|
18
|
+
type?: string;
|
|
17
19
|
}
|
|
18
20
|
export interface BaseInputFieldProps {
|
|
19
21
|
children: (props: InputComponentProps) => JSX.Element;
|
|
@@ -21,6 +23,7 @@ export interface BaseInputFieldProps {
|
|
|
21
23
|
disabled?: boolean;
|
|
22
24
|
helpMessage?: string;
|
|
23
25
|
icon?: (props: IconProps) => JSX.Element;
|
|
26
|
+
secondaryElement?: JSX.Element;
|
|
24
27
|
id?: string;
|
|
25
28
|
inputContainerRef?: Ref<HTMLDivElement>;
|
|
26
29
|
label: string;
|
|
@@ -37,9 +40,13 @@ export interface BaseInputFieldProps {
|
|
|
37
40
|
required?: boolean;
|
|
38
41
|
requiredMessage?: string;
|
|
39
42
|
showCharacterCount?: boolean;
|
|
43
|
+
hideLabel?: boolean;
|
|
40
44
|
style?: React.CSSProperties;
|
|
41
|
-
value
|
|
45
|
+
value?: string;
|
|
42
46
|
warningMessage?: string;
|
|
47
|
+
withWarningIntent?: boolean;
|
|
48
|
+
isTextArea?: boolean;
|
|
49
|
+
multiple?: boolean;
|
|
43
50
|
}
|
|
44
51
|
declare const InputFieldWithRef: RefForwardingComponent<Ref<any>, BaseInputFieldProps>;
|
|
45
52
|
export default InputFieldWithRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,GAAG,EACH,sBAAsB,EAIvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAoB5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,GAAG,CAAC,OAAO,CAAC;IACtD,MAAM,CAAC,EAAE,aAAa,CAAC,QA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