@jacshuo/onyx 0.1.6 → 0.1.8
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 +63 -31
- package/dist/Accordion.cjs +1 -0
- package/dist/Accordion.d.cts +23 -0
- package/dist/Accordion.d.ts +23 -0
- package/dist/Accordion.js +1 -0
- package/dist/Alert.cjs +1 -0
- package/dist/Alert.d.cts +28 -0
- package/dist/Alert.d.ts +28 -0
- package/dist/Alert.js +1 -0
- package/dist/Badge.cjs +1 -0
- package/dist/Badge.d.cts +10 -0
- package/dist/Badge.d.ts +10 -0
- package/dist/Badge.js +1 -0
- package/dist/Button.cjs +1 -0
- package/dist/Button.d.cts +10 -0
- package/dist/Button.d.ts +10 -0
- package/dist/Button.js +1 -0
- package/dist/Card.cjs +1 -0
- package/dist/Card.d.cts +33 -0
- package/dist/Card.d.ts +33 -0
- package/dist/Card.js +1 -0
- package/dist/Chat.cjs +1 -0
- package/dist/Chat.d.cts +32 -0
- package/dist/{components/Chat.d.ts → Chat.d.ts} +8 -5
- package/dist/Chat.js +1 -0
- package/dist/CinePlayer.cjs +1 -0
- package/dist/CinePlayer.d.cts +40 -0
- package/dist/{components/CinePlayer.d.ts → CinePlayer.d.ts} +8 -5
- package/dist/CinePlayer.js +1 -0
- package/dist/Dialog.cjs +1 -0
- package/dist/Dialog.d.cts +24 -0
- package/dist/Dialog.d.ts +24 -0
- package/dist/Dialog.js +1 -0
- package/dist/Dropdown.cjs +1 -0
- package/dist/Dropdown.d.cts +59 -0
- package/dist/{components/Dropdown.d.ts → Dropdown.d.ts} +10 -8
- package/dist/Dropdown.js +1 -0
- package/dist/DropdownButton.cjs +1 -0
- package/dist/DropdownButton.d.cts +37 -0
- package/dist/{components/DropdownButton.d.ts → DropdownButton.d.ts} +11 -7
- package/dist/DropdownButton.js +1 -0
- package/dist/FileExplorer.cjs +1 -0
- package/dist/FileExplorer.d.cts +96 -0
- package/dist/{components/FileExplorer.d.ts → FileExplorer.d.ts} +12 -9
- package/dist/FileExplorer.js +1 -0
- package/dist/FilmReel.cjs +1 -0
- package/dist/FilmReel.d.cts +43 -0
- package/dist/{components/FilmReel.d.ts → FilmReel.d.ts} +9 -6
- package/dist/FilmReel.js +1 -0
- package/dist/Header.cjs +1 -0
- package/dist/Header.d.cts +53 -0
- package/dist/{components/Header.d.ts → Header.d.ts} +9 -6
- package/dist/Header.js +1 -0
- package/dist/ImageCard.cjs +1 -0
- package/dist/ImageCard.d.cts +22 -0
- package/dist/ImageCard.d.ts +22 -0
- package/dist/ImageCard.js +1 -0
- package/dist/Input.cjs +1 -0
- package/dist/Input.d.cts +24 -0
- package/dist/{components/Input.d.ts → Input.d.ts} +12 -9
- package/dist/Input.js +1 -0
- package/dist/Label.cjs +1 -0
- package/dist/Label.d.cts +10 -0
- package/dist/Label.d.ts +10 -0
- package/dist/Label.js +1 -0
- package/dist/List.cjs +1 -0
- package/dist/List.d.cts +11 -0
- package/dist/List.d.ts +11 -0
- package/dist/List.js +1 -0
- package/dist/MiniPlayer.cjs +1 -0
- package/dist/MiniPlayer.d.cts +53 -0
- package/dist/{components/MiniPlayer.d.ts → MiniPlayer.d.ts} +10 -7
- package/dist/MiniPlayer.js +1 -0
- package/dist/Panel.cjs +1 -0
- package/dist/Panel.d.cts +12 -0
- package/dist/Panel.d.ts +12 -0
- package/dist/Panel.js +1 -0
- package/dist/SideNav.cjs +1 -0
- package/dist/SideNav.d.cts +67 -0
- package/dist/{components/SideNav.d.ts → SideNav.d.ts} +10 -7
- package/dist/SideNav.js +1 -0
- package/dist/Table.cjs +1 -0
- package/dist/Table.d.cts +82 -0
- package/dist/{components/Table.d.ts → Table.d.ts} +22 -19
- package/dist/Table.js +1 -0
- package/dist/Tabs.cjs +1 -0
- package/dist/Tabs.d.cts +28 -0
- package/dist/Tabs.d.ts +28 -0
- package/dist/Tabs.js +1 -0
- package/dist/Tooltip.cjs +1 -0
- package/dist/Tooltip.d.cts +17 -0
- package/dist/Tooltip.d.ts +17 -0
- package/dist/Tooltip.js +1 -0
- package/dist/Tree.cjs +1 -0
- package/dist/Tree.d.cts +33 -0
- package/dist/{components/Tree.d.ts → Tree.d.ts} +7 -5
- package/dist/Tree.js +1 -0
- package/dist/chunks/chunk-2DFUB3KN.js +1 -0
- package/dist/chunks/chunk-4BKLB4KV.cjs +1 -0
- package/dist/chunks/chunk-5PFWPAB6.js +1 -0
- package/dist/chunks/chunk-5XPTHIGM.cjs +1 -0
- package/dist/chunks/chunk-63LKYF4D.cjs +1 -0
- package/dist/chunks/chunk-66LIYNLT.cjs +1 -0
- package/dist/chunks/chunk-6AMBRNVW.js +1 -0
- package/dist/chunks/chunk-6HZRNHE6.js +1 -0
- package/dist/chunks/chunk-6OLB4BUJ.js +1 -0
- package/dist/chunks/chunk-6QQPQPD2.cjs +1 -0
- package/dist/chunks/chunk-7NYDMXZT.cjs +1 -0
- package/dist/chunks/chunk-A5KQAHDU.js +6 -0
- package/dist/chunks/chunk-AAFG7R4U.cjs +1 -0
- package/dist/chunks/chunk-ACQOSYBI.js +1 -0
- package/dist/chunks/chunk-AXBJKPZZ.js +1 -0
- package/dist/chunks/chunk-BQLPFPCA.cjs +1 -0
- package/dist/chunks/chunk-BW6NCATH.js +1 -0
- package/dist/chunks/chunk-CGGBE3GJ.cjs +2 -0
- package/dist/chunks/chunk-DWTXICFN.js +1 -0
- package/dist/chunks/chunk-DXXCR4ON.js +1 -0
- package/dist/chunks/chunk-EK4BC3WT.cjs +1 -0
- package/dist/chunks/chunk-ENRXEISR.js +1 -0
- package/dist/chunks/chunk-ER2MYWQO.cjs +1 -0
- package/dist/chunks/chunk-ETVECKSE.js +2 -0
- package/dist/chunks/chunk-GAK5OQW4.cjs +1 -0
- package/dist/chunks/chunk-HA5QPLJP.cjs +1 -0
- package/dist/chunks/chunk-JAKATE3I.js +1 -0
- package/dist/chunks/chunk-KVV5ZEYV.cjs +1 -0
- package/dist/chunks/chunk-MXDZHU6E.cjs +55 -0
- package/dist/chunks/chunk-N36YROV3.js +1 -0
- package/dist/chunks/chunk-N4QZRR2Y.cjs +17 -0
- package/dist/chunks/chunk-NBLJWONR.cjs +1 -0
- package/dist/chunks/chunk-NCJ5A6VE.js +1 -0
- package/dist/chunks/chunk-NG7F3GCN.js +55 -0
- package/dist/chunks/chunk-ORNYPP3O.cjs +1 -0
- package/dist/chunks/chunk-OZVJMUXX.cjs +1 -0
- package/dist/chunks/chunk-P652JDOU.cjs +1 -0
- package/dist/chunks/chunk-PHAX43YF.js +1 -0
- package/dist/chunks/chunk-PODSD5UT.js +1 -0
- package/dist/chunks/chunk-PSMWVB3O.js +1 -0
- package/dist/chunks/chunk-QLKUAE3R.cjs +1 -0
- package/dist/chunks/chunk-QTADJ7I5.js +17 -0
- package/dist/chunks/chunk-R2K6KI4L.js +1 -0
- package/dist/chunks/chunk-SCSMM2J4.js +1 -0
- package/dist/chunks/chunk-SMZQSZH2.js +1 -0
- package/dist/chunks/chunk-TDI2N27U.cjs +1 -0
- package/dist/chunks/chunk-U2ZQHP4I.cjs +1 -0
- package/dist/chunks/chunk-UDH3OKNZ.cjs +6 -0
- package/dist/chunks/chunk-VDC7N5TC.js +1 -0
- package/dist/chunks/chunk-X5YP5TMY.cjs +1 -0
- package/dist/chunks/chunk-XCP37UUA.cjs +1 -0
- package/dist/chunks/chunk-XOO3AGIT.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -27
- package/dist/index.js +1 -1
- package/dist/styles/CinePlayer.css +54 -0
- package/dist/styles/FileExplorer.css +38 -0
- package/dist/styles/FilmReel.css +24 -0
- package/dist/styles/MiniPlayer.css +71 -0
- package/dist/styles/base.css +3701 -0
- package/dist/styles/tokens.css +116 -0
- package/dist/styles.css +18 -18
- package/dist/theme.cjs +1 -0
- package/dist/theme.d.cts +51 -0
- package/dist/theme.d.ts +51 -0
- package/dist/theme.js +1 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +1 -0
- package/package.json +38 -9
- package/dist/components/Accordion.d.ts +0 -20
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -25
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -7
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -7
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -30
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Chat.d.ts.map +0 -1
- package/dist/components/CinePlayer.d.ts.map +0 -1
- package/dist/components/Dialog.d.ts +0 -21
- package/dist/components/Dialog.d.ts.map +0 -1
- package/dist/components/Dropdown.d.ts.map +0 -1
- package/dist/components/DropdownButton.d.ts.map +0 -1
- package/dist/components/FileExplorer.d.ts.map +0 -1
- package/dist/components/FilmReel.d.ts.map +0 -1
- package/dist/components/Header.d.ts.map +0 -1
- package/dist/components/ImageCard.d.ts +0 -23
- package/dist/components/ImageCard.d.ts.map +0 -1
- package/dist/components/Input.d.ts.map +0 -1
- package/dist/components/Label.d.ts +0 -7
- package/dist/components/Label.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -8
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/MiniPlayer.d.ts.map +0 -1
- package/dist/components/Panel.d.ts +0 -9
- package/dist/components/Panel.d.ts.map +0 -1
- package/dist/components/SideNav.d.ts.map +0 -1
- package/dist/components/Table.d.ts.map +0 -1
- package/dist/components/Tabs.d.ts +0 -25
- package/dist/components/Tabs.d.ts.map +0 -1
- package/dist/components/Tooltip.d.ts +0 -14
- package/dist/components/Tooltip.d.ts.map +0 -1
- package/dist/components/Tree.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/styles/theme.d.ts +0 -48
- package/dist/styles/theme.d.ts.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface DropdownOption {
|
|
5
|
+
/** Unique value for this option. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Display label. Defaults to value. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Icon rendered before the label. */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
/** Disable this option. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Nested children for cascading (hierarchical) menus. */
|
|
14
|
+
children?: DropdownOption[];
|
|
15
|
+
}
|
|
16
|
+
interface DropdownBaseProps {
|
|
17
|
+
/** Available options. Supports nested children for cascading. */
|
|
18
|
+
options: DropdownOption[];
|
|
19
|
+
/** Placeholder text when nothing is selected. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** Allow the user to type to filter options. @default false */
|
|
22
|
+
editable?: boolean;
|
|
23
|
+
/** Called when the user submits a value not in the list (editable mode). */
|
|
24
|
+
onAddItem?: (value: string) => void;
|
|
25
|
+
/** Disable the entire dropdown. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Menu alignment. @default 'left' */
|
|
28
|
+
align?: "left" | "right";
|
|
29
|
+
/** Additional class name for the root container. */
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
interface DropdownSingleProps extends DropdownBaseProps {
|
|
33
|
+
/** Enable multi-select with checkboxes. @default false */
|
|
34
|
+
multiple?: false;
|
|
35
|
+
/** Currently selected value (controlled, single mode). */
|
|
36
|
+
value?: string;
|
|
37
|
+
/** Callback fired when an option is selected (single mode). */
|
|
38
|
+
onChange?: (value: string, option: DropdownOption) => void;
|
|
39
|
+
/** Not used in single mode. */
|
|
40
|
+
selected?: never;
|
|
41
|
+
/** Not used in single mode. */
|
|
42
|
+
onSelectionChange?: never;
|
|
43
|
+
}
|
|
44
|
+
interface DropdownMultipleProps extends DropdownBaseProps {
|
|
45
|
+
/** Enable multi-select with checkboxes. */
|
|
46
|
+
multiple: true;
|
|
47
|
+
/** Currently selected values (controlled, multi mode). */
|
|
48
|
+
selected?: string[];
|
|
49
|
+
/** Callback fired when selection changes (multi mode). */
|
|
50
|
+
onSelectionChange?: (selected: string[]) => void;
|
|
51
|
+
/** Not used in multi mode. */
|
|
52
|
+
value?: never;
|
|
53
|
+
/** Not used in multi mode. */
|
|
54
|
+
onChange?: never;
|
|
55
|
+
}
|
|
56
|
+
type DropdownProps = DropdownSingleProps | DropdownMultipleProps;
|
|
57
|
+
declare function Dropdown(props: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
export { Dropdown, type DropdownMultipleProps, type DropdownOption, type DropdownProps, type DropdownSingleProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
interface DropdownOption {
|
|
3
5
|
/** Unique value for this option. */
|
|
4
6
|
value: string;
|
|
5
7
|
/** Display label. Defaults to value. */
|
|
@@ -23,11 +25,11 @@ interface DropdownBaseProps {
|
|
|
23
25
|
/** Disable the entire dropdown. */
|
|
24
26
|
disabled?: boolean;
|
|
25
27
|
/** Menu alignment. @default 'left' */
|
|
26
|
-
align?:
|
|
28
|
+
align?: "left" | "right";
|
|
27
29
|
/** Additional class name for the root container. */
|
|
28
30
|
className?: string;
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
interface DropdownSingleProps extends DropdownBaseProps {
|
|
31
33
|
/** Enable multi-select with checkboxes. @default false */
|
|
32
34
|
multiple?: false;
|
|
33
35
|
/** Currently selected value (controlled, single mode). */
|
|
@@ -39,7 +41,7 @@ export interface DropdownSingleProps extends DropdownBaseProps {
|
|
|
39
41
|
/** Not used in single mode. */
|
|
40
42
|
onSelectionChange?: never;
|
|
41
43
|
}
|
|
42
|
-
|
|
44
|
+
interface DropdownMultipleProps extends DropdownBaseProps {
|
|
43
45
|
/** Enable multi-select with checkboxes. */
|
|
44
46
|
multiple: true;
|
|
45
47
|
/** Currently selected values (controlled, multi mode). */
|
|
@@ -51,7 +53,7 @@ export interface DropdownMultipleProps extends DropdownBaseProps {
|
|
|
51
53
|
/** Not used in multi mode. */
|
|
52
54
|
onChange?: never;
|
|
53
55
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
type DropdownProps = DropdownSingleProps | DropdownMultipleProps;
|
|
57
|
+
declare function Dropdown(props: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
59
|
+
export { Dropdown, type DropdownMultipleProps, type DropdownOption, type DropdownProps, type DropdownSingleProps };
|
package/dist/Dropdown.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as Dropdown}from'./chunks/chunk-PSMWVB3O.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk4BKLB4KV_cjs=require('./chunks/chunk-4BKLB4KV.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"DropdownButton",{enumerable:true,get:function(){return chunk4BKLB4KV_cjs.a}});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { buttonVariants } from './theme.cjs';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
interface DropdownItem {
|
|
8
|
+
/** Unique key. Falls back to label when label is a string. */
|
|
9
|
+
key?: string;
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
/** Disable this item. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Divider rendered before this item. */
|
|
14
|
+
divider?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, VariantProps<typeof buttonVariants> {
|
|
18
|
+
/** Button label. */
|
|
19
|
+
label: React.ReactNode;
|
|
20
|
+
/** Dropdown menu items. */
|
|
21
|
+
items: DropdownItem[];
|
|
22
|
+
/** Menu alignment. @default 'left' */
|
|
23
|
+
align?: "left" | "right";
|
|
24
|
+
/** Show a search/add input at the top of the menu. */
|
|
25
|
+
editable?: boolean;
|
|
26
|
+
/** Called when the user presses Enter on a value not in the list. */
|
|
27
|
+
onAddItem?: (value: string) => void;
|
|
28
|
+
/** Enable multi-select with checkboxes. */
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
/** Currently selected keys (controlled). */
|
|
31
|
+
selected?: string[];
|
|
32
|
+
/** Called when the selection changes (multi-select mode). */
|
|
33
|
+
onSelectionChange?: (selected: string[]) => void;
|
|
34
|
+
}
|
|
35
|
+
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { DropdownButton, type DropdownButtonProps, type DropdownItem };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { buttonVariants } from '
|
|
4
|
-
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { buttonVariants } from './theme.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
interface DropdownItem {
|
|
5
8
|
/** Unique key. Falls back to label when label is a string. */
|
|
6
9
|
key?: string;
|
|
7
10
|
label: React.ReactNode;
|
|
@@ -11,13 +14,13 @@ export interface DropdownItem {
|
|
|
11
14
|
divider?: boolean;
|
|
12
15
|
onClick?: () => void;
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, VariantProps<typeof buttonVariants> {
|
|
15
18
|
/** Button label. */
|
|
16
19
|
label: React.ReactNode;
|
|
17
20
|
/** Dropdown menu items. */
|
|
18
21
|
items: DropdownItem[];
|
|
19
22
|
/** Menu alignment. @default 'left' */
|
|
20
|
-
align?:
|
|
23
|
+
align?: "left" | "right";
|
|
21
24
|
/** Show a search/add input at the top of the menu. */
|
|
22
25
|
editable?: boolean;
|
|
23
26
|
/** Called when the user presses Enter on a value not in the list. */
|
|
@@ -29,5 +32,6 @@ export interface DropdownButtonProps extends Omit<React.ButtonHTMLAttributes<HTM
|
|
|
29
32
|
/** Called when the selection changes (multi-select mode). */
|
|
30
33
|
onSelectionChange?: (selected: string[]) => void;
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, ...props }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { DropdownButton, type DropdownButtonProps, type DropdownItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as DropdownButton}from'./chunks/chunk-JAKATE3I.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkMXDZHU6E_cjs=require('./chunks/chunk-MXDZHU6E.cjs');require('./chunks/chunk-U2ZQHP4I.cjs'),require('./chunks/chunk-BQLPFPCA.cjs'),require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FileExplorer",{enumerable:true,get:function(){return chunkMXDZHU6E_cjs.a}});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface FileExplorerItem {
|
|
5
|
+
/** File or directory name (including extension). */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Absolute or virtual path. */
|
|
8
|
+
path: string;
|
|
9
|
+
/** Item type. */
|
|
10
|
+
type: "file" | "directory";
|
|
11
|
+
/** Size in bytes (files only). */
|
|
12
|
+
size?: number;
|
|
13
|
+
/** File extension (e.g. '.tsx'). Auto-derived from name if omitted. */
|
|
14
|
+
extension?: string;
|
|
15
|
+
/** Last modified date. */
|
|
16
|
+
modifiedAt?: Date | string;
|
|
17
|
+
/** Creation date. */
|
|
18
|
+
createdAt?: Date | string;
|
|
19
|
+
/** MIME type string. */
|
|
20
|
+
mimeType?: string;
|
|
21
|
+
/** Whether this item is hidden. */
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
}
|
|
24
|
+
type FileExplorerViewMode = "list" | "grid";
|
|
25
|
+
type FileExplorerDockSide = "left" | "right";
|
|
26
|
+
/** Toolbar input mode: filter current list or navigate to a path. */
|
|
27
|
+
type FileExplorerInputMode = "search" | "navigate";
|
|
28
|
+
/** A custom action shown in the properties panel. */
|
|
29
|
+
interface FileExplorerAction {
|
|
30
|
+
/** Unique key for the action. */
|
|
31
|
+
key: string;
|
|
32
|
+
/** Label displayed on the button. */
|
|
33
|
+
label: string;
|
|
34
|
+
/** Optional lucide icon component. */
|
|
35
|
+
icon?: React.ComponentType<{
|
|
36
|
+
className?: string;
|
|
37
|
+
}>;
|
|
38
|
+
/** Called when the action is clicked. */
|
|
39
|
+
onClick: (file: FileExplorerItem) => void;
|
|
40
|
+
}
|
|
41
|
+
interface FileExplorerProps {
|
|
42
|
+
/** Files / directories to display. */
|
|
43
|
+
files: FileExplorerItem[];
|
|
44
|
+
/** Window title. @default 'File Explorer' */
|
|
45
|
+
title?: string;
|
|
46
|
+
/** Accent color (any CSS color). @default '#8b5cf6' */
|
|
47
|
+
accent?: string;
|
|
48
|
+
/** Default view mode. @default 'list' */
|
|
49
|
+
defaultView?: FileExplorerViewMode;
|
|
50
|
+
/** Initial window position {x, y}. */
|
|
51
|
+
initialPosition?: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
/** Initial window dimensions (px). */
|
|
56
|
+
initialSize?: {
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
};
|
|
60
|
+
/** Enable dock-to-edge behaviour. @default false */
|
|
61
|
+
dockable?: boolean;
|
|
62
|
+
/** Which edge to dock to. @default 'right' */
|
|
63
|
+
dockSide?: FileExplorerDockSide;
|
|
64
|
+
/** Whether the explorer starts visible. @default true */
|
|
65
|
+
visible?: boolean;
|
|
66
|
+
/** Called on double-click of a file. */
|
|
67
|
+
onFileOpen?: (file: FileExplorerItem) => void;
|
|
68
|
+
/** Called when selection changes. */
|
|
69
|
+
onSelectionChange?: (files: FileExplorerItem[]) => void;
|
|
70
|
+
/** Called when navigating into a directory. */
|
|
71
|
+
onNavigate?: (path: string) => void;
|
|
72
|
+
/** Called when the user confirms deletion of selected files via the Delete key. */
|
|
73
|
+
onDelete?: (files: FileExplorerItem[]) => void;
|
|
74
|
+
/** Called on close button. */
|
|
75
|
+
onClose?: () => void;
|
|
76
|
+
/** Called on minimize/dock. */
|
|
77
|
+
onMinimize?: () => void;
|
|
78
|
+
/** Called when user presses Enter in navigate mode. Receives the typed path. */
|
|
79
|
+
onPathSubmit?: (path: string) => void;
|
|
80
|
+
/** Default input mode. @default 'search' */
|
|
81
|
+
defaultInputMode?: FileExplorerInputMode;
|
|
82
|
+
/** Custom actions shown in the properties panel. Each receives the inspected file. */
|
|
83
|
+
actions?: FileExplorerAction[];
|
|
84
|
+
/** Whether the window is resizable. @default true */
|
|
85
|
+
resizable?: boolean;
|
|
86
|
+
/** Minimum window size when resizing. @default { width: 400, height: 300 } */
|
|
87
|
+
minSize?: {
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
};
|
|
91
|
+
/** Extra class on outermost wrapper. */
|
|
92
|
+
className?: string;
|
|
93
|
+
}
|
|
94
|
+
declare function FileExplorer({ files, title, accent, defaultView, initialPosition, initialSize, dockable, dockSide, visible: visibleProp, onFileOpen, onSelectionChange, onNavigate, onDelete, onClose, onMinimize, onPathSubmit, defaultInputMode, actions, resizable, minSize, className, }: FileExplorerProps): react_jsx_runtime.JSX.Element | null;
|
|
95
|
+
|
|
96
|
+
export { FileExplorer, type FileExplorerAction, type FileExplorerDockSide, type FileExplorerInputMode, type FileExplorerItem, type FileExplorerProps, type FileExplorerViewMode };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
interface FileExplorerItem {
|
|
3
5
|
/** File or directory name (including extension). */
|
|
4
6
|
name: string;
|
|
5
7
|
/** Absolute or virtual path. */
|
|
6
8
|
path: string;
|
|
7
9
|
/** Item type. */
|
|
8
|
-
type:
|
|
10
|
+
type: "file" | "directory";
|
|
9
11
|
/** Size in bytes (files only). */
|
|
10
12
|
size?: number;
|
|
11
13
|
/** File extension (e.g. '.tsx'). Auto-derived from name if omitted. */
|
|
@@ -19,12 +21,12 @@ export interface FileExplorerItem {
|
|
|
19
21
|
/** Whether this item is hidden. */
|
|
20
22
|
hidden?: boolean;
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
type FileExplorerViewMode = "list" | "grid";
|
|
25
|
+
type FileExplorerDockSide = "left" | "right";
|
|
24
26
|
/** Toolbar input mode: filter current list or navigate to a path. */
|
|
25
|
-
|
|
27
|
+
type FileExplorerInputMode = "search" | "navigate";
|
|
26
28
|
/** A custom action shown in the properties panel. */
|
|
27
|
-
|
|
29
|
+
interface FileExplorerAction {
|
|
28
30
|
/** Unique key for the action. */
|
|
29
31
|
key: string;
|
|
30
32
|
/** Label displayed on the button. */
|
|
@@ -36,7 +38,7 @@ export interface FileExplorerAction {
|
|
|
36
38
|
/** Called when the action is clicked. */
|
|
37
39
|
onClick: (file: FileExplorerItem) => void;
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
interface FileExplorerProps {
|
|
40
42
|
/** Files / directories to display. */
|
|
41
43
|
files: FileExplorerItem[];
|
|
42
44
|
/** Window title. @default 'File Explorer' */
|
|
@@ -89,5 +91,6 @@ export interface FileExplorerProps {
|
|
|
89
91
|
/** Extra class on outermost wrapper. */
|
|
90
92
|
className?: string;
|
|
91
93
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
declare function FileExplorer({ files, title, accent, defaultView, initialPosition, initialSize, dockable, dockSide, visible: visibleProp, onFileOpen, onSelectionChange, onNavigate, onDelete, onClose, onMinimize, onPathSubmit, defaultInputMode, actions, resizable, minSize, className, }: FileExplorerProps): react_jsx_runtime.JSX.Element | null;
|
|
95
|
+
|
|
96
|
+
export { FileExplorer, type FileExplorerAction, type FileExplorerDockSide, type FileExplorerInputMode, type FileExplorerItem, type FileExplorerProps, type FileExplorerViewMode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as FileExplorer}from'./chunks/chunk-NG7F3GCN.js';import'./chunks/chunk-NCJ5A6VE.js';import'./chunks/chunk-N36YROV3.js';import'./chunks/chunk-ACQOSYBI.js';import'./chunks/chunk-AXBJKPZZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkCGGBE3GJ_cjs=require('./chunks/chunk-CGGBE3GJ.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"FilmReel",{enumerable:true,get:function(){return chunkCGGBE3GJ_cjs.a}});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface FilmReelPhoto {
|
|
5
|
+
src: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
/** A short memoir or description for this photo. */
|
|
9
|
+
description?: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
camera?: string;
|
|
12
|
+
lens?: string;
|
|
13
|
+
aperture?: string;
|
|
14
|
+
shutter?: string;
|
|
15
|
+
iso?: string;
|
|
16
|
+
date?: string;
|
|
17
|
+
location?: string;
|
|
18
|
+
[key: string]: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface FilmReelAction {
|
|
22
|
+
key: string;
|
|
23
|
+
icon: React.ReactNode;
|
|
24
|
+
activeIcon?: React.ReactNode;
|
|
25
|
+
label: string;
|
|
26
|
+
toggle?: boolean;
|
|
27
|
+
}
|
|
28
|
+
type FilmReelLayout = "strip" | "sheet" | "stack";
|
|
29
|
+
interface FilmReelProps {
|
|
30
|
+
photos: FilmReelPhoto[];
|
|
31
|
+
layout?: FilmReelLayout;
|
|
32
|
+
actions?: FilmReelAction[];
|
|
33
|
+
onAction?: (action: string, photo: FilmReelPhoto, index: number) => void;
|
|
34
|
+
className?: string;
|
|
35
|
+
showGrain?: boolean;
|
|
36
|
+
/** Left-side header text for the contact sheet layout. */
|
|
37
|
+
sheetTitle?: string;
|
|
38
|
+
/** Right-side label text for the contact sheet layout. */
|
|
39
|
+
sheetLabel?: string;
|
|
40
|
+
}
|
|
41
|
+
declare function FilmReel({ photos, layout, actions, onAction, className, showGrain, sheetTitle, sheetLabel, }: FilmReelProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
export { FilmReel, type FilmReelAction, type FilmReelLayout, type FilmReelPhoto, type FilmReelProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
interface FilmReelPhoto {
|
|
3
5
|
src: string;
|
|
4
6
|
alt?: string;
|
|
5
7
|
title?: string;
|
|
@@ -16,15 +18,15 @@ export interface FilmReelPhoto {
|
|
|
16
18
|
[key: string]: string | undefined;
|
|
17
19
|
};
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
interface FilmReelAction {
|
|
20
22
|
key: string;
|
|
21
23
|
icon: React.ReactNode;
|
|
22
24
|
activeIcon?: React.ReactNode;
|
|
23
25
|
label: string;
|
|
24
26
|
toggle?: boolean;
|
|
25
27
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
type FilmReelLayout = "strip" | "sheet" | "stack";
|
|
29
|
+
interface FilmReelProps {
|
|
28
30
|
photos: FilmReelPhoto[];
|
|
29
31
|
layout?: FilmReelLayout;
|
|
30
32
|
actions?: FilmReelAction[];
|
|
@@ -36,5 +38,6 @@ export interface FilmReelProps {
|
|
|
36
38
|
/** Right-side label text for the contact sheet layout. */
|
|
37
39
|
sheetLabel?: string;
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
declare function FilmReel({ photos, layout, actions, onAction, className, showGrain, sheetTitle, sheetLabel, }: FilmReelProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
export { FilmReel, type FilmReelAction, type FilmReelLayout, type FilmReelPhoto, type FilmReelProps };
|
package/dist/FilmReel.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as FilmReel}from'./chunks/chunk-ETVECKSE.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Header.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkP652JDOU_cjs=require('./chunks/chunk-P652JDOU.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Header",{enumerable:true,get:function(){return chunkP652JDOU_cjs.a}});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface HeaderNavItem {
|
|
5
|
+
/** Display label. */
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
/** URL or route path. */
|
|
8
|
+
href?: string;
|
|
9
|
+
/** Marks this item as currently active. */
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Click handler (for SPA routing or custom behaviour). */
|
|
12
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
interface HeaderAction {
|
|
15
|
+
/** Unique key. Falls back to index. */
|
|
16
|
+
key?: string;
|
|
17
|
+
/** Icon or element to render. */
|
|
18
|
+
icon: React.ReactNode;
|
|
19
|
+
/** Accessible label for the button. */
|
|
20
|
+
"aria-label": string;
|
|
21
|
+
/** Click handler. */
|
|
22
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
23
|
+
/** Render as a link instead of a button. */
|
|
24
|
+
href?: string;
|
|
25
|
+
/** Open in new tab (when href is set). */
|
|
26
|
+
external?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface HeaderProps {
|
|
29
|
+
/** Brand text, logo element, or both. */
|
|
30
|
+
brand?: React.ReactNode;
|
|
31
|
+
/** Click handler on the brand element (e.g. navigate home). */
|
|
32
|
+
onBrandClick?: (e: React.MouseEvent) => void;
|
|
33
|
+
/** Primary navigation items displayed after the brand. */
|
|
34
|
+
navItems?: HeaderNavItem[];
|
|
35
|
+
/** Action buttons rendered on the right side (e.g. search, theme toggle, login). */
|
|
36
|
+
actions?: HeaderAction[];
|
|
37
|
+
/** Override the link component used for nav items (e.g. React-Router NavLink). */
|
|
38
|
+
linkComponent?: React.ComponentType<{
|
|
39
|
+
href: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
}>;
|
|
44
|
+
/** Fixed height class. @default 'h-12' */
|
|
45
|
+
height?: string;
|
|
46
|
+
/** Additional class names for the root header element. */
|
|
47
|
+
className?: string;
|
|
48
|
+
/** Content rendered between nav items and actions (e.g. search bar). */
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
export { Header, type HeaderAction, type HeaderNavItem, type HeaderProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
interface HeaderNavItem {
|
|
3
5
|
/** Display label. */
|
|
4
6
|
label: React.ReactNode;
|
|
5
7
|
/** URL or route path. */
|
|
@@ -9,13 +11,13 @@ export interface HeaderNavItem {
|
|
|
9
11
|
/** Click handler (for SPA routing or custom behaviour). */
|
|
10
12
|
onClick?: (e: React.MouseEvent) => void;
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
interface HeaderAction {
|
|
13
15
|
/** Unique key. Falls back to index. */
|
|
14
16
|
key?: string;
|
|
15
17
|
/** Icon or element to render. */
|
|
16
18
|
icon: React.ReactNode;
|
|
17
19
|
/** Accessible label for the button. */
|
|
18
|
-
|
|
20
|
+
"aria-label": string;
|
|
19
21
|
/** Click handler. */
|
|
20
22
|
onClick?: (e: React.MouseEvent) => void;
|
|
21
23
|
/** Render as a link instead of a button. */
|
|
@@ -23,7 +25,7 @@ export interface HeaderAction {
|
|
|
23
25
|
/** Open in new tab (when href is set). */
|
|
24
26
|
external?: boolean;
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
interface HeaderProps {
|
|
27
29
|
/** Brand text, logo element, or both. */
|
|
28
30
|
brand?: React.ReactNode;
|
|
29
31
|
/** Click handler on the brand element (e.g. navigate home). */
|
|
@@ -46,5 +48,6 @@ export interface HeaderProps {
|
|
|
46
48
|
/** Content rendered between nav items and actions (e.g. search bar). */
|
|
47
49
|
children?: React.ReactNode;
|
|
48
50
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, className, children, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
export { Header, type HeaderAction, type HeaderNavItem, type HeaderProps };
|
package/dist/Header.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as Header}from'./chunks/chunk-XOO3AGIT.js';import'./chunks/chunk-AXBJKPZZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk6QQPQPD2_cjs=require('./chunks/chunk-6QQPQPD2.cjs');require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"ImageCard",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.a}});Object.defineProperty(exports,"ImageCardActions",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.e}});Object.defineProperty(exports,"ImageCardBody",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.b}});Object.defineProperty(exports,"ImageCardDescription",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.d}});Object.defineProperty(exports,"ImageCardTitle",{enumerable:true,get:function(){return chunk6QQPQPD2_cjs.c}});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface ImageCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Image source URL. */
|
|
6
|
+
src: string;
|
|
7
|
+
/** Image alt text. */
|
|
8
|
+
alt?: string;
|
|
9
|
+
/** Fixed aspect ratio for the image area. @default '16/9' */
|
|
10
|
+
aspectRatio?: string;
|
|
11
|
+
}
|
|
12
|
+
type ImageCardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
type ImageCardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
14
|
+
type ImageCardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
15
|
+
type ImageCardActionsProps = React.HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
declare function ImageCard({ src, alt, aspectRatio, className, children, ...props }: ImageCardProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ImageCardBody({ className, ...props }: ImageCardBodyProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function ImageCardTitle({ className, ...props }: ImageCardTitleProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function ImageCardDescription({ className, ...props }: ImageCardDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function ImageCardActions({ className, ...props }: ImageCardActionsProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { ImageCard, ImageCardActions, type ImageCardActionsProps, ImageCardBody, type ImageCardBodyProps, ImageCardDescription, type ImageCardDescriptionProps, type ImageCardProps, ImageCardTitle, type ImageCardTitleProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface ImageCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Image source URL. */
|
|
6
|
+
src: string;
|
|
7
|
+
/** Image alt text. */
|
|
8
|
+
alt?: string;
|
|
9
|
+
/** Fixed aspect ratio for the image area. @default '16/9' */
|
|
10
|
+
aspectRatio?: string;
|
|
11
|
+
}
|
|
12
|
+
type ImageCardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
type ImageCardTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
14
|
+
type ImageCardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
15
|
+
type ImageCardActionsProps = React.HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
declare function ImageCard({ src, alt, aspectRatio, className, children, ...props }: ImageCardProps): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function ImageCardBody({ className, ...props }: ImageCardBodyProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function ImageCardTitle({ className, ...props }: ImageCardTitleProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function ImageCardDescription({ className, ...props }: ImageCardDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function ImageCardActions({ className, ...props }: ImageCardActionsProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { ImageCard, ImageCardActions, type ImageCardActionsProps, ImageCardBody, type ImageCardBodyProps, ImageCardDescription, type ImageCardDescriptionProps, type ImageCardProps, ImageCardTitle, type ImageCardTitleProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as ImageCard,e as ImageCardActions,b as ImageCardBody,d as ImageCardDescription,c as ImageCardTitle}from'./chunks/chunk-6AMBRNVW.js';import'./chunks/chunk-AXBJKPZZ.js';
|
package/dist/Input.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkXCP37UUA_cjs=require('./chunks/chunk-XCP37UUA.cjs');require('./chunks/chunk-NBLJWONR.cjs'),require('./chunks/chunk-X5YP5TMY.cjs');Object.defineProperty(exports,"Input",{enumerable:true,get:function(){return chunkXCP37UUA_cjs.a}});
|
package/dist/Input.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { inputVariants } from './theme.cjs';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
|
|
7
|
+
type InputVariants = VariantProps<typeof inputVariants>;
|
|
8
|
+
type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
9
|
+
state?: InputVariants["state"];
|
|
10
|
+
inputSize?: InputVariants["size"];
|
|
11
|
+
/** Icon or label shown at the start of the input with a highlighted background */
|
|
12
|
+
prefix?: React.ReactNode;
|
|
13
|
+
/** Icon shown inside the input at the end (non-interactive decoration) */
|
|
14
|
+
suffix?: React.ReactNode;
|
|
15
|
+
/** Clickable action button rendered at the end of the input */
|
|
16
|
+
action?: {
|
|
17
|
+
icon: React.ReactNode;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare function Input({ state, inputSize, className, prefix, suffix, action, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
export { Input };
|