@zohodesk/icons 1.0.0-exp.4 → 1.0.0-temp6

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 (68) hide show
  1. package/README.md +339 -239
  2. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviBold.woff +0 -0
  3. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviBold.woff2 +0 -0
  4. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviExtrabold.woff +0 -0
  5. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviExtrabold.woff2 +0 -0
  6. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviLight.woff +0 -0
  7. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviLight.woff2 +0 -0
  8. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviMedium.woff +0 -0
  9. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviMedium.woff2 +0 -0
  10. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviRegular.woff +0 -0
  11. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviRegular.woff2 +0 -0
  12. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviSemibold.woff +0 -0
  13. package/assets/fonts/webfonts/ZohoPuvi/ZohoPuviSemibold.woff2 +0 -0
  14. package/assets/fonts/zd-common.svg +1 -0
  15. package/assets/fonts/zd-common.woff +0 -0
  16. package/assets/fonts/zd-common.woff2 +0 -0
  17. package/assets/fonts/zd-community.svg +1 -0
  18. package/assets/fonts/zd-community.woff +0 -0
  19. package/assets/fonts/zd-community.woff2 +0 -0
  20. package/assets/fonts/zd-gcFonts.svg +37 -0
  21. package/assets/fonts/zd-gcFonts.woff +0 -0
  22. package/assets/fonts/zd-gcFonts.woff2 +0 -0
  23. package/assets/fonts/zd-rCustomize.svg +1 -0
  24. package/assets/fonts/zd-rCustomize.woff +0 -0
  25. package/assets/fonts/zd-rCustomize.woff2 +0 -0
  26. package/assets/fonts/zd-rGeneral.svg +27 -8
  27. package/assets/fonts/zd-rGeneral.woff +0 -0
  28. package/assets/fonts/zd-rGeneral.woff2 +0 -0
  29. package/assets/fonts/zd-rTickets.svg +52 -49
  30. package/assets/fonts/zd-rTickets.woff +0 -0
  31. package/assets/fonts/zd-rTickets.woff2 +0 -0
  32. package/assets/fonts/zd-rTopband.svg +1 -0
  33. package/assets/fonts/zd-rTopband.woff +0 -0
  34. package/assets/fonts/zd-rTopband.woff2 +0 -0
  35. package/assets/fonts/zd-rTwotone.svg +9 -2
  36. package/assets/fonts/zd-rTwotone.woff +0 -0
  37. package/assets/fonts/zd-rTwotone.woff2 +0 -0
  38. package/assets/fonts/zd-social.woff +0 -0
  39. package/assets/fonts/zd-social.woff2 +0 -0
  40. package/assets/fonts/zd-tickets.svg +9 -0
  41. package/assets/fonts/zd-tickets.woff +0 -0
  42. package/assets/fonts/zd-tickets.woff2 +0 -0
  43. package/assets/react/zd-font-rCustomize.module.css +4 -1
  44. package/assets/react/zd-font-rGeneral.module.css +86 -9
  45. package/assets/react/zd-font-rTickets.module.css +64 -51
  46. package/assets/react/zd-font-rTopband.module.css +4 -1
  47. package/assets/react/zd-font-rTwotone.module.css +37 -4
  48. package/assets/react/zd-font-react-common.module.css +4 -1
  49. package/assets/react/zd-font-react-common.plain.css +4 -1
  50. package/assets/react/zd-font-react-community.module.css +4 -1
  51. package/assets/react/zd-font-react-gcFonts.module.css +171 -1
  52. package/assets/react/zd-font-react-tickets.module.css +41 -1
  53. package/assets/react/zd-font-react-tickets.plain.css +41 -1
  54. package/es/Icon/CustomIcons.js +4 -1
  55. package/es/Icon/FontFactory.js +51 -14
  56. package/es/Icon/Icon.module.css +43 -43
  57. package/es/common/IcondocStyle.module.css +22 -22
  58. package/lib/Icon/CustomIcons.js +1 -1
  59. package/lib/Icon/FontFactory.js +29 -13
  60. package/lib/Icon/FontIcon.js +5 -5
  61. package/lib/Icon/Icon.module.css +43 -43
  62. package/lib/Icon/asyncComponent.js +5 -5
  63. package/lib/Icon/index.js +1 -1
  64. package/lib/common/IcondocStyle.module.css +22 -22
  65. package/lib/index.js +10 -10
  66. package/package.json +107 -58
  67. package/es/Icon/docs/Icon__default.docs.js +0 -35
  68. package/lib/Icon/docs/Icon__default.docs.js +0 -88
package/package.json CHANGED
@@ -1,58 +1,107 @@
1
- {
2
- "name": "@zohodesk/icons",
3
- "umdVar": "Icons",
4
- "version": "1.0.0-exp.4",
5
- "private": false,
6
- "description": "",
7
- "main": "lib/index",
8
- "module": "es/index.js",
9
- "jsnext:main": "es/index.js",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/vimalceg/fz-dnd.git"
13
- },
14
- "author": "",
15
- "license": "ISC",
16
- "bugs": {
17
- "url": "https://github.com/vimalceg/fz-dnd/issues"
18
- },
19
- "homepage": "https://github.com/vimalceg/fz-dnd#readme",
20
- "scripts": {
21
- "clean": "react-cli clean lib es coverage assets",
22
- "build": "react-cli build:component:cmjs",
23
- "build:dev": "npm run build --module:mode=dev -- -w",
24
- "build:es": "react-cli build:library:es",
25
- "prepare": "npm run init && npm run build && npm run build:es",
26
- "init": "npm run clean && cd ../assets && npm run iconsassets",
27
- "lint": "react-cli lint",
28
- "docs": "react-cli docs",
29
- "postpublish": "react-cli postpublish",
30
- "download": "rm package-lock.json && rm -rf node_modules/ && npm install"
31
- },
32
- "tags": [
33
- "react",
34
- "redux"
35
- ],
36
- "keywords": [
37
- "react",
38
- "redux",
39
- "router"
40
- ],
41
- "dependencies": {},
42
- "devDependencies": {
43
- "@zohodesk/variables": "1.0.0-beta.21"
44
- },
45
- "peerDependencies": {
46
- "@zohodesk/variables": "1.0.0-beta.21"
47
- },
48
- "react-cli": {
49
- "docs": {
50
- "cssUniqueness": "false"
51
- },
52
- "app": {
53
- "removePropTypes": {
54
- "removeImport": true
55
- }
56
- }
57
- }
58
- }
1
+ {
2
+ "name": "@zohodesk/icons",
3
+ "umdVar": "Icons",
4
+ "version": "1.0.0-temp6",
5
+ "private": false,
6
+ "description": "",
7
+ "main": "lib/index",
8
+ "module": "es/index.js",
9
+ "jsnext:main": "es/index.js",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/vimalceg/fz-dnd.git"
13
+ },
14
+ "author": "",
15
+ "license": "ISC",
16
+ "bugs": {
17
+ "url": "https://github.com/vimalceg/fz-dnd/issues"
18
+ },
19
+ "homepage": "https://github.com/vimalceg/fz-dnd#readme",
20
+ "scripts": {
21
+ "clean": "react-cli clean lib es coverage assets",
22
+ "build": "react-cli build:component:cmjs ",
23
+ "build:dev": "npm run build:es --module:mode=dev -- -w",
24
+ "build:es": "react-cli build:library:es",
25
+ "prepare": "npm run init && npm run build && npm run build:es && npm run valueReplacer",
26
+ "init": "npm run clean && cd ../assets && npm run iconsassets",
27
+ "lint": "react-cli lint",
28
+ "docs": "react-cli docs",
29
+ "postpublish": "react-cli postpublish",
30
+ "download": "rm package-lock.json && rm -rf node_modules/ && npm install",
31
+ "valueReplacer":"react-cli valuereplacer ./src ./lib && react-cli valuereplacer ./src ./es"
32
+ },
33
+ "tags": [
34
+ "react",
35
+ "redux"
36
+ ],
37
+ "keywords": [
38
+ "react",
39
+ "redux",
40
+ "router"
41
+ ],
42
+ "dependencies": {
43
+ "@zohodesk/icons": "^1.0.0-temp.5"
44
+ },
45
+ "devDependencies": {
46
+ "@zohodesk/variables": "1.0.0-beta.23"
47
+ },
48
+ "peerDependencies": {
49
+ "@zohodesk/variables": "1.0.0-beta.23"
50
+ },
51
+ "react-cli": {
52
+ "css": {
53
+ "valueReplacer": [
54
+ {
55
+ "props": [
56
+ "font",
57
+ "font-family"
58
+ ],
59
+ "values": {
60
+ "zdfonts-rCallBar": "zdfonts-rCallBar_1",
61
+ "zdfonts-rChannels": "zdfonts-rChannels_1",
62
+ "zdfonts-rCustomize": "zdfonts-rCustomize_1",
63
+ "zdfonts-react-addforms": "zdfonts-react-addforms_1",
64
+ "zdfonts-react-automate": "zdfonts-react-automate_1",
65
+ "zdfonts-react-channels": "zdfonts-react-channels_1",
66
+ "zdfonts-react-common": "zdfonts-react-common_1",
67
+ "zdfonts-react-community": "zdfonts-react-community_1",
68
+ "zdfonts-react-customers": "zdfonts-react-customers_1",
69
+ "zdfonts-react-customize": "zdfonts-react-customize_1",
70
+ "zdfonts-react-gamescope": "zdfonts-react-gamescope_1",
71
+ "zdfonts-react-gcFonts": "zdfonts-react-gcFonts_1",
72
+ "zdfonts-react-gettingstarted": "zdfonts-react-gettingstarted_1",
73
+ "zdfonts-react-integrations": "zdfonts-react-integrations_1",
74
+ "zdfonts-react-kb": "zdfonts-react-kb_1",
75
+ "zdfonts-react-logo": "zdfonts-react-logo_1",
76
+ "zdfonts-react-organization": "zdfonts-react-organization_1",
77
+ "zdfonts-react-others": "zdfonts-react-others_1",
78
+ "zdfonts-react-reports": "zdfonts-react-reports_1",
79
+ "zdfonts-react-setup": "zdfonts-react-setup_1",
80
+ "zdfonts-react-social": "zdfonts-react-social_1",
81
+ "zdfonts-ticket-channels": "zdfonts-ticket-channels_1",
82
+ "zdfonts-react-tickets": "zdfonts-react-tickets_1",
83
+ "zdfonts-react-topband": "zdfonts-react-topband_1",
84
+ "zdfonts-rExportFiles": "zdfonts-rExportFiles_1",
85
+ "zdfonts-rGeneral": "zdfonts-rGeneral_1",
86
+ "zdfonts-rIntegrations": "zdfonts-rIntegrations_1",
87
+ "zdfonts-rLhs": "zdfonts-rLhs_1",
88
+ "zdfonts-rMarketplace": "zdfonts-rMarketplace_1",
89
+ "zdfonts-rReports": "zdfonts-rReports_1",
90
+ "zdfonts-rSetup": "zdfonts-rSetup_1",
91
+ "zdfonts-rTickets": "zdfonts-rTickets_1",
92
+ "zdfonts-rTopband": "zdfonts-rTopband_1",
93
+ "zdfonts-rTwotone": "zdfonts-rTwotone_1"
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ "docs": {
99
+ "cssUniqueness": "false"
100
+ },
101
+ "app": {
102
+ "removePropTypes": {
103
+ "removeImport": true
104
+ }
105
+ }
106
+ }
107
+ }
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import Icon from '../';
3
- import style from '../../common/IcondocStyle.module.css';
4
- import { FontFactory } from '../FontFactory';
5
- export default class Icon__default extends React.Component {
6
- render() {
7
- let Icons = {};
8
- return /*#__PURE__*/React.createElement("div", null, Object.keys(FontFactory).map((item, i) => {
9
- Icons = {};
10
- Object.keys(item).sort().forEach(key => {
11
- Icons[key] = item[key];
12
- });
13
- return /*#__PURE__*/React.createElement("div", {
14
- key: i
15
- }, /*#__PURE__*/React.createElement("div", {
16
- style: {
17
- padding: '10px',
18
- background: '#f5f5f5',
19
- margin: '10px 0 20px',
20
- fontWeight: 'bold'
21
- }
22
- }, `${item} (${Object.keys(FontFactory[item]).length})`), Object.keys(FontFactory[item]).map((iconName, iconCount) => /*#__PURE__*/React.createElement("div", {
23
- className: style.font_grid,
24
- key: iconCount
25
- }, /*#__PURE__*/React.createElement(Icon, {
26
- name: iconName,
27
- size: "20"
28
- }), /*#__PURE__*/React.createElement("p", null, iconName))));
29
- }));
30
- }
31
-
32
- }
33
- Icon__default.docs = {
34
- componentGroup: 'Icon'
35
- };
@@ -1,88 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _ = _interopRequireDefault(require("../"));
13
-
14
- var _IcondocStyleModule = _interopRequireDefault(require("../../common/IcondocStyle.module.css"));
15
-
16
- var _FontFactory = require("../FontFactory");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
-
26
- 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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- 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); }; }
31
-
32
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
-
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var Icon__default = /*#__PURE__*/function (_React$Component) {
41
- _inherits(Icon__default, _React$Component);
42
-
43
- var _super = _createSuper(Icon__default);
44
-
45
- function Icon__default() {
46
- _classCallCheck(this, Icon__default);
47
-
48
- return _super.apply(this, arguments);
49
- }
50
-
51
- _createClass(Icon__default, [{
52
- key: "render",
53
- value: function render() {
54
- var Icons = {};
55
- return /*#__PURE__*/_react["default"].createElement("div", null, Object.keys(_FontFactory.FontFactory).map(function (item, i) {
56
- Icons = {};
57
- Object.keys(item).sort().forEach(function (key) {
58
- Icons[key] = item[key];
59
- });
60
- return /*#__PURE__*/_react["default"].createElement("div", {
61
- key: i
62
- }, /*#__PURE__*/_react["default"].createElement("div", {
63
- style: {
64
- padding: '10px',
65
- background: '#f5f5f5',
66
- margin: '10px 0 20px',
67
- fontWeight: 'bold'
68
- }
69
- }, "".concat(item, " (").concat(Object.keys(_FontFactory.FontFactory[item]).length, ")")), Object.keys(_FontFactory.FontFactory[item]).map(function (iconName, iconCount) {
70
- return /*#__PURE__*/_react["default"].createElement("div", {
71
- className: _IcondocStyleModule["default"].font_grid,
72
- key: iconCount
73
- }, /*#__PURE__*/_react["default"].createElement(_["default"], {
74
- name: iconName,
75
- size: "20"
76
- }), /*#__PURE__*/_react["default"].createElement("p", null, iconName));
77
- }));
78
- }));
79
- }
80
- }]);
81
-
82
- return Icon__default;
83
- }(_react["default"].Component);
84
-
85
- exports["default"] = Icon__default;
86
- Icon__default.docs = {
87
- componentGroup: 'Icon'
88
- };