@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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/accordion.d.ts +12 -0
  4. package/dist/accordion.js +8 -0
  5. package/dist/alert.d.ts +12 -0
  6. package/dist/alert.js +8 -0
  7. package/dist/avatar.d.ts +14 -0
  8. package/dist/avatar.js +8 -0
  9. package/dist/badge.d.ts +12 -0
  10. package/dist/badge.js +8 -0
  11. package/dist/breadcrumbs.d.ts +8 -0
  12. package/dist/breadcrumbs.js +8 -0
  13. package/dist/button.d.ts +14 -0
  14. package/dist/button.js +8 -0
  15. package/dist/card.d.ts +8 -0
  16. package/dist/card.js +8 -0
  17. package/dist/checkbox.d.ts +8 -0
  18. package/dist/checkbox.js +8 -0
  19. package/dist/chunk-24TAPSJO.js +14 -0
  20. package/dist/chunk-2YEAAOWL.js +24 -0
  21. package/dist/chunk-33GOGIXE.js +19 -0
  22. package/dist/chunk-3TIYT55P.js +14 -0
  23. package/dist/chunk-46VRJZNH.js +24 -0
  24. package/dist/chunk-4AQXNXAQ.js +16 -0
  25. package/dist/chunk-4VBYIXGA.js +22 -0
  26. package/dist/chunk-4YJMCYQW.js +23 -0
  27. package/dist/chunk-54STG2JB.js +8 -0
  28. package/dist/chunk-5NGRPREI.js +14 -0
  29. package/dist/chunk-7A5VK567.js +48 -0
  30. package/dist/chunk-AVQGR5G7.js +22 -0
  31. package/dist/chunk-B3VPCEGX.js +14 -0
  32. package/dist/chunk-CWGH75FA.js +217 -0
  33. package/dist/chunk-JA3X5LJF.js +14 -0
  34. package/dist/chunk-KU7UNDPK.js +14 -0
  35. package/dist/chunk-L53J65C4.js +23 -0
  36. package/dist/chunk-LFWQDF6U.js +25 -0
  37. package/dist/chunk-ME34NDSX.js +28 -0
  38. package/dist/chunk-QB6NCURJ.js +24 -0
  39. package/dist/chunk-SDU26SU7.js +43 -0
  40. package/dist/chunk-UJJUFR7B.js +22 -0
  41. package/dist/chunk-VIWYEDTD.js +14 -0
  42. package/dist/chunk-XYGNNGM2.js +14 -0
  43. package/dist/chunk-ZEQLZCOY.js +19 -0
  44. package/dist/dialog.d.ts +20 -0
  45. package/dist/dialog.js +18 -0
  46. package/dist/empty-state.d.ts +8 -0
  47. package/dist/empty-state.js +8 -0
  48. package/dist/field.d.ts +12 -0
  49. package/dist/field.js +8 -0
  50. package/dist/index.d.ts +27 -0
  51. package/dist/index.js +118 -0
  52. package/dist/input.d.ts +8 -0
  53. package/dist/input.js +8 -0
  54. package/dist/pagination.d.ts +8 -0
  55. package/dist/pagination.js +8 -0
  56. package/dist/progress.d.ts +8 -0
  57. package/dist/progress.js +8 -0
  58. package/dist/radio.d.ts +8 -0
  59. package/dist/radio.js +8 -0
  60. package/dist/select.d.ts +30 -0
  61. package/dist/select.js +10 -0
  62. package/dist/separator.d.ts +8 -0
  63. package/dist/separator.js +8 -0
  64. package/dist/skeleton.d.ts +8 -0
  65. package/dist/skeleton.js +8 -0
  66. package/dist/spinner.d.ts +12 -0
  67. package/dist/spinner.js +8 -0
  68. package/dist/styles.css +775 -0
  69. package/dist/switch.d.ts +8 -0
  70. package/dist/switch.js +8 -0
  71. package/dist/table.d.ts +8 -0
  72. package/dist/table.js +8 -0
  73. package/dist/tabs.d.ts +9 -0
  74. package/dist/tabs.js +14 -0
  75. package/dist/textarea.d.ts +8 -0
  76. package/dist/textarea.js +8 -0
  77. package/dist/tokens.css +177 -0
  78. package/dist/tokens.d.ts +45 -0
  79. package/dist/tokens.js +7 -0
  80. package/package.json +173 -4
  81. package/tokens/primitive.json +512 -0
  82. package/tokens/semantic/dark.json +192 -0
  83. 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
+ };
@@ -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
+ "use client";
2
+ import {
3
+ Input
4
+ } from "./chunk-5NGRPREI.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Input
8
+ };
@@ -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
+ "use client";
2
+ import {
3
+ Pagination
4
+ } from "./chunk-4VBYIXGA.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Pagination
8
+ };
@@ -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 };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Progress
4
+ } from "./chunk-24TAPSJO.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Progress
8
+ };
@@ -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
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Radio
4
+ } from "./chunk-46VRJZNH.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Radio
8
+ };
@@ -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,10 @@
1
+ "use client";
2
+ import {
3
+ Select,
4
+ SelectDropdown
5
+ } from "./chunk-CWGH75FA.js";
6
+ import "./chunk-54STG2JB.js";
7
+ export {
8
+ Select,
9
+ SelectDropdown
10
+ };
@@ -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
+ "use client";
2
+ import {
3
+ Separator
4
+ } from "./chunk-JA3X5LJF.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Separator
8
+ };
@@ -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 };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Skeleton
4
+ } from "./chunk-AVQGR5G7.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Skeleton
8
+ };
@@ -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 };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Spinner
4
+ } from "./chunk-QB6NCURJ.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Spinner
8
+ };