@oddmash/ui 0.2.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,7 +1,22 @@
1
1
  "use client";
2
+ import {
3
+ Spinner
4
+ } from "./chunk-QB6NCURJ.js";
5
+ import {
6
+ Breadcrumbs
7
+ } from "./chunk-L53J65C4.js";
8
+ import {
9
+ Pagination
10
+ } from "./chunk-4VBYIXGA.js";
2
11
  import {
3
12
  EmptyState
4
13
  } from "./chunk-XYGNNGM2.js";
14
+ import {
15
+ Skeleton
16
+ } from "./chunk-AVQGR5G7.js";
17
+ import {
18
+ Progress
19
+ } from "./chunk-24TAPSJO.js";
5
20
  import {
6
21
  Table
7
22
  } from "./chunk-4AQXNXAQ.js";
@@ -10,29 +25,27 @@ import {
10
25
  } from "./chunk-ZEQLZCOY.js";
11
26
  import {
12
27
  Accordion
13
- } from "./chunk-33GOGIXE.js";
28
+ } from "./chunk-Q56KMGGG.js";
29
+ import {
30
+ Alert,
31
+ AlertDialog
32
+ } from "./chunk-BMVVSFAU.js";
14
33
  import {
15
- Alert
16
- } from "./chunk-2YEAAOWL.js";
34
+ Toast,
35
+ ToastViewport
36
+ } from "./chunk-TBR4HCBJ.js";
17
37
  import {
18
38
  Avatar
19
39
  } from "./chunk-SDU26SU7.js";
20
40
  import {
21
- Spinner
22
- } from "./chunk-QB6NCURJ.js";
23
- import {
24
- Breadcrumbs
25
- } from "./chunk-L53J65C4.js";
26
- import {
27
- Pagination
28
- } from "./chunk-4VBYIXGA.js";
41
+ tokens
42
+ } from "./chunk-OGJ3KIBM.js";
29
43
  import {
30
44
  Textarea
31
45
  } from "./chunk-B3VPCEGX.js";
32
46
  import {
33
- Select,
34
- SelectDropdown
35
- } from "./chunk-CWGH75FA.js";
47
+ Select
48
+ } from "./chunk-Z6HKBFCS.js";
36
49
  import {
37
50
  Checkbox
38
51
  } from "./chunk-UJJUFR7B.js";
@@ -45,15 +58,23 @@ import {
45
58
  import {
46
59
  Separator
47
60
  } from "./chunk-JA3X5LJF.js";
48
- import {
49
- Skeleton
50
- } from "./chunk-AVQGR5G7.js";
51
- import {
52
- Progress
53
- } from "./chunk-24TAPSJO.js";
54
61
  import {
55
62
  Button
56
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";
57
78
  import {
58
79
  Input
59
80
  } from "./chunk-5NGRPREI.js";
@@ -69,27 +90,18 @@ import {
69
90
  TabsList,
70
91
  TabsTrigger
71
92
  } from "./chunk-4YJMCYQW.js";
72
- import {
73
- Dialog,
74
- DialogClose,
75
- DialogContent,
76
- DialogDescription,
77
- DialogTitle,
78
- DialogTrigger
79
- } from "./chunk-ME34NDSX.js";
80
93
  import "./chunk-54STG2JB.js";
81
- import {
82
- tokens
83
- } from "./chunk-7A5VK567.js";
84
94
  export {
85
95
  Accordion,
86
96
  Alert,
97
+ AlertDialog,
87
98
  Avatar,
88
99
  Badge,
89
100
  Breadcrumbs,
90
101
  Button,
91
102
  Card,
92
103
  Checkbox,
104
+ CommandPalette,
93
105
  Dialog,
94
106
  DialogClose,
95
107
  DialogContent,
@@ -103,9 +115,10 @@ export {
103
115
  Progress,
104
116
  Radio,
105
117
  Select,
106
- SelectDropdown,
118
+ Select as SelectDropdown,
107
119
  Separator,
108
120
  Skeleton,
121
+ Slider,
109
122
  Spinner,
110
123
  Switch,
111
124
  Table,
@@ -114,5 +127,7 @@ export {
114
127
  TabsList,
115
128
  TabsTrigger,
116
129
  Textarea,
130
+ Toast,
131
+ ToastViewport,
117
132
  tokens
118
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
+ };