@zohodesk/components 1.0.0-alpha-236 → 1.0.0-alpha-239

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.
Files changed (267) hide show
  1. package/README.md +19 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
  3. package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
  4. package/assets/Appearance/default/mode/defaultMode.module.css +1 -1
  5. package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
  6. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +358 -0
  7. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
  8. package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
  9. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
  10. package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
  11. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
  12. package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
  13. package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
  14. package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
  15. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
  16. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
  17. package/docs/external/active-line.js +72 -0
  18. package/docs/external/autorefresh.js +47 -0
  19. package/docs/external/codemirror.js +9681 -0
  20. package/docs/external/css/hopscotch.css +576 -0
  21. package/docs/external/css/styleGuide.css +1100 -0
  22. package/docs/external/css.js +466 -0
  23. package/docs/external/designTokens.js +1 -0
  24. package/docs/external/foldcode.js +152 -0
  25. package/docs/external/format.js +129 -0
  26. package/docs/external/htmlmixed.js +84 -0
  27. package/docs/external/images/bottom.png +0 -0
  28. package/docs/external/images/bottombg.jpg +0 -0
  29. package/docs/external/images/desk.png +0 -0
  30. package/docs/external/images/desklogo.png +0 -0
  31. package/docs/external/images/menu.png +0 -0
  32. package/docs/external/index.html +127 -0
  33. package/docs/external/javascript.js +422 -0
  34. package/docs/external/jsx.js +148 -0
  35. package/docs/external/matchbrackets.js +145 -0
  36. package/docs/external/xml.js +322 -0
  37. package/docs/package.json +41 -0
  38. package/docs/src/index.js +1311 -0
  39. package/es/Accordion/docs/Accordion__Demo.docs.js +80 -0
  40. package/es/Animation/docs/Animation__default.docs.js +34 -0
  41. package/es/Animation/docs/Animation__fadeIn.docs.js +34 -0
  42. package/es/Animation/docs/Animation__scaleIn.docs.js +34 -0
  43. package/es/Animation/docs/Animation__skewIn.docs.js +34 -0
  44. package/es/Animation/docs/Animation__slideDown.docs.js +34 -0
  45. package/es/Animation/docs/Animation__slideLeft.docs.js +34 -0
  46. package/es/Animation/docs/Animation__zoomIn.docs.js +34 -0
  47. package/es/AppContainer/AppContainer.js +6 -1
  48. package/es/AppContainer/docs/AppContainer__default.docs.js +20 -0
  49. package/es/Avatar/docs/Avatar__custom.docs.js +29 -0
  50. package/es/Avatar/docs/Avatar__default.docs.js +29 -0
  51. package/es/Avatar/docs/Avatar__palette.docs.js +49 -0
  52. package/es/Avatar/docs/Avatar__text.docs.js +28 -0
  53. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +73 -0
  54. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +31 -0
  55. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +50 -0
  56. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +49 -0
  57. package/es/Button/docs/Button__custom.docs.js +771 -0
  58. package/es/Button/docs/Button__default.docs.js +536 -0
  59. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +37 -0
  60. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +33 -0
  61. package/es/Buttongroup/docs/Buttongroup__header.docs.js +42 -0
  62. package/es/Card/docs/Card__Custom.docs.js +34 -0
  63. package/es/Card/docs/Card__Default.docs.js +37 -0
  64. package/es/Card/docs/Card__Scroll.docs.js +59 -0
  65. package/es/CheckBox/CheckBox.js +2 -1
  66. package/es/CheckBox/docs/CheckBox__custom.docs.js +293 -0
  67. package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
  68. package/es/DateTime/DateTime.js +8 -2
  69. package/es/DateTime/DateWidget.js +10 -2
  70. package/es/DateTime/docs/DateTime__default.docs.js +91 -0
  71. package/es/DateTime/docs/DateWidget__default.docs.js +183 -0
  72. package/es/DateTime/docs/timezonedata.json +1 -0
  73. package/es/DropBox/docs/DropBox__custom.docs.js +66 -0
  74. package/es/DropBox/docs/DropBox__customOrder.docs.js +92 -0
  75. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +91 -0
  76. package/es/DropBox/docs/DropBox__position.docs.js +87 -0
  77. package/es/DropBox/docs/DropBox__size.docs.js +61 -0
  78. package/es/DropDown/docs/DropDownHeading__custom.docs.js +23 -0
  79. package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
  80. package/es/Label/docs/Label__clipped.docs.js +27 -0
  81. package/es/Label/docs/Label__custom.docs.js +30 -0
  82. package/es/Label/docs/Label__palette.docs.js +42 -0
  83. package/es/Label/docs/Label__size.docs.js +29 -0
  84. package/es/Label/docs/Label__type.docs.js +37 -0
  85. package/es/Layout/docs/Layout__Hidden.docs.js +77 -0
  86. package/es/Layout/docs/Layout__default.docs.js +49 -0
  87. package/es/Layout/docs/Layout__four_Column.docs.js +85 -0
  88. package/es/Layout/docs/Layout__three_Column.docs.js +76 -0
  89. package/es/Layout/docs/Layout__two_Column.docs.js +69 -0
  90. package/es/LightNightMode/docs/AlternativeColors.docs.js +74 -0
  91. package/es/ListItem/ListItem.module.css +1 -1
  92. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +155 -0
  93. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +112 -0
  94. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +91 -0
  95. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +65 -0
  96. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +68 -0
  97. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +62 -0
  98. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +91 -0
  99. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +65 -0
  100. package/es/ListItem/docs/ListItem__custom.docs.js +114 -0
  101. package/es/ListItem/docs/ListItem__default.docs.js +82 -0
  102. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +125 -0
  103. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +114 -0
  104. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +141 -0
  105. package/es/MultiSelect/docs/MultiSelect__default.docs.js +161 -0
  106. package/es/PopOver/docs/PopOver__default.docs.js +32 -0
  107. package/es/Provider/Config.js +1 -2
  108. package/es/Provider/docs/Provider_Id__Class.docs.js +29 -0
  109. package/es/Provider/docs/Provider_Id__Function.docs.js +18 -0
  110. package/es/Provider/docs/Provider_Zindex__Class.docs.js +32 -0
  111. package/es/Provider/docs/Provider_Zindex__Function.docs.js +23 -0
  112. package/es/Provider.js +72 -35
  113. package/es/Radio/docs/Radio__custom.docs.js +245 -0
  114. package/es/Radio/docs/Radio__default.docs.js +169 -0
  115. package/es/Responsive/Responsive.js +1 -0
  116. package/es/Responsive/docs/Responsive__Custom.docs.js +206 -0
  117. package/es/Responsive/docs/Responsive__default.docs.js +97 -0
  118. package/es/Responsive/docs/style.module.css +56 -0
  119. package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
  120. package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
  121. package/es/RippleEffect/docs/RippleEffect__default.docs.js +435 -0
  122. package/es/Select/SelectWithIcon.js +1 -0
  123. package/es/Select/docs/GroupSelect__default.docs.js +149 -0
  124. package/es/Select/docs/SelectWithAvatar__default.docs.js +97 -0
  125. package/es/Select/docs/SelectWithIcon__default.docs.js +138 -0
  126. package/es/Select/docs/Select__default.docs.js +288 -0
  127. package/es/Stencils/docs/Stencils__custom.docs.js +45 -0
  128. package/es/Stencils/docs/Stencils__default.docs.js +50 -0
  129. package/es/Switch/docs/Switch__custom.docs.js +153 -0
  130. package/es/Switch/docs/Switch__default.docs.js +107 -0
  131. package/es/Tab/docs/Tab__default.docs.js +258 -0
  132. package/es/Tab/docs/tabdocs.module.css +29 -0
  133. package/es/Tag/docs/Tag__custom.docs.js +368 -0
  134. package/es/Tag/docs/Tag__default.docs.js +323 -0
  135. package/es/TextBox/docs/TextBox__custom.docs.js +43 -0
  136. package/es/TextBox/docs/TextBox__default.docs.js +40 -0
  137. package/es/TextBox/docs/TextBox__size.docs.js +38 -0
  138. package/es/TextBox/docs/TextBox__variant.docs.js +38 -0
  139. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +89 -0
  140. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
  141. package/es/Textarea/docs/Textarea__animated.docs.js +41 -0
  142. package/es/Textarea/docs/Textarea__custom.docs.js +82 -0
  143. package/es/Textarea/docs/Textarea__default.docs.js +76 -0
  144. package/es/Textarea/docs/Textarea__disabled.docs.js +29 -0
  145. package/es/Tooltip/Tooltip.js +40 -2
  146. package/es/Tooltip/docs/Tooltip__default.docs.js +371 -0
  147. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +97 -0
  148. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +150 -0
  149. package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +139 -0
  150. package/es/beta/FocusRing/docs/FocusRing__default.docs.js +48 -0
  151. package/es/common/docStyle.module.css +6 -2
  152. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +72 -0
  153. package/es/semantic/Button/docs/Button__default.docs.js +20 -0
  154. package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
  155. package/lib/Animation/docs/Animation__default.docs.js +85 -0
  156. package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
  157. package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
  158. package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
  159. package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
  160. package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
  161. package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
  162. package/lib/AppContainer/AppContainer.js +7 -0
  163. package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
  164. package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
  165. package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
  166. package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
  167. package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
  168. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
  169. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
  170. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
  171. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
  172. package/lib/Button/docs/Button__custom.docs.js +826 -0
  173. package/lib/Button/docs/Button__default.docs.js +590 -0
  174. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
  175. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
  176. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
  177. package/lib/Card/docs/Card__Custom.docs.js +90 -0
  178. package/lib/Card/docs/Card__Default.docs.js +92 -0
  179. package/lib/Card/docs/Card__Scroll.docs.js +114 -0
  180. package/lib/CheckBox/CheckBox.js +2 -1
  181. package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
  182. package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
  183. package/lib/DateTime/DateTime.js +8 -2
  184. package/lib/DateTime/DateWidget.js +10 -2
  185. package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
  186. package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
  187. package/lib/DateTime/docs/timezonedata.json +1 -0
  188. package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
  189. package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
  190. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
  191. package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
  192. package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
  193. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
  194. package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
  195. package/lib/Label/docs/Label__clipped.docs.js +81 -0
  196. package/lib/Label/docs/Label__custom.docs.js +85 -0
  197. package/lib/Label/docs/Label__palette.docs.js +96 -0
  198. package/lib/Label/docs/Label__size.docs.js +83 -0
  199. package/lib/Label/docs/Label__type.docs.js +91 -0
  200. package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
  201. package/lib/Layout/docs/Layout__default.docs.js +98 -0
  202. package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
  203. package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
  204. package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
  205. package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
  206. package/lib/ListItem/ListItem.module.css +1 -1
  207. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
  208. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
  209. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
  210. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
  211. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
  212. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
  213. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
  214. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
  215. package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
  216. package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
  217. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
  218. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +165 -0
  219. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
  220. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
  221. package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
  222. package/lib/Provider/Config.js +1 -2
  223. package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
  224. package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
  225. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
  226. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
  227. package/lib/Provider.js +88 -37
  228. package/lib/Radio/docs/Radio__custom.docs.js +299 -0
  229. package/lib/Radio/docs/Radio__default.docs.js +222 -0
  230. package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
  231. package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
  232. package/lib/Responsive/docs/style.module.css +56 -0
  233. package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
  234. package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
  235. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
  236. package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
  237. package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
  238. package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
  239. package/lib/Select/docs/Select__default.docs.js +340 -0
  240. package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
  241. package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
  242. package/lib/Switch/docs/Switch__custom.docs.js +203 -0
  243. package/lib/Switch/docs/Switch__default.docs.js +156 -0
  244. package/lib/Tab/docs/Tab__default.docs.js +308 -0
  245. package/lib/Tab/docs/tabdocs.module.css +29 -0
  246. package/lib/Tag/docs/Tag__custom.docs.js +423 -0
  247. package/lib/Tag/docs/Tag__default.docs.js +377 -0
  248. package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
  249. package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
  250. package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
  251. package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
  252. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
  253. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
  254. package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
  255. package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
  256. package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
  257. package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
  258. package/lib/Tooltip/Tooltip.js +47 -2
  259. package/lib/Tooltip/docs/Tooltip__default.docs.js +430 -0
  260. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
  261. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
  262. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
  263. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
  264. package/lib/common/docStyle.module.css +6 -2
  265. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
  266. package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
  267. package/package.json +7 -6
package/lib/Provider.js CHANGED
@@ -13,8 +13,6 @@ var _AppContainer = _interopRequireDefault(require("./AppContainer/AppContainer"
13
13
 
14
14
  var _Layout = require("./Layout");
15
15
 
16
- var _Switch = _interopRequireDefault(require("./Switch/Switch"));
17
-
18
16
  require("../assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css");
19
17
 
20
18
  require("../assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css");
@@ -59,6 +57,28 @@ require("../assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module
59
57
 
60
58
  require("../assets/Appearance/dark/mode/darkMode.module.css");
61
59
 
60
+ require("../assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css");
61
+
62
+ require("../assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css");
63
+
64
+ require("../assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css");
65
+
66
+ require("../assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css");
67
+
68
+ require("../assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css");
69
+
70
+ require("../assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css");
71
+
72
+ require("../assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css");
73
+
74
+ require("../assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css");
75
+
76
+ require("../assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css");
77
+
78
+ require("../assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css");
79
+
80
+ require("../assets/Appearance/pureDark/mode/pureDarkMode.module.css");
81
+
62
82
  var _LibraryContextInit = _interopRequireDefault(require("./Provider/LibraryContextInit"));
63
83
 
64
84
  var _IdProvider = require("./Provider/IdProvider");
@@ -101,25 +121,16 @@ var Provider = /*#__PURE__*/function (_React$Component) {
101
121
  appearanceName: 'default',
102
122
  themeName: 'blue'
103
123
  };
104
- _this.switchMode = _this.switchMode.bind(_assertThisInitialized(_this));
105
124
  _this.setTheme = _this.setTheme.bind(_assertThisInitialized(_this));
106
125
  return _this;
107
126
  }
108
127
 
109
128
  _createClass(Provider, [{
110
- key: "switchMode",
111
- value: function switchMode() {
112
- var appearanceName = this.state.appearanceName;
113
-
114
- if (appearanceName == 'default') {
115
- this.setState({
116
- appearanceName: 'dark'
117
- });
118
- } else {
119
- this.setState({
120
- appearanceName: 'default'
121
- });
122
- }
129
+ key: "setAppearance",
130
+ value: function setAppearance(mode) {
131
+ this.setState({
132
+ appearanceName: mode
133
+ });
123
134
  }
124
135
  }, {
125
136
  key: "setTheme",
@@ -158,6 +169,29 @@ var Provider = /*#__PURE__*/function (_React$Component) {
158
169
  var yellow = {
159
170
  backgroundColor: '#e8b923'
160
171
  };
172
+ var light = {
173
+ backgroundColor: '#fff'
174
+ };
175
+ var night = {
176
+ backgroundColor: '#232b38'
177
+ };
178
+ var dark = {
179
+ backgroundColor: '#212121'
180
+ };
181
+ var fixedPosition = {
182
+ position: 'fixed',
183
+ bottom: '0',
184
+ backgroundColor: '#272727',
185
+ padding: '10px',
186
+ borderRadius: '15px 15px 0 0',
187
+ minWidth: '100px',
188
+ textAlign: 'center',
189
+ boxShadow: '0 0 3px #000',
190
+ fontSize: '12px',
191
+ zIndex: '3',
192
+ display: 'flex',
193
+ alignItems: 'center'
194
+ };
161
195
  return /*#__PURE__*/_react["default"].createElement(_LibraryContextInit["default"].Provider, {
162
196
  value: {
163
197
  isReducedMotion: false,
@@ -173,29 +207,46 @@ var Provider = /*#__PURE__*/function (_React$Component) {
173
207
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
174
208
  scroll: "vertical"
175
209
  }, this.props.children), /*#__PURE__*/_react["default"].createElement("div", {
210
+ style: Object.assign({}, fixedPosition, {
211
+ left: '20%',
212
+ transform: 'translate(-20%)'
213
+ })
214
+ }, /*#__PURE__*/_react["default"].createElement("div", {
215
+ style: {
216
+ color: '#fff'
217
+ }
218
+ }, "Appearance:"), /*#__PURE__*/_react["default"].createElement("div", {
219
+ style: {
220
+ display: 'flex'
221
+ }
222
+ }, /*#__PURE__*/_react["default"].createElement("span", {
223
+ title: "Light Mode",
224
+ style: Object.assign({}, themeClass, light),
225
+ onClick: function onClick() {
226
+ return _this2.setAppearance('default');
227
+ }
228
+ }), /*#__PURE__*/_react["default"].createElement("span", {
229
+ title: "Night Mode",
230
+ style: Object.assign({}, themeClass, night),
231
+ onClick: function onClick() {
232
+ return _this2.setAppearance('dark');
233
+ }
234
+ }), /*#__PURE__*/_react["default"].createElement("span", {
235
+ title: "Dark Mode",
236
+ style: Object.assign({}, themeClass, dark),
237
+ onClick: function onClick() {
238
+ return _this2.setAppearance('pureDark');
239
+ }
240
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
241
+ style: Object.assign({}, fixedPosition, {
242
+ left: '80%',
243
+ transform: 'translate(-80%)'
244
+ })
245
+ }, /*#__PURE__*/_react["default"].createElement("div", {
176
246
  style: {
177
- position: 'fixed',
178
- bottom: '0',
179
- backgroundColor: '#272727',
180
- padding: '10px',
181
- borderRadius: '15px 15px 0 0',
182
- minWidth: '100px',
183
- textAlign: 'center',
184
- left: '50%',
185
- transform: 'translate(-50%)',
186
- boxShadow: '0 0 3px #000',
187
- fontSize: '12px',
188
- zIndex: '3',
189
- display: 'flex',
190
- alignItems: 'center'
247
+ color: '#fff'
191
248
  }
192
- }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
193
- id: "switchMode",
194
- text: "Light/Night Mode",
195
- labelSize: "small",
196
- onChange: this.switchMode,
197
- checked: appearanceName == 'dark'
198
- })), /*#__PURE__*/_react["default"].createElement("div", {
249
+ }, "Themes:"), /*#__PURE__*/_react["default"].createElement("div", {
199
250
  style: {
200
251
  display: 'flex'
201
252
  }
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+
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
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _Radio = _interopRequireDefault(require("../Radio"));
13
+
14
+ var _docStyleModule = _interopRequireDefault(require("../../common/docStyle.module.css"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ 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; }
21
+
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+
24
+ 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); } }
25
+
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
+
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
+
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
+
32
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
+
34
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
35
+
36
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
+
38
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
+
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
+
42
+ var Radio__custom = /*#__PURE__*/function (_Component) {
43
+ _inherits(Radio__custom, _Component);
44
+
45
+ var _super = _createSuper(Radio__custom);
46
+
47
+ function Radio__custom(props) {
48
+ var _this;
49
+
50
+ _classCallCheck(this, Radio__custom);
51
+
52
+ _this = _super.call(this, props);
53
+ _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
54
+ _this.state = {
55
+ checked: false
56
+ };
57
+ return _this;
58
+ }
59
+
60
+ _createClass(Radio__custom, [{
61
+ key: "onChange",
62
+ value: function onChange() {
63
+ this.setState({
64
+ checked: !this.state.checked
65
+ });
66
+ }
67
+ }, {
68
+ key: "render",
69
+ value: function render() {
70
+ var style = {
71
+ margin: '10px'
72
+ },
73
+ titleStyle = {
74
+ fontSize: '13px',
75
+ padding: '15px 0',
76
+ textTransform: 'upperCase',
77
+ borderTop: '1px solid #e3e6eb'
78
+ },
79
+ spanStyle = {
80
+ display: 'inline-block',
81
+ margin: '10px 10px 10px 0'
82
+ };
83
+ return /*#__PURE__*/_react["default"].createElement("div", {
84
+ style: style
85
+ }, /*#__PURE__*/_react["default"].createElement("div", {
86
+ style: {
87
+ margin: '10px 0'
88
+ }
89
+ }, /*#__PURE__*/_react["default"].createElement("div", {
90
+ style: {
91
+ marginBottom: '10px'
92
+ }
93
+ }, /*#__PURE__*/_react["default"].createElement("div", {
94
+ style: titleStyle
95
+ }, "Default Radio Button"), /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
96
+ customClass: {
97
+ customRadio: _docStyleModule["default"].radio,
98
+ customRadioWrap: _docStyleModule["default"].radioWrap,
99
+ customLabel: _docStyleModule["default"].customLbl
100
+ },
101
+ onChange: this.onChange,
102
+ checked: this.state.checked
103
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
104
+ style: {
105
+ marginBottom: '10px'
106
+ }
107
+ }, /*#__PURE__*/_react["default"].createElement("div", {
108
+ style: titleStyle
109
+ }, "Disabled Type Radio Button"), /*#__PURE__*/_react["default"].createElement("span", {
110
+ style: {
111
+ marginRight: '10px'
112
+ }
113
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
114
+ customClass: {
115
+ customRadio: _docStyleModule["default"].radioDisabled,
116
+ customRadioWrap: _docStyleModule["default"].radioWrap,
117
+ customLabel: _docStyleModule["default"].customLbl
118
+ },
119
+ checked: true,
120
+ disabled: true
121
+ })), /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
122
+ customClass: {
123
+ customRadio: _docStyleModule["default"].radioDisabled,
124
+ customRadioWrap: _docStyleModule["default"].radioWrap,
125
+ customLabel: _docStyleModule["default"].customLbl
126
+ },
127
+ disabled: true
128
+ }))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
129
+ style: titleStyle
130
+ }, "Label With Radio Button"), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
131
+ style: spanStyle
132
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
133
+ customClass: {
134
+ customRadio: _docStyleModule["default"].radio,
135
+ customRadioWrap: _docStyleModule["default"].radioWrap,
136
+ customLabel: _docStyleModule["default"].customLbl
137
+ },
138
+ id: "text1",
139
+ value: "1",
140
+ name: "category",
141
+ text: "Check With Label"
142
+ })), /*#__PURE__*/_react["default"].createElement("span", {
143
+ style: spanStyle
144
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
145
+ customClass: {
146
+ customRadio: _docStyleModule["default"].radio,
147
+ customRadioWrap: _docStyleModule["default"].radioWrap,
148
+ customLabel: _docStyleModule["default"].customLbl
149
+ },
150
+ id: "test2",
151
+ checked: true,
152
+ active: true,
153
+ value: "2",
154
+ name: "category",
155
+ text: "Checked Active With Label"
156
+ })), /*#__PURE__*/_react["default"].createElement("span", {
157
+ style: spanStyle
158
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
159
+ customClass: {
160
+ customRadio: _docStyleModule["default"].radioDisabled,
161
+ customRadioWrap: _docStyleModule["default"].radioWrap,
162
+ customLabel: _docStyleModule["default"].disabledLabel
163
+ },
164
+ id: "text3",
165
+ value: "1",
166
+ name: "name",
167
+ checked: true,
168
+ disabled: true,
169
+ text: "Disabled With Label"
170
+ })), /*#__PURE__*/_react["default"].createElement("span", {
171
+ style: spanStyle
172
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
173
+ customClass: {
174
+ customRadio: _docStyleModule["default"].radio,
175
+ customRadioWrap: _docStyleModule["default"].radioWrap,
176
+ customLabel: _docStyleModule["default"].customLbl
177
+ },
178
+ id: "test4",
179
+ value: "2",
180
+ name: "name",
181
+ isReadOnly: true,
182
+ text: "ReadOnly With Label"
183
+ }))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
184
+ style: spanStyle
185
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
186
+ customClass: {
187
+ customRadio: _docStyleModule["default"].radio,
188
+ customRadioWrap: _docStyleModule["default"].radioWrap,
189
+ customLabel: _docStyleModule["default"].customLbl
190
+ },
191
+ id: "text1",
192
+ value: "1",
193
+ name: "category",
194
+ text: "Check With Label",
195
+ palette: "danger"
196
+ })), /*#__PURE__*/_react["default"].createElement("span", {
197
+ style: spanStyle
198
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
199
+ customClass: {
200
+ customRadio: _docStyleModule["default"].radio,
201
+ customRadioWrap: _docStyleModule["default"].radioWrap,
202
+ customLabel: _docStyleModule["default"].customLbl
203
+ },
204
+ id: "test2",
205
+ checked: true,
206
+ active: true,
207
+ value: "2",
208
+ name: "category",
209
+ palette: "danger",
210
+ text: "Checked Active With Label"
211
+ })), /*#__PURE__*/_react["default"].createElement("span", {
212
+ style: spanStyle
213
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
214
+ customClass: {
215
+ customRadio: _docStyleModule["default"].radioDisabled,
216
+ customRadioWrap: _docStyleModule["default"].radioWrap,
217
+ customLabel: _docStyleModule["default"].disabledLabel
218
+ },
219
+ id: "text3",
220
+ value: "1",
221
+ name: "name",
222
+ checked: true,
223
+ disabled: true,
224
+ palette: "danger",
225
+ text: "Disabled With Label"
226
+ })), /*#__PURE__*/_react["default"].createElement("span", {
227
+ style: spanStyle
228
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
229
+ customClass: {
230
+ customRadio: _docStyleModule["default"].radio,
231
+ customRadioWrap: _docStyleModule["default"].radioWrap,
232
+ customLabel: _docStyleModule["default"].customLbl
233
+ },
234
+ id: "test4",
235
+ value: "2",
236
+ name: "name",
237
+ isReadOnly: true,
238
+ palette: "danger",
239
+ text: "ReadOnly With Label"
240
+ })))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
241
+ style: titleStyle
242
+ }, "Size"), /*#__PURE__*/_react["default"].createElement("span", {
243
+ style: spanStyle
244
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
245
+ customClass: {
246
+ customRadio: _docStyleModule["default"].radio,
247
+ customRadioWrap: _docStyleModule["default"].radioWrap,
248
+ customLabel: _docStyleModule["default"].customLbl
249
+ },
250
+ checked: true,
251
+ size: "small"
252
+ })), /*#__PURE__*/_react["default"].createElement("span", {
253
+ style: spanStyle
254
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
255
+ customClass: {
256
+ customRadio: _docStyleModule["default"].radio,
257
+ customRadioWrap: _docStyleModule["default"].radioWrap,
258
+ customLabel: _docStyleModule["default"].customLbl
259
+ },
260
+ checked: true
261
+ }))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
262
+ style: titleStyle
263
+ }, "Palette"), /*#__PURE__*/_react["default"].createElement("span", {
264
+ style: spanStyle
265
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
266
+ customClass: {
267
+ customRadio: _docStyleModule["default"].radio,
268
+ customRadioWrap: _docStyleModule["default"].radioWrap,
269
+ customLabel: _docStyleModule["default"].customLbl
270
+ },
271
+ checked: true,
272
+ text: "Primary"
273
+ })), /*#__PURE__*/_react["default"].createElement("span", {
274
+ style: spanStyle
275
+ }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
276
+ customClass: {
277
+ customRadio: _docStyleModule["default"].radio,
278
+ customRadioWrap: _docStyleModule["default"].radioWrap,
279
+ customLabel: _docStyleModule["default"].customLbl
280
+ },
281
+ checked: true,
282
+ palette: "danger",
283
+ text: "Danger"
284
+ }))));
285
+ }
286
+ }]);
287
+
288
+ return Radio__custom;
289
+ }(_react.Component);
290
+
291
+ exports["default"] = Radio__custom;
292
+
293
+ if (false) {
294
+ Radio__custom.docs = {
295
+ componentGroup: 'Form Elements',
296
+ folderName: 'Style Guide',
297
+ description: ' '
298
+ };
299
+ }