@zohodesk/components 1.0.0-temp-256 → 1.0.0-temp-257.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/README.md +34 -1
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +321 -330
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +64 -79
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +29 -33
- package/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css +13 -13
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +29 -33
- package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css +13 -13
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +29 -33
- package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css +13 -13
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +29 -33
- package/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css +13 -13
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +29 -33
- package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css +13 -13
- package/assets/Appearance/light/mode/Component_LightMode.module.css +321 -330
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +64 -79
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +29 -33
- package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css +13 -13
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +29 -33
- package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css +13 -13
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +29 -33
- package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css +13 -13
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +29 -33
- package/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css +13 -13
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +29 -33
- package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css +13 -13
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +321 -330
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +64 -79
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +29 -33
- package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css +13 -13
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +29 -33
- package/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css +13 -13
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +29 -33
- package/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css +13 -13
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +29 -33
- package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css +13 -13
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +29 -33
- package/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css +13 -13
- package/es/Accordion/Accordion.js +2 -1
- package/es/Accordion/AccordionItem.js +3 -2
- package/es/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +1 -1
- package/es/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +1 -1
- package/es/Animation/__tests__/__snapshots__/Animation.spec.js.snap +1 -1
- package/es/AppContainer/AppContainer.js +2 -1
- package/es/AppContainer/AppContainer.module.css +9 -3
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +23 -23
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +43 -43
- package/es/AvatarTeam/AvatarTeam.js +4 -3
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +74 -98
- package/es/Button/Button.js +5 -4
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +4 -4
- package/es/Button/css/cssJSLogic.js +6 -6
- package/es/Buttongroup/Buttongroup.js +4 -3
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +9 -9
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +18 -18
- package/es/Card/__tests__/__snapshots__/CardContent.spec.js.snap +13 -13
- package/es/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +5 -5
- package/es/CheckBox/CheckBox.js +9 -8
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +154 -251
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +72 -81
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +62 -62
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +2 -1
- package/es/ColorSelect/_shared/ColorIndicator/__tests__/__snapshots__/ColorIndicator.spec.js.snap +10 -10
- package/es/ColorSelect/_shared/ColoredTag/__tests__/__snapshots__/ColoredTag.spec.js.snap +14 -14
- package/es/DateTime/CalendarView.js +4 -3
- package/es/DateTime/DateTime.js +5 -4
- package/es/DateTime/DateTimePopupFooter.js +2 -1
- package/es/DateTime/DateWidget.js +4 -3
- package/es/DateTime/Time.js +2 -1
- package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +50 -50
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +103 -103
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +2 -2
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +10 -10
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +10 -10
- package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +2 -2
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +35 -35
- package/es/DropBox/DropBox.js +13 -5
- package/es/DropBox/DropBoxElement/DropBoxElement.js +21 -8
- package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -1
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +6 -6
- package/es/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -1
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDownHeading.js +2 -1
- package/es/DropDown/DropDownItem.js +6 -5
- package/es/DropDown/DropDownSearch.js +2 -1
- package/es/DropDown/DropDownSeparator.js +2 -1
- package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +3 -3
- package/es/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +2 -2
- package/es/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +2 -2
- package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +3 -3
- package/es/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +2 -2
- package/es/Heading/__tests__/__snapshots__/Heading.spec.js.snap +8 -8
- package/es/Label/Label.js +3 -2
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +25 -49
- package/es/Layout/Box.js +1 -115
- package/es/Layout/Container.js +1 -132
- package/es/Layout/props/defaultProps.js +1 -16
- package/es/Layout/props/propTypes.js +1 -46
- package/es/ListItem/ListItemWithAvatar.js +2 -1
- package/es/ListItem/ListItemWithCheckBox.js +2 -1
- package/es/ListItem/ListItemWithIcon.js +3 -2
- package/es/ListItem/ListItemWithRadio.js +2 -1
- package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +3 -3
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +17 -17
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +42 -42
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +70 -77
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +42 -42
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +63 -70
- package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +1 -1
- package/es/Modal/__tests__/__snapshots__/Modal.spec.js.snap +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +8 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -5
- package/es/MultiSelect/EmptyState.js +5 -4
- package/es/MultiSelect/MobileHeader/MobileHeader.js +2 -1
- package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +5 -5
- package/es/MultiSelect/MultiSelect.js +18 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +10 -11
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +60 -63
- package/es/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +2 -2
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +57 -66
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +8 -8
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +12 -13
- package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +8 -8
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +48 -48
- package/es/MultiSelect/props/defaultProps.js +3 -0
- package/es/MultiSelect/props/propTypes.js +1 -0
- package/es/PopOver/PopOver.js +3 -2
- package/es/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +1 -1
- package/es/Radio/Radio.js +5 -4
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +118 -198
- package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +2 -2
- package/es/Ribbon/Ribbon.js +8 -20
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +22 -25
- package/es/RippleEffect/RippleEffect.js +1 -1
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +17 -17
- package/es/Select/GroupSelect.js +9 -6
- package/es/Select/Select.js +13 -8
- package/es/Select/SelectWithAvatar.js +9 -6
- package/es/Select/SelectWithIcon.js +8 -5
- package/es/Select/__tests__/SelectWithIcon.spec.js +3 -1
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +10 -10
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +1056 -1046
- package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +5 -5
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +13 -13
- package/es/Select/props/defaultProps.js +4 -0
- package/es/Select/props/propTypes.js +3 -0
- package/es/Stencils/Stencils.js +2 -1
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +13 -13
- package/es/Switch/Switch.js +4 -3
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +99 -111
- package/es/Tab/Tab.js +11 -62
- package/es/Tab/Tab.module.css +0 -25
- package/es/Tab/Tabs.js +10 -40
- package/es/Tab/Tabs.module.css +3 -48
- package/es/Tab/__tests__/Tab.spec.js +0 -112
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +3 -319
- package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +2 -2
- package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +2 -2
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +41 -41
- package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +2 -2
- package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +5 -5
- package/es/Tab/props/defaultProps.js +2 -3
- package/es/Tab/props/propTypes.js +3 -12
- package/es/Tab/utils/tabConfigs.js +0 -5
- package/es/Tag/Tag.js +6 -6
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +243 -335
- package/es/TextBox/TextBox.js +2 -1
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +45 -45
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +207 -207
- package/es/Textarea/Textarea.js +2 -1
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +47 -47
- package/es/Tooltip/Tooltip.js +5 -4
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +8 -8
- package/es/Typography/css/cssJSLogic.js +2 -2
- package/es/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +1 -1
- package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +1 -1
- package/es/common/basic.module.css +9 -8
- package/es/css.js +0 -1
- package/es/deprecated/Switch/Switch.js +4 -3
- package/es/semantic/Button/Button.js +2 -1
- package/es/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
- package/es/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +21 -21
- package/es/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +20 -20
- package/es/v1/Button/Button.js +166 -107
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +9 -9
- package/es/v1/Button/css/Button_v1.module.css +28 -16
- package/es/v1/Button/css/cssJSLogic.js +18 -3
- package/es/v1/Button/props/propTypes.js +14 -3
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
- package/es/v1/Switch/Switch.js +4 -3
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +1 -1
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +35 -35
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +20 -20
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
- package/es/v1/shared/Loader/Loader.js +4 -3
- package/es/v1/shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +2 -2
- package/es/v1/shared/SuccessTick/SuccessTick.js +2 -1
- package/es/v1/shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +2 -2
- package/lib/Accordion/Accordion.js +3 -1
- package/lib/Accordion/AccordionItem.js +4 -2
- package/lib/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +1 -1
- package/lib/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +1 -1
- package/lib/Animation/__tests__/__snapshots__/Animation.spec.js.snap +1 -1
- package/lib/AppContainer/AppContainer.js +3 -1
- package/lib/AppContainer/AppContainer.module.css +9 -3
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +23 -23
- package/lib/Avatar/Avatar.js +6 -4
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +43 -43
- package/lib/AvatarTeam/AvatarTeam.js +4 -2
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +74 -98
- package/lib/Button/Button.js +6 -4
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +4 -4
- package/lib/Button/css/cssJSLogic.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +5 -3
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +9 -9
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +18 -18
- package/lib/Card/__tests__/__snapshots__/CardContent.spec.js.snap +13 -13
- package/lib/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +5 -5
- package/lib/CheckBox/CheckBox.js +10 -8
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +154 -251
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +72 -81
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +62 -62
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +3 -1
- package/lib/ColorSelect/_shared/ColorIndicator/__tests__/__snapshots__/ColorIndicator.spec.js.snap +10 -10
- package/lib/ColorSelect/_shared/ColoredTag/__tests__/__snapshots__/ColoredTag.spec.js.snap +14 -14
- package/lib/DateTime/CalendarView.js +5 -3
- package/lib/DateTime/DateTime.js +6 -4
- package/lib/DateTime/DateTimePopupFooter.js +3 -1
- package/lib/DateTime/DateWidget.js +5 -3
- package/lib/DateTime/Time.js +3 -1
- package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +50 -50
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +103 -103
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +2 -2
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +10 -10
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +10 -10
- package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +2 -2
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +35 -35
- package/lib/DropBox/DropBox.js +14 -5
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +28 -8
- package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +1 -1
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +2 -2
- package/lib/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +1 -1
- package/lib/DropDown/DropDown.js +3 -1
- package/lib/DropDown/DropDownHeading.js +3 -1
- package/lib/DropDown/DropDownItem.js +7 -5
- package/lib/DropDown/DropDownSearch.js +3 -1
- package/lib/DropDown/DropDownSeparator.js +3 -1
- package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +3 -3
- package/lib/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +2 -2
- package/lib/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +2 -2
- package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +3 -3
- package/lib/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +2 -2
- package/lib/Heading/__tests__/__snapshots__/Heading.spec.js.snap +8 -8
- package/lib/Label/Label.js +3 -1
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +25 -49
- package/lib/Layout/Box.js +7 -120
- package/lib/Layout/Container.js +7 -137
- package/lib/Layout/props/defaultProps.js +14 -19
- package/lib/Layout/props/propTypes.js +13 -52
- package/lib/ListItem/ListItemWithAvatar.js +3 -1
- package/lib/ListItem/ListItemWithCheckBox.js +3 -1
- package/lib/ListItem/ListItemWithIcon.js +4 -2
- package/lib/ListItem/ListItemWithRadio.js +3 -1
- package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +3 -3
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +17 -17
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +42 -42
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +70 -77
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +42 -42
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +63 -70
- package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +1 -1
- package/lib/Modal/__tests__/__snapshots__/Modal.spec.js.snap +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -6
- package/lib/MultiSelect/AdvancedMultiSelect.js +8 -4
- package/lib/MultiSelect/EmptyState.js +6 -4
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +3 -1
- package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +5 -5
- package/lib/MultiSelect/MultiSelect.js +57 -50
- package/lib/MultiSelect/MultiSelectWithAvatar.js +8 -4
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +10 -11
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +60 -63
- package/lib/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +2 -2
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +57 -66
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +8 -8
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +12 -13
- package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +8 -8
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +48 -48
- package/lib/MultiSelect/props/defaultProps.js +3 -0
- package/lib/MultiSelect/props/propTypes.js +1 -0
- package/lib/PopOver/PopOver.js +4 -2
- package/lib/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +1 -1
- package/lib/Radio/Radio.js +6 -4
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +118 -198
- package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +2 -2
- package/lib/Ribbon/Ribbon.js +8 -19
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +22 -25
- package/lib/RippleEffect/RippleEffect.js +1 -1
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +17 -17
- package/lib/Select/GroupSelect.js +10 -6
- package/lib/Select/Select.js +14 -8
- package/lib/Select/SelectWithAvatar.js +10 -6
- package/lib/Select/SelectWithIcon.js +9 -5
- package/lib/Select/__tests__/SelectWithIcon.spec.js +3 -1
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +10 -10
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +1056 -1046
- package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +5 -5
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +13 -13
- package/lib/Select/props/defaultProps.js +5 -2
- package/lib/Select/props/propTypes.js +3 -0
- package/lib/Stencils/Stencils.js +3 -1
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +13 -13
- package/lib/Switch/Switch.js +5 -3
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +99 -111
- package/lib/Tab/Tab.js +9 -62
- package/lib/Tab/Tab.module.css +0 -25
- package/lib/Tab/Tabs.js +8 -37
- package/lib/Tab/Tabs.module.css +3 -48
- package/lib/Tab/__tests__/Tab.spec.js +0 -115
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +3 -319
- package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +2 -2
- package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +2 -2
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +41 -41
- package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +2 -2
- package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +5 -5
- package/lib/Tab/props/defaultProps.js +2 -3
- package/lib/Tab/props/propTypes.js +3 -14
- package/lib/Tab/utils/tabConfigs.js +1 -7
- package/lib/Tag/Tag.js +7 -5
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +243 -335
- package/lib/TextBox/TextBox.js +3 -1
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +45 -45
- package/lib/TextBoxIcon/TextBoxIcon.js +1 -1
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +207 -207
- package/lib/Textarea/Textarea.js +3 -1
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +47 -47
- package/lib/Tooltip/Tooltip.js +6 -4
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +8 -8
- package/lib/Typography/css/cssJSLogic.js +1 -1
- package/lib/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +1 -1
- package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +1 -1
- package/lib/common/basic.module.css +9 -8
- package/lib/css.js +0 -2
- package/lib/deprecated/Switch/Switch.js +5 -3
- package/lib/semantic/Button/Button.js +3 -1
- package/lib/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
- package/lib/shared/ArrowIcon/__tests__/__snapshots__/ArrowIcon.spec.js.snap +21 -21
- package/lib/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +20 -20
- package/lib/v1/Button/Button.js +185 -119
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +9 -9
- package/lib/v1/Button/css/Button_v1.module.css +28 -16
- package/lib/v1/Button/css/cssJSLogic.js +19 -7
- package/lib/v1/Button/props/propTypes.js +14 -3
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
- package/lib/v1/Switch/Switch.js +5 -3
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +1 -1
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +35 -35
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +20 -20
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
- package/lib/v1/shared/Loader/Loader.js +5 -3
- package/lib/v1/shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +2 -2
- package/lib/v1/shared/SuccessTick/SuccessTick.js +3 -1
- package/lib/v1/shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +2 -2
- package/package.json +28 -26
- package/ut.config.js +106 -0
- package/es/Layout/Layout.module.css +0 -336
- package/es/Layout/__tests__/Box.spec.js +0 -11
- package/es/Layout/__tests__/Container.spec.js +0 -11
- package/es/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
- package/es/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
- package/es/Layout/utils.js +0 -29
- package/lib/Layout/Layout.module.css +0 -336
- package/lib/Layout/__tests__/Box.spec.js +0 -18
- package/lib/Layout/__tests__/Container.spec.js +0 -18
- package/lib/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
- package/lib/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
- package/lib/Layout/utils.js +0 -59
|
@@ -34,9 +34,9 @@ function cssJSLogic(_ref) {
|
|
|
34
34
|
var paletteLower = palette.toLowerCase();
|
|
35
35
|
var statusLower = status.toLowerCase();
|
|
36
36
|
var canStrikeThrough = !strikeExcludedPalettes.includes(paletteLower);
|
|
37
|
-
var buttonClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames,
|
|
38
|
-
var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2,
|
|
39
|
-
var loaderChildClass = (0, _utils.compileClassNames)((_compileClassNames3 = {}, _defineProperty(_compileClassNames3,
|
|
37
|
+
var buttonClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.bold, isBold), _defineProperty(_compileClassNames, style["default"], !needAppearance), _defineProperty(_compileClassNames, style[paletteLower], needAppearance), _defineProperty(_compileClassNames, style.rounded, needAppearance && rounded), _defineProperty(_compileClassNames, style[size.toLowerCase()], needAppearance && !children), _defineProperty(_compileClassNames, style["".concat(size, "Btn")], needAppearance && children), _defineProperty(_compileClassNames, style["".concat(size, "Btn").concat(paletteLower)], needAppearance && children && rounded), _defineProperty(_compileClassNames, "".concat(style["".concat(paletteLower, "Strike")], " ").concat(style.strike), disabled && canStrikeThrough && shouldStrikeThroughDisabled), _defineProperty(_compileClassNames, style.loader, !!needAppearance && statusLower !== 'none'), _defineProperty(_compileClassNames, customButton, !!customButton), _compileClassNames));
|
|
38
|
+
var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.loading, statusLower === 'loading'), _defineProperty(_compileClassNames2, style["".concat(size, "loading")], statusLower === 'loading'), _defineProperty(_compileClassNames2, style.successstate, statusLower != 'loading'), _defineProperty(_compileClassNames2, customStatusSize, !!customStatusSize), _compileClassNames2));
|
|
39
|
+
var loaderChildClass = (0, _utils.compileClassNames)((_compileClassNames3 = {}, _defineProperty(_compileClassNames3, style.loadingelement, statusLower === 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "element")], statusLower === 'loading'), _defineProperty(_compileClassNames3, style.tickElement, statusLower != 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "Tick")], statusLower != 'loading'), _defineProperty(_compileClassNames3, customStatus, !!customStatus), _compileClassNames3));
|
|
40
40
|
return {
|
|
41
41
|
buttonClass: buttonClass,
|
|
42
42
|
loaderParentClass: loaderParentClass,
|
|
@@ -13,6 +13,8 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _cssUtility = require("@dot-system/css-utility");
|
|
17
|
+
|
|
16
18
|
var _ButtongroupModule = _interopRequireDefault(require("./Buttongroup.module.css"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -63,18 +65,18 @@ var Buttongroup = /*#__PURE__*/function (_React$Component) {
|
|
|
63
65
|
var btnGroup = [];
|
|
64
66
|
children && children.forEach(function (child) {
|
|
65
67
|
var btnRight = /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
-
className: _ButtongroupModule["default"][type]
|
|
68
|
+
className: (0, _cssUtility.cn)(_ButtongroupModule["default"][type])
|
|
67
69
|
}, child);
|
|
68
70
|
|
|
69
71
|
btnGroup.push(btnRight);
|
|
70
72
|
});
|
|
71
73
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
-
className: "".concat(_ButtongroupModule["default"].buttonGroup, " ").concat(_ButtongroupModule["default"][type], " ").concat(customClass ? customClass : ''),
|
|
74
|
+
className: (0, _cssUtility.cn)("".concat(_ButtongroupModule["default"].buttonGroup, " ").concat(_ButtongroupModule["default"][type], " ").concat(customClass ? customClass : '')),
|
|
73
75
|
"data-id": dataId,
|
|
74
76
|
"data-test-id": dataId,
|
|
75
77
|
"data-selector-id": dataSelectorId
|
|
76
78
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
-
className: _ButtongroupModule["default"]["align".concat(buttonPosition)]
|
|
79
|
+
className: (0, _cssUtility.cn)(_ButtongroupModule["default"]["align".concat(buttonPosition)])
|
|
78
80
|
}, children));
|
|
79
81
|
}
|
|
80
82
|
}]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Buttongrop - Checking the "customclass" 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="buttonGroup
|
|
6
|
+
class="buttonGroup customClassButtonGroup"
|
|
7
7
|
data-id="ButtonGroup"
|
|
8
8
|
data-selector-id="buttonGroup"
|
|
9
9
|
data-test-id="ButtonGroup"
|
|
@@ -28,7 +28,7 @@ exports[`Buttongrop - Checking the "customclass" 1`] = `
|
|
|
28
28
|
exports[`Buttongrop - rendering the "buttonPosition" to - center 1`] = `
|
|
29
29
|
<DocumentFragment>
|
|
30
30
|
<div
|
|
31
|
-
class="buttonGroup
|
|
31
|
+
class="buttonGroup"
|
|
32
32
|
data-id="ButtonGroup"
|
|
33
33
|
data-selector-id="buttonGroup"
|
|
34
34
|
data-test-id="ButtonGroup"
|
|
@@ -53,7 +53,7 @@ exports[`Buttongrop - rendering the "buttonPosition" to - center 1`] = `
|
|
|
53
53
|
exports[`Buttongrop - rendering the "buttonPosition" to - left 1`] = `
|
|
54
54
|
<DocumentFragment>
|
|
55
55
|
<div
|
|
56
|
-
class="buttonGroup
|
|
56
|
+
class="buttonGroup"
|
|
57
57
|
data-id="ButtonGroup"
|
|
58
58
|
data-selector-id="buttonGroup"
|
|
59
59
|
data-test-id="ButtonGroup"
|
|
@@ -78,7 +78,7 @@ exports[`Buttongrop - rendering the "buttonPosition" to - left 1`] = `
|
|
|
78
78
|
exports[`Buttongrop - rendering the "buttonPosition" to - right 1`] = `
|
|
79
79
|
<DocumentFragment>
|
|
80
80
|
<div
|
|
81
|
-
class="buttonGroup
|
|
81
|
+
class="buttonGroup"
|
|
82
82
|
data-id="ButtonGroup"
|
|
83
83
|
data-selector-id="buttonGroup"
|
|
84
84
|
data-test-id="ButtonGroup"
|
|
@@ -103,7 +103,7 @@ exports[`Buttongrop - rendering the "buttonPosition" to - right 1`] = `
|
|
|
103
103
|
exports[`Buttongrop - rendering the "type" - footer 1`] = `
|
|
104
104
|
<DocumentFragment>
|
|
105
105
|
<div
|
|
106
|
-
class="buttonGroup footer
|
|
106
|
+
class="buttonGroup footer"
|
|
107
107
|
data-id="ButtonGroup"
|
|
108
108
|
data-selector-id="buttonGroup"
|
|
109
109
|
data-test-id="ButtonGroup"
|
|
@@ -128,7 +128,7 @@ exports[`Buttongrop - rendering the "type" - footer 1`] = `
|
|
|
128
128
|
exports[`Buttongrop - rendering the "type" - header 1`] = `
|
|
129
129
|
<DocumentFragment>
|
|
130
130
|
<div
|
|
131
|
-
class="buttonGroup header
|
|
131
|
+
class="buttonGroup header"
|
|
132
132
|
data-id="ButtonGroup"
|
|
133
133
|
data-selector-id="buttonGroup"
|
|
134
134
|
data-test-id="ButtonGroup"
|
|
@@ -153,7 +153,7 @@ exports[`Buttongrop - rendering the "type" - header 1`] = `
|
|
|
153
153
|
exports[`Buttongrop - rendering the "type" - tab 1`] = `
|
|
154
154
|
<DocumentFragment>
|
|
155
155
|
<div
|
|
156
|
-
class="buttonGroup tab
|
|
156
|
+
class="buttonGroup tab"
|
|
157
157
|
data-id="ButtonGroup"
|
|
158
158
|
data-selector-id="buttonGroup"
|
|
159
159
|
data-test-id="ButtonGroup"
|
|
@@ -178,7 +178,7 @@ exports[`Buttongrop - rendering the "type" - tab 1`] = `
|
|
|
178
178
|
exports[`Buttongrop - rendering the default props 1`] = `
|
|
179
179
|
<DocumentFragment>
|
|
180
180
|
<div
|
|
181
|
-
class="buttonGroup
|
|
181
|
+
class="buttonGroup"
|
|
182
182
|
data-id="ButtonGroup"
|
|
183
183
|
data-selector-id="buttonGroup"
|
|
184
184
|
data-test-id="ButtonGroup"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`Card rendering the a11y 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="flex
|
|
6
|
+
class="flex fullSize column"
|
|
7
7
|
data-id="containerComponent"
|
|
8
8
|
data-selector-id="container"
|
|
9
9
|
data-test-id="containerComponent"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
class="
|
|
12
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
13
13
|
data-id="CardContent"
|
|
14
14
|
data-selector-id="cardContent"
|
|
15
15
|
data-test-id="CardContent"
|
|
@@ -24,14 +24,14 @@ exports[`Card rendering the a11y 1`] = `
|
|
|
24
24
|
exports[`Card rendering the children 1`] = `
|
|
25
25
|
<DocumentFragment>
|
|
26
26
|
<div
|
|
27
|
-
class="flex
|
|
27
|
+
class="flex fullSize column"
|
|
28
28
|
data-id="containerComponent"
|
|
29
29
|
data-selector-id="container"
|
|
30
30
|
data-test-id="containerComponent"
|
|
31
31
|
>
|
|
32
32
|
|
|
33
33
|
<div
|
|
34
|
-
class="
|
|
34
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
35
35
|
data-id="CardContent"
|
|
36
36
|
data-selector-id="cardContent"
|
|
37
37
|
data-test-id="CardContent"
|
|
@@ -45,13 +45,13 @@ exports[`Card rendering the children 1`] = `
|
|
|
45
45
|
exports[`Card rendering the customClass 1`] = `
|
|
46
46
|
<DocumentFragment>
|
|
47
47
|
<div
|
|
48
|
-
class="
|
|
48
|
+
class="flex fullSize column customClass"
|
|
49
49
|
data-id="containerComponent"
|
|
50
50
|
data-selector-id="container"
|
|
51
51
|
data-test-id="containerComponent"
|
|
52
52
|
>
|
|
53
53
|
<div
|
|
54
|
-
class="
|
|
54
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
55
55
|
data-id="CardContent"
|
|
56
56
|
data-selector-id="cardContent"
|
|
57
57
|
data-test-id="CardContent"
|
|
@@ -65,13 +65,13 @@ exports[`Card rendering the customClass 1`] = `
|
|
|
65
65
|
exports[`Card rendering the dataId value 1`] = `
|
|
66
66
|
<DocumentFragment>
|
|
67
67
|
<div
|
|
68
|
-
class="flex
|
|
68
|
+
class="flex fullSize column"
|
|
69
69
|
data-id="customdataId"
|
|
70
70
|
data-selector-id="container"
|
|
71
71
|
data-test-id="customdataId"
|
|
72
72
|
>
|
|
73
73
|
<div
|
|
74
|
-
class="
|
|
74
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
75
75
|
data-id="CardContent"
|
|
76
76
|
data-selector-id="cardContent"
|
|
77
77
|
data-test-id="CardContent"
|
|
@@ -85,7 +85,7 @@ exports[`Card rendering the dataId value 1`] = `
|
|
|
85
85
|
exports[`Card rendering the defult props 1`] = `
|
|
86
86
|
<DocumentFragment>
|
|
87
87
|
<div
|
|
88
|
-
class="flex
|
|
88
|
+
class="flex fullSize column"
|
|
89
89
|
data-id="containerComponent"
|
|
90
90
|
data-selector-id="container"
|
|
91
91
|
data-test-id="containerComponent"
|
|
@@ -96,13 +96,13 @@ exports[`Card rendering the defult props 1`] = `
|
|
|
96
96
|
exports[`Card rendering the htmlId 1`] = `
|
|
97
97
|
<DocumentFragment>
|
|
98
98
|
<div
|
|
99
|
-
class="flex
|
|
99
|
+
class="flex fullSize column"
|
|
100
100
|
data-id="containerComponent"
|
|
101
101
|
data-selector-id="container"
|
|
102
102
|
data-test-id="containerComponent"
|
|
103
103
|
>
|
|
104
104
|
<div
|
|
105
|
-
class="
|
|
105
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
106
106
|
data-id="CardContent"
|
|
107
107
|
data-selector-id="cardContent"
|
|
108
108
|
data-test-id="CardContent"
|
|
@@ -117,7 +117,7 @@ exports[`Card rendering the htmlId 1`] = `
|
|
|
117
117
|
exports[`Card rendering the isScrollAttribute is true 1`] = `
|
|
118
118
|
<DocumentFragment>
|
|
119
119
|
<div
|
|
120
|
-
class="flex
|
|
120
|
+
class="flex fullSize column"
|
|
121
121
|
data-id="containerComponent"
|
|
122
122
|
data-scroll="true"
|
|
123
123
|
data-selector-id="container"
|
|
@@ -125,7 +125,7 @@ exports[`Card rendering the isScrollAttribute is true 1`] = `
|
|
|
125
125
|
>
|
|
126
126
|
|
|
127
127
|
<div
|
|
128
|
-
class="
|
|
128
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
129
129
|
data-id="CardContent"
|
|
130
130
|
data-selector-id="cardContent"
|
|
131
131
|
data-test-id="CardContent"
|
|
@@ -139,13 +139,13 @@ exports[`Card rendering the isScrollAttribute is true 1`] = `
|
|
|
139
139
|
exports[`Card should trigger fetch, when scroll to the bottom of the card while isRecentOnBottom = false 1`] = `
|
|
140
140
|
<DocumentFragment>
|
|
141
141
|
<div
|
|
142
|
-
class="flex
|
|
142
|
+
class="flex fullSize column"
|
|
143
143
|
data-id="containerComponent"
|
|
144
144
|
data-selector-id="container"
|
|
145
145
|
data-test-id="containerComponent"
|
|
146
146
|
>
|
|
147
147
|
<div
|
|
148
|
-
class="
|
|
148
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
149
149
|
data-id="scrollToBottomCardContent"
|
|
150
150
|
data-selector-id="cardContent"
|
|
151
151
|
data-test-id="scrollToBottomCardContent"
|
|
@@ -161,13 +161,13 @@ exports[`Card should trigger fetch, when scroll to the bottom of the card while
|
|
|
161
161
|
exports[`Card should trigger fetch, when scroll to the top of the card while scrollDirection = bottomToTop 1`] = `
|
|
162
162
|
<DocumentFragment>
|
|
163
163
|
<div
|
|
164
|
-
class="flex
|
|
164
|
+
class="flex fullSize column"
|
|
165
165
|
data-id="containerComponent"
|
|
166
166
|
data-selector-id="container"
|
|
167
167
|
data-test-id="containerComponent"
|
|
168
168
|
>
|
|
169
169
|
<div
|
|
170
|
-
class="
|
|
170
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
171
171
|
data-id="scrollToTopCardContent"
|
|
172
172
|
data-selector-id="cardContent"
|
|
173
173
|
data-test-id="scrollToTopCardContent"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`CardContent Should render with name - both 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="
|
|
6
|
+
class="flexible basis_zero noShrink scroll_both"
|
|
7
7
|
data-id="CardContent"
|
|
8
8
|
data-scroll="true"
|
|
9
9
|
data-selector-id="cardContent"
|
|
@@ -19,7 +19,7 @@ exports[`CardContent Should render with name - both 1`] = `
|
|
|
19
19
|
exports[`CardContent Should render with name - both 2`] = `
|
|
20
20
|
<DocumentFragment>
|
|
21
21
|
<div
|
|
22
|
-
class="
|
|
22
|
+
class="flexible basis_zero noShrink scroll_vertical preventScrollBubbleBoth"
|
|
23
23
|
data-id="CardContent"
|
|
24
24
|
data-scroll="true"
|
|
25
25
|
data-selector-id="cardContent"
|
|
@@ -35,7 +35,7 @@ exports[`CardContent Should render with name - both 2`] = `
|
|
|
35
35
|
exports[`CardContent Should render with name - horizontal 1`] = `
|
|
36
36
|
<DocumentFragment>
|
|
37
37
|
<div
|
|
38
|
-
class="
|
|
38
|
+
class="flexible basis_zero noShrink scroll_horizontal"
|
|
39
39
|
data-id="CardContent"
|
|
40
40
|
data-scroll="true"
|
|
41
41
|
data-selector-id="cardContent"
|
|
@@ -51,7 +51,7 @@ exports[`CardContent Should render with name - horizontal 1`] = `
|
|
|
51
51
|
exports[`CardContent Should render with name - horizontal 2`] = `
|
|
52
52
|
<DocumentFragment>
|
|
53
53
|
<div
|
|
54
|
-
class="
|
|
54
|
+
class="flexible basis_zero noShrink scroll_vertical preventScrollBubbleX"
|
|
55
55
|
data-id="CardContent"
|
|
56
56
|
data-scroll="true"
|
|
57
57
|
data-selector-id="cardContent"
|
|
@@ -67,7 +67,7 @@ exports[`CardContent Should render with name - horizontal 2`] = `
|
|
|
67
67
|
exports[`CardContent Should render with name - none 1`] = `
|
|
68
68
|
<DocumentFragment>
|
|
69
69
|
<div
|
|
70
|
-
class="
|
|
70
|
+
class="flexible basis_zero noShrink scroll_hidden"
|
|
71
71
|
data-id="CardContent"
|
|
72
72
|
data-scroll="true"
|
|
73
73
|
data-selector-id="cardContent"
|
|
@@ -83,7 +83,7 @@ exports[`CardContent Should render with name - none 1`] = `
|
|
|
83
83
|
exports[`CardContent Should render with name - vertical 1`] = `
|
|
84
84
|
<DocumentFragment>
|
|
85
85
|
<div
|
|
86
|
-
class="
|
|
86
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
87
87
|
data-id="CardContent"
|
|
88
88
|
data-scroll="true"
|
|
89
89
|
data-selector-id="cardContent"
|
|
@@ -99,7 +99,7 @@ exports[`CardContent Should render with name - vertical 1`] = `
|
|
|
99
99
|
exports[`CardContent Should render with name - vertical 2`] = `
|
|
100
100
|
<DocumentFragment>
|
|
101
101
|
<div
|
|
102
|
-
class="
|
|
102
|
+
class="flexible basis_zero noShrink scroll_vertical preventScrollBubbleY"
|
|
103
103
|
data-id="CardContent"
|
|
104
104
|
data-scroll="true"
|
|
105
105
|
data-selector-id="cardContent"
|
|
@@ -115,7 +115,7 @@ exports[`CardContent Should render with name - vertical 2`] = `
|
|
|
115
115
|
exports[`CardContent rendering children 1`] = `
|
|
116
116
|
<DocumentFragment>
|
|
117
117
|
<div
|
|
118
|
-
class="
|
|
118
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
119
119
|
data-id="CardContent"
|
|
120
120
|
data-selector-id="cardContent"
|
|
121
121
|
data-test-id="CardContent"
|
|
@@ -128,7 +128,7 @@ exports[`CardContent rendering children 1`] = `
|
|
|
128
128
|
exports[`CardContent rendering customClass is true 1`] = `
|
|
129
129
|
<DocumentFragment>
|
|
130
130
|
<div
|
|
131
|
-
class="
|
|
131
|
+
class="flexible basis_zero noShrink scroll_vertical cardCustomClass"
|
|
132
132
|
data-id="CardContent"
|
|
133
133
|
data-selector-id="cardContent"
|
|
134
134
|
data-test-id="CardContent"
|
|
@@ -141,7 +141,7 @@ exports[`CardContent rendering customClass is true 1`] = `
|
|
|
141
141
|
exports[`CardContent rendering isScrollAttribute is true 1`] = `
|
|
142
142
|
<DocumentFragment>
|
|
143
143
|
<div
|
|
144
|
-
class="
|
|
144
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
145
145
|
data-id="CardContent"
|
|
146
146
|
data-scroll="true"
|
|
147
147
|
data-selector-id="cardContent"
|
|
@@ -155,7 +155,7 @@ exports[`CardContent rendering isScrollAttribute is true 1`] = `
|
|
|
155
155
|
exports[`CardContent rendering shrink is true 1`] = `
|
|
156
156
|
<DocumentFragment>
|
|
157
157
|
<div
|
|
158
|
-
class="
|
|
158
|
+
class="flexible basis_zero shrink scroll_vertical"
|
|
159
159
|
data-id="CardContent"
|
|
160
160
|
data-selector-id="cardContent"
|
|
161
161
|
data-test-id="CardContent"
|
|
@@ -168,7 +168,7 @@ exports[`CardContent rendering shrink is true 1`] = `
|
|
|
168
168
|
exports[`CardContent rendering the defult props 1`] = `
|
|
169
169
|
<DocumentFragment>
|
|
170
170
|
<div
|
|
171
|
-
class="
|
|
171
|
+
class="flexible basis_zero noShrink scroll_vertical"
|
|
172
172
|
data-id="CardContent"
|
|
173
173
|
data-selector-id="cardContent"
|
|
174
174
|
data-test-id="CardContent"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`CardHeader rendering the Children is true 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
|
-
class="notScroll
|
|
6
|
+
class="noShrink notScroll"
|
|
7
7
|
data-id="CardHeader"
|
|
8
8
|
data-selector-id="cardHeader"
|
|
9
9
|
data-test-id="CardHeader"
|
|
@@ -16,7 +16,7 @@ exports[`CardHeader rendering the Children is true 1`] = `
|
|
|
16
16
|
exports[`CardHeader rendering the customClass 1`] = `
|
|
17
17
|
<DocumentFragment>
|
|
18
18
|
<div
|
|
19
|
-
class="notScroll cardHeader-class
|
|
19
|
+
class="noShrink notScroll cardHeader-class"
|
|
20
20
|
data-id="CardHeader"
|
|
21
21
|
data-selector-id="cardHeader"
|
|
22
22
|
data-test-id="CardHeader"
|
|
@@ -29,7 +29,7 @@ exports[`CardHeader rendering the customClass 1`] = `
|
|
|
29
29
|
exports[`CardHeader rendering the defult props 1`] = `
|
|
30
30
|
<DocumentFragment>
|
|
31
31
|
<div
|
|
32
|
-
class="notScroll
|
|
32
|
+
class="noShrink notScroll"
|
|
33
33
|
data-id="CardHeader"
|
|
34
34
|
data-selector-id="cardHeader"
|
|
35
35
|
data-test-id="CardHeader"
|
|
@@ -40,7 +40,7 @@ exports[`CardHeader rendering the defult props 1`] = `
|
|
|
40
40
|
exports[`CardHeader rendering the isScroll is true 1`] = `
|
|
41
41
|
<DocumentFragment>
|
|
42
42
|
<div
|
|
43
|
-
class="scroll
|
|
43
|
+
class="noShrink scroll"
|
|
44
44
|
data-id="CardHeader"
|
|
45
45
|
data-selector-id="cardHeader"
|
|
46
46
|
data-test-id="CardHeader"
|
package/lib/CheckBox/CheckBox.js
CHANGED
|
@@ -21,6 +21,8 @@ var _Layout = require("../Layout");
|
|
|
21
21
|
|
|
22
22
|
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
23
23
|
|
|
24
|
+
var _cssUtility = require("@dot-system/css-utility");
|
|
25
|
+
|
|
24
26
|
var _CheckBoxModule = _interopRequireDefault(require("./CheckBox.module.css"));
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -152,7 +154,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
152
154
|
"aria-hidden": ariaHidden,
|
|
153
155
|
dataSelectorId: dataSelectorId || id
|
|
154
156
|
}, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
155
|
-
className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(secondaryText ? _CheckBoxModule["default"].withSecondaryText : '', " ").concat(_CheckBoxModule["default"][size], " ").concat(
|
|
157
|
+
className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(secondaryText ? _CheckBoxModule["default"].withSecondaryText : '', " ").concat(_CheckBoxModule["default"][size], " ").concat(isFilled ? _CheckBoxModule["default"].filled : '', " ").concat(!isEditable ? "".concat(_CheckBoxModule["default"]["disabled"]) : '', " ").concat(customCBoxSize),
|
|
156
158
|
align: secondaryText ? "start" : undefined
|
|
157
159
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
158
160
|
type: "hidden",
|
|
@@ -160,14 +162,14 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
160
162
|
ref: getRef,
|
|
161
163
|
name: name
|
|
162
164
|
}), /*#__PURE__*/_react["default"].createElement("label", {
|
|
163
|
-
className: "".concat(_CheckBoxModule["default"].checkbox, " ").concat(accessMode, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize)
|
|
165
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].checkbox, " ").concat(accessMode, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize))
|
|
164
166
|
}, activeStyle == 'tick' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
165
167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
166
168
|
viewBox: "0 0 40 40"
|
|
167
169
|
}, checked ? /*#__PURE__*/_react["default"].createElement("path", {
|
|
168
170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
171
|
d: "M39,20V35a4,4,0,0,1-4,4H5a4,4,0,0,1-4-4V5A4,4,0,0,1,5,1H28.44",
|
|
170
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
172
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].cbBox))
|
|
171
173
|
}) : /*#__PURE__*/_react["default"].createElement("rect", {
|
|
172
174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
173
175
|
x: "1",
|
|
@@ -175,14 +177,14 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
175
177
|
width: "38",
|
|
176
178
|
height: "38",
|
|
177
179
|
rx: "4",
|
|
178
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
180
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].cbBox))
|
|
179
181
|
})), checked ? /*#__PURE__*/_react["default"].createElement("svg", {
|
|
180
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
181
183
|
viewBox: "0 0 44 44",
|
|
182
|
-
className: "".concat(_CheckBoxModule["default"].tick, " ").concat(_CheckBoxModule["default"]["".concat(size, "tick")], "
|
|
184
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].tick, " ").concat(_CheckBoxModule["default"]["".concat(size, "tick")], " ").concat(disabled ? (0, _CssProvider["default"])('isDisabled') : '', " ").concat(customTickSize))
|
|
183
185
|
}, /*#__PURE__*/_react["default"].createElement("polyline", {
|
|
184
186
|
points: "12.56 19 19.61 26.06 40.39 5.28",
|
|
185
|
-
className: "".concat(_CheckBoxModule["default"].tickPath, " ").concat(_CheckBoxModule["default"].checkedtickPath)
|
|
187
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].tickPath, " ").concat(_CheckBoxModule["default"].checkedtickPath))
|
|
186
188
|
})) : null) : /*#__PURE__*/_react["default"].createElement("svg", {
|
|
187
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
188
190
|
viewBox: "0 0 40 40"
|
|
@@ -193,10 +195,10 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
193
195
|
width: "38",
|
|
194
196
|
height: "38",
|
|
195
197
|
rx: "4",
|
|
196
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
198
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].cbBox))
|
|
197
199
|
}), checked ? /*#__PURE__*/_react["default"].createElement("line", {
|
|
198
200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
199
|
-
className: "".concat(_CheckBoxModule["default"].linePath, " ").concat(_CheckBoxModule["default"].cbBox),
|
|
201
|
+
className: (0, _cssUtility.cn)("".concat(_CheckBoxModule["default"].linePath, " ").concat(_CheckBoxModule["default"].cbBox)),
|
|
200
202
|
x1: "11.47",
|
|
201
203
|
y1: "20",
|
|
202
204
|
x2: "28.53",
|