@zohodesk/icons 1.0.0-temp-101 → 1.0.0-temp-111

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 (119) hide show
  1. package/README.md +128 -0
  2. package/assets_final/fonts/zd-gcFonts.svg +87 -6
  3. package/assets_final/fonts/zd-gcFonts.woff +0 -0
  4. package/assets_final/fonts/zd-gcFonts.woff2 +0 -0
  5. package/assets_final/fonts/zd-rAI.svg +19 -0
  6. package/assets_final/fonts/zd-rAI.woff +0 -0
  7. package/assets_final/fonts/zd-rAI.woff2 +0 -0
  8. package/assets_final/fonts/zd-rAutomation.svg +16 -0
  9. package/assets_final/fonts/zd-rAutomation.woff +0 -0
  10. package/assets_final/fonts/zd-rAutomation.woff2 +0 -0
  11. package/assets_final/fonts/zd-rDeveloperSpace.svg +11 -0
  12. package/assets_final/fonts/zd-rDeveloperSpace.woff +0 -0
  13. package/assets_final/fonts/zd-rDeveloperSpace.woff2 +0 -0
  14. package/assets_final/fonts/zd-rExportFiles.svg +7 -0
  15. package/assets_final/fonts/zd-rExportFiles.woff +0 -0
  16. package/assets_final/fonts/zd-rExportFiles.woff2 +0 -0
  17. package/assets_final/fonts/zd-rGeneral.svg +15 -0
  18. package/assets_final/fonts/zd-rGeneral.woff +0 -0
  19. package/assets_final/fonts/zd-rGeneral.woff2 +0 -0
  20. package/assets_final/fonts/zd-rReports.svg +1 -0
  21. package/assets_final/fonts/zd-rReports.woff +0 -0
  22. package/assets_final/fonts/zd-rReports.woff2 +0 -0
  23. package/assets_final/fonts/zd-rTwotone.svg +32 -0
  24. package/assets_final/fonts/zd-rTwotone.woff +0 -0
  25. package/assets_final/fonts/zd-rTwotone.woff2 +0 -0
  26. package/assets_final/fonts/zd-rUpdates.svg +13 -0
  27. package/assets_final/fonts/zd-rUpdates.woff +0 -0
  28. package/assets_final/fonts/zd-rUpdates.woff2 +0 -0
  29. package/assets_final/react/zd-font-rAI.module.css +48 -0
  30. package/assets_final/react/zd-font-rAccessibility.module.css +5 -1
  31. package/assets_final/react/zd-font-rAutomation.module.css +42 -0
  32. package/assets_final/react/zd-font-rCallBar.module.css +5 -1
  33. package/assets_final/react/zd-font-rChannels.module.css +5 -1
  34. package/assets_final/react/zd-font-rCustomize.module.css +5 -1
  35. package/assets_final/react/zd-font-rDeveloperSpace.module.css +24 -0
  36. package/assets_final/react/zd-font-rExportFiles.module.css +42 -4
  37. package/assets_final/react/zd-font-rGeneral.module.css +56 -4
  38. package/assets_final/react/zd-font-rIntegrations.module.css +5 -1
  39. package/assets_final/react/zd-font-rLhs.module.css +5 -1
  40. package/assets_final/react/zd-font-rMarketplace.module.css +5 -1
  41. package/assets_final/react/zd-font-rReports.module.css +11 -4
  42. package/assets_final/react/zd-font-rSetup.module.css +5 -1
  43. package/assets_final/react/zd-font-rTickets.module.css +5 -1
  44. package/assets_final/react/zd-font-rTopband.module.css +7 -3
  45. package/assets_final/react/zd-font-rTwotone.module.css +156 -4
  46. package/assets_final/react/zd-font-rUpdates.module.css +30 -0
  47. package/assets_final/react/zd-font-react-addforms.module.css +5 -1
  48. package/assets_final/react/zd-font-react-automate.module.css +5 -2
  49. package/assets_final/react/zd-font-react-channels.module.css +5 -1
  50. package/assets_final/react/zd-font-react-channels.plain.css +5 -1
  51. package/assets_final/react/zd-font-react-common.module.css +5 -1
  52. package/assets_final/react/zd-font-react-common.plain.css +5 -1
  53. package/assets_final/react/zd-font-react-community.module.css +5 -1
  54. package/assets_final/react/zd-font-react-customers.module.css +5 -1
  55. package/assets_final/react/zd-font-react-customize.module.css +5 -1
  56. package/assets_final/react/zd-font-react-gamescope.module.css +5 -1
  57. package/assets_final/react/zd-font-react-gcFonts.module.css +281 -4
  58. package/assets_final/react/zd-font-react-gettingstarted.module.css +5 -1
  59. package/assets_final/react/zd-font-react-integrations.module.css +5 -1
  60. package/assets_final/react/zd-font-react-kb.module.css +5 -1
  61. package/assets_final/react/zd-font-react-logo.module.css +5 -1
  62. package/assets_final/react/zd-font-react-organization.module.css +5 -1
  63. package/assets_final/react/zd-font-react-organization.plain.css +5 -1
  64. package/assets_final/react/zd-font-react-others.module.css +5 -1
  65. package/assets_final/react/zd-font-react-reports.module.css +5 -1
  66. package/assets_final/react/zd-font-react-setup.module.css +5 -1
  67. package/assets_final/react/zd-font-react-setup.plain.css +5 -1
  68. package/assets_final/react/zd-font-react-social.module.css +5 -1
  69. package/assets_final/react/zd-font-react-ticket-channels.module.css +5 -1
  70. package/assets_final/react/zd-font-react-tickets.module.css +5 -1
  71. package/assets_final/react/zd-font-react-tickets.plain.css +5 -1
  72. package/assets_final/react/zd-font-react-topband.module.css +5 -1
  73. package/assets_final/react/zd-font-react-topband.plain.css +5 -1
  74. package/coverage/Icon/CustomIcons.js.html +5 -5
  75. package/coverage/Icon/FontIcon.js.html +16 -10
  76. package/coverage/Icon/Icon.module.css.html +2 -2
  77. package/coverage/Icon/index.html +1 -1
  78. package/coverage/Icon/props/defaultProps.js.html +1 -1
  79. package/coverage/Icon/props/index.html +1 -1
  80. package/coverage/Icon/props/propTypes.js.html +5 -2
  81. package/coverage/coverage-final.json +8 -5
  82. package/coverage/coverage-summary.json +9 -6
  83. package/coverage/index.html +37 -7
  84. package/coverage/v1/FontIcon.js.html +298 -0
  85. package/coverage/v1/index.html +116 -0
  86. package/coverage/v1/props/defaultProps.js.html +100 -0
  87. package/coverage/v1/props/index.html +131 -0
  88. package/coverage/v1/props/propTypes.js.html +142 -0
  89. package/css_layer_config.json +191 -0
  90. package/es/Icon/CustomIcons.js +1 -1
  91. package/es/Icon/FontFactory.js +134 -5
  92. package/es/Icon/FontIcon.js +7 -5
  93. package/es/Icon/Icon.module.css +3 -1
  94. package/es/Icon/__tests__/FontIcon.spec.js +11 -1
  95. package/es/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +13 -0
  96. package/es/Icon/index.js +63 -42
  97. package/es/Icon/props/propTypes.js +1 -0
  98. package/es/icon_layer.module.css +1 -0
  99. package/es/index.js +1 -1
  100. package/es/v1/FontIcon.js +7 -5
  101. package/es/v1/__tests__/FontIcon.spec.js +144 -0
  102. package/es/v1/__tests__/__snapshots__/FontIcon.spec.js.snap +251 -0
  103. package/es/v1/props/propTypes.js +1 -0
  104. package/lib/Icon/CustomIcons.js +1 -1
  105. package/lib/Icon/FontFactory.js +48 -5
  106. package/lib/Icon/FontIcon.js +5 -2
  107. package/lib/Icon/Icon.module.css +3 -1
  108. package/lib/Icon/__tests__/FontIcon.spec.js +10 -0
  109. package/lib/Icon/__tests__/__snapshots__/FontIcon.spec.js.snap +13 -0
  110. package/lib/Icon/index.js +59 -37
  111. package/lib/Icon/props/propTypes.js +1 -0
  112. package/lib/icon_layer.module.css +1 -0
  113. package/lib/v1/FontIcon.js +5 -2
  114. package/lib/v1/__tests__/FontIcon.spec.js +151 -0
  115. package/lib/v1/__tests__/__snapshots__/FontIcon.spec.js.snap +251 -0
  116. package/lib/v1/props/propTypes.js +1 -0
  117. package/package.json +15 -7
  118. package/react-cli.config.js +12 -8
  119. package/result.json +1 -1
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+
5
+ var _FontIcon = _interopRequireDefault(require("../FontIcon"));
6
+
7
+ var _react2 = require("@testing-library/react");
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+
11
+ describe('FontIcon - ', function () {
12
+ test('rendering the "default" props', function () {
13
+ var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], null)),
14
+ asFragment = _render.asFragment;
15
+
16
+ expect(asFragment()).toMatchSnapshot();
17
+ });
18
+ test('checking "isBold" is true', function () {
19
+ var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
20
+ isBold: true
21
+ })),
22
+ asFragment = _render2.asFragment;
23
+
24
+ expect(asFragment()).toMatchSnapshot();
25
+ });
26
+ test('checking "isBold" is false', function () {
27
+ var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
28
+ isBold: false
29
+ })),
30
+ asFragment = _render3.asFragment;
31
+
32
+ expect(asFragment()).toMatchSnapshot();
33
+ });
34
+ test('rendering the "iconClass"', function () {
35
+ var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
36
+ iconClass: "iconStyleCss"
37
+ })),
38
+ asFragment = _render4.asFragment;
39
+
40
+ expect(asFragment()).toMatchSnapshot();
41
+ });
42
+ test('rendering the "fontSize"', function () {
43
+ var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
44
+ size: "15"
45
+ })),
46
+ asFragment = _render5.asFragment;
47
+
48
+ expect(asFragment()).toMatchSnapshot();
49
+ });
50
+ test('rendering the "title"', function () {
51
+ var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
52
+ title: "FontIcon"
53
+ })),
54
+ asFragment = _render6.asFragment;
55
+
56
+ expect(asFragment()).toMatchSnapshot();
57
+ });
58
+ test('rendering the "pathname"', function () {
59
+ var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
60
+ pathName: "zd67f91bb627"
61
+ })),
62
+ asFragment = _render7.asFragment;
63
+
64
+ expect(asFragment()).toMatchSnapshot();
65
+ });
66
+ test('rendering "Name" with "iconContent" and without path', function () {
67
+ var _render8 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
68
+ name: ['icon-addAccounts', 3],
69
+ iconContent: {
70
+ path1: "icon1",
71
+ path2: "icon2",
72
+ path3: "icon3"
73
+ }
74
+ })),
75
+ asFragment = _render8.asFragment;
76
+
77
+ expect(asFragment()).toMatchSnapshot();
78
+ });
79
+ test('rendering "iconClass" with path ', function () {
80
+ var _render9 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
81
+ iconClass: "iconStyleCss",
82
+ name: ['icon-addAccounts', 3],
83
+ iconContent: {
84
+ path1: "icon1",
85
+ path2: "icon2",
86
+ path3: "icon3"
87
+ }
88
+ })),
89
+ asFragment = _render9.asFragment;
90
+
91
+ expect(asFragment()).toMatchSnapshot();
92
+ });
93
+ test('rendering "custumIcon" with path', function () {
94
+ var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
95
+ name: ['icon-ch-chat-in', 2],
96
+ iconName: "ZD-chChatMis",
97
+ iconContent: {
98
+ path1: "icon1",
99
+ path2: "icon2"
100
+ }
101
+ })),
102
+ asFragment = _render10.asFragment;
103
+
104
+ expect(asFragment()).toMatchSnapshot();
105
+ });
106
+ test('rendering "ariaHidden" is false', function () {
107
+ var _render11 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
108
+ a11y: {
109
+ ariaHidden: false
110
+ }
111
+ })),
112
+ asFragment = _render11.asFragment;
113
+
114
+ expect(asFragment()).toMatchSnapshot();
115
+ });
116
+ test('rendering "IconName"', function () {
117
+ var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
118
+ iconName: "ZD-addAccount"
119
+ })),
120
+ asFragment = _render12.asFragment;
121
+
122
+ expect(asFragment()).toMatchSnapshot();
123
+ });
124
+ test('rendering custom icon name', function () {
125
+ var _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
126
+ iconName: "ZD-chChatMis"
127
+ })),
128
+ asFragment = _render13.asFragment;
129
+
130
+ expect(asFragment()).toMatchSnapshot();
131
+ });
132
+ var titlePosition = ['top', 'bottom', 'left', 'right'];
133
+ test.each(titlePosition)('rendering the "titlePostion" to - %s', function (titlePosition) {
134
+ var _render14 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
135
+ titlePosition: titlePosition
136
+ })),
137
+ asFragment = _render14.asFragment;
138
+
139
+ expect(asFragment()).toMatchSnapshot();
140
+ });
141
+ test('rendering custom attributes with tagAttributes prop', function () {
142
+ var _render15 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_FontIcon["default"], {
143
+ tagAttributes: {
144
+ 'data-custom-attr': 'true'
145
+ }
146
+ })),
147
+ asFragment = _render15.asFragment;
148
+
149
+ expect(asFragment()).toMatchSnapshot();
150
+ });
151
+ });
@@ -0,0 +1,251 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`FontIcon - checking "isBold" is false 1`] = `
4
+ <DocumentFragment>
5
+ <i
6
+ aria-hidden="true"
7
+ class="zd_font_icons basic undefined "
8
+ data-id="fontIcon"
9
+ data-selector-id="fontIcon"
10
+ data-test-id="fontIcon"
11
+ />
12
+ </DocumentFragment>
13
+ `;
14
+
15
+ exports[`FontIcon - checking "isBold" is true 1`] = `
16
+ <DocumentFragment>
17
+ <i
18
+ aria-hidden="true"
19
+ class="zd_font_icons basic undefined fbold "
20
+ data-id="fontIcon"
21
+ data-selector-id="fontIcon"
22
+ data-test-id="fontIcon"
23
+ />
24
+ </DocumentFragment>
25
+ `;
26
+
27
+ exports[`FontIcon - rendering "IconName" 1`] = `
28
+ <DocumentFragment>
29
+ <i
30
+ aria-hidden="true"
31
+ class="zd_font_icons basic undefined "
32
+ data-id="fontIcon"
33
+ data-selector-id="fontIcon"
34
+ data-test-id="fontIcon"
35
+ />
36
+ </DocumentFragment>
37
+ `;
38
+
39
+ exports[`FontIcon - rendering "Name" with "iconContent" and without path 1`] = `
40
+ <DocumentFragment>
41
+ <i
42
+ aria-hidden="true"
43
+ class="zd_font_icons basic undefined "
44
+ data-id="fontIcon"
45
+ data-selector-id="fontIcon"
46
+ data-test-id="fontIcon"
47
+ >
48
+ <span
49
+ class="icon1 "
50
+ />
51
+ <span
52
+ class="icon2 "
53
+ />
54
+ <span
55
+ class="icon3 "
56
+ />
57
+ </i>
58
+ </DocumentFragment>
59
+ `;
60
+
61
+ exports[`FontIcon - rendering "ariaHidden" is false 1`] = `
62
+ <DocumentFragment>
63
+ <i
64
+ aria-hidden="false"
65
+ class="zd_font_icons basic undefined "
66
+ data-id="fontIcon"
67
+ data-selector-id="fontIcon"
68
+ data-test-id="fontIcon"
69
+ />
70
+ </DocumentFragment>
71
+ `;
72
+
73
+ exports[`FontIcon - rendering "custumIcon" with path 1`] = `
74
+ <DocumentFragment>
75
+ <i
76
+ aria-hidden="true"
77
+ class="zd_font_icons basic undefined red"
78
+ data-id="fontIcon"
79
+ data-selector-id="fontIcon"
80
+ data-test-id="fontIcon"
81
+ >
82
+ <span
83
+ class="icon1 path1"
84
+ />
85
+ <span
86
+ class="icon2 path2"
87
+ />
88
+ </i>
89
+ </DocumentFragment>
90
+ `;
91
+
92
+ exports[`FontIcon - rendering "iconClass" with path 1`] = `
93
+ <DocumentFragment>
94
+ <i
95
+ aria-hidden="true"
96
+ class="zd_font_icons basic undefined iconStyleCss "
97
+ data-id="fontIcon"
98
+ data-selector-id="fontIcon"
99
+ data-test-id="fontIcon"
100
+ >
101
+ <span
102
+ class="icon1 path1"
103
+ />
104
+ <span
105
+ class="icon2 path2"
106
+ />
107
+ <span
108
+ class="icon3 path3"
109
+ />
110
+ </i>
111
+ </DocumentFragment>
112
+ `;
113
+
114
+ exports[`FontIcon - rendering custom attributes with tagAttributes prop 1`] = `
115
+ <DocumentFragment>
116
+ <i
117
+ aria-hidden="true"
118
+ class="zd_font_icons basic undefined "
119
+ data-custom-attr="true"
120
+ data-id="fontIcon"
121
+ data-selector-id="fontIcon"
122
+ data-test-id="fontIcon"
123
+ />
124
+ </DocumentFragment>
125
+ `;
126
+
127
+ exports[`FontIcon - rendering custom icon name 1`] = `
128
+ <DocumentFragment>
129
+ <i
130
+ aria-hidden="true"
131
+ class="zd_font_icons basic undefined red"
132
+ data-id="fontIcon"
133
+ data-selector-id="fontIcon"
134
+ data-test-id="fontIcon"
135
+ />
136
+ </DocumentFragment>
137
+ `;
138
+
139
+ exports[`FontIcon - rendering the "default" props 1`] = `
140
+ <DocumentFragment>
141
+ <i
142
+ aria-hidden="true"
143
+ class="zd_font_icons basic undefined "
144
+ data-id="fontIcon"
145
+ data-selector-id="fontIcon"
146
+ data-test-id="fontIcon"
147
+ />
148
+ </DocumentFragment>
149
+ `;
150
+
151
+ exports[`FontIcon - rendering the "fontSize" 1`] = `
152
+ <DocumentFragment>
153
+ <i
154
+ aria-hidden="true"
155
+ class="zd_font_icons basic undefined "
156
+ data-id="fontIcon"
157
+ data-selector-id="fontIcon"
158
+ data-test-id="fontIcon"
159
+ style="--zd-iconfont-size: var(--zd_font_size15);"
160
+ />
161
+ </DocumentFragment>
162
+ `;
163
+
164
+ exports[`FontIcon - rendering the "iconClass" 1`] = `
165
+ <DocumentFragment>
166
+ <i
167
+ aria-hidden="true"
168
+ class="zd_font_icons basic undefined iconStyleCss "
169
+ data-id="fontIcon"
170
+ data-selector-id="fontIcon"
171
+ data-test-id="fontIcon"
172
+ />
173
+ </DocumentFragment>
174
+ `;
175
+
176
+ exports[`FontIcon - rendering the "pathname" 1`] = `
177
+ <DocumentFragment>
178
+ <i
179
+ aria-hidden="true"
180
+ class="zd_font_icons basic zd67f91bb627 "
181
+ data-id="fontIcon"
182
+ data-selector-id="fontIcon"
183
+ data-test-id="fontIcon"
184
+ />
185
+ </DocumentFragment>
186
+ `;
187
+
188
+ exports[`FontIcon - rendering the "title" 1`] = `
189
+ <DocumentFragment>
190
+ <i
191
+ aria-hidden="true"
192
+ class="zd_font_icons basic undefined "
193
+ data-id="fontIcon"
194
+ data-selector-id="fontIcon"
195
+ data-test-id="fontIcon"
196
+ data-title="FontIcon"
197
+ />
198
+ </DocumentFragment>
199
+ `;
200
+
201
+ exports[`FontIcon - rendering the "titlePostion" to - bottom 1`] = `
202
+ <DocumentFragment>
203
+ <i
204
+ aria-hidden="true"
205
+ class="zd_font_icons basic undefined "
206
+ data-id="fontIcon"
207
+ data-selector-id="fontIcon"
208
+ data-test-id="fontIcon"
209
+ data-title-position="bottom"
210
+ />
211
+ </DocumentFragment>
212
+ `;
213
+
214
+ exports[`FontIcon - rendering the "titlePostion" to - left 1`] = `
215
+ <DocumentFragment>
216
+ <i
217
+ aria-hidden="true"
218
+ class="zd_font_icons basic undefined "
219
+ data-id="fontIcon"
220
+ data-selector-id="fontIcon"
221
+ data-test-id="fontIcon"
222
+ data-title-position="left"
223
+ />
224
+ </DocumentFragment>
225
+ `;
226
+
227
+ exports[`FontIcon - rendering the "titlePostion" to - right 1`] = `
228
+ <DocumentFragment>
229
+ <i
230
+ aria-hidden="true"
231
+ class="zd_font_icons basic undefined "
232
+ data-id="fontIcon"
233
+ data-selector-id="fontIcon"
234
+ data-test-id="fontIcon"
235
+ data-title-position="right"
236
+ />
237
+ </DocumentFragment>
238
+ `;
239
+
240
+ exports[`FontIcon - rendering the "titlePostion" to - top 1`] = `
241
+ <DocumentFragment>
242
+ <i
243
+ aria-hidden="true"
244
+ class="zd_font_icons basic undefined "
245
+ data-id="fontIcon"
246
+ data-selector-id="fontIcon"
247
+ data-test-id="fontIcon"
248
+ data-title-position="top"
249
+ />
250
+ </DocumentFragment>
251
+ `;
@@ -21,6 +21,7 @@ var IconProps = {
21
21
  title: _propTypes["default"].string,
22
22
  iconName: _propTypes["default"].string,
23
23
  titlePosition: _propTypes["default"].oneOf(['top', 'bottom', 'left', 'right']),
24
+ tagAttributes: _propTypes["default"].object,
24
25
  a11y: _propTypes["default"].shape({
25
26
  ariaHidden: _propTypes["default"].bool
26
27
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/icons",
3
- "version": "1.0.0-temp-101",
3
+ "version": "1.0.0-temp-111",
4
4
  "description": "DOT - Icons",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",
@@ -22,11 +22,10 @@
22
22
  "build": "react-cli build:component:cmjs ",
23
23
  "build:watch": "npm run build:es --module:mode=dev -- -w",
24
24
  "build:es": "react-cli build:library:es",
25
- "prepare": "npm run init && npm run build && npm run build:es && npm run valueReplacer",
26
25
  "init": "npm run clean && cd ../assets && npm run iconsassets",
27
26
  "init_": "npm run clean && cd ../assets && npm run iconsassets_temp",
28
27
  "lint": "react-cli lint",
29
- "docs": "react-cli docs",
28
+ "prepare": "npm run init && npm run css:build",
30
29
  "prepublishOnly": "node prePublish.js && npm run test",
31
30
  "postpublish": "node postPublish.js",
32
31
  "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
@@ -34,17 +33,26 @@
34
33
  "expublish": "npm publish --tag experimental-version",
35
34
  "common_package_build": "cd ../common && npm run build && cd ../components",
36
35
  "test": "react-cli test",
37
- "snap-update": "npm run test -- -u"
36
+ "snap-update": "npm run test -- -u",
37
+ "css:layer_config_generate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src ./assets_final css_layer_config.json",
38
+ "css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es ./assets_final css_layer_config.json --rewrite=src=es --rewrite=assets_final=assets_final --skip-existing-layer",
39
+ "css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets_final css_layer_config.json --rewrite=src=lib --rewrite=assets_final=assets_final --skip-existing-layer",
40
+ "css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/icon_layer.module.css",
41
+ "css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets_final",
42
+ "css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build && npm run build:es && npm run valueReplacer && npm run css:layer_wrap_es && npm run css:layer_wrap_lib",
43
+ "css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets_final css_layer_config.json --rewrite=src=es --rewrite=assets_final=assets_final"
38
44
  },
39
45
  "dependencies": {},
40
46
  "devDependencies": {
41
- "@zohodesk/variables": "1.0.0",
42
47
  "@testing-library/jest-dom": "^5.11.9",
43
48
  "@testing-library/react": "^11.2.5",
44
49
  "@testing-library/react-hooks": "^7.0.2",
45
- "@testing-library/user-event": "^13.0.10"
50
+ "@testing-library/user-event": "^13.0.10",
51
+ "@zohodesk-private/node-plugins": "1.1.12",
52
+ "@zohodesk/variables": "1.0.0",
53
+ "postcss": "^8.5.6"
46
54
  },
47
55
  "peerDependencies": {
48
56
  "@zohodesk/variables": "1.0.0"
49
57
  }
50
- }
58
+ }
@@ -1,4 +1,4 @@
1
- exports.config= {
1
+ exports.config = {
2
2
  "css": {
3
3
  "valueReplacer": [
4
4
  {
@@ -18,7 +18,7 @@ exports.config= {
18
18
  "zdfonts-react-customers": "zdf-react-customers_1",
19
19
  "zdfonts-react-customize": "zdf-react-customize_2",
20
20
  "zdfonts-react-gamescope": "zdf-react-gamescope_1",
21
- "zdfonts-react-gcFonts": "zdf-react-gcFonts_12",
21
+ "zdfonts-react-gcFonts": "zdf-react-gcFonts_18",
22
22
  "zdfonts-react-gettingstarted": "zdf-react-gettingstarted_1",
23
23
  "zdfonts-react-integrations": "zdf-react-integrations_1",
24
24
  "zdfonts-react-kb": "zdf-react-kb_1",
@@ -31,17 +31,21 @@ exports.config= {
31
31
  "zdfonts-ticket-channels": "zdf-ticket-channels_3",
32
32
  "zdfonts-react-tickets": "zdf-react-tickets_4",
33
33
  "zdfonts-react-topband": "zdf-react-topband_2",
34
- "zdfonts-rExportFiles": "zdf-rExportFiles_1",
35
- "zdfonts-rGeneral": "zdf-rGeneral_27",
34
+ "zdfonts-rExportFiles": "zdf-rExportFiles_2",
35
+ "zdfonts-rGeneral": "zdf-rGeneral_34",
36
36
  "zdfonts-rIntegrations": "zdf-rIntegrations_4",
37
37
  "zdfonts-rLhs": "zdf-rLhs_1",
38
38
  "zdfonts-rMarketplace": "zdf-rMarketplace_5",
39
- "zdfonts-rReports": "zdf-rReports_4",
39
+ "zdfonts-rReports": "zdf-rReports_5",
40
40
  "zdfonts-rSetup": "zdf-rSetup_3",
41
41
  "zdfonts-rTickets": "zdf-rTickets_9",
42
- "zdfonts-rTopband": "zdf-rTopband_4",
43
- "zdfonts-rTwotone": "zdf-rTwotone_20",
44
- "zdfonts-rAccessibility": "zdf-rAccessibility_1"
42
+ "zdfonts-rTopband": "zdf-rTopband_5",
43
+ "zdfonts-rTwotone": "zdf-rTwotone_28",
44
+ "zdfonts-rAccessibility": "zdf-rAccessibility_1",
45
+ "zdfonts-rUpdates": "zdf-rUpdates_1",
46
+ "zdfonts-rAI": "zdf-rAI_5",
47
+ "zdfonts-rAutomation": "zdf-rAutomation_2",
48
+ "zdfonts-rDeveloperSpace": "zdf-rDeveloperSpace_1"
45
49
  }
46
50
  }
47
51
  ]
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"prakash-19994","platForm":"Darwin","branchName":"prakash_style_guide"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":17,"numberOfFails":0,"numberOfCases":17,"numberOfSuites":1,"endTime":1725879724349,"startTime":1725879722104,"coverageDetail":{"codeCoveragePercentage":93.59,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/prakash-19994/Works/React/LibraryDesk/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-19811","platForm":"Darwin","branchName":"bk"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":2,"endTime":1754652239522,"startTime":1754652236193,"coverageDetail":{"codeCoveragePercentage":93.59,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/bharathi-19811/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-19811/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-19811/git/library/jsapps/dot/icons/src/v1/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right","rendering custom attributes with tagAttributes prop"],"failedCaseList":[]}},{"fileName":"/Users/bharathi-19811/git/library/jsapps/dot/icons/src/Icon/__tests__/FontIcon.spec.js","CaseList":{"passedCaseList":["rendering the \"default\" props","checking \"isBold\" is true","checking \"isBold\" is false","rendering the \"iconClass\"","rendering the \"fontSize\"","rendering the \"title\"","rendering the \"pathname\"","rendering \"Name\" with \"iconContent\" and without path","rendering \"iconClass\" with path ","rendering \"custumIcon\" with path","rendering \"ariaHidden\" is false","rendering \"IconName\"","rendering custom icon name","rendering the \"titlePostion\" to - top","rendering the \"titlePostion\" to - bottom","rendering the \"titlePostion\" to - left","rendering the \"titlePostion\" to - right","rendering custom attributes with tagAttributes prop"],"failedCaseList":[]}}]}}}