@zohodesk/components 1.0.0-temp-220.11 → 1.0.0-temp-231

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 (62) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +17 -1
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -2
  4. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +1 -1
  5. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +1 -1
  9. package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -2
  10. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +1 -1
  15. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -2
  16. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +1 -1
  19. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +1 -1
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +1 -1
  21. package/es/Accordion/Accordion.js +1 -1
  22. package/es/AppContainer/AppContainer.js +1 -1
  23. package/es/Card/Card.js +48 -14
  24. package/es/Card/__tests__/Card.spec.js +81 -2
  25. package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +44 -0
  26. package/es/Card/props/defaultProps.js +2 -1
  27. package/es/Card/props/propTypes.js +2 -1
  28. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  29. package/es/MultiSelect/MultiSelect.js +1 -1
  30. package/es/Popup/Popup.js +3 -3
  31. package/es/Select/Select.js +1 -1
  32. package/es/Select/__tests__/Select.spec.js +15 -0
  33. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +281 -0
  34. package/es/common/basic.module.css +0 -2
  35. package/es/components_layer.module.css +1 -0
  36. package/es/v1/Popup/Popup.js +1 -1
  37. package/es/v1/Select/Select.js +1 -1
  38. package/lib/Accordion/Accordion.js +2 -2
  39. package/lib/AppContainer/AppContainer.js +1 -1
  40. package/lib/Card/Card.js +64 -30
  41. package/lib/Card/__tests__/Card.spec.js +118 -1
  42. package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +44 -0
  43. package/lib/Card/props/defaultProps.js +2 -1
  44. package/lib/Card/props/propTypes.js +2 -1
  45. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  46. package/lib/MultiSelect/MultiSelect.js +2 -2
  47. package/lib/Popup/Popup.js +4 -4
  48. package/lib/Select/Select.js +2 -2
  49. package/lib/Select/__tests__/Select.spec.js +165 -148
  50. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +281 -0
  51. package/lib/common/basic.module.css +0 -2
  52. package/lib/components_layer.module.css +1 -0
  53. package/lib/v1/Popup/Popup.js +2 -2
  54. package/lib/v1/Select/Select.js +2 -2
  55. package/package.json +27 -13
  56. package/css_error.log +0 -1
  57. package/install.md +0 -10
  58. package/postPublish.js +0 -8
  59. package/prePublish.js +0 -70
  60. package/react-cli.config.js +0 -24
  61. package/result.json +0 -1
  62. /package/.cli/{stringContains.js → themeValidate/stringContains.js} +0 -0
@@ -1926,6 +1926,287 @@ exports[`Select - Should render the only options matching search value 1`] = `
1926
1926
  </DocumentFragment>
1927
1927
  `;
1928
1928
 
1929
+ exports[`Select - Should render the only options matching search value even with additional spaces before and after 1`] = `
1930
+ <DocumentFragment>
1931
+ <div
1932
+ class="container box_medium "
1933
+ data-selector-id="select"
1934
+ >
1935
+ <div
1936
+ class=""
1937
+ data-id="selectComponent"
1938
+ data-test-id="selectComponent"
1939
+ >
1940
+ <div
1941
+ class="container effect effectFocused input flex rowdir"
1942
+ data-id="containerComponent"
1943
+ data-selector-id="textBoxIcon"
1944
+ data-test-id="containerComponent"
1945
+ >
1946
+ <div
1947
+ class="grow basis shrinkOff"
1948
+ data-id="boxComponent"
1949
+ data-selector-id="box"
1950
+ data-test-id="boxComponent"
1951
+ >
1952
+ <input
1953
+ aria-activedescendant="1"
1954
+ aria-controls="1"
1955
+ aria-expanded="true"
1956
+ aria-haspopup="true"
1957
+ aria-label="click to select options"
1958
+ aria-owns="1"
1959
+ aria-readonly="true"
1960
+ autocomplete="off"
1961
+ class=" pointer container medium default effect focus borderColor_default inputDotted "
1962
+ data-id="selectComponent_textBox"
1963
+ data-selector-id="textBoxIcon"
1964
+ data-test-id="selectComponent_textBox"
1965
+ data-title="Option 1"
1966
+ maxlength="250"
1967
+ placeholder=""
1968
+ readonly=""
1969
+ role="Menuitem"
1970
+ type="text"
1971
+ value="Option 1"
1972
+ />
1973
+ </div>
1974
+ <div
1975
+ class="iconContainer shrinkOff"
1976
+ data-id="boxComponent"
1977
+ data-selector-id="box"
1978
+ data-test-id="boxComponent"
1979
+ >
1980
+ <div
1981
+ class="flex cover rowdir"
1982
+ data-id="containerComponent"
1983
+ data-selector-id="container"
1984
+ data-test-id="containerComponent"
1985
+ >
1986
+ <div
1987
+ class="icon rotated shrinkOff"
1988
+ data-id="boxComponent"
1989
+ data-selector-id="box"
1990
+ data-test-id="boxComponent"
1991
+ >
1992
+ <div
1993
+ class="rightPlaceholder inflex rowdir both"
1994
+ data-id="containerComponent"
1995
+ data-selector-id="container"
1996
+ data-test-id="containerComponent"
1997
+ >
1998
+ <div
1999
+ aria-hidden="true"
2000
+ class="arrowIcon flex cover coldir both"
2001
+ data-id="selectComponent_downIcon"
2002
+ data-selector-id="container"
2003
+ data-test-id="selectComponent_downIcon"
2004
+ >
2005
+ <i
2006
+ aria-hidden="true"
2007
+ class="zd_font_icons basic icon-down "
2008
+ data-id="fontIcon"
2009
+ data-selector-id="fontIcon"
2010
+ data-test-id="fontIcon"
2011
+ style="--zd-iconfont-size: var(--zd_font_size7);"
2012
+ />
2013
+ </div>
2014
+ </div>
2015
+ </div>
2016
+ </div>
2017
+ </div>
2018
+ <div
2019
+ class="line borderColor_default "
2020
+ />
2021
+ </div>
2022
+ </div>
2023
+ <div
2024
+ class="main container bottomMid default"
2025
+ data-a11y-focus-main-area="true"
2026
+ data-arrow-position="mid"
2027
+ data-box-direction="bottom"
2028
+ data-id="selectComponent_suggestions"
2029
+ data-position="bottomMid"
2030
+ data-selector-id="dropBox"
2031
+ data-test-id="selectComponent_suggestions"
2032
+ dot-ui-element="dropbox"
2033
+ style="z-index: 4;"
2034
+ >
2035
+ <div
2036
+ class="subContainer shadow radius bounce defaultPalette"
2037
+ data-id="selectComponent_suggestions_subcontainer"
2038
+ data-selector-id="dropBox_subcontainer"
2039
+ data-test-id="selectComponent_suggestions_subcontainer"
2040
+ tabindex="-1"
2041
+ >
2042
+ <div
2043
+ class="flex rowdir"
2044
+ data-id="containerComponent"
2045
+ data-selector-id="container"
2046
+ data-test-id="containerComponent"
2047
+ >
2048
+ <div
2049
+ class="grow basis shrinkOff"
2050
+ data-id="boxComponent"
2051
+ data-selector-id="box"
2052
+ data-test-id="boxComponent"
2053
+ >
2054
+ <div
2055
+ class="flex cover coldir"
2056
+ data-id="containerComponent"
2057
+ data-selector-id="container"
2058
+ data-test-id="containerComponent"
2059
+ >
2060
+ <div
2061
+ class="notScroll shrinkOff"
2062
+ data-id="CardHeader"
2063
+ data-selector-id="cardHeader"
2064
+ data-test-id="CardHeader"
2065
+ >
2066
+ <div
2067
+ class="search medium"
2068
+ >
2069
+ <div
2070
+ class="container effect effectFocused flex rowdir"
2071
+ data-id="containerComponent"
2072
+ data-selector-id="textBoxIcon"
2073
+ data-test-id="containerComponent"
2074
+ >
2075
+ <div
2076
+ class="grow basis shrinkOff"
2077
+ data-id="boxComponent"
2078
+ data-selector-id="box"
2079
+ data-test-id="boxComponent"
2080
+ >
2081
+ <input
2082
+ aria-autocomplete="list"
2083
+ aria-controls="1"
2084
+ aria-describedby="2"
2085
+ autocomplete="off"
2086
+ class=" container small default effect borderColor_default "
2087
+ data-id="selectComponent_search"
2088
+ data-selector-id="textBoxIcon"
2089
+ data-test-id="selectComponent_search"
2090
+ maxlength="250"
2091
+ placeholder="Search"
2092
+ type="text"
2093
+ value=" 2 "
2094
+ />
2095
+ </div>
2096
+ <div
2097
+ class="iconContainer shrinkOff"
2098
+ data-id="boxComponent"
2099
+ data-selector-id="box"
2100
+ data-test-id="boxComponent"
2101
+ >
2102
+ <div
2103
+ class="flex cover rowdir"
2104
+ data-id="containerComponent"
2105
+ data-selector-id="container"
2106
+ data-test-id="containerComponent"
2107
+ >
2108
+ <button
2109
+ class="buttonReset icon shrinkOff"
2110
+ data-id="selectComponent_search_ClearIcon"
2111
+ data-selector-id="box"
2112
+ data-test-id="selectComponent_search_ClearIcon"
2113
+ data-title="Clear"
2114
+ >
2115
+ <div
2116
+ aria-hidden="true"
2117
+ class="flex cover coldir both"
2118
+ data-id="containerComponent"
2119
+ data-selector-id="container"
2120
+ data-test-id="containerComponent"
2121
+ >
2122
+ <i
2123
+ aria-hidden="true"
2124
+ class="zd_font_icons basic icon-delete rtl "
2125
+ data-id="fontIcon"
2126
+ data-selector-id="fontIcon"
2127
+ data-test-id="fontIcon"
2128
+ style="--zd-iconfont-size: var(--zd_font_size14);"
2129
+ />
2130
+ </div>
2131
+ </button>
2132
+ </div>
2133
+ </div>
2134
+ <div
2135
+ class="line borderColor_default "
2136
+ />
2137
+ </div>
2138
+ </div>
2139
+ </div>
2140
+ <div
2141
+ class="small grow basis shrinkOn scrolly"
2142
+ data-id="CardContent"
2143
+ data-selector-id="cardContent"
2144
+ data-test-id="CardContent"
2145
+ >
2146
+ <div
2147
+ class="flex coldir"
2148
+ data-id="containerComponent"
2149
+ data-selector-id="container"
2150
+ data-test-id="containerComponent"
2151
+ id="1"
2152
+ role="listbox"
2153
+ tabindex="0"
2154
+ >
2155
+ <div
2156
+ class="listItemContainer shrinkOff"
2157
+ data-id="selectComponent_Options"
2158
+ data-selector-id="box"
2159
+ data-test-id="selectComponent_Options"
2160
+ >
2161
+ <li
2162
+ aria-label="Option 2"
2163
+ aria-selected="false"
2164
+ ariaparentrole="listbox"
2165
+ class="list medium default defaultHover mediumwithTick flex rowdir vCenter"
2166
+ data-a11y-inset-focus="true"
2167
+ data-a11y-list-active="true"
2168
+ data-id="Option 2"
2169
+ data-selector-id="listItem"
2170
+ data-test-id="Option 2"
2171
+ data-title="Option 2"
2172
+ role="option"
2173
+ tabindex="0"
2174
+ >
2175
+ <div
2176
+ class="leftBox grow basis shrinkOff"
2177
+ data-id="boxComponent"
2178
+ data-selector-id="box"
2179
+ data-test-id="boxComponent"
2180
+ >
2181
+ <div
2182
+ class="titleBox shrinkOff"
2183
+ data-id="boxComponent"
2184
+ data-selector-id="box"
2185
+ data-test-id="boxComponent"
2186
+ >
2187
+ <div
2188
+ class="value basisAuto shrinkOn"
2189
+ data-id="boxComponent"
2190
+ data-selector-id="box"
2191
+ data-test-id="boxComponent"
2192
+ >
2193
+ Option 2
2194
+ </div>
2195
+ </div>
2196
+ </div>
2197
+ </li>
2198
+ </div>
2199
+ </div>
2200
+ </div>
2201
+ </div>
2202
+ </div>
2203
+ </div>
2204
+ </div>
2205
+ </div>
2206
+ </div>
2207
+ </DocumentFragment>
2208
+ `;
2209
+
1929
2210
  exports[`Select - Should render the placeholder when there is no default value 1`] = `
1930
2211
  <DocumentFragment>
1931
2212
  <div
@@ -1,5 +1,3 @@
1
- @charset 'utf-8';
2
-
3
1
  @font-face {
4
2
  font-family: Regular;
5
3
  src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
@@ -0,0 +1 @@
1
+ @layer dot-components, dot-components.theme, dot-components.core, dot-components.reset, dot-components.base, dot-components.animation, dot-components.transition, dot-components.utility, dot-components.layout, dot-components.semantic, dot-components.atom, dot-components.molecule, dot-components.organism, dot-components.page, dot-components.effect;
@@ -186,8 +186,8 @@ var Popup = function Popup(Component) {
186
186
  }
187
187
  }
188
188
  }, {
189
- key: "componentWillReceiveProps",
190
- value: function componentWillReceiveProps(nextProps) {
189
+ key: "UNSAFE_componentWillReceiveProps",
190
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
191
191
  var isPopupOpen = this.state.isPopupOpen;
192
192
 
193
193
  if (typeof nextProps.isPopupOpen !== 'undefined' && nextProps.isPopupOpen !== isPopupOpen) {
@@ -185,8 +185,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
185
185
  // suggestionContainer.addEventListener('scroll', this.handleScroll);
186
186
  }
187
187
  }, {
188
- key: "componentWillReceiveProps",
189
- value: function componentWillReceiveProps(nextProps) {
188
+ key: "UNSAFE_componentWillReceiveProps",
189
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
190
190
  var selectedValue = nextProps.selectedValue,
191
191
  isDefaultSelectValue = nextProps.isDefaultSelectValue,
192
192
  valueField = nextProps.valueField,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-220.11",
3
+ "version": "1.0.0-temp-231",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -18,9 +18,10 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "build:docs": "react-cli build:docs",
21
- "lint": "react-cli lint",
21
+ "_lint": "react-cli lint",
22
22
  "lintAll": "react-cli lint ./src",
23
23
  "lintAllFix": "npm run lintAll --eslint:fix=true",
24
+ "lint": "npx eslint ./src",
24
25
  "clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
25
26
  "dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es",
26
27
  "init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
@@ -37,16 +38,17 @@
37
38
  "rtl:watch": "react-cli rtl ./src ./es -w",
38
39
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
40
  "coverage": "react-cli coverage",
40
- "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
+ "prepare": "npm run init && npm run css:build ",
41
42
  "prepublishOnly": "node prePublish.js && npm run download && npm run css:review && npm run review:props ",
42
43
  "postpublish": "node postPublish.js",
43
44
  "report": "react-cli publish:report",
44
45
  "test": "react-cli test",
46
+ "customTest": "node ./__testUtils__/runTest.js",
45
47
  "test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json ",
46
48
  "snap-update": "npm run test-clean && npm run test -- -u",
47
49
  "sstest": "npm run init && react-cli sstest",
48
50
  "build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
49
- "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
51
+ "download": "react-cli clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps && cd ../ && npm run download",
50
52
  "expublish": "npm publish --tag experimental-version",
51
53
  "css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
52
54
  "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
@@ -54,10 +56,17 @@
54
56
  "variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
55
57
  "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
56
58
  "css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
57
- "theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/stringContains.js",
58
- "theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/stringContains.js",
59
+ "theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/themeValidate/stringContains.js",
60
+ "theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/themeValidate/stringContains.js",
59
61
  "theme:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation removeignore ./src ./.cli",
60
- "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json "
62
+ "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json ",
63
+ "css:layer_config_generate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src ./assets css_layer_config.json",
64
+ "css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
65
+ "css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
66
+ "css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/components_layer.module.css",
67
+ "css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets",
68
+ "css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build && npm run rtl && npm run cssVariableConvert ",
69
+ "css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets"
61
70
  },
62
71
  "devDependencies": {
63
72
  "@testing-library/jest-dom": "^5.11.9",
@@ -65,16 +74,16 @@
65
74
  "@testing-library/react-hooks": "^7.0.2",
66
75
  "@testing-library/user-event": "^13.0.10",
67
76
  "@zohodesk-private/color-variable-preprocessor": "1.2.0",
68
- "@zohodesk-private/css-variable-migrator": "^1.0.8",
69
- "@zohodesk-private/node-plugins": "1.1.8",
77
+ "@zohodesk-private/css-variable-migrator": "1.0.9",
78
+ "@zohodesk-private/node-plugins": "1.1.13",
70
79
  "@zohodesk-private/react-prop-validator": "1.2.3",
71
- "@zohodesk/a11y": "2.3.5",
80
+ "@zohodesk/a11y": "2.3.6",
72
81
  "@zohodesk/docstool": "1.0.0-alpha-2",
73
82
  "@zohodesk/dotkit": "1.0.3",
74
83
  "@zohodesk/hooks": "2.0.5",
75
84
  "@zohodesk/icons": "1.1.0",
76
85
  "@zohodesk/layout": "3.1.0",
77
- "@zohodesk/svg": "1.2.0",
86
+ "@zohodesk/svg": "1.2.1",
78
87
  "@zohodesk/utils": "1.3.14",
79
88
  "@zohodesk/variables": "1.1.0",
80
89
  "@zohodesk/virtualizer": "1.0.3",
@@ -82,6 +91,7 @@
82
91
  "velocity-react": "1.4.3"
83
92
  },
84
93
  "dependencies": {
94
+ "@zohodesk/react-cli": "^1.1.27",
85
95
  "hoist-non-react-statics": "3.0.1",
86
96
  "react-transition-group": "2.5.0",
87
97
  "reselect": "4.0.0",
@@ -90,14 +100,18 @@
90
100
  "peerDependencies": {
91
101
  "@zohodesk/icons": "1.1.0",
92
102
  "@zohodesk/variables": "1.1.0",
93
- "@zohodesk/svg": "1.2.0",
103
+ "@zohodesk/svg": "1.2.1",
94
104
  "@zohodesk/virtualizer": "1.0.3",
95
105
  "velocity-react": "1.4.3",
96
106
  "react-sortable-hoc": "^0.8.3",
97
107
  "@zohodesk/hooks": "2.0.5",
98
108
  "@zohodesk/utils": "1.3.14",
99
- "@zohodesk/a11y": "2.3.5",
109
+ "@zohodesk/a11y": "2.3.6",
100
110
  "@zohodesk/layout": "3.1.0",
101
111
  "@zohodesk/dotkit": "1.0.3"
112
+ },
113
+ "volta": {
114
+ "node": "16.16.0",
115
+ "npm": "6.14.18"
102
116
  }
103
117
  }
package/css_error.log DELETED
@@ -1 +0,0 @@
1
- Component Package error log:
package/install.md DELETED
@@ -1,10 +0,0 @@
1
- - For New :
2
-
3
- # npm i
4
- # npm run common_package_build
5
-
6
- For Update:
7
-
8
- # npm run download
9
- # npm run common_package_build
10
-
package/postPublish.js DELETED
@@ -1,8 +0,0 @@
1
- const { execSync } = require('child_process');
2
- const { version, name } = require('./package.json');
3
- const tagName = `${name}@${version}`;
4
- // const tagName = `${name.replace(/^@/g, "").replace(/\//g, "-")}-v-${version}}@${version}`;
5
- console.log(`going to add git tag... ${tagName}`);
6
-
7
- execSync(`git tag -a ${tagName} -m ${tagName}`, { stdio: 'inherit' });
8
- execSync(`git push origin ${tagName}`, { stdio: 'inherit' });
package/prePublish.js DELETED
@@ -1,70 +0,0 @@
1
- const readline = require('readline');
2
- const { exec } = require('child_process');
3
-
4
- const rl = readline.createInterface({
5
- input: process.stdin,
6
- output: process.stdout
7
- });
8
-
9
- console.log('\nNode.js version:', process.version);
10
-
11
- function runConsole(command, callback) {
12
- exec(command, (error, stdout, stderr) => {
13
- if (error) {
14
- console.error('Error:', error.message);
15
- return;
16
- }
17
-
18
- if (stderr) {
19
- console.error('Error:', stderr);
20
- return;
21
- }
22
-
23
- const npmVersion = stdout.trim();
24
- console.log('\n' + command, npmVersion);
25
- callback && callback();
26
- });
27
- }
28
-
29
- function askQuestion1() {
30
- rl.question('\nHave you updated the changelog in README.md? (yes/no): ', (answer) => {
31
- if (answer.toLowerCase() === 'yes') {
32
- console.log('\nGreat! Proceeding...');
33
- askQuestion2();
34
- // rl.close();
35
- // Call the function or code to proceed further here.
36
- } else if (answer.toLowerCase() === 'no') {
37
- rl.close();
38
- console.log('\nPlease Update the ChangeLog in README.md, then try again');
39
- //throw new Error('\nPlease Update the ChangeLog in README.md, then try again');
40
- process.exitCode = 1; // Exit the Node.js process with a success code.
41
- } else {
42
- console.log('\nInvalid answer. Please enter "yes" or "no".');
43
- askQuestion1(); // Ask the question again if the input is not "yes" or "no".
44
- }
45
- });
46
- }
47
-
48
- function askQuestion2() {
49
- rl.question('\nHave you verified the test snapshot? (yes/no): ', (answer) => {
50
- if (answer.toLowerCase() === 'yes') {
51
- console.log('\nGreat! Proceeding...');
52
- rl.close();
53
- // Call the function or code to proceed further here.
54
- } else if (answer.toLowerCase() === 'no') {
55
- rl.close();
56
- //throw new Error('\nPlease Verify the snapshot results, then try again');
57
- console.log('\nPlease Verify the snapshot results, then try again');
58
- process.exitCode = 1; // Exit the Node.js process with a success code.
59
- } else {
60
- console.log('\nInvalid answer. Please enter "yes" or "no".');
61
- askQuestion2(); // Ask the question again if the input is not "yes" or "no".
62
- }
63
- });
64
- }
65
-
66
- function getReactCliVersion() {
67
- runConsole('react-cli --version', askQuestion1);
68
- }
69
-
70
- runConsole('npm --version', getReactCliVersion);
@@ -1,24 +0,0 @@
1
- exports.config = {
2
- "preprocess": {
3
- "runner": "./preprocess/index.js"
4
- },
5
- "css": {
6
- "plugins": {
7
- "hasRTL": true,
8
- "cssVariableReplacement": true
9
- },
10
- "patterns": {
11
- "cssVariableReplacement": [
12
- "**/src/**",
13
- "**/lib/**",
14
- "**/es/**",
15
- "!**/node_modules/**"
16
- ],
17
- "hasRTL": [
18
- "**/src/**",
19
- "!**/node_modules/**"
20
- ]
21
- },
22
- "cssVariableReplacementConfig": "./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
23
- }
24
- }