@omer-x/tailwind-ui-kit 1.0.0-alpha.13 → 1.0.0-alpha.14

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.
@@ -3,9 +3,10 @@ function isDirty(el) {
3
3
  return Array.from(el.options).filter((o) => o.selected).map((o) => o.value).join(",") !== Array.from(el.options).filter((o) => o.defaultSelected).map((o) => o.value).join(",");
4
4
  }
5
5
  if (el.type === "checkbox" || el.type === "radio") {
6
- return el.checked !== el.defaultChecked;
6
+ const baseline = el.dataset.defaultChecked !== void 0 ? el.dataset.defaultChecked === "true" : el.defaultChecked;
7
+ return el.checked !== baseline;
7
8
  }
8
- return el.value !== el.defaultValue;
9
+ return el.value !== (el.dataset.defaultValue ?? el.defaultValue);
9
10
  }
10
11
  function getDirtyFormData(form) {
11
12
  const dirty = new FormData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omer-x/tailwind-ui-kit",
3
- "version": "1.0.0-alpha.13",
3
+ "version": "1.0.0-alpha.14",
4
4
  "description": "Tailwind CSS-based React component library for building user interfaces",
5
5
  "keywords": [
6
6
  "tailwind",