oxelicomponents 0.0.0-stage → 0.0.1
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 +53 -2
- package/dist/board/index.css +140 -0
- package/dist/board/index.css.map +1 -0
- package/dist/board/index.d.ts +53 -0
- package/dist/board/index.js +5 -0
- package/dist/board/index.js.map +1 -0
- package/dist/chunk-EICMVJRC.js +128 -0
- package/dist/chunk-EICMVJRC.js.map +1 -0
- package/dist/chunk-HA3GVOMS.js +34 -0
- package/dist/chunk-HA3GVOMS.js.map +1 -0
- package/dist/chunk-P2NSJI4G.js +8 -0
- package/dist/chunk-P2NSJI4G.js.map +1 -0
- package/dist/chunk-QSHOM2VG.js +161 -0
- package/dist/chunk-QSHOM2VG.js.map +1 -0
- package/dist/chunk-TYZJOYUW.js +104 -0
- package/dist/chunk-TYZJOYUW.js.map +1 -0
- package/dist/chunk-YEFLYKOL.js +108 -0
- package/dist/chunk-YEFLYKOL.js.map +1 -0
- package/dist/index.css +668 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/patterns/index.css +160 -0
- package/dist/patterns/index.css.map +1 -0
- package/dist/patterns/index.d.ts +50 -0
- package/dist/patterns/index.js +5 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/pieces/index.css +18 -0
- package/dist/pieces/index.css.map +1 -0
- package/dist/pieces/index.d.ts +20 -0
- package/dist/pieces/index.js +4 -0
- package/dist/pieces/index.js.map +1 -0
- package/dist/tokens/index.css +128 -0
- package/dist/tokens/index.css.map +1 -0
- package/dist/tokens/index.d.ts +193 -0
- package/dist/tokens/index.js +3 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/types-DGzNxs8G.d.ts +5 -0
- package/dist/ui/index.css +258 -0
- package/dist/ui/index.css.map +1 -0
- package/dist/ui/index.d.ts +65 -0
- package/dist/ui/index.js +4 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +87 -4
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/* src/ui/Badge.css */
|
|
2
|
+
.oxeli-badge {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
min-height: 36px;
|
|
7
|
+
padding: 0 var(--oxeli-ui-space-3);
|
|
8
|
+
border-radius: 999px;
|
|
9
|
+
}
|
|
10
|
+
.oxeli-badge--positive {
|
|
11
|
+
color: var(--oxeli-piece-ink);
|
|
12
|
+
background: var(--oxeli-piece-face);
|
|
13
|
+
border: 1px solid var(--oxeli-piece-ink);
|
|
14
|
+
}
|
|
15
|
+
.oxeli-badge--negative {
|
|
16
|
+
color: var(--oxeli-piece-face);
|
|
17
|
+
background: var(--oxeli-piece-ink);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* src/ui/Button.css */
|
|
21
|
+
.oxeli-button {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
gap: var(--oxeli-ui-space-2);
|
|
26
|
+
min-height: 56px;
|
|
27
|
+
padding: 0 var(--oxeli-ui-space-5);
|
|
28
|
+
border-radius: var(--oxeli-ui-radius-2);
|
|
29
|
+
border: 1px solid transparent;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
.oxeli-button:focus-visible {
|
|
34
|
+
outline: 2px solid var(--oxeli-ui-accent);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
37
|
+
.oxeli-button:disabled {
|
|
38
|
+
opacity: 0.45;
|
|
39
|
+
cursor: not-allowed;
|
|
40
|
+
}
|
|
41
|
+
.oxeli-button--primary {
|
|
42
|
+
background: var(--oxeli-ui-accent);
|
|
43
|
+
color: var(--oxeli-ui-on-accent);
|
|
44
|
+
}
|
|
45
|
+
.oxeli-button--primary:hover:not(:disabled) {
|
|
46
|
+
background: var(--oxeli-ui-accent-hover);
|
|
47
|
+
}
|
|
48
|
+
.oxeli-button--primary:active:not(:disabled) {
|
|
49
|
+
background: var(--oxeli-ui-accent-hover);
|
|
50
|
+
opacity: 0.9;
|
|
51
|
+
}
|
|
52
|
+
.oxeli-button--secondary {
|
|
53
|
+
background: var(--oxeli-ui-surface-alt);
|
|
54
|
+
color: var(--oxeli-ui-text);
|
|
55
|
+
border-color: var(--oxeli-ui-border);
|
|
56
|
+
}
|
|
57
|
+
.oxeli-button--secondary:hover:not(:disabled) {
|
|
58
|
+
background: var(--oxeli-ui-accent-soft);
|
|
59
|
+
}
|
|
60
|
+
.oxeli-button--ghost {
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--oxeli-ui-text);
|
|
63
|
+
}
|
|
64
|
+
.oxeli-button--ghost:hover:not(:disabled) {
|
|
65
|
+
background: var(--oxeli-ui-accent-soft);
|
|
66
|
+
}
|
|
67
|
+
.oxeli-button--danger {
|
|
68
|
+
background: var(--oxeli-ui-danger);
|
|
69
|
+
color: var(--oxeli-ui-on-accent);
|
|
70
|
+
}
|
|
71
|
+
.oxeli-button--danger:hover:not(:disabled) {
|
|
72
|
+
filter: brightness(0.95);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* src/ui/Header.css */
|
|
76
|
+
.oxeli-header {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
gap: var(--oxeli-ui-space-4);
|
|
81
|
+
min-height: var(--oxeli-layout-header-height);
|
|
82
|
+
width: 100%;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
color: var(--oxeli-ui-text);
|
|
85
|
+
}
|
|
86
|
+
.oxeli-header__actions {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: var(--oxeli-ui-space-3);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* src/ui/Input.css */
|
|
93
|
+
.oxeli-input-field {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: var(--oxeli-ui-space-2);
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
.oxeli-input-field__label {
|
|
100
|
+
color: var(--oxeli-ui-text);
|
|
101
|
+
}
|
|
102
|
+
.oxeli-input {
|
|
103
|
+
width: 100%;
|
|
104
|
+
min-height: 64px;
|
|
105
|
+
padding: 0 var(--oxeli-ui-space-4);
|
|
106
|
+
border: 1px solid var(--oxeli-ui-border);
|
|
107
|
+
border-radius: var(--oxeli-ui-radius-2);
|
|
108
|
+
background: var(--oxeli-ui-surface);
|
|
109
|
+
color: var(--oxeli-ui-text);
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
}
|
|
112
|
+
.oxeli-input:focus-visible {
|
|
113
|
+
outline: 2px solid var(--oxeli-ui-accent);
|
|
114
|
+
outline-offset: 2px;
|
|
115
|
+
border-color: var(--oxeli-ui-accent);
|
|
116
|
+
}
|
|
117
|
+
.oxeli-input:disabled {
|
|
118
|
+
opacity: 0.45;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* src/ui/Navigation.css */
|
|
122
|
+
.oxeli-navigation {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: var(--oxeli-ui-space-3);
|
|
126
|
+
width: var(--oxeli-layout-nav-width);
|
|
127
|
+
min-height: 100%;
|
|
128
|
+
padding: var(--oxeli-ui-space-4);
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
background: var(--oxeli-ui-nav);
|
|
131
|
+
color: var(--oxeli-ui-nav-text);
|
|
132
|
+
}
|
|
133
|
+
.oxeli-navigation__brand {
|
|
134
|
+
min-height: var(--oxeli-layout-header-height);
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
color: var(--oxeli-ui-nav-text);
|
|
138
|
+
}
|
|
139
|
+
.oxeli-navigation__items {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
gap: var(--oxeli-ui-space-2);
|
|
143
|
+
flex: 1;
|
|
144
|
+
}
|
|
145
|
+
.oxeli-navigation__bottom {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
gap: var(--oxeli-ui-space-2);
|
|
149
|
+
margin-top: auto;
|
|
150
|
+
}
|
|
151
|
+
.oxeli-navigation__footer {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
gap: var(--oxeli-ui-space-2);
|
|
155
|
+
}
|
|
156
|
+
.oxeli-navigation__caption {
|
|
157
|
+
color: var(--oxeli-ui-nav-muted);
|
|
158
|
+
padding: 0 var(--oxeli-ui-space-4);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* src/ui/NavigationItem.css */
|
|
162
|
+
.oxeli-navigation-item {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
width: 100%;
|
|
166
|
+
min-height: 56px;
|
|
167
|
+
padding: 0 var(--oxeli-ui-space-4);
|
|
168
|
+
border: 0;
|
|
169
|
+
border-radius: var(--oxeli-ui-radius-2);
|
|
170
|
+
background: transparent;
|
|
171
|
+
color: var(--oxeli-ui-nav-text);
|
|
172
|
+
text-align: left;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
.oxeli-navigation-item:hover:not(:disabled) {
|
|
176
|
+
background: var(--oxeli-ui-nav-active);
|
|
177
|
+
}
|
|
178
|
+
.oxeli-navigation-item--selected {
|
|
179
|
+
background: var(--oxeli-ui-nav-active);
|
|
180
|
+
}
|
|
181
|
+
.oxeli-navigation-item:disabled {
|
|
182
|
+
color: var(--oxeli-ui-nav-muted);
|
|
183
|
+
cursor: not-allowed;
|
|
184
|
+
}
|
|
185
|
+
.oxeli-navigation-item:focus-visible {
|
|
186
|
+
outline: 2px solid var(--oxeli-ui-accent);
|
|
187
|
+
outline-offset: 2px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* src/ui/StatusLine.css */
|
|
191
|
+
.oxeli-status-line {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
min-height: 56px;
|
|
196
|
+
width: 100%;
|
|
197
|
+
max-width: 800px;
|
|
198
|
+
padding: 0 var(--oxeli-ui-space-4);
|
|
199
|
+
border-radius: var(--oxeli-ui-radius-2);
|
|
200
|
+
background: var(--oxeli-ui-surface);
|
|
201
|
+
color: var(--oxeli-ui-text);
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* src/ui/Surface.css */
|
|
206
|
+
.oxeli-surface {
|
|
207
|
+
background: var(--oxeli-ui-surface);
|
|
208
|
+
color: var(--oxeli-ui-text);
|
|
209
|
+
border-radius: var(--oxeli-ui-radius-2);
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* src/ui/Toggle.css */
|
|
214
|
+
.oxeli-toggle {
|
|
215
|
+
position: relative;
|
|
216
|
+
width: 64px;
|
|
217
|
+
height: 36px;
|
|
218
|
+
padding: 0;
|
|
219
|
+
border: 0;
|
|
220
|
+
border-radius: 999px;
|
|
221
|
+
background: var(--oxeli-ui-border);
|
|
222
|
+
cursor: pointer;
|
|
223
|
+
}
|
|
224
|
+
.oxeli-toggle--on {
|
|
225
|
+
background: var(--oxeli-ui-accent);
|
|
226
|
+
}
|
|
227
|
+
.oxeli-toggle:disabled {
|
|
228
|
+
opacity: 0.45;
|
|
229
|
+
cursor: not-allowed;
|
|
230
|
+
}
|
|
231
|
+
.oxeli-toggle:focus-visible {
|
|
232
|
+
outline: 2px solid var(--oxeli-ui-accent);
|
|
233
|
+
outline-offset: 2px;
|
|
234
|
+
}
|
|
235
|
+
.oxeli-toggle__thumb {
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 4px;
|
|
238
|
+
left: 4px;
|
|
239
|
+
width: 28px;
|
|
240
|
+
height: 28px;
|
|
241
|
+
border-radius: 50%;
|
|
242
|
+
background: var(--oxeli-ui-surface);
|
|
243
|
+
transition: transform 120ms ease;
|
|
244
|
+
}
|
|
245
|
+
.oxeli-toggle--on .oxeli-toggle__thumb {
|
|
246
|
+
transform: translateX(28px);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* src/ui/ViewSwitch.css */
|
|
250
|
+
.oxeli-view-switch {
|
|
251
|
+
display: inline-flex;
|
|
252
|
+
gap: var(--oxeli-ui-space-2);
|
|
253
|
+
align-items: center;
|
|
254
|
+
}
|
|
255
|
+
.oxeli-view-switch .oxeli-button {
|
|
256
|
+
min-width: 0;
|
|
257
|
+
}
|
|
258
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ui/Badge.css","../../src/ui/Button.css","../../src/ui/Header.css","../../src/ui/Input.css","../../src/ui/Navigation.css","../../src/ui/NavigationItem.css","../../src/ui/StatusLine.css","../../src/ui/Surface.css","../../src/ui/Toggle.css","../../src/ui/ViewSwitch.css"],"sourcesContent":[".oxeli-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 36px;\n padding: 0 var(--oxeli-ui-space-3);\n border-radius: 999px;\n}\n\n.oxeli-badge--positive {\n color: var(--oxeli-piece-ink);\n background: var(--oxeli-piece-face);\n border: 1px solid var(--oxeli-piece-ink);\n}\n\n.oxeli-badge--negative {\n color: var(--oxeli-piece-face);\n background: var(--oxeli-piece-ink);\n}\n",".oxeli-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--oxeli-ui-space-2);\n min-height: 56px;\n padding: 0 var(--oxeli-ui-space-5);\n border-radius: var(--oxeli-ui-radius-2);\n border: 1px solid transparent;\n cursor: pointer;\n box-sizing: border-box;\n}\n\n.oxeli-button:focus-visible {\n outline: 2px solid var(--oxeli-ui-accent);\n outline-offset: 2px;\n}\n\n.oxeli-button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.oxeli-button--primary {\n background: var(--oxeli-ui-accent);\n color: var(--oxeli-ui-on-accent);\n}\n\n.oxeli-button--primary:hover:not(:disabled) {\n background: var(--oxeli-ui-accent-hover);\n}\n\n.oxeli-button--primary:active:not(:disabled) {\n background: var(--oxeli-ui-accent-hover);\n opacity: 0.9;\n}\n\n.oxeli-button--secondary {\n background: var(--oxeli-ui-surface-alt);\n color: var(--oxeli-ui-text);\n border-color: var(--oxeli-ui-border);\n}\n\n.oxeli-button--secondary:hover:not(:disabled) {\n background: var(--oxeli-ui-accent-soft);\n}\n\n.oxeli-button--ghost {\n background: transparent;\n color: var(--oxeli-ui-text);\n}\n\n.oxeli-button--ghost:hover:not(:disabled) {\n background: var(--oxeli-ui-accent-soft);\n}\n\n.oxeli-button--danger {\n background: var(--oxeli-ui-danger);\n color: var(--oxeli-ui-on-accent);\n}\n\n.oxeli-button--danger:hover:not(:disabled) {\n filter: brightness(0.95);\n}\n",".oxeli-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--oxeli-ui-space-4);\n min-height: var(--oxeli-layout-header-height);\n width: 100%;\n box-sizing: border-box;\n color: var(--oxeli-ui-text);\n}\n\n.oxeli-header__actions {\n display: flex;\n align-items: center;\n gap: var(--oxeli-ui-space-3);\n}\n",".oxeli-input-field {\n display: flex;\n flex-direction: column;\n gap: var(--oxeli-ui-space-2);\n width: 100%;\n}\n\n.oxeli-input-field__label {\n color: var(--oxeli-ui-text);\n}\n\n.oxeli-input {\n width: 100%;\n min-height: 64px;\n padding: 0 var(--oxeli-ui-space-4);\n border: 1px solid var(--oxeli-ui-border);\n border-radius: var(--oxeli-ui-radius-2);\n background: var(--oxeli-ui-surface);\n color: var(--oxeli-ui-text);\n box-sizing: border-box;\n}\n\n.oxeli-input:focus-visible {\n outline: 2px solid var(--oxeli-ui-accent);\n outline-offset: 2px;\n border-color: var(--oxeli-ui-accent);\n}\n\n.oxeli-input:disabled {\n opacity: 0.45;\n}\n",".oxeli-navigation {\n display: flex;\n flex-direction: column;\n gap: var(--oxeli-ui-space-3);\n width: var(--oxeli-layout-nav-width);\n min-height: 100%;\n padding: var(--oxeli-ui-space-4);\n box-sizing: border-box;\n background: var(--oxeli-ui-nav);\n color: var(--oxeli-ui-nav-text);\n}\n\n.oxeli-navigation__brand {\n min-height: var(--oxeli-layout-header-height);\n display: flex;\n align-items: center;\n color: var(--oxeli-ui-nav-text);\n}\n\n.oxeli-navigation__items {\n display: flex;\n flex-direction: column;\n gap: var(--oxeli-ui-space-2);\n flex: 1;\n}\n\n.oxeli-navigation__bottom {\n display: flex;\n flex-direction: column;\n gap: var(--oxeli-ui-space-2);\n margin-top: auto;\n}\n\n.oxeli-navigation__footer {\n display: flex;\n flex-direction: column;\n gap: var(--oxeli-ui-space-2);\n}\n\n.oxeli-navigation__caption {\n color: var(--oxeli-ui-nav-muted);\n padding: 0 var(--oxeli-ui-space-4);\n}\n",".oxeli-navigation-item {\n display: flex;\n align-items: center;\n width: 100%;\n min-height: 56px;\n padding: 0 var(--oxeli-ui-space-4);\n border: 0;\n border-radius: var(--oxeli-ui-radius-2);\n background: transparent;\n color: var(--oxeli-ui-nav-text);\n text-align: left;\n cursor: pointer;\n}\n\n.oxeli-navigation-item:hover:not(:disabled) {\n background: var(--oxeli-ui-nav-active);\n}\n\n.oxeli-navigation-item--selected {\n background: var(--oxeli-ui-nav-active);\n}\n\n.oxeli-navigation-item:disabled {\n color: var(--oxeli-ui-nav-muted);\n cursor: not-allowed;\n}\n\n.oxeli-navigation-item:focus-visible {\n outline: 2px solid var(--oxeli-ui-accent);\n outline-offset: 2px;\n}\n",".oxeli-status-line {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 56px;\n width: 100%;\n max-width: 800px;\n padding: 0 var(--oxeli-ui-space-4);\n border-radius: var(--oxeli-ui-radius-2);\n background: var(--oxeli-ui-surface);\n color: var(--oxeli-ui-text);\n box-sizing: border-box;\n}\n",".oxeli-surface {\n background: var(--oxeli-ui-surface);\n color: var(--oxeli-ui-text);\n border-radius: var(--oxeli-ui-radius-2);\n box-sizing: border-box;\n}\n",".oxeli-toggle {\n position: relative;\n width: 64px;\n height: 36px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n background: var(--oxeli-ui-border);\n cursor: pointer;\n}\n\n.oxeli-toggle--on {\n background: var(--oxeli-ui-accent);\n}\n\n.oxeli-toggle:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n\n.oxeli-toggle:focus-visible {\n outline: 2px solid var(--oxeli-ui-accent);\n outline-offset: 2px;\n}\n\n.oxeli-toggle__thumb {\n position: absolute;\n top: 4px;\n left: 4px;\n width: 28px;\n height: 28px;\n border-radius: 50%;\n background: var(--oxeli-ui-surface);\n transition: transform 120ms ease;\n}\n\n.oxeli-toggle--on .oxeli-toggle__thumb {\n transform: translateX(28px);\n}\n",".oxeli-view-switch {\n display: inline-flex;\n gap: var(--oxeli-ui-space-2);\n align-items: center;\n}\n\n.oxeli-view-switch .oxeli-button {\n min-width: 0;\n}\n"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,cAAY;AACZ,WAAS,EAAE,IAAI;AACf,iBAAe;AACjB;AAEA,CAAC;AACC,SAAO,IAAI;AACX,cAAY,IAAI;AAChB,UAAQ,IAAI,MAAM,IAAI;AACxB;AAEA,CAAC;AACC,SAAO,IAAI;AACX,cAAY,IAAI;AAClB;;;AClBA,CAAC;AACC,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,OAAK,IAAI;AACT,cAAY;AACZ,WAAS,EAAE,IAAI;AACf,iBAAe,IAAI;AACnB,UAAQ,IAAI,MAAM;AAClB,UAAQ;AACR,cAAY;AACd;AAEA,CAbC,YAaY;AACX,WAAS,IAAI,MAAM,IAAI;AACvB,kBAAgB;AAClB;AAEA,CAlBC,YAkBY;AACX,WAAS;AACT,UAAQ;AACV;AAEA,CAAC;AACC,cAAY,IAAI;AAChB,SA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CAAC;AACC,YAAU;AACV,OAAK;AACL,QAAM;AACN,SAAO;AACP,UAAQ;AACR,iBAAe;AACf,cAAY,IAAI;AAChB,cAAY,UAAU,MAAM;AAC9B;AAEA,CAzBC,iBAyBiB,CAXjB;AAYC,aAAW,WAAW;AACxB;;;ACtCA,CAAC;AACC,WAAS;AACT,OAAK,IAAI;AACT,eAAa;AACf;AAEA,CANC,kBAMkB,CAAC;AAClB,aAAW;AACb;","names":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type BadgeSide = "positive" | "negative";
|
|
5
|
+
type BadgeProps = ComponentProps<"span"> & {
|
|
6
|
+
side?: BadgeSide;
|
|
7
|
+
};
|
|
8
|
+
declare function Badge({ side, className, ...rest }: BadgeProps): react.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type ButtonKind = "primary" | "secondary" | "ghost" | "danger";
|
|
11
|
+
type ButtonProps = ComponentProps<"button"> & {
|
|
12
|
+
kind?: ButtonKind;
|
|
13
|
+
};
|
|
14
|
+
declare function Button({ kind, className, type, ...rest }: ButtonProps): react.JSX.Element;
|
|
15
|
+
|
|
16
|
+
type HeaderProps = ComponentProps<"header"> & {
|
|
17
|
+
title?: ReactNode;
|
|
18
|
+
actions?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
declare function Header({ title, actions, className, children, ...rest }: HeaderProps): react.JSX.Element;
|
|
21
|
+
|
|
22
|
+
type InputProps = ComponentProps<"input"> & {
|
|
23
|
+
/** Visible label linked to the control. */
|
|
24
|
+
label: ReactNode;
|
|
25
|
+
};
|
|
26
|
+
declare function Input({ label, className, id, ...rest }: InputProps): react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type NavigationProps = ComponentProps<"nav"> & {
|
|
29
|
+
brand?: ReactNode;
|
|
30
|
+
/** Bottom-pinned items (Settings, About, Quit). */
|
|
31
|
+
footer?: ReactNode;
|
|
32
|
+
/** Small caption under the footer group. */
|
|
33
|
+
caption?: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
declare function Navigation({ brand, footer, caption, className, children, ...rest }: NavigationProps): react.JSX.Element;
|
|
36
|
+
|
|
37
|
+
type NavigationItemProps = ComponentProps<"button"> & {
|
|
38
|
+
selected?: boolean;
|
|
39
|
+
};
|
|
40
|
+
declare function NavigationItem({ selected, className, type, ...rest }: NavigationItemProps): react.JSX.Element;
|
|
41
|
+
|
|
42
|
+
type StatusLineProps = ComponentProps<"div">;
|
|
43
|
+
declare function StatusLine({ className, ...rest }: StatusLineProps): react.JSX.Element;
|
|
44
|
+
|
|
45
|
+
type SurfaceProps = ComponentProps<"div">;
|
|
46
|
+
declare function Surface({ className, ...rest }: SurfaceProps): react.JSX.Element;
|
|
47
|
+
|
|
48
|
+
type ToggleProps = Omit<ComponentProps<"button">, "onChange"> & {
|
|
49
|
+
checked: boolean;
|
|
50
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
51
|
+
};
|
|
52
|
+
declare function Toggle({ checked, onCheckedChange, className, disabled, onClick, ...rest }: ToggleProps): react.JSX.Element;
|
|
53
|
+
|
|
54
|
+
type BoardView = "2d" | "3d";
|
|
55
|
+
type ViewSwitchProps = Omit<ComponentProps<"div">, "onChange"> & {
|
|
56
|
+
value: BoardView;
|
|
57
|
+
onValueChange?: (value: BoardView) => void;
|
|
58
|
+
label2d: ReactNode;
|
|
59
|
+
label3d: ReactNode;
|
|
60
|
+
/** Group accessible name from the app. */
|
|
61
|
+
label?: string;
|
|
62
|
+
};
|
|
63
|
+
declare function ViewSwitch({ value, onValueChange, label2d, label3d, label, className, ...rest }: ViewSwitchProps): react.JSX.Element;
|
|
64
|
+
|
|
65
|
+
export { Badge, type BadgeProps, type BadgeSide, type BoardView, Button, type ButtonKind, type ButtonProps, Header, type HeaderProps, Input, type InputProps, Navigation, NavigationItem, type NavigationItemProps, type NavigationProps, StatusLine, type StatusLineProps, Surface, type SurfaceProps, Toggle, type ToggleProps, ViewSwitch, type ViewSwitchProps };
|
package/dist/ui/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxelicomponents",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "React + TypeScript GUI components for Oxeli Chess",
|
|
5
|
+
"homepage": "https://github.com/jedt3d/oxelicomponents#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/jedt3d/oxelicomponents/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/jedt3d/oxelicomponents.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "Worajedt Sitthidumrong",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=26"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org/"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./tokens": {
|
|
36
|
+
"types": "./dist/tokens/index.d.ts",
|
|
37
|
+
"default": "./dist/tokens/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./pieces": {
|
|
40
|
+
"types": "./dist/pieces/index.d.ts",
|
|
41
|
+
"default": "./dist/pieces/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./board": {
|
|
44
|
+
"types": "./dist/board/index.d.ts",
|
|
45
|
+
"default": "./dist/board/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./ui": {
|
|
48
|
+
"types": "./dist/ui/index.d.ts",
|
|
49
|
+
"default": "./dist/ui/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./patterns": {
|
|
52
|
+
"types": "./dist/patterns/index.d.ts",
|
|
53
|
+
"default": "./dist/patterns/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./styles.css": "./dist/index.css",
|
|
56
|
+
"./tokens.css": "./dist/tokens/index.css"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsup",
|
|
60
|
+
"dev": "tsup --watch",
|
|
61
|
+
"gallery": "vite",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"exports:smoke": "node scripts/exports-smoke.mjs",
|
|
65
|
+
"prepublishOnly": "npm run typecheck && npm run build && npm run exports:smoke && npm run test"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"react": "^19.0.0",
|
|
69
|
+
"react-dom": "^19.0.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@testing-library/react": "^16.2.0",
|
|
73
|
+
"@testing-library/user-event": "^14.6.0",
|
|
74
|
+
"@types/react": "^19.0.0",
|
|
75
|
+
"@types/react-dom": "^19.0.0",
|
|
76
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
77
|
+
"jsdom": "^26.0.0",
|
|
78
|
+
"react": "^19.0.0",
|
|
79
|
+
"react-dom": "^19.0.0",
|
|
80
|
+
"tsup": "^8.4.0",
|
|
81
|
+
"typescript": "^5.8.0",
|
|
82
|
+
"vite": "^6.0.0",
|
|
83
|
+
"vitest": "^3.0.0"
|
|
84
|
+
},
|
|
85
|
+
"allowScripts": {
|
|
86
|
+
"esbuild@0.27.7": true,
|
|
87
|
+
"esbuild@0.25.12": true
|
|
88
|
+
}
|
|
89
|
+
}
|