@zohodesk/components 1.0.0-alpha-211 → 1.0.0-alpha-215
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 +14 -0
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/Appearance/dark/mode/darkMode.module.css +0 -8
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +12 -0
- package/es/Appearance/default/mode/defaultMode.module.css +0 -8
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +12 -0
- package/es/Avatar/Avatar.js +2 -1
- package/es/Avatar/Avatar.module.css +11 -9
- package/es/Avatar/__tests__/Avatar.spec.js +0 -1
- package/es/AvatarTeam/AvatarTeam.module.css +21 -7
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
- package/es/Button/Button.module.css +97 -24
- package/es/Button/__tests__/Button.spec.js +0 -1
- package/es/Buttongroup/Buttongroup.module.css +37 -8
- package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
- package/es/CheckBox/CheckBox.module.css +17 -11
- package/es/DateTime/DateTime.js +6 -3
- package/es/DateTime/DateTime.module.css +39 -12
- package/es/DateTime/DateWidget.js +5 -2
- package/es/DateTime/DateWidget.module.css +9 -5
- package/es/DateTime/YearView.js +6 -5
- package/es/DateTime/YearView.module.css +16 -6
- package/es/DateTime/common.js +9 -2
- package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
- package/es/DateTime/dateFormatUtils/index.js +12 -7
- package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
- package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
- package/es/DateTime/validator.js +0 -1
- package/es/DropBox/DropBox.module.css +47 -11
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/Label/__tests__/Label.spec.js +0 -2
- package/es/Layout/utils.js +2 -1
- package/es/ListItem/ListItem.js +0 -2
- package/es/ListItem/ListItem.module.css +56 -24
- package/es/ListItem/ListItemWithIcon.js +0 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +11 -3
- package/es/MultiSelect/AdvancedMultiSelect.js +5 -5
- package/es/MultiSelect/AdvancedMultiSelect.module.css +21 -6
- package/es/MultiSelect/MultiSelect.js +12 -6
- package/es/MultiSelect/MultiSelect.module.css +26 -8
- package/es/MultiSelect/SelectedOptions.module.css +8 -2
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -1
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +14 -8
- package/es/Popup/viewPort.js +14 -9
- package/es/Provider/IdProvider.js +5 -4
- package/es/Provider/LibraryContext.js +6 -5
- package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
- package/es/Provider/ZindexProvider.js +5 -4
- package/es/Provider.js +8 -2
- package/es/Radio/Radio.module.css +9 -3
- package/es/Responsive/CustomResponsive.js +11 -8
- package/es/Responsive/ResizeComponent.js +3 -1
- package/es/Responsive/Responsive.js +12 -9
- package/es/Responsive/docs/Responsive__Custom.docs.js +49 -44
- package/es/Responsive/docs/Responsive__default.docs.js +77 -74
- package/es/Responsive/docs/style.module.css +17 -8
- package/es/Responsive/sizeObservers.js +5 -1
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
- package/es/RippleEffect/RippleEffect.module.css +15 -44
- package/es/Select/GroupSelect.js +6 -7
- package/es/Select/Select.js +2 -1
- package/es/Select/Select.module.css +12 -2
- package/es/Select/docs/Select__default.docs.js +2 -1
- package/es/Stencils/Stencils.js +1 -1
- package/es/Stencils/Stencils.module.css +27 -4
- package/es/Stencils/__tests__/Stencils.spec.js +0 -1
- package/es/Switch/Switch.module.css +6 -7
- package/es/Tab/Tab.js +27 -26
- package/es/Tab/Tab.module.css +16 -7
- package/es/Tab/TabContent.js +17 -14
- package/es/Tab/TabContentWrapper.js +17 -14
- package/es/Tab/TabWrapper.js +15 -14
- package/es/Tab/Tabs.js +2 -1
- package/es/Tab/Tabs.module.css +41 -8
- package/es/Tab/docs/Tab__default.docs.js +0 -1
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tag/Tag.module.css +36 -14
- package/es/TextBox/TextBox.module.css +7 -11
- package/es/TextBox/__tests__/TextBox.spec.js +0 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +10 -5
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
- package/es/Textarea/Textarea.module.css +6 -7
- package/es/Textarea/__tests__/Textarea.spec.js +0 -1
- package/es/Tooltip/Tooltip.js +0 -1
- package/es/Tooltip/Tooltip.module.css +9 -8
- package/es/a11y/FocusScope/FocusScope.js +10 -4
- package/es/beta/FocusRing/FocusRing.js +4 -1
- package/es/beta/FocusRing/FocusRing.module.css +51 -26
- package/es/common/animation.module.css +212 -20
- package/es/common/basicReset.module.css +2 -12
- package/es/common/common.module.css +62 -18
- package/es/common/customscroll.module.css +17 -21
- package/es/common/docStyle.module.css +78 -31
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/customscroll_Old.module.css +1 -1
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/utils/Common.js +32 -12
- package/es/utils/datetime/common.js +6 -3
- package/es/utils/dropDownUtils.js +9 -8
- package/es/utils/getInitial.js +3 -1
- package/lib/Accordion/Accordion.js +146 -0
- package/lib/Accordion/AccordionItem.js +124 -0
- package/lib/Accordion/__tests__/Accordion.spec.js +85 -0
- package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
- package/lib/Accordion/index.js +23 -0
- package/lib/Animation/Animation.js +207 -0
- package/lib/Animation/__tests__/Animation.spec.js +23 -0
- package/lib/Animation/docs/Animation__default.docs.js +85 -0
- package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
- package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
- package/lib/AppContainer/AppContainer.js +156 -0
- package/lib/AppContainer/AppContainer.module.css +18 -0
- package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
- package/lib/Appearance/dark/mode/darkMode.module.css +395 -0
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +43 -0
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +34 -0
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +43 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +34 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +43 -0
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +34 -0
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +43 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +34 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +43 -0
- package/lib/Appearance/default/mode/defaultMode.module.css +395 -0
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +34 -0
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +43 -0
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +34 -0
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +43 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +34 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +43 -0
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +34 -0
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +43 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +34 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +43 -0
- package/lib/Avatar/Avatar.js +280 -0
- package/lib/Avatar/Avatar.module.css +117 -0
- package/lib/Avatar/__tests__/Avatar.spec.js +208 -0
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -0
- package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
- package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
- package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
- package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
- package/lib/AvatarTeam/AvatarTeam.js +157 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +161 -0
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +92 -0
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -0
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
- package/lib/Button/Button.js +159 -0
- package/lib/Button/Button.module.css +518 -0
- package/lib/Button/__tests__/Button.spec.js +233 -0
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -0
- package/lib/Button/docs/Button__custom.docs.js +826 -0
- package/lib/Button/docs/Button__default.docs.js +590 -0
- package/lib/Buttongroup/Buttongroup.js +101 -0
- package/lib/Buttongroup/Buttongroup.module.css +89 -0
- package/lib/Buttongroup/__test__/Buttongroup.spec.js +86 -0
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -0
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
- package/lib/Card/Card.js +410 -0
- package/lib/Card/Card.module.css +20 -0
- package/lib/Card/__tests__/Card.spec.js +56 -0
- package/lib/Card/docs/Card__Custom.docs.js +90 -0
- package/lib/Card/docs/Card__Default.docs.js +92 -0
- package/lib/Card/docs/Card__Scroll.docs.js +114 -0
- package/lib/Card/index.js +37 -0
- package/lib/CheckBox/CheckBox.js +265 -0
- package/lib/CheckBox/CheckBox.module.css +153 -0
- package/lib/CheckBox/__tests__/CheckBox.spec.js +18 -0
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
- package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
- package/lib/DateTime/CalendarView.js +285 -0
- package/lib/DateTime/DateTime.js +889 -0
- package/lib/DateTime/DateTime.module.css +188 -0
- package/lib/DateTime/DateTimePopupFooter.js +90 -0
- package/lib/DateTime/DateTimePopupHeader.js +149 -0
- package/lib/DateTime/DateWidget.js +1189 -0
- package/lib/DateTime/DateWidget.module.css +46 -0
- package/lib/DateTime/DaysRow.js +76 -0
- package/lib/DateTime/Time.js +248 -0
- package/lib/DateTime/YearView.js +324 -0
- package/lib/DateTime/YearView.module.css +80 -0
- package/lib/DateTime/__tests__/CalendarView.spec.js +45 -0
- package/lib/DateTime/__tests__/DateTime.spec.js +127 -0
- package/lib/DateTime/__tests__/DateWidget.spec.js +81 -0
- package/lib/DateTime/common.js +36 -0
- package/lib/DateTime/constants.js +77 -0
- package/lib/DateTime/dateFormatUtils/dateFormat.js +613 -0
- package/lib/DateTime/dateFormatUtils/dayChange.js +81 -0
- package/lib/DateTime/dateFormatUtils/index.js +274 -0
- package/lib/DateTime/dateFormatUtils/monthChange.js +94 -0
- package/lib/DateTime/dateFormatUtils/timeChange.js +240 -0
- package/lib/DateTime/dateFormatUtils/yearChange.js +119 -0
- package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
- package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
- package/lib/DateTime/docs/timezonedata.json +1 -0
- package/lib/DateTime/index.js +15 -0
- package/lib/DateTime/objectUtils.js +76 -0
- package/lib/DateTime/typeChecker.js +26 -0
- package/lib/DateTime/validator.js +353 -0
- package/lib/DropBox/DropBox.js +389 -0
- package/lib/DropBox/DropBox.module.css +406 -0
- package/lib/DropBox/DropBoxPositionMapping.json +145 -0
- package/lib/DropBox/__tests__/DropBox.spec.js +87 -0
- package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
- package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
- package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
- package/lib/DropDown/DropDown.js +203 -0
- package/lib/DropDown/DropDown.module.css +5 -0
- package/lib/DropDown/DropDownHeading.js +102 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -0
- package/lib/DropDown/DropDownItem.js +139 -0
- package/lib/DropDown/DropDownItem.module.css +94 -0
- package/lib/DropDown/DropDownSearch.js +132 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -0
- package/lib/DropDown/DropDownSeparator.js +66 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -0
- package/lib/DropDown/__tests__/DropDown.spec.js +50 -0
- package/lib/DropDown/__tests__/DropDownItem.spec.js +51 -0
- package/lib/DropDown/__tests__/DropDownSearch.spec.js +17 -0
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
- package/lib/Label/Label.js +109 -0
- package/lib/Label/Label.module.css +52 -0
- package/lib/Label/LabelColors.module.css +21 -0
- package/lib/Label/__tests__/Label.spec.js +137 -0
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -0
- package/lib/Label/docs/Label__clipped.docs.js +81 -0
- package/lib/Label/docs/Label__custom.docs.js +85 -0
- package/lib/Label/docs/Label__palette.docs.js +96 -0
- package/lib/Label/docs/Label__size.docs.js +83 -0
- package/lib/Label/docs/Label__type.docs.js +91 -0
- package/lib/Layout/Box.js +138 -0
- package/lib/Layout/Container.js +152 -0
- package/lib/Layout/Layout.module.css +324 -0
- package/lib/Layout/__tests__/Box.spec.js +121 -0
- package/lib/Layout/__tests__/Container.spec.js +127 -0
- package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
- package/lib/Layout/docs/Layout__default.docs.js +98 -0
- package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
- package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
- package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
- package/lib/Layout/index.js +34 -0
- package/lib/Layout/utils.js +55 -0
- package/lib/LightNightMode/Colors.json +398 -0
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
- package/lib/ListItem/ListItem.js +234 -0
- package/lib/ListItem/ListItem.module.css +200 -0
- package/lib/ListItem/ListItemWithAvatar.js +236 -0
- package/lib/ListItem/ListItemWithCheckBox.js +208 -0
- package/lib/ListItem/ListItemWithIcon.js +221 -0
- package/lib/ListItem/ListItemWithRadio.js +209 -0
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
- package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
- package/lib/Modal/Modal.js +218 -0
- package/lib/Modal/__docs__/Modal__default.docs.js +88 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1215 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +669 -0
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -0
- package/lib/MultiSelect/EmptyState.js +132 -0
- package/lib/MultiSelect/MultiSelect.js +1217 -0
- package/lib/MultiSelect/MultiSelect.module.css +198 -0
- package/lib/MultiSelect/MultiSelectHeader.js +86 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +407 -0
- package/lib/MultiSelect/SelectedOptions.js +139 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -0
- package/lib/MultiSelect/Suggestions.js +205 -0
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +170 -0
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +150 -0
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
- package/lib/PopOver/PopOver.js +366 -0
- package/lib/PopOver/PopOver.module.css +8 -0
- package/lib/PopOver/__tests__/PopOver.spec.js +20 -0
- package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
- package/lib/Popup/Popup.js +716 -0
- package/lib/Popup/PositionMapping.json +74 -0
- package/lib/Popup/__tests__/Popup.spec.js +192 -0
- package/lib/Popup/viewPort.js +368 -0
- package/lib/Provider/AvatarSize.js +23 -0
- package/lib/Provider/Config.js +24 -0
- package/lib/Provider/CssProvider.js +27 -0
- package/lib/Provider/IdProvider.js +82 -0
- package/lib/Provider/LibraryContext.js +76 -0
- package/lib/Provider/LibraryContextInit.js +15 -0
- package/lib/Provider/NumberGenerator/NumberGenerator.js +174 -0
- package/lib/Provider/ZindexProvider.js +69 -0
- package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
- package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
- package/lib/Provider.js +241 -0
- package/lib/Radio/Radio.js +216 -0
- package/lib/Radio/Radio.module.css +110 -0
- package/lib/Radio/__tests__/Radiospec.js +29 -0
- package/lib/Radio/docs/Radio__custom.docs.js +299 -0
- package/lib/Radio/docs/Radio__default.docs.js +222 -0
- package/lib/Responsive/CustomResponsive.js +246 -0
- package/lib/Responsive/RefWrapper.js +55 -0
- package/lib/Responsive/ResizeComponent.js +268 -0
- package/lib/Responsive/ResizeObserver.js +168 -0
- package/lib/Responsive/Responsive.js +281 -0
- package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
- package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
- package/lib/Responsive/docs/style.module.css +56 -0
- package/lib/Responsive/index.js +30 -0
- package/lib/Responsive/sizeObservers.js +207 -0
- package/lib/Responsive/utils/index.js +70 -0
- package/lib/Responsive/utils/shallowCompare.js +38 -0
- package/lib/Responsive/windowResizeObserver.js +63 -0
- package/lib/Ribbon/Ribbon.js +115 -0
- package/lib/Ribbon/Ribbon.module.css +377 -0
- package/lib/Ribbon/__tests__/Ribbon.spec.js +193 -0
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -0
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
- package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
- package/lib/RippleEffect/RippleEffect.js +58 -0
- package/lib/RippleEffect/RippleEffect.module.css +67 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
- package/lib/Select/GroupSelect.js +944 -0
- package/lib/Select/Select.js +1036 -0
- package/lib/Select/Select.module.css +100 -0
- package/lib/Select/SelectWithAvatar.js +430 -0
- package/lib/Select/SelectWithIcon.js +556 -0
- package/lib/Select/__tests__/Select.spec.js +383 -0
- package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
- package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
- package/lib/Select/docs/Select__default.docs.js +261 -0
- package/lib/Stencils/Stencils.js +94 -0
- package/lib/Stencils/Stencils.module.css +106 -0
- package/lib/Stencils/__tests__/Stencils.spec.js +84 -0
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -0
- package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
- package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
- package/lib/Switch/Switch.js +183 -0
- package/lib/Switch/Switch.module.css +110 -0
- package/lib/Switch/docs/Switch__custom.docs.js +203 -0
- package/lib/Switch/docs/Switch__default.docs.js +156 -0
- package/lib/Tab/Tab.js +158 -0
- package/lib/Tab/Tab.module.css +101 -0
- package/lib/Tab/TabContent.js +45 -0
- package/lib/Tab/TabContent.module.css +4 -0
- package/lib/Tab/TabContentWrapper.js +47 -0
- package/lib/Tab/TabWrapper.js +109 -0
- package/lib/Tab/Tabs.js +685 -0
- package/lib/Tab/Tabs.module.css +140 -0
- package/lib/Tab/__tests__/Tab.spec.js +130 -0
- package/lib/Tab/__tests__/TabContent.spec.js +22 -0
- package/lib/Tab/__tests__/TabContentWrapper.spec.js +59 -0
- package/lib/Tab/__tests__/TabWrapper.spec.js +100 -0
- package/lib/Tab/__tests__/Tabs.spec.js +123 -0
- package/lib/Tab/docs/Tab__default.docs.js +308 -0
- package/lib/Tab/docs/tabdocs.module.css +29 -0
- package/lib/Tab/index.js +47 -0
- package/lib/Tag/Tag.js +246 -0
- package/lib/Tag/Tag.module.css +247 -0
- package/lib/Tag/__tests__/Tag.spec.js +35 -0
- package/lib/Tag/docs/Tag__custom.docs.js +423 -0
- package/lib/Tag/docs/Tag__default.docs.js +307 -0
- package/lib/TextBox/TextBox.js +287 -0
- package/lib/TextBox/TextBox.module.css +157 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +205 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -0
- package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
- package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
- package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
- package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +276 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +75 -0
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +228 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
- package/lib/Textarea/Textarea.js +202 -0
- package/lib/Textarea/Textarea.module.css +139 -0
- package/lib/Textarea/__tests__/Textarea.spec.js +186 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -0
- package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
- package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
- package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
- package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
- package/lib/Tooltip/Tooltip.js +538 -0
- package/lib/Tooltip/Tooltip.module.css +104 -0
- package/lib/Tooltip/__tests__/Tooltip.spec.js +98 -0
- package/lib/Tooltip/docs/Tooltip__default.docs.js +391 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +144 -0
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +188 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
- package/lib/a11y/FocusScope/FocusScope.js +443 -0
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
- package/lib/beta/FocusRing/FocusRing.js +338 -0
- package/lib/beta/FocusRing/FocusRing.module.css +152 -0
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
- package/lib/common/animation.module.css +612 -0
- package/lib/common/avatarsizes.module.css +45 -0
- package/lib/common/basic.module.css +33 -0
- package/lib/common/basicReset.module.css +40 -0
- package/lib/common/common.module.css +502 -0
- package/lib/common/customscroll.module.css +89 -0
- package/lib/common/docStyle.module.css +762 -0
- package/lib/common/reset.module.css +12 -0
- package/lib/common/transition.module.css +146 -0
- package/lib/css.js +83 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +165 -0
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
- package/lib/deprecated/Theme/darkTheme.module.css +393 -0
- package/lib/deprecated/Theme/defaultTheme.module.css +393 -0
- package/lib/deprecated/Theme/palette/darkCTAPalette.module.css +116 -0
- package/lib/deprecated/Theme/palette/darkPalette.module.css +155 -0
- package/lib/deprecated/Theme/palette/defaultCTAPalette.module.css +116 -0
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +155 -0
- package/lib/deprecated/customscroll_Old.module.css +46 -0
- package/lib/index.js +1412 -0
- package/lib/semantic/Button/Button.js +138 -0
- package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
- package/lib/semantic/Button/semanticButton.module.css +9 -0
- package/lib/utils/Common.js +457 -0
- package/lib/utils/ContextOptimizer.js +49 -0
- package/lib/utils/__tests__/constructFullName.spec.js +12 -0
- package/lib/utils/__tests__/debounce.spec.js +40 -0
- package/lib/utils/__tests__/getInitial.spec.js +26 -0
- package/lib/utils/constant.js +10 -0
- package/lib/utils/constructFullName.js +34 -0
- package/lib/utils/datetime/common.js +233 -0
- package/lib/utils/debounce.js +30 -0
- package/lib/utils/dropDownUtils.js +556 -0
- package/lib/utils/dummyFunction.js +10 -0
- package/lib/utils/getHTMLFontSize.js +11 -0
- package/lib/utils/getInitial.js +33 -0
- package/lib/utils/scrollTo.js +22 -0
- package/package.json +4 -4
package/es/Provider.js
CHANGED
|
@@ -28,6 +28,7 @@ import './Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css';
|
|
|
28
28
|
import './Appearance/dark/themes/red/redDarkComponentTheme.module.css';
|
|
29
29
|
import './Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css';
|
|
30
30
|
import './Appearance/dark/mode/darkMode.module.css';
|
|
31
|
+
import LibraryContext from './Provider/LibraryContextInit';
|
|
31
32
|
import { setGlobalIdPrefix } from './Provider/IdProvider';
|
|
32
33
|
export default class Provider extends React.Component {
|
|
33
34
|
constructor(props) {
|
|
@@ -88,7 +89,12 @@ export default class Provider extends React.Component {
|
|
|
88
89
|
let yellow = {
|
|
89
90
|
backgroundColor: '#e8b923'
|
|
90
91
|
};
|
|
91
|
-
return /*#__PURE__*/React.createElement(
|
|
92
|
+
return /*#__PURE__*/React.createElement(LibraryContext.Provider, {
|
|
93
|
+
value: {
|
|
94
|
+
isReducedMotion: false,
|
|
95
|
+
direction: 'ltr'
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/React.createElement(AppContainer, {
|
|
92
98
|
customProps: {
|
|
93
99
|
ExtraProps: {
|
|
94
100
|
'data-mode': appearanceName,
|
|
@@ -146,7 +152,7 @@ export default class Provider extends React.Component {
|
|
|
146
152
|
onClick: () => this.setTheme('yellow')
|
|
147
153
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
148
154
|
"data-portal": "portal1"
|
|
149
|
-
}));
|
|
155
|
+
})));
|
|
150
156
|
}
|
|
151
157
|
|
|
152
158
|
}
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
--radio_stroke_color: var(--zdt_radio_default_stroke);
|
|
8
8
|
--radio_fill: none;
|
|
9
9
|
--radio_inner_stroke_width: 0;
|
|
10
|
+
}[dir=ltr] .varClass {
|
|
10
11
|
--radio_label_margin: 0 0 0 var(--zd_size6)/*rtl: 0 var(--zd_size6) 0 0*/;
|
|
12
|
+
}[dir=rtl] .varClass {
|
|
13
|
+
--radio_label_margin: 0 var(--zd_size6) 0 0;
|
|
11
14
|
}
|
|
12
15
|
.container {
|
|
13
16
|
composes: varClass;
|
|
@@ -22,9 +25,9 @@
|
|
|
22
25
|
composes: offSelection from '../common/common.module.css';
|
|
23
26
|
width: var(--radio_width);
|
|
24
27
|
height: var(--radio_height);
|
|
28
|
+
stroke: var(--radio_stroke_color);
|
|
25
29
|
background: var(--radio_bg_color);
|
|
26
30
|
border-radius: 50%;
|
|
27
|
-
stroke: var(--radio_stroke_color);
|
|
28
31
|
}
|
|
29
32
|
.radio,
|
|
30
33
|
.centerPath {
|
|
@@ -54,10 +57,13 @@
|
|
|
54
57
|
}
|
|
55
58
|
.centerPath {
|
|
56
59
|
--radio_fill: inherit;
|
|
57
|
-
transform-origin: center;
|
|
58
60
|
stroke-width: var(--radio_inner_stroke_width);
|
|
61
|
+
transform-origin: center;
|
|
62
|
+
}
|
|
63
|
+
[dir=ltr] .checked .centerPath {
|
|
64
|
+
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
59
65
|
}
|
|
60
|
-
.checked .centerPath {
|
|
66
|
+
[dir=rtl] .checked .centerPath {
|
|
61
67
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
62
68
|
}
|
|
63
69
|
.rdBoxprimary,
|
|
@@ -98,7 +98,9 @@ ResponsiveSender.propTypes = {
|
|
|
98
98
|
domRefKey: PropTypes.string,
|
|
99
99
|
responsiveId: PropTypes.string
|
|
100
100
|
};
|
|
101
|
-
export function useResponsiveReceiver(
|
|
101
|
+
export function useResponsiveReceiver() {
|
|
102
|
+
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
103
|
+
let query = arguments.length > 1 ? arguments[1] : undefined;
|
|
102
104
|
const [, forceUpdate] = useState();
|
|
103
105
|
const totalContextData = useContext(ResponsiveContext);
|
|
104
106
|
const validSizeContextData = totalContextData[validSizeResponsiveId];
|
|
@@ -170,13 +172,14 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId, query)
|
|
|
170
172
|
updateLatestData();
|
|
171
173
|
return data.current;
|
|
172
174
|
}
|
|
173
|
-
export function ResponsiveReceiver({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
export function ResponsiveReceiver(_ref) {
|
|
176
|
+
let {
|
|
177
|
+
children,
|
|
178
|
+
responsiveId,
|
|
179
|
+
query,
|
|
180
|
+
eleRef,
|
|
181
|
+
domRefKey
|
|
182
|
+
} = _ref;
|
|
180
183
|
const data = useResponsiveReceiver(responsiveId, query);
|
|
181
184
|
const child = children(data);
|
|
182
185
|
return eleRef ? /*#__PURE__*/React.createElement(DOMRefWrapper, {
|
|
@@ -163,7 +163,9 @@ export default class ResizeComponent extends React.Component {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
constructChildren(
|
|
166
|
+
constructChildren() {
|
|
167
|
+
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
168
|
+
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
167
169
|
const {
|
|
168
170
|
childrenList,
|
|
169
171
|
getData
|
|
@@ -102,7 +102,8 @@ ResponsiveSender.propTypes = {
|
|
|
102
102
|
responsiveId: PropTypes.string // matcher: PropTypes.func
|
|
103
103
|
|
|
104
104
|
};
|
|
105
|
-
export function useResponsiveReceiver(
|
|
105
|
+
export function useResponsiveReceiver() {
|
|
106
|
+
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
106
107
|
const [_, forceUpdate] = useState();
|
|
107
108
|
let totalContextData = useContext(ResponsiveContext);
|
|
108
109
|
let contextData = totalContextData[responsiveId] || totalContextData[defaultResponsiveId]; // NOTE: this for fallback of if responsive receiver id wrong
|
|
@@ -149,7 +150,8 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId) {
|
|
|
149
150
|
return value1 <= width && value2 >= width || breakPoint1 === breakPoint || breakPoint2 === breakPoint;
|
|
150
151
|
},
|
|
151
152
|
|
|
152
|
-
deviceOnly(
|
|
153
|
+
deviceOnly() {
|
|
154
|
+
let breakPoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
153
155
|
return breakPoints.includes(breakPoint);
|
|
154
156
|
},
|
|
155
157
|
|
|
@@ -174,13 +176,14 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId) {
|
|
|
174
176
|
// ) : null;
|
|
175
177
|
// }
|
|
176
178
|
|
|
177
|
-
export function ResponsiveReceiver({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
export function ResponsiveReceiver(_ref) {
|
|
180
|
+
let {
|
|
181
|
+
children,
|
|
182
|
+
responsiveId,
|
|
183
|
+
hiddenSizes,
|
|
184
|
+
eleRef,
|
|
185
|
+
domRefKey
|
|
186
|
+
} = _ref;
|
|
184
187
|
const data = useResponsiveReceiver(responsiveId);
|
|
185
188
|
const {
|
|
186
189
|
breakPoint
|
|
@@ -5,9 +5,10 @@ import Radio from '../../Radio/Radio'; // eslint-disable-next-line css-modules/n
|
|
|
5
5
|
|
|
6
6
|
import style from './style.module.css'; // eslint-disable-next-line react/prop-types
|
|
7
7
|
|
|
8
|
-
function WindowSizeBar({
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
function WindowSizeBar(_ref) {
|
|
9
|
+
let {
|
|
10
|
+
isTouchDevice
|
|
11
|
+
} = _ref;
|
|
11
12
|
let [{
|
|
12
13
|
windowWidth,
|
|
13
14
|
windowHeight
|
|
@@ -44,11 +45,12 @@ export default class Responsive__Custom extends React.Component {
|
|
|
44
45
|
this.switchToOr = this.handleMethodChange.bind(this, 'orFunction');
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
customQuery({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
customQuery(_ref2) {
|
|
49
|
+
let {
|
|
50
|
+
mediaQueryOR,
|
|
51
|
+
mediaQueryAND,
|
|
52
|
+
isTouchDevice
|
|
53
|
+
} = _ref2;
|
|
52
54
|
const {
|
|
53
55
|
method
|
|
54
56
|
} = this.state;
|
|
@@ -152,42 +154,45 @@ export default class Responsive__Custom extends React.Component {
|
|
|
152
154
|
} = this.state;
|
|
153
155
|
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
154
156
|
query: this.customQuery
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
157
|
+
}, _ref3 => {
|
|
158
|
+
let {
|
|
159
|
+
isQureyMatched,
|
|
160
|
+
isTouchDevice
|
|
161
|
+
} = _ref3;
|
|
162
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(WindowSizeBar, {
|
|
163
|
+
isTouchDevice: isTouchDevice
|
|
164
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
165
|
+
flexible: true,
|
|
166
|
+
scroll: "vertical"
|
|
167
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
168
|
+
isCover: false,
|
|
169
|
+
alignBox: "row",
|
|
170
|
+
align: "vertical",
|
|
171
|
+
wrap: "wrap"
|
|
172
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
173
|
+
text: "AND Function",
|
|
174
|
+
onChange: this.switchToAnd,
|
|
175
|
+
name: "AndFunction",
|
|
176
|
+
checked: method === 'AndFunction'
|
|
177
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
style: {
|
|
179
|
+
margin: '20px'
|
|
180
|
+
}
|
|
181
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
182
|
+
text: "OR Function",
|
|
183
|
+
onChange: this.switchToOr,
|
|
184
|
+
name: "orFunction",
|
|
185
|
+
checked: method === 'orFunction'
|
|
186
|
+
}))), /*#__PURE__*/React.createElement(Container, {
|
|
187
|
+
isCover: false,
|
|
188
|
+
alignBox: "row",
|
|
189
|
+
align: "both",
|
|
190
|
+
wrap: "wrap"
|
|
191
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
192
|
+
shrink: true,
|
|
193
|
+
className: ` ${style.box} ${isQureyMatched ? style.selected : ''} `
|
|
194
|
+
}, "minWidth: 700, maxWidth: 800 || minHeight: 700, maxHeight: 800"))));
|
|
195
|
+
})));
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
}
|
|
@@ -8,80 +8,83 @@ import { Container, Box } from '../../Layout';
|
|
|
8
8
|
import style from './style.module.css';
|
|
9
9
|
export default class Responsive__default extends React.Component {
|
|
10
10
|
render() {
|
|
11
|
-
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
11
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null, _ref => {
|
|
12
|
+
let {
|
|
13
|
+
breakPoint,
|
|
14
|
+
deviceUpto,
|
|
15
|
+
deviceBetween,
|
|
16
|
+
deviceOnly,
|
|
17
|
+
isTouchDevice
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
className: style.header
|
|
21
|
+
}, ` ${breakPoint} ${isTouchDevice} `), /*#__PURE__*/React.createElement(Box, {
|
|
22
|
+
flexible: true,
|
|
23
|
+
scroll: "vertical"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: style.subHeading
|
|
26
|
+
}, "Common Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
27
|
+
isCover: false,
|
|
28
|
+
alignBox: "row",
|
|
29
|
+
wrap: "wrap"
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
31
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE']) ? style.selected : ''} `
|
|
32
|
+
}, "MOBILE - 480"), /*#__PURE__*/React.createElement(Box, {
|
|
33
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_S']) ? style.selected : ''} `
|
|
34
|
+
}, "TABLET_S - 640"), /*#__PURE__*/React.createElement(Box, {
|
|
35
|
+
className: ` ${style.box} ${deviceOnly(['TABLET']) ? style.selected : ''} `
|
|
36
|
+
}, "TABLET - 768"), /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_S']) ? style.selected : ''} `
|
|
38
|
+
}, "LAPTOP_S - 1024"), /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP']) ? style.selected : ''} `
|
|
40
|
+
}, "LAPTOP - 1440")), /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: style.subHeading
|
|
42
|
+
}, "Other Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
isCover: false,
|
|
44
|
+
alignBox: "row",
|
|
45
|
+
wrap: "wrap"
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR']) ? style.selected : ''} `
|
|
48
|
+
}, "MONITOR - 1920"), /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR_M']) ? style.selected : ''} `
|
|
50
|
+
}, "MONITOR_M - 1600"), /*#__PURE__*/React.createElement(Box, {
|
|
51
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_M']) ? style.selected : ''} `
|
|
52
|
+
}, "LAPTOP_M - 1280"), /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_M']) ? style.selected : ''} `
|
|
54
|
+
}, "TABLET_M - 720"), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_M']) ? style.selected : ''} `
|
|
56
|
+
}, "MOBILE_M - 375.04"), /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_S']) ? style.selected : ''} `
|
|
58
|
+
}, "MOBILE_S - 360"), /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_XS']) ? style.selected : ''} `
|
|
60
|
+
}, "MOBILE_XS - 320")), /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: style.subHeading
|
|
62
|
+
}, "Device Between"), /*#__PURE__*/React.createElement(Container, {
|
|
63
|
+
isCover: false,
|
|
64
|
+
alignBox: "row",
|
|
65
|
+
wrap: "wrap"
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
67
|
+
className: ` ${style.box} ${deviceBetween('MOBILE_XS', 'TABLET') ? style.selected : ''} `
|
|
68
|
+
}, "MOBILE - TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
className: ` ${style.box} ${deviceBetween('TABLET_M', 'LAPTOP') ? style.selected : ''} `
|
|
70
|
+
}, "TABLET - LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
71
|
+
className: ` ${style.box} ${deviceBetween('LAPTOP_M', 'MONITOR') ? style.selected : ''} `
|
|
72
|
+
}, "LAPTOP - MONITOR")), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: style.subHeading
|
|
74
|
+
}, "Device Upto"), /*#__PURE__*/React.createElement(Container, {
|
|
75
|
+
isCover: false,
|
|
76
|
+
alignBox: "row",
|
|
77
|
+
wrap: "wrap"
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
79
|
+
className: ` ${style.box} ${deviceUpto('MONITOR') ? style.selected : ''} `
|
|
80
|
+
}, "MONITOR"), /*#__PURE__*/React.createElement(Box, {
|
|
81
|
+
className: ` ${style.box} ${deviceUpto('LAPTOP') ? style.selected : ''} `
|
|
82
|
+
}, "LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
className: ` ${style.box} ${deviceUpto('TABLET') ? style.selected : ''} `
|
|
84
|
+
}, "TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
85
|
+
className: ` ${style.box} ${deviceUpto('MOBILE') ? style.selected : ''} `
|
|
86
|
+
}, "MOBILE"))));
|
|
87
|
+
}));
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
.header{
|
|
2
|
-
background-color: #c60000;
|
|
3
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
4
2
|
color: #fff;
|
|
5
3
|
font-size: 24px;
|
|
4
|
+
background-color: #c60000;
|
|
6
5
|
padding: 10px;
|
|
7
6
|
text-align: center;
|
|
8
7
|
margin: 10px 6px;
|
|
8
|
+
}[dir=ltr] .header{
|
|
9
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
10
|
+
}[dir=rtl] .header{
|
|
11
|
+
box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
9
12
|
}
|
|
10
13
|
.box{
|
|
11
14
|
height: 80px;
|
|
12
|
-
background-color: #ffbb11;
|
|
13
|
-
text-align: center;
|
|
14
15
|
line-height: 80px;
|
|
15
16
|
min-width: 300px;
|
|
17
|
+
background-color: #ffbb11;
|
|
18
|
+
text-align: center;
|
|
16
19
|
margin:6px;
|
|
17
20
|
padding: 0 100x;
|
|
18
21
|
}
|
|
@@ -20,10 +23,10 @@
|
|
|
20
23
|
background-color: #60de55
|
|
21
24
|
}
|
|
22
25
|
.subHeading{
|
|
23
|
-
text-align: center;
|
|
24
|
-
padding: 10px;
|
|
25
26
|
position: sticky;
|
|
26
27
|
top: 0;
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 10px;
|
|
27
30
|
background-color: #fff
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -37,11 +40,17 @@
|
|
|
37
40
|
position: absolute;
|
|
38
41
|
width: 60%;
|
|
39
42
|
top: 50%;
|
|
40
|
-
transform: translate(-50%,-50%);
|
|
41
|
-
left: 50%;
|
|
42
43
|
border: 1px solid #aaa;
|
|
43
44
|
border-radius: 4px
|
|
44
45
|
}
|
|
46
|
+
[dir=ltr] .wrapper{
|
|
47
|
+
transform: translate(-50%,-50%);
|
|
48
|
+
left: 50%
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .wrapper{
|
|
51
|
+
transform: translate(50%,-50%);
|
|
52
|
+
right: 50%
|
|
53
|
+
}
|
|
45
54
|
.avatar{
|
|
46
55
|
margin:20px auto
|
|
47
56
|
}
|
|
@@ -68,7 +68,11 @@ export class Subscribale {
|
|
|
68
68
|
this.subscribers.length && this.disconnect();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
dispatch(
|
|
71
|
+
dispatch() {
|
|
72
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
73
|
+
args[_key] = arguments[_key];
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
this.subscribers.forEach(subscriber => {
|
|
73
77
|
subscriber(...args);
|
|
74
78
|
});
|