@zohodesk/components 1.6.0 → 1.6.2
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 +18 -1
- package/_react-cli.config.js +24 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +330 -321
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +15 -9
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +330 -321
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +15 -9
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +330 -321
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +15 -9
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Contrast/darkContrastLightness.module.css +36 -36
- package/assets/Contrast/lightContrastLightness.module.css +36 -36
- package/assets/Contrast/pureDarkContrastLightness.module.css +36 -36
- package/cbt.config.js +41 -0
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +30 -30
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.js +0 -0
- package/es/Buttongroup/Buttongroup.module.css +5 -3
- package/es/Card/Card.js +0 -0
- package/es/CheckBox/CheckBox.js +11 -11
- package/es/ColorSelect/ColorMultiSelect.js +4 -2
- package/es/ColorSelect/ColorSingleSelect.js +4 -2
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +4 -3
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/es/ColorSelect/_shared/ColoredTag/ColoredTag.js +4 -2
- package/es/ColorSelect/_shared/helpers/renderHelpers.js +6 -4
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +5 -4
- package/es/DateTime/DateWidget.js +5 -4
- package/es/DateTime/Time.js +11 -12
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +4 -4
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +4 -4
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/Label/Label.js +7 -7
- package/es/Label/Label.module.css +5 -5
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +30 -19
- package/es/ListItem/ListItemWithAvatar.js +10 -11
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +11 -8
- package/es/MultiSelect/EmptyState.js +16 -2
- package/es/MultiSelect/MultiSelect.js +10 -8
- package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/propTypes.js +3 -0
- package/es/Popup/Popup.js +0 -0
- package/es/Provider/LibraryContext.js +11 -3
- package/es/Radio/Radio.js +11 -11
- package/es/Radio/Radio.module.css +9 -8
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +25 -20
- package/es/Select/GroupSelect.js +13 -12
- package/es/Select/Select.js +14 -12
- package/es/Select/SelectWithAvatar.js +13 -12
- package/es/Select/SelectWithIcon.js +10 -8
- package/es/Select/props/propTypes.js +3 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +19 -20
- package/es/Tag/Tag.js +11 -12
- package/es/Tag/Tag.module.css +18 -17
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.js +7 -6
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/common.module.css +2 -2
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/deprecated/Switch/Switch.js +8 -8
- package/es/shared/ArrowIcon/ArrowIcon.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/es/v1/Label/Label.js +98 -33
- package/es/v1/Label/__tests__/Label.spec.js +214 -0
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/es/v1/Label/constants/index.js +8 -0
- package/es/v1/Label/css/Label_v1.module.css +42 -0
- package/es/v1/Label/css/cssJSLogic.js +44 -0
- package/es/v1/Label/props/defaultProps.js +14 -9
- package/es/v1/Label/props/propTypes.js +34 -14
- package/es/v1/Switch/Switch.js +7 -6
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.js +0 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
- package/lib/Button/Button.js +0 -0
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.js +0 -0
- package/lib/Buttongroup/Buttongroup.module.css +5 -3
- package/lib/Card/Card.js +0 -0
- package/lib/CheckBox/CheckBox.js +0 -0
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +0 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +4 -4
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +4 -4
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +5 -5
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +0 -0
- package/lib/ListItem/ListItem.module.css +30 -19
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -0
- package/lib/MultiSelect/EmptyState.js +17 -2
- package/lib/MultiSelect/MultiSelect.js +2 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +3 -0
- package/lib/Popup/Popup.js +0 -0
- package/lib/Provider/LibraryContext.js +11 -3
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +9 -8
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +25 -20
- package/lib/Select/GroupSelect.js +2 -0
- package/lib/Select/Select.js +2 -0
- package/lib/Select/SelectWithAvatar.js +2 -0
- package/lib/Select/SelectWithIcon.js +2 -0
- package/lib/Select/props/propTypes.js +3 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Switch/Switch.js +0 -0
- package/lib/Tag/Tag.js +0 -0
- package/lib/Tag/Tag.module.css +18 -17
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/common.module.css +2 -2
- package/lib/deprecated/Switch/Switch.js +0 -0
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/lib/v1/Label/Label.js +104 -36
- package/lib/v1/Label/__tests__/Label.spec.js +221 -0
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/lib/v1/Label/constants/index.js +16 -0
- package/lib/v1/Label/css/Label_v1.module.css +42 -0
- package/lib/v1/Label/css/cssJSLogic.js +38 -0
- package/lib/v1/Label/props/defaultProps.js +16 -11
- package/lib/v1/Label/props/propTypes.js +36 -16
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/package.json +15 -20
- package/es/v1/Accordion/Accordion.js +0 -66
- package/es/v1/Accordion/AccordionItem.js +0 -57
- package/es/v1/Accordion/index.js +0 -2
- package/es/v1/Accordion/props/defaultProps.js +0 -12
- package/es/v1/Accordion/props/propTypes.js +0 -33
- package/es/v1/Animation/Animation.js +0 -45
- package/es/v1/Animation/props/defaultProps.js +0 -7
- package/es/v1/Animation/props/propTypes.js +0 -12
- package/es/v1/Animation/utils.js +0 -83
- package/es/v1/AppContainer/AppContainer.js +0 -115
- package/es/v1/AppContainer/props/defaultProps.js +0 -10
- package/es/v1/AppContainer/props/propTypes.js +0 -17
- package/es/v1/Avatar/Avatar.js +0 -139
- package/es/v1/Avatar/props/defaultProps.js +0 -17
- package/es/v1/Avatar/props/propTypes.js +0 -26
- package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
- package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
- package/es/v1/AvatarTeam/props/propTypes.js +0 -27
- package/es/v1/Button/Button.js +0 -67
- package/es/v1/Button/props/defaultProps.js +0 -18
- package/es/v1/Button/props/propTypes.js +0 -28
- package/es/v1/Buttongroup/Buttongroup.js +0 -31
- package/es/v1/Buttongroup/props/defaultProps.js +0 -6
- package/es/v1/Buttongroup/props/propTypes.js +0 -9
- package/es/v1/Card/Card.js +0 -237
- package/es/v1/Card/index.js +0 -4
- package/es/v1/Card/props/defaultProps.js +0 -25
- package/es/v1/Card/props/propTypes.js +0 -48
- package/es/v1/CheckBox/CheckBox.js +0 -161
- package/es/v1/CheckBox/props/defaultProps.js +0 -18
- package/es/v1/CheckBox/props/propTypes.js +0 -41
- package/es/v1/DateTime/CalendarView.js +0 -254
- package/es/v1/DateTime/DateTime.js +0 -779
- package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
- package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
- package/es/v1/DateTime/DateWidget.js +0 -1134
- package/es/v1/DateTime/DaysRow.js +0 -32
- package/es/v1/DateTime/Time.js +0 -181
- package/es/v1/DateTime/YearView.js +0 -264
- package/es/v1/DateTime/index.js +0 -1
- package/es/v1/DateTime/props/defaultProps.js +0 -63
- package/es/v1/DateTime/props/propTypes.js +0 -206
- package/es/v1/DropBox/DropBox.js +0 -79
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
- package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
- package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
- package/es/v1/DropBox/props/defaultProps.js +0 -14
- package/es/v1/DropBox/props/propTypes.js +0 -16
- package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
- package/es/v1/DropDown/DropDown.js +0 -53
- package/es/v1/DropDown/DropDownHeading.js +0 -36
- package/es/v1/DropDown/DropDownItem.js +0 -56
- package/es/v1/DropDown/DropDownSearch.js +0 -58
- package/es/v1/DropDown/DropDownSeparator.js +0 -12
- package/es/v1/DropDown/props/defaultProps.js +0 -21
- package/es/v1/DropDown/props/propTypes.js +0 -66
- package/es/v1/Heading/Heading.js +0 -35
- package/es/v1/Heading/props/defaultProps.js +0 -5
- package/es/v1/Heading/props/propTypes.js +0 -12
- package/es/v1/Layout/Box.js +0 -115
- package/es/v1/Layout/Container.js +0 -132
- package/es/v1/Layout/index.js +0 -2
- package/es/v1/Layout/props/defaultProps.js +0 -16
- package/es/v1/Layout/props/propTypes.js +0 -46
- package/es/v1/ListItem/ListContainer.js +0 -104
- package/es/v1/ListItem/ListItem.js +0 -123
- package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
- package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
- package/es/v1/ListItem/ListItemWithIcon.js +0 -126
- package/es/v1/ListItem/ListItemWithRadio.js +0 -105
- package/es/v1/ListItem/index.js +0 -6
- package/es/v1/ListItem/props/defaultProps.js +0 -97
- package/es/v1/ListItem/props/propTypes.js +0 -202
- package/es/v1/Modal/Modal.js +0 -125
- package/es/v1/Modal/props/defaultProps.js +0 -3
- package/es/v1/Modal/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
- package/es/v1/MultiSelect/EmptyState.js +0 -64
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
- package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
- package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/MultiSelect.js +0 -1119
- package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
- package/es/v1/MultiSelect/SelectedOptions.js +0 -84
- package/es/v1/MultiSelect/Suggestions.js +0 -141
- package/es/v1/MultiSelect/index.js +0 -4
- package/es/v1/MultiSelect/props/defaultProps.js +0 -165
- package/es/v1/MultiSelect/props/propTypes.js +0 -322
- package/es/v1/PopOver/PopOver.js +0 -176
- package/es/v1/PopOver/props/defaultProps.js +0 -7
- package/es/v1/PopOver/props/propTypes.js +0 -53
- package/es/v1/Popup/Popup.js +0 -644
- package/es/v1/Radio/Radio.js +0 -130
- package/es/v1/Radio/props/defaultProps.js +0 -15
- package/es/v1/Radio/props/propTypes.js +0 -40
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
- package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
- package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
- package/es/v1/Ribbon/Ribbon.js +0 -33
- package/es/v1/Ribbon/props/defaultProps.js +0 -9
- package/es/v1/Ribbon/props/propTypes.js +0 -11
- package/es/v1/RippleEffect/RippleEffect.js +0 -25
- package/es/v1/RippleEffect/props/defaultProps.js +0 -10
- package/es/v1/RippleEffect/props/propTypes.js +0 -12
- package/es/v1/Select/GroupSelect.js +0 -818
- package/es/v1/Select/Select.js +0 -975
- package/es/v1/Select/SelectWithAvatar.js +0 -356
- package/es/v1/Select/SelectWithIcon.js +0 -545
- package/es/v1/Select/index.js +0 -4
- package/es/v1/Select/props/defaultProps.js +0 -126
- package/es/v1/Select/props/propTypes.js +0 -297
- package/es/v1/Stencils/Stencils.js +0 -26
- package/es/v1/Stencils/props/defaultProps.js +0 -6
- package/es/v1/Stencils/props/propTypes.js +0 -7
- package/es/v1/Tab/Tab.js +0 -106
- package/es/v1/Tab/TabContent.js +0 -30
- package/es/v1/Tab/TabContentWrapper.js +0 -33
- package/es/v1/Tab/TabWrapper.js +0 -55
- package/es/v1/Tab/Tabs.js +0 -619
- package/es/v1/Tab/index.js +0 -5
- package/es/v1/Tab/props/defaultProps.js +0 -51
- package/es/v1/Tab/props/propTypes.js +0 -117
- package/es/v1/Tab/v1Tab.module.css +0 -100
- package/es/v1/Tab/v1TabContent.module.css +0 -4
- package/es/v1/Tab/v1Tabs.module.css +0 -167
- package/es/v1/Tag/Tag.js +0 -140
- package/es/v1/Tag/props/defaultProps.js +0 -15
- package/es/v1/Tag/props/propTypes.js +0 -36
- package/es/v1/TextBox/TextBox.js +0 -160
- package/es/v1/TextBox/props/defaultProps.js +0 -20
- package/es/v1/TextBox/props/propTypes.js +0 -56
- package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
- package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
- package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
- package/es/v1/Textarea/Textarea.js +0 -100
- package/es/v1/Textarea/props/defaultProps.js +0 -17
- package/es/v1/Textarea/props/propTypes.js +0 -31
- package/es/v1/Tooltip/Tooltip.js +0 -530
- package/es/v1/Tooltip/props/defaultProps.js +0 -4
- package/es/v1/Tooltip/props/propTypes.js +0 -5
- package/es/v1/Typography/Typography.js +0 -38
- package/es/v1/Typography/css/cssJSLogic.js +0 -56
- package/es/v1/Typography/css/v1_Typography.module.css +0 -380
- package/es/v1/Typography/props/defaultProps.js +0 -8
- package/es/v1/Typography/props/propTypes.js +0 -27
- package/es/v1/Typography/utils/index.js +0 -50
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
- package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
- package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
- package/es/v1/semantic/Button/Button.js +0 -53
- package/es/v1/semantic/Button/props/defaultProps.js +0 -12
- package/es/v1/semantic/Button/props/propTypes.js +0 -22
- package/es/v1/semantic/index.js +0 -1
- package/lib/v1/Accordion/Accordion.js +0 -98
- package/lib/v1/Accordion/AccordionItem.js +0 -68
- package/lib/v1/Accordion/index.js +0 -23
- package/lib/v1/Accordion/props/defaultProps.js +0 -20
- package/lib/v1/Accordion/props/propTypes.js +0 -45
- package/lib/v1/Animation/Animation.js +0 -61
- package/lib/v1/Animation/props/defaultProps.js +0 -14
- package/lib/v1/Animation/props/propTypes.js +0 -23
- package/lib/v1/Animation/utils.js +0 -94
- package/lib/v1/AppContainer/AppContainer.js +0 -146
- package/lib/v1/AppContainer/props/defaultProps.js +0 -17
- package/lib/v1/AppContainer/props/propTypes.js +0 -28
- package/lib/v1/Avatar/Avatar.js +0 -191
- package/lib/v1/Avatar/props/defaultProps.js +0 -24
- package/lib/v1/Avatar/props/propTypes.js +0 -37
- package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
- package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
- package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
- package/lib/v1/Button/Button.js +0 -82
- package/lib/v1/Button/props/defaultProps.js +0 -27
- package/lib/v1/Button/props/propTypes.js +0 -40
- package/lib/v1/Buttongroup/Buttongroup.js +0 -44
- package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
- package/lib/v1/Buttongroup/props/propTypes.js +0 -20
- package/lib/v1/Card/Card.js +0 -269
- package/lib/v1/Card/index.js +0 -37
- package/lib/v1/Card/props/defaultProps.js +0 -35
- package/lib/v1/Card/props/propTypes.js +0 -62
- package/lib/v1/CheckBox/CheckBox.js +0 -172
- package/lib/v1/CheckBox/props/defaultProps.js +0 -25
- package/lib/v1/CheckBox/props/propTypes.js +0 -52
- package/lib/v1/DateTime/CalendarView.js +0 -322
- package/lib/v1/DateTime/DateTime.js +0 -877
- package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
- package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
- package/lib/v1/DateTime/DateWidget.js +0 -1163
- package/lib/v1/DateTime/DaysRow.js +0 -81
- package/lib/v1/DateTime/Time.js +0 -270
- package/lib/v1/DateTime/YearView.js +0 -325
- package/lib/v1/DateTime/index.js +0 -15
- package/lib/v1/DateTime/props/defaultProps.js +0 -76
- package/lib/v1/DateTime/props/propTypes.js +0 -238
- package/lib/v1/DropBox/DropBox.js +0 -109
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
- package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
- package/lib/v1/DropBox/props/defaultProps.js +0 -30
- package/lib/v1/DropBox/props/propTypes.js +0 -35
- package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
- package/lib/v1/DropDown/DropDown.js +0 -74
- package/lib/v1/DropDown/DropDownHeading.js +0 -47
- package/lib/v1/DropDown/DropDownItem.js +0 -75
- package/lib/v1/DropDown/DropDownSearch.js +0 -77
- package/lib/v1/DropDown/DropDownSeparator.js +0 -24
- package/lib/v1/DropDown/props/defaultProps.js +0 -31
- package/lib/v1/DropDown/props/propTypes.js +0 -87
- package/lib/v1/Heading/Heading.js +0 -53
- package/lib/v1/Heading/props/defaultProps.js +0 -12
- package/lib/v1/Heading/props/propTypes.js +0 -23
- package/lib/v1/Layout/Box.js +0 -128
- package/lib/v1/Layout/Container.js +0 -145
- package/lib/v1/Layout/index.js +0 -23
- package/lib/v1/Layout/props/defaultProps.js +0 -24
- package/lib/v1/Layout/props/propTypes.js +0 -58
- package/lib/v1/ListItem/ListContainer.js +0 -128
- package/lib/v1/ListItem/ListItem.js +0 -138
- package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
- package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
- package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
- package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
- package/lib/v1/ListItem/index.js +0 -55
- package/lib/v1/ListItem/props/defaultProps.js +0 -109
- package/lib/v1/ListItem/props/propTypes.js +0 -196
- package/lib/v1/Modal/Modal.js +0 -166
- package/lib/v1/Modal/props/defaultProps.js +0 -10
- package/lib/v1/Modal/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
- package/lib/v1/MultiSelect/EmptyState.js +0 -112
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
- package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
- package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
- package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
- package/lib/v1/MultiSelect/Suggestions.js +0 -196
- package/lib/v1/MultiSelect/index.js +0 -39
- package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
- package/lib/v1/MultiSelect/props/propTypes.js +0 -350
- package/lib/v1/PopOver/PopOver.js +0 -197
- package/lib/v1/PopOver/props/defaultProps.js +0 -15
- package/lib/v1/PopOver/props/propTypes.js +0 -66
- package/lib/v1/Popup/Popup.js +0 -715
- package/lib/v1/Radio/Radio.js +0 -141
- package/lib/v1/Radio/props/defaultProps.js +0 -22
- package/lib/v1/Radio/props/propTypes.js +0 -51
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
- package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
- package/lib/v1/Ribbon/Ribbon.js +0 -44
- package/lib/v1/Ribbon/props/defaultProps.js +0 -16
- package/lib/v1/Ribbon/props/propTypes.js +0 -22
- package/lib/v1/RippleEffect/RippleEffect.js +0 -40
- package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
- package/lib/v1/RippleEffect/props/propTypes.js +0 -23
- package/lib/v1/Select/GroupSelect.js +0 -894
- package/lib/v1/Select/Select.js +0 -1025
- package/lib/v1/Select/SelectWithAvatar.js +0 -406
- package/lib/v1/Select/SelectWithIcon.js +0 -607
- package/lib/v1/Select/index.js +0 -39
- package/lib/v1/Select/props/defaultProps.js +0 -125
- package/lib/v1/Select/props/propTypes.js +0 -319
- package/lib/v1/Stencils/Stencils.js +0 -43
- package/lib/v1/Stencils/props/defaultProps.js +0 -13
- package/lib/v1/Stencils/props/propTypes.js +0 -18
- package/lib/v1/Tab/Tab.js +0 -132
- package/lib/v1/Tab/TabContent.js +0 -42
- package/lib/v1/Tab/TabContentWrapper.js +0 -47
- package/lib/v1/Tab/TabWrapper.js +0 -89
- package/lib/v1/Tab/Tabs.js +0 -688
- package/lib/v1/Tab/index.js +0 -47
- package/lib/v1/Tab/props/defaultProps.js +0 -62
- package/lib/v1/Tab/props/propTypes.js +0 -132
- package/lib/v1/Tab/v1Tab.module.css +0 -100
- package/lib/v1/Tab/v1TabContent.module.css +0 -4
- package/lib/v1/Tab/v1Tabs.module.css +0 -167
- package/lib/v1/Tag/Tag.js +0 -160
- package/lib/v1/Tag/props/defaultProps.js +0 -22
- package/lib/v1/Tag/props/propTypes.js +0 -47
- package/lib/v1/TextBox/TextBox.js +0 -175
- package/lib/v1/TextBox/props/defaultProps.js +0 -27
- package/lib/v1/TextBox/props/propTypes.js +0 -62
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
- package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
- package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
- package/lib/v1/Textarea/Textarea.js +0 -118
- package/lib/v1/Textarea/props/defaultProps.js +0 -24
- package/lib/v1/Textarea/props/propTypes.js +0 -42
- package/lib/v1/Tooltip/Tooltip.js +0 -599
- package/lib/v1/Tooltip/props/defaultProps.js +0 -11
- package/lib/v1/Tooltip/props/propTypes.js +0 -16
- package/lib/v1/Typography/Typography.js +0 -56
- package/lib/v1/Typography/css/cssJSLogic.js +0 -48
- package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
- package/lib/v1/Typography/props/defaultProps.js +0 -15
- package/lib/v1/Typography/props/propTypes.js +0 -38
- package/lib/v1/Typography/utils/index.js +0 -59
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
- package/lib/v1/semantic/Button/Button.js +0 -63
- package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
- package/lib/v1/semantic/Button/props/propTypes.js +0 -33
- package/lib/v1/semantic/index.js +0 -15
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import compileClassNames from '@zohodesk/utils/es/compileClassNames';
|
|
2
|
+
import commonStyle from "../../../common/common.module.css";
|
|
3
|
+
export default function cssJSLogic(_ref) {
|
|
4
|
+
let {
|
|
5
|
+
style,
|
|
6
|
+
props
|
|
7
|
+
} = _ref;
|
|
8
|
+
const {
|
|
9
|
+
shouldHighlightRequired,
|
|
10
|
+
isRequired,
|
|
11
|
+
isDisabled,
|
|
12
|
+
customClass,
|
|
13
|
+
requiredType,
|
|
14
|
+
palette,
|
|
15
|
+
isReadOnly
|
|
16
|
+
} = props;
|
|
17
|
+
const {
|
|
18
|
+
label: customClass_label,
|
|
19
|
+
container: customClass_container
|
|
20
|
+
} = customClass;
|
|
21
|
+
const labelClass = compileClassNames({
|
|
22
|
+
[style.label]: true,
|
|
23
|
+
[customClass_label]: !!customClass_label
|
|
24
|
+
});
|
|
25
|
+
const requiredClass = compileClassNames({
|
|
26
|
+
[style.requiredCommon]: true,
|
|
27
|
+
[commonStyle.flexshrink]: true,
|
|
28
|
+
[style.requiredText]: requiredType === 'text',
|
|
29
|
+
[style.asterisk]: requiredType === 'asterisk'
|
|
30
|
+
});
|
|
31
|
+
const containerClass = compileClassNames({
|
|
32
|
+
[style.container]: true,
|
|
33
|
+
[style.required]: isRequired && shouldHighlightRequired,
|
|
34
|
+
[style.readonly]: isReadOnly,
|
|
35
|
+
[style.disabled]: isDisabled,
|
|
36
|
+
[style[palette]]: palette && !(isRequired && shouldHighlightRequired) && !isDisabled,
|
|
37
|
+
[customClass_container]: !!customClass_container
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
labelClass,
|
|
41
|
+
requiredClass,
|
|
42
|
+
containerClass
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export default {
|
|
2
|
+
customProps: {},
|
|
3
|
+
tagAttributes: {},
|
|
4
|
+
a11yAttributes: {},
|
|
5
|
+
customClass: {},
|
|
6
|
+
shouldHighlightRequired: false,
|
|
7
|
+
isDisabled: false,
|
|
8
|
+
isClipped: false,
|
|
9
|
+
isReadOnly: false,
|
|
10
|
+
requiredType: 'asterisk',
|
|
5
11
|
size: 'medium',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
dataSelectorId: 'label'
|
|
12
|
+
palette: 'default',
|
|
13
|
+
fontWeight: 'regular',
|
|
14
|
+
layout: 'inline',
|
|
15
|
+
i18nKeys: {}
|
|
11
16
|
};
|
|
@@ -1,19 +1,39 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
export
|
|
3
|
-
clipped: PropTypes.bool,
|
|
4
|
-
dataId: PropTypes.string,
|
|
5
|
-
dataSelectorId: PropTypes.string,
|
|
2
|
+
export default {
|
|
6
3
|
htmlFor: PropTypes.string,
|
|
7
|
-
onClick: PropTypes.func,
|
|
8
|
-
palette: PropTypes.oneOf(['default', 'primary', 'secondary', 'danger', 'mandatory', 'disable', 'dark']),
|
|
9
|
-
size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large']),
|
|
10
4
|
text: PropTypes.string,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
onClick: PropTypes.func,
|
|
6
|
+
a11yAttributes: PropTypes.shape({
|
|
7
|
+
container: PropTypes.object,
|
|
8
|
+
label: PropTypes.object
|
|
9
|
+
}),
|
|
10
|
+
tagAttributes: PropTypes.shape({
|
|
11
|
+
container: PropTypes.object,
|
|
12
|
+
label: PropTypes.object
|
|
13
|
+
}),
|
|
14
|
+
customProps: PropTypes.shape({
|
|
15
|
+
container: PropTypes.object,
|
|
16
|
+
label: PropTypes.object
|
|
17
|
+
}),
|
|
18
|
+
customId: PropTypes.string,
|
|
19
|
+
testId: PropTypes.string,
|
|
20
|
+
customClass: PropTypes.shape({
|
|
21
|
+
container: PropTypes.string,
|
|
22
|
+
label: PropTypes.string
|
|
23
|
+
}),
|
|
24
|
+
requiredType: PropTypes.oneOf(['asterisk', 'text']),
|
|
25
|
+
shouldHighlightRequired: PropTypes.bool,
|
|
26
|
+
isClipped: PropTypes.bool,
|
|
27
|
+
isRequired: PropTypes.bool,
|
|
28
|
+
isDisabled: PropTypes.bool,
|
|
29
|
+
isReadOnly: PropTypes.bool,
|
|
30
|
+
size: PropTypes.oneOf(['small', 'medium']),
|
|
31
|
+
palette: PropTypes.oneOf(['default', 'secondary']),
|
|
32
|
+
renderLeftPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
33
|
+
renderRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
34
|
+
fontWeight: PropTypes.oneOf(['regular', 'semibold']),
|
|
35
|
+
i18nKeys: PropTypes.shape({
|
|
36
|
+
requiredText: PropTypes.string
|
|
17
37
|
}),
|
|
18
|
-
|
|
38
|
+
layout: PropTypes.oneOf(['inline', 'block'])
|
|
19
39
|
};
|
package/es/v1/Switch/Switch.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react'; // props
|
|
2
4
|
|
|
3
5
|
import defaultProps from "./props/defaultProps";
|
|
@@ -76,7 +78,7 @@ const Switch = props => {
|
|
|
76
78
|
},
|
|
77
79
|
style
|
|
78
80
|
});
|
|
79
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
81
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, customProps_container, {
|
|
80
82
|
$ui_displayMode: "inline",
|
|
81
83
|
$ui_direction: ITEMS_DIRECTION[labelPlacement],
|
|
82
84
|
$ui_alignItems: ALIGN_ITEMS[labelPlacement],
|
|
@@ -87,7 +89,7 @@ const Switch = props => {
|
|
|
87
89
|
customId: customId,
|
|
88
90
|
$ui_className: containerClass,
|
|
89
91
|
$a11yAttributes_container: a11yAttributes_container
|
|
90
|
-
}, label && /*#__PURE__*/React.createElement(Label, {
|
|
92
|
+
}), label && /*#__PURE__*/React.createElement(Label, _extends({}, customProps_label, {
|
|
91
93
|
text: label,
|
|
92
94
|
palette: isDisabled ? 'primary' : 'default',
|
|
93
95
|
size: labelSize,
|
|
@@ -96,11 +98,10 @@ const Switch = props => {
|
|
|
96
98
|
a11y: a11yAttributes_label,
|
|
97
99
|
clipped: true,
|
|
98
100
|
title: label
|
|
99
|
-
}), /*#__PURE__*/React.createElement(Flex, {
|
|
101
|
+
})), /*#__PURE__*/React.createElement(Flex, {
|
|
100
102
|
$flag_shrink: false,
|
|
101
103
|
$ui_className: trackWrapperClass
|
|
102
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
103
|
-
...restA11yAttributes_switch,
|
|
104
|
+
}, /*#__PURE__*/React.createElement("input", _extends({}, tagAttributes_switch, restA11yAttributes_switch, {
|
|
104
105
|
type: "checkbox",
|
|
105
106
|
id: id,
|
|
106
107
|
name: name,
|
|
@@ -112,7 +113,7 @@ const Switch = props => {
|
|
|
112
113
|
role: "switch",
|
|
113
114
|
"aria-disabled": ariaDisabled,
|
|
114
115
|
"aria-label": isReadOnly ? readOnlyAriaLabel : ariaLabel
|
|
115
|
-
}), /*#__PURE__*/React.createElement("svg", {
|
|
116
|
+
})), /*#__PURE__*/React.createElement("svg", {
|
|
116
117
|
className: thumbClass,
|
|
117
118
|
xmlns: "http://www.w3.org/2000/svg"
|
|
118
119
|
}, /*#__PURE__*/React.createElement("circle", {
|
|
@@ -4,47 +4,47 @@
|
|
|
4
4
|
gap: var(--zd_size6) ;
|
|
5
5
|
}
|
|
6
6
|
.small {
|
|
7
|
-
--local-switch-track-width:
|
|
8
|
-
--local-switch-track-height:
|
|
7
|
+
--local-switch-track-width: 22px;
|
|
8
|
+
--local-switch-track-height: 12px;
|
|
9
9
|
--local-switch-track-border-radius: 8px;
|
|
10
|
-
--local-switch-thumb-size:
|
|
11
|
-
--local-switch-onLabel-height:
|
|
12
|
-
--local-switch-onLabel-left:
|
|
13
|
-
--local-switch-offLabel-size:
|
|
14
|
-
--local-switch-offLabel-right:
|
|
10
|
+
--local-switch-thumb-size: 10px;
|
|
11
|
+
--local-switch-onLabel-height: 6px;
|
|
12
|
+
--local-switch-onLabel-left: 5px;
|
|
13
|
+
--local-switch-offLabel-size: 7px;
|
|
14
|
+
--local-switch-offLabel-right: 2px;
|
|
15
15
|
--local-switch-onLabel-scaleX: 1.2;
|
|
16
16
|
}
|
|
17
17
|
.medium {
|
|
18
|
-
--local-switch-track-width:
|
|
19
|
-
--local-switch-track-height:
|
|
18
|
+
--local-switch-track-width: 28px;
|
|
19
|
+
--local-switch-track-height: 16px;
|
|
20
20
|
--local-switch-track-border-radius: 16px;
|
|
21
|
-
--local-switch-thumb-size:
|
|
22
|
-
--local-switch-onLabel-height:
|
|
23
|
-
--local-switch-onLabel-left:
|
|
24
|
-
--local-switch-offLabel-size:
|
|
25
|
-
--local-switch-offLabel-right:
|
|
21
|
+
--local-switch-thumb-size: 14px;
|
|
22
|
+
--local-switch-onLabel-height: 8px;
|
|
23
|
+
--local-switch-onLabel-left: 6px;
|
|
24
|
+
--local-switch-offLabel-size: 8px;
|
|
25
|
+
--local-switch-offLabel-right: 3px;
|
|
26
26
|
--local-switch-onLabel-scaleX: 1.4;
|
|
27
27
|
}
|
|
28
28
|
.large {
|
|
29
|
-
--local-switch-track-width:
|
|
30
|
-
--local-switch-track-height:
|
|
29
|
+
--local-switch-track-width: 34px;
|
|
30
|
+
--local-switch-track-height: 20px;
|
|
31
31
|
--local-switch-track-border-radius: 10px;
|
|
32
|
-
--local-switch-thumb-size:
|
|
33
|
-
--local-switch-onLabel-height:
|
|
34
|
-
--local-switch-onLabel-left:
|
|
35
|
-
--local-switch-offLabel-size:
|
|
36
|
-
--local-switch-offLabel-right:
|
|
32
|
+
--local-switch-thumb-size: 18px;
|
|
33
|
+
--local-switch-onLabel-height: 10px;
|
|
34
|
+
--local-switch-onLabel-left: 7px;
|
|
35
|
+
--local-switch-offLabel-size: 9px;
|
|
36
|
+
--local-switch-offLabel-right: 4px;
|
|
37
37
|
--local-switch-onLabel-scaleX: 1.6;
|
|
38
38
|
}
|
|
39
39
|
.xlarge {
|
|
40
|
-
--local-switch-track-width:
|
|
41
|
-
--local-switch-track-height:
|
|
40
|
+
--local-switch-track-width: 40px;
|
|
41
|
+
--local-switch-track-height: 24px;
|
|
42
42
|
--local-switch-track-border-radius: 12px;
|
|
43
|
-
--local-switch-thumb-size:
|
|
44
|
-
--local-switch-onLabel-height:
|
|
45
|
-
--local-switch-onLabel-left:
|
|
46
|
-
--local-switch-offLabel-size:
|
|
47
|
-
--local-switch-offLabel-right:
|
|
43
|
+
--local-switch-thumb-size: 22px;
|
|
44
|
+
--local-switch-onLabel-height: 12px;
|
|
45
|
+
--local-switch-onLabel-left: 8px;
|
|
46
|
+
--local-switch-offLabel-size: 10px;
|
|
47
|
+
--local-switch-offLabel-right: 5px;
|
|
48
48
|
--local-switch-onLabel-scaleX: 1.8;
|
|
49
49
|
}
|
|
50
50
|
.disabled, .readonly {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* avatar default variables */
|
|
3
3
|
--avatar_text_color: var(--zdt_avatar_default_text);
|
|
4
|
-
--avatar_font_size:
|
|
4
|
+
--avatar_font_size: 14px;
|
|
5
5
|
--avatar_bg_color: var(--zdt_avatar_default_bg);
|
|
6
6
|
--avatar_border_radius: 50%;
|
|
7
7
|
--avatar_border_width: 0;
|
|
@@ -141,31 +141,31 @@
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.xxsmall {
|
|
144
|
-
--avatar_font_size:
|
|
144
|
+
--avatar_font_size: 8px;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.small {
|
|
148
|
-
--avatar_font_size:
|
|
148
|
+
--avatar_font_size: 9px;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.xsmall {
|
|
152
|
-
--avatar_font_size:
|
|
152
|
+
--avatar_font_size: 12px;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.medium {
|
|
156
|
-
--avatar_font_size:
|
|
156
|
+
--avatar_font_size: 14px;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.xmedium {
|
|
160
|
-
--avatar_font_size:
|
|
160
|
+
--avatar_font_size: 14px;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.large {
|
|
164
|
-
--avatar_font_size:
|
|
164
|
+
--avatar_font_size: 18px;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.xlarge {
|
|
168
|
-
--avatar_font_size:
|
|
168
|
+
--avatar_font_size: 28px;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.white {
|
|
File without changes
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
--avatarteam_outline_style: solid;
|
|
8
8
|
--avatarteam_outline_color: var(--zdt_avatarteam_innerCircle);
|
|
9
9
|
--avatarteam_bg_color: var(--zdt_avatarteam_default_bg);
|
|
10
|
-
--avatarteam_width:
|
|
11
|
-
--avatarteam_height:
|
|
10
|
+
--avatarteam_width: 5px;
|
|
11
|
+
--avatarteam_height: 5px;
|
|
12
12
|
--avatarteam_border_radius: 50%;
|
|
13
13
|
--avatarteam_bottom_top: initial;
|
|
14
14
|
--avatarteam_bottom_left: initial;
|
|
15
15
|
--avatarteam_bottom_right: initial;
|
|
16
|
-
--avatarteam_top_top:
|
|
16
|
+
--avatarteam_top_top: 1px;
|
|
17
17
|
}
|
|
18
18
|
.container {
|
|
19
19
|
position: relative;
|
|
@@ -92,18 +92,18 @@
|
|
|
92
92
|
.smallteam,
|
|
93
93
|
.xsmallteam,
|
|
94
94
|
.xxsmallteam {
|
|
95
|
-
--avatarteam_height:
|
|
96
|
-
--avatarteam_width:
|
|
95
|
+
--avatarteam_height: 3px;
|
|
96
|
+
--avatarteam_width: 3px;
|
|
97
97
|
}
|
|
98
98
|
.mediumteam,
|
|
99
99
|
.xmediumteam {
|
|
100
|
-
--avatarteam_height:
|
|
101
|
-
--avatarteam_width:
|
|
100
|
+
--avatarteam_height: 5px;
|
|
101
|
+
--avatarteam_width: 5px;
|
|
102
102
|
}
|
|
103
103
|
.largeteam,
|
|
104
104
|
.xlargeteam {
|
|
105
|
-
--avatarteam_height:
|
|
106
|
-
--avatarteam_width:
|
|
105
|
+
--avatarteam_height: 7px;
|
|
106
|
+
--avatarteam_width: 7px;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.xxsmallteam {
|
|
@@ -112,78 +112,78 @@
|
|
|
112
112
|
}
|
|
113
113
|
.xxsmallteam::after,
|
|
114
114
|
.xxsmallteam:before {
|
|
115
|
-
--avatarteam_bottom_top:
|
|
115
|
+
--avatarteam_bottom_top: 13px;
|
|
116
116
|
}
|
|
117
117
|
.xxsmallteam:after {
|
|
118
|
-
--avatarteam_bottom_left:
|
|
118
|
+
--avatarteam_bottom_left: -8px;
|
|
119
119
|
}
|
|
120
120
|
.xxsmallteam:before {
|
|
121
|
-
--avatarteam_bottom_right:
|
|
121
|
+
--avatarteam_bottom_right: -8px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
.smallteam::after,
|
|
126
126
|
.smallteam:before {
|
|
127
|
-
--avatarteam_bottom_top:
|
|
127
|
+
--avatarteam_bottom_top: 17px;
|
|
128
128
|
}
|
|
129
129
|
.smallteam:after {
|
|
130
|
-
--avatarteam_bottom_left:
|
|
130
|
+
--avatarteam_bottom_left: -8px;
|
|
131
131
|
}
|
|
132
132
|
.smallteam:before {
|
|
133
|
-
--avatarteam_bottom_right:
|
|
133
|
+
--avatarteam_bottom_right: -8px;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.xsmallteam::after,
|
|
137
137
|
.xsmallteam:before {
|
|
138
|
-
--avatarteam_bottom_top:
|
|
138
|
+
--avatarteam_bottom_top: 24px;
|
|
139
139
|
}
|
|
140
140
|
.xsmallteam:after {
|
|
141
|
-
--avatarteam_bottom_left:
|
|
141
|
+
--avatarteam_bottom_left: -10px;
|
|
142
142
|
}
|
|
143
143
|
.xsmallteam:before {
|
|
144
|
-
--avatarteam_bottom_right:
|
|
144
|
+
--avatarteam_bottom_right: -10px;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.mediumteam::after,
|
|
148
148
|
.mediumteam:before {
|
|
149
|
-
--avatarteam_bottom_top:
|
|
149
|
+
--avatarteam_bottom_top: 26px;
|
|
150
150
|
}
|
|
151
151
|
.mediumteam:after {
|
|
152
|
-
--avatarteam_bottom_left:
|
|
152
|
+
--avatarteam_bottom_left: -13px;
|
|
153
153
|
}
|
|
154
154
|
.mediumteam:before {
|
|
155
|
-
--avatarteam_bottom_right:
|
|
155
|
+
--avatarteam_bottom_right: -13px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.xmediumteam::after,
|
|
159
159
|
.xmediumteam:before {
|
|
160
|
-
--avatarteam_bottom_top:
|
|
160
|
+
--avatarteam_bottom_top: 30px;
|
|
161
161
|
}
|
|
162
162
|
.xmediumteam:after {
|
|
163
|
-
--avatarteam_bottom_left:
|
|
163
|
+
--avatarteam_bottom_left: -16px;
|
|
164
164
|
}
|
|
165
165
|
.xmediumteam:before {
|
|
166
|
-
--avatarteam_bottom_right:
|
|
166
|
+
--avatarteam_bottom_right: -16px;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.largeteam::after,
|
|
170
170
|
.largeteam:before {
|
|
171
|
-
--avatarteam_bottom_top:
|
|
171
|
+
--avatarteam_bottom_top: 46px;
|
|
172
172
|
}
|
|
173
173
|
.largeteam:after {
|
|
174
|
-
--avatarteam_bottom_left:
|
|
174
|
+
--avatarteam_bottom_left: -24px;
|
|
175
175
|
}
|
|
176
176
|
.largeteam:before {
|
|
177
|
-
--avatarteam_bottom_right:
|
|
177
|
+
--avatarteam_bottom_right: -24px;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.xlargeteam::after,
|
|
181
181
|
.xlargeteam:before {
|
|
182
|
-
--avatarteam_bottom_top:
|
|
182
|
+
--avatarteam_bottom_top: 65px;
|
|
183
183
|
}
|
|
184
184
|
.xlargeteam:after {
|
|
185
|
-
--avatarteam_bottom_left:
|
|
185
|
+
--avatarteam_bottom_left: -29px;
|
|
186
186
|
}
|
|
187
187
|
.xlargeteam:before {
|
|
188
|
-
--avatarteam_bottom_right:
|
|
188
|
+
--avatarteam_bottom_right: -29px;
|
|
189
189
|
}
|
package/lib/Button/Button.js
CHANGED
|
File without changes
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/* Variable:Ignore */
|
|
4
4
|
--button_letter_spacing: 0.2px;
|
|
5
5
|
--button_cursor: pointer;
|
|
6
|
-
--button_font_size:
|
|
6
|
+
--button_font_size: 13px;
|
|
7
7
|
--button_text_color: var(--zdt_button_default_text);
|
|
8
8
|
--button_font_weight: var(--zd-fw-normal);
|
|
9
9
|
--button_text_transform: capitalize;
|
|
10
10
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
11
11
|
--button_border_radius: 4px;
|
|
12
|
-
--button_min_width:
|
|
12
|
+
--button_min_width: 90px;
|
|
13
13
|
--button_height: auto;
|
|
14
14
|
--button_border_width: 0;
|
|
15
15
|
--button_border_style: solid;
|
|
@@ -72,38 +72,38 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.small {
|
|
75
|
-
--button_padding:
|
|
76
|
-
--button_min_width:
|
|
77
|
-
--button_font_size:
|
|
75
|
+
--button_padding: 4px 7px;
|
|
76
|
+
--button_min_width: 50px;
|
|
77
|
+
--button_font_size: 10px;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.medium {
|
|
81
|
-
--button_padding:
|
|
81
|
+
--button_padding: 6px 15px;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.large {
|
|
85
|
-
--button_padding:
|
|
86
|
-
--button_min_width:
|
|
87
|
-
--button_font_size:
|
|
85
|
+
--button_padding: 9px 14px;
|
|
86
|
+
--button_min_width: 80px;
|
|
87
|
+
--button_font_size: 12px;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.xlarge {
|
|
91
|
-
--button_padding:
|
|
92
|
-
--button_min_width:
|
|
93
|
-
--button_font_size:
|
|
91
|
+
--button_padding: 12px 25px;
|
|
92
|
+
--button_min_width: 90px;
|
|
93
|
+
--button_font_size: 13px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.mediumBtn {
|
|
97
|
-
--button_height:
|
|
98
|
-
--button_min_width:
|
|
99
|
-
--button_font_size:
|
|
97
|
+
--button_height: 42px;
|
|
98
|
+
--button_min_width: 42px;
|
|
99
|
+
--button_font_size: 10px;
|
|
100
100
|
text-align: center;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.smallBtn {
|
|
104
|
-
--button_height:
|
|
105
|
-
--button_min_width:
|
|
106
|
-
--button_font_size:
|
|
104
|
+
--button_height: 22px;
|
|
105
|
+
--button_min_width: 22px;
|
|
106
|
+
--button_font_size: 13px;
|
|
107
107
|
text-align: center;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
.plaindanger,
|
|
135
135
|
.plainsuccess,
|
|
136
136
|
.plainsecondary {
|
|
137
|
-
--button_padding:
|
|
137
|
+
--button_padding: 5px;
|
|
138
138
|
--button_min_width: initial;
|
|
139
139
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
140
140
|
}
|
|
File without changes
|
|
@@ -24,15 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
[dir=ltr] .footer {
|
|
27
|
-
--buttongroup_padding:
|
|
27
|
+
--buttongroup_padding: 20px 0 20px 60px
|
|
28
|
+
/*rtl: 20px 60px 20px 0*/
|
|
29
|
+
;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
[dir=rtl] .footer {
|
|
31
|
-
--buttongroup_padding:
|
|
33
|
+
--buttongroup_padding: 20px 60px 20px 0;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.header {
|
|
35
|
-
--buttongroup_padding:
|
|
37
|
+
--buttongroup_padding: 12px 20px;
|
|
36
38
|
--buttongroup_border_width: 0 0 1px 0;
|
|
37
39
|
}
|
|
38
40
|
|
package/lib/Card/Card.js
CHANGED
|
File without changes
|
package/lib/CheckBox/CheckBox.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/DateTime/DateTime.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/DateTime/YearView.js
CHANGED
|
File without changes
|
package/lib/DateTime/common.js
CHANGED
|
File without changes
|
package/lib/DateTime/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/DropBox/DropBox.js
CHANGED
|
File without changes
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
.mobRadius {
|
|
35
35
|
--dropbox_border_radius: 30px 30px 0 0;
|
|
36
|
-
--dropbox_padding:
|
|
36
|
+
--dropbox_padding: 10px 0 0 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* sizes */
|
|
@@ -201,7 +201,10 @@
|
|
|
201
201
|
position: absolute;
|
|
202
202
|
height: var(--zd_size34) ;
|
|
203
203
|
width: var(--zd_size34) ;
|
|
204
|
-
clip: rect(var(--zd_size3),
|
|
204
|
+
clip: rect(var(--zd_size3),
|
|
205
|
+
var(--zd_size29),
|
|
206
|
+
var(--zd_size17),
|
|
207
|
+
var(--zd_size8)) ;
|
|
205
208
|
padding: var(--zd_size4) ;
|
|
206
209
|
display: flex;
|
|
207
210
|
align-items: center;
|
|
@@ -434,7 +437,7 @@
|
|
|
434
437
|
}
|
|
435
438
|
|
|
436
439
|
.boxPadding {
|
|
437
|
-
--dropbox_padding:
|
|
440
|
+
--dropbox_padding: 10px 0;
|
|
438
441
|
}
|
|
439
442
|
|
|
440
443
|
.darkPalette {
|
package/lib/DropDown/DropDown.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* dropdownheading default variables */
|
|
3
3
|
--dropdownheading_text_color: var(--zdt_dropdown_default_text);
|
|
4
4
|
--dropdownheading_text_transform: uppercase;
|
|
5
|
-
--dropdownheading_padding:
|
|
5
|
+
--dropdownheading_padding: 10px 20px;
|
|
6
6
|
--dropdownheading_bg_color: none;
|
|
7
7
|
|
|
8
8
|
/* dropdownheading underline default variables */
|
|
9
|
-
--dropdownheading_underline_width:
|
|
10
|
-
--dropdownheading_underline_height:
|
|
9
|
+
--dropdownheading_underline_width: 20px;
|
|
10
|
+
--dropdownheading_underline_height: 1px;
|
|
11
11
|
--dropdownheading_underline_bg_color: var(--zdt_dropdown_default_bg);
|
|
12
|
-
--dropdownheading_underline_left:
|
|
12
|
+
--dropdownheading_underline_left: 20px;
|
|
13
13
|
}
|
|
14
14
|
.default {
|
|
15
15
|
composes: dotted semibold from '../common/common.module.css';
|
|
File without changes
|