@kjun-ui/react 0.5.1 → 0.6.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/README.md +1 -1
- package/dist/index.cjs +87 -80
- package/dist/index.js +87 -80
- package/dist/styles.css +0 -2579
- package/dist/types/packages/react/src/controls.d.cts +3 -2
- package/dist/types/packages/react/src/controls.d.ts +3 -2
- package/dist/types/shared/package-runtime/group-keyboard.d.cts +7 -0
- package/dist/types/shared/package-runtime/group-keyboard.d.ts +7 -0
- package/dist/types/shared/package-runtime/selection-indicator.d.cts +4 -0
- package/dist/types/shared/package-runtime/selection-indicator.d.ts +4 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +1 -1
- package/dist/types/shared/package-runtime/table-presentation.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonSize, type InputSize } from "@kjun-ui/tokens";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
3
|
+
import { groupKeydown } from "../../../shared/package-runtime/group-keyboard.cjs";
|
|
3
4
|
export type ChoiceValue = string | number | boolean | null;
|
|
4
5
|
export interface ChoiceOption<T = ChoiceValue> {
|
|
5
6
|
value: T;
|
|
@@ -62,7 +63,7 @@ export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextA
|
|
|
62
63
|
onValueChange?: (value: string) => void;
|
|
63
64
|
}
|
|
64
65
|
export declare const KjunTextarea: import("react").ForwardRefExoticComponent<KjunTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
65
|
-
export
|
|
66
|
+
export { groupKeydown };
|
|
66
67
|
export interface KjunButtonGroupProps {
|
|
67
68
|
value: ChoiceValue;
|
|
68
69
|
options: ChoiceOption[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonSize, type InputSize } from "@kjun-ui/tokens";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
3
|
+
import { groupKeydown } from "../../../shared/package-runtime/group-keyboard.js";
|
|
3
4
|
export type ChoiceValue = string | number | boolean | null;
|
|
4
5
|
export interface ChoiceOption<T = ChoiceValue> {
|
|
5
6
|
value: T;
|
|
@@ -62,7 +63,7 @@ export interface KjunTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextA
|
|
|
62
63
|
onValueChange?: (value: string) => void;
|
|
63
64
|
}
|
|
64
65
|
export declare const KjunTextarea: import("react").ForwardRefExoticComponent<KjunTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
65
|
-
export
|
|
66
|
+
export { groupKeydown };
|
|
66
67
|
export interface KjunButtonGroupProps {
|
|
67
68
|
value: ChoiceValue;
|
|
68
69
|
options: ChoiceOption[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Arrow, Home and End keys move focus between a group's enabled buttons, following text direction. */
|
|
2
|
+
export declare function groupKeydown(event: {
|
|
3
|
+
key: string;
|
|
4
|
+
target: EventTarget | null;
|
|
5
|
+
currentTarget: EventTarget | null;
|
|
6
|
+
preventDefault(): void;
|
|
7
|
+
}): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Arrow, Home and End keys move focus between a group's enabled buttons, following text direction. */
|
|
2
|
+
export declare function groupKeydown(event: {
|
|
3
|
+
key: string;
|
|
4
|
+
target: EventTarget | null;
|
|
5
|
+
currentTarget: EventTarget | null;
|
|
6
|
+
preventDefault(): void;
|
|
7
|
+
}): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { TableColumn, TableCardSection, TableProps, useTableModel } from "./table.cjs";
|
|
3
3
|
export declare function tablePresentation<Row extends object>(props: TableProps<Row, unknown>, mobile: boolean): {
|
|
4
4
|
card: boolean;
|
|
5
5
|
visible: TableColumn<Row>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { TableColumn, TableCardSection, TableProps, useTableModel } from "./table.js";
|
|
3
3
|
export declare function tablePresentation<Row extends object>(props: TableProps<Row, unknown>, mobile: boolean): {
|
|
4
4
|
card: boolean;
|
|
5
5
|
visible: TableColumn<Row>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://ui.kjun.dev",
|
|
6
6
|
"repository": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@kjun-ui/tokens": "0.
|
|
44
|
+
"@kjun-ui/tokens": "0.6.1",
|
|
45
45
|
"react-aria-components": "1.21.1",
|
|
46
|
-
"@kjun-ui/icons": "0.
|
|
46
|
+
"@kjun-ui/icons": "0.6.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^19.2.3",
|