@voidable/ui-react 0.0.0 → 0.2.0
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/dist/index.d.ts +77 -0
- package/dist/ui-react.js +6 -6
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -15,10 +15,13 @@ import { VoidComposeInput } from '@voidable/ui';
|
|
|
15
15
|
import { VoidDialog } from '@voidable/ui';
|
|
16
16
|
import { VoidDivider } from '@voidable/ui';
|
|
17
17
|
import { VoidDrawer } from '@voidable/ui';
|
|
18
|
+
import { VoidDropdownMenu } from '@voidable/ui';
|
|
19
|
+
import { VoidDropdownMenuItem } from '@voidable/ui';
|
|
18
20
|
import { VoidErrorFallback } from '@voidable/ui';
|
|
19
21
|
import { VoidField } from '@voidable/ui';
|
|
20
22
|
import { VoidFileUpload } from '@voidable/ui';
|
|
21
23
|
import { VoidHamburger } from '@voidable/ui';
|
|
24
|
+
import { VoidIndicator } from '@voidable/ui';
|
|
22
25
|
import { VoidInput } from '@voidable/ui';
|
|
23
26
|
import { VoidList } from '@voidable/ui';
|
|
24
27
|
import { VoidListItem } from '@voidable/ui';
|
|
@@ -32,10 +35,14 @@ import { VoidProgress } from '@voidable/ui';
|
|
|
32
35
|
import { VoidRadio } from '@voidable/ui';
|
|
33
36
|
import { VoidRadioGroup } from '@voidable/ui';
|
|
34
37
|
import { VoidScrollArea } from '@voidable/ui';
|
|
38
|
+
import { VoidSegmentedControl } from '@voidable/ui';
|
|
39
|
+
import { VoidSegmentedControlItem } from '@voidable/ui';
|
|
35
40
|
import { VoidSelect } from '@voidable/ui';
|
|
41
|
+
import { VoidSidebar } from '@voidable/ui';
|
|
36
42
|
import { VoidSkeleton } from '@voidable/ui';
|
|
37
43
|
import { VoidSlider } from '@voidable/ui';
|
|
38
44
|
import { VoidSpinner } from '@voidable/ui';
|
|
45
|
+
import { VoidStat } from '@voidable/ui';
|
|
39
46
|
import { VoidStatusDot } from '@voidable/ui';
|
|
40
47
|
import { VoidStepper } from '@voidable/ui';
|
|
41
48
|
import { VoidSwitch } from '@voidable/ui';
|
|
@@ -46,6 +53,7 @@ import { VoidTag } from '@voidable/ui';
|
|
|
46
53
|
import { VoidTextarea } from '@voidable/ui';
|
|
47
54
|
import { VoidToast } from '@voidable/ui';
|
|
48
55
|
import { VoidToastContainer } from '@voidable/ui';
|
|
56
|
+
import { VoidToggle } from '@voidable/ui';
|
|
49
57
|
import { VoidTooltip } from '@voidable/ui';
|
|
50
58
|
|
|
51
59
|
export declare const Accordion: default_2.ForwardRefExoticComponent<{
|
|
@@ -182,6 +190,20 @@ export declare const Drawer: default_2.ForwardRefExoticComponent<{
|
|
|
182
190
|
children?: default_2.ReactNode;
|
|
183
191
|
} & default_2.RefAttributes<VoidDrawer>>;
|
|
184
192
|
|
|
193
|
+
export declare const DropdownMenu: default_2.ForwardRefExoticComponent<{
|
|
194
|
+
open?: boolean;
|
|
195
|
+
position?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
|
|
196
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "open" | "position"> & {
|
|
197
|
+
children?: default_2.ReactNode;
|
|
198
|
+
} & default_2.RefAttributes<VoidDropdownMenu>>;
|
|
199
|
+
|
|
200
|
+
export declare const DropdownMenuItem: default_2.ForwardRefExoticComponent<{
|
|
201
|
+
disabled?: boolean;
|
|
202
|
+
destructive?: boolean;
|
|
203
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "disabled" | "destructive"> & {
|
|
204
|
+
children?: default_2.ReactNode;
|
|
205
|
+
} & default_2.RefAttributes<VoidDropdownMenuItem>>;
|
|
206
|
+
|
|
185
207
|
export declare const ErrorFallback: default_2.ForwardRefExoticComponent<{
|
|
186
208
|
heading?: string;
|
|
187
209
|
message?: string;
|
|
@@ -218,6 +240,17 @@ export declare const Hamburger: default_2.ForwardRefExoticComponent<{
|
|
|
218
240
|
children?: default_2.ReactNode;
|
|
219
241
|
} & default_2.RefAttributes<VoidHamburger>>;
|
|
220
242
|
|
|
243
|
+
export declare const Indicator: default_2.ForwardRefExoticComponent<{
|
|
244
|
+
color?: "default" | "error" | "warning" | "success" | "info" | "notice";
|
|
245
|
+
size?: "sm" | "md" | "lg" | "xl" | "xxl";
|
|
246
|
+
count?: number;
|
|
247
|
+
ping?: boolean;
|
|
248
|
+
overlay?: boolean;
|
|
249
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
250
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "size" | "position" | "count" | "ping" | "overlay"> & {
|
|
251
|
+
children?: default_2.ReactNode;
|
|
252
|
+
} & default_2.RefAttributes<VoidIndicator>>;
|
|
253
|
+
|
|
221
254
|
export declare const Input: default_2.ForwardRefExoticComponent<{
|
|
222
255
|
type?: "text" | "email" | "password" | "number" | "tel" | "url" | "search";
|
|
223
256
|
value?: string;
|
|
@@ -333,6 +366,20 @@ export declare const ScrollArea: default_2.ForwardRefExoticComponent<{
|
|
|
333
366
|
children?: default_2.ReactNode;
|
|
334
367
|
} & default_2.RefAttributes<VoidScrollArea>>;
|
|
335
368
|
|
|
369
|
+
export declare const SegmentedControl: default_2.ForwardRefExoticComponent<{
|
|
370
|
+
value?: string;
|
|
371
|
+
size?: "sm" | "md" | "lg" | "xl" | "xxl";
|
|
372
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "size" | "value"> & {
|
|
373
|
+
children?: default_2.ReactNode;
|
|
374
|
+
} & default_2.RefAttributes<VoidSegmentedControl>>;
|
|
375
|
+
|
|
376
|
+
export declare const SegmentedControlItem: default_2.ForwardRefExoticComponent<{
|
|
377
|
+
value?: string;
|
|
378
|
+
disabled?: boolean;
|
|
379
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "disabled" | "value"> & {
|
|
380
|
+
children?: default_2.ReactNode;
|
|
381
|
+
} & default_2.RefAttributes<VoidSegmentedControlItem>>;
|
|
382
|
+
|
|
336
383
|
export declare const Select: default_2.ForwardRefExoticComponent<{
|
|
337
384
|
value?: string;
|
|
338
385
|
disabled?: boolean;
|
|
@@ -345,6 +392,15 @@ export declare const Select: default_2.ForwardRefExoticComponent<{
|
|
|
345
392
|
children?: default_2.ReactNode;
|
|
346
393
|
} & default_2.RefAttributes<VoidSelect>>;
|
|
347
394
|
|
|
395
|
+
export declare const Sidebar: default_2.ForwardRefExoticComponent<{
|
|
396
|
+
position?: "left" | "right";
|
|
397
|
+
collapsed?: boolean;
|
|
398
|
+
width?: string;
|
|
399
|
+
collapsedWidth?: string;
|
|
400
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "position" | "collapsed" | "width" | "collapsedWidth"> & {
|
|
401
|
+
children?: default_2.ReactNode;
|
|
402
|
+
} & default_2.RefAttributes<VoidSidebar>>;
|
|
403
|
+
|
|
348
404
|
export declare const Skeleton: default_2.ForwardRefExoticComponent<{
|
|
349
405
|
variant?: "text" | "circular" | "rectangular";
|
|
350
406
|
} & Omit<default_2.HTMLAttributes<HTMLElement>, "variant"> & {
|
|
@@ -371,6 +427,17 @@ export declare const Spinner: default_2.ForwardRefExoticComponent<{
|
|
|
371
427
|
children?: default_2.ReactNode;
|
|
372
428
|
} & default_2.RefAttributes<VoidSpinner>>;
|
|
373
429
|
|
|
430
|
+
export declare const Stat: default_2.ForwardRefExoticComponent<{
|
|
431
|
+
label?: string;
|
|
432
|
+
value?: string;
|
|
433
|
+
delta?: string;
|
|
434
|
+
trend?: "up" | "down" | "flat" | "error" | "warning" | "success" | "info" | "notice" | "highlight" | null;
|
|
435
|
+
color?: "default" | "error" | "warning" | "success" | "info" | "notice";
|
|
436
|
+
size?: "sm" | "md" | "lg" | "xl" | "xxl";
|
|
437
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "label" | "size" | "value" | "delta" | "trend"> & {
|
|
438
|
+
children?: default_2.ReactNode;
|
|
439
|
+
} & default_2.RefAttributes<VoidStat>>;
|
|
440
|
+
|
|
374
441
|
export declare const StatusDot: default_2.ForwardRefExoticComponent<{
|
|
375
442
|
status?: "online" | "away" | "offline";
|
|
376
443
|
} & Omit<default_2.HTMLAttributes<HTMLElement>, "status"> & {
|
|
@@ -457,6 +524,16 @@ export declare const ToastContainer: default_2.ForwardRefExoticComponent<{
|
|
|
457
524
|
children?: default_2.ReactNode;
|
|
458
525
|
} & default_2.RefAttributes<VoidToastContainer>>;
|
|
459
526
|
|
|
527
|
+
export declare const Toggle: default_2.ForwardRefExoticComponent<{
|
|
528
|
+
pressed?: boolean;
|
|
529
|
+
disabled?: boolean;
|
|
530
|
+
color?: "default" | "error" | "warning" | "success" | "info" | "notice";
|
|
531
|
+
size?: "sm" | "md" | "lg" | "xl" | "xxl";
|
|
532
|
+
variant?: "outline" | "filled" | "ghost" | "solid";
|
|
533
|
+
} & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "size" | "variant" | "disabled" | "pressed"> & {
|
|
534
|
+
children?: default_2.ReactNode;
|
|
535
|
+
} & default_2.RefAttributes<VoidToggle>>;
|
|
536
|
+
|
|
460
537
|
export declare const Tooltip: default_2.ForwardRefExoticComponent<{
|
|
461
538
|
text?: string;
|
|
462
539
|
position?: "top" | "bottom" | "left" | "right";
|
package/dist/ui-react.js
CHANGED
|
@@ -30,13 +30,13 @@ function l(n, r) {
|
|
|
30
30
|
});
|
|
31
31
|
return a.displayName = r, a;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var ee = l("void-badge", "Badge"), u = l("void-button", "Button"), d = l("void-divider", "Divider"), f = l("void-spinner", "Spinner"), p = l("void-skeleton", "Skeleton"), m = l("void-status-dot", "StatusDot"), h = l("void-switch", "Switch"), g = l("void-avatar", "Avatar"), _ = l("void-alert", "Alert"), v = l("void-tag", "Tag"), y = l("void-progress", "Progress"), b = l("void-panel", "Panel"), x = l("void-input", "Input"), S = l("void-textarea", "Textarea"), C = l("void-select", "Select"), w = l("void-checkbox", "Checkbox"), T = l("void-radio", "Radio"), E = l("void-radio-group", "RadioGroup"), D = l("void-field", "Field"), O = l("void-multiselect", "Multiselect"), k = l("void-option", "Option"), A = l("void-dialog", "Dialog"), j = l("void-tabs", "Tabs"), M = l("void-tab-panel", "TabPanel"), N = l("void-accordion", "Accordion"), P = l("void-accordion-item", "AccordionItem"), F = l("void-breadcrumbs", "Breadcrumbs"), I = l("void-list", "List"), L = l("void-list-item", "ListItem"), te = l("void-toast", "Toast"), R = l("void-toast-container", "ToastContainer"), z = l("void-stepper", "Stepper"), B = l("void-drawer", "Drawer"), V = l("void-card", "Card"), H = l("void-popover", "Popover"), U = l("void-tooltip", "Tooltip"), W = l("void-banner", "Banner"), G = l("void-scroll-area", "ScrollArea"), K = l("void-table", "Table"), q = l("void-pagination", "Pagination"), J = l("void-error-fallback", "ErrorFallback"), Y = l("void-checkbox-group", "CheckboxGroup"), X = l("void-combobox", "Combobox"), Z = l("void-slider", "Slider"), Q = l("void-file-upload", "FileUpload"), ne = l("void-nav-bar", "NavBar"), re = l("void-hamburger", "Hamburger"), ie = l("void-compose-input", "ComposeInput"), ae = l("void-sidebar", "Sidebar"), oe = l("void-dropdown-menu", "DropdownMenu"), $ = l("void-dropdown-menu-item", "DropdownMenuItem"), se = l("void-toggle", "Toggle"), ce = l("void-segmented-control", "SegmentedControl"), le = l("void-segmented-control-item", "SegmentedControlItem"), ue = l("void-stat", "Stat"), de = l("void-indicator", "Indicator");
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/use-theme.ts
|
|
36
|
-
function
|
|
36
|
+
function fe() {
|
|
37
37
|
return typeof document > "u" ? "light" : document.documentElement.getAttribute("data-theme") ?? "light";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function pe(e) {
|
|
40
40
|
let t = new MutationObserver((t) => {
|
|
41
41
|
for (let n of t) if (n.type === "attributes" && n.attributeName === "data-theme") {
|
|
42
42
|
e();
|
|
@@ -48,8 +48,8 @@ function ae(e) {
|
|
|
48
48
|
attributeFilter: ["data-theme"]
|
|
49
49
|
}), () => t.disconnect();
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return a(
|
|
51
|
+
function me() {
|
|
52
|
+
return a(pe, n(fe, []), n(() => "light", []));
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { N as Accordion, P as AccordionItem, _ as Alert, g as Avatar, ee as Badge, W as Banner, F as Breadcrumbs, u as Button, V as Card, w as Checkbox, Y as CheckboxGroup, X as Combobox, ie as ComposeInput, A as Dialog, d as Divider, B as Drawer, oe as DropdownMenu, $ as DropdownMenuItem, J as ErrorFallback, D as Field, Q as FileUpload, re as Hamburger, de as Indicator, x as Input, I as List, L as ListItem, O as Multiselect, ne as NavBar, k as Option, q as Pagination, b as Panel, H as Popover, y as Progress, T as Radio, E as RadioGroup, G as ScrollArea, ce as SegmentedControl, le as SegmentedControlItem, C as Select, ae as Sidebar, p as Skeleton, Z as Slider, f as Spinner, ue as Stat, m as StatusDot, z as Stepper, h as Switch, M as TabPanel, K as Table, j as Tabs, v as Tag, S as Textarea, te as Toast, R as ToastContainer, se as Toggle, U as Tooltip, me as useTheme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidable/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"default": "./dist/index.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"files": [
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
14
16
|
"scripts": {
|
|
15
17
|
"build": "vite build",
|
|
16
18
|
"typecheck": "tsc --noEmit"
|
|
@@ -20,9 +22,9 @@
|
|
|
20
22
|
"react": "^18.0.0 || ^19.0.0"
|
|
21
23
|
},
|
|
22
24
|
"devDependencies": {
|
|
25
|
+
"@types/react": "^19.0.0",
|
|
23
26
|
"@voidable/ui": "workspace:*",
|
|
24
27
|
"react": "^19.0.0",
|
|
25
|
-
"@types/react": "^19.0.0",
|
|
26
28
|
"typescript": "^6.0.0",
|
|
27
29
|
"vite": "^8.0.0",
|
|
28
30
|
"vite-plugin-dts": "^4.5.0"
|