@decisiv/ui-components 2.0.1-alpha.99 → 2.0.1
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/Calendar/index.d.ts.map +1 -1
- package/lib/atoms/Calendar/index.js +38 -5
- package/lib/atoms/Calendar/index.test.js +5 -5
- package/lib/atoms/Calendar/types.d.ts +1 -1
- package/lib/atoms/Calendar/types.d.ts.map +1 -1
- package/lib/atoms/InputField/Containers.d.ts +2 -1
- package/lib/atoms/InputField/Containers.d.ts.map +1 -1
- package/lib/atoms/InputField/Containers.js +3 -1
- package/lib/atoms/InputField/HelpMessage.d.ts +1 -1
- package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
- package/lib/atoms/InputField/HelpMessage.js +23 -7
- package/lib/atoms/InputField/index.d.ts +6 -1
- package/lib/atoms/InputField/index.d.ts.map +1 -1
- package/lib/atoms/InputField/index.js +21 -4
- package/lib/atoms/InputField/index.test.js +53 -0
- package/lib/atoms/InputField/schema.js +2 -2
- package/lib/atoms/InputField/styles.d.ts +7 -0
- package/lib/atoms/InputField/styles.d.ts.map +1 -0
- package/lib/atoms/InputField/styles.js +31 -0
- package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
- package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Category/index.js +85 -0
- package/lib/atoms/OptionsList/Category/styles.d.ts +5 -0
- package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Category/styles.js +35 -0
- package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
- package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Option/index.js +182 -0
- package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
- package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
- package/lib/atoms/OptionsList/Option/styles.js +86 -0
- package/lib/atoms/OptionsList/context.d.ts +1 -0
- package/lib/atoms/OptionsList/context.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.d.ts +1 -44
- package/lib/atoms/OptionsList/index.d.ts.map +1 -1
- package/lib/atoms/OptionsList/index.js +259 -40
- package/lib/atoms/OptionsList/index.test.js +329 -186
- package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
- package/lib/atoms/OptionsList/schema.js +7 -1
- package/lib/atoms/OptionsList/styles.d.ts +45 -0
- package/lib/atoms/OptionsList/styles.d.ts.map +1 -0
- package/lib/atoms/OptionsList/styles.js +29 -0
- package/lib/atoms/OptionsList/types.d.ts +50 -1
- package/lib/atoms/OptionsList/types.d.ts.map +1 -1
- package/lib/atoms/OptionsList/utils.d.ts +2 -1
- package/lib/atoms/OptionsList/utils.d.ts.map +1 -1
- package/lib/atoms/OptionsList/utils.js +49 -2
- package/lib/components/Alert/Container.d.ts +201 -0
- package/lib/components/Alert/Container.d.ts.map +1 -0
- package/lib/components/Alert/Container.js +26 -0
- package/lib/components/Alert/StyledButton.d.ts +5 -0
- package/lib/components/Alert/StyledButton.d.ts.map +1 -0
- package/lib/components/Alert/StyledButton.js +23 -0
- package/lib/components/Alert/index.d.ts +27 -0
- package/lib/components/Alert/index.d.ts.map +1 -0
- package/lib/components/Alert/index.js +112 -0
- package/lib/components/Alert/index.test.js +79 -0
- package/lib/components/Alert/intents.d.ts +13 -0
- package/lib/components/Alert/intents.d.ts.map +1 -0
- package/lib/components/Alert/intents.js +72 -0
- package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
- package/lib/components/Alert/schema.d.ts.map +1 -0
- package/lib/components/Alert/schema.js +25 -0
- package/lib/components/Alert/types.d.ts +36 -0
- package/lib/components/Alert/types.d.ts.map +1 -0
- package/lib/components/Alert/types.js +32 -0
- package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
- package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
- package/lib/components/Avatar/AvatarContainer.js +12 -13
- package/lib/components/Avatar/AvatarContent.d.ts +2 -2
- package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
- package/lib/components/Avatar/AvatarContent.js +24 -20
- package/lib/components/Avatar/index.d.ts.map +1 -1
- package/lib/components/Avatar/index.js +42 -5
- package/lib/components/Avatar/index.test.js +4 -0
- package/lib/components/Avatar/schema.d.ts.map +1 -1
- package/lib/components/Avatar/schema.js +3 -1
- package/lib/components/Avatar/types.d.ts +15 -2
- package/lib/components/Avatar/types.d.ts.map +1 -1
- package/lib/components/Badge/index.d.ts.map +1 -1
- package/lib/components/Badge/index.js +2 -58
- package/lib/components/Badge/index.test.js +15 -4
- package/lib/components/Badge/schema.d.ts.map +1 -1
- package/lib/components/Badge/schema.js +1 -0
- package/lib/components/Badge/styles.d.ts +3 -0
- package/lib/components/Badge/styles.d.ts.map +1 -0
- package/lib/components/Badge/styles.js +97 -0
- package/lib/components/Badge/types.d.ts +3 -1
- package/lib/components/Badge/types.d.ts.map +1 -1
- package/lib/components/Badge/types.js +2 -1
- package/lib/components/Button/StyledButton.d.ts +3 -6
- package/lib/components/Button/StyledButton.d.ts.map +1 -1
- package/lib/components/Button/StyledButton.js +39 -11
- package/lib/components/Button/index.d.ts.map +1 -1
- package/lib/components/Button/index.js +51 -12
- package/lib/components/Button/index.test.js +43 -8
- package/lib/components/Button/schema.d.ts.map +1 -1
- package/lib/components/Button/schema.js +4 -1
- package/lib/components/Button/types.d.ts +4 -1
- package/lib/components/Button/types.d.ts.map +1 -1
- package/lib/components/Combobox/Target.d.ts.map +1 -1
- package/lib/components/Combobox/Target.js +10 -0
- package/lib/components/Combobox/index.d.ts.map +1 -1
- package/lib/components/Combobox/index.js +111 -59
- package/lib/components/Combobox/index.test.js +110 -25
- package/lib/components/Combobox/schema.d.ts.map +1 -1
- package/lib/components/Combobox/schema.js +7 -1
- package/lib/components/Combobox/types.d.ts +7 -2
- package/lib/components/Combobox/types.d.ts.map +1 -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 +122 -0
- package/lib/components/Drawer/index.test.js +164 -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.map +1 -1
- package/lib/components/DropdownList/index.js +10 -3
- package/lib/components/DropdownList/index.test.js +38 -25
- package/lib/components/DropdownList/schema.js +1 -1
- package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
- package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
- package/lib/components/Filter/ActionFilter/index.js +43 -0
- package/lib/components/Filter/IconWrapper/index.d.ts +2 -2
- package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -1
- package/lib/components/Filter/SimplePrimary/index.d.ts +2 -28
- package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -1
- package/lib/components/Filter/SimplePrimary/index.js +9 -21
- package/lib/components/Filter/StyledFilter.d.ts +2 -2
- package/lib/components/Filter/StyledFilter.d.ts.map +1 -1
- package/lib/components/Filter/StyledFilter.js +28 -1
- package/lib/components/Filter/StyledLabel/index.d.ts +3 -3
- package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -1
- package/lib/components/Filter/StyledLabel/index.js +14 -6
- package/lib/components/Filter/index.d.ts +4 -25
- package/lib/components/Filter/index.d.ts.map +1 -1
- package/lib/components/Filter/index.js +41 -29
- package/lib/components/Filter/index.test.js +33 -4
- package/lib/components/Filter/kind.d.ts +4 -3
- package/lib/components/Filter/kind.d.ts.map +1 -1
- package/lib/components/Filter/kind.js +20 -22
- package/lib/components/Filter/schema.d.ts.map +1 -1
- package/lib/components/Filter/schema.js +8 -3
- package/lib/components/Filter/types.d.ts +21 -7
- package/lib/components/Filter/types.d.ts.map +1 -1
- package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
- package/lib/components/JumpTo/JumpToMenu.js +50 -9
- package/lib/components/JumpTo/index.test.js +84 -0
- package/lib/components/JumpTo/schema.d.ts.map +1 -1
- package/lib/components/JumpTo/schema.js +2 -1
- package/lib/components/JumpTo/types.d.ts +1 -0
- package/lib/components/JumpTo/types.d.ts.map +1 -1
- package/lib/components/JumpTo/utils.d.ts.map +1 -1
- package/lib/components/JumpTo/utils.js +3 -7
- package/lib/components/LeftNav/Item/NavExpandedItem/index.js +7 -2
- package/lib/components/LeftNav/index.test.js +35 -19
- package/lib/components/LeftNav/schema.d.ts.map +1 -1
- package/lib/components/LeftNav/schema.js +3 -1
- package/lib/components/LeftNav/types.d.ts +1 -0
- package/lib/components/LeftNav/types.d.ts.map +1 -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 +19 -157
- package/lib/components/Link/index.test.js +62 -49
- package/lib/components/Link/schema.d.ts.map +1 -1
- package/lib/components/Link/schema.js +1 -0
- 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/List/BaseCell/index.d.ts +6 -0
- package/lib/components/List/BaseCell/index.d.ts.map +1 -0
- package/lib/components/List/BaseCell/index.js +17 -0
- package/lib/components/List/BaseCell/index.test.js +33 -0
- package/lib/components/List/BaseCell/styles.d.ts +198 -0
- package/lib/components/List/BaseCell/styles.d.ts.map +1 -0
- package/lib/components/List/BaseCell/styles.js +26 -0
- package/lib/components/List/ContentContainer/index.d.ts +21 -0
- package/lib/components/List/ContentContainer/index.d.ts.map +1 -0
- package/lib/components/List/ContentContainer/index.js +82 -0
- package/lib/components/List/ContentContainer/index.test.js +102 -0
- package/lib/components/List/DefaultCell/index.d.ts +6 -0
- package/lib/components/List/DefaultCell/index.d.ts.map +1 -0
- package/lib/components/List/DefaultCell/index.js +26 -0
- package/lib/components/List/EditableCell/index.d.ts +13 -0
- package/lib/components/List/EditableCell/index.d.ts.map +1 -0
- package/lib/components/List/EditableCell/index.js +47 -0
- package/lib/components/List/EditableCell/styles.d.ts +204 -0
- package/lib/components/List/EditableCell/styles.d.ts.map +1 -0
- package/lib/components/List/EditableCell/styles.js +47 -0
- package/lib/components/List/LabelContainer/index.d.ts +9 -0
- package/lib/components/List/LabelContainer/index.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/index.js +38 -0
- package/lib/components/List/LabelContainer/index.test.js +105 -0
- package/lib/components/List/LabelContainer/styles.d.ts +4 -0
- package/lib/components/List/LabelContainer/styles.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/styles.js +28 -0
- package/lib/components/List/ListItem/index.d.ts +8 -0
- package/lib/components/List/ListItem/index.d.ts.map +1 -0
- package/lib/components/List/ListItem/index.js +43 -0
- package/lib/components/List/ListItem/index.test.js +76 -0
- package/lib/components/List/ListItem/schema.d.ts +4 -0
- package/lib/components/List/ListItem/schema.d.ts.map +1 -0
- package/lib/components/List/ListItem/schema.js +30 -0
- package/lib/components/List/ListItem/styles.d.ts +2 -0
- package/lib/components/List/ListItem/styles.d.ts.map +1 -0
- package/lib/components/List/ListItem/styles.js +23 -0
- package/lib/components/List/constants.d.ts +19 -0
- package/lib/components/List/constants.d.ts.map +1 -0
- package/lib/components/List/constants.js +28 -0
- package/lib/components/List/index.d.ts +15 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +67 -0
- package/lib/components/List/index.test.js +64 -0
- package/lib/components/List/schema.d.ts +4 -0
- package/lib/components/List/schema.d.ts.map +1 -0
- package/lib/components/List/schema.js +26 -0
- package/lib/components/List/styles.d.ts +198 -0
- package/lib/components/List/styles.d.ts.map +1 -0
- package/lib/components/List/styles.js +34 -0
- package/lib/components/List/types.d.ts +15 -0
- package/lib/components/List/types.d.ts.map +1 -0
- package/lib/components/List/types.js +5 -0
- package/lib/components/Loading/Loading.d.ts +12 -0
- package/lib/components/Loading/Loading.d.ts.map +1 -0
- package/lib/components/Loading/Loading.js +70 -0
- package/lib/components/Loading/index.d.ts +4 -0
- package/lib/components/Loading/index.d.ts.map +1 -0
- package/lib/components/Loading/index.js +33 -0
- package/lib/components/Loading/index.test.js +55 -0
- package/lib/components/Loading/schema.d.ts +4 -0
- package/lib/components/Loading/schema.d.ts.map +1 -0
- package/lib/components/Loading/schema.js +31 -0
- package/lib/components/Loading/styles.d.ts +211 -0
- package/lib/components/Loading/styles.d.ts.map +1 -0
- package/lib/components/Loading/styles.js +77 -0
- package/lib/components/Loading/types.d.ts +10 -0
- package/lib/components/Loading/types.d.ts.map +1 -0
- package/lib/components/Loading/types.js +5 -0
- package/lib/components/Modal/Manager.d.ts +6 -0
- package/lib/components/Modal/Manager.d.ts.map +1 -0
- package/lib/components/Modal/Manager.js +53 -0
- package/lib/components/Modal/ResponsiveModalWrapper.d.ts +11 -0
- package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
- package/lib/components/Modal/ResponsiveModalWrapper.js +82 -0
- package/lib/components/Modal/components.d.ts +199 -1
- package/lib/components/Modal/components.d.ts.map +1 -1
- package/lib/components/Modal/components.js +16 -24
- package/lib/components/Modal/index.d.ts +8 -4
- package/lib/components/Modal/index.d.ts.map +1 -1
- package/lib/components/Modal/index.js +63 -95
- package/lib/components/Modal/index.test.js +99 -0
- package/lib/components/Modal/schema.d.ts.map +1 -1
- package/lib/components/Modal/schema.js +2 -1
- package/lib/components/Modal/types.d.ts +2 -1
- package/lib/components/Modal/types.d.ts.map +1 -1
- package/lib/components/Modal/utils.d.ts +1 -1
- package/lib/components/Modal/utils.d.ts.map +1 -1
- package/lib/components/Modal/utils.js +7 -5
- package/lib/components/Pagination/Pages.d.ts +1 -7
- package/lib/components/Pagination/Pages.d.ts.map +1 -1
- package/lib/components/Pagination/Pages.js +17 -0
- package/lib/components/Pagination/Pagination.d.ts +13 -14
- package/lib/components/Pagination/Pagination.d.ts.map +1 -1
- package/lib/components/Pagination/Pagination.js +20 -5
- package/lib/components/Pagination/Pagination.test.js +14 -0
- package/lib/components/Pagination/paginate.d.ts +1 -1
- package/lib/components/Pagination/paginate.d.ts.map +1 -1
- package/lib/components/Pagination/paginate.js +4 -0
- package/lib/components/Pagination/paginate.test.js +38 -17
- package/lib/components/Pagination/schema.d.ts.map +1 -1
- package/lib/components/Pagination/schema.js +3 -1
- package/lib/components/Pagination/types.d.ts +24 -1
- package/lib/components/Pagination/types.d.ts.map +1 -1
- package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
- package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
- package/lib/components/PasswordField/IconWrapper.js +32 -0
- package/lib/components/PasswordField/Input.d.ts +6 -0
- package/lib/components/PasswordField/Input.d.ts.map +1 -0
- package/lib/components/PasswordField/Input.js +28 -0
- package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
- package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
- package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
- package/lib/components/PasswordField/index.d.ts +14 -0
- package/lib/components/PasswordField/index.d.ts.map +1 -0
- package/lib/components/PasswordField/index.js +113 -0
- package/lib/components/PasswordField/index.test.js +217 -0
- package/lib/components/PasswordField/schema.d.ts +3 -0
- package/lib/components/PasswordField/schema.d.ts.map +1 -0
- package/lib/components/PasswordField/schema.js +27 -0
- package/lib/components/Popover/Arrow.d.ts +2 -2
- package/lib/components/Popover/index.d.ts.map +1 -1
- package/lib/components/Popover/index.js +25 -10
- package/lib/components/Popover/schema.d.ts.map +1 -1
- package/lib/components/Popover/schema.js +28 -20
- package/lib/components/Popover/types.d.ts +6 -2
- package/lib/components/Popover/types.d.ts.map +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 +179 -0
- package/lib/components/SearchInput/index.test.js +660 -0
- package/lib/components/SearchInput/schema.d.ts +3 -0
- package/lib/components/SearchInput/schema.d.ts.map +1 -0
- package/lib/components/SearchInput/schema.js +38 -0
- package/lib/components/SearchInput/styles.d.ts +1176 -0
- package/lib/components/SearchInput/styles.d.ts.map +1 -0
- package/lib/components/SearchInput/styles.js +97 -0
- package/lib/components/SearchInput/types.d.ts +39 -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 +5 -1
- package/lib/components/Select/index.d.ts.map +1 -1
- package/lib/components/Select/index.js +7 -3
- package/lib/components/Select/index.test.js +43 -19
- package/lib/components/Select/schema.d.ts.map +1 -1
- package/lib/components/Select/schema.js +2 -0
- package/lib/components/Select/types.d.ts +2 -0
- package/lib/components/Select/types.d.ts.map +1 -1
- package/lib/components/SelectDate/Target.d.ts.map +1 -1
- package/lib/components/SelectDate/Target.js +5 -1
- package/lib/components/SelectDate/index.d.ts.map +1 -1
- package/lib/components/SelectDate/index.js +7 -3
- package/lib/components/SelectDate/schema.d.ts.map +1 -1
- package/lib/components/SelectDate/schema.js +1 -0
- package/lib/components/SelectDate/types.d.ts +1 -0
- package/lib/components/SelectDate/types.d.ts.map +1 -1
- package/lib/components/SelectDateRange/index.d.ts.map +1 -1
- package/lib/components/SelectDateRange/index.js +6 -2
- package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
- package/lib/components/SelectDateRange/schema.js +1 -0
- package/lib/components/StepTracker/index.d.ts +11 -0
- package/lib/components/StepTracker/index.d.ts.map +1 -0
- package/lib/components/StepTracker/index.js +56 -0
- package/lib/components/StepTracker/index.test.js +89 -0
- package/lib/components/StepTracker/schema.d.ts +3 -0
- package/lib/components/StepTracker/schema.d.ts.map +1 -0
- package/lib/components/StepTracker/schema.js +19 -0
- package/lib/components/StepTracker/styles.d.ts +605 -0
- package/lib/components/StepTracker/styles.d.ts.map +1 -0
- package/lib/components/StepTracker/styles.js +114 -0
- package/lib/components/Table/Body.d.ts.map +1 -1
- package/lib/components/Table/Body.js +2 -5
- package/lib/components/Table/Container.d.ts.map +1 -1
- package/lib/components/Table/Container.js +6 -1
- package/lib/components/Table/Grip.d.ts +6 -2
- package/lib/components/Table/Grip.d.ts.map +1 -1
- package/lib/components/Table/Grip.js +9 -3
- package/lib/components/Table/index.js +1 -1
- package/lib/components/Tabs/Tab/index.d.ts +13 -0
- package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/index.js +94 -0
- package/lib/components/Tabs/Tab/schema.d.ts +3 -0
- package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/styles.d.ts +7 -0
- package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
- package/lib/components/Tabs/Tab/styles.js +37 -0
- package/lib/components/Tabs/context.d.ts +2 -2
- package/lib/components/Tabs/context.d.ts.map +1 -1
- package/lib/components/Tabs/context.js +1 -1
- package/lib/components/Tabs/index.d.ts +17 -6
- package/lib/components/Tabs/index.d.ts.map +1 -1
- package/lib/components/Tabs/index.js +104 -163
- package/lib/components/Tabs/index.test.js +54 -2
- package/lib/components/Tabs/styles.d.ts +4 -0
- package/lib/components/Tabs/styles.d.ts.map +1 -0
- package/lib/components/Tabs/styles.js +35 -0
- package/lib/components/Tag/Action.d.ts +4 -0
- package/lib/components/Tag/Action.d.ts.map +1 -0
- package/lib/components/Tag/Action.js +39 -0
- package/lib/components/Tag/constants.d.ts +2 -2
- package/lib/components/Tag/constants.d.ts.map +1 -1
- package/lib/components/Tag/constants.js +4 -4
- package/lib/components/Tag/index.d.ts +1 -3
- package/lib/components/Tag/index.d.ts.map +1 -1
- package/lib/components/Tag/index.js +40 -97
- package/lib/components/Tag/index.test.js +239 -2
- package/lib/components/Tag/propTypes.d.ts +4 -1
- package/lib/components/Tag/propTypes.d.ts.map +1 -1
- package/lib/components/Tag/propTypes.js +5 -2
- package/lib/components/Tag/schema.d.ts.map +1 -1
- package/lib/components/Tag/schema.js +3 -1
- package/lib/components/Tag/styles.d.ts +13 -0
- package/lib/components/Tag/styles.d.ts.map +1 -0
- package/lib/components/Tag/styles.js +133 -0
- package/lib/components/Tag/types.d.ts +11 -12
- package/lib/components/Tag/types.d.ts.map +1 -1
- package/lib/components/TagInput/index.d.ts +5 -0
- package/lib/components/TagInput/index.d.ts.map +1 -0
- package/lib/components/TagInput/index.js +363 -0
- package/lib/components/TagInput/index.test.js +1143 -0
- package/lib/components/TagInput/schema.d.ts +3 -0
- package/lib/components/TagInput/schema.d.ts.map +1 -0
- package/lib/components/TagInput/schema.js +36 -0
- package/lib/components/TagInput/styles.d.ts +10 -0
- package/lib/components/TagInput/styles.d.ts.map +1 -0
- package/lib/components/TagInput/styles.js +52 -0
- package/lib/components/TagInput/types.d.ts +21 -0
- package/lib/components/TagInput/types.d.ts.map +1 -0
- package/lib/components/TagInput/types.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 +2 -1
- 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/ToggleView/ToggleView.d.ts +5 -0
- package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
- package/lib/components/ToggleView/ToggleView.js +80 -0
- package/lib/components/ToggleView/index.d.ts +4 -0
- package/lib/components/ToggleView/index.d.ts.map +1 -0
- package/lib/components/ToggleView/index.js +33 -0
- package/lib/components/ToggleView/index.test.js +61 -0
- package/lib/components/ToggleView/schema.d.ts +3 -0
- package/lib/components/ToggleView/schema.d.ts.map +1 -0
- package/lib/components/ToggleView/schema.js +24 -0
- package/lib/components/ToggleView/styles.d.ts +6 -0
- package/lib/components/ToggleView/styles.d.ts.map +1 -0
- package/lib/components/ToggleView/styles.js +23 -0
- package/lib/components/ToggleView/types.d.ts +23 -0
- package/lib/components/ToggleView/types.d.ts.map +1 -0
- package/lib/components/ToggleView/types.js +12 -0
- package/lib/components/Tooltip/index.d.ts.map +1 -1
- package/lib/components/Tooltip/index.js +3 -13
- package/lib/components/Tooltip/schema.d.ts +3 -0
- package/lib/components/Tooltip/schema.d.ts.map +1 -0
- package/lib/components/Tooltip/schema.js +29 -0
- package/lib/components/TopNav/Menu/index.d.ts +1 -1
- package/lib/components/TopNav/index.d.ts +1 -1
- package/lib/components/Typography/withColors.d.ts +1 -1
- package/lib/components/Typography/withColors.d.ts.map +1 -1
- package/lib/components/Typography/withColors.js +1 -1
- package/lib/components/Wizard/index.d.ts +33 -0
- package/lib/components/Wizard/index.d.ts.map +1 -0
- package/lib/components/Wizard/index.js +161 -0
- package/lib/components/Wizard/index.test.js +940 -0
- package/lib/components/Wizard/schema.d.ts +3 -0
- package/lib/components/Wizard/schema.d.ts.map +1 -0
- package/lib/components/Wizard/schema.js +42 -0
- package/lib/components/Wizard/styles.d.ts +990 -0
- package/lib/components/Wizard/styles.d.ts.map +1 -0
- package/lib/components/Wizard/styles.js +79 -0
- package/lib/components/index.d.ts +11 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +196 -1
- package/lib/modifiers/palette.d.ts +36 -0
- package/lib/modifiers/palette.d.ts.map +1 -0
- package/lib/modifiers/palette.js +88 -0
- package/lib/modifiers/spacingSchema.d.ts.map +1 -1
- package/lib/modifiers/spacingSchema.js +29 -16
- package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts +2 -1
- package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/translations.d.ts +45 -1
- package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
- package/lib/providers/ConfigProvider/utils/translations.js +46 -2
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +5 -0
- package/lib/utils/commonUIColors.d.ts +351 -3
- package/lib/utils/commonUIColors.d.ts.map +1 -1
- package/lib/utils/commonUIColors.js +6 -2
- package/lib/utils/useDebounce.d.ts +2 -0
- package/lib/utils/useDebounce.d.ts.map +1 -0
- package/lib/utils/useDebounce.js +37 -0
- package/lib/utils/useStackingContext.d.ts +12 -0
- package/lib/utils/useStackingContext.d.ts.map +1 -0
- package/lib/utils/useStackingContext.js +46 -0
- package/package.json +26 -13
- package/CHANGELOG.md +0 -796
- package/lib/atoms/OptionsList/Category.d.ts +0 -4
- package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
- package/lib/atoms/OptionsList/Category.js +0 -53
- package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
- package/lib/atoms/OptionsList/Option.js +0 -197
- 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/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 → Link}/types.js +0 -0
- /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
|
@@ -4,11 +4,208 @@ export declare const Overlay: import("styled-components").StyledComponent<"div",
|
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const Body: import("styled-components").StyledComponent<"div", any, {
|
|
6
6
|
size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
|
|
7
|
+
hasFooter: boolean;
|
|
8
|
+
widthSize: "medium" | "large" | undefined;
|
|
7
9
|
}, never>;
|
|
8
10
|
export declare const ScrollYBox: import("styled-components").StyledComponent<"div", any, {
|
|
9
11
|
size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
|
|
12
|
+
hasFooter?: boolean | undefined;
|
|
10
13
|
}, never>;
|
|
11
|
-
export declare const Header: import("styled-components").StyledComponent<"div", any,
|
|
14
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
15
|
+
readonly alignContent?: 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 alignItems?: 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 alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
30
|
+
readonly XS: "XS";
|
|
31
|
+
readonly SM: "SM";
|
|
32
|
+
readonly MD: "MD";
|
|
33
|
+
readonly LG: "LG";
|
|
34
|
+
readonly XL: "XL";
|
|
35
|
+
}> | undefined;
|
|
36
|
+
readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
|
|
37
|
+
readonly XS: "XS";
|
|
38
|
+
readonly SM: "SM";
|
|
39
|
+
readonly MD: "MD";
|
|
40
|
+
readonly LG: "LG";
|
|
41
|
+
readonly XL: "XL";
|
|
42
|
+
}> | undefined;
|
|
43
|
+
readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
44
|
+
readonly XS: "XS";
|
|
45
|
+
readonly SM: "SM";
|
|
46
|
+
readonly MD: "MD";
|
|
47
|
+
readonly LG: "LG";
|
|
48
|
+
readonly XL: "XL";
|
|
49
|
+
}> | undefined;
|
|
50
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
51
|
+
readonly XS: "XS";
|
|
52
|
+
readonly SM: "SM";
|
|
53
|
+
readonly MD: "MD";
|
|
54
|
+
readonly LG: "LG";
|
|
55
|
+
readonly XL: "XL";
|
|
56
|
+
}> | undefined;
|
|
57
|
+
readonly flexGrow?: 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 flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
65
|
+
readonly XS: "XS";
|
|
66
|
+
readonly SM: "SM";
|
|
67
|
+
readonly MD: "MD";
|
|
68
|
+
readonly LG: "LG";
|
|
69
|
+
readonly XL: "XL";
|
|
70
|
+
}> | undefined;
|
|
71
|
+
readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
|
|
72
|
+
readonly XS: "XS";
|
|
73
|
+
readonly SM: "SM";
|
|
74
|
+
readonly MD: "MD";
|
|
75
|
+
readonly LG: "LG";
|
|
76
|
+
readonly XL: "XL";
|
|
77
|
+
}> | undefined;
|
|
78
|
+
readonly justifyContent?: 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 justifyItems?: 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 justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
93
|
+
readonly XS: "XS";
|
|
94
|
+
readonly SM: "SM";
|
|
95
|
+
readonly MD: "MD";
|
|
96
|
+
readonly LG: "LG";
|
|
97
|
+
readonly XL: "XL";
|
|
98
|
+
}> | undefined;
|
|
99
|
+
readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
100
|
+
readonly XS: "XS";
|
|
101
|
+
readonly SM: "SM";
|
|
102
|
+
readonly MD: "MD";
|
|
103
|
+
readonly LG: "LG";
|
|
104
|
+
readonly XL: "XL";
|
|
105
|
+
}> | undefined;
|
|
106
|
+
readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
|
|
107
|
+
}> & Partial<{
|
|
108
|
+
readonly margin: 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 marginBottom: 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 marginLeft: 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 marginRight: 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 marginTop: 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 marginX: 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 marginY: 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 padding: 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 paddingBottom: 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 paddingLeft: 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 paddingRight: 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 paddingTop: 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 paddingX: 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
|
+
readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
200
|
+
readonly XS: "XS";
|
|
201
|
+
readonly SM: "SM";
|
|
202
|
+
readonly MD: "MD";
|
|
203
|
+
readonly LG: "LG";
|
|
204
|
+
readonly XL: "XL";
|
|
205
|
+
}>;
|
|
206
|
+
}> & {
|
|
207
|
+
flexDirection: string;
|
|
208
|
+
}, "flexDirection">;
|
|
12
209
|
export declare const CloseButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
210
|
export declare const Content: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
14
211
|
readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
@@ -400,4 +597,5 @@ export declare const Footer: import("styled-components").StyledComponent<"div",
|
|
|
400
597
|
}> & {
|
|
401
598
|
hasIcon?: boolean | undefined;
|
|
402
599
|
}, never>;
|
|
600
|
+
export declare const ActionWrapper: import("styled-components").StyledComponent<"div", any, import("../Flex").FlexComponentProps, never>;
|
|
403
601
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/components.tsx"],"names":[],"mappings":";AAcA,eAAO,MAAM,OAAO;;SASnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;SAuBhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;SA4BtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoD,CAAC;AAExE,eAAO,MAAM,oBAAoB,oEAIhC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAKnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAmBlB,CAAC;AAEF,eAAO,MAAM,aAAa,sGAkBzB,CAAC"}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Footer = exports.Content = exports.CloseButtonContainer = exports.Header = exports.ScrollYBox = exports.Body = exports.Overlay = void 0;
|
|
6
|
+
exports.ActionWrapper = exports.Footer = exports.Content = exports.CloseButtonContainer = exports.Header = exports.ScrollYBox = exports.Body = exports.Overlay = void 0;
|
|
7
7
|
|
|
8
8
|
var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
|
|
9
9
|
|
|
10
|
+
var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
|
|
11
|
+
|
|
10
12
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
13
|
|
|
12
14
|
var _breakpointObserver = require("@decisiv/breakpoint-observer");
|
|
@@ -23,23 +25,6 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
27
|
|
|
26
|
-
function withIcon() {
|
|
27
|
-
return (0, _styledComponents.css)(["", ";"], (0, _dynamicModifiers.applyDynamicModifiers)('hasIcon', function (_ref) {
|
|
28
|
-
var hasIcon = _ref.hasIcon,
|
|
29
|
-
size = _ref.size;
|
|
30
|
-
|
|
31
|
-
if (hasIcon) {
|
|
32
|
-
if (size === _breakpointObserver.sizes.XS) {
|
|
33
|
-
return (0, _styledComponents.css)(["padding-left:", "px;"], _designTokens.spacing.base * 2 + 42);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return (0, _styledComponents.css)(["padding-left:", "px;"], _designTokens.spacing.base * 3 + 42);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return '';
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
28
|
var Overlay = _styledComponents.default.div.withConfig({
|
|
44
29
|
displayName: "components__Overlay",
|
|
45
30
|
componentId: "zcog99-0"
|
|
@@ -50,17 +35,19 @@ exports.Overlay = Overlay;
|
|
|
50
35
|
var Body = _styledComponents.default.div.withConfig({
|
|
51
36
|
displayName: "components__Body",
|
|
52
37
|
componentId: "zcog99-1"
|
|
53
|
-
})(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;
|
|
38
|
+
})(["background:", ";border-radius:2px;box-shadow:0 1px 4px ", ";margin:40px auto;max-height:calc(100% - 80px);max-width:650px;overflow:hidden;display:flex;flex-direction:column;width:100%;", ""], (0, _toColorString.default)(_designTokens.color.base.snowWhite), (0, _toColorString.default)(_designTokens.color.shadow.light.default), (0, _styleModifiers.when)('widthSize', 'large', (0, _styledComponents.css)(["max-width:", ";"], (0, _rem.default)(_designTokens.spacing.base * 90))));
|
|
54
39
|
|
|
55
40
|
exports.Body = Body;
|
|
56
41
|
|
|
57
42
|
var ScrollYBox = _styledComponents.default.div.withConfig({
|
|
58
43
|
displayName: "components__ScrollYBox",
|
|
59
44
|
componentId: "zcog99-2"
|
|
60
|
-
})(["overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
|
|
45
|
+
})(["width:100%;overflow-y:auto;position:relative;height:100%;max-height:calc(100vh - 150px);", ";", ";"], (0, _styleModifiers.when)('hasFooter', false, (0, _styledComponents.css)(["max-height:calc(100vh - 75px);"])), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["max-height:calc(100vh - 70px);"])));
|
|
61
46
|
|
|
62
47
|
exports.ScrollYBox = ScrollYBox;
|
|
63
|
-
var Header = (0, _styledComponents.default)(_Flex.default).
|
|
48
|
+
var Header = (0, _styledComponents.default)(_Flex.default).attrs({
|
|
49
|
+
flexDirection: 'column'
|
|
50
|
+
}).withConfig({
|
|
64
51
|
displayName: "components__Header",
|
|
65
52
|
componentId: "zcog99-3"
|
|
66
53
|
})([""]);
|
|
@@ -75,10 +62,15 @@ exports.CloseButtonContainer = CloseButtonContainer;
|
|
|
75
62
|
var Content = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
76
63
|
displayName: "components__Content",
|
|
77
64
|
componentId: "zcog99-5"
|
|
78
|
-
})(["flex:1;flex-direction:row;"
|
|
65
|
+
})(["flex:1;flex-direction:row;"]);
|
|
79
66
|
exports.Content = Content;
|
|
80
67
|
var Footer = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
81
68
|
displayName: "components__Footer",
|
|
82
69
|
componentId: "zcog99-6"
|
|
83
|
-
})(["background-color:", ";border-radius:0 0 2px 2px;border-top:1px solid ", ";
|
|
84
|
-
exports.Footer = Footer;
|
|
70
|
+
})(["background-color:", ";border-radius:0 0 2px 2px;border-top:1px solid ", ";display:flex;align-self:flex-end;width:100%;", ";"], (0, _toColorString.default)(_designTokens.color.base.fullMoon), (0, _toColorString.default)(_designTokens.color.opacity.charcoal15), (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["border-radius:0;background-color:", ";flex-direction:column;"], (0, _toColorString.default)(_designTokens.color.base.fullMoon))));
|
|
71
|
+
exports.Footer = Footer;
|
|
72
|
+
var ActionWrapper = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
73
|
+
displayName: "components__ActionWrapper",
|
|
74
|
+
componentId: "zcog99-7"
|
|
75
|
+
})(["", ";"], (0, _styleModifiers.when)('size', _breakpointObserver.sizes.XS, (0, _styledComponents.css)(["width:100%;&:not(:first-child){margin-top:", ";}button{font-size:", ";width:100%;height:", ";}"], (0, _rem.default)(_designTokens.spacing.base * 0.5), (0, _rem.default)(_designTokens.typography.size.alias.extraLarge), (0, _rem.default)(_designTokens.spacing.base * 5))));
|
|
76
|
+
exports.ActionWrapper = ActionWrapper;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ModalProps } from './types';
|
|
3
|
-
declare function
|
|
4
|
-
declare namespace
|
|
3
|
+
declare function ModalWrapper({ onClose, visible, children, zIndex, ...rest }: ModalProps): JSX.Element;
|
|
4
|
+
declare namespace ModalWrapper {
|
|
5
5
|
var propTypes: any;
|
|
6
|
+
var defaultProps: {
|
|
7
|
+
actions: undefined;
|
|
8
|
+
icon: undefined;
|
|
9
|
+
};
|
|
6
10
|
var displayName: string;
|
|
7
11
|
}
|
|
8
|
-
export default
|
|
12
|
+
export default ModalWrapper;
|
|
9
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAgCA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAkIrC,iBAAS,YAAY,CAAC,EACpB,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAa,EACb,GAAG,IAAI,EACR,EAAE,UAAU,eAUZ;kBAhBQ,YAAY;;;;;;;;AAgCrB,eAAe,YAAY,CAAC"}
|
|
@@ -5,25 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
11
|
-
|
|
12
|
-
var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
9
|
|
|
14
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
11
|
|
|
16
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
12
|
var _breakpointObserver = require("@decisiv/breakpoint-observer");
|
|
19
13
|
|
|
20
14
|
var _designTokens = require("@decisiv/design-tokens");
|
|
21
15
|
|
|
22
16
|
var _Times = _interopRequireDefault(require("@decisiv/iconix/lib/components/Times"));
|
|
23
17
|
|
|
24
|
-
var
|
|
18
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
19
|
+
|
|
20
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
25
21
|
|
|
26
|
-
var
|
|
22
|
+
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
23
|
+
|
|
24
|
+
var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
|
|
27
25
|
|
|
28
26
|
var _commonUIColors = require("../../utils/commonUIColors");
|
|
29
27
|
|
|
@@ -43,16 +41,20 @@ var _components = require("./components");
|
|
|
43
41
|
|
|
44
42
|
var _constants = require("./constants");
|
|
45
43
|
|
|
44
|
+
var _Manager = _interopRequireDefault(require("./Manager"));
|
|
45
|
+
|
|
46
46
|
var _proptypeValidators = require("./proptypeValidators");
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _ResponsiveModalWrapper = _interopRequireDefault(require("./ResponsiveModalWrapper"));
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _schema = _interopRequireDefault(require("./schema"));
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
var _useStackingContext = require("../../utils/useStackingContext");
|
|
53
53
|
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
55
|
|
|
56
|
+
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; } }
|
|
57
|
+
|
|
56
58
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
|
|
57
59
|
|
|
58
60
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -78,7 +80,7 @@ var actionProps = [{}, {
|
|
|
78
80
|
}];
|
|
79
81
|
|
|
80
82
|
function Modal(_ref) {
|
|
81
|
-
var _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
83
|
+
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
82
84
|
|
|
83
85
|
var actions = _ref.actions,
|
|
84
86
|
children = _ref.children,
|
|
@@ -88,9 +90,11 @@ function Modal(_ref) {
|
|
|
88
90
|
id = _ref.id,
|
|
89
91
|
intent = _ref.intent,
|
|
90
92
|
onClose = _ref.onClose,
|
|
93
|
+
_ref$size = _ref.size,
|
|
94
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
91
95
|
title = _ref.title,
|
|
92
96
|
_ref$zIndex = _ref.zIndex,
|
|
93
|
-
zIndex = _ref$zIndex === void 0 ?
|
|
97
|
+
zIndex = _ref$zIndex === void 0 ? 1001 : _ref$zIndex;
|
|
94
98
|
|
|
95
99
|
var breakpoints = _defineProperty({}, _breakpointObserver.sizes.LG, 650);
|
|
96
100
|
|
|
@@ -113,45 +117,22 @@ function Modal(_ref) {
|
|
|
113
117
|
|
|
114
118
|
return null;
|
|
115
119
|
}, [colorProp, icon, intent]);
|
|
116
|
-
|
|
117
|
-
var _useElement = (0, _utils.useElement)(),
|
|
118
|
-
_useElement2 = _slicedToArray(_useElement, 2),
|
|
119
|
-
container = _useElement2[0],
|
|
120
|
-
containerRef = _useElement2[1];
|
|
121
|
-
|
|
122
|
-
(0, _utils.useKeepFocusWithin)(container);
|
|
123
120
|
var uuid = (0, _useUniqueId.default)(id, 'modal-');
|
|
124
121
|
var modalHeaderId = "modal-header-".concat(uuid);
|
|
125
122
|
var modalContentId = "modal-content-".concat(uuid);
|
|
126
|
-
var modalFooterId = "modal-footer-".concat(uuid);
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
onClose
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var handleBodyClick = (0, _react.useCallback)(function (event) {
|
|
137
|
-
event.preventDefault();
|
|
138
|
-
event.stopPropagation();
|
|
139
|
-
}, []);
|
|
140
|
-
return _react.default.createElement(_components.Overlay, {
|
|
141
|
-
onClick: handleOverlayClick,
|
|
142
|
-
ref: observedElementRef,
|
|
143
|
-
zIndex: zIndex
|
|
144
|
-
}, _react.default.createElement(_components.Body, {
|
|
145
|
-
"aria-describedby": modalContentId,
|
|
146
|
-
"aria-labelledby": modalHeaderId,
|
|
147
|
-
"aria-modal": "true",
|
|
148
|
-
size: breakpoint,
|
|
149
|
-
id: uuid,
|
|
150
|
-
onClick: handleBodyClick,
|
|
151
|
-
ref: containerRef,
|
|
152
|
-
role: "dialog"
|
|
123
|
+
var modalFooterId = "modal-footer-".concat(uuid);
|
|
124
|
+
var hasFooter = !(0, _isEmpty.default)(actions);
|
|
125
|
+
return _react.default.createElement(_ResponsiveModalWrapper.default, {
|
|
126
|
+
id: id || uuid,
|
|
127
|
+
size: size,
|
|
128
|
+
zIndex: zIndex,
|
|
129
|
+
onClose: onClose,
|
|
130
|
+
breakpoint: breakpoint,
|
|
131
|
+
hasFooter: hasFooter,
|
|
132
|
+
observedElementRef: observedElementRef
|
|
153
133
|
}, _react.default.createElement(_components.ScrollYBox, {
|
|
154
|
-
size: breakpoint
|
|
134
|
+
size: breakpoint,
|
|
135
|
+
hasFooter: hasFooter
|
|
155
136
|
}, _react.default.createElement(_components.Header, {
|
|
156
137
|
id: modalHeaderId,
|
|
157
138
|
paddingTop: (_ref2 = {}, _defineProperty(_ref2, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref2, _breakpointObserver.sizes.XS, 2), _ref2),
|
|
@@ -168,70 +149,57 @@ function Modal(_ref) {
|
|
|
168
149
|
}),
|
|
169
150
|
zIndex: zIndex + 10
|
|
170
151
|
}, translate(closeHint, 'modal.closeHint'))), IconComponent && _react.default.createElement(_Flex.default, {
|
|
171
|
-
|
|
152
|
+
marginBottom: 0.5
|
|
172
153
|
}, IconComponent), _react.default.createElement(_Typography.H2, null, title)), _react.default.createElement(_components.Content, {
|
|
173
154
|
hasIcon: !!IconComponent,
|
|
174
155
|
id: modalContentId,
|
|
175
156
|
paddingBottom: (_ref4 = {}, _defineProperty(_ref4, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref4, _breakpointObserver.sizes.XS, 2), _ref4),
|
|
176
157
|
paddingX: (_ref5 = {}, _defineProperty(_ref5, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref5, _breakpointObserver.sizes.XS, 2), _ref5),
|
|
177
158
|
size: breakpoint
|
|
178
|
-
}, children)),
|
|
159
|
+
}, children)), hasFooter && _react.default.createElement(_components.Footer, {
|
|
179
160
|
hasIcon: !!IconComponent,
|
|
180
161
|
id: modalFooterId,
|
|
181
162
|
paddingX: (_ref6 = {}, _defineProperty(_ref6, _breakpointObserver.sizes.LG, 3), _defineProperty(_ref6, _breakpointObserver.sizes.XS, 2), _ref6),
|
|
182
|
-
paddingY: 2,
|
|
163
|
+
paddingY: (_ref7 = {}, _defineProperty(_ref7, _breakpointObserver.sizes.LG, 2), _defineProperty(_ref7, _breakpointObserver.sizes.XS, 1.5), _ref7),
|
|
183
164
|
size: breakpoint
|
|
184
|
-
}, actions.map(function (action, index) {
|
|
185
|
-
return _react.default.createElement(
|
|
165
|
+
}, actions && actions.map(function (action, index) {
|
|
166
|
+
return _react.default.createElement(_components.ActionWrapper, {
|
|
186
167
|
key: action.text,
|
|
187
|
-
marginRight: 0.5
|
|
188
|
-
|
|
189
|
-
|
|
168
|
+
marginRight: 0.5,
|
|
169
|
+
size: breakpoint
|
|
170
|
+
}, _react.default.createElement(_Button.default, _extends({}, actionProps[index], (0, _omit.default)(action, ['size', 'variant']))));
|
|
171
|
+
})));
|
|
190
172
|
}
|
|
191
173
|
|
|
192
|
-
function
|
|
193
|
-
var onClose =
|
|
194
|
-
visible =
|
|
195
|
-
children =
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
var _useConfig = (0, _ConfigProvider.useConfig)(),
|
|
201
|
-
createPortal = _useConfig.createPortal;
|
|
174
|
+
function ModalWrapper(_ref8) {
|
|
175
|
+
var onClose = _ref8.onClose,
|
|
176
|
+
visible = _ref8.visible,
|
|
177
|
+
children = _ref8.children,
|
|
178
|
+
_ref8$zIndex = _ref8.zIndex,
|
|
179
|
+
zIndex = _ref8$zIndex === void 0 ? 1001 : _ref8$zIndex,
|
|
180
|
+
rest = _objectWithoutProperties(_ref8, ["onClose", "visible", "children", "zIndex"]);
|
|
202
181
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
document.removeEventListener('keydown', onKeyDown);
|
|
214
|
-
};
|
|
215
|
-
} // eslint has issues with no return statement here...
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return undefined;
|
|
219
|
-
}, [visible, onKeyDown]);
|
|
220
|
-
|
|
221
|
-
if (visible) {
|
|
222
|
-
return createPortal(_react.default.createElement(Modal, _extends({
|
|
223
|
-
onClose: onClose
|
|
224
|
-
}, rest), children));
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return null;
|
|
182
|
+
return _react.default.createElement(_useStackingContext.StackingContextProvider, {
|
|
183
|
+
zIndex: zIndex
|
|
184
|
+
}, _react.default.createElement(_Manager.default, {
|
|
185
|
+
onClose: onClose,
|
|
186
|
+
visible: visible
|
|
187
|
+
}, _react.default.createElement(Modal, _extends({
|
|
188
|
+
onClose: onClose,
|
|
189
|
+
visible: visible,
|
|
190
|
+
zIndex: zIndex
|
|
191
|
+
}, rest), children)));
|
|
228
192
|
} // @ts-ignore
|
|
229
193
|
|
|
230
194
|
|
|
231
|
-
|
|
195
|
+
ModalWrapper.propTypes = _objectSpread({}, _schema.default.propTypes, {
|
|
232
196
|
actions: _proptypeValidators.actionsValidator,
|
|
233
197
|
icon: _propTypes.default.elementType
|
|
234
198
|
});
|
|
235
|
-
|
|
236
|
-
|
|
199
|
+
ModalWrapper.defaultProps = {
|
|
200
|
+
actions: undefined,
|
|
201
|
+
icon: undefined
|
|
202
|
+
};
|
|
203
|
+
ModalWrapper.displayName = 'Modal';
|
|
204
|
+
var _default = ModalWrapper;
|
|
237
205
|
exports.default = _default;
|