@decisiv/ui-components 2.0.1-alpha.16 → 2.0.1-alpha.161
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/Alert/schema.d.ts +3 -0
- 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 +51 -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 +44 -21
- 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/types.js +5 -1
- 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 +7 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +98 -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/Tag/ActionButton.d.ts +0 -5
- package/lib/components/Tag/ActionButton.d.ts.map +0 -1
- package/lib/components/Tag/ActionButton.js +0 -56
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexComponentProps } from '../Flex';
|
|
3
|
+
import { Size } from './types';
|
|
4
|
+
interface ContainerProps extends FlexComponentProps {
|
|
5
|
+
loadingSize: Size;
|
|
6
|
+
}
|
|
7
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
8
|
+
readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
9
|
+
readonly XS: "XS";
|
|
10
|
+
readonly SM: "SM";
|
|
11
|
+
readonly MD: "MD";
|
|
12
|
+
readonly LG: "LG";
|
|
13
|
+
readonly XL: "XL";
|
|
14
|
+
}> | undefined;
|
|
15
|
+
readonly alignItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
16
|
+
readonly XS: "XS";
|
|
17
|
+
readonly SM: "SM";
|
|
18
|
+
readonly MD: "MD";
|
|
19
|
+
readonly LG: "LG";
|
|
20
|
+
readonly XL: "XL";
|
|
21
|
+
}> | undefined;
|
|
22
|
+
readonly alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
23
|
+
readonly XS: "XS";
|
|
24
|
+
readonly SM: "SM";
|
|
25
|
+
readonly MD: "MD";
|
|
26
|
+
readonly LG: "LG";
|
|
27
|
+
readonly XL: "XL";
|
|
28
|
+
}> | undefined;
|
|
29
|
+
readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
|
|
30
|
+
readonly XS: "XS";
|
|
31
|
+
readonly SM: "SM";
|
|
32
|
+
readonly MD: "MD";
|
|
33
|
+
readonly LG: "LG";
|
|
34
|
+
readonly XL: "XL";
|
|
35
|
+
}> | undefined;
|
|
36
|
+
readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
37
|
+
readonly XS: "XS";
|
|
38
|
+
readonly SM: "SM";
|
|
39
|
+
readonly MD: "MD";
|
|
40
|
+
readonly LG: "LG";
|
|
41
|
+
readonly XL: "XL";
|
|
42
|
+
}> | undefined;
|
|
43
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
44
|
+
readonly XS: "XS";
|
|
45
|
+
readonly SM: "SM";
|
|
46
|
+
readonly MD: "MD";
|
|
47
|
+
readonly LG: "LG";
|
|
48
|
+
readonly XL: "XL";
|
|
49
|
+
}> | undefined;
|
|
50
|
+
readonly flexGrow?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
51
|
+
readonly XS: "XS";
|
|
52
|
+
readonly SM: "SM";
|
|
53
|
+
readonly MD: "MD";
|
|
54
|
+
readonly LG: "LG";
|
|
55
|
+
readonly XL: "XL";
|
|
56
|
+
}> | undefined;
|
|
57
|
+
readonly flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
58
|
+
readonly XS: "XS";
|
|
59
|
+
readonly SM: "SM";
|
|
60
|
+
readonly MD: "MD";
|
|
61
|
+
readonly LG: "LG";
|
|
62
|
+
readonly XL: "XL";
|
|
63
|
+
}> | undefined;
|
|
64
|
+
readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
|
|
65
|
+
readonly XS: "XS";
|
|
66
|
+
readonly SM: "SM";
|
|
67
|
+
readonly MD: "MD";
|
|
68
|
+
readonly LG: "LG";
|
|
69
|
+
readonly XL: "XL";
|
|
70
|
+
}> | undefined;
|
|
71
|
+
readonly justifyContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
72
|
+
readonly XS: "XS";
|
|
73
|
+
readonly SM: "SM";
|
|
74
|
+
readonly MD: "MD";
|
|
75
|
+
readonly LG: "LG";
|
|
76
|
+
readonly XL: "XL";
|
|
77
|
+
}> | undefined;
|
|
78
|
+
readonly justifyItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
79
|
+
readonly XS: "XS";
|
|
80
|
+
readonly SM: "SM";
|
|
81
|
+
readonly MD: "MD";
|
|
82
|
+
readonly LG: "LG";
|
|
83
|
+
readonly XL: "XL";
|
|
84
|
+
}> | undefined;
|
|
85
|
+
readonly justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
86
|
+
readonly XS: "XS";
|
|
87
|
+
readonly SM: "SM";
|
|
88
|
+
readonly MD: "MD";
|
|
89
|
+
readonly LG: "LG";
|
|
90
|
+
readonly XL: "XL";
|
|
91
|
+
}> | undefined;
|
|
92
|
+
readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
93
|
+
readonly XS: "XS";
|
|
94
|
+
readonly SM: "SM";
|
|
95
|
+
readonly MD: "MD";
|
|
96
|
+
readonly LG: "LG";
|
|
97
|
+
readonly XL: "XL";
|
|
98
|
+
}> | undefined;
|
|
99
|
+
readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
|
|
100
|
+
}> & Partial<{
|
|
101
|
+
readonly margin: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
102
|
+
readonly XS: "XS";
|
|
103
|
+
readonly SM: "SM";
|
|
104
|
+
readonly MD: "MD";
|
|
105
|
+
readonly LG: "LG";
|
|
106
|
+
readonly XL: "XL";
|
|
107
|
+
}>;
|
|
108
|
+
readonly marginBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
109
|
+
readonly XS: "XS";
|
|
110
|
+
readonly SM: "SM";
|
|
111
|
+
readonly MD: "MD";
|
|
112
|
+
readonly LG: "LG";
|
|
113
|
+
readonly XL: "XL";
|
|
114
|
+
}>;
|
|
115
|
+
readonly marginLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
116
|
+
readonly XS: "XS";
|
|
117
|
+
readonly SM: "SM";
|
|
118
|
+
readonly MD: "MD";
|
|
119
|
+
readonly LG: "LG";
|
|
120
|
+
readonly XL: "XL";
|
|
121
|
+
}>;
|
|
122
|
+
readonly marginRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
123
|
+
readonly XS: "XS";
|
|
124
|
+
readonly SM: "SM";
|
|
125
|
+
readonly MD: "MD";
|
|
126
|
+
readonly LG: "LG";
|
|
127
|
+
readonly XL: "XL";
|
|
128
|
+
}>;
|
|
129
|
+
readonly marginTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
130
|
+
readonly XS: "XS";
|
|
131
|
+
readonly SM: "SM";
|
|
132
|
+
readonly MD: "MD";
|
|
133
|
+
readonly LG: "LG";
|
|
134
|
+
readonly XL: "XL";
|
|
135
|
+
}>;
|
|
136
|
+
readonly marginX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
137
|
+
readonly XS: "XS";
|
|
138
|
+
readonly SM: "SM";
|
|
139
|
+
readonly MD: "MD";
|
|
140
|
+
readonly LG: "LG";
|
|
141
|
+
readonly XL: "XL";
|
|
142
|
+
}>;
|
|
143
|
+
readonly marginY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
144
|
+
readonly XS: "XS";
|
|
145
|
+
readonly SM: "SM";
|
|
146
|
+
readonly MD: "MD";
|
|
147
|
+
readonly LG: "LG";
|
|
148
|
+
readonly XL: "XL";
|
|
149
|
+
}>;
|
|
150
|
+
readonly padding: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
151
|
+
readonly XS: "XS";
|
|
152
|
+
readonly SM: "SM";
|
|
153
|
+
readonly MD: "MD";
|
|
154
|
+
readonly LG: "LG";
|
|
155
|
+
readonly XL: "XL";
|
|
156
|
+
}>;
|
|
157
|
+
readonly paddingBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
158
|
+
readonly XS: "XS";
|
|
159
|
+
readonly SM: "SM";
|
|
160
|
+
readonly MD: "MD";
|
|
161
|
+
readonly LG: "LG";
|
|
162
|
+
readonly XL: "XL";
|
|
163
|
+
}>;
|
|
164
|
+
readonly paddingLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
165
|
+
readonly XS: "XS";
|
|
166
|
+
readonly SM: "SM";
|
|
167
|
+
readonly MD: "MD";
|
|
168
|
+
readonly LG: "LG";
|
|
169
|
+
readonly XL: "XL";
|
|
170
|
+
}>;
|
|
171
|
+
readonly paddingRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
172
|
+
readonly XS: "XS";
|
|
173
|
+
readonly SM: "SM";
|
|
174
|
+
readonly MD: "MD";
|
|
175
|
+
readonly LG: "LG";
|
|
176
|
+
readonly XL: "XL";
|
|
177
|
+
}>;
|
|
178
|
+
readonly paddingTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
179
|
+
readonly XS: "XS";
|
|
180
|
+
readonly SM: "SM";
|
|
181
|
+
readonly MD: "MD";
|
|
182
|
+
readonly LG: "LG";
|
|
183
|
+
readonly XL: "XL";
|
|
184
|
+
}>;
|
|
185
|
+
readonly paddingX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
186
|
+
readonly XS: "XS";
|
|
187
|
+
readonly SM: "SM";
|
|
188
|
+
readonly MD: "MD";
|
|
189
|
+
readonly LG: "LG";
|
|
190
|
+
readonly XL: "XL";
|
|
191
|
+
}>;
|
|
192
|
+
readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
193
|
+
readonly XS: "XS";
|
|
194
|
+
readonly SM: "SM";
|
|
195
|
+
readonly MD: "MD";
|
|
196
|
+
readonly LG: "LG";
|
|
197
|
+
readonly XL: "XL";
|
|
198
|
+
}>;
|
|
199
|
+
}> & ContainerProps, never>;
|
|
200
|
+
export declare const AnimationContainer: import("styled-components").StyledComponent<"div", any, {
|
|
201
|
+
size: Size;
|
|
202
|
+
}, never>;
|
|
203
|
+
export declare const Bouncer: import("styled-components").StyledComponent<"div", any, {
|
|
204
|
+
inverted?: boolean | undefined;
|
|
205
|
+
shadow?: boolean | undefined;
|
|
206
|
+
}, never>;
|
|
207
|
+
export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {
|
|
208
|
+
size: Size;
|
|
209
|
+
}, never>;
|
|
210
|
+
export {};
|
|
211
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/styles.ts"],"names":[],"mappings":";AAOA,OAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAmB/B,UAAU,cAAe,SAAQ,kBAAkB;IACjD,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGrB,CAAC;AAoBF,eAAO,MAAM,kBAAkB;;SAI9B,CAAC;AAEF,eAAO,MAAM,OAAO;;;SAiCnB,CAAC;AAmBF,eAAO,MAAM,aAAa;;SAIzB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextContainer = exports.Bouncer = exports.AnimationContainer = exports.Container = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
|
|
11
|
+
|
|
12
|
+
var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
|
|
13
|
+
|
|
14
|
+
var _designTokens = require("@decisiv/design-tokens");
|
|
15
|
+
|
|
16
|
+
var _Flex = _interopRequireDefault(require("../Flex"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
21
|
+
|
|
22
|
+
var CONTAINER_STYLE = {
|
|
23
|
+
small: (0, _styledComponents.css)(["flex-direction:row;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base * 0.5)),
|
|
24
|
+
medium: (0, _styledComponents.css)(["flex-direction:column;align-items:center;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base)),
|
|
25
|
+
large: (0, _styledComponents.css)(["flex-direction:column;align-items:center;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base))
|
|
26
|
+
};
|
|
27
|
+
var Container = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
28
|
+
displayName: "styles__Container",
|
|
29
|
+
componentId: "fjt04b-0"
|
|
30
|
+
})(["display:flex;", ";"], function (_ref) {
|
|
31
|
+
var loadingSize = _ref.loadingSize;
|
|
32
|
+
return CONTAINER_STYLE[loadingSize];
|
|
33
|
+
});
|
|
34
|
+
exports.Container = Container;
|
|
35
|
+
var ANIMATION_CONTAINER_STYLE = {
|
|
36
|
+
small: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 1.6), (0, _rem.default)(_designTokens.spacing.base * 1.6), (0, _rem.default)(_designTokens.spacing.base * 1.6)),
|
|
37
|
+
medium: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 3.6), (0, _rem.default)(_designTokens.spacing.base * 3.6), (0, _rem.default)(_designTokens.spacing.base * 3.6)),
|
|
38
|
+
large: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 4.8), (0, _rem.default)(_designTokens.spacing.base * 4.8), (0, _rem.default)(_designTokens.spacing.base * 4.8))
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
var AnimationContainer = _styledComponents.default.div.withConfig({
|
|
42
|
+
displayName: "styles__AnimationContainer",
|
|
43
|
+
componentId: "fjt04b-1"
|
|
44
|
+
})(["position:relative;", ""], function (_ref2) {
|
|
45
|
+
var size = _ref2.size;
|
|
46
|
+
return ANIMATION_CONTAINER_STYLE[size];
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
exports.AnimationContainer = AnimationContainer;
|
|
50
|
+
|
|
51
|
+
var Bouncer = _styledComponents.default.div.withConfig({
|
|
52
|
+
displayName: "styles__Bouncer",
|
|
53
|
+
componentId: "fjt04b-2"
|
|
54
|
+
})(["width:100%;height:100%;border-radius:50%;background-color:", ";opacity:0.6;position:absolute;top:0;left:0;animation:sk-bounce 2s infinite ease-in-out;", " ", " @keyframes sk-bounce{0%,100%{transform:scale(0);}50%{transform:scale(1);}}"], (0, _toColorString.default)(_designTokens.color.interaction.pacificOcean40), function (_ref3) {
|
|
55
|
+
var inverted = _ref3.inverted;
|
|
56
|
+
return inverted && (0, _styledComponents.css)(["background-color:", ";"], (0, _toColorString.default)(_designTokens.color.opacity.fullMoon50));
|
|
57
|
+
}, function (_ref4) {
|
|
58
|
+
var shadow = _ref4.shadow;
|
|
59
|
+
return shadow && (0, _styledComponents.css)(["animation-delay:-1s;"]);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
exports.Bouncer = Bouncer;
|
|
63
|
+
var TEXT_CONTAINER_STYLE = {
|
|
64
|
+
small: (0, _styledComponents.css)(["text-align:left;align-items:flex-start;"]),
|
|
65
|
+
medium: (0, _styledComponents.css)(["gap:", ";text-align:center;align-items:center;"], (0, _rem.default)(_designTokens.spacing.base * 0.5)),
|
|
66
|
+
large: (0, _styledComponents.css)(["gap:", ";text-align:center;align-items:center;"], (0, _rem.default)(_designTokens.spacing.base * 0.5))
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var TextContainer = _styledComponents.default.div.withConfig({
|
|
70
|
+
displayName: "styles__TextContainer",
|
|
71
|
+
componentId: "fjt04b-3"
|
|
72
|
+
})(["display:flex;flex-direction:column;", ";"], function (_ref5) {
|
|
73
|
+
var size = _ref5.size;
|
|
74
|
+
return TEXT_CONTAINER_STYLE[size];
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
exports.TextContainer = TextContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlexComponentProps } from '../Flex';
|
|
2
|
+
export declare type Size = 'small' | 'medium' | 'large';
|
|
3
|
+
export declare type Variant = 'normal' | 'inverted';
|
|
4
|
+
export interface LoadingProps extends Omit<FlexComponentProps, 'size'> {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
size?: Size;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,oBAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,oBAAY,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE5C,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AAMf,OAAO,EAAqB,KAAK,EAAE,MAAM,SAAS,CAAC;AAOnD,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AAMf,OAAO,EAAqB,KAAK,EAAE,MAAM,SAAS,CAAC;AAOnD,cAAc,SAAS,CAAC;AAgHxB,QAAA,MAAM,WAAW,gFAAmB,CAAC;AAsBrC,eAAe,WAAW,CAAC"}
|
|
@@ -64,7 +64,8 @@ var Menu = function Menu(props, _ref) {
|
|
|
64
64
|
var _props$items = props.items,
|
|
65
65
|
items = _props$items === void 0 ? [] : _props$items,
|
|
66
66
|
onSelectItem = props.onSelectItem,
|
|
67
|
-
allowTab = props.allowTab
|
|
67
|
+
allowTab = props.allowTab,
|
|
68
|
+
actions = props.actions;
|
|
68
69
|
|
|
69
70
|
var _useMemo = (0, _react.useMemo)(function () {
|
|
70
71
|
return items.reduce(function (acc, value) {
|
|
@@ -118,6 +119,7 @@ var Menu = function Menu(props, _ref) {
|
|
|
118
119
|
}
|
|
119
120
|
}, [allowTab]);
|
|
120
121
|
return _react.default.createElement(StyledMenu, {
|
|
122
|
+
actions: actions,
|
|
121
123
|
items: optionsListItems,
|
|
122
124
|
selectable: false,
|
|
123
125
|
multiple: false,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps } from '@decisiv/iconix';
|
|
3
|
+
import { FooterActions } from '../../atoms/OptionsList/types';
|
|
3
4
|
export declare type MenuRef = HTMLUListElement;
|
|
4
5
|
export declare type MenuItemRef = HTMLDivElement | HTMLAnchorElement;
|
|
5
6
|
export declare type InputMethod = 'mouse' | 'keyboard' | undefined;
|
|
@@ -8,6 +9,7 @@ export interface Props {
|
|
|
8
9
|
items: MenuItem[];
|
|
9
10
|
onSelectItem?: (item: MenuItem) => void;
|
|
10
11
|
allowTab?: boolean;
|
|
12
|
+
actions?: FooterActions;
|
|
11
13
|
}
|
|
12
14
|
export interface MenuItem {
|
|
13
15
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,oBAAY,OAAO,GAAG,gBAAgB,CAAC;AACvC,oBAAY,WAAW,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAC7D,oBAAY,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3D,oBAAY,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAE9D,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,oBAAY,OAAO,GAAG,gBAAgB,CAAC;AACvC,oBAAY,WAAW,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAC7D,oBAAY,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3D,oBAAY,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAE9D,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,oBAAY,aAAa,GAAG,QAAQ,GAAG;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,aAAa,GAAG;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
|
@@ -46,7 +46,7 @@ export declare const Content: import("styled-components").StyledComponent<"div",
|
|
|
46
46
|
readonly LG: "LG";
|
|
47
47
|
readonly XL: "XL";
|
|
48
48
|
}> | undefined;
|
|
49
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
49
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
50
50
|
readonly XS: "XS";
|
|
51
51
|
readonly SM: "SM";
|
|
52
52
|
readonly MD: "MD";
|
|
@@ -241,7 +241,7 @@ export declare const Footer: import("styled-components").StyledComponent<"div",
|
|
|
241
241
|
readonly LG: "LG";
|
|
242
242
|
readonly XL: "XL";
|
|
243
243
|
}> | undefined;
|
|
244
|
-
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "
|
|
244
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
245
245
|
readonly XS: "XS";
|
|
246
246
|
readonly SM: "SM";
|
|
247
247
|
readonly MD: "MD";
|
|
@@ -102,9 +102,9 @@ export declare const NotificationCard: import("styled-components").StyledCompone
|
|
|
102
102
|
}> & {
|
|
103
103
|
borderColor: string;
|
|
104
104
|
}, never>;
|
|
105
|
-
export declare const IconColumn: import("styled-components").StyledComponent<"div", any,
|
|
106
|
-
|
|
107
|
-
},
|
|
105
|
+
export declare const IconColumn: import("styled-components").StyledComponent<"div", any, {
|
|
106
|
+
right?: boolean | undefined;
|
|
107
|
+
}, never>;
|
|
108
108
|
export declare const CloseButton: import("styled-components").StyledComponent<import("react").RefForwardingComponent<HTMLButtonElement, ButtonProps>, any, ButtonProps, never>;
|
|
109
109
|
export declare const ActionButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
110
110
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/components.ts"],"names":[],"mappings":";AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/components.ts"],"names":[],"mappings":";AAWA,OAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAInD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAa5B,CAAC;AAEF,eAAO,MAAM,UAAU;;SAOtB,CAAC;AAEF,eAAO,MAAM,WAAW,8IAEvB,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAGjC,CAAC"}
|
|
@@ -15,7 +15,7 @@ var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"))
|
|
|
15
15
|
|
|
16
16
|
var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _utils = require("../../../utils");
|
|
19
19
|
|
|
20
20
|
var _skyPlane = _interopRequireDefault(require("../../../utils/skyPlane"));
|
|
21
21
|
|
|
@@ -23,6 +23,8 @@ var _Grid = _interopRequireDefault(require("../../Grid"));
|
|
|
23
23
|
|
|
24
24
|
var _Button = _interopRequireDefault(require("../../Button"));
|
|
25
25
|
|
|
26
|
+
var _constants = require("../constants");
|
|
27
|
+
|
|
26
28
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
27
29
|
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -30,17 +32,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
32
|
var NotificationCard = (0, _styledComponents.default)(_Grid.default.Container).withConfig({
|
|
31
33
|
displayName: "components__NotificationCard",
|
|
32
34
|
componentId: "ds1zkc-0"
|
|
33
|
-
})(["background-color:", ";box-shadow:", ";border-radius:2px;width:", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _skyPlane.default)(2),
|
|
35
|
+
})(["background-color:", ";box-shadow:", ";border-radius:2px;width:", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _skyPlane.default)(2), _constants.NOTIFICATION_CARD_WIDTH, (0, _utils.applyDynamicModifiers)('borderColor', function (_ref) {
|
|
34
36
|
var borderColor = _ref.borderColor;
|
|
35
37
|
return (0, _styledComponents.css)(["border-left:2px solid ", ";"], borderColor);
|
|
36
38
|
}));
|
|
37
39
|
exports.NotificationCard = NotificationCard;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}).withConfig({
|
|
40
|
+
|
|
41
|
+
var IconColumn = _styledComponents.default.div.withConfig({
|
|
41
42
|
displayName: "components__IconColumn",
|
|
42
43
|
componentId: "ds1zkc-1"
|
|
43
|
-
})(["
|
|
44
|
+
})(["padding-left:", ";", ""], (0, _rem.default)(_spacing.default.base), function (_ref2) {
|
|
45
|
+
var _ref2$right = _ref2.right,
|
|
46
|
+
right = _ref2$right === void 0 ? false : _ref2$right;
|
|
47
|
+
return right && (0, _styledComponents.css)(["padding-right:", ";"], (0, _rem.default)(_spacing.default.base));
|
|
48
|
+
});
|
|
49
|
+
|
|
44
50
|
exports.IconColumn = IconColumn;
|
|
45
51
|
var CloseButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
46
52
|
displayName: "components__CloseButton",
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import { TNotificationProps } from '../../../providers/NotificationsProvider/types';
|
|
3
4
|
declare function Notification(props: TNotificationProps): JSX.Element;
|
|
4
5
|
declare namespace Notification {
|
|
5
|
-
var propTypes:
|
|
6
|
-
var defaultProps:
|
|
7
|
-
actions: undefined;
|
|
8
|
-
children: null;
|
|
9
|
-
icon: undefined;
|
|
10
|
-
};
|
|
6
|
+
var propTypes: PropTypes.ValidationMap<TNotificationProps>;
|
|
7
|
+
var defaultProps: Partial<TNotificationProps>;
|
|
11
8
|
var displayName: string;
|
|
12
9
|
}
|
|
13
10
|
export default Notification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/Notification/index.tsx"],"names":[],"mappings":";AAGA,OAAO,SAA4B,MAAM,YAAY,CAAC;AAMtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAwBpF,iBAAS,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAuG5D;kBAvGQ,YAAY;;;;;AA8HrB,eAAe,YAAY,CAAC"}
|
|
@@ -72,6 +72,8 @@ function Notification(props) {
|
|
|
72
72
|
_props$intent = props.intent,
|
|
73
73
|
intent = _props$intent === void 0 ? _constants.intentNames.information : _props$intent,
|
|
74
74
|
onClose = props.onClose,
|
|
75
|
+
onFocus = props.onFocus,
|
|
76
|
+
onHover = props.onHover,
|
|
75
77
|
title = props.title;
|
|
76
78
|
var translate = (0, _useTranslations.default)();
|
|
77
79
|
|
|
@@ -91,13 +93,15 @@ function Notification(props) {
|
|
|
91
93
|
id: id,
|
|
92
94
|
borderColor: accentColor,
|
|
93
95
|
margin: 0,
|
|
94
|
-
padding: 1.5
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, Icon), _react.default.createElement(_Grid.default.Column, null, _react.default.createElement(_Grid.default.Row, null, _react.default.createElement(_Grid.default.Column, null, _react.default.createElement(_Typography.P, {
|
|
96
|
+
padding: 1.5,
|
|
97
|
+
onFocus: onFocus,
|
|
98
|
+
onMouseOver: onHover
|
|
99
|
+
}, _react.default.createElement(_Grid.default.Row, null, _react.default.createElement(_components.IconColumn, null, Icon), _react.default.createElement(_Grid.default.Column, null, _react.default.createElement(_Grid.default.Row, null, _react.default.createElement(_Grid.default.Column, null, _react.default.createElement(_Typography.P, {
|
|
98
100
|
shade: 0,
|
|
99
101
|
weight: "semibold"
|
|
100
|
-
}, title)), _react.default.createElement(_components.IconColumn,
|
|
102
|
+
}, title)), onClose && _react.default.createElement(_components.IconColumn, {
|
|
103
|
+
right: true
|
|
104
|
+
}, _react.default.createElement(_Tooltip.default, {
|
|
101
105
|
target: // eslint-disable-next-line react/jsx-wrap-multilines
|
|
102
106
|
_react.default.createElement(_components.CloseButton, {
|
|
103
107
|
"aria-label": translate(closeHint, 'notification.closeHint'),
|
|
@@ -120,21 +124,24 @@ function Notification(props) {
|
|
|
120
124
|
key: action.text
|
|
121
125
|
}, _react.default.createElement(_Button.default, _extends({}, (0, _omit.default)(action, ['kind', 'size', 'variant']), actionProps[index])));
|
|
122
126
|
}))))));
|
|
123
|
-
}
|
|
127
|
+
}
|
|
124
128
|
|
|
125
|
-
|
|
126
|
-
Notification.propTypes = _objectSpread({}, _schema.default.propTypes, {
|
|
129
|
+
var propTypes = _objectSpread({}, _schema.default.propTypes, {
|
|
127
130
|
actions: _proptypeValidators.actionsValidator,
|
|
128
|
-
children: _propTypes.default.
|
|
131
|
+
children: _propTypes.default.node,
|
|
129
132
|
icon: _propTypes.default.elementType,
|
|
130
133
|
id: _propTypes.default.string.isRequired,
|
|
131
|
-
onClose: _propTypes.default.func
|
|
134
|
+
onClose: _propTypes.default.func
|
|
132
135
|
});
|
|
133
|
-
|
|
136
|
+
|
|
137
|
+
var defaultProps = {
|
|
134
138
|
actions: undefined,
|
|
135
139
|
children: null,
|
|
136
|
-
icon: undefined
|
|
140
|
+
icon: undefined,
|
|
141
|
+
onClose: undefined
|
|
137
142
|
};
|
|
143
|
+
Notification.propTypes = propTypes;
|
|
144
|
+
Notification.defaultProps = defaultProps;
|
|
138
145
|
Notification.displayName = 'Notification';
|
|
139
146
|
var _default = Notification;
|
|
140
147
|
exports.default = _default;
|