@cypress-design/react-docmenu 0.1.0 → 0.2.1
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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +19 -0
- package/DocMenu.tsx +1 -1
- package/ReadMe.md +0 -4
- package/_DocGroup.tsx +2 -1
- package/_DocLink.tsx +1 -1
- package/dist/{react/DocMenu.d.ts → DocMenu.d.ts} +1 -1
- package/dist/DocMenu.d.ts.map +1 -0
- package/dist/{react/_DocGroup.d.ts → _DocGroup.d.ts} +1 -1
- package/dist/_DocGroup.d.ts.map +1 -0
- package/dist/{react/_DocLink.d.ts → _DocLink.d.ts} +1 -1
- package/dist/_DocLink.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.mjs +5 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +26 -24
- package/tsconfig.build.json +3 -3
- package/tsconfig.json +1 -1
- package/dist/constants.d.ts +0 -17
- package/dist/constants.d.ts.map +0 -1
- package/dist/react/DocMenu.d.ts.map +0 -1
- package/dist/react/_DocGroup.d.ts.map +0 -1
- package/dist/react/_DocLink.d.ts.map +0 -1
- package/dist/react/index.d.ts +0 -3
- package/dist/react/index.d.ts.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,5 +2,5 @@ $ yarn build:module && yarn build:types
|
|
|
2
2
|
$ rollup -c ./rollup.config.mjs
|
|
3
3
|
[36m
|
|
4
4
|
[1m./index.ts[22m → [1m./dist/index.umd.js, ./dist/index.es.mjs[22m...[39m
|
|
5
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [
|
|
5
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m19.8s[22m[39m
|
|
6
6
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @cypress-design/react-docmenu
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`63ea78a`](https://github.com/cypress-io/cypress-design/commit/63ea78af2062fd5e3fb8c61fa4bcf85fd95e803b) Thanks [@elevatebart](https://github.com/elevatebart)! - add constants package to dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#196](https://github.com/cypress-io/cypress-design/pull/196) [`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0) Thanks [@elevatebart](https://github.com/elevatebart)! - refactor: avoid constants relative imports
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#203](https://github.com/cypress-io/cypress-design/pull/203) [`68f7726`](https://github.com/cypress-io/cypress-design/commit/68f77266223181ef479dc7ff77f8a7d32f3e5766) Thanks [@elevatebart](https://github.com/elevatebart)! - allow groups to be active
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0)]:
|
|
20
|
+
- @cypress-design/react-icon@0.20.0
|
|
21
|
+
|
|
3
22
|
## 0.1.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/DocMenu.tsx
CHANGED
package/ReadMe.md
CHANGED
package/_DocGroup.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { IconChevronDownSmall } from '@cypress-design/react-icon'
|
|
3
3
|
import clsx from 'clsx'
|
|
4
|
-
import { NavGroup, classes } from '
|
|
4
|
+
import { NavGroup, classes } from '@cypress-design/constants-docmenu'
|
|
5
5
|
import { DocLink } from './_DocLink'
|
|
6
6
|
|
|
7
7
|
export interface DocGroupProps {
|
|
@@ -60,6 +60,7 @@ export const DocGroup: React.FC<DocGroupProps> = ({
|
|
|
60
60
|
onClick={() => toggleMenu(!open)}
|
|
61
61
|
href={group.href}
|
|
62
62
|
className={clsx(classes.button, {
|
|
63
|
+
'text-indigo-500 dark:text-indigo-200': group.active,
|
|
63
64
|
[classes.topButton]: depth === 0,
|
|
64
65
|
[classes.leafButton]: depth,
|
|
65
66
|
})}
|
package/_DocLink.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { NavGroup, NavItemLink } from '
|
|
2
|
+
import { NavGroup, NavItemLink } from '@cypress-design/constants-docmenu';
|
|
3
3
|
export type NavItem = NavGroup | NavItemLink;
|
|
4
4
|
export interface DocMenuProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
5
5
|
items: NavItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocMenu.d.ts","sourceRoot":"./","sources":["DocMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAKzE,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAA;AAE5C,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC1E,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkB1C,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_DocGroup.d.ts","sourceRoot":"./","sources":["_DocGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,QAAQ,EAAW,MAAM,mCAAmC,CAAA;AAGrE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,QAAQ,CAAA;IACf,WAAW,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACrC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4G5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_DocLink.d.ts","sourceRoot":"./","sources":["_DocLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgD1C,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"./","sources":["index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.es.mjs
CHANGED
|
@@ -152,7 +152,7 @@ var IconChevronDownSmall = function (props) {
|
|
|
152
152
|
|
|
153
153
|
/* <windicss-keep class=""> */
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
const classes = {
|
|
156
156
|
button: 'flex leading-[24px] py-[10px] items-center relative w-full',
|
|
157
157
|
topButton: 'leading-[24px] text-[16px] pl-[24px] font-medium',
|
|
158
158
|
leafButton: 'leading-[20px] text-[14px] pl-[40px]',
|
|
@@ -187,7 +187,9 @@ var DocGroup = function (_a) {
|
|
|
187
187
|
}
|
|
188
188
|
var Head = collapsible ? 'button' : group.href ? 'a' : 'div';
|
|
189
189
|
return (React.createElement(React.Fragment, null,
|
|
190
|
-
React.createElement(Head, { onClick: function () { return toggleMenu(!open); }, href: group.href, className: clsx(classes.button, (_b = {
|
|
190
|
+
React.createElement(Head, { onClick: function () { return toggleMenu(!open); }, href: group.href, className: clsx(classes.button, (_b = {
|
|
191
|
+
'text-indigo-500 dark:text-indigo-200': group.active
|
|
192
|
+
},
|
|
191
193
|
_b[classes.topButton] = depth === 0,
|
|
192
194
|
_b[classes.leafButton] = depth,
|
|
193
195
|
_b)) },
|
|
@@ -224,4 +226,4 @@ var DocMenu = function (_a) {
|
|
|
224
226
|
export { DocMenu as default };
|
|
225
227
|
//# sourceMappingURL=index.es.mjs.map
|
|
226
228
|
|
|
227
|
-
/* <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
|
|
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"> */
|