@cypress-design/react-accordion 0.4.2 → 0.4.4
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/Accordion.tsx +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/index.es.mjs +12 -5
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +12 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/tsconfig.json +0 -7
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 [1m16.8s[22m[39m
|
|
6
6
|
$ tsc --project ./tsconfig.build.json
|
package/Accordion.tsx
CHANGED
|
@@ -54,7 +54,7 @@ export const Accordion: React.FC<
|
|
|
54
54
|
{(Icon || iconEl) && separator && (
|
|
55
55
|
<span className={CssClasses.separator} role="separator" />
|
|
56
56
|
)}
|
|
57
|
-
<span className="flex-grow pr-[16px]">
|
|
57
|
+
<span className="flex-grow grow pr-[16px]">
|
|
58
58
|
<span
|
|
59
59
|
className={clsx(
|
|
60
60
|
titleClassName ?? CssClasses.summaryTitleColor,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @cypress-design/react-accordion
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
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.4.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`4917933`](https://github.com/cypress-io/cypress-design/commit/4917933c82078090c7c29e94a090737e0427821d) Thanks [@elevatebart](https://github.com/elevatebart)! - make accordion compatible with tw
|
|
17
|
+
|
|
3
18
|
## 0.4.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.es.mjs
CHANGED
|
@@ -18,6 +18,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
18
18
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
|
20
20
|
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise */
|
|
22
|
+
|
|
21
23
|
|
|
22
24
|
var __assign$1 = function() {
|
|
23
25
|
__assign$1 = Object.assign || function __assign(t) {
|
|
@@ -71,6 +73,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
71
73
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
72
74
|
PERFORMANCE OF THIS SOFTWARE.
|
|
73
75
|
***************************************************************************** */
|
|
76
|
+
/* global Reflect, Promise */
|
|
77
|
+
|
|
74
78
|
|
|
75
79
|
var __assign = function() {
|
|
76
80
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -98,7 +102,10 @@ function __rest(s, e) {
|
|
|
98
102
|
var compileReactIconProperties = function (_a) {
|
|
99
103
|
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
100
104
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
101
|
-
if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
105
|
+
if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
106
|
+
attrName !== 'name') {
|
|
107
|
+
// @ts-expect-error the ky of React's SVGProps is too broad and
|
|
108
|
+
// breaks here. Since we do not need to check for it. We keep the expect error
|
|
102
109
|
newAttributes[attrName] =
|
|
103
110
|
attributes[attrName];
|
|
104
111
|
}
|
|
@@ -106,7 +113,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
106
113
|
}, {});
|
|
107
114
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
108
115
|
__html: body,
|
|
109
|
-
} }, filteredAttributes);
|
|
116
|
+
}, className: undefined }, filteredAttributes);
|
|
110
117
|
if (attributes.className) {
|
|
111
118
|
compiledClasses.push(attributes.className);
|
|
112
119
|
}
|
|
@@ -129,7 +136,7 @@ var IconChevronDownSmall = function (props) {
|
|
|
129
136
|
};
|
|
130
137
|
|
|
131
138
|
|
|
132
|
-
/* <wind-keep class=""> */
|
|
139
|
+
/* <wind-keep class="filter"> */
|
|
133
140
|
|
|
134
141
|
var Accordion = function (_a) {
|
|
135
142
|
var title = _a.title, description = _a.description, Icon = _a.icon, iconEl = _a.iconEl, _b = _a.separator, separator = _b === void 0 ? false : _b, children = _a.children, headingClassName = _a.headingClassName, titleClassName = _a.titleClassName, descriptionClassName = _a.descriptionClassName, fullWidthContent = _a.fullWidthContent, rest = __rest$1(_a, ["title", "description", "icon", "iconEl", "separator", "children", "headingClassName", "titleClassName", "descriptionClassName", "fullWidthContent"]);
|
|
@@ -146,7 +153,7 @@ var Accordion = function (_a) {
|
|
|
146
153
|
Boolean(iconEl) && React.createElement("span", { className: CssClasses.icon }, iconEl),
|
|
147
154
|
Icon && !iconEl && React.createElement(Icon, { className: CssClasses.icon }),
|
|
148
155
|
(Icon || iconEl) && separator && (React.createElement("span", { className: CssClasses.separator, role: "separator" })),
|
|
149
|
-
React.createElement("span", { className: "flex-grow pr-[16px]" },
|
|
156
|
+
React.createElement("span", { className: "flex-grow grow pr-[16px]" },
|
|
150
157
|
React.createElement("span", { className: clsx(titleClassName !== null && titleClassName !== void 0 ? titleClassName : CssClasses.summaryTitleColor, CssClasses.summaryTitle) }, title),
|
|
151
158
|
description && (React.createElement("span", { className: clsx(CssClasses.summaryDescription, descriptionClassName !== null && descriptionClassName !== void 0 ? descriptionClassName : CssClasses.summaryDescriptionColor) }, description))),
|
|
152
159
|
React.createElement(IconChevronDownSmall, { strokeColor: "gray-300", className: clsx('open:icon-dark-gray-500', CssClasses.chevron) }))),
|
|
@@ -156,4 +163,4 @@ var Accordion = function (_a) {
|
|
|
156
163
|
export { Accordion as default };
|
|
157
164
|
//# sourceMappingURL=index.es.mjs.map
|
|
158
165
|
|
|
159
|
-
/* <wind-keep class="flex-grow pr-[16px] open:
|
|
166
|
+
/* <wind-keep class="flex-grow grow pr-[16px] open:rounded-b-none flex flex-row py-[12px] px-[24px] flex-nowrap items-center min-h-[63px] bg-white text-[18px] leading-[28px] font-medium text-indigo-500 block text-[14px] leading-[20px] font-normal text-gray-700 mr-[24px] flex-shrink-0 w-[1px] h-[40px] bg-gray-100 mr-[16px] transition transform rotate-0 open:rotate-180 border border-gray-100 rounded-b-md border-t-0 py-[16px]"> */
|