@gamecrafters/base-ui 0.0.30 → 0.0.32
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/build/components/badge/Badge.types.d.ts +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/switch/Switch.d.ts +5 -0
- package/build/components/switch/Switch.types.d.ts +58 -0
- package/build/components/switch/SwitchContext.d.ts +10 -0
- package/build/components/switch/SwitchControl.d.ts +5 -0
- package/build/components/switch/SwitchHiddenInput.d.ts +5 -0
- package/build/components/switch/SwitchLabel.d.ts +5 -0
- package/build/components/switch/SwitchRootProvider.d.ts +6 -0
- package/build/components/switch/SwitchThumb.d.ts +5 -0
- package/build/components/switch/index.d.ts +32 -0
- package/build/components/switch/useSwitch.d.ts +2 -0
- package/build/main.cjs.js +2 -2
- package/build/main.esm.js +2 -2
- package/build/styles/main.css +1 -1
- package/package.json +2 -2
- package/build/components/toggle-switch/ToggleSwitch.d.ts +0 -21
- package/build/components/toggle-switch/ToggleSwitch.types.d.ts +0 -21
- package/build/components/toggle-switch/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamecrafters/base-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"description": "An implementation of GameCrafters' Base UI Design System using React.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./react": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vitest": "^4.1.10"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@gamecrafters/base-ui-icons": "^0.0.
|
|
73
|
+
"@gamecrafters/base-ui-icons": "^0.0.11",
|
|
74
74
|
"@lexical/code-core": "^0.49.0",
|
|
75
75
|
"@lexical/link": "^0.49.0",
|
|
76
76
|
"@lexical/list": "^0.49.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ToggleSwitchSize, ToggleSwitchStatusLabelPosition } from "./ToggleSwitch.types";
|
|
3
|
-
export declare const DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY = 2000;
|
|
4
|
-
declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange"> & {
|
|
5
|
-
"aria-labelledby": string;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
defaultChecked?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
onChange?: (checked: boolean) => void;
|
|
11
|
-
onClick?: React.MouseEventHandler;
|
|
12
|
-
size?: ToggleSwitchSize;
|
|
13
|
-
statusLabelPosition?: ToggleSwitchStatusLabelPosition;
|
|
14
|
-
loadingLabelDelay?: number;
|
|
15
|
-
loadingLabel?: string;
|
|
16
|
-
buttonType?: import("./ToggleSwitch.types").ToggleSwitchButtonType;
|
|
17
|
-
buttonLabelOn?: string;
|
|
18
|
-
buttonLabelOff?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
} & React.RefAttributes<any>) => React.ReactNode;
|
|
21
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
export type ToggleSwitchSize = "small" | "medium";
|
|
3
|
-
export type ToggleSwitchStatusLabelPosition = "start" | "end";
|
|
4
|
-
export type ToggleSwitchButtonType = "button" | "submit" | "reset";
|
|
5
|
-
export type ToggleSwitchProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> & {
|
|
6
|
-
"aria-labelledby": string;
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
defaultChecked?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
onChange?: (checked: boolean) => void;
|
|
12
|
-
onClick?: React.MouseEventHandler;
|
|
13
|
-
size?: ToggleSwitchSize;
|
|
14
|
-
statusLabelPosition?: ToggleSwitchStatusLabelPosition;
|
|
15
|
-
loadingLabelDelay?: number;
|
|
16
|
-
loadingLabel?: string;
|
|
17
|
-
buttonType?: ToggleSwitchButtonType;
|
|
18
|
-
buttonLabelOn?: string;
|
|
19
|
-
buttonLabelOff?: string;
|
|
20
|
-
className?: string;
|
|
21
|
-
};
|