@cypress-design/react-accordion 0.4.3 → 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/CHANGELOG.md +9 -0
- package/dist/index.es.mjs +7 -4
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +7 -4
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 0.4.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.es.mjs
CHANGED
|
@@ -102,7 +102,10 @@ function __rest(s, e) {
|
|
|
102
102
|
var compileReactIconProperties = function (_a) {
|
|
103
103
|
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
104
104
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
105
|
-
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
|
|
106
109
|
newAttributes[attrName] =
|
|
107
110
|
attributes[attrName];
|
|
108
111
|
}
|
|
@@ -110,7 +113,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
110
113
|
}, {});
|
|
111
114
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
112
115
|
__html: body,
|
|
113
|
-
} }, filteredAttributes);
|
|
116
|
+
}, className: undefined }, filteredAttributes);
|
|
114
117
|
if (attributes.className) {
|
|
115
118
|
compiledClasses.push(attributes.className);
|
|
116
119
|
}
|
|
@@ -133,7 +136,7 @@ var IconChevronDownSmall = function (props) {
|
|
|
133
136
|
};
|
|
134
137
|
|
|
135
138
|
|
|
136
|
-
/* <wind-keep class=""> */
|
|
139
|
+
/* <wind-keep class="filter"> */
|
|
137
140
|
|
|
138
141
|
var Accordion = function (_a) {
|
|
139
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"]);
|
|
@@ -160,4 +163,4 @@ var Accordion = function (_a) {
|
|
|
160
163
|
export { Accordion as default };
|
|
161
164
|
//# sourceMappingURL=index.es.mjs.map
|
|
162
165
|
|
|
163
|
-
/* <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]"> */
|