@cypress-design/react-checkbox 0.4.6 → 0.5.0
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/CHANGELOG.md +11 -0
- package/Checkbox.tsx +2 -2
- package/CheckboxReact.cy.tsx +4 -0
- package/dist/index.es.mjs +4 -4
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -107,7 +107,7 @@ function __rest(s, e) {
|
|
|
107
107
|
var compileReactIconProperties = function (_a) {
|
|
108
108
|
var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
|
|
109
109
|
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
110
|
-
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName)) {
|
|
110
|
+
if (!iconsRegistry.ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
|
|
111
111
|
newAttributes[attrName] =
|
|
112
112
|
attributes[attrName];
|
|
113
113
|
}
|
|
@@ -155,7 +155,7 @@ var Checkbox = function (_a) {
|
|
|
155
155
|
// <windi-keep strokeColor="white"/>
|
|
156
156
|
React__namespace.createElement(IconCheckmarkSmall, { strokeColor: "white", className: "absolute" })),
|
|
157
157
|
React__namespace.createElement("span", { className: clsx__default["default"]([
|
|
158
|
-
"block border
|
|
158
|
+
"block border border-solid rounded h-[16px] w-[16px] flex flex-shrink-0 items-center text-white",
|
|
159
159
|
disabled
|
|
160
160
|
? 'border-gray-200 bg-gray-100'
|
|
161
161
|
: localChecked
|
|
@@ -168,11 +168,11 @@ var Checkbox = function (_a) {
|
|
|
168
168
|
]) }),
|
|
169
169
|
label && (React__namespace.createElement("span", { className: clsx__default["default"]([
|
|
170
170
|
disabled ? 'text-gray-500' : 'text-gray-800',
|
|
171
|
-
'block ml-8px text-16px leading-24px font-light select-none',
|
|
171
|
+
'block ml-[8px] text-[16px] leading-[24px] font-light select-none',
|
|
172
172
|
]) }, label)))));
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
module.exports = Checkbox;
|
|
176
176
|
|
|
177
|
-
/* <windicss-keep class="block relative flex items-center absolute inset-0 w-0 h-0 opacity-0 border
|
|
177
|
+
/* <windicss-keep class="block relative flex items-center absolute inset-0 w-0 h-0 opacity-0 border border-solid rounded h-[16px] w-[16px] flex-shrink-0 text-white border-gray-200 bg-gray-100 border-indigo-500 bg-indigo-400 border-jade-500 bg-jade-400 border-red-500 bg-red-400 bg-white text-gray-500 text-gray-800 ml-[8px] text-[16px] leading-[24px] font-light select-none icon-dark-white"> */
|
|
178
178
|
//# sourceMappingURL=index.umd.js.map
|