@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/dist/index.umd.js CHANGED
@@ -123,7 +123,10 @@ function __rest(s, e) {
123
123
  var compileReactIconProperties = function (_a) {
124
124
  var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
125
125
  var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
126
- if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
126
+ if (!iconsRegistry.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
127
130
  newAttributes[attrName] =
128
131
  attributes[attrName];
129
132
  }
@@ -131,7 +134,7 @@ var compileReactIconProperties = function (_a) {
131
134
  }, {});
132
135
  var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
133
136
  __html: body,
134
- } }, filteredAttributes);
137
+ }, className: undefined }, filteredAttributes);
135
138
  if (attributes.className) {
136
139
  compiledClasses.push(attributes.className);
137
140
  }
@@ -154,7 +157,7 @@ var IconChevronDownSmall = function (props) {
154
157
  };
155
158
 
156
159
 
157
- /* <wind-keep class=""> */
160
+ /* <wind-keep class="filter"> */
158
161
 
159
162
  var Accordion = function (_a) {
160
163
  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"]);
@@ -181,4 +184,4 @@ var Accordion = function (_a) {
181
184
  module.exports = Accordion;
182
185
  //# sourceMappingURL=index.umd.js.map
183
186
 
184
- /* <wind-keep class="flex-grow pr-[16px] open:icon-dark-gray-500 details-none card 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]"> */
187
+ /* <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]"> */