@oddmash/ui 0.3.0 → 0.4.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.js CHANGED
@@ -1,10 +1,22 @@
1
1
  "use client";
2
+ import {
3
+ Spinner
4
+ } from "./chunk-QB6NCURJ.js";
5
+ import {
6
+ Breadcrumbs
7
+ } from "./chunk-L53J65C4.js";
2
8
  import {
3
9
  Pagination
4
10
  } from "./chunk-4VBYIXGA.js";
5
11
  import {
6
12
  EmptyState
7
13
  } from "./chunk-XYGNNGM2.js";
14
+ import {
15
+ Skeleton
16
+ } from "./chunk-AVQGR5G7.js";
17
+ import {
18
+ Progress
19
+ } from "./chunk-24TAPSJO.js";
8
20
  import {
9
21
  Table
10
22
  } from "./chunk-4AQXNXAQ.js";
@@ -13,29 +25,27 @@ import {
13
25
  } from "./chunk-ZEQLZCOY.js";
14
26
  import {
15
27
  Accordion
16
- } from "./chunk-33GOGIXE.js";
28
+ } from "./chunk-Q56KMGGG.js";
17
29
  import {
18
- Alert
19
- } from "./chunk-2YEAAOWL.js";
30
+ Alert,
31
+ AlertDialog
32
+ } from "./chunk-BMVVSFAU.js";
20
33
  import {
21
- Toast
22
- } from "./chunk-WJ7V6SRX.js";
34
+ Toast,
35
+ ToastViewport
36
+ } from "./chunk-TBR4HCBJ.js";
23
37
  import {
24
38
  Avatar
25
39
  } from "./chunk-SDU26SU7.js";
26
40
  import {
27
- Spinner
28
- } from "./chunk-QB6NCURJ.js";
29
- import {
30
- Breadcrumbs
31
- } from "./chunk-L53J65C4.js";
41
+ tokens
42
+ } from "./chunk-OGJ3KIBM.js";
32
43
  import {
33
44
  Textarea
34
45
  } from "./chunk-B3VPCEGX.js";
35
46
  import {
36
- Select,
37
- SelectDropdown
38
- } from "./chunk-CWGH75FA.js";
47
+ Select
48
+ } from "./chunk-Z6HKBFCS.js";
39
49
  import {
40
50
  Checkbox
41
51
  } from "./chunk-UJJUFR7B.js";
@@ -48,15 +58,23 @@ import {
48
58
  import {
49
59
  Separator
50
60
  } from "./chunk-JA3X5LJF.js";
51
- import {
52
- Skeleton
53
- } from "./chunk-AVQGR5G7.js";
54
- import {
55
- Progress
56
- } from "./chunk-24TAPSJO.js";
57
61
  import {
58
62
  Button
59
63
  } from "./chunk-3TIYT55P.js";
64
+ import {
65
+ Slider
66
+ } from "./chunk-U2Y2DJXG.js";
67
+ import {
68
+ CommandPalette
69
+ } from "./chunk-WODRU2UN.js";
70
+ import {
71
+ Dialog,
72
+ DialogClose,
73
+ DialogContent,
74
+ DialogDescription,
75
+ DialogTitle,
76
+ DialogTrigger
77
+ } from "./chunk-ME34NDSX.js";
60
78
  import {
61
79
  Input
62
80
  } from "./chunk-5NGRPREI.js";
@@ -72,27 +90,18 @@ import {
72
90
  TabsList,
73
91
  TabsTrigger
74
92
  } from "./chunk-4YJMCYQW.js";
75
- import {
76
- Dialog,
77
- DialogClose,
78
- DialogContent,
79
- DialogDescription,
80
- DialogTitle,
81
- DialogTrigger
82
- } from "./chunk-ME34NDSX.js";
83
93
  import "./chunk-54STG2JB.js";
84
- import {
85
- tokens
86
- } from "./chunk-7A5VK567.js";
87
94
  export {
88
95
  Accordion,
89
96
  Alert,
97
+ AlertDialog,
90
98
  Avatar,
91
99
  Badge,
92
100
  Breadcrumbs,
93
101
  Button,
94
102
  Card,
95
103
  Checkbox,
104
+ CommandPalette,
96
105
  Dialog,
97
106
  DialogClose,
98
107
  DialogContent,
@@ -106,9 +115,10 @@ export {
106
115
  Progress,
107
116
  Radio,
108
117
  Select,
109
- SelectDropdown,
118
+ Select as SelectDropdown,
110
119
  Separator,
111
120
  Skeleton,
121
+ Slider,
112
122
  Spinner,
113
123
  Switch,
114
124
  Table,
@@ -118,5 +128,6 @@ export {
118
128
  TabsTrigger,
119
129
  Textarea,
120
130
  Toast,
131
+ ToastViewport,
121
132
  tokens
122
133
  };
package/dist/select.d.ts CHANGED
@@ -1,21 +1,22 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
 
4
- type SelectDropdownOption = {
4
+ type SelectOption = {
5
5
  value: string;
6
6
  label: string;
7
7
  disabled?: boolean;
8
+ lang?: string;
8
9
  };
9
- type SelectDropdownProps = Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'name' | 'role'> & {
10
- options: readonly SelectDropdownOption[];
10
+ type SelectProps = Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'name' | 'role'> & {
11
+ options: readonly SelectOption[];
11
12
  name?: string;
12
13
  value?: string;
13
14
  defaultValue?: string;
14
15
  placeholder?: string;
15
16
  onValueChange?: (value: string) => void;
16
17
  };
17
- declare const SelectDropdown: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "name" | "type" | "value" | "defaultValue" | "role" | "children" | "onChange"> & {
18
- options: readonly SelectDropdownOption[];
18
+ declare const Select: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "name" | "type" | "value" | "defaultValue" | "role" | "children" | "onChange"> & {
19
+ options: readonly SelectOption[];
19
20
  name?: string;
20
21
  value?: string;
21
22
  defaultValue?: string;
@@ -23,8 +24,5 @@ declare const SelectDropdown: react.ForwardRefExoticComponent<Omit<Omit<react.De
23
24
  onValueChange?: (value: string) => void;
24
25
  } & react.RefAttributes<HTMLButtonElement>>;
25
26
 
26
- type SelectProps = ComponentPropsWithoutRef<'select'>;
27
- declare const Select: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & react.RefAttributes<HTMLSelectElement>>;
28
-
29
- export { Select, SelectDropdown };
30
- export type { SelectDropdownOption, SelectDropdownProps, SelectProps };
27
+ export { Select, Select as SelectDropdown };
28
+ export type { SelectOption as SelectDropdownOption, SelectProps as SelectDropdownProps, SelectOption, SelectProps };
package/dist/select.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use client";
2
2
  import {
3
- Select,
4
- SelectDropdown
5
- } from "./chunk-CWGH75FA.js";
3
+ Select
4
+ } from "./chunk-Z6HKBFCS.js";
6
5
  import "./chunk-54STG2JB.js";
7
6
  export {
8
7
  Select,
9
- SelectDropdown
8
+ Select as SelectDropdown
10
9
  };
@@ -0,0 +1,8 @@
1
+ import * as react from 'react';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+
4
+ type SliderProps = Omit<ComponentPropsWithoutRef<'input'>, 'type'>;
5
+ declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLInputElement>>;
6
+
7
+ export { Slider };
8
+ export type { SliderProps };
package/dist/slider.js ADDED
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Slider
4
+ } from "./chunk-U2Y2DJXG.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Slider
8
+ };