@zohodesk/components 1.0.0-alpha-221 → 1.0.0-alpha-225
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 +16 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +356 -0
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/default/mode/defaultMode.module.css +356 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +42 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +42 -0
- package/es/Animation/docs/Animation__default.docs.js +2 -2
- package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/es/AppContainer/AppContainer.js +6 -6
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
- package/es/Card/Card.module.css +3 -3
- package/es/Card/docs/Card__Default.docs.js +4 -4
- package/es/Card/docs/Card__Scroll.docs.js +4 -4
- package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
- package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
- package/es/MultiSelect/MultiSelect.js +8 -1
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Provider.js +22 -22
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
- package/es/Select/Select.js +14 -0
- package/es/Stencils/Stencils.module.css +4 -14
- package/es/Tab/Tabs.js +14 -2
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/es/common/docStyle.module.css +9 -9
- package/lib/Accordion/Accordion.js +3 -3
- package/lib/Accordion/AccordionItem.js +3 -3
- package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
- package/lib/Animation/Animation.js +3 -3
- package/lib/Animation/docs/Animation__default.docs.js +5 -5
- package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
- package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
- package/lib/AppContainer/AppContainer.js +9 -9
- package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +4 -4
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
- package/lib/Button/Button.js +3 -3
- package/lib/Button/docs/Button__custom.docs.js +3 -3
- package/lib/Button/docs/Button__default.docs.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
- package/lib/Card/Card.js +3 -3
- package/lib/Card/Card.module.css +3 -3
- package/lib/Card/__tests__/Card.spec.js +1 -1
- package/lib/Card/docs/Card__Custom.docs.js +3 -3
- package/lib/Card/docs/Card__Default.docs.js +7 -7
- package/lib/Card/docs/Card__Scroll.docs.js +7 -7
- package/lib/Card/index.js +1 -1
- package/lib/CheckBox/CheckBox.js +3 -3
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
- package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
- package/lib/DateTime/CalendarView.js +3 -3
- package/lib/DateTime/DateTime.js +3 -3
- package/lib/DateTime/DateTimePopupFooter.js +3 -3
- package/lib/DateTime/DateTimePopupHeader.js +3 -3
- package/lib/DateTime/DateWidget.js +3 -3
- package/lib/DateTime/DaysRow.js +3 -3
- package/lib/DateTime/Time.js +3 -3
- package/lib/DateTime/YearView.js +3 -3
- package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
- package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
- package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
- package/lib/DateTime/objectUtils.js +1 -1
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
- package/lib/DropDown/DropDown.js +3 -3
- package/lib/DropDown/DropDownHeading.js +3 -3
- package/lib/DropDown/DropDownItem.js +3 -3
- package/lib/DropDown/DropDownSearch.js +3 -3
- package/lib/DropDown/DropDownSeparator.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
- package/lib/Label/Label.js +3 -3
- package/lib/Label/docs/Label__clipped.docs.js +3 -3
- package/lib/Label/docs/Label__custom.docs.js +3 -3
- package/lib/Label/docs/Label__palette.docs.js +3 -3
- package/lib/Label/docs/Label__size.docs.js +3 -3
- package/lib/Label/docs/Label__type.docs.js +3 -3
- package/lib/Layout/docs/Layout__Hidden.docs.js +4 -4
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
- package/lib/ListItem/ListItem.js +3 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithCheckBox.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +3 -3
- package/lib/ListItem/ListItemWithRadio.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -3
- package/lib/MultiSelect/AdvancedMultiSelect.js +3 -3
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +10 -4
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -3
- package/lib/MultiSelect/SelectedOptions.js +3 -3
- package/lib/MultiSelect/Suggestions.js +5 -5
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
- package/lib/PopOver/PopOver.js +3 -3
- package/lib/PopOver/PopOver.module.css +1 -1
- package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +3 -3
- package/lib/Provider/LibraryContext.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
- package/lib/Provider.js +25 -25
- package/lib/Radio/Radio.js +3 -3
- package/lib/Radio/docs/Radio__custom.docs.js +3 -3
- package/lib/Radio/docs/Radio__default.docs.js +3 -3
- package/lib/Responsive/CustomResponsive.js +3 -3
- package/lib/Responsive/RefWrapper.js +1 -1
- package/lib/Responsive/ResizeComponent.js +3 -3
- package/lib/Responsive/ResizeObserver.js +1 -1
- package/lib/Responsive/Responsive.js +3 -3
- package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
- package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
- package/lib/Responsive/sizeObservers.js +3 -3
- package/lib/Responsive/utils/shallowCompare.js +1 -1
- package/lib/Ribbon/Ribbon.js +3 -3
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
- package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +19 -5
- package/lib/Select/SelectWithAvatar.js +3 -3
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +3 -3
- package/lib/Stencils/Stencils.module.css +4 -14
- package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
- package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/docs/Switch__custom.docs.js +3 -3
- package/lib/Switch/docs/Switch__default.docs.js +3 -3
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +16 -5
- package/lib/Tab/docs/Tab__default.docs.js +3 -3
- package/lib/Tag/Tag.js +3 -3
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +3 -3
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
- package/lib/Tooltip/Tooltip.js +3 -3
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
- package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +5 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
- package/lib/a11y/FocusScope/FocusScope.js +1 -1
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
- package/lib/beta/FocusRing/FocusRing.js +3 -3
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
- package/lib/common/docStyle.module.css +9 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/datetime/common.js +1 -1
- package/lib/utils/dropDownUtils.js +1 -1
- package/lib/utils/shallowEqual.js +1 -1
- package/package.json +13 -9
- package/preprocess/componentAppearanceColors.js +67 -0
- package/preprocess/componentThemeColors.js +123 -0
- package/preprocess/ctaThemeColors.js +101 -0
- package/preprocess/index.js +3 -0
- package/preprocess/json/componentAppearanceVariableJson.js +1346 -0
- package/preprocess/json/componentThemeVariableJson.js +242 -0
- package/preprocess/json/ctaThemeVariableJson.js +203 -0
- package/es/Appearance/dark/mode/darkMode.module.css +0 -393
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
- package/es/Appearance/default/mode/defaultMode.module.css +0 -395
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/mode/darkMode.module.css +0 -393
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -48
- package/lib/Appearance/default/mode/defaultMode.module.css +0 -395
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -48
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
25
25
|
|
|
26
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
27
|
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -13,9 +13,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
19
|
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
25
25
|
|
|
26
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
27
|
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -94,18 +94,18 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.blue {
|
|
97
|
-
color: var(--
|
|
97
|
+
color: var(--zd_prime);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.dark {
|
|
101
101
|
composes: p10;
|
|
102
|
-
background-color: var(--
|
|
102
|
+
background-color: var(--dot_black);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.table {
|
|
106
106
|
composes: p10;
|
|
107
107
|
composes: cboth;
|
|
108
|
-
border: 1px solid var(--
|
|
108
|
+
border: 1px solid var(--zd_smoke84);
|
|
109
109
|
border-radius: 3px;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
|
|
120
120
|
.tableheading {
|
|
121
121
|
composes: blue;
|
|
122
|
-
background:
|
|
122
|
+
background:var(--zd_smoke1);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.palette {
|
|
@@ -130,13 +130,13 @@
|
|
|
130
130
|
width: 200px;
|
|
131
131
|
composes: tcenter;
|
|
132
132
|
font-weight: bold;
|
|
133
|
-
border: 1px solid var(--
|
|
133
|
+
border: 1px solid var(--zd_smoke83);
|
|
134
134
|
border-radius: 3px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.palette .palettecard {
|
|
138
138
|
height: 80px;
|
|
139
|
-
border: 1px solid var(--
|
|
139
|
+
border: 1px solid var(--zd_smoke83);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.palette span {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
composes: tcenter;
|
|
150
150
|
composes: p10;
|
|
151
151
|
composes: m10;
|
|
152
|
-
border: 1px solid var(--
|
|
152
|
+
border: 1px solid var(--zd_smoke83);
|
|
153
153
|
border-radius: 3px;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
.cover {
|
|
162
162
|
composes: p10;
|
|
163
163
|
composes: m10;
|
|
164
|
-
border: 1px solid var(--
|
|
164
|
+
border: 1px solid var(--zd_smoke1);
|
|
165
165
|
border-radius: 5px;
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -759,4 +759,4 @@
|
|
|
759
759
|
--textarea_text_color: hsl(var(--hue), 100%, 80%);
|
|
760
760
|
--textarea_padding: 2px 10px;
|
|
761
761
|
background-color: hsl(var(--hue), 100%, 97%);
|
|
762
|
-
}
|
|
762
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
19
19
|
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
21
|
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -25,9 +25,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
25
25
|
|
|
26
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
27
|
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
29
|
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
32
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
19
19
|
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
21
|
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -19,9 +19,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
19
19
|
|
|
20
20
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
21
21
|
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
23
|
|
|
24
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
@@ -18,7 +18,7 @@ exports.pad = pad;
|
|
|
18
18
|
exports.replaceI18NValuesWithRegex = replaceI18NValuesWithRegex;
|
|
19
19
|
exports.unescapeUnicode = unescapeUnicode;
|
|
20
20
|
|
|
21
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
21
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
22
22
|
|
|
23
23
|
var dateFormat = {
|
|
24
24
|
dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
@@ -19,7 +19,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
19
19
|
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
21
|
|
|
22
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
22
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
23
23
|
|
|
24
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
25
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = shallowEqual;
|
|
7
7
|
|
|
8
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
8
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
9
9
|
|
|
10
10
|
function is(x, y) {
|
|
11
11
|
if (x === y) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-225",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
14
14
|
"clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
|
|
15
15
|
"dubCheck": "node dubFinder node_modules/@zohodesk/icons/lib node_modules/@zohodesk/variables/lib",
|
|
16
|
-
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components",
|
|
16
|
+
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
|
|
17
|
+
"build:variables": "node ./preprocess/index",
|
|
17
18
|
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
18
19
|
"start": "react-cli start",
|
|
19
20
|
"docs": "npm run dubCheck && react-cli docs",
|
|
@@ -33,12 +34,12 @@
|
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
36
|
-
"@zohodesk/variables": "1.0.0-beta.
|
|
37
|
-
"@zohodesk/icons": "1.0.0-beta.
|
|
37
|
+
"@zohodesk/variables": "1.0.0-beta.29",
|
|
38
|
+
"@zohodesk/icons": "1.0.0-beta.92",
|
|
38
39
|
"@zohodesk/virtualizer": "1.0.3",
|
|
39
40
|
"velocity-react": "^1.4.1",
|
|
40
41
|
"react-sortable-hoc": "^0.8.3",
|
|
41
|
-
"@zohodesk/svg": "1.0.0-beta.
|
|
42
|
+
"@zohodesk/svg": "1.0.0-beta.39"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"hoist-non-react-statics": "3.0.1",
|
|
@@ -47,14 +48,17 @@
|
|
|
47
48
|
"selectn": "1.1.2"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
|
-
"@zohodesk/icons": "
|
|
51
|
-
"@zohodesk/variables": "
|
|
52
|
-
"@zohodesk/svg": "
|
|
51
|
+
"@zohodesk/icons": "1.0.0-beta.92",
|
|
52
|
+
"@zohodesk/variables": "1.0.0-beta.29",
|
|
53
|
+
"@zohodesk/svg": "1.0.0-beta.39",
|
|
53
54
|
"@zohodesk/virtualizer": "^1.0.3",
|
|
54
55
|
"velocity-react": "^1.4.1",
|
|
55
56
|
"react-sortable-hoc": "^0.8.3"
|
|
56
57
|
},
|
|
57
58
|
"react-cli": {
|
|
59
|
+
"preprocessor": {
|
|
60
|
+
"runner": "preprocess/index.js"
|
|
61
|
+
},
|
|
58
62
|
"docs": {
|
|
59
63
|
"componentFolder": "./src",
|
|
60
64
|
"cssUniqueness": "false",
|
|
@@ -65,4 +69,4 @@
|
|
|
65
69
|
"hasRTL": true
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
|
-
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var { componentAppearanceVariables } = require('./json/componentAppearanceVariableJson');
|
|
2
|
+
var { ensureDirectoryExistence } = require('../../common/pre_utils');
|
|
3
|
+
let fs = require('fs');
|
|
4
|
+
let path = require('path');
|
|
5
|
+
let baseFolder = 'Appearance';
|
|
6
|
+
let mode = ['default', 'dark'];
|
|
7
|
+
let modeFiles = [];
|
|
8
|
+
mode.forEach(mode => {
|
|
9
|
+
let modeFilesString = `../assets/${baseFolder}/${mode}/mode/${mode}Mode.module.css`;
|
|
10
|
+
modeFiles.push(path.join(__dirname, modeFilesString));
|
|
11
|
+
});
|
|
12
|
+
let files = modeFiles;
|
|
13
|
+
|
|
14
|
+
function generate(mode) {
|
|
15
|
+
let exportVariables = [];
|
|
16
|
+
let counter = 0;
|
|
17
|
+
let newLine = '';
|
|
18
|
+
|
|
19
|
+
componentAppearanceVariables.forEach((element) => {
|
|
20
|
+
let commentName = element.comment;
|
|
21
|
+
counting = counter++;
|
|
22
|
+
if (counting != 0) {
|
|
23
|
+
newLine = `\n\t`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exportVariables.push(commentName ? `${newLine}\n\t/* ${commentName} */` : '');
|
|
27
|
+
|
|
28
|
+
Object.entries(element.data).map(([key, value]) => {
|
|
29
|
+
if (mode == 'default') {
|
|
30
|
+
let componentDefaultColors = value.light[0];
|
|
31
|
+
|
|
32
|
+
colorsResult = [
|
|
33
|
+
`\n\t--${key}: ${componentDefaultColors};`
|
|
34
|
+
];
|
|
35
|
+
exportVariables.push(colorsResult);
|
|
36
|
+
} else if (mode == 'dark') {
|
|
37
|
+
let componentDarkColors = value.dark[0];
|
|
38
|
+
|
|
39
|
+
colorsResult = [
|
|
40
|
+
`\n\t--${key}: ${componentDarkColors};`
|
|
41
|
+
];
|
|
42
|
+
exportVariables.push(colorsResult);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
return exportVariables.join('');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let arrayIndexCounter = 0;
|
|
50
|
+
mode.forEach(mode => {
|
|
51
|
+
let fileString = files[arrayIndexCounter];
|
|
52
|
+
// let splitPath = fileString.split(/\\/g);
|
|
53
|
+
let getMode = mode;
|
|
54
|
+
if (mode == 'default') {
|
|
55
|
+
blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
|
|
56
|
+
} else if (mode == 'dark') {
|
|
57
|
+
blueSelector = '';
|
|
58
|
+
}
|
|
59
|
+
ensureDirectoryExistence(fileString);
|
|
60
|
+
fs.writeFileSync(
|
|
61
|
+
fileString,
|
|
62
|
+
`[data-mode='${getMode}']${blueSelector} {${generate(
|
|
63
|
+
getMode
|
|
64
|
+
)}\n}`
|
|
65
|
+
);
|
|
66
|
+
arrayIndexCounter++;
|
|
67
|
+
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var { componentThemeVariables } = require('./json/componentThemeVariableJson');
|
|
2
|
+
var { ensureDirectoryExistence } = require('../../common/pre_utils');
|
|
3
|
+
let fs = require('fs');
|
|
4
|
+
let path = require('path');
|
|
5
|
+
let baseFolder = 'Appearance';
|
|
6
|
+
let mode = ['default', 'dark'];
|
|
7
|
+
let themes = ['blue', 'green', 'orange', 'red', 'yellow'];
|
|
8
|
+
let themeFiles = [];
|
|
9
|
+
let prefix=`\n\t--zdt_`;
|
|
10
|
+
mode.forEach(mode => {
|
|
11
|
+
themes.forEach(theme => {
|
|
12
|
+
let themeFilesString = `../assets/${baseFolder}/${mode}/themes/${theme}/${
|
|
13
|
+
theme + capitalizeFirstLetter(mode)
|
|
14
|
+
}ComponentTheme.module.css`;
|
|
15
|
+
themeFiles.push(path.join(__dirname, themeFilesString));
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
let files = themeFiles;
|
|
19
|
+
|
|
20
|
+
function capitalizeFirstLetter(string) {
|
|
21
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function generate(mode, theme) {
|
|
25
|
+
let exportVariables = [];
|
|
26
|
+
let counter = 0;
|
|
27
|
+
let newLine = '';
|
|
28
|
+
|
|
29
|
+
componentThemeVariables.forEach((element) => {
|
|
30
|
+
let commentName = element.comment;
|
|
31
|
+
counting = counter++;
|
|
32
|
+
if (counting != 0) {
|
|
33
|
+
newLine = `\n\t`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exportVariables.push(commentName ? `${newLine}\n\t/* ${commentName} */` : '');
|
|
37
|
+
|
|
38
|
+
Object.entries(element.data).map(([key, value]) => {
|
|
39
|
+
if (mode == 'default') {
|
|
40
|
+
let componentDefaultColors = value.light;
|
|
41
|
+
let colorsResult = '';
|
|
42
|
+
|
|
43
|
+
if (theme == 'blue') {
|
|
44
|
+
colorsResult = [
|
|
45
|
+
`${prefix}${key}: ${componentDefaultColors[0]};`
|
|
46
|
+
];
|
|
47
|
+
} else if (theme == 'green') {
|
|
48
|
+
colorsResult = [
|
|
49
|
+
`${prefix}${key}: ${componentDefaultColors[1]};`
|
|
50
|
+
];
|
|
51
|
+
} else if (theme == 'orange') {
|
|
52
|
+
colorsResult = [
|
|
53
|
+
`${prefix}${key}: ${componentDefaultColors[2]};`
|
|
54
|
+
];
|
|
55
|
+
} else if (theme == 'red') {
|
|
56
|
+
colorsResult = [
|
|
57
|
+
`${prefix}${key}: ${componentDefaultColors[3]};`
|
|
58
|
+
];
|
|
59
|
+
} else if (theme == 'yellow') {
|
|
60
|
+
colorsResult = [
|
|
61
|
+
`${prefix}${key}: ${componentDefaultColors[4]};`
|
|
62
|
+
];
|
|
63
|
+
}
|
|
64
|
+
exportVariables.push(colorsResult);
|
|
65
|
+
} else if (mode == 'dark') {
|
|
66
|
+
let componentDarkColors = value.dark;
|
|
67
|
+
let colorsResult = '';
|
|
68
|
+
|
|
69
|
+
if (theme == 'blue') {
|
|
70
|
+
colorsResult = [
|
|
71
|
+
`${prefix}${key}: ${componentDarkColors[0]};`
|
|
72
|
+
];
|
|
73
|
+
} else if (theme == 'green') {
|
|
74
|
+
colorsResult = [
|
|
75
|
+
`${prefix}${key}: ${componentDarkColors[1]};`
|
|
76
|
+
];
|
|
77
|
+
} else if (theme == 'orange') {
|
|
78
|
+
colorsResult = [
|
|
79
|
+
`${prefix}${key}: ${componentDarkColors[2]};`
|
|
80
|
+
];
|
|
81
|
+
} else if (theme == 'red') {
|
|
82
|
+
colorsResult = [
|
|
83
|
+
`${prefix}${key}: ${componentDarkColors[3]};`
|
|
84
|
+
];
|
|
85
|
+
} else if (theme == 'yellow') {
|
|
86
|
+
colorsResult = [
|
|
87
|
+
`${prefix}${key}: ${componentDarkColors[4]};`
|
|
88
|
+
];
|
|
89
|
+
}
|
|
90
|
+
exportVariables.push(colorsResult);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
return exportVariables.join('');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let arrayIndexCounter = 0;
|
|
98
|
+
mode.forEach(mode => {
|
|
99
|
+
themes.forEach(theme => {
|
|
100
|
+
let fileString = files[arrayIndexCounter];
|
|
101
|
+
// let splitPath = fileString.split(/\\/g);
|
|
102
|
+
let getMode = mode;
|
|
103
|
+
let getTheme = theme;
|
|
104
|
+
if (theme == 'blue') {
|
|
105
|
+
if (mode == 'default') {
|
|
106
|
+
blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
|
|
107
|
+
} else if (mode == 'dark') {
|
|
108
|
+
blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
blueSelector = '';
|
|
112
|
+
}
|
|
113
|
+
ensureDirectoryExistence(fileString);
|
|
114
|
+
fs.writeFileSync(
|
|
115
|
+
fileString,
|
|
116
|
+
`[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
|
|
117
|
+
getMode,
|
|
118
|
+
getTheme
|
|
119
|
+
)}\n}`
|
|
120
|
+
);
|
|
121
|
+
arrayIndexCounter++;
|
|
122
|
+
});
|
|
123
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
var { ctaThemeVariables } = require('./json/ctaThemeVariableJson');
|
|
2
|
+
var { ensureDirectoryExistence } = require('../../common/pre_utils');
|
|
3
|
+
let fs = require('fs');
|
|
4
|
+
let path = require('path');
|
|
5
|
+
let baseFolder = 'Appearance';
|
|
6
|
+
let mode = ['default', 'dark'];
|
|
7
|
+
let themes = ['blue', 'green', 'orange', 'red', 'yellow'];
|
|
8
|
+
let themeFiles = [];
|
|
9
|
+
let prefix=`\n\t--zdt_cta_`;
|
|
10
|
+
mode.forEach(mode => {
|
|
11
|
+
themes.forEach(theme => {
|
|
12
|
+
let themeFilesString = `../assets/${baseFolder}/${mode}/themes/${theme}/${
|
|
13
|
+
theme + capitalizeFirstLetter(mode)
|
|
14
|
+
}CTATheme.module.css`;
|
|
15
|
+
themeFiles.push(path.join(__dirname, themeFilesString));
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
let files = themeFiles;
|
|
19
|
+
|
|
20
|
+
function capitalizeFirstLetter(string) {
|
|
21
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function generate(mode, theme) {
|
|
25
|
+
let exportVariables = [];
|
|
26
|
+
|
|
27
|
+
ctaThemeVariables.forEach((element) => {
|
|
28
|
+
Object.entries(element).map(([key, value]) => {
|
|
29
|
+
if (mode == 'default') {
|
|
30
|
+
let ctaDefaultColors = value.light;
|
|
31
|
+
let colorsResult = '';
|
|
32
|
+
if (theme == 'blue') {
|
|
33
|
+
colorsResult = [
|
|
34
|
+
`${prefix}${key}: ${ctaDefaultColors[0]}`
|
|
35
|
+
];
|
|
36
|
+
} else if (theme == 'green') {
|
|
37
|
+
colorsResult = [
|
|
38
|
+
`${prefix}${key}: ${ctaDefaultColors[1]}`
|
|
39
|
+
];
|
|
40
|
+
} else if (theme == 'orange') {
|
|
41
|
+
colorsResult = [
|
|
42
|
+
`${prefix}${key}: ${ctaDefaultColors[2]}`
|
|
43
|
+
];
|
|
44
|
+
} else if (theme == 'red') {
|
|
45
|
+
colorsResult = [
|
|
46
|
+
`${prefix}${key}: ${ctaDefaultColors[3]}`
|
|
47
|
+
];
|
|
48
|
+
} else if (theme == 'yellow') {
|
|
49
|
+
colorsResult = [
|
|
50
|
+
`${prefix}${key}: ${ctaDefaultColors[4]}`
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
exportVariables.push(colorsResult);
|
|
54
|
+
} else if (mode == 'dark') {
|
|
55
|
+
let ctaDarkColors = value.dark;
|
|
56
|
+
let colorsResult = '';
|
|
57
|
+
if (theme == 'blue') {
|
|
58
|
+
colorsResult = [`${prefix}${key}: ${ctaDarkColors[0]}`];
|
|
59
|
+
} else if (theme == 'green') {
|
|
60
|
+
colorsResult = [`${prefix}${key}: ${ctaDarkColors[1]}`];
|
|
61
|
+
} else if (theme == 'orange') {
|
|
62
|
+
colorsResult = [`${prefix}${key}: ${ctaDarkColors[2]}`];
|
|
63
|
+
} else if (theme == 'red') {
|
|
64
|
+
colorsResult = [`${prefix}${key}: ${ctaDarkColors[3]}`];
|
|
65
|
+
} else if (theme == 'yellow') {
|
|
66
|
+
colorsResult = [`${prefix}${key}: ${ctaDarkColors[4]}`];
|
|
67
|
+
}
|
|
68
|
+
exportVariables.push(colorsResult);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return exportVariables.join(';');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let arrayIndexCounter = 0;
|
|
76
|
+
mode.forEach(mode => {
|
|
77
|
+
themes.forEach(theme => {
|
|
78
|
+
let fileString = files[arrayIndexCounter];
|
|
79
|
+
// let splitPath = fileString.split(/\\/g);
|
|
80
|
+
let getMode = mode;
|
|
81
|
+
let getTheme = theme;
|
|
82
|
+
if (theme == 'blue') {
|
|
83
|
+
if (mode == 'default') {
|
|
84
|
+
blueSelector = ', :global(.blueDefaultTheme) [data-desk-theme="blue"]';
|
|
85
|
+
} else if (mode == 'dark') {
|
|
86
|
+
blueSelector = ', :global(.blueDarkTheme) [data-desk-theme="blue"]';
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
blueSelector = '';
|
|
90
|
+
}
|
|
91
|
+
ensureDirectoryExistence(fileString);
|
|
92
|
+
fs.writeFileSync(
|
|
93
|
+
fileString,
|
|
94
|
+
`[data-mode='${getMode}'][data-theme='${getTheme}']${blueSelector} {${generate(
|
|
95
|
+
getMode,
|
|
96
|
+
getTheme
|
|
97
|
+
)}\n}`
|
|
98
|
+
);
|
|
99
|
+
arrayIndexCounter++;
|
|
100
|
+
});
|
|
101
|
+
});
|