@espressif/dashboard-ui-components 1.11.0 → 1.11.1
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
|
@@ -4,6 +4,16 @@ All notable changes to this project are documented here. The format is based on
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres
|
|
5
5
|
to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.11.1] - 2026-10-21
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **`CopyButton`, `Code`, `CodeEditor`, `CopiableText`** — the copy button no
|
|
11
|
+
longer submits the form it sits in. It rendered a `<button>` with no `type`,
|
|
12
|
+
which a form treats as a submit button, so copying a `CodeEditor`'s payload
|
|
13
|
+
also sent the form. The animated button behind it now defaults to
|
|
14
|
+
`type="button"`, as `Button` already does; pass `type="submit"` to opt in.
|
|
15
|
+
`asChild` leaves `type` as passed. No API change.
|
|
16
|
+
|
|
7
17
|
## [1.11.0] - 2026-10-14
|
|
8
18
|
|
|
9
19
|
### Changed
|
|
@@ -4,10 +4,11 @@ import "react";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { motion } from "motion/react";
|
|
6
6
|
//#region src/core/animate-ui/primitives/buttons/button.tsx
|
|
7
|
-
function Button({ hoverScale = 1.05, tapScale = .95, asChild = false, ...props }) {
|
|
7
|
+
function Button({ hoverScale = 1.05, tapScale = .95, asChild = false, type, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(asChild ? Slot : motion.button, {
|
|
9
9
|
whileTap: { scale: tapScale },
|
|
10
10
|
whileHover: { scale: hoverScale },
|
|
11
|
+
type: asChild ? type : type ?? "button",
|
|
11
12
|
...props
|
|
12
13
|
});
|
|
13
14
|
}
|
package/package.json
CHANGED