@voidable/ui-react 0.2.0 → 0.3.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 CHANGED
@@ -7,11 +7,15 @@ import { VoidBadge } from '@voidable/ui';
7
7
  import { VoidBanner } from '@voidable/ui';
8
8
  import { VoidBreadcrumbs } from '@voidable/ui';
9
9
  import { VoidButton } from '@voidable/ui';
10
+ import { VoidCalendar } from '@voidable/ui';
10
11
  import { VoidCard } from '@voidable/ui';
12
+ import { VoidCarousel } from '@voidable/ui';
13
+ import { VoidCarouselSlide } from '@voidable/ui';
11
14
  import { VoidCheckbox } from '@voidable/ui';
12
15
  import { VoidCheckboxGroup } from '@voidable/ui';
13
16
  import { VoidCombobox } from '@voidable/ui';
14
17
  import { VoidComposeInput } from '@voidable/ui';
18
+ import { VoidDatePicker } from '@voidable/ui';
15
19
  import { VoidDialog } from '@voidable/ui';
16
20
  import { VoidDivider } from '@voidable/ui';
17
21
  import { VoidDrawer } from '@voidable/ui';
@@ -25,8 +29,12 @@ import { VoidIndicator } from '@voidable/ui';
25
29
  import { VoidInput } from '@voidable/ui';
26
30
  import { VoidList } from '@voidable/ui';
27
31
  import { VoidListItem } from '@voidable/ui';
32
+ import { VoidMenu } from '@voidable/ui';
33
+ import { VoidMenuGroup } from '@voidable/ui';
34
+ import { VoidMenuItem } from '@voidable/ui';
28
35
  import { VoidMultiselect } from '@voidable/ui';
29
36
  import { VoidNavBar } from '@voidable/ui';
37
+ import { VoidNumberInput } from '@voidable/ui';
30
38
  import { VoidOption } from '@voidable/ui';
31
39
  import { VoidPagination } from '@voidable/ui';
32
40
  import { VoidPanel } from '@voidable/ui';
@@ -54,6 +62,7 @@ import { VoidTextarea } from '@voidable/ui';
54
62
  import { VoidToast } from '@voidable/ui';
55
63
  import { VoidToastContainer } from '@voidable/ui';
56
64
  import { VoidToggle } from '@voidable/ui';
65
+ import { VoidToggleGroup } from '@voidable/ui';
57
66
  import { VoidTooltip } from '@voidable/ui';
58
67
 
59
68
  export declare const Accordion: default_2.ForwardRefExoticComponent<{
@@ -117,6 +126,18 @@ export declare const Button: default_2.ForwardRefExoticComponent<{
117
126
  children?: default_2.ReactNode;
118
127
  } & default_2.RefAttributes<VoidButton>>;
119
128
 
129
+ export declare const Calendar: default_2.ForwardRefExoticComponent<{
130
+ value?: string;
131
+ min?: string;
132
+ max?: string;
133
+ disabled?: boolean;
134
+ size?: "sm" | "md" | "lg";
135
+ locale?: string;
136
+ firstDay?: number;
137
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "size" | "disabled" | "value" | "max" | "min" | "locale" | "firstDay"> & {
138
+ children?: default_2.ReactNode;
139
+ } & default_2.RefAttributes<VoidCalendar>>;
140
+
120
141
  export declare const Card: default_2.ForwardRefExoticComponent<{
121
142
  heading?: string;
122
143
  variant?: "default" | "elevated" | "outlined";
@@ -125,6 +146,23 @@ export declare const Card: default_2.ForwardRefExoticComponent<{
125
146
  children?: default_2.ReactNode;
126
147
  } & default_2.RefAttributes<VoidCard>>;
127
148
 
149
+ export declare const Carousel: default_2.ForwardRefExoticComponent<{
150
+ active?: number;
151
+ loop?: boolean;
152
+ autoplay?: boolean;
153
+ interval?: number;
154
+ size?: "sm" | "md" | "lg";
155
+ controls?: boolean;
156
+ indicators?: boolean;
157
+ orientation?: "horizontal" | "vertical";
158
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "size" | "orientation" | "active" | "loop" | "autoplay" | "interval" | "controls" | "indicators"> & {
159
+ children?: default_2.ReactNode;
160
+ } & default_2.RefAttributes<VoidCarousel>>;
161
+
162
+ export declare const CarouselSlide: default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLElement>, never> & {
163
+ children?: default_2.ReactNode;
164
+ } & default_2.RefAttributes<VoidCarouselSlide>>;
165
+
128
166
  export declare const Checkbox: default_2.ForwardRefExoticComponent<{
129
167
  checked?: boolean;
130
168
  disabled?: boolean;
@@ -164,6 +202,22 @@ export declare const ComposeInput: default_2.ForwardRefExoticComponent<{
164
202
  children?: default_2.ReactNode;
165
203
  } & default_2.RefAttributes<VoidComposeInput>>;
166
204
 
205
+ export declare const DatePicker: default_2.ForwardRefExoticComponent<{
206
+ value?: string;
207
+ min?: string;
208
+ max?: string;
209
+ disabled?: boolean;
210
+ size?: "sm" | "md" | "lg";
211
+ locale?: string;
212
+ firstDay?: number;
213
+ open?: boolean;
214
+ placeholder?: string;
215
+ format?: string;
216
+ color?: "default" | "error" | "warning" | "success" | "info" | "notice";
217
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "size" | "disabled" | "value" | "max" | "placeholder" | "open" | "min" | "locale" | "firstDay" | "format"> & {
218
+ children?: default_2.ReactNode;
219
+ } & default_2.RefAttributes<VoidDatePicker>>;
220
+
167
221
  export declare const Dialog: default_2.ForwardRefExoticComponent<{
168
222
  open?: boolean;
169
223
  heading?: string;
@@ -279,6 +333,30 @@ export declare const ListItem: default_2.ForwardRefExoticComponent<{
279
333
  children?: default_2.ReactNode;
280
334
  } & default_2.RefAttributes<VoidListItem>>;
281
335
 
336
+ export declare const Menu: default_2.ForwardRefExoticComponent<{
337
+ open?: boolean;
338
+ searchable?: boolean;
339
+ size?: "sm" | "md" | "lg";
340
+ placeholder?: string;
341
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "size" | "placeholder" | "open" | "searchable"> & {
342
+ children?: default_2.ReactNode;
343
+ } & default_2.RefAttributes<VoidMenu>>;
344
+
345
+ export declare const MenuGroup: default_2.ForwardRefExoticComponent<{
346
+ label?: string;
347
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "label"> & {
348
+ children?: default_2.ReactNode;
349
+ } & default_2.RefAttributes<VoidMenuGroup>>;
350
+
351
+ export declare const MenuItem: default_2.ForwardRefExoticComponent<{
352
+ value?: string;
353
+ disabled?: boolean;
354
+ shortcut?: string;
355
+ icon?: string;
356
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "disabled" | "value" | "icon" | "shortcut"> & {
357
+ children?: default_2.ReactNode;
358
+ } & default_2.RefAttributes<VoidMenuItem>>;
359
+
282
360
  export declare const Multiselect: default_2.ForwardRefExoticComponent<{
283
361
  placeholder?: string;
284
362
  disabled?: boolean;
@@ -297,6 +375,23 @@ export declare const NavBar: default_2.ForwardRefExoticComponent<{
297
375
  children?: default_2.ReactNode;
298
376
  } & default_2.RefAttributes<VoidNavBar>>;
299
377
 
378
+ export declare const NumberInput: default_2.ForwardRefExoticComponent<{
379
+ value?: number;
380
+ min?: number;
381
+ max?: number;
382
+ step?: number;
383
+ precision?: number;
384
+ disabled?: boolean;
385
+ readonly?: boolean;
386
+ size?: "sm" | "md" | "lg";
387
+ color?: "default" | "error" | "warning" | "success" | "info" | "notice";
388
+ placeholder?: string;
389
+ controls?: "sides" | "right" | "none";
390
+ label?: string;
391
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "label" | "size" | "disabled" | "value" | "max" | "placeholder" | "readonly" | "min" | "step" | "controls" | "precision"> & {
392
+ children?: default_2.ReactNode;
393
+ } & default_2.RefAttributes<VoidNumberInput>>;
394
+
300
395
  declare const Option_2: default_2.ForwardRefExoticComponent<{
301
396
  value?: string;
302
397
  selected?: boolean;
@@ -534,6 +629,17 @@ export declare const Toggle: default_2.ForwardRefExoticComponent<{
534
629
  children?: default_2.ReactNode;
535
630
  } & default_2.RefAttributes<VoidToggle>>;
536
631
 
632
+ export declare const ToggleGroup: default_2.ForwardRefExoticComponent<{
633
+ value?: string;
634
+ multiple?: boolean;
635
+ disabled?: boolean;
636
+ size?: "sm" | "md" | "lg";
637
+ color?: "default" | "error" | "warning" | "success" | "info" | "notice";
638
+ orientation?: "horizontal" | "vertical";
639
+ } & Omit<default_2.HTMLAttributes<HTMLElement>, "color" | "size" | "disabled" | "orientation" | "value" | "multiple"> & {
640
+ children?: default_2.ReactNode;
641
+ } & default_2.RefAttributes<VoidToggleGroup>>;
642
+
537
643
  export declare const Tooltip: default_2.ForwardRefExoticComponent<{
538
644
  text?: string;
539
645
  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 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");
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"), R = l("void-toast", "Toast"), z = l("void-toast-container", "ToastContainer"), B = l("void-stepper", "Stepper"), V = l("void-drawer", "Drawer"), H = l("void-card", "Card"), U = l("void-popover", "Popover"), W = l("void-tooltip", "Tooltip"), G = l("void-banner", "Banner"), te = 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"), se = l("void-dropdown-menu-item", "DropdownMenuItem"), ce = l("void-toggle", "Toggle"), le = l("void-segmented-control", "SegmentedControl"), ue = l("void-segmented-control-item", "SegmentedControlItem"), de = l("void-stat", "Stat"), fe = l("void-indicator", "Indicator"), pe = l("void-menu", "Menu"), $ = l("void-menu-item", "MenuItem"), me = l("void-menu-group", "MenuGroup"), he = l("void-carousel", "Carousel"), ge = l("void-carousel-slide", "CarouselSlide"), _e = l("void-calendar", "Calendar"), ve = l("void-date-picker", "DatePicker"), ye = l("void-number-input", "NumberInput"), be = l("void-toggle-group", "ToggleGroup");
34
34
  //#endregion
35
35
  //#region src/use-theme.ts
36
- function fe() {
36
+ function xe() {
37
37
  return typeof document > "u" ? "light" : document.documentElement.getAttribute("data-theme") ?? "light";
38
38
  }
39
- function pe(e) {
39
+ function Se(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 pe(e) {
48
48
  attributeFilter: ["data-theme"]
49
49
  }), () => t.disconnect();
50
50
  }
51
- function me() {
52
- return a(pe, n(fe, []), n(() => "light", []));
51
+ function Ce() {
52
+ return a(Se, n(xe, []), n(() => "light", []));
53
53
  }
54
54
  //#endregion
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 };
55
+ export { N as Accordion, P as AccordionItem, _ as Alert, g as Avatar, ee as Badge, G as Banner, F as Breadcrumbs, u as Button, _e as Calendar, H as Card, he as Carousel, ge as CarouselSlide, w as Checkbox, Y as CheckboxGroup, X as Combobox, ie as ComposeInput, ve as DatePicker, A as Dialog, d as Divider, V as Drawer, oe as DropdownMenu, se as DropdownMenuItem, J as ErrorFallback, D as Field, Q as FileUpload, re as Hamburger, fe as Indicator, x as Input, I as List, L as ListItem, pe as Menu, me as MenuGroup, $ as MenuItem, O as Multiselect, ne as NavBar, ye as NumberInput, k as Option, q as Pagination, b as Panel, U as Popover, y as Progress, T as Radio, E as RadioGroup, te as ScrollArea, le as SegmentedControl, ue as SegmentedControlItem, C as Select, ae as Sidebar, p as Skeleton, Z as Slider, f as Spinner, de as Stat, m as StatusDot, B as Stepper, h as Switch, M as TabPanel, K as Table, j as Tabs, v as Tag, S as Textarea, R as Toast, z as ToastContainer, ce as Toggle, be as ToggleGroup, W as Tooltip, Ce as useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidable/ui-react",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {