ar-design 0.3.26 → 0.3.28

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.
@@ -17,7 +17,7 @@ const Button = ({ children, variant = "filled", shape, color = "light", border =
17
17
  _arButtonClassName.push(position.type);
18
18
  _arButtonClassName.push(position.inset.map((_inset) => _inset).join(" "));
19
19
  }
20
- return (React.createElement("button", { ref: _button, ...attributes, className: _arButtonClassName.map((c) => c).join(" "), onClick: (event) => {
20
+ return (React.createElement("button", { ref: _button, ...attributes, type: attributes.type ?? "button", className: _arButtonClassName.map((c) => c).join(" "), onClick: (event) => {
21
21
  // Disabled gelmesi durumunda işlem yapmasına izin verme...
22
22
  if (attributes.disabled)
23
23
  return;
@@ -76,6 +76,7 @@ const Input = forwardRef(({ variant = "outlined", color = "light", size = "norma
76
76
  name: event.target.name,
77
77
  value: newValue,
78
78
  type: event.target.type,
79
+ dataset: event.target.dataset,
79
80
  },
80
81
  });
81
82
  }
@@ -179,7 +179,7 @@ validation, }) => {
179
179
  ? _onChange.current(undefined)
180
180
  : _onChange.current(_iframeDocument.body.innerHTML);
181
181
  });
182
- }, 250);
182
+ }, 500);
183
183
  });
184
184
  // Observer'ı body üzerinde başlat
185
185
  observer.observe(_iframeDocument.body, { childList: true, subtree: true, characterData: true, attributes: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",