@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
|
@@ -7,24 +7,37 @@ exports.makeSpacingSchemaPropTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _reactDesc = require("react-desc");
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
var _breakpointObserver = require("@decisiv/breakpoint-observer");
|
|
11
|
+
|
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
|
|
14
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
15
|
+
|
|
16
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
17
|
+
|
|
18
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
19
|
+
|
|
20
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
21
|
+
|
|
22
|
+
var numberOrDynamicModifierProp = _reactDesc.PropTypes.oneOfType([_reactDesc.PropTypes.number, _reactDesc.PropTypes.shape(_defineProperty({}, _reactDesc.PropTypes.oneOf(['_'].concat(_toConsumableArray(Object.keys(_breakpointObserver.sizes)))), _reactDesc.PropTypes.number))]); // eslint-disable-next-line import/prefer-default-export
|
|
23
|
+
|
|
24
|
+
|
|
12
25
|
var makeSpacingSchemaPropTypes = function makeSpacingSchemaPropTypes() {
|
|
13
26
|
return {
|
|
14
|
-
margin:
|
|
15
|
-
marginBottom:
|
|
16
|
-
marginLeft:
|
|
17
|
-
marginRight:
|
|
18
|
-
marginTop:
|
|
19
|
-
marginX:
|
|
20
|
-
marginY:
|
|
21
|
-
padding:
|
|
22
|
-
paddingBottom:
|
|
23
|
-
paddingLeft:
|
|
24
|
-
paddingRight:
|
|
25
|
-
paddingTop:
|
|
26
|
-
paddingX:
|
|
27
|
-
paddingY:
|
|
27
|
+
margin: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on all axis margin.'),
|
|
28
|
+
marginBottom: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the bottom margin.'),
|
|
29
|
+
marginLeft: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the left margin.'),
|
|
30
|
+
marginRight: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the right margin.'),
|
|
31
|
+
marginTop: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the top margin.'),
|
|
32
|
+
marginX: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the X axis margin.'),
|
|
33
|
+
marginY: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the Y axis margin.'),
|
|
34
|
+
padding: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on all axis padding.'),
|
|
35
|
+
paddingBottom: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the bottom padding.'),
|
|
36
|
+
paddingLeft: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the left padding.'),
|
|
37
|
+
paddingRight: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the right padding.'),
|
|
38
|
+
paddingTop: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the top padding.'),
|
|
39
|
+
paddingX: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the X axis padding.'),
|
|
40
|
+
paddingY: numberOrDynamicModifierProp.description('Defines the spacing multiplier for use on the Y axis padding.')
|
|
28
41
|
};
|
|
29
42
|
};
|
|
30
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/ConfigProvider/index.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/ConfigProvider/index.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAUf,OAAO,EAGL,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,aAAa,CAwGpD,CAAC;AAQF,QAAA,MAAM,SAAS,qBACkB,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -166,7 +166,11 @@ var ConfigProvider = function ConfigProvider(props) {
|
|
|
166
166
|
var managerProps = {};
|
|
167
167
|
|
|
168
168
|
if (extraScope) {
|
|
169
|
-
|
|
169
|
+
var extraScopePlugin = (0, _stylisPluginExtraScope.default)(extraScope);
|
|
170
|
+
Object.defineProperty(extraScopePlugin, 'name', {
|
|
171
|
+
value: 'extraScopePlugin'
|
|
172
|
+
});
|
|
173
|
+
managerProps.stylisPlugins = [extraScopePlugin];
|
|
170
174
|
}
|
|
171
175
|
|
|
172
176
|
return managerProps;
|
|
@@ -17,7 +17,7 @@ export interface DefaultConfig {
|
|
|
17
17
|
export declare const defaultConfig: DefaultConfig;
|
|
18
18
|
export declare const ConfigContext: React.Context<DefaultConfig>;
|
|
19
19
|
export interface ProviderProps {
|
|
20
|
-
children
|
|
20
|
+
children?: React.ReactChild;
|
|
21
21
|
extraScope?: string;
|
|
22
22
|
linkRenderer?: LinkRenderer;
|
|
23
23
|
portalsRoot?: HTMLElement | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAqB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAA4B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnE,oBAAY,YAAY,GAAG,OAAO,mBAAmB,CAAC;AAEtD,oBAAY,wBAAwB,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;AAE7E,aAAK,aAAa,GAAG,CACnB,QAAQ,EAAE,SAAS,EACnB,kBAAkB,CAAC,EAAE,MAAM,KACxB,WAAW,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,wBAAwB,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,aAoB3B,CAAC;AAEF,eAAO,MAAM,aAAa,8BAA+B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAqB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9C,OAA4B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnE,oBAAY,YAAY,GAAG,OAAO,mBAAmB,CAAC;AAEtD,oBAAY,wBAAwB,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;AAE7E,aAAK,aAAa,GAAG,CACnB,QAAQ,EAAE,SAAS,EACnB,kBAAkB,CAAC,EAAE,MAAM,KACxB,WAAW,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,qBAAqB,EAAE,wBAAwB,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,aAoB3B,CAAC;AAEF,eAAO,MAAM,aAAa,8BAA+B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/normalizer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/normalizer.tsx"],"names":[],"mappings":"AA8IA,QAAA,MAAM,UAAU,oEAIf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -38,7 +38,7 @@ var cssReset = (0, _styledComponents.css)(["*,*::before,*::after{box-sizing:bord
|
|
|
38
38
|
* Basic typography styling that should be applied globally.
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
-
var typographyBase = (0, _styledComponents.css)(["font-family:", ";font-size:", ";font-weight:", ";color:", ";letter-spacing:normal;"], _designTokens.typography.typeface.default, (0, _rem.default)(_designTokens.typography.size.alias.default), _designTokens.typography.weight.alias.default, (0, _toColorString.default)(_designTokens.color.base.charcoal));
|
|
41
|
+
var typographyBase = (0, _styledComponents.css)(["font-family:", ";font-size:", ";font-weight:", ";color:", ";letter-spacing:normal;font-feature-settings:normal;font-variant-numeric:normal;"], _designTokens.typography.typeface.default, (0, _rem.default)(_designTokens.typography.size.alias.default), _designTokens.typography.weight.alias.default, (0, _toColorString.default)(_designTokens.color.base.charcoal));
|
|
42
42
|
|
|
43
43
|
var Normalizer = _styledComponents.default.div.withConfig({
|
|
44
44
|
displayName: "normalizer__Normalizer",
|
|
@@ -5,6 +5,10 @@ declare const translations: {
|
|
|
5
5
|
readonly expand: "Expand";
|
|
6
6
|
readonly expandAll: "Expand All";
|
|
7
7
|
};
|
|
8
|
+
alert: {
|
|
9
|
+
readonly closeAlert: "Close Alert";
|
|
10
|
+
readonly close: "Close";
|
|
11
|
+
};
|
|
8
12
|
avatar: {
|
|
9
13
|
aria: {
|
|
10
14
|
readonly label: "{descriptor} avatar";
|
|
@@ -15,6 +19,9 @@ declare const translations: {
|
|
|
15
19
|
readonly label: "Breadcrumbs";
|
|
16
20
|
};
|
|
17
21
|
};
|
|
22
|
+
button: {
|
|
23
|
+
readonly loading: "Loading...";
|
|
24
|
+
};
|
|
18
25
|
combobox: {
|
|
19
26
|
readonly clearButtonLabel: "Clear {label} value";
|
|
20
27
|
readonly loading: "Loading...";
|
|
@@ -49,6 +56,10 @@ declare const translations: {
|
|
|
49
56
|
readonly viewNextMonth: "View next month";
|
|
50
57
|
readonly viewPrevMonth: "View previous month";
|
|
51
58
|
};
|
|
59
|
+
drawer: {
|
|
60
|
+
readonly closeBtnTooltip: "Close";
|
|
61
|
+
readonly closeBtn: "Close Drawer";
|
|
62
|
+
};
|
|
52
63
|
jumpTo: {
|
|
53
64
|
readonly menuLabel: "Jump To";
|
|
54
65
|
readonly navLabel: "Jump To:";
|
|
@@ -65,6 +76,7 @@ declare const translations: {
|
|
|
65
76
|
pagination: {
|
|
66
77
|
readonly previous: "Previous";
|
|
67
78
|
readonly next: "Next";
|
|
79
|
+
readonly page: "Page {page}";
|
|
68
80
|
aria: {
|
|
69
81
|
readonly label: "Pagination";
|
|
70
82
|
readonly previous: "Go to previous page, page {page}";
|
|
@@ -103,6 +115,10 @@ declare const translations: {
|
|
|
103
115
|
readonly noneSelected: "All";
|
|
104
116
|
readonly selectedCount: "{count} Selected";
|
|
105
117
|
};
|
|
118
|
+
tagInput: {
|
|
119
|
+
readonly tagAriaLabel: "Remove {tagName}";
|
|
120
|
+
readonly clearButton: "Clear {inputLabel}";
|
|
121
|
+
};
|
|
106
122
|
table: {
|
|
107
123
|
sortIcons: {
|
|
108
124
|
aria: {
|
|
@@ -114,10 +130,36 @@ declare const translations: {
|
|
|
114
130
|
};
|
|
115
131
|
textArea: {
|
|
116
132
|
readonly countMessage: "You have {remaining} characters left ({max} max).";
|
|
133
|
+
readonly countMessageOver: "You are {surplus} characters over the limit ({max} max).";
|
|
117
134
|
};
|
|
118
135
|
textField: {
|
|
119
136
|
readonly requiredMessage: "Required";
|
|
120
137
|
};
|
|
138
|
+
toggleView: {
|
|
139
|
+
aria: {
|
|
140
|
+
readonly label: "Toggle View";
|
|
141
|
+
readonly element: "View element {id}";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
passwordField: {
|
|
145
|
+
readonly showPassword: "Show Password";
|
|
146
|
+
readonly hidePassword: "Hide Password";
|
|
147
|
+
readonly password: "Password";
|
|
148
|
+
};
|
|
149
|
+
searchInput: {
|
|
150
|
+
readonly clear: "Clear";
|
|
151
|
+
readonly search: "Search";
|
|
152
|
+
readonly clearSearch: "Clear search";
|
|
153
|
+
readonly searchBy: "Search By";
|
|
154
|
+
};
|
|
155
|
+
wizard: {
|
|
156
|
+
actions: {
|
|
157
|
+
readonly cancel: "Cancel";
|
|
158
|
+
readonly back: "Back";
|
|
159
|
+
readonly continue: "Continue";
|
|
160
|
+
readonly submit: "Submit";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
121
163
|
};
|
|
122
164
|
export declare type Translations = typeof translations;
|
|
123
165
|
export default translations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4JR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
|
|
@@ -11,6 +11,10 @@ var translations = {
|
|
|
11
11
|
expand: 'Expand',
|
|
12
12
|
expandAll: 'Expand All'
|
|
13
13
|
},
|
|
14
|
+
alert: {
|
|
15
|
+
closeAlert: 'Close Alert',
|
|
16
|
+
close: 'Close'
|
|
17
|
+
},
|
|
14
18
|
avatar: {
|
|
15
19
|
aria: {
|
|
16
20
|
label: '{descriptor} avatar'
|
|
@@ -21,6 +25,9 @@ var translations = {
|
|
|
21
25
|
label: 'Breadcrumbs'
|
|
22
26
|
}
|
|
23
27
|
},
|
|
28
|
+
button: {
|
|
29
|
+
loading: 'Loading...'
|
|
30
|
+
},
|
|
24
31
|
combobox: {
|
|
25
32
|
clearButtonLabel: 'Clear {label} value',
|
|
26
33
|
loading: 'Loading...',
|
|
@@ -55,6 +62,10 @@ var translations = {
|
|
|
55
62
|
viewNextMonth: 'View next month',
|
|
56
63
|
viewPrevMonth: 'View previous month'
|
|
57
64
|
},
|
|
65
|
+
drawer: {
|
|
66
|
+
closeBtnTooltip: 'Close',
|
|
67
|
+
closeBtn: 'Close Drawer'
|
|
68
|
+
},
|
|
58
69
|
jumpTo: {
|
|
59
70
|
menuLabel: 'Jump To',
|
|
60
71
|
navLabel: 'Jump To:'
|
|
@@ -71,6 +82,7 @@ var translations = {
|
|
|
71
82
|
pagination: {
|
|
72
83
|
previous: 'Previous',
|
|
73
84
|
next: 'Next',
|
|
85
|
+
page: 'Page {page}',
|
|
74
86
|
aria: {
|
|
75
87
|
label: 'Pagination',
|
|
76
88
|
previous: 'Go to previous page, page {page}',
|
|
@@ -109,6 +121,10 @@ var translations = {
|
|
|
109
121
|
noneSelected: 'All',
|
|
110
122
|
selectedCount: '{count} Selected'
|
|
111
123
|
},
|
|
124
|
+
tagInput: {
|
|
125
|
+
tagAriaLabel: 'Remove {tagName}',
|
|
126
|
+
clearButton: 'Clear {inputLabel}'
|
|
127
|
+
},
|
|
112
128
|
table: {
|
|
113
129
|
sortIcons: {
|
|
114
130
|
aria: {
|
|
@@ -119,10 +135,36 @@ var translations = {
|
|
|
119
135
|
}
|
|
120
136
|
},
|
|
121
137
|
textArea: {
|
|
122
|
-
countMessage: 'You have {remaining} characters left ({max} max).'
|
|
138
|
+
countMessage: 'You have {remaining} characters left ({max} max).',
|
|
139
|
+
countMessageOver: 'You are {surplus} characters over the limit ({max} max).'
|
|
123
140
|
},
|
|
124
141
|
textField: {
|
|
125
142
|
requiredMessage: 'Required'
|
|
143
|
+
},
|
|
144
|
+
toggleView: {
|
|
145
|
+
aria: {
|
|
146
|
+
label: 'Toggle View',
|
|
147
|
+
element: 'View element {id}'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
passwordField: {
|
|
151
|
+
showPassword: 'Show Password',
|
|
152
|
+
hidePassword: 'Hide Password',
|
|
153
|
+
password: 'Password'
|
|
154
|
+
},
|
|
155
|
+
searchInput: {
|
|
156
|
+
clear: 'Clear',
|
|
157
|
+
search: 'Search',
|
|
158
|
+
clearSearch: 'Clear search',
|
|
159
|
+
searchBy: 'Search By'
|
|
160
|
+
},
|
|
161
|
+
wizard: {
|
|
162
|
+
actions: {
|
|
163
|
+
cancel: 'Cancel',
|
|
164
|
+
back: 'Back',
|
|
165
|
+
continue: 'Continue',
|
|
166
|
+
submit: 'Submit'
|
|
167
|
+
}
|
|
126
168
|
}
|
|
127
169
|
};
|
|
128
170
|
var _default = translations;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { NotificationState, TNotificationProps, TNotifications } from './types';
|
|
3
3
|
declare type TNotifierOptions = Omit<TNotificationProps, 'onClose'> & {
|
|
4
4
|
onClose?: React.MouseEventHandler;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
6
|
+
declare type TNotifyHandlerCallbackFn = (oldNotifications: TNotifications) => void | [TNotifierOptions] | [TNotifierOptions, JSX.Element];
|
|
7
|
+
declare type TNotifyHandlerFn = (...args: [TNotifyHandlerCallbackFn] | [TNotifierOptions] | [TNotifierOptions, JSX.Element]) => void;
|
|
8
8
|
export interface TNotificationsContext {
|
|
9
9
|
dismissAll: () => void;
|
|
10
|
+
isDismissingAll: boolean;
|
|
10
11
|
notifications: TNotifications;
|
|
11
|
-
notify:
|
|
12
|
+
notify: TNotifyHandlerFn;
|
|
12
13
|
}
|
|
13
14
|
export declare const NotificationsContext: React.Context<TNotificationsContext>;
|
|
14
15
|
interface TNotificationsProviderProps {
|
|
15
|
-
children
|
|
16
|
+
children?: React.ReactChild | React.ReactChildren;
|
|
16
17
|
}
|
|
17
18
|
export declare const transitions: {
|
|
18
19
|
ENTERING: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,iBAAiB,EAGjB,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,aAAK,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG;IAC5D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC;AAEF,aAAK,wBAAwB,GAAG,CAC9B,gBAAgB,EAAE,cAAc,KAC7B,IAAI,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AAEjE,aAAK,gBAAgB,GAAG,CACtB,GAAG,IAAI,EACH,CAAC,wBAAwB,CAAC,GAC1B,CAAC,gBAAgB,CAAC,GAClB,CAAC,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,KAChC,IAAI,CAAC;AAEV,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,cAAc,CAAC;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,sCAK/B,CAAC;AAEH,UAAU,2BAA2B;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;CACnD;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBd,CAAC;AAEX,iBAAS,qBAAqB,CAAC,EAC7B,QAAQ,GACT,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CA8K3C;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -11,7 +11,9 @@ var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
|
11
11
|
|
|
12
12
|
var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _noop = _interopRequireDefault(require("lodash/noop"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
15
17
|
|
|
16
18
|
var _types = require("./types");
|
|
17
19
|
|
|
@@ -47,15 +49,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
47
49
|
|
|
48
50
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49
51
|
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/* istanbul ignore next */
|
|
54
|
-
dismissAll: function dismissAll() {},
|
|
52
|
+
var NotificationsContext = React.createContext({
|
|
53
|
+
dismissAll: _noop.default,
|
|
54
|
+
isDismissingAll: false,
|
|
55
55
|
notifications: [],
|
|
56
|
-
|
|
57
|
-
/* istanbul ignore next */
|
|
58
|
-
notify: function notify() {}
|
|
56
|
+
notify: _noop.default
|
|
59
57
|
});
|
|
60
58
|
exports.NotificationsContext = NotificationsContext;
|
|
61
59
|
var transitions = (_transitions = {}, _defineProperty(_transitions, _types.NotificationState.ENTERING, {
|
|
@@ -76,10 +74,10 @@ exports.transitions = transitions;
|
|
|
76
74
|
function NotificationsProvider(_ref) {
|
|
77
75
|
var children = _ref.children;
|
|
78
76
|
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
notifications =
|
|
82
|
-
setNotifications =
|
|
77
|
+
var _React$useState = React.useState([]),
|
|
78
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
79
|
+
notifications = _React$useState2[0],
|
|
80
|
+
setNotifications = _React$useState2[1];
|
|
83
81
|
/**
|
|
84
82
|
* Advances a notification to either the specified state or the next state for the current state
|
|
85
83
|
*/
|
|
@@ -112,6 +110,16 @@ function NotificationsProvider(_ref) {
|
|
|
112
110
|
})];
|
|
113
111
|
}
|
|
114
112
|
|
|
113
|
+
if (meta.state === _types.NotificationState.COLLAPSING_ALL && props.onClose) {
|
|
114
|
+
try {
|
|
115
|
+
props.onClose(new MouseEvent('click'));
|
|
116
|
+
} catch (_unused) {
|
|
117
|
+
// IE doesn't support MouseEvent. If you support IE, you must verify or mock
|
|
118
|
+
// attributes required by this event handler.
|
|
119
|
+
props.onClose({});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
115
123
|
return undefined;
|
|
116
124
|
}
|
|
117
125
|
|
|
@@ -134,7 +142,7 @@ function NotificationsProvider(_ref) {
|
|
|
134
142
|
});
|
|
135
143
|
};
|
|
136
144
|
|
|
137
|
-
var notify =
|
|
145
|
+
var notify = React.useCallback(function () {
|
|
138
146
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
139
147
|
args[_key] = arguments[_key];
|
|
140
148
|
}
|
|
@@ -148,25 +156,23 @@ function NotificationsProvider(_ref) {
|
|
|
148
156
|
// notification dispatched.
|
|
149
157
|
var newNotificationParams = args[0](oldNotifications);
|
|
150
158
|
|
|
151
|
-
if (
|
|
159
|
+
if (!newNotificationParams) {
|
|
152
160
|
// In the scenario where a callback arg is provided but returns void,
|
|
153
161
|
// block the rest of the logic and move on. There should be no change.
|
|
154
162
|
return oldNotifications;
|
|
155
163
|
}
|
|
156
164
|
|
|
157
|
-
var
|
|
165
|
+
var _newNotificationParam = _slicedToArray(newNotificationParams, 2);
|
|
166
|
+
|
|
167
|
+
options = _newNotificationParam[0];
|
|
168
|
+
body = _newNotificationParam[1];
|
|
169
|
+
} else {
|
|
170
|
+
var _ref6 = args;
|
|
158
171
|
|
|
159
172
|
var _ref7 = _slicedToArray(_ref6, 2);
|
|
160
173
|
|
|
161
174
|
options = _ref7[0];
|
|
162
175
|
body = _ref7[1];
|
|
163
|
-
} else {
|
|
164
|
-
var _ref8 = args;
|
|
165
|
-
|
|
166
|
-
var _ref9 = _slicedToArray(_ref8, 2);
|
|
167
|
-
|
|
168
|
-
options = _ref9[0];
|
|
169
|
-
body = _ref9[1];
|
|
170
176
|
}
|
|
171
177
|
|
|
172
178
|
var notificationID = (0, _uniqueId.default)("notification-".concat(options.id, "-"));
|
|
@@ -174,6 +180,9 @@ function NotificationsProvider(_ref) {
|
|
|
174
180
|
setTimeout(function () {
|
|
175
181
|
transition(notificationID);
|
|
176
182
|
}, duration);
|
|
183
|
+
var autoDismiss = options.duration && setTimeout(function () {
|
|
184
|
+
transition(notificationID, _types.NotificationState.COLLAPSING);
|
|
185
|
+
}, duration + options.duration);
|
|
177
186
|
|
|
178
187
|
var closeNotificationAfter = function closeNotificationAfter(callback) {
|
|
179
188
|
return function (event) {
|
|
@@ -185,9 +194,13 @@ function NotificationsProvider(_ref) {
|
|
|
185
194
|
};
|
|
186
195
|
};
|
|
187
196
|
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
|
|
197
|
+
var suspendAutoDismiss = function suspendAutoDismiss() {
|
|
198
|
+
clearTimeout(autoDismiss);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
var actions = options.actions && options.actions.map(function (_ref8) {
|
|
202
|
+
var onClick = _ref8.onClick,
|
|
203
|
+
rest = _objectWithoutProperties(_ref8, ["onClick"]);
|
|
191
204
|
|
|
192
205
|
return _objectSpread({
|
|
193
206
|
onClick: closeNotificationAfter(onClick)
|
|
@@ -196,7 +209,9 @@ function NotificationsProvider(_ref) {
|
|
|
196
209
|
return [[_objectSpread({}, options, {
|
|
197
210
|
actions: actions,
|
|
198
211
|
id: options.id || notificationID,
|
|
199
|
-
onClose: closeNotificationAfter(options.onClose)
|
|
212
|
+
onClose: options.onClose && closeNotificationAfter(options.onClose),
|
|
213
|
+
onFocus: suspendAutoDismiss,
|
|
214
|
+
onHover: suspendAutoDismiss
|
|
200
215
|
}), body, {
|
|
201
216
|
notificationID: notificationID,
|
|
202
217
|
state: _types.NotificationState.ENTERING
|
|
@@ -204,9 +219,13 @@ function NotificationsProvider(_ref) {
|
|
|
204
219
|
});
|
|
205
220
|
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
206
221
|
[setNotifications]);
|
|
207
|
-
|
|
222
|
+
var isDismissingAll = React.useMemo(function () {
|
|
223
|
+
return !(0, _isEmpty.default)(notifications) && notifications[0][2].state === _types.NotificationState.COLLAPSING_ALL;
|
|
224
|
+
}, [notifications]);
|
|
225
|
+
return React.createElement(NotificationsContext.Provider, {
|
|
208
226
|
value: {
|
|
209
227
|
dismissAll: dismissAll,
|
|
228
|
+
isDismissingAll: isDismissingAll,
|
|
210
229
|
notifications: notifications,
|
|
211
230
|
notify: notify
|
|
212
231
|
}
|
|
@@ -11,13 +11,16 @@ export interface TActionProps {
|
|
|
11
11
|
}
|
|
12
12
|
export interface TNotificationProps {
|
|
13
13
|
actions?: [TActionProps] | [TActionProps, TActionProps];
|
|
14
|
+
duration?: number;
|
|
14
15
|
children?: React.ReactNode;
|
|
15
16
|
closeHint?: string;
|
|
16
17
|
color?: StatusColorsKeys;
|
|
17
18
|
icon?: IconComponent;
|
|
18
19
|
id: string;
|
|
19
20
|
intent?: keyof typeof intents;
|
|
20
|
-
onClose
|
|
21
|
+
onClose?: React.MouseEventHandler;
|
|
22
|
+
onFocus?: React.FocusEventHandler;
|
|
23
|
+
onHover?: React.MouseEventHandler;
|
|
21
24
|
title: string;
|
|
22
25
|
}
|
|
23
26
|
export declare type TNotificationOptions = TNotificationProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC9B,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/providers/NotificationsProvider/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,oBAAoB,GAAG,kBAAkB,CAAC;AAEtD,oBAAY,iBAAiB;IAC3B,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,cAAc,mBAAmB;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAED,oBAAY,aAAa,GAAG,CAC1B,oBAAoB,EACpB,GAAG,CAAC,OAAO,GAAG,SAAS,EACvB,iBAAiB,CAClB,CAAC;AACF,oBAAY,cAAc,GAAG,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,oBAAY,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|