@cypress-design/react-checkbox 0.3.2 → 0.3.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 +2 -2
- 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) {
|
|
@@ -76,6 +78,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
76
78
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
77
79
|
PERFORMANCE OF THIS SOFTWARE.
|
|
78
80
|
***************************************************************************** */
|
|
81
|
+
/* global Reflect, Promise */
|
|
82
|
+
|
|
79
83
|
|
|
80
84
|
var __assign = function() {
|
|
81
85
|
__assign = Object.assign || function __assign(t) {
|
|
@@ -103,7 +107,10 @@ function __rest(s, e) {
|
|
|
103
107
|
var compileReactIconProperties = function (_a) {
|
|
104
108
|
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
105
109
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
106
|
-
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
110
|
+
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
111
|
+
attrName !== 'name') {
|
|
112
|
+
// @ts-expect-error the ky of React's SVGProps is too broad and
|
|
113
|
+
// breaks here. Since we do not need to check for it. We keep the expect error
|
|
107
114
|
newAttributes[attrName] =
|
|
108
115
|
attributes[attrName];
|
|
109
116
|
}
|
|
@@ -111,7 +118,7 @@ var compileReactIconProperties = function (_a) {
|
|
|
111
118
|
}, {});
|
|
112
119
|
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
113
120
|
__html: body,
|
|
114
|
-
} }, filteredAttributes);
|
|
121
|
+
}, className: undefined }, filteredAttributes);
|
|
115
122
|
if (attributes.className) {
|
|
116
123
|
compiledClasses.push(attributes.className);
|
|
117
124
|
}
|
|
@@ -133,7 +140,7 @@ var IconCheckmarkSmall = function (props) {
|
|
|
133
140
|
};
|
|
134
141
|
|
|
135
142
|
|
|
136
|
-
/* <wind-keep class=""> */
|
|
143
|
+
/* <wind-keep class="filter"> */
|
|
137
144
|
|
|
138
145
|
const Classes = {
|
|
139
146
|
wrapper: 'relative flex items-center',
|
|
@@ -183,4 +190,4 @@ var Checkbox = function (_a) {
|
|
|
183
190
|
module.exports = Checkbox;
|
|
184
191
|
//# sourceMappingURL=index.umd.js.map
|
|
185
192
|
|
|
186
|
-
/* <wind-keep class="absolute text-gray-500 text-gray-800 dark:text-gray-200
|
|
193
|
+
/* <wind-keep class="absolute text-gray-500 text-gray-800 dark:text-gray-200 relative flex items-center inset-0 w-0 h-0 opacity-0 border border-solid rounded h-[16px] w-[16px] flex-shrink-0 text-white block ml-[8px] text-[16px] leading-[24px] font-light select-none border-indigo-500 bg-indigo-400 border-red-500 bg-red-400 border-gray-200 bg-gray-100 bg-white"> */
|