@cypress-design/react-docmenu 0.2.2 → 0.2.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/CHANGELOG.md +9 -0
- package/dist/index.es.mjs +11 -4
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +11 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -1
- package/tsconfig.json +0 -7
package/dist/index.umd.js
CHANGED
|
@@ -38,6 +38,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
38
38
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
39
39
|
PERFORMANCE OF THIS SOFTWARE.
|
|
40
40
|
***************************************************************************** */
|
|
41
|
+
/* global Reflect, Promise */
|
|
42
|
+
|
|
41
43
|
|
|
42
44
|
var __assign$1 = function() {
|
|
43
45
|
__assign$1 = Object.assign || function __assign(t) {
|
|
@@ -113,6 +115,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
113
115
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
114
116
|
PERFORMANCE OF THIS SOFTWARE.
|
|
115
117
|
***************************************************************************** */
|
|
118
|
+
/* global Reflect, Promise */
|
|
119
|
+
|
|
116
120
|
|
|
117
121
|
var __assign = function() {
|
|
118
122
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -140,7 +144,10 @@ function __rest(s, e) {
|
|
|
140
144
|
var compileReactIconProperties = function (_a) {
|
|
141
145
|
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
142
146
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
143
|
-
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
147
|
+
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
148
|
+
attrName !== 'name') {
|
|
149
|
+
// @ts-expect-error the ky of React's SVGProps is too broad and
|
|
150
|
+
// breaks here. Since we do not need to check for it. We keep the expect error
|
|
144
151
|
newAttributes[attrName] =
|
|
145
152
|
attributes[attrName];
|
|
146
153
|
}
|
|
@@ -148,7 +155,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
148
155
|
}, {});
|
|
149
156
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
150
157
|
__html: body,
|
|
151
|
-
} }, filteredAttributes);
|
|
158
|
+
}, className: undefined }, filteredAttributes);
|
|
152
159
|
if (attributes.className) {
|
|
153
160
|
compiledClasses.push(attributes.className);
|
|
154
161
|
}
|
|
@@ -171,7 +178,7 @@ var IconChevronDownSmall = function (props) {
|
|
|
171
178
|
};
|
|
172
179
|
|
|
173
180
|
|
|
174
|
-
/* <wind-keep class=""> */
|
|
181
|
+
/* <wind-keep class="filter"> */
|
|
175
182
|
|
|
176
183
|
const classes = {
|
|
177
184
|
button: 'flex leading-[24px] py-[10px] items-center relative w-full',
|
|
@@ -247,4 +254,4 @@ var DocMenu = function (_a) {
|
|
|
247
254
|
module.exports = DocMenu;
|
|
248
255
|
//# sourceMappingURL=index.umd.js.map
|
|
249
256
|
|
|
250
|
-
/* <wind-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 flex py-[10px] items-center w-full font-medium pl-[40px]"> */
|
|
257
|
+
/* <wind-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 text-indigo-200 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 flex py-[10px] items-center w-full font-medium pl-[40px]"> */
|