@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/switch.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type SwitchProps = Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'role' | 'aria-checked'>;
|
|
5
|
+
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
|
|
7
|
+
export { Switch };
|
|
8
|
+
export type { SwitchProps };
|
package/dist/switch.js
ADDED
package/dist/table.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type TableProps = ComponentPropsWithoutRef<'table'>;
|
|
5
|
+
declare const Table: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & react.RefAttributes<HTMLTableElement>>;
|
|
6
|
+
|
|
7
|
+
export { Table };
|
|
8
|
+
export type { TableProps };
|
package/dist/table.js
ADDED
package/dist/tabs.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
+
|
|
4
|
+
declare const Tabs: react.ForwardRefExoticComponent<TabsPrimitive.TabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsList: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const TabsContent: react.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
package/dist/tabs.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
4
|
+
type TextareaProps = ComponentPropsWithoutRef<'textarea'>;
|
|
5
|
+
declare const Textarea: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
|
|
7
|
+
export { Textarea };
|
|
8
|
+
export type { TextareaProps };
|
package/dist/textarea.js
ADDED
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/* Generated from tokens JSON. Run npm run tokens. */
|
|
2
|
+
:root, :host, [data-om-theme="light"] {
|
|
3
|
+
--om-primitive-color-white: #ffffff;
|
|
4
|
+
--om-primitive-color-ink: #171717;
|
|
5
|
+
--om-primitive-color-paper: #fafafa;
|
|
6
|
+
--om-primitive-color-muted: #626262;
|
|
7
|
+
--om-primitive-color-line: #858585;
|
|
8
|
+
--om-primitive-color-mint: #216c50;
|
|
9
|
+
--om-primitive-color-mint-hover: #18533d;
|
|
10
|
+
--om-primitive-color-night: #111111;
|
|
11
|
+
--om-primitive-color-surface: #191919;
|
|
12
|
+
--om-primitive-color-bright: #f5f5f5;
|
|
13
|
+
--om-primitive-color-dim: #ababab;
|
|
14
|
+
--om-primitive-color-dark-line: #757575;
|
|
15
|
+
--om-primitive-color-pale-mint: #b9e8cc;
|
|
16
|
+
--om-primitive-color-pale-hover: #d3f2de;
|
|
17
|
+
--om-primitive-color-danger: #b42318;
|
|
18
|
+
--om-primitive-color-danger-dark: #ffb4ab;
|
|
19
|
+
--om-primitive-color-overlay: #000000;
|
|
20
|
+
--om-primitive-color-soft-line: #dedede;
|
|
21
|
+
--om-primitive-color-dark-soft-line: #383838;
|
|
22
|
+
--om-primitive-color-action-hover: #3b3b3b;
|
|
23
|
+
--om-primitive-color-light-action-hover: #dedede;
|
|
24
|
+
--om-primitive-color-focus-blue: #2459d3;
|
|
25
|
+
--om-primitive-color-focus-blue-dark: #91afff;
|
|
26
|
+
--om-primitive-space-0: 0px;
|
|
27
|
+
--om-primitive-space-2: 2px;
|
|
28
|
+
--om-primitive-space-4: 4px;
|
|
29
|
+
--om-primitive-space-8: 8px;
|
|
30
|
+
--om-primitive-space-12: 12px;
|
|
31
|
+
--om-primitive-space-16: 16px;
|
|
32
|
+
--om-primitive-space-24: 24px;
|
|
33
|
+
--om-primitive-space-32: 32px;
|
|
34
|
+
--om-primitive-radius-sm: 4px;
|
|
35
|
+
--om-primitive-radius-md: 6px;
|
|
36
|
+
--om-primitive-radius-lg: 8px;
|
|
37
|
+
--om-primitive-radius-pill: 999px;
|
|
38
|
+
--om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
|
|
39
|
+
--om-primitive-font-size-sm: 13px;
|
|
40
|
+
--om-primitive-font-size-md: 14px;
|
|
41
|
+
--om-primitive-font-size-lg: 20px;
|
|
42
|
+
--om-primitive-font-weight-normal: 400;
|
|
43
|
+
--om-primitive-font-weight-medium: 500;
|
|
44
|
+
--om-primitive-font-line: 1.5;
|
|
45
|
+
--om-primitive-font-mono-family: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
46
|
+
--om-primitive-border-width: 1px;
|
|
47
|
+
--om-primitive-motion-fast: 0.12s;
|
|
48
|
+
--om-primitive-motion-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
49
|
+
--om-primitive-shadow-panel: 0px 4px 16px 0px rgb(0% 0% 0% / 0.12);
|
|
50
|
+
--om-semantic-border-style: solid;
|
|
51
|
+
--om-semantic-control-height: 36px;
|
|
52
|
+
--om-semantic-control-small: 28px;
|
|
53
|
+
--om-semantic-overlay: rgba(0, 0, 0, 0.5);
|
|
54
|
+
--om-semantic-color-bg: var(--om-primitive-color-paper);
|
|
55
|
+
--om-semantic-color-surface: var(--om-primitive-color-white);
|
|
56
|
+
--om-semantic-color-text: var(--om-primitive-color-ink);
|
|
57
|
+
--om-semantic-color-muted: var(--om-primitive-color-muted);
|
|
58
|
+
--om-semantic-color-border: var(--om-primitive-color-line);
|
|
59
|
+
--om-semantic-color-accent: var(--om-primitive-color-ink);
|
|
60
|
+
--om-semantic-color-accent-hover: var(--om-primitive-color-action-hover);
|
|
61
|
+
--om-semantic-color-on-accent: var(--om-primitive-color-white);
|
|
62
|
+
--om-semantic-color-danger: var(--om-primitive-color-danger);
|
|
63
|
+
--om-semantic-color-focus: var(--om-primitive-color-focus-blue);
|
|
64
|
+
--om-semantic-color-border-subtle: var(--om-primitive-color-soft-line);
|
|
65
|
+
--om-semantic-color-action: var(--om-primitive-color-ink);
|
|
66
|
+
--om-semantic-color-on-action: var(--om-primitive-color-white);
|
|
67
|
+
--om-semantic-color-action-hover: var(--om-primitive-color-action-hover);
|
|
68
|
+
--om-semantic-space-xs: var(--om-primitive-space-4);
|
|
69
|
+
--om-semantic-space-sm: var(--om-primitive-space-8);
|
|
70
|
+
--om-semantic-space-md: var(--om-primitive-space-12);
|
|
71
|
+
--om-semantic-space-lg: var(--om-primitive-space-16);
|
|
72
|
+
--om-semantic-space-xl: var(--om-primitive-space-24);
|
|
73
|
+
--om-semantic-radius-sm: var(--om-primitive-radius-sm);
|
|
74
|
+
--om-semantic-radius-md: var(--om-primitive-radius-md);
|
|
75
|
+
--om-semantic-radius-lg: var(--om-primitive-radius-lg);
|
|
76
|
+
--om-semantic-radius-pill: var(--om-primitive-radius-pill);
|
|
77
|
+
--om-semantic-font-family: var(--om-primitive-font-family);
|
|
78
|
+
--om-semantic-font-size: var(--om-primitive-font-size-md);
|
|
79
|
+
--om-semantic-font-small: var(--om-primitive-font-size-sm);
|
|
80
|
+
--om-semantic-font-heading: var(--om-primitive-font-size-lg);
|
|
81
|
+
--om-semantic-font-weight: var(--om-primitive-font-weight-medium);
|
|
82
|
+
--om-semantic-font-line: var(--om-primitive-font-line);
|
|
83
|
+
--om-semantic-font-mono-family: var(--om-primitive-font-mono-family);
|
|
84
|
+
--om-semantic-border-width: var(--om-primitive-border-width);
|
|
85
|
+
--om-semantic-shadow: var(--om-primitive-shadow-panel);
|
|
86
|
+
--om-semantic-motion-duration: var(--om-primitive-motion-fast);
|
|
87
|
+
--om-semantic-motion-ease: var(--om-primitive-motion-ease);
|
|
88
|
+
--om-semantic-border-default: var(--om-primitive-border-width) solid var(--om-semantic-color-border);
|
|
89
|
+
}
|
|
90
|
+
[data-om-theme="dark"] {
|
|
91
|
+
--om-primitive-color-white: #ffffff;
|
|
92
|
+
--om-primitive-color-ink: #171717;
|
|
93
|
+
--om-primitive-color-paper: #fafafa;
|
|
94
|
+
--om-primitive-color-muted: #626262;
|
|
95
|
+
--om-primitive-color-line: #858585;
|
|
96
|
+
--om-primitive-color-mint: #216c50;
|
|
97
|
+
--om-primitive-color-mint-hover: #18533d;
|
|
98
|
+
--om-primitive-color-night: #111111;
|
|
99
|
+
--om-primitive-color-surface: #191919;
|
|
100
|
+
--om-primitive-color-bright: #f5f5f5;
|
|
101
|
+
--om-primitive-color-dim: #ababab;
|
|
102
|
+
--om-primitive-color-dark-line: #757575;
|
|
103
|
+
--om-primitive-color-pale-mint: #b9e8cc;
|
|
104
|
+
--om-primitive-color-pale-hover: #d3f2de;
|
|
105
|
+
--om-primitive-color-danger: #b42318;
|
|
106
|
+
--om-primitive-color-danger-dark: #ffb4ab;
|
|
107
|
+
--om-primitive-color-overlay: #000000;
|
|
108
|
+
--om-primitive-color-soft-line: #dedede;
|
|
109
|
+
--om-primitive-color-dark-soft-line: #383838;
|
|
110
|
+
--om-primitive-color-action-hover: #3b3b3b;
|
|
111
|
+
--om-primitive-color-light-action-hover: #dedede;
|
|
112
|
+
--om-primitive-color-focus-blue: #2459d3;
|
|
113
|
+
--om-primitive-color-focus-blue-dark: #91afff;
|
|
114
|
+
--om-primitive-space-0: 0px;
|
|
115
|
+
--om-primitive-space-2: 2px;
|
|
116
|
+
--om-primitive-space-4: 4px;
|
|
117
|
+
--om-primitive-space-8: 8px;
|
|
118
|
+
--om-primitive-space-12: 12px;
|
|
119
|
+
--om-primitive-space-16: 16px;
|
|
120
|
+
--om-primitive-space-24: 24px;
|
|
121
|
+
--om-primitive-space-32: 32px;
|
|
122
|
+
--om-primitive-radius-sm: 4px;
|
|
123
|
+
--om-primitive-radius-md: 6px;
|
|
124
|
+
--om-primitive-radius-lg: 8px;
|
|
125
|
+
--om-primitive-radius-pill: 999px;
|
|
126
|
+
--om-primitive-font-family: 'Geist Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
|
|
127
|
+
--om-primitive-font-size-sm: 13px;
|
|
128
|
+
--om-primitive-font-size-md: 14px;
|
|
129
|
+
--om-primitive-font-size-lg: 20px;
|
|
130
|
+
--om-primitive-font-weight-normal: 400;
|
|
131
|
+
--om-primitive-font-weight-medium: 500;
|
|
132
|
+
--om-primitive-font-line: 1.5;
|
|
133
|
+
--om-primitive-font-mono-family: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
134
|
+
--om-primitive-border-width: 1px;
|
|
135
|
+
--om-primitive-motion-fast: 0.12s;
|
|
136
|
+
--om-primitive-motion-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
137
|
+
--om-primitive-shadow-panel: 0px 4px 16px 0px rgb(0% 0% 0% / 0.12);
|
|
138
|
+
--om-semantic-border-style: solid;
|
|
139
|
+
--om-semantic-control-height: 36px;
|
|
140
|
+
--om-semantic-control-small: 28px;
|
|
141
|
+
--om-semantic-overlay: rgba(0, 0, 0, 0.5);
|
|
142
|
+
--om-semantic-color-bg: var(--om-primitive-color-night);
|
|
143
|
+
--om-semantic-color-surface: var(--om-primitive-color-surface);
|
|
144
|
+
--om-semantic-color-text: var(--om-primitive-color-bright);
|
|
145
|
+
--om-semantic-color-muted: var(--om-primitive-color-dim);
|
|
146
|
+
--om-semantic-color-border: var(--om-primitive-color-dark-line);
|
|
147
|
+
--om-semantic-color-accent: var(--om-primitive-color-bright);
|
|
148
|
+
--om-semantic-color-accent-hover: var(--om-primitive-color-light-action-hover);
|
|
149
|
+
--om-semantic-color-on-accent: var(--om-primitive-color-ink);
|
|
150
|
+
--om-semantic-color-danger: var(--om-primitive-color-danger-dark);
|
|
151
|
+
--om-semantic-color-focus: var(--om-primitive-color-focus-blue-dark);
|
|
152
|
+
--om-semantic-color-border-subtle: var(--om-primitive-color-dark-soft-line);
|
|
153
|
+
--om-semantic-color-action: var(--om-primitive-color-bright);
|
|
154
|
+
--om-semantic-color-on-action: var(--om-primitive-color-ink);
|
|
155
|
+
--om-semantic-color-action-hover: var(--om-primitive-color-light-action-hover);
|
|
156
|
+
--om-semantic-space-xs: var(--om-primitive-space-4);
|
|
157
|
+
--om-semantic-space-sm: var(--om-primitive-space-8);
|
|
158
|
+
--om-semantic-space-md: var(--om-primitive-space-12);
|
|
159
|
+
--om-semantic-space-lg: var(--om-primitive-space-16);
|
|
160
|
+
--om-semantic-space-xl: var(--om-primitive-space-24);
|
|
161
|
+
--om-semantic-radius-sm: var(--om-primitive-radius-sm);
|
|
162
|
+
--om-semantic-radius-md: var(--om-primitive-radius-md);
|
|
163
|
+
--om-semantic-radius-lg: var(--om-primitive-radius-lg);
|
|
164
|
+
--om-semantic-radius-pill: var(--om-primitive-radius-pill);
|
|
165
|
+
--om-semantic-font-family: var(--om-primitive-font-family);
|
|
166
|
+
--om-semantic-font-size: var(--om-primitive-font-size-md);
|
|
167
|
+
--om-semantic-font-small: var(--om-primitive-font-size-sm);
|
|
168
|
+
--om-semantic-font-heading: var(--om-primitive-font-size-lg);
|
|
169
|
+
--om-semantic-font-weight: var(--om-primitive-font-weight-medium);
|
|
170
|
+
--om-semantic-font-line: var(--om-primitive-font-line);
|
|
171
|
+
--om-semantic-font-mono-family: var(--om-primitive-font-mono-family);
|
|
172
|
+
--om-semantic-border-width: var(--om-primitive-border-width);
|
|
173
|
+
--om-semantic-shadow: var(--om-primitive-shadow-panel);
|
|
174
|
+
--om-semantic-motion-duration: var(--om-primitive-motion-fast);
|
|
175
|
+
--om-semantic-motion-ease: var(--om-primitive-motion-ease);
|
|
176
|
+
--om-semantic-border-default: var(--om-primitive-border-width) solid var(--om-semantic-color-border);
|
|
177
|
+
}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const tokens: {
|
|
2
|
+
readonly "color.bg": "var(--om-semantic-color-bg)";
|
|
3
|
+
readonly "color.surface": "var(--om-semantic-color-surface)";
|
|
4
|
+
readonly "color.text": "var(--om-semantic-color-text)";
|
|
5
|
+
readonly "color.muted": "var(--om-semantic-color-muted)";
|
|
6
|
+
readonly "color.border": "var(--om-semantic-color-border)";
|
|
7
|
+
readonly "color.accent": "var(--om-semantic-color-accent)";
|
|
8
|
+
readonly "color.accent-hover": "var(--om-semantic-color-accent-hover)";
|
|
9
|
+
readonly "color.on-accent": "var(--om-semantic-color-on-accent)";
|
|
10
|
+
readonly "color.danger": "var(--om-semantic-color-danger)";
|
|
11
|
+
readonly "color.focus": "var(--om-semantic-color-focus)";
|
|
12
|
+
readonly "color.border-subtle": "var(--om-semantic-color-border-subtle)";
|
|
13
|
+
readonly "color.action": "var(--om-semantic-color-action)";
|
|
14
|
+
readonly "color.on-action": "var(--om-semantic-color-on-action)";
|
|
15
|
+
readonly "color.action-hover": "var(--om-semantic-color-action-hover)";
|
|
16
|
+
readonly "space.xs": "var(--om-semantic-space-xs)";
|
|
17
|
+
readonly "space.sm": "var(--om-semantic-space-sm)";
|
|
18
|
+
readonly "space.md": "var(--om-semantic-space-md)";
|
|
19
|
+
readonly "space.lg": "var(--om-semantic-space-lg)";
|
|
20
|
+
readonly "space.xl": "var(--om-semantic-space-xl)";
|
|
21
|
+
readonly "radius.sm": "var(--om-semantic-radius-sm)";
|
|
22
|
+
readonly "radius.md": "var(--om-semantic-radius-md)";
|
|
23
|
+
readonly "radius.lg": "var(--om-semantic-radius-lg)";
|
|
24
|
+
readonly "radius.pill": "var(--om-semantic-radius-pill)";
|
|
25
|
+
readonly "font.family": "var(--om-semantic-font-family)";
|
|
26
|
+
readonly "font.size": "var(--om-semantic-font-size)";
|
|
27
|
+
readonly "font.small": "var(--om-semantic-font-small)";
|
|
28
|
+
readonly "font.heading": "var(--om-semantic-font-heading)";
|
|
29
|
+
readonly "font.weight": "var(--om-semantic-font-weight)";
|
|
30
|
+
readonly "font.line": "var(--om-semantic-font-line)";
|
|
31
|
+
readonly "font.mono-family": "var(--om-semantic-font-mono-family)";
|
|
32
|
+
readonly "border.default": "var(--om-semantic-border-default)";
|
|
33
|
+
readonly "border.width": "var(--om-semantic-border-width)";
|
|
34
|
+
readonly "border.style": "var(--om-semantic-border-style)";
|
|
35
|
+
readonly shadow: "var(--om-semantic-shadow)";
|
|
36
|
+
readonly "motion.duration": "var(--om-semantic-motion-duration)";
|
|
37
|
+
readonly "motion.ease": "var(--om-semantic-motion-ease)";
|
|
38
|
+
readonly "control.height": "var(--om-semantic-control-height)";
|
|
39
|
+
readonly "control.small": "var(--om-semantic-control-small)";
|
|
40
|
+
readonly overlay: "var(--om-semantic-overlay)";
|
|
41
|
+
};
|
|
42
|
+
type TokenName = keyof typeof tokens;
|
|
43
|
+
|
|
44
|
+
export { tokens };
|
|
45
|
+
export type { TokenName };
|
package/dist/tokens.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,175 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oddmash/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Small, themeable React foundations for Oddmash tools.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Oddmash/oddmash-ui.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"tokens",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css",
|
|
19
|
+
"**/*.scss"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./styles.css": "./dist/styles.css",
|
|
27
|
+
"./tokens.css": "./dist/tokens.css",
|
|
28
|
+
"./tokens": {
|
|
29
|
+
"types": "./dist/tokens.d.ts",
|
|
30
|
+
"import": "./dist/tokens.js"
|
|
31
|
+
},
|
|
32
|
+
"./button": {
|
|
33
|
+
"types": "./dist/button.d.ts",
|
|
34
|
+
"import": "./dist/button.js"
|
|
35
|
+
},
|
|
36
|
+
"./input": {
|
|
37
|
+
"types": "./dist/input.d.ts",
|
|
38
|
+
"import": "./dist/input.js"
|
|
39
|
+
},
|
|
40
|
+
"./card": {
|
|
41
|
+
"types": "./dist/card.d.ts",
|
|
42
|
+
"import": "./dist/card.js"
|
|
43
|
+
},
|
|
44
|
+
"./badge": {
|
|
45
|
+
"types": "./dist/badge.d.ts",
|
|
46
|
+
"import": "./dist/badge.js"
|
|
47
|
+
},
|
|
48
|
+
"./tabs": {
|
|
49
|
+
"types": "./dist/tabs.d.ts",
|
|
50
|
+
"import": "./dist/tabs.js"
|
|
51
|
+
},
|
|
52
|
+
"./dialog": {
|
|
53
|
+
"types": "./dist/dialog.d.ts",
|
|
54
|
+
"import": "./dist/dialog.js"
|
|
55
|
+
},
|
|
56
|
+
"./tokens/*.json": "./tokens/*.json",
|
|
57
|
+
"./textarea": {
|
|
58
|
+
"types": "./dist/textarea.d.ts",
|
|
59
|
+
"import": "./dist/textarea.js"
|
|
60
|
+
},
|
|
61
|
+
"./select": {
|
|
62
|
+
"types": "./dist/select.d.ts",
|
|
63
|
+
"import": "./dist/select.js"
|
|
64
|
+
},
|
|
65
|
+
"./checkbox": {
|
|
66
|
+
"types": "./dist/checkbox.d.ts",
|
|
67
|
+
"import": "./dist/checkbox.js"
|
|
68
|
+
},
|
|
69
|
+
"./radio": {
|
|
70
|
+
"types": "./dist/radio.d.ts",
|
|
71
|
+
"import": "./dist/radio.js"
|
|
72
|
+
},
|
|
73
|
+
"./switch": {
|
|
74
|
+
"types": "./dist/switch.d.ts",
|
|
75
|
+
"import": "./dist/switch.js"
|
|
76
|
+
},
|
|
77
|
+
"./separator": {
|
|
78
|
+
"types": "./dist/separator.d.ts",
|
|
79
|
+
"import": "./dist/separator.js"
|
|
80
|
+
},
|
|
81
|
+
"./skeleton": {
|
|
82
|
+
"types": "./dist/skeleton.d.ts",
|
|
83
|
+
"import": "./dist/skeleton.js"
|
|
84
|
+
},
|
|
85
|
+
"./progress": {
|
|
86
|
+
"types": "./dist/progress.d.ts",
|
|
87
|
+
"import": "./dist/progress.js"
|
|
88
|
+
},
|
|
89
|
+
"./table": {
|
|
90
|
+
"types": "./dist/table.d.ts",
|
|
91
|
+
"import": "./dist/table.js"
|
|
92
|
+
},
|
|
93
|
+
"./field": {
|
|
94
|
+
"types": "./dist/field.d.ts",
|
|
95
|
+
"import": "./dist/field.js"
|
|
96
|
+
},
|
|
97
|
+
"./accordion": {
|
|
98
|
+
"types": "./dist/accordion.d.ts",
|
|
99
|
+
"import": "./dist/accordion.js"
|
|
100
|
+
},
|
|
101
|
+
"./alert": {
|
|
102
|
+
"types": "./dist/alert.d.ts",
|
|
103
|
+
"import": "./dist/alert.js"
|
|
104
|
+
},
|
|
105
|
+
"./avatar": {
|
|
106
|
+
"types": "./dist/avatar.d.ts",
|
|
107
|
+
"import": "./dist/avatar.js"
|
|
108
|
+
},
|
|
109
|
+
"./spinner": {
|
|
110
|
+
"types": "./dist/spinner.d.ts",
|
|
111
|
+
"import": "./dist/spinner.js"
|
|
112
|
+
},
|
|
113
|
+
"./breadcrumbs": {
|
|
114
|
+
"types": "./dist/breadcrumbs.d.ts",
|
|
115
|
+
"import": "./dist/breadcrumbs.js"
|
|
116
|
+
},
|
|
117
|
+
"./pagination": {
|
|
118
|
+
"types": "./dist/pagination.d.ts",
|
|
119
|
+
"import": "./dist/pagination.js"
|
|
120
|
+
},
|
|
121
|
+
"./empty-state": {
|
|
122
|
+
"types": "./dist/empty-state.d.ts",
|
|
123
|
+
"import": "./dist/empty-state.js"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"engines": {
|
|
127
|
+
"node": ">=24"
|
|
128
|
+
},
|
|
129
|
+
"scripts": {
|
|
130
|
+
"tokens": "node --import tsx scripts/tokens.ts",
|
|
131
|
+
"tokens:check": "node --import tsx scripts/tokens.ts --check",
|
|
132
|
+
"build": "npm run tokens && tsup && sass --no-source-map src/styles.scss dist/styles.css && cp src/generated/tokens.css dist/tokens.css",
|
|
133
|
+
"typecheck": "tsc --noEmit",
|
|
134
|
+
"lint": "eslint .",
|
|
135
|
+
"test": "vitest run",
|
|
136
|
+
"demo": "vite --config demo/vite.config.ts",
|
|
137
|
+
"build:demo": "vite build --config demo/vite.config.ts",
|
|
138
|
+
"check": "npm run tokens:check && npm run build && npm run typecheck && npm run lint && npm test && npm run test:bundle && npm run build:demo",
|
|
139
|
+
"test:browser": "playwright test",
|
|
140
|
+
"prepare": "npm run build",
|
|
141
|
+
"test:bundle": "node --import tsx scripts/bundle.ts"
|
|
142
|
+
},
|
|
143
|
+
"devDependencies": {
|
|
144
|
+
"@axe-core/playwright": "^4.14.0",
|
|
145
|
+
"@playwright/test": "^1.65.0",
|
|
146
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
147
|
+
"@testing-library/react": "^16.3.3",
|
|
148
|
+
"@testing-library/user-event": "^14.6.10",
|
|
149
|
+
"@types/node": "^26.6.6",
|
|
150
|
+
"@types/react": "^19.3.0",
|
|
151
|
+
"@types/react-dom": "^19.3.0",
|
|
152
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
153
|
+
"esbuild": "^0.28.2",
|
|
154
|
+
"eslint": "^10.14.0",
|
|
155
|
+
"jsdom": "^29.1.1",
|
|
156
|
+
"react": "^19.3.1",
|
|
157
|
+
"react-dom": "^19.3.1",
|
|
158
|
+
"sass": "^1.108.2",
|
|
159
|
+
"style-dictionary": "^5.8.0",
|
|
160
|
+
"tsup": "^9.0.0",
|
|
161
|
+
"tsx": "^4.23.15",
|
|
162
|
+
"typescript": "^6.0.3",
|
|
163
|
+
"typescript-eslint": "^8.72.2",
|
|
164
|
+
"vite": "^8.3.8",
|
|
165
|
+
"vitest": "^5.1.0"
|
|
166
|
+
},
|
|
167
|
+
"peerDependencies": {
|
|
168
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
169
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
170
|
+
},
|
|
171
|
+
"dependencies": {
|
|
172
|
+
"@radix-ui/react-dialog": "^1.3.1",
|
|
173
|
+
"@radix-ui/react-tabs": "^1.2.1"
|
|
174
|
+
}
|
|
175
|
+
}
|