@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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Oddmash
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Oddmash UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**English** · [한국어](docs/ko/README.md) · [日本語](docs/ja/README.md) · [简体中文](docs/zh-CN/README.md)
|
|
4
|
+
|
|
5
|
+
Oddmash UI is the shared interface foundation for Oddmash products. It gives small React developer tools a consistent visual language, accessible interaction patterns, and themeable design tokens without deciding the product layout for them.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## What it provides
|
|
10
|
+
|
|
11
|
+
- Accessible React components for forms, feedback, navigation, overlays, and data display.
|
|
12
|
+
- JSON design tokens for color, typography, spacing, radius, shadow, border, and motion.
|
|
13
|
+
- Light and dark themes that can be applied to a whole app or a single subtree.
|
|
14
|
+
- A documentation site with live examples, API guidance, accessibility notes, and a token explorer.
|
|
15
|
+
- An Interaction Lab that shows how the components work together in a developer-tool interface.
|
|
16
|
+
|
|
17
|
+
## Who it is for
|
|
18
|
+
|
|
19
|
+
Oddmash UI is for focused tools such as Interaction Inspector: products that need clear controls and dependable behavior but should not each invent a new component system. Product-specific layout, information hierarchy, and branding remain in the product.
|
|
20
|
+
|
|
21
|
+
## Design principles
|
|
22
|
+
|
|
23
|
+
- **Consistent by default.** Shared components and semantic tokens make Oddmash tools feel related.
|
|
24
|
+
- **Color signals interaction.** Neutral surfaces and controls carry the interface. Blue indicates focus and red indicates errors.
|
|
25
|
+
- **Accessible in behavior.** Keyboard interaction, focus handling, reduced motion, and forced colors are part of the component contract.
|
|
26
|
+
- **Themeable, not prescriptive.** Products can override semantic tokens without forking the components.
|
|
27
|
+
- **Small on purpose.** The system grows from real product needs rather than trying to cover every UI pattern.
|
|
28
|
+
|
|
29
|
+
## Current scope
|
|
30
|
+
|
|
31
|
+
Oddmash UI is under active pre-1.0 development. Version 0.2.0 provides 23 component families through npm and the live documentation.
|
|
32
|
+
|
|
33
|
+
[Docs](https://oddmash.github.io/oddmash-ui/) · [npm](https://www.npmjs.com/package/@oddmash/ui) · [GitHub](https://github.com/Oddmash/oddmash-ui) · [Contributor guide](CONTRIBUTING.md) · [MIT License](LICENSE)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type AccordionProps = ComponentPropsWithoutRef<'details'> & {
|
|
5
|
+
summary: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const Accordion: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> & {
|
|
8
|
+
summary: ReactNode;
|
|
9
|
+
} & react.RefAttributes<HTMLDetailsElement>>;
|
|
10
|
+
|
|
11
|
+
export { Accordion };
|
|
12
|
+
export type { AccordionProps };
|
package/dist/alert.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type AlertProps = ComponentPropsWithoutRef<'div'> & {
|
|
5
|
+
tone?: 'neutral' | 'danger';
|
|
6
|
+
};
|
|
7
|
+
declare const Alert: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
tone?: "neutral" | "danger";
|
|
9
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export { Alert };
|
|
12
|
+
export type { AlertProps };
|
package/dist/alert.js
ADDED
package/dist/avatar.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type AvatarProps = ComponentPropsWithoutRef<'span'> & {
|
|
5
|
+
src?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Avatar: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
9
|
+
src?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
} & react.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
|
|
13
|
+
export { Avatar };
|
|
14
|
+
export type { AvatarProps };
|
package/dist/avatar.js
ADDED
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type BadgeProps = ComponentPropsWithoutRef<'span'> & {
|
|
5
|
+
tone?: 'neutral' | 'accent';
|
|
6
|
+
};
|
|
7
|
+
declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
8
|
+
tone?: "neutral" | "accent";
|
|
9
|
+
} & react.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
|
|
11
|
+
export { Badge };
|
|
12
|
+
export type { BadgeProps };
|
package/dist/badge.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type BreadcrumbsProps = ComponentPropsWithoutRef<'nav'>;
|
|
5
|
+
declare const Breadcrumbs: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & react.RefAttributes<HTMLElement>>;
|
|
6
|
+
|
|
7
|
+
export { Breadcrumbs };
|
|
8
|
+
export type { BreadcrumbsProps };
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = ComponentPropsWithoutRef<'button'> & {
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
};
|
|
8
|
+
declare const Button: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
9
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
10
|
+
size?: "sm" | "md";
|
|
11
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
|
|
13
|
+
export { Button };
|
|
14
|
+
export type { ButtonProps };
|
package/dist/button.js
ADDED
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type CardProps = ComponentPropsWithoutRef<'div'>;
|
|
5
|
+
declare const Card: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
export { Card };
|
|
8
|
+
export type { CardProps };
|
package/dist/card.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type CheckboxProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'role' | 'aria-checked'>;
|
|
5
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
|
|
7
|
+
export { Checkbox };
|
|
8
|
+
export type { CheckboxProps };
|
package/dist/checkbox.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/progress.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Progress = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("progress", { ...props, ref, className: cx("om-progress", className) }));
|
|
10
|
+
Progress.displayName = "Progress";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Progress
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/alert.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Alert = /* @__PURE__ */ forwardRef(
|
|
10
|
+
({ className, tone = "neutral", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
...props,
|
|
14
|
+
ref,
|
|
15
|
+
"data-tone": tone,
|
|
16
|
+
className: cx("om-alert", className)
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
Alert.displayName = "Alert";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Alert
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/accordion.tsx
|
|
7
|
+
import {
|
|
8
|
+
forwardRef
|
|
9
|
+
} from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var Accordion = /* @__PURE__ */ forwardRef(({ className, summary, children, ...props }, ref) => /* @__PURE__ */ jsxs("details", { ...props, ref, className: cx("om-accordion", className), children: [
|
|
12
|
+
/* @__PURE__ */ jsx("summary", { children: summary }),
|
|
13
|
+
/* @__PURE__ */ jsx("div", { className: "om-accordion-content", children })
|
|
14
|
+
] }));
|
|
15
|
+
Accordion.displayName = "Accordion";
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
Accordion
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/button.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Button = /* @__PURE__ */ forwardRef(({ className, variant = "primary", size = "md", type = "button", ...props }, ref) => /* @__PURE__ */ jsx("button", { ...props, ref, type, className: cx("om-button", `om-button--${variant}`, `om-button--${size}`, className) }));
|
|
10
|
+
Button.displayName = "Button";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Button
|
|
14
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/radio.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Radio = /* @__PURE__ */ forwardRef(
|
|
10
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
+
"input",
|
|
12
|
+
{
|
|
13
|
+
...props,
|
|
14
|
+
ref,
|
|
15
|
+
type: "radio",
|
|
16
|
+
className: cx("om-radio", className)
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
Radio.displayName = "Radio";
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
Radio
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/table.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Table = /* @__PURE__ */ forwardRef(
|
|
10
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("table", { ...props, ref, className: cx("om-table", className) })
|
|
11
|
+
);
|
|
12
|
+
Table.displayName = "Table";
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
Table
|
|
16
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/pagination.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Pagination = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
+
"nav",
|
|
11
|
+
{
|
|
12
|
+
"aria-label": "Pagination",
|
|
13
|
+
...props,
|
|
14
|
+
ref,
|
|
15
|
+
className: cx("om-pagination", className)
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
Pagination.displayName = "Pagination";
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
Pagination
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/tabs.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var Tabs = TabsPrimitive.Root;
|
|
11
|
+
var TabsList = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, { ...props, ref, className: cx("om-tabs-list", className) }));
|
|
12
|
+
TabsList.displayName = "TabsList";
|
|
13
|
+
var TabsTrigger = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ...props, ref, className: cx("om-tabs-trigger", className) }));
|
|
14
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
15
|
+
var TabsContent = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, { ...props, ref, className: cx("om-tabs-content", className) }));
|
|
16
|
+
TabsContent.displayName = "TabsContent";
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Tabs,
|
|
20
|
+
TabsList,
|
|
21
|
+
TabsTrigger,
|
|
22
|
+
TabsContent
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/input.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Input = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("input", { ...props, ref, className: cx("om-input", className) }));
|
|
10
|
+
Input.displayName = "Input";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Input
|
|
14
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/generated/tokens.ts
|
|
4
|
+
var tokens = {
|
|
5
|
+
"color.bg": "var(--om-semantic-color-bg)",
|
|
6
|
+
"color.surface": "var(--om-semantic-color-surface)",
|
|
7
|
+
"color.text": "var(--om-semantic-color-text)",
|
|
8
|
+
"color.muted": "var(--om-semantic-color-muted)",
|
|
9
|
+
"color.border": "var(--om-semantic-color-border)",
|
|
10
|
+
"color.accent": "var(--om-semantic-color-accent)",
|
|
11
|
+
"color.accent-hover": "var(--om-semantic-color-accent-hover)",
|
|
12
|
+
"color.on-accent": "var(--om-semantic-color-on-accent)",
|
|
13
|
+
"color.danger": "var(--om-semantic-color-danger)",
|
|
14
|
+
"color.focus": "var(--om-semantic-color-focus)",
|
|
15
|
+
"color.border-subtle": "var(--om-semantic-color-border-subtle)",
|
|
16
|
+
"color.action": "var(--om-semantic-color-action)",
|
|
17
|
+
"color.on-action": "var(--om-semantic-color-on-action)",
|
|
18
|
+
"color.action-hover": "var(--om-semantic-color-action-hover)",
|
|
19
|
+
"space.xs": "var(--om-semantic-space-xs)",
|
|
20
|
+
"space.sm": "var(--om-semantic-space-sm)",
|
|
21
|
+
"space.md": "var(--om-semantic-space-md)",
|
|
22
|
+
"space.lg": "var(--om-semantic-space-lg)",
|
|
23
|
+
"space.xl": "var(--om-semantic-space-xl)",
|
|
24
|
+
"radius.sm": "var(--om-semantic-radius-sm)",
|
|
25
|
+
"radius.md": "var(--om-semantic-radius-md)",
|
|
26
|
+
"radius.lg": "var(--om-semantic-radius-lg)",
|
|
27
|
+
"radius.pill": "var(--om-semantic-radius-pill)",
|
|
28
|
+
"font.family": "var(--om-semantic-font-family)",
|
|
29
|
+
"font.size": "var(--om-semantic-font-size)",
|
|
30
|
+
"font.small": "var(--om-semantic-font-small)",
|
|
31
|
+
"font.heading": "var(--om-semantic-font-heading)",
|
|
32
|
+
"font.weight": "var(--om-semantic-font-weight)",
|
|
33
|
+
"font.line": "var(--om-semantic-font-line)",
|
|
34
|
+
"font.mono-family": "var(--om-semantic-font-mono-family)",
|
|
35
|
+
"border.default": "var(--om-semantic-border-default)",
|
|
36
|
+
"border.width": "var(--om-semantic-border-width)",
|
|
37
|
+
"border.style": "var(--om-semantic-border-style)",
|
|
38
|
+
"shadow": "var(--om-semantic-shadow)",
|
|
39
|
+
"motion.duration": "var(--om-semantic-motion-duration)",
|
|
40
|
+
"motion.ease": "var(--om-semantic-motion-ease)",
|
|
41
|
+
"control.height": "var(--om-semantic-control-height)",
|
|
42
|
+
"control.small": "var(--om-semantic-control-small)",
|
|
43
|
+
"overlay": "var(--om-semantic-overlay)"
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
tokens
|
|
48
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/skeleton.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Skeleton = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
+
"span",
|
|
11
|
+
{
|
|
12
|
+
...props,
|
|
13
|
+
ref,
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
className: cx("om-skeleton", className)
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
Skeleton.displayName = "Skeleton";
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
Skeleton
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cx
|
|
4
|
+
} from "./chunk-54STG2JB.js";
|
|
5
|
+
|
|
6
|
+
// src/textarea.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Textarea = /* @__PURE__ */ forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("textarea", { ...props, ref, className: cx("om-textarea", className) }));
|
|
10
|
+
Textarea.displayName = "Textarea";
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
Textarea
|
|
14
|
+
};
|