@cypress-design/react-checkbox 0.4.3 → 0.4.5

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @cypress-design/react-checkbox
2
2
 
3
+ ## 0.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105](https://github.com/cypress-io/cypress-design/pull/105) [`2f54f5b`](https://github.com/cypress-io/cypress-design/commit/2f54f5b867b60ba5ce2e40fd38870bd65187ba30) Thanks [@elevatebart](https://github.com/elevatebart)! - checkbox should not contain a div to be added inside an inline only tag (<p>)
8
+
9
+ - Updated dependencies [[`2f54f5b`](https://github.com/cypress-io/cypress-design/commit/2f54f5b867b60ba5ce2e40fd38870bd65187ba30), [`e82d8cb`](https://github.com/cypress-io/cypress-design/commit/e82d8cb60882a379d89f86d1ff7b8f1d5b56ce66)]:
10
+ - @cypress-design/react-icon@0.11.0
11
+
12
+ ## 0.4.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [#101](https://github.com/cypress-io/cypress-design/pull/101) [`1630e4c`](https://github.com/cypress-io/cypress-design/commit/1630e4c4200944cf6414cee9e92dcce6b4d8a576) Thanks [@mapsandapps](https://github.com/mapsandapps)! - Fix styles for Checkbox
17
+
3
18
  ## 0.4.3
4
19
 
5
20
  ### Patch Changes
package/Checkbox.tsx CHANGED
@@ -60,7 +60,10 @@ export const Checkbox: FunctionComponent<CheckboxProps> = ({
60
60
  }
61
61
 
62
62
  return (
63
- <div className={clsx(className, 'relative flex items-center')} {...rest}>
63
+ <span
64
+ className={clsx(className, 'block relative flex items-center')}
65
+ {...rest}
66
+ >
64
67
  <input
65
68
  id={id}
66
69
  className="absolute inset-0 w-0 h-0 opacity-0"
@@ -73,11 +76,12 @@ export const Checkbox: FunctionComponent<CheckboxProps> = ({
73
76
  />
74
77
  <label className="flex items-center" htmlFor={id}>
75
78
  {localChecked && (
79
+ // <windi-keep strokeColor="white"/>
76
80
  <IconCheckmarkSmall strokeColor="white" className="absolute" />
77
81
  )}
78
82
  <span
79
83
  className={clsx([
80
- `block border-1 rounded h-16px w-16px flex items-center text-white`,
84
+ `block border-1 border-solid rounded h-16px w-16px flex items-center text-white`,
81
85
  disabled
82
86
  ? 'border-gray-200 bg-gray-100'
83
87
  : localChecked
@@ -100,7 +104,7 @@ export const Checkbox: FunctionComponent<CheckboxProps> = ({
100
104
  </span>
101
105
  )}
102
106
  </label>
103
- </div>
107
+ </span>
104
108
  )
105
109
  }
106
110
 
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IACtE;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;CAC/D;AAQD,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CA6DrD,CAAA;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IACtE;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;CAC/D;AAQD,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CAiErD,CAAA;AAED,eAAe,QAAQ,CAAA"}
package/dist/index.es.mjs CHANGED
@@ -123,12 +123,14 @@ var Checkbox = function (_a) {
123
123
  setChecked(!localChecked);
124
124
  onChange(event);
125
125
  }
126
- return (React.createElement("div", __assign$1({ className: clsx(className, 'relative flex items-center') }, rest),
126
+ return (React.createElement("span", __assign$1({ className: clsx(className, 'block relative flex items-center') }, rest),
127
127
  React.createElement("input", { id: id, className: "absolute inset-0 w-0 h-0 opacity-0", "aria-describedby": id + "-description", name: name || id, type: "checkbox", onChange: onChangeInput, disabled: disabled, checked: localChecked }),
128
128
  React.createElement("label", { className: "flex items-center", htmlFor: id },
129
- localChecked && (React.createElement(IconCheckmarkSmall, { strokeColor: "white", className: "absolute" })),
129
+ localChecked && (
130
+ // <windi-keep strokeColor="white"/>
131
+ React.createElement(IconCheckmarkSmall, { strokeColor: "white", className: "absolute" })),
130
132
  React.createElement("span", { className: clsx([
131
- "block border-1 rounded h-16px w-16px flex items-center text-white",
133
+ "block border-1 border-solid rounded h-16px w-16px flex items-center text-white",
132
134
  disabled
133
135
  ? 'border-gray-200 bg-gray-100'
134
136
  : localChecked
@@ -147,5 +149,5 @@ var Checkbox = function (_a) {
147
149
 
148
150
  export { Checkbox as default };
149
151
 
150
- /* <windicss-keep class="relative flex items-center absolute inset-0 w-0 h-0 opacity-0 block border-1 rounded h-16px w-16px 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-2 text-16px leading-normal font-light select-none"> */
152
+ /* <windicss-keep class="block relative flex items-center absolute inset-0 w-0 h-0 opacity-0 border-1 border-solid rounded h-16px w-16px 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-2 text-16px leading-normal font-light select-none icon-dark-white"> */
151
153
  //# sourceMappingURL=index.es.mjs.map