@cypress-design/react-docmenu 0.2.1 → 0.2.3

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.
@@ -2,5 +2,5 @@ $ yarn build:module && yarn build:types
2
2
  $ rollup -c ./rollup.config.mjs
3
3
  
4
4
  ./index.ts → ./dist/index.umd.js, ./dist/index.es.mjs...
5
- created ./dist/index.umd.js, ./dist/index.es.mjs in 19.8s
5
+ created ./dist/index.umd.js, ./dist/index.es.mjs in 17.1s
6
6
  $ tsc --project ./tsconfig.build.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @cypress-design/react-docmenu
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#245](https://github.com/cypress-io/cypress-design/pull/245) [`d52d023`](https://github.com/cypress-io/cypress-design/commit/d52d02301bb851d514661a8c258d0c4ae5baf171) Thanks [@elevatebart](https://github.com/elevatebart)! - use tailwind to rollup classes in the final package
8
+
9
+ - Updated dependencies [[`d52d023`](https://github.com/cypress-io/cypress-design/commit/d52d02301bb851d514661a8c258d0c4ae5baf171)]:
10
+ - @cypress-design/react-icon@0.22.1
11
+
12
+ ## 0.2.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [`08ba16d`](https://github.com/cypress-io/cypress-design/commit/08ba16da4a8663676ee96ac4950938857bd0d9a3) Thanks [@elevatebart](https://github.com/elevatebart)! - fix wind-keep plugin
17
+
18
+ - Updated dependencies [[`08ba16d`](https://github.com/cypress-io/cypress-design/commit/08ba16da4a8663676ee96ac4950938857bd0d9a3)]:
19
+ - @cypress-design/react-icon@0.21.1
20
+
3
21
  ## 0.2.1
4
22
 
5
23
  ### Patch Changes
package/ReadMe.md CHANGED
@@ -12,6 +12,12 @@ or with yarn
12
12
  yarn add @cypress-design/react-docmenu
13
13
  ```
14
14
 
15
+ ## Usage
16
+
17
+ ```ts
18
+ import DocMenu from '@cypress-design/react-docmenu'
19
+ ```
20
+
15
21
  ```tsx live
16
22
  <DocMenu
17
23
  items={[
package/dist/index.es.mjs CHANGED
@@ -17,6 +17,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
+ /* global Reflect, Promise */
21
+
20
22
 
21
23
  var __assign$1 = function() {
22
24
  __assign$1 = Object.assign || function __assign(t) {
@@ -92,6 +94,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
92
94
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
93
95
  PERFORMANCE OF THIS SOFTWARE.
94
96
  ***************************************************************************** */
97
+ /* global Reflect, Promise */
98
+
95
99
 
96
100
  var __assign = function() {
97
101
  __assign = Object.assign || function __assign(t) {
@@ -119,7 +123,10 @@ function __rest(s, e) {
119
123
  var compileReactIconProperties = function (_a) {
120
124
  var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
121
125
  var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
122
- if (!ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
126
+ if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
127
+ attrName !== 'name') {
128
+ // @ts-expect-error the ky of React's SVGProps is too broad and
129
+ // breaks here. Since we do not need to check for it. We keep the expect error
123
130
  newAttributes[attrName] =
124
131
  attributes[attrName];
125
132
  }
@@ -127,7 +134,7 @@ var compileReactIconProperties = function (_a) {
127
134
  }, {});
128
135
  var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
129
136
  __html: body,
130
- } }, filteredAttributes);
137
+ }, className: undefined }, filteredAttributes);
131
138
  if (attributes.className) {
132
139
  compiledClasses.push(attributes.className);
133
140
  }
@@ -150,7 +157,7 @@ var IconChevronDownSmall = function (props) {
150
157
  };
151
158
 
152
159
 
153
- /* <windicss-keep class=""> */
160
+ /* <wind-keep class="filter"> */
154
161
 
155
162
  const classes = {
156
163
  button: 'flex leading-[24px] py-[10px] items-center relative w-full',
@@ -226,4 +233,4 @@ var DocMenu = function (_a) {
226
233
  export { DocMenu as default };
227
234
  //# sourceMappingURL=index.es.mjs.map
228
235
 
229
- /* <windicss-keep class="list-none p-0 relative pl-[16px] inline-block pl-[24px] text-indigo-500 dark:text-indigo-200 py-[8px] text-[16px] leading-[24px] py-[12px] leading-[20px] text-[14px] absolute w-[4px] z-10 top-[10%] h-[80%] rounded-full hidden group-hover:block bg-gray-300 transform transition-transform left-0 rotate-0 -rotate-90 ml-[16px] h-[36px] bg-indigo-500 transition-all duration-300 ml-[6px] mt-[4px] ml-[8px] border-l border-gray-100"> */
236
+ /* <wind-keep class="list-none p-0 relative pl-[16px] inline-block pl-[24px] text-indigo-500 dark:text-indigo-200 py-[8px] text-[16px] leading-[24px] py-[12px] leading-[20px] text-[14px] absolute w-[4px] z-10 top-[10%] h-[80%] rounded-full hidden group-hover:block bg-gray-300 text-indigo-200 transform transition-transform left-0 rotate-0 -rotate-90 ml-[16px] h-[36px] bg-indigo-500 transition-all duration-300 ml-[6px] mt-[4px] ml-[8px] border-l border-gray-100 flex py-[10px] items-center w-full font-medium pl-[40px]"> */