@oddmash/ui 0.1.0 → 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 (63) hide show
  1. package/README.md +5 -3
  2. package/dist/accordion.d.ts +12 -0
  3. package/dist/accordion.js +8 -0
  4. package/dist/alert.d.ts +12 -0
  5. package/dist/alert.js +8 -0
  6. package/dist/avatar.d.ts +14 -0
  7. package/dist/avatar.js +8 -0
  8. package/dist/breadcrumbs.d.ts +8 -0
  9. package/dist/breadcrumbs.js +8 -0
  10. package/dist/checkbox.d.ts +8 -0
  11. package/dist/checkbox.js +8 -0
  12. package/dist/chunk-24TAPSJO.js +14 -0
  13. package/dist/chunk-2YEAAOWL.js +24 -0
  14. package/dist/chunk-33GOGIXE.js +19 -0
  15. package/dist/chunk-46VRJZNH.js +24 -0
  16. package/dist/chunk-4AQXNXAQ.js +16 -0
  17. package/dist/chunk-4VBYIXGA.js +22 -0
  18. package/dist/{chunk-YGBV3KG6.js → chunk-7A5VK567.js} +1 -0
  19. package/dist/chunk-AVQGR5G7.js +22 -0
  20. package/dist/chunk-B3VPCEGX.js +14 -0
  21. package/dist/chunk-CWGH75FA.js +217 -0
  22. package/dist/chunk-JA3X5LJF.js +14 -0
  23. package/dist/chunk-L53J65C4.js +23 -0
  24. package/dist/chunk-LFWQDF6U.js +25 -0
  25. package/dist/chunk-QB6NCURJ.js +24 -0
  26. package/dist/chunk-SDU26SU7.js +43 -0
  27. package/dist/chunk-UJJUFR7B.js +22 -0
  28. package/dist/chunk-XYGNNGM2.js +14 -0
  29. package/dist/chunk-ZEQLZCOY.js +19 -0
  30. package/dist/empty-state.d.ts +8 -0
  31. package/dist/empty-state.js +8 -0
  32. package/dist/field.d.ts +12 -0
  33. package/dist/field.js +8 -0
  34. package/dist/index.d.ts +17 -0
  35. package/dist/index.js +71 -1
  36. package/dist/pagination.d.ts +8 -0
  37. package/dist/pagination.js +8 -0
  38. package/dist/progress.d.ts +8 -0
  39. package/dist/progress.js +8 -0
  40. package/dist/radio.d.ts +8 -0
  41. package/dist/radio.js +8 -0
  42. package/dist/select.d.ts +30 -0
  43. package/dist/select.js +10 -0
  44. package/dist/separator.d.ts +8 -0
  45. package/dist/separator.js +8 -0
  46. package/dist/skeleton.d.ts +8 -0
  47. package/dist/skeleton.js +8 -0
  48. package/dist/spinner.d.ts +12 -0
  49. package/dist/spinner.js +8 -0
  50. package/dist/styles.css +443 -41
  51. package/dist/switch.d.ts +8 -0
  52. package/dist/switch.js +8 -0
  53. package/dist/table.d.ts +8 -0
  54. package/dist/table.js +8 -0
  55. package/dist/textarea.d.ts +8 -0
  56. package/dist/textarea.js +8 -0
  57. package/dist/tokens.css +51 -41
  58. package/dist/tokens.d.ts +1 -0
  59. package/dist/tokens.js +1 -1
  60. package/package.json +74 -10
  61. package/tokens/primitive.json +107 -55
  62. package/tokens/semantic/dark.json +8 -4
  63. package/tokens/semantic/light.json +7 -3
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import {
3
+ cx
4
+ } from "./chunk-54STG2JB.js";
5
+
6
+ // src/checkbox.tsx
7
+ import { forwardRef } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var Checkbox = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ "input",
11
+ {
12
+ ...props,
13
+ ref,
14
+ type: "checkbox",
15
+ className: cx("om-checkbox", className)
16
+ }
17
+ ));
18
+ Checkbox.displayName = "Checkbox";
19
+
20
+ export {
21
+ Checkbox
22
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import {
3
+ cx
4
+ } from "./chunk-54STG2JB.js";
5
+
6
+ // src/empty-state.tsx
7
+ import { forwardRef } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var EmptyState = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ...props, ref, className: cx("om-empty-state", className) }));
10
+ EmptyState.displayName = "EmptyState";
11
+
12
+ export {
13
+ EmptyState
14
+ };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import {
3
+ cx
4
+ } from "./chunk-54STG2JB.js";
5
+
6
+ // src/field.tsx
7
+ import {
8
+ forwardRef
9
+ } from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var Field = /* @__PURE__ */ forwardRef(({ className, legend, children, ...props }, ref) => /* @__PURE__ */ jsxs("fieldset", { ...props, ref, className: cx("om-field", className), children: [
12
+ /* @__PURE__ */ jsx("legend", { children: legend }),
13
+ children
14
+ ] }));
15
+ Field.displayName = "Field";
16
+
17
+ export {
18
+ Field
19
+ };
@@ -0,0 +1,8 @@
1
+ import * as react from 'react';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+
4
+ type EmptyStateProps = ComponentPropsWithoutRef<'div'>;
5
+ declare const EmptyState: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
6
+
7
+ export { EmptyState };
8
+ export type { EmptyStateProps };
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ EmptyState
4
+ } from "./chunk-XYGNNGM2.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ EmptyState
8
+ };
@@ -0,0 +1,12 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
3
+
4
+ type FieldProps = ComponentPropsWithoutRef<'fieldset'> & {
5
+ legend: ReactNode;
6
+ };
7
+ declare const Field: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & {
8
+ legend: ReactNode;
9
+ } & react.RefAttributes<HTMLFieldSetElement>>;
10
+
11
+ export { Field };
12
+ export type { FieldProps };
package/dist/field.js ADDED
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ Field
4
+ } from "./chunk-ZEQLZCOY.js";
5
+ import "./chunk-54STG2JB.js";
6
+ export {
7
+ Field
8
+ };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,23 @@ export { Card, CardProps } from './card.js';
4
4
  export { Badge, BadgeProps } from './badge.js';
5
5
  export { Tabs, TabsContent, TabsList, TabsTrigger } from './tabs.js';
6
6
  export { Dialog, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogTitle, DialogTrigger } from './dialog.js';
7
+ export { Textarea, TextareaProps } from './textarea.js';
8
+ export { Select, SelectDropdown, SelectDropdownOption, SelectDropdownProps, SelectProps } from './select.js';
9
+ export { Checkbox, CheckboxProps } from './checkbox.js';
10
+ export { Radio, RadioProps } from './radio.js';
11
+ export { Switch, SwitchProps } from './switch.js';
12
+ export { Separator, SeparatorProps } from './separator.js';
13
+ export { Skeleton, SkeletonProps } from './skeleton.js';
14
+ export { Progress, ProgressProps } from './progress.js';
15
+ export { Table, TableProps } from './table.js';
16
+ export { Field, FieldProps } from './field.js';
17
+ export { Accordion, AccordionProps } from './accordion.js';
18
+ export { Alert, AlertProps } from './alert.js';
19
+ export { Avatar, AvatarProps } from './avatar.js';
20
+ export { Spinner, SpinnerProps } from './spinner.js';
21
+ export { Breadcrumbs, BreadcrumbsProps } from './breadcrumbs.js';
22
+ export { Pagination, PaginationProps } from './pagination.js';
23
+ export { EmptyState, EmptyStateProps } from './empty-state.js';
7
24
  export { TokenName, tokens } from './tokens.js';
8
25
  import 'react';
9
26
  import '@radix-ui/react-tabs';
package/dist/index.js CHANGED
@@ -1,4 +1,56 @@
1
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";
2
54
  import {
3
55
  Button
4
56
  } from "./chunk-3TIYT55P.js";
@@ -28,21 +80,39 @@ import {
28
80
  import "./chunk-54STG2JB.js";
29
81
  import {
30
82
  tokens
31
- } from "./chunk-YGBV3KG6.js";
83
+ } from "./chunk-7A5VK567.js";
32
84
  export {
85
+ Accordion,
86
+ Alert,
87
+ Avatar,
33
88
  Badge,
89
+ Breadcrumbs,
34
90
  Button,
35
91
  Card,
92
+ Checkbox,
36
93
  Dialog,
37
94
  DialogClose,
38
95
  DialogContent,
39
96
  DialogDescription,
40
97
  DialogTitle,
41
98
  DialogTrigger,
99
+ EmptyState,
100
+ Field,
42
101
  Input,
102
+ Pagination,
103
+ Progress,
104
+ Radio,
105
+ Select,
106
+ SelectDropdown,
107
+ Separator,
108
+ Skeleton,
109
+ Spinner,
110
+ Switch,
111
+ Table,
43
112
  Tabs,
44
113
  TabsContent,
45
114
  TabsList,
46
115
  TabsTrigger,
116
+ Textarea,
47
117
  tokens
48
118
  };
@@ -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
+ };