sit-onyx 1.0.0-beta.87 → 1.0.0-beta.88
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { OnyxSystemButtonProps } from "./types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<OnyxSystemButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxSystemButtonProps> & Readonly<{}>, {
|
|
3
|
+
color: import("./types").SystemButtonColor;
|
|
3
4
|
autofocus: boolean;
|
|
4
5
|
disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
|
|
5
6
|
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OnyxButtonProps } from "../OnyxButton/types";
|
|
2
|
-
export type OnyxSystemButtonProps = Pick<OnyxButtonProps, "
|
|
2
|
+
export type OnyxSystemButtonProps = Pick<OnyxButtonProps, "disabled" | "autofocus" | "skeleton"> & {
|
|
3
3
|
/**
|
|
4
4
|
* Button label / text to show. Is always required (even if `icon` is set) for screen readers / accessibility.
|
|
5
5
|
*/
|
|
@@ -8,4 +8,10 @@ export type OnyxSystemButtonProps = Pick<OnyxButtonProps, "density" | "disabled"
|
|
|
8
8
|
* Icon to show. Will visually hide the label if set.
|
|
9
9
|
*/
|
|
10
10
|
icon?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Button color.
|
|
13
|
+
*/
|
|
14
|
+
color?: SystemButtonColor;
|
|
11
15
|
};
|
|
16
|
+
export declare const SYSTEM_BUTTON_COLORS: readonly ["intense", "soft", "medium"];
|
|
17
|
+
export type SystemButtonColor = (typeof SYSTEM_BUTTON_COLORS)[number];
|