@cypress-design/react-accordion 0.4.1 → 0.4.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.
- package/.turbo/turbo-build.log +1 -1
- package/Accordion.tsx +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/index.es.mjs +7 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +7 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -39,6 +39,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
39
39
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
40
|
PERFORMANCE OF THIS SOFTWARE.
|
|
41
41
|
***************************************************************************** */
|
|
42
|
+
/* global Reflect, Promise */
|
|
43
|
+
|
|
42
44
|
|
|
43
45
|
var __assign$1 = function() {
|
|
44
46
|
__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) {
|
|
@@ -150,7 +154,7 @@ var IconChevronDownSmall = function (props) {
|
|
|
150
154
|
};
|
|
151
155
|
|
|
152
156
|
|
|
153
|
-
/* <
|
|
157
|
+
/* <wind-keep class=""> */
|
|
154
158
|
|
|
155
159
|
var Accordion = function (_a) {
|
|
156
160
|
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"]);
|
|
@@ -167,7 +171,7 @@ var Accordion = function (_a) {
|
|
|
167
171
|
Boolean(iconEl) && React__namespace.createElement("span", { className: CssClasses.icon }, iconEl),
|
|
168
172
|
Icon && !iconEl && React__namespace.createElement(Icon, { className: CssClasses.icon }),
|
|
169
173
|
(Icon || iconEl) && separator && (React__namespace.createElement("span", { className: CssClasses.separator, role: "separator" })),
|
|
170
|
-
React__namespace.createElement("span", { className: "flex-grow pr-[16px]" },
|
|
174
|
+
React__namespace.createElement("span", { className: "flex-grow grow pr-[16px]" },
|
|
171
175
|
React__namespace.createElement("span", { className: clsx(titleClassName !== null && titleClassName !== void 0 ? titleClassName : CssClasses.summaryTitleColor, CssClasses.summaryTitle) }, title),
|
|
172
176
|
description && (React__namespace.createElement("span", { className: clsx(CssClasses.summaryDescription, descriptionClassName !== null && descriptionClassName !== void 0 ? descriptionClassName : CssClasses.summaryDescriptionColor) }, description))),
|
|
173
177
|
React__namespace.createElement(IconChevronDownSmall, { strokeColor: "gray-300", className: clsx('open:icon-dark-gray-500', CssClasses.chevron) }))),
|
|
@@ -177,4 +181,4 @@ var Accordion = function (_a) {
|
|
|
177
181
|
module.exports = Accordion;
|
|
178
182
|
//# sourceMappingURL=index.umd.js.map
|
|
179
183
|
|
|
180
|
-
/* <
|
|
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]"> */
|