@oddmash/ui 0.3.0 → 0.4.1
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 +5 -2
- package/dist/accordion.js +1 -1
- package/dist/alert.d.ts +19 -3
- package/dist/alert.js +7 -3
- package/dist/chunk-BMVVSFAU.js +68 -0
- package/dist/chunk-ITEJEMEF.js +196 -0
- package/dist/{chunk-7A5VK567.js → chunk-OGJ3KIBM.js} +2 -0
- package/dist/{chunk-33GOGIXE.js → chunk-Q56KMGGG.js} +1 -1
- package/dist/chunk-U2Y2DJXG.js +14 -0
- package/dist/chunk-WODRU2UN.js +69 -0
- package/dist/{chunk-CWGH75FA.js → chunk-Z6HKBFCS.js} +3 -11
- package/dist/command-palette.d.ts +24 -0
- package/dist/command-palette.js +10 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +42 -31
- package/dist/select.d.ts +8 -10
- package/dist/select.js +3 -4
- package/dist/slider.d.ts +8 -0
- package/dist/slider.js +8 -0
- package/dist/styles.css +429 -38
- package/dist/toast.d.ts +7 -4
- package/dist/toast.js +5 -3
- package/dist/tokens.css +15 -7
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +1 -1
- package/package.json +15 -4
- package/tokens/primitive.json +25 -11
- package/tokens/semantic/dark.json +8 -0
- package/tokens/semantic/light.json +8 -0
- package/dist/chunk-2YEAAOWL.js +0 -24
- package/dist/chunk-WJ7V6SRX.js +0 -38
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-
|
|
28
|
+
} from "./chunk-Q56KMGGG.js";
|
|
17
29
|
import {
|
|
18
|
-
Alert
|
|
19
|
-
|
|
30
|
+
Alert,
|
|
31
|
+
AlertDialog
|
|
32
|
+
} from "./chunk-BMVVSFAU.js";
|
|
20
33
|
import {
|
|
21
|
-
Toast
|
|
22
|
-
|
|
34
|
+
Toast,
|
|
35
|
+
ToastViewport
|
|
36
|
+
} from "./chunk-ITEJEMEF.js";
|
|
23
37
|
import {
|
|
24
38
|
Avatar
|
|
25
39
|
} from "./chunk-SDU26SU7.js";
|
|
26
40
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
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
|
-
|
|
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
|
|
4
|
+
type SelectOption = {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
lang?: string;
|
|
8
9
|
};
|
|
9
|
-
type
|
|
10
|
-
options: readonly
|
|
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
|
|
18
|
-
options: readonly
|
|
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
|
-
|
|
27
|
-
|
|
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
package/dist/slider.d.ts
ADDED
|
@@ -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 };
|