@oddmash/ui 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/accordion.d.ts +12 -0
- package/dist/accordion.js +8 -0
- package/dist/alert.d.ts +12 -0
- package/dist/alert.js +8 -0
- package/dist/avatar.d.ts +14 -0
- package/dist/avatar.js +8 -0
- package/dist/badge.d.ts +12 -0
- package/dist/badge.js +8 -0
- package/dist/breadcrumbs.d.ts +8 -0
- package/dist/breadcrumbs.js +8 -0
- package/dist/button.d.ts +14 -0
- package/dist/button.js +8 -0
- package/dist/card.d.ts +8 -0
- package/dist/card.js +8 -0
- package/dist/checkbox.d.ts +8 -0
- package/dist/checkbox.js +8 -0
- package/dist/chunk-24TAPSJO.js +14 -0
- package/dist/chunk-2YEAAOWL.js +24 -0
- package/dist/chunk-33GOGIXE.js +19 -0
- package/dist/chunk-3TIYT55P.js +14 -0
- package/dist/chunk-46VRJZNH.js +24 -0
- package/dist/chunk-4AQXNXAQ.js +16 -0
- package/dist/chunk-4VBYIXGA.js +22 -0
- package/dist/chunk-4YJMCYQW.js +23 -0
- package/dist/chunk-54STG2JB.js +8 -0
- package/dist/chunk-5NGRPREI.js +14 -0
- package/dist/chunk-7A5VK567.js +48 -0
- package/dist/chunk-AVQGR5G7.js +22 -0
- package/dist/chunk-B3VPCEGX.js +14 -0
- package/dist/chunk-CWGH75FA.js +217 -0
- package/dist/chunk-JA3X5LJF.js +14 -0
- package/dist/chunk-KU7UNDPK.js +14 -0
- package/dist/chunk-L53J65C4.js +23 -0
- package/dist/chunk-LFWQDF6U.js +25 -0
- package/dist/chunk-ME34NDSX.js +28 -0
- package/dist/chunk-QB6NCURJ.js +24 -0
- package/dist/chunk-SDU26SU7.js +43 -0
- package/dist/chunk-UJJUFR7B.js +22 -0
- package/dist/chunk-VIWYEDTD.js +14 -0
- package/dist/chunk-XYGNNGM2.js +14 -0
- package/dist/chunk-ZEQLZCOY.js +19 -0
- package/dist/dialog.d.ts +20 -0
- package/dist/dialog.js +18 -0
- package/dist/empty-state.d.ts +8 -0
- package/dist/empty-state.js +8 -0
- package/dist/field.d.ts +12 -0
- package/dist/field.js +8 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +118 -0
- package/dist/input.d.ts +8 -0
- package/dist/input.js +8 -0
- package/dist/pagination.d.ts +8 -0
- package/dist/pagination.js +8 -0
- package/dist/progress.d.ts +8 -0
- package/dist/progress.js +8 -0
- package/dist/radio.d.ts +8 -0
- package/dist/radio.js +8 -0
- package/dist/select.d.ts +30 -0
- package/dist/select.js +10 -0
- package/dist/separator.d.ts +8 -0
- package/dist/separator.js +8 -0
- package/dist/skeleton.d.ts +8 -0
- package/dist/skeleton.js +8 -0
- package/dist/spinner.d.ts +12 -0
- package/dist/spinner.js +8 -0
- package/dist/styles.css +775 -0
- package/dist/switch.d.ts +8 -0
- package/dist/switch.js +8 -0
- package/dist/table.d.ts +8 -0
- package/dist/table.js +8 -0
- package/dist/tabs.d.ts +9 -0
- package/dist/tabs.js +14 -0
- package/dist/textarea.d.ts +8 -0
- package/dist/textarea.js +8 -0
- package/dist/tokens.css +177 -0
- package/dist/tokens.d.ts +45 -0
- package/dist/tokens.js +7 -0
- package/package.json +173 -4
- package/tokens/primitive.json +512 -0
- package/tokens/semantic/dark.json +192 -0
- package/tokens/semantic/light.json +192 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
EmptyState
|
|
4
|
+
} from "./chunk-XYGNNGM2.js";
|
|
5
|
+
import {
|
|
6
|
+
Table
|
|
7
|
+
} from "./chunk-4AQXNXAQ.js";
|
|
8
|
+
import {
|
|
9
|
+
Field
|
|
10
|
+
} from "./chunk-ZEQLZCOY.js";
|
|
11
|
+
import {
|
|
12
|
+
Accordion
|
|
13
|
+
} from "./chunk-33GOGIXE.js";
|
|
14
|
+
import {
|
|
15
|
+
Alert
|
|
16
|
+
} from "./chunk-2YEAAOWL.js";
|
|
17
|
+
import {
|
|
18
|
+
Avatar
|
|
19
|
+
} from "./chunk-SDU26SU7.js";
|
|
20
|
+
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";
|
|
29
|
+
import {
|
|
30
|
+
Textarea
|
|
31
|
+
} from "./chunk-B3VPCEGX.js";
|
|
32
|
+
import {
|
|
33
|
+
Select,
|
|
34
|
+
SelectDropdown
|
|
35
|
+
} from "./chunk-CWGH75FA.js";
|
|
36
|
+
import {
|
|
37
|
+
Checkbox
|
|
38
|
+
} from "./chunk-UJJUFR7B.js";
|
|
39
|
+
import {
|
|
40
|
+
Radio
|
|
41
|
+
} from "./chunk-46VRJZNH.js";
|
|
42
|
+
import {
|
|
43
|
+
Switch
|
|
44
|
+
} from "./chunk-LFWQDF6U.js";
|
|
45
|
+
import {
|
|
46
|
+
Separator
|
|
47
|
+
} from "./chunk-JA3X5LJF.js";
|
|
48
|
+
import {
|
|
49
|
+
Skeleton
|
|
50
|
+
} from "./chunk-AVQGR5G7.js";
|
|
51
|
+
import {
|
|
52
|
+
Progress
|
|
53
|
+
} from "./chunk-24TAPSJO.js";
|
|
54
|
+
import {
|
|
55
|
+
Button
|
|
56
|
+
} from "./chunk-3TIYT55P.js";
|
|
57
|
+
import {
|
|
58
|
+
Input
|
|
59
|
+
} from "./chunk-5NGRPREI.js";
|
|
60
|
+
import {
|
|
61
|
+
Card
|
|
62
|
+
} from "./chunk-VIWYEDTD.js";
|
|
63
|
+
import {
|
|
64
|
+
Badge
|
|
65
|
+
} from "./chunk-KU7UNDPK.js";
|
|
66
|
+
import {
|
|
67
|
+
Tabs,
|
|
68
|
+
TabsContent,
|
|
69
|
+
TabsList,
|
|
70
|
+
TabsTrigger
|
|
71
|
+
} from "./chunk-4YJMCYQW.js";
|
|
72
|
+
import {
|
|
73
|
+
Dialog,
|
|
74
|
+
DialogClose,
|
|
75
|
+
DialogContent,
|
|
76
|
+
DialogDescription,
|
|
77
|
+
DialogTitle,
|
|
78
|
+
DialogTrigger
|
|
79
|
+
} from "./chunk-ME34NDSX.js";
|
|
80
|
+
import "./chunk-54STG2JB.js";
|
|
81
|
+
import {
|
|
82
|
+
tokens
|
|
83
|
+
} from "./chunk-7A5VK567.js";
|
|
84
|
+
export {
|
|
85
|
+
Accordion,
|
|
86
|
+
Alert,
|
|
87
|
+
Avatar,
|
|
88
|
+
Badge,
|
|
89
|
+
Breadcrumbs,
|
|
90
|
+
Button,
|
|
91
|
+
Card,
|
|
92
|
+
Checkbox,
|
|
93
|
+
Dialog,
|
|
94
|
+
DialogClose,
|
|
95
|
+
DialogContent,
|
|
96
|
+
DialogDescription,
|
|
97
|
+
DialogTitle,
|
|
98
|
+
DialogTrigger,
|
|
99
|
+
EmptyState,
|
|
100
|
+
Field,
|
|
101
|
+
Input,
|
|
102
|
+
Pagination,
|
|
103
|
+
Progress,
|
|
104
|
+
Radio,
|
|
105
|
+
Select,
|
|
106
|
+
SelectDropdown,
|
|
107
|
+
Separator,
|
|
108
|
+
Skeleton,
|
|
109
|
+
Spinner,
|
|
110
|
+
Switch,
|
|
111
|
+
Table,
|
|
112
|
+
Tabs,
|
|
113
|
+
TabsContent,
|
|
114
|
+
TabsList,
|
|
115
|
+
TabsTrigger,
|
|
116
|
+
Textarea,
|
|
117
|
+
tokens
|
|
118
|
+
};
|
package/dist/input.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type InputProps = ComponentPropsWithoutRef<'input'>;
|
|
5
|
+
declare const Input: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
|
|
7
|
+
export { Input };
|
|
8
|
+
export type { InputProps };
|
package/dist/input.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type PaginationProps = ComponentPropsWithoutRef<'nav'>;
|
|
5
|
+
declare const Pagination: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6
|
+
|
|
7
|
+
export { Pagination };
|
|
8
|
+
export type { PaginationProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type ProgressProps = ComponentPropsWithoutRef<'progress'>;
|
|
5
|
+
declare const Progress: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>, "ref"> & react.RefAttributes<HTMLProgressElement>>;
|
|
6
|
+
|
|
7
|
+
export { Progress };
|
|
8
|
+
export type { ProgressProps };
|
package/dist/progress.js
ADDED
package/dist/radio.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'role' | 'aria-checked'>;
|
|
5
|
+
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
|
|
7
|
+
export { Radio };
|
|
8
|
+
export type { RadioProps };
|
package/dist/radio.js
ADDED
package/dist/select.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type SelectDropdownOption = {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type SelectDropdownProps = Omit<ComponentPropsWithoutRef<'button'>, 'children' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'name' | 'role'> & {
|
|
10
|
+
options: readonly SelectDropdownOption[];
|
|
11
|
+
name?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
};
|
|
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[];
|
|
19
|
+
name?: string;
|
|
20
|
+
value?: string;
|
|
21
|
+
defaultValue?: string;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
onValueChange?: (value: string) => void;
|
|
24
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
|
|
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 };
|
package/dist/select.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type SeparatorProps = ComponentPropsWithoutRef<'hr'>;
|
|
5
|
+
declare const Separator: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & react.RefAttributes<HTMLHRElement>>;
|
|
6
|
+
|
|
7
|
+
export { Separator };
|
|
8
|
+
export type { SeparatorProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type SkeletonProps = ComponentPropsWithoutRef<'span'>;
|
|
5
|
+
declare const Skeleton: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
|
|
7
|
+
export { Skeleton };
|
|
8
|
+
export type { SkeletonProps };
|
package/dist/skeleton.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type SpinnerProps = Omit<ComponentPropsWithoutRef<'span'>, 'children'> & {
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "children"> & {
|
|
8
|
+
label?: string;
|
|
9
|
+
} & react.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
|
|
11
|
+
export { Spinner };
|
|
12
|
+
export type { SpinnerProps };
|