@decisiv/ui-components 2.0.1-alpha.17 → 2.0.1-alpha.173
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/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 +6 -0
- package/lib/atoms/InputField/index.d.ts.map +1 -1
- package/lib/atoms/InputField/index.js +25 -8
- package/lib/atoms/InputField/index.test.js +91 -0
- package/lib/atoms/InputField/schema.d.ts.map +1 -1
- package/lib/atoms/InputField/schema.js +3 -2
- package/lib/atoms/OptionsList/Category.d.ts +1 -1
- package/lib/atoms/OptionsList/Category.d.ts.map +1 -1
- package/lib/atoms/OptionsList/Category.js +4 -2
- package/lib/atoms/OptionsList/Footer.d.ts +8 -0
- package/lib/atoms/OptionsList/Footer.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Footer.js +72 -0
- package/lib/atoms/OptionsList/Option.d.ts.map +1 -1
- package/lib/atoms/OptionsList/Option.js +24 -9
- package/lib/atoms/OptionsList/index.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.js +44 -17
- package/lib/atoms/OptionsList/index.test.js +127 -17
- package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
- package/lib/atoms/OptionsList/schema.js +5 -0
- package/lib/atoms/OptionsList/types.d.ts +15 -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/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 +12 -23
- package/lib/components/Badge/index.test.js +51 -8
- package/lib/components/Badge/schema.js +1 -1
- package/lib/components/Badge/types.d.ts +1 -1
- 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 -2
- package/lib/components/Button/StyledButton.d.ts.map +1 -1
- package/lib/components/Button/StyledButton.js +21 -7
- package/lib/components/Button/index.d.ts.map +1 -1
- package/lib/components/Button/index.js +19 -9
- package/lib/components/Button/index.test.js +24 -8
- package/lib/components/Button/schema.d.ts +6 -1
- package/lib/components/Button/schema.d.ts.map +1 -1
- package/lib/components/Button/schema.js +11 -5
- package/lib/components/Button/types.d.ts +2 -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/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 +196 -66
- package/lib/components/Combobox/index.test.js +369 -146
- package/lib/components/Combobox/schema.d.ts.map +1 -1
- package/lib/components/Combobox/schema.js +10 -2
- package/lib/components/Combobox/types.d.ts +12 -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 +105 -0
- package/lib/components/Drawer/index.test.js +122 -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 +4 -0
- package/lib/components/DropdownList/index.d.ts.map +1 -1
- package/lib/components/DropdownList/index.js +76 -11
- 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 +6 -1
- package/lib/components/DropdownList/types.d.ts +4 -1
- package/lib/components/DropdownList/types.d.ts.map +1 -1
- 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 +31 -0
- package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
- package/lib/components/Filter/SimplePrimary/index.js +58 -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 +41 -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 +30 -0
- package/lib/components/Filter/index.d.ts +5 -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 +60 -0
- package/lib/components/Filter/kind.d.ts +6 -0
- package/lib/components/Filter/kind.d.ts.map +1 -0
- package/lib/components/Filter/kind.js +45 -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 +33 -0
- package/lib/components/Filter/types.d.ts +18 -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 +3 -3
- 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 -3
- 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/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/index.d.ts.map +1 -1
- package/lib/components/Menu/index.js +3 -1
- package/lib/components/Menu/types.d.ts +2 -0
- package/lib/components/Menu/types.d.ts.map +1 -1
- package/lib/components/Menu/types.js +5 -1
- package/lib/components/Modal/components.d.ts +2 -2
- package/lib/components/Modal/types.js +5 -1
- 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/Pagination.d.ts +1 -1
- package/lib/components/Pagination/Pagination.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.js +1 -0
- package/lib/components/Pagination/Pagination.test.js +9 -0
- 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/index.d.ts.map +1 -1
- package/lib/components/Popover/index.js +6 -3
- 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 +1 -0
- 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 +190 -0
- package/lib/components/SearchInput/index.test.js +417 -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 +24 -0
- package/lib/components/SearchInput/types.d.ts +28 -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 +44 -4
- 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 +9 -0
- package/lib/components/Select/types.d.ts +6 -1
- 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 +32 -3
- 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 +31 -2
- 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/SelectMenu/index.d.ts +5 -0
- package/lib/components/SelectMenu/index.d.ts.map +1 -1
- package/lib/components/SelectMenu/index.js +27 -3
- package/lib/components/SelectMenu/schema.d.ts.map +1 -1
- package/lib/components/SelectMenu/schema.js +4 -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 +3 -0
- 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 +167 -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/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/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/index.d.ts +8 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +126 -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 +24 -0
- package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/translations.js +24 -0
- 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/utils/commonUIColors.d.ts +349 -1
- 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/useFirstMount.d.ts +2 -0
- package/lib/utils/useFirstMount.d.ts.map +1 -0
- package/lib/utils/useFirstMount.js +19 -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/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
package/lib/components/index.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Accordion: true,
|
|
8
|
+
Alert: true,
|
|
9
|
+
AlertProps: true,
|
|
8
10
|
AvatarProps: true,
|
|
9
11
|
AvatarRef: true,
|
|
10
12
|
Avatar: true,
|
|
@@ -17,11 +19,13 @@ var _exportNames = {
|
|
|
17
19
|
Checkbox: true,
|
|
18
20
|
CheckboxGroup: true,
|
|
19
21
|
Combobox: true,
|
|
22
|
+
Drawer: true,
|
|
20
23
|
DropdownList: true,
|
|
21
24
|
DropdownListCategory: true,
|
|
22
25
|
DropdownListItem: true,
|
|
23
26
|
DropdownListOption: true,
|
|
24
27
|
DropdownListProps: true,
|
|
28
|
+
Filter: true,
|
|
25
29
|
Flex: true,
|
|
26
30
|
Column: true,
|
|
27
31
|
Container: true,
|
|
@@ -32,6 +36,10 @@ var _exportNames = {
|
|
|
32
36
|
LeftNav: true,
|
|
33
37
|
useStickyLeftNav: true,
|
|
34
38
|
Link: true,
|
|
39
|
+
Loading: true,
|
|
40
|
+
LoadingProps: true,
|
|
41
|
+
LoadingSize: true,
|
|
42
|
+
LoadingVariant: true,
|
|
35
43
|
Menu: true,
|
|
36
44
|
Message: true,
|
|
37
45
|
Modal: true,
|
|
@@ -41,9 +49,12 @@ var _exportNames = {
|
|
|
41
49
|
Notifier: true,
|
|
42
50
|
useNotifications: true,
|
|
43
51
|
Pagination: true,
|
|
52
|
+
PasswordField: true,
|
|
44
53
|
Popover: true,
|
|
45
54
|
RadioGroup: true,
|
|
46
55
|
Select: true,
|
|
56
|
+
SearchInput: true,
|
|
57
|
+
SearchItem: true,
|
|
47
58
|
SelectDate: true,
|
|
48
59
|
DisabledDateRuleName: true,
|
|
49
60
|
DayOfWeek: true,
|
|
@@ -53,12 +64,17 @@ var _exportNames = {
|
|
|
53
64
|
TableProps: true,
|
|
54
65
|
Tabs: true,
|
|
55
66
|
Tab: true,
|
|
67
|
+
TabsProps: true,
|
|
68
|
+
TabData: true,
|
|
69
|
+
TabIcon: true,
|
|
70
|
+
TabProps: true,
|
|
56
71
|
Tag: true,
|
|
57
72
|
TagActionButtonRef: true,
|
|
58
73
|
TagRef: true,
|
|
59
74
|
TextArea: true,
|
|
60
75
|
TextField: true,
|
|
61
76
|
Toggle: true,
|
|
77
|
+
ToggleView: true,
|
|
62
78
|
TopNav: true,
|
|
63
79
|
Tooltip: true
|
|
64
80
|
};
|
|
@@ -68,6 +84,18 @@ Object.defineProperty(exports, "Accordion", {
|
|
|
68
84
|
return _Accordion.default;
|
|
69
85
|
}
|
|
70
86
|
});
|
|
87
|
+
Object.defineProperty(exports, "Alert", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _Alert.default;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "AlertProps", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function get() {
|
|
96
|
+
return _Alert.AlertProps;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
71
99
|
Object.defineProperty(exports, "AvatarProps", {
|
|
72
100
|
enumerable: true,
|
|
73
101
|
get: function get() {
|
|
@@ -140,6 +168,12 @@ Object.defineProperty(exports, "Combobox", {
|
|
|
140
168
|
return _Combobox.default;
|
|
141
169
|
}
|
|
142
170
|
});
|
|
171
|
+
Object.defineProperty(exports, "Drawer", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function get() {
|
|
174
|
+
return _Drawer.default;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
143
177
|
Object.defineProperty(exports, "DropdownList", {
|
|
144
178
|
enumerable: true,
|
|
145
179
|
get: function get() {
|
|
@@ -170,6 +204,12 @@ Object.defineProperty(exports, "DropdownListProps", {
|
|
|
170
204
|
return _DropdownList.DropdownListProps;
|
|
171
205
|
}
|
|
172
206
|
});
|
|
207
|
+
Object.defineProperty(exports, "Filter", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function get() {
|
|
210
|
+
return _Filter.default;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
173
213
|
Object.defineProperty(exports, "Flex", {
|
|
174
214
|
enumerable: true,
|
|
175
215
|
get: function get() {
|
|
@@ -230,6 +270,30 @@ Object.defineProperty(exports, "Link", {
|
|
|
230
270
|
return _Link.default;
|
|
231
271
|
}
|
|
232
272
|
});
|
|
273
|
+
Object.defineProperty(exports, "Loading", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function get() {
|
|
276
|
+
return _Loading.default;
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(exports, "LoadingProps", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: function get() {
|
|
282
|
+
return _Loading.LoadingProps;
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(exports, "LoadingSize", {
|
|
286
|
+
enumerable: true,
|
|
287
|
+
get: function get() {
|
|
288
|
+
return _Loading.LoadingSize;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(exports, "LoadingVariant", {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function get() {
|
|
294
|
+
return _Loading.LoadingVariant;
|
|
295
|
+
}
|
|
296
|
+
});
|
|
233
297
|
Object.defineProperty(exports, "Menu", {
|
|
234
298
|
enumerable: true,
|
|
235
299
|
get: function get() {
|
|
@@ -284,6 +348,12 @@ Object.defineProperty(exports, "Pagination", {
|
|
|
284
348
|
return _Pagination.default;
|
|
285
349
|
}
|
|
286
350
|
});
|
|
351
|
+
Object.defineProperty(exports, "PasswordField", {
|
|
352
|
+
enumerable: true,
|
|
353
|
+
get: function get() {
|
|
354
|
+
return _PasswordField.default;
|
|
355
|
+
}
|
|
356
|
+
});
|
|
287
357
|
Object.defineProperty(exports, "Popover", {
|
|
288
358
|
enumerable: true,
|
|
289
359
|
get: function get() {
|
|
@@ -302,6 +372,18 @@ Object.defineProperty(exports, "Select", {
|
|
|
302
372
|
return _Select.default;
|
|
303
373
|
}
|
|
304
374
|
});
|
|
375
|
+
Object.defineProperty(exports, "SearchInput", {
|
|
376
|
+
enumerable: true,
|
|
377
|
+
get: function get() {
|
|
378
|
+
return _SearchInput.default;
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
Object.defineProperty(exports, "SearchItem", {
|
|
382
|
+
enumerable: true,
|
|
383
|
+
get: function get() {
|
|
384
|
+
return _SearchInput.SearchItem;
|
|
385
|
+
}
|
|
386
|
+
});
|
|
305
387
|
Object.defineProperty(exports, "SelectDate", {
|
|
306
388
|
enumerable: true,
|
|
307
389
|
get: function get() {
|
|
@@ -356,6 +438,30 @@ Object.defineProperty(exports, "Tab", {
|
|
|
356
438
|
return _Tabs.Tab;
|
|
357
439
|
}
|
|
358
440
|
});
|
|
441
|
+
Object.defineProperty(exports, "TabsProps", {
|
|
442
|
+
enumerable: true,
|
|
443
|
+
get: function get() {
|
|
444
|
+
return _Tabs.TabsProps;
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
Object.defineProperty(exports, "TabData", {
|
|
448
|
+
enumerable: true,
|
|
449
|
+
get: function get() {
|
|
450
|
+
return _Tabs.TabData;
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
Object.defineProperty(exports, "TabIcon", {
|
|
454
|
+
enumerable: true,
|
|
455
|
+
get: function get() {
|
|
456
|
+
return _Tabs.TabIcon;
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
Object.defineProperty(exports, "TabProps", {
|
|
460
|
+
enumerable: true,
|
|
461
|
+
get: function get() {
|
|
462
|
+
return _Tabs.TabProps;
|
|
463
|
+
}
|
|
464
|
+
});
|
|
359
465
|
Object.defineProperty(exports, "Tag", {
|
|
360
466
|
enumerable: true,
|
|
361
467
|
get: function get() {
|
|
@@ -392,6 +498,12 @@ Object.defineProperty(exports, "Toggle", {
|
|
|
392
498
|
return _Toggle.default;
|
|
393
499
|
}
|
|
394
500
|
});
|
|
501
|
+
Object.defineProperty(exports, "ToggleView", {
|
|
502
|
+
enumerable: true,
|
|
503
|
+
get: function get() {
|
|
504
|
+
return _ToggleView.default;
|
|
505
|
+
}
|
|
506
|
+
});
|
|
395
507
|
Object.defineProperty(exports, "TopNav", {
|
|
396
508
|
enumerable: true,
|
|
397
509
|
get: function get() {
|
|
@@ -407,6 +519,8 @@ Object.defineProperty(exports, "Tooltip", {
|
|
|
407
519
|
|
|
408
520
|
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
409
521
|
|
|
522
|
+
var _Alert = _interopRequireWildcard(require("./Alert"));
|
|
523
|
+
|
|
410
524
|
var _Avatar = _interopRequireWildcard(require("./Avatar"));
|
|
411
525
|
|
|
412
526
|
var _Badge = _interopRequireWildcard(require("./Badge"));
|
|
@@ -421,8 +535,12 @@ var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
|
|
|
421
535
|
|
|
422
536
|
var _Combobox = _interopRequireDefault(require("./Combobox"));
|
|
423
537
|
|
|
538
|
+
var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
539
|
+
|
|
424
540
|
var _DropdownList = _interopRequireWildcard(require("./DropdownList"));
|
|
425
541
|
|
|
542
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
543
|
+
|
|
426
544
|
var _Flex = _interopRequireDefault(require("./Flex"));
|
|
427
545
|
|
|
428
546
|
var _Grid = _interopRequireWildcard(require("./Grid"));
|
|
@@ -433,6 +551,8 @@ var _LeftNav = _interopRequireWildcard(require("./LeftNav"));
|
|
|
433
551
|
|
|
434
552
|
var _Link = _interopRequireDefault(require("./Link"));
|
|
435
553
|
|
|
554
|
+
var _Loading = _interopRequireWildcard(require("./Loading"));
|
|
555
|
+
|
|
436
556
|
var _Menu = _interopRequireDefault(require("./Menu"));
|
|
437
557
|
|
|
438
558
|
var _Message = _interopRequireDefault(require("./Message"));
|
|
@@ -445,12 +565,16 @@ var _Notifications = require("./Notifications");
|
|
|
445
565
|
|
|
446
566
|
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
447
567
|
|
|
568
|
+
var _PasswordField = _interopRequireDefault(require("./PasswordField"));
|
|
569
|
+
|
|
448
570
|
var _Popover = _interopRequireDefault(require("./Popover"));
|
|
449
571
|
|
|
450
572
|
var _RadioGroup = _interopRequireDefault(require("./RadioGroup"));
|
|
451
573
|
|
|
452
574
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
453
575
|
|
|
576
|
+
var _SearchInput = _interopRequireWildcard(require("./SearchInput"));
|
|
577
|
+
|
|
454
578
|
var _SelectDate = _interopRequireWildcard(require("./SelectDate"));
|
|
455
579
|
|
|
456
580
|
var _SelectDateRange = _interopRequireDefault(require("./SelectDateRange"));
|
|
@@ -469,6 +593,8 @@ var _TextField = _interopRequireDefault(require("./TextField"));
|
|
|
469
593
|
|
|
470
594
|
var _Toggle = _interopRequireDefault(require("./Toggle"));
|
|
471
595
|
|
|
596
|
+
var _ToggleView = _interopRequireDefault(require("./ToggleView"));
|
|
597
|
+
|
|
472
598
|
var _TopNav = _interopRequireDefault(require("./TopNav"));
|
|
473
599
|
|
|
474
600
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacingSchema.d.ts","sourceRoot":"","sources":["../../src/modifiers/spacingSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spacingSchema.d.ts","sourceRoot":"","sources":["../../src/modifiers/spacingSchema.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B,cA2CrC,CAAC"}
|
|
@@ -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";
|
|
@@ -49,6 +53,10 @@ declare const translations: {
|
|
|
49
53
|
readonly viewNextMonth: "View next month";
|
|
50
54
|
readonly viewPrevMonth: "View previous month";
|
|
51
55
|
};
|
|
56
|
+
drawer: {
|
|
57
|
+
readonly closeBtnTooltip: "Close";
|
|
58
|
+
readonly closeBtn: "Close Drawer";
|
|
59
|
+
};
|
|
52
60
|
jumpTo: {
|
|
53
61
|
readonly menuLabel: "Jump To";
|
|
54
62
|
readonly navLabel: "Jump To:";
|
|
@@ -118,6 +126,22 @@ declare const translations: {
|
|
|
118
126
|
textField: {
|
|
119
127
|
readonly requiredMessage: "Required";
|
|
120
128
|
};
|
|
129
|
+
toggleView: {
|
|
130
|
+
aria: {
|
|
131
|
+
readonly label: "Toggle View";
|
|
132
|
+
readonly element: "View element {id}";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
passwordField: {
|
|
136
|
+
readonly showPassword: "Show Password";
|
|
137
|
+
readonly hidePassword: "Hide Password";
|
|
138
|
+
readonly password: "Password";
|
|
139
|
+
};
|
|
140
|
+
searchInput: {
|
|
141
|
+
readonly clear: "Clear";
|
|
142
|
+
readonly search: "Search";
|
|
143
|
+
readonly clearSearch: "Clear search";
|
|
144
|
+
};
|
|
121
145
|
};
|
|
122
146
|
export declare type Translations = typeof translations;
|
|
123
147
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIR,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'
|
|
@@ -55,6 +59,10 @@ var translations = {
|
|
|
55
59
|
viewNextMonth: 'View next month',
|
|
56
60
|
viewPrevMonth: 'View previous month'
|
|
57
61
|
},
|
|
62
|
+
drawer: {
|
|
63
|
+
closeBtnTooltip: 'Close',
|
|
64
|
+
closeBtn: 'Close Drawer'
|
|
65
|
+
},
|
|
58
66
|
jumpTo: {
|
|
59
67
|
menuLabel: 'Jump To',
|
|
60
68
|
navLabel: 'Jump To:'
|
|
@@ -123,6 +131,22 @@ var translations = {
|
|
|
123
131
|
},
|
|
124
132
|
textField: {
|
|
125
133
|
requiredMessage: 'Required'
|
|
134
|
+
},
|
|
135
|
+
toggleView: {
|
|
136
|
+
aria: {
|
|
137
|
+
label: 'Toggle View',
|
|
138
|
+
element: 'View element {id}'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
passwordField: {
|
|
142
|
+
showPassword: 'Show Password',
|
|
143
|
+
hidePassword: 'Hide Password',
|
|
144
|
+
password: 'Password'
|
|
145
|
+
},
|
|
146
|
+
searchInput: {
|
|
147
|
+
clear: 'Clear',
|
|
148
|
+
search: 'Search',
|
|
149
|
+
clearSearch: 'Clear search'
|
|
126
150
|
}
|
|
127
151
|
};
|
|
128
152
|
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
|
}
|