@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EACL,iBAAiB,EAElB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EACL,iBAAiB,EAElB,MAAM,4BAA4B,CAAC;AAIpC,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,oBAAY,QAAQ,GAAG,cAAc,CAAC;AAItC,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B;AAED,iBAAS,gBAAgB,CACvB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,SAAS,EACnB,aAAa,EAAE,OAAO,GACrB,KAAK,GAAG,IAAI,CAqBd;AAED,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAGxB,CAAC"}
|
|
@@ -9,15 +9,19 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
|
|
10
10
|
var _commonUIColors = require("../../utils/commonUIColors");
|
|
11
11
|
|
|
12
|
+
var _constants = require("./constants");
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
16
|
+
var validSizeVariantCombinations = Object.keys(_constants.sizeStyles);
|
|
17
|
+
|
|
14
18
|
function variantValidator(props, propName, componentName) {
|
|
15
19
|
if (process.env.NODE_ENV !== 'production') {
|
|
16
20
|
var size = props.size,
|
|
17
21
|
variant = props[propName];
|
|
18
22
|
|
|
19
|
-
if (size
|
|
20
|
-
return Error("The
|
|
23
|
+
if (!validSizeVariantCombinations.includes("".concat(size, ".").concat(variant))) {
|
|
24
|
+
return Error("The Badge component does not support the '".concat(size, "' size and '").concat(variant, "' variant props combination."));
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
_propTypes.default.checkPropTypes({
|
|
@@ -33,7 +37,7 @@ function variantValidator(props, propName, componentName) {
|
|
|
33
37
|
var propTypes = {
|
|
34
38
|
color: _propTypes.default.oneOf(_commonUIColors.commonUIColorKeys),
|
|
35
39
|
icon: _propTypes.default.elementType.isRequired,
|
|
36
|
-
size: _propTypes.default.oneOf(['medium', 'large']),
|
|
40
|
+
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
37
41
|
variant: variantValidator
|
|
38
42
|
};
|
|
39
43
|
exports.propTypes = propTypes;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Size, Kind, Intent, Variant } from './types';
|
|
3
3
|
export interface StyledButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
kind?: Kind;
|
|
5
4
|
intent?: Intent;
|
|
6
|
-
|
|
5
|
+
kind?: Kind;
|
|
6
|
+
minWidth?: string;
|
|
7
7
|
size: Size;
|
|
8
|
+
variant?: Variant;
|
|
8
9
|
}
|
|
9
10
|
declare const StyledButton: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
|
|
10
11
|
export default StyledButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/StyledButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StyledButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/StyledButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAe,MAAM,SAAS,CAAC;AAuKnE,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,YAAY,sFAkBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -17,6 +17,8 @@ var _designTokens = _interopRequireWildcard(require("@decisiv/design-tokens"));
|
|
|
17
17
|
|
|
18
18
|
var _ConfigProvider = require("../../providers/ConfigProvider");
|
|
19
19
|
|
|
20
|
+
var _dynamicModifiers = require("../../utils/dynamicModifiers");
|
|
21
|
+
|
|
20
22
|
var _focusRingWithColor = _interopRequireDefault(require("../../utils/focusRingWithColor"));
|
|
21
23
|
|
|
22
24
|
var _BaseButton = _interopRequireDefault(require("../../atoms/BaseButton"));
|
|
@@ -49,23 +51,35 @@ var color = _styledTheming.default.variants(_ConfigProvider.themeKeys.mode, 'var
|
|
|
49
51
|
dark: (0, _styledComponents.css)(["background-color:transparent;color:", ";padding:0;&:focus:not(:active){border-color:", ";", "}&:hover:not(:active){color:", ";}&:disabled:disabled{background-color:transparent;color:", ";}"], _colors.interactionPrimaryDark, _colors.focusRingColors.dark.ghost.border, (0, _focusRingWithColor.default)(_colors.focusRingColors.dark.ghost.shadow), _colors.interactionSecondaryLight, (0, _toColorString.default)(opacityColors.charcoal40))
|
|
50
52
|
}
|
|
51
53
|
});
|
|
52
|
-
/** map the Button size values to the matching font size values */
|
|
54
|
+
/** map the Button size values to the matching font size scalar values */
|
|
53
55
|
|
|
54
56
|
|
|
55
|
-
var
|
|
56
|
-
medium:
|
|
57
|
-
small:
|
|
57
|
+
var sizeToScalarSize = {
|
|
58
|
+
medium: fontSizes.default,
|
|
59
|
+
small: fontSizes.paragraph2,
|
|
60
|
+
large: fontSizes.header4,
|
|
61
|
+
extraLarge: 18
|
|
58
62
|
};
|
|
59
63
|
/** map the Button size values to the matching heights, in rem */
|
|
60
64
|
|
|
61
65
|
var sizeToHeight = {
|
|
62
66
|
medium: (0, _rem.default)(32),
|
|
63
|
-
small: (0, _rem.default)(24)
|
|
67
|
+
small: (0, _rem.default)(24),
|
|
68
|
+
large: (0, _rem.default)(44),
|
|
69
|
+
extraLarge: (0, _rem.default)(50)
|
|
70
|
+
};
|
|
71
|
+
/** map the Button size values to the matching X padding, in rem */
|
|
72
|
+
|
|
73
|
+
var sizeToPaddingX = {
|
|
74
|
+
medium: (0, _rem.default)(base),
|
|
75
|
+
small: (0, _rem.default)(base),
|
|
76
|
+
large: (0, _rem.default)(base * 1.5),
|
|
77
|
+
extraLarge: (0, _rem.default)(base * 1.5)
|
|
64
78
|
};
|
|
65
79
|
|
|
66
80
|
var buttonSizeModifier = function buttonSizeModifier(_ref) {
|
|
67
81
|
var size = _ref.size;
|
|
68
|
-
return (0, _styledComponents.css)(["font-size:", ";height:", ";"], (0, _rem.default)(
|
|
82
|
+
return (0, _styledComponents.css)(["font-size:", ";height:", ";padding:0 ", ";"], (0, _rem.default)(sizeToScalarSize[size]), sizeToHeight[size], sizeToPaddingX[size]);
|
|
69
83
|
};
|
|
70
84
|
|
|
71
85
|
var disabledStyles = function disabledStyles(_ref2) {
|
|
@@ -81,6 +95,6 @@ var disabledStyles = function disabledStyles(_ref2) {
|
|
|
81
95
|
var StyledButton = (0, _styledComponents.default)(_BaseButton.default).withConfig({
|
|
82
96
|
displayName: "StyledButton",
|
|
83
97
|
componentId: "sc-1khcx6y-0"
|
|
84
|
-
})(["align-items:center;border-radius:", ";border:1px solid transparent;display:flex;font-weight:", ";justify-content:center;line-height:1;outline:none;
|
|
98
|
+
})(["align-items:center;border-radius:", ";border:1px solid transparent;display:flex;font-weight:", ";justify-content:center;line-height:1;outline:none;text-transform:uppercase;white-space:nowrap;", ";", ";", ";", ";", ";", ";"], (0, _rem.default)(2), _designTokens.typography.weight.alias.default, color, _kind.default, _intent.default, buttonSizeModifier, (0, _dynamicModifiers.applyDynamicModifiers)('minWidth', 'min-width'), disabledStyles);
|
|
85
99
|
var _default = StyledButton;
|
|
86
100
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAIA,OAAc,EAA4B,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAMhF,OAAO,EACL,WAAW,EACX,SAAS,EAOV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAIA,OAAc,EAA4B,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAMhF,OAAO,EACL,WAAW,EACX,SAAS,EAOV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAkGrD,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,SAAS,EACT,WAAW,CACS,CAAC;AASvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,eAAe,aAAa,CAAC"}
|
|
@@ -72,6 +72,12 @@ var iconMarginProp = {
|
|
|
72
72
|
left: 'margin-right',
|
|
73
73
|
right: 'margin-left'
|
|
74
74
|
};
|
|
75
|
+
var sizeToIconSize = {
|
|
76
|
+
small: 'small',
|
|
77
|
+
medium: 'medium',
|
|
78
|
+
large: 'medium',
|
|
79
|
+
extraLarge: 'medium'
|
|
80
|
+
};
|
|
75
81
|
|
|
76
82
|
var iconMargin = function iconMargin(props) {
|
|
77
83
|
return !props.iconOnly && "".concat(iconMarginProp[props.position], ": ").concat((0, _rem.default)(5));
|
|
@@ -83,16 +89,17 @@ var IconContainer = _styledComponents.default.span.withConfig({
|
|
|
83
89
|
})(["line-height:0;", ";"], iconMargin);
|
|
84
90
|
|
|
85
91
|
var Button = function Button(props, ref) {
|
|
86
|
-
var
|
|
87
|
-
disabled = props.disabled,
|
|
92
|
+
var disabled = props.disabled,
|
|
88
93
|
icon = props.icon,
|
|
89
94
|
iconPosition = props.iconPosition,
|
|
90
95
|
intent = props.intent,
|
|
91
|
-
onClick = props.onClick,
|
|
92
96
|
kind = props.kind,
|
|
97
|
+
minWidth = props.minWidth,
|
|
98
|
+
onClick = props.onClick,
|
|
93
99
|
size = props.size,
|
|
100
|
+
text = props.text,
|
|
94
101
|
variant = props.variant,
|
|
95
|
-
rest = _objectWithoutProperties(props, ["
|
|
102
|
+
rest = _objectWithoutProperties(props, ["disabled", "icon", "iconPosition", "intent", "kind", "minWidth", "onClick", "size", "text", "variant"]);
|
|
96
103
|
|
|
97
104
|
var ButtonIcon = (0, _react.useMemo)(function () {
|
|
98
105
|
var Icon = icon;
|
|
@@ -100,15 +107,16 @@ var Button = function Button(props, ref) {
|
|
|
100
107
|
position: iconPosition,
|
|
101
108
|
iconOnly: !text
|
|
102
109
|
}, _react.default.createElement(Icon, {
|
|
103
|
-
size: size
|
|
110
|
+
size: sizeToIconSize[size]
|
|
104
111
|
}));
|
|
105
112
|
}, [icon, iconPosition, size, text]);
|
|
106
113
|
return _react.default.createElement(_StyledButton.default, _extends({
|
|
107
|
-
ref: ref,
|
|
108
114
|
disabled: disabled,
|
|
109
|
-
kind: kind,
|
|
110
115
|
intent: intent,
|
|
116
|
+
kind: kind,
|
|
117
|
+
minWidth: minWidth,
|
|
111
118
|
onClick: disabled ? _noop.default : onClick,
|
|
119
|
+
ref: ref,
|
|
112
120
|
size: size,
|
|
113
121
|
type: "button",
|
|
114
122
|
variant: variant
|
|
@@ -121,12 +129,13 @@ var propTypes = {
|
|
|
121
129
|
return (0, _isEmpty.default)(text);
|
|
122
130
|
}),
|
|
123
131
|
disabled: _propTypes.default.bool,
|
|
124
|
-
text: _propTypes.default.string,
|
|
125
|
-
size: _propTypes.default.oneOf(['small', 'medium']),
|
|
126
132
|
icon: _propTypes.default.elementType,
|
|
127
133
|
iconPosition: _propTypes.default.oneOf(['left', 'right']),
|
|
128
134
|
intent: _propTypes.default.oneOf(['success', 'danger']),
|
|
129
135
|
kind: _propTypes.default.oneOf(['primary', 'secondary']),
|
|
136
|
+
minWidth: _propTypes.default.string,
|
|
137
|
+
size: _propTypes.default.oneOf(['small', 'medium', 'large', 'extraLarge']),
|
|
138
|
+
text: _propTypes.default.string,
|
|
130
139
|
variant: _propTypes.default.oneOf(['normal', 'inverted', 'ghost'])
|
|
131
140
|
};
|
|
132
141
|
var defaultProps = {
|
|
@@ -135,6 +144,7 @@ var defaultProps = {
|
|
|
135
144
|
iconPosition: 'left',
|
|
136
145
|
intent: undefined,
|
|
137
146
|
kind: undefined,
|
|
147
|
+
minWidth: undefined,
|
|
138
148
|
size: 'medium',
|
|
139
149
|
text: undefined,
|
|
140
150
|
variant: 'normal'
|
|
@@ -101,39 +101,55 @@ describe('Button', function () {
|
|
|
101
101
|
|
|
102
102
|
expect(container).toMatchSnapshot();
|
|
103
103
|
});
|
|
104
|
+
it('renders correctly the large size', function () {
|
|
105
|
+
var _renderButton3 = renderButton({
|
|
106
|
+
size: 'large'
|
|
107
|
+
}),
|
|
108
|
+
container = _renderButton3.container;
|
|
109
|
+
|
|
110
|
+
expect(container).toMatchSnapshot();
|
|
111
|
+
});
|
|
112
|
+
it('renders correctly the extraLarge size', function () {
|
|
113
|
+
var _renderButton4 = renderButton({
|
|
114
|
+
size: 'extraLarge'
|
|
115
|
+
}),
|
|
116
|
+
container = _renderButton4.container;
|
|
117
|
+
|
|
118
|
+
expect(container).toMatchSnapshot();
|
|
119
|
+
});
|
|
104
120
|
describe('kind=secondary', function () {
|
|
105
121
|
it('renders correctly with the light theme', function () {
|
|
106
|
-
var
|
|
122
|
+
var _renderButton5 = renderButton({
|
|
107
123
|
kind: 'secondary'
|
|
108
124
|
}),
|
|
109
|
-
container =
|
|
125
|
+
container = _renderButton5.container;
|
|
110
126
|
|
|
111
127
|
expect(container).toMatchSnapshot();
|
|
112
128
|
});
|
|
113
129
|
it('renders correctly with the dark theme', function () {
|
|
114
|
-
var
|
|
130
|
+
var _renderButton6 = renderButton({
|
|
115
131
|
kind: 'secondary'
|
|
116
132
|
}, 'dark'),
|
|
117
|
-
container =
|
|
133
|
+
container = _renderButton6.container;
|
|
118
134
|
|
|
119
135
|
expect(container).toMatchSnapshot();
|
|
120
136
|
});
|
|
121
137
|
describe('inverted', function () {
|
|
122
138
|
it('renders correctly with the light theme', function () {
|
|
123
|
-
var
|
|
139
|
+
var _renderButton7 = renderButton({
|
|
124
140
|
kind: 'secondary',
|
|
125
141
|
variant: 'inverted'
|
|
126
142
|
}),
|
|
127
|
-
container =
|
|
143
|
+
container = _renderButton7.container;
|
|
128
144
|
|
|
129
145
|
expect(container).toMatchSnapshot();
|
|
130
146
|
});
|
|
131
147
|
it('renders correctly with the dark theme', function () {
|
|
132
|
-
var
|
|
148
|
+
var _renderButton8 = renderButton({
|
|
133
149
|
kind: 'secondary',
|
|
134
150
|
variant: 'inverted'
|
|
135
151
|
}, 'dark'),
|
|
136
|
-
container =
|
|
152
|
+
container = _renderButton8.container;
|
|
137
153
|
|
|
138
154
|
expect(container).toMatchSnapshot();
|
|
139
155
|
});
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { Validator } from 'prop-types';
|
|
2
|
+
export declare const makeButtonSchemaPropTypes: (extensions?: {
|
|
3
|
+
[x: string]: Validator<unknown>;
|
|
4
|
+
} | undefined) => {
|
|
5
|
+
[x: string]: Validator<unknown>;
|
|
6
|
+
};
|
|
2
7
|
declare const schema: any;
|
|
3
8
|
export default schema;
|
|
4
9
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Button/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Button/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,eAAO,MAAM,yBAAyB;;;;CAqCpC,CAAC;AAEH,QAAA,MAAM,MAAM,KAAsC,CAAC;AAInD,eAAe,MAAM,CAAC"}
|
|
@@ -7,18 +7,24 @@ exports.default = exports.makeButtonSchemaPropTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _reactDesc = require("react-desc");
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
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; }
|
|
13
|
+
|
|
14
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
|
|
16
|
+
var makeButtonSchemaPropTypes = function makeButtonSchemaPropTypes(extensions) {
|
|
17
|
+
return _objectSpread({
|
|
13
18
|
text: _reactDesc.PropTypes.string.description("The button's text"),
|
|
14
19
|
disabled: _reactDesc.PropTypes.bool.description('Defines if the button will be disabled').defaultValue('false'),
|
|
15
|
-
size: _reactDesc.PropTypes.oneOf(['small', 'medium']).description('Defines the size of the button').defaultValue('medium'),
|
|
20
|
+
size: _reactDesc.PropTypes.oneOf(['small', 'medium', 'large', 'extraLarge']).description('Defines the size of the button').defaultValue('medium'),
|
|
16
21
|
icon: _reactDesc.PropTypes.element.description('Which `iconix` icon to render'),
|
|
17
22
|
iconPosition: _reactDesc.PropTypes.oneOf(['left', 'right']).description('In which side of the text the icon should be rendered').defaultValue('left'),
|
|
18
23
|
intent: _reactDesc.PropTypes.oneOf(['success', 'danger']).description('Applies desired hover state of button'),
|
|
19
24
|
kind: _reactDesc.PropTypes.oneOf(['primary', 'secondary']).description('Applies inverted button styles'),
|
|
25
|
+
minWidth: _reactDesc.PropTypes.string.description('A pass-through CSS value for the min-width attribute'),
|
|
20
26
|
variant: _reactDesc.PropTypes.oneOf(['normal', 'inverted']).description('Applies secondary button styles')
|
|
21
|
-
};
|
|
27
|
+
}, extensions);
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
exports.makeButtonSchemaPropTypes = makeButtonSchemaPropTypes;
|
|
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes, Ref } from 'react';
|
|
|
2
2
|
import { IconProps } from '@decisiv/iconix';
|
|
3
3
|
import { TranslatedText } from '../../utils/useTranslations';
|
|
4
4
|
export declare type ButtonRef = HTMLButtonElement;
|
|
5
|
-
export declare type Size = 'medium' | '
|
|
5
|
+
export declare type Size = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
6
6
|
export declare type IconPosition = 'left' | 'right';
|
|
7
7
|
export declare type Intent = 'danger' | 'success';
|
|
8
8
|
export declare type Variant = 'normal' | 'inverted' | 'ghost';
|
|
@@ -14,6 +14,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
14
14
|
iconPosition?: IconPosition;
|
|
15
15
|
intent?: Intent;
|
|
16
16
|
kind?: Kind;
|
|
17
|
+
minWidth?: string;
|
|
17
18
|
ref?: Ref<ButtonRef>;
|
|
18
19
|
size?: Size;
|
|
19
20
|
text?: TranslatedText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,oBAAY,SAAS,GAAG,iBAAiB,CAAC;AAC1C,oBAAY,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,oBAAY,SAAS,GAAG,iBAAiB,CAAC;AAC1C,oBAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAC/D,oBAAY,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5C,oBAAY,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC1C,oBAAY,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AACtD,oBAAY,IAAI,GAAG,SAAS,GAAG,WAAW,CAAC;AAC3C,oBAAY,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAGvE,OAAqB,EACnB,KAAK,IAAI,UAAU,EACnB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAElC,oBAAY,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAQ7C,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAAC,YAAY,EAAE,KAAK,CAEhE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAGvE,OAAqB,EACnB,KAAK,IAAI,UAAU,EACnB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAElC,oBAAY,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAQ7C,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAAC,YAAY,EAAE,KAAK,CAEhE,CAAC;AAmBF,eAAe,eAAe,CAAC"}
|
|
@@ -33,13 +33,15 @@ CheckboxWithRef.propTypes = {
|
|
|
33
33
|
label: _propTypes.default.string,
|
|
34
34
|
disabled: _propTypes.default.bool,
|
|
35
35
|
readOnly: _propTypes.default.bool,
|
|
36
|
+
required: _propTypes.default.bool,
|
|
36
37
|
size: _propTypes.default.oneOf(['normal', 'small']),
|
|
37
38
|
status: _propTypes.default.oneOf(['normal', 'warning']),
|
|
38
39
|
warningMessage: _propTypes.default.string
|
|
39
40
|
};
|
|
40
41
|
CheckboxWithRef.defaultProps = {
|
|
41
42
|
size: 'normal',
|
|
42
|
-
status: 'normal'
|
|
43
|
+
status: 'normal',
|
|
44
|
+
required: false
|
|
43
45
|
};
|
|
44
46
|
var _default = CheckboxWithRef;
|
|
45
47
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAwC,CAAC;AA4DrD,eAAe,MAAM,CAAC"}
|
|
@@ -18,6 +18,8 @@ schema.propTypes = {
|
|
|
18
18
|
defaultChecked: _reactDesc.PropTypes.bool.description('Whether or not the checkbox is initially checked. Use if you do not want to manually control the state.').defaultValue('false'),
|
|
19
19
|
disabled: _reactDesc.PropTypes.bool.description('If the checkbox should be disabled and ignore user interactions.').defaultValue('false'),
|
|
20
20
|
readOnly: _reactDesc.PropTypes.bool.description('Ignore user interactions, but still display the label in a readable manner.').defaultValue('false'),
|
|
21
|
+
required: _reactDesc.PropTypes.bool.description('Whether or not the checkbox should be required. Renders an indicator if true.').defaultValue('false'),
|
|
22
|
+
requiredMessage: _reactDesc.PropTypes.string.description('The text to display in the tooltip when hovering over the required icon. It displays "Required" by default').defaultValue('Required'),
|
|
21
23
|
size: _reactDesc.PropTypes.oneOf(['normal', 'small']).description('Controls the size of the checkbox and label.').defaultValue('normal'),
|
|
22
24
|
status: _reactDesc.PropTypes.oneOf(['normal', 'warning']).description('Whether or not to render the warning state.').defaultValue('normal'),
|
|
23
25
|
warningMessage: _reactDesc.PropTypes.string.description('The warning message to display below the checkbox. If provided, the `status` prop is automatically set to `warning`.')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Target.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Target.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAkBvE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmLtC,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,gBAAgB,EAChB,WAAW,CACS,CAAC;AAGvB,eAAe,aAAa,CAAC"}
|
|
@@ -31,6 +31,8 @@ var _Button = _interopRequireDefault(require("../Button"));
|
|
|
31
31
|
|
|
32
32
|
var _Flex = _interopRequireDefault(require("../Flex"));
|
|
33
33
|
|
|
34
|
+
var _Tag = _interopRequireDefault(require("../Tag"));
|
|
35
|
+
|
|
34
36
|
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; } }
|
|
35
37
|
|
|
36
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -44,21 +46,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
44
46
|
var TargetContainer = _styledComponents.default.div.withConfig({
|
|
45
47
|
displayName: "Target__TargetContainer",
|
|
46
48
|
componentId: "sc-1obpsql-0"
|
|
47
|
-
})(["align-items:center;display:flex;justify-content:
|
|
49
|
+
})(["align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding-right:15px;", ""], (0, _styleModifiers.when)('hasExpandIndicator', (0, _styledComponents.css)(["padding-right:45px;"])));
|
|
48
50
|
|
|
49
51
|
var Input = _styledComponents.default.input.withConfig({
|
|
50
52
|
displayName: "Target__Input",
|
|
51
53
|
componentId: "sc-1obpsql-1"
|
|
52
|
-
})(["font-family:", ";font-size:", ";font-weight:", ";overflow:visible;&::-moz-focus-inner{border:0;padding:0;margin:0;}background-color:inherit;border:transparent;display:block;line-height:140%;padding:
|
|
54
|
+
})(["font-family:", ";font-size:", ";font-weight:", ";overflow:visible;&::-moz-focus-inner{border:0;padding:0;margin:0;}background-color:inherit;border:transparent;display:block;line-height:140%;padding:0 10px 5px 1px;flex-grow:100;&:active,&:focus{outline:none;}"], _designTokens.typography.typeface.default, (0, _rem.default)(_designTokens.typography.size.alias.default), _designTokens.typography.weight.alias.default);
|
|
53
55
|
|
|
56
|
+
var ClearButtonContainer = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
57
|
+
displayName: "Target__ClearButtonContainer",
|
|
58
|
+
componentId: "sc-1obpsql-2"
|
|
59
|
+
})(["position:absolute;bottom:0;right:0;padding-bottom:2px;padding-left:10px;padding-right:10px;", ""], (0, _styleModifiers.when)('hasExpandIndicator', (0, _styledComponents.css)(["right:20px;"])));
|
|
54
60
|
var ExpandedIndicatorContainer = (0, _styledComponents.default)(_Flex.default).attrs({
|
|
55
|
-
alignItems: 'center'
|
|
56
|
-
paddingBottom: 0.2,
|
|
57
|
-
paddingRight: 1
|
|
61
|
+
alignItems: 'center'
|
|
58
62
|
}).withConfig({
|
|
59
63
|
displayName: "Target__ExpandedIndicatorContainer",
|
|
60
|
-
componentId: "sc-1obpsql-
|
|
61
|
-
})(["color:", ";&:hover{color:", ";}", ";"], (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _styleModifiers.when)('disabled', (0, _styledComponents.css)(["color:", ";&:hover{color:", ";}"], (0, _toColorString.default)(_color.default.opacity.charcoal40), (0, _toColorString.default)(_color.default.opacity.charcoal40))));
|
|
64
|
+
componentId: "sc-1obpsql-3"
|
|
65
|
+
})(["position:absolute;bottom:2px;right:10px;color:", ";&:hover{color:", ";}", ";"], (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _styleModifiers.when)('disabled', (0, _styledComponents.css)(["color:", ";&:hover{color:", ";}"], (0, _toColorString.default)(_color.default.opacity.charcoal40), (0, _toColorString.default)(_color.default.opacity.charcoal40))));
|
|
62
66
|
|
|
63
67
|
function Target(_ref, ref) {
|
|
64
68
|
var clearButtonLabel = _ref.clearButtonLabel,
|
|
@@ -67,20 +71,50 @@ function Target(_ref, ref) {
|
|
|
67
71
|
inputFieldLabel = _ref.inputFieldLabel,
|
|
68
72
|
isPopoverVisible = _ref.isPopoverVisible,
|
|
69
73
|
onClear = _ref.onClear,
|
|
74
|
+
multiple = _ref.multiple,
|
|
75
|
+
selectedValues = _ref.selectedValues,
|
|
76
|
+
removeSelected = _ref.removeSelected,
|
|
70
77
|
readOnly = _ref.readOnly,
|
|
71
78
|
variant = _ref.variant,
|
|
72
79
|
toggleIsPopoverVisible = _ref.toggleIsPopoverVisible,
|
|
73
|
-
|
|
80
|
+
autoComplete = _ref.autoComplete,
|
|
81
|
+
rest = _objectWithoutProperties(_ref, ["clearButtonLabel", "disabled", "hasClearButton", "inputFieldLabel", "isPopoverVisible", "onClear", "multiple", "selectedValues", "removeSelected", "readOnly", "variant", "toggleIsPopoverVisible", "autoComplete"]);
|
|
74
82
|
|
|
75
83
|
var translate = (0, _useTranslations.default)();
|
|
76
|
-
|
|
77
|
-
|
|
84
|
+
var hasExpandIndicator = !readOnly && variant === 'sync';
|
|
85
|
+
return _react.default.createElement(TargetContainer, {
|
|
86
|
+
hasExpandIndicator: hasExpandIndicator
|
|
87
|
+
}, multiple && selectedValues && selectedValues.map(function (_ref2) {
|
|
88
|
+
var id = _ref2.id,
|
|
89
|
+
label = _ref2.label;
|
|
90
|
+
return _react.default.createElement(_Tag.default, {
|
|
91
|
+
key: id,
|
|
92
|
+
text: label,
|
|
93
|
+
style: {
|
|
94
|
+
margin: '2px'
|
|
95
|
+
},
|
|
96
|
+
action: function action(e) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
e.stopPropagation();
|
|
99
|
+
removeSelected(id);
|
|
100
|
+
},
|
|
101
|
+
color: 'licoriceMousse',
|
|
102
|
+
actionIntent: "danger",
|
|
103
|
+
actionIcon: _Times.default,
|
|
104
|
+
actionAttributes: {
|
|
105
|
+
'aria-label': 'Delete'
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}), _react.default.createElement(Input, _extends({
|
|
109
|
+
autoComplete: autoComplete || 'off',
|
|
78
110
|
disabled: disabled,
|
|
79
111
|
ref: ref
|
|
80
|
-
})), hasClearButton && !readOnly && _react.default.createElement(
|
|
81
|
-
|
|
82
|
-
paddingX: 1
|
|
112
|
+
}, rest)), hasClearButton && !readOnly && _react.default.createElement(ClearButtonContainer, {
|
|
113
|
+
hasExpandIndicator: hasExpandIndicator
|
|
83
114
|
}, _react.default.createElement(_Button.default, {
|
|
115
|
+
style: {
|
|
116
|
+
padding: 0
|
|
117
|
+
},
|
|
84
118
|
"aria-label": translate(clearButtonLabel, 'combobox.clearButtonLabel', {
|
|
85
119
|
label: inputFieldLabel
|
|
86
120
|
}),
|
|
@@ -97,9 +131,12 @@ function Target(_ref, ref) {
|
|
|
97
131
|
},
|
|
98
132
|
size: "small",
|
|
99
133
|
variant: "ghost"
|
|
100
|
-
})),
|
|
134
|
+
})), hasExpandIndicator && _react.default.createElement(ExpandedIndicatorContainer, {
|
|
101
135
|
disabled: disabled
|
|
102
136
|
}, _react.default.createElement(_Button.default, {
|
|
137
|
+
style: {
|
|
138
|
+
padding: 0
|
|
139
|
+
},
|
|
103
140
|
variant: "ghost",
|
|
104
141
|
size: "small",
|
|
105
142
|
tabIndex: -1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.tsx"],"names":[],"mappings":"AASA,OAAc,EAGZ,sBAAsB,EAQvB,MAAM,OAAO,CAAC;AA2Bf,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAQ,MAAM,SAAS,CAAC;AAuiBhE,QAAA,MAAM,eAAe,EAAE,sBAAsB,CAC3C,gBAAgB,EAChB,aAAa,CACS,CAAC;AAOzB,eAAe,eAAe,CAAC"}
|