@ap-gen/ui 1.0.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/dist/components/alert/index.d.ts +11 -0
- package/dist/components/badge/index.d.ts +10 -0
- package/dist/components/breadcrumb/index.d.ts +10 -0
- package/dist/components/button/index.d.ts +17 -0
- package/dist/components/button/text.d.ts +17 -0
- package/dist/components/calendar/amount.d.ts +7 -0
- package/dist/components/calendar/date.d.ts +12 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/month.d.ts +1 -0
- package/dist/components/calendar/schedule.d.ts +9 -0
- package/dist/components/calendar/week.d.ts +1 -0
- package/dist/components/calendar/year.d.ts +3 -0
- package/dist/components/card/index.d.ts +11 -0
- package/dist/components/cell-picker/index.d.ts +13 -0
- package/dist/components/cell-picker/item.d.ts +8 -0
- package/dist/components/checkbox/index.d.ts +7 -0
- package/dist/components/chip/index.d.ts +13 -0
- package/dist/components/color-picker/index.d.ts +6 -0
- package/dist/components/combo-box/index.d.ts +18 -0
- package/dist/components/combo-box/text.d.ts +17 -0
- package/dist/components/description/index.d.ts +15 -0
- package/dist/components/divider/index.d.ts +7 -0
- package/dist/components/empty/index.d.ts +5 -0
- package/dist/components/header/index.d.ts +8 -0
- package/dist/components/header/list.d.ts +13 -0
- package/dist/components/header/section.d.ts +19 -0
- package/dist/components/header/tab.d.ts +9 -0
- package/dist/components/icon/index.d.ts +553 -0
- package/dist/components/index.d.ts +48 -0
- package/dist/components/input/index.d.ts +20 -0
- package/dist/components/list/compact.d.ts +11 -0
- package/dist/components/list/default.d.ts +22 -0
- package/dist/components/list/index.d.ts +8 -0
- package/dist/components/list/tab.d.ts +11 -0
- package/dist/components/list-group/index.d.ts +14 -0
- package/dist/components/loading/index.d.ts +6 -0
- package/dist/components/motion-pressable/index.d.ts +3 -0
- package/dist/components/motion-pressable-div/index.d.ts +3 -0
- package/dist/components/navigation-bar/index.d.ts +10 -0
- package/dist/components/page-indicator/index.d.ts +8 -0
- package/dist/components/pagination/index.d.ts +8 -0
- package/dist/components/paragraph/index.d.ts +13 -0
- package/dist/components/popover/index.d.ts +16 -0
- package/dist/components/progress-bar/index.d.ts +10 -0
- package/dist/components/radio/index.d.ts +6 -0
- package/dist/components/search-bar/index.d.ts +7 -0
- package/dist/components/search-box/index.d.ts +8 -0
- package/dist/components/segmented-control/index.d.ts +17 -0
- package/dist/components/slider/index.d.ts +14 -0
- package/dist/components/snackbar/index.d.ts +19 -0
- package/dist/components/switch/index.d.ts +6 -0
- package/dist/components/tab-bar/index.d.ts +14 -0
- package/dist/components/table/column.d.ts +1 -0
- package/dist/components/table/front-checkbox.d.ts +2 -0
- package/dist/components/table/head-column.d.ts +15 -0
- package/dist/components/table/head-row.d.ts +17 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/item.d.ts +14 -0
- package/dist/components/tabs/index.d.ts +13 -0
- package/dist/components/text/constant/variants.d.ts +153 -0
- package/dist/components/text/index.d.ts +278 -0
- package/dist/components/timeline/index.d.ts +10 -0
- package/dist/components/tooltip/index.d.ts +11 -0
- package/dist/components/tooltip/popover.d.ts +5 -0
- package/dist/components/upload/dropbox.d.ts +10 -0
- package/dist/components/upload/file.d.ts +8 -0
- package/dist/components/upload/image.d.ts +7 -0
- package/dist/components/upload/index.d.ts +8 -0
- package/dist/hooks/useCalendar.d.ts +21 -0
- package/dist/hooks/useClickOutside.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2834 -0
- package/dist/index.js.map +1 -0
- package/dist/provider/CalendarProvider.d.ts +16 -0
- package/dist/provider/ClientProvider.d.ts +15 -0
- package/dist/provider/ColorThemeProvider.d.ts +10 -0
- package/dist/provider/Provider.d.ts +2 -0
- package/dist/provider/index.d.ts +2 -0
- package/dist/styles/color/base.d.ts +282 -0
- package/dist/styles/color/index.d.ts +293 -0
- package/dist/styles/color/themes/dark.d.ts +3 -0
- package/dist/styles/color/themes/elevated.d.ts +3 -0
- package/dist/styles/color/themes/light.d.ts +3 -0
- package/dist/styles/color/themes/trueDark.d.ts +3 -0
- package/dist/styles/color/themes/type.d.ts +322 -0
- package/dist/styles/color/type.d.ts +7 -0
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/getNestedValue.d.ts +1 -0
- package/dist/utils/hexToRgb.d.ts +1 -0
- package/dist/utils/index.d.ts +0 -0
- package/esm/index.mjs +2757 -0
- package/esm/index.mjs.map +1 -0
- package/package.json +214 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
export interface ITheme {
|
|
2
|
+
foreground: Foreground;
|
|
3
|
+
background: Background;
|
|
4
|
+
stroke: Stroke;
|
|
5
|
+
dim: Dim;
|
|
6
|
+
}
|
|
7
|
+
export interface Foreground {
|
|
8
|
+
neutral: Neutral;
|
|
9
|
+
surface: Surface;
|
|
10
|
+
semantic: Semantic;
|
|
11
|
+
}
|
|
12
|
+
export interface Neutral {
|
|
13
|
+
primary: string;
|
|
14
|
+
secondary: string;
|
|
15
|
+
tertiary: string;
|
|
16
|
+
quarternary: string;
|
|
17
|
+
}
|
|
18
|
+
export interface Surface {
|
|
19
|
+
static: string;
|
|
20
|
+
inverted: string;
|
|
21
|
+
}
|
|
22
|
+
export interface Semantic {
|
|
23
|
+
core: string;
|
|
24
|
+
status: Status;
|
|
25
|
+
variance: Variance;
|
|
26
|
+
}
|
|
27
|
+
export interface Status {
|
|
28
|
+
warning: string;
|
|
29
|
+
notice: string;
|
|
30
|
+
success: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Variance {
|
|
33
|
+
increase: string;
|
|
34
|
+
decrease: string;
|
|
35
|
+
flat: string;
|
|
36
|
+
}
|
|
37
|
+
export interface Background {
|
|
38
|
+
canvas: Canvas;
|
|
39
|
+
overlay: Overlay;
|
|
40
|
+
surface: Surface2;
|
|
41
|
+
semantic: Semantic2;
|
|
42
|
+
}
|
|
43
|
+
export interface Canvas {
|
|
44
|
+
standard: string;
|
|
45
|
+
intense: string;
|
|
46
|
+
}
|
|
47
|
+
export interface Overlay {
|
|
48
|
+
standard: string;
|
|
49
|
+
standardTranslucent: string;
|
|
50
|
+
static: string;
|
|
51
|
+
staticTranslucent: string;
|
|
52
|
+
}
|
|
53
|
+
export interface Surface2 {
|
|
54
|
+
standard: string;
|
|
55
|
+
intense: string;
|
|
56
|
+
interactive: string;
|
|
57
|
+
inverted: string;
|
|
58
|
+
}
|
|
59
|
+
export interface Semantic2 {
|
|
60
|
+
core: string;
|
|
61
|
+
coreTranslucent: string;
|
|
62
|
+
status: Status2;
|
|
63
|
+
variance: Variance2;
|
|
64
|
+
}
|
|
65
|
+
export interface Status2 {
|
|
66
|
+
warning: string;
|
|
67
|
+
warningTranslucent: string;
|
|
68
|
+
notice: string;
|
|
69
|
+
noticeTranslucent: string;
|
|
70
|
+
success: string;
|
|
71
|
+
successTranslucent: string;
|
|
72
|
+
}
|
|
73
|
+
export interface Variance2 {
|
|
74
|
+
increase: string;
|
|
75
|
+
increaseTranslucent: string;
|
|
76
|
+
decrease: string;
|
|
77
|
+
decreaseTranslucent: string;
|
|
78
|
+
flat: string;
|
|
79
|
+
flatTranslucent: string;
|
|
80
|
+
}
|
|
81
|
+
export interface Stroke {
|
|
82
|
+
outline: Outline;
|
|
83
|
+
separator: Separator;
|
|
84
|
+
surface: Surface3;
|
|
85
|
+
semantic: Semantic3;
|
|
86
|
+
}
|
|
87
|
+
export interface Outline {
|
|
88
|
+
standard: string;
|
|
89
|
+
intense: string;
|
|
90
|
+
focused: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Separator {
|
|
93
|
+
standard: string;
|
|
94
|
+
intense: string;
|
|
95
|
+
}
|
|
96
|
+
export interface Surface3 {
|
|
97
|
+
static: string;
|
|
98
|
+
inverted: string;
|
|
99
|
+
}
|
|
100
|
+
export interface Semantic3 {
|
|
101
|
+
core: string;
|
|
102
|
+
status: Status3;
|
|
103
|
+
variance: Variance3;
|
|
104
|
+
}
|
|
105
|
+
export interface Status3 {
|
|
106
|
+
warning: string;
|
|
107
|
+
notice: string;
|
|
108
|
+
success: string;
|
|
109
|
+
}
|
|
110
|
+
export interface Variance3 {
|
|
111
|
+
increase: string;
|
|
112
|
+
decrease: string;
|
|
113
|
+
flat: string;
|
|
114
|
+
}
|
|
115
|
+
export interface Dim {
|
|
116
|
+
standard: string;
|
|
117
|
+
intense: string;
|
|
118
|
+
}
|
|
119
|
+
export interface BaseSystem {
|
|
120
|
+
white0: string;
|
|
121
|
+
white2: string;
|
|
122
|
+
white4: string;
|
|
123
|
+
white6: string;
|
|
124
|
+
white8: string;
|
|
125
|
+
white12: string;
|
|
126
|
+
white16: string;
|
|
127
|
+
white20: string;
|
|
128
|
+
white24: string;
|
|
129
|
+
white32: string;
|
|
130
|
+
white40: string;
|
|
131
|
+
white60: string;
|
|
132
|
+
white80: string;
|
|
133
|
+
white100: string;
|
|
134
|
+
gray0: string;
|
|
135
|
+
gray2: string;
|
|
136
|
+
gray4: string;
|
|
137
|
+
gray6: string;
|
|
138
|
+
gray8: string;
|
|
139
|
+
gray12: string;
|
|
140
|
+
gray16: string;
|
|
141
|
+
gray20: string;
|
|
142
|
+
gray24: string;
|
|
143
|
+
gray32: string;
|
|
144
|
+
gray40: string;
|
|
145
|
+
gray60: string;
|
|
146
|
+
gray80: string;
|
|
147
|
+
gray100: string;
|
|
148
|
+
black0: string;
|
|
149
|
+
black2: string;
|
|
150
|
+
black4: string;
|
|
151
|
+
black6: string;
|
|
152
|
+
black8: string;
|
|
153
|
+
black12: string;
|
|
154
|
+
black16: string;
|
|
155
|
+
black20: string;
|
|
156
|
+
black24: string;
|
|
157
|
+
black32: string;
|
|
158
|
+
black40: string;
|
|
159
|
+
black60: string;
|
|
160
|
+
black80: string;
|
|
161
|
+
black100: string;
|
|
162
|
+
red0: string;
|
|
163
|
+
red2: string;
|
|
164
|
+
red4: string;
|
|
165
|
+
red6: string;
|
|
166
|
+
red8: string;
|
|
167
|
+
red12: string;
|
|
168
|
+
red16: string;
|
|
169
|
+
red20: string;
|
|
170
|
+
red24: string;
|
|
171
|
+
red32: string;
|
|
172
|
+
red40: string;
|
|
173
|
+
red60: string;
|
|
174
|
+
red80: string;
|
|
175
|
+
red100: string;
|
|
176
|
+
orange0: string;
|
|
177
|
+
orange2: string;
|
|
178
|
+
orange4: string;
|
|
179
|
+
orange6: string;
|
|
180
|
+
orange8: string;
|
|
181
|
+
orange12: string;
|
|
182
|
+
orange16: string;
|
|
183
|
+
orange20: string;
|
|
184
|
+
orange24: string;
|
|
185
|
+
orange32: string;
|
|
186
|
+
orange40: string;
|
|
187
|
+
orange60: string;
|
|
188
|
+
orange80: string;
|
|
189
|
+
orange100: string;
|
|
190
|
+
yellow0: string;
|
|
191
|
+
yellow2: string;
|
|
192
|
+
yellow4: string;
|
|
193
|
+
yellow6: string;
|
|
194
|
+
yellow8: string;
|
|
195
|
+
yellow12: string;
|
|
196
|
+
yellow16: string;
|
|
197
|
+
yellow20: string;
|
|
198
|
+
yellow24: string;
|
|
199
|
+
yellow32: string;
|
|
200
|
+
yellow40: string;
|
|
201
|
+
yellow60: string;
|
|
202
|
+
yellow80: string;
|
|
203
|
+
yellow100: string;
|
|
204
|
+
green0: string;
|
|
205
|
+
green2: string;
|
|
206
|
+
green4: string;
|
|
207
|
+
green6: string;
|
|
208
|
+
green8: string;
|
|
209
|
+
green12: string;
|
|
210
|
+
green16: string;
|
|
211
|
+
green20: string;
|
|
212
|
+
green24: string;
|
|
213
|
+
green32: string;
|
|
214
|
+
green40: string;
|
|
215
|
+
green60: string;
|
|
216
|
+
green80: string;
|
|
217
|
+
green100: string;
|
|
218
|
+
blue0: string;
|
|
219
|
+
blue2: string;
|
|
220
|
+
blue4: string;
|
|
221
|
+
blue6: string;
|
|
222
|
+
blue8: string;
|
|
223
|
+
blue12: string;
|
|
224
|
+
blue16: string;
|
|
225
|
+
blue20: string;
|
|
226
|
+
blue24: string;
|
|
227
|
+
blue32: string;
|
|
228
|
+
blue40: string;
|
|
229
|
+
blue60: string;
|
|
230
|
+
blue80: string;
|
|
231
|
+
blue100: string;
|
|
232
|
+
purple0: string;
|
|
233
|
+
purple2: string;
|
|
234
|
+
purple4: string;
|
|
235
|
+
purple6: string;
|
|
236
|
+
purple8: string;
|
|
237
|
+
purple12: string;
|
|
238
|
+
purple16: string;
|
|
239
|
+
purple20: string;
|
|
240
|
+
purple24: string;
|
|
241
|
+
purple32: string;
|
|
242
|
+
purple40: string;
|
|
243
|
+
purple60: string;
|
|
244
|
+
purple80: string;
|
|
245
|
+
purple100: string;
|
|
246
|
+
}
|
|
247
|
+
export interface BaseTheme {
|
|
248
|
+
primary0: string;
|
|
249
|
+
primary2: string;
|
|
250
|
+
primary4: string;
|
|
251
|
+
primary6: string;
|
|
252
|
+
primary8: string;
|
|
253
|
+
primary12: string;
|
|
254
|
+
primary16: string;
|
|
255
|
+
primary20: string;
|
|
256
|
+
primary24: string;
|
|
257
|
+
primary32: string;
|
|
258
|
+
primary40: string;
|
|
259
|
+
primary60: string;
|
|
260
|
+
primary80: string;
|
|
261
|
+
primary100: string;
|
|
262
|
+
midnight0: string;
|
|
263
|
+
midnight2: string;
|
|
264
|
+
midnight4: string;
|
|
265
|
+
midnight6: string;
|
|
266
|
+
midnight8: string;
|
|
267
|
+
midnight12: string;
|
|
268
|
+
midnight16: string;
|
|
269
|
+
midnight20: string;
|
|
270
|
+
midnight24: string;
|
|
271
|
+
midnight32: string;
|
|
272
|
+
midnight40: string;
|
|
273
|
+
midnight60: string;
|
|
274
|
+
midnight80: string;
|
|
275
|
+
midnight100: string;
|
|
276
|
+
midenightLight0: string;
|
|
277
|
+
midenightLight2: string;
|
|
278
|
+
midenightLight4: string;
|
|
279
|
+
midenightLight6: string;
|
|
280
|
+
midenightLight8: string;
|
|
281
|
+
midenightLight12: string;
|
|
282
|
+
midenightLight16: string;
|
|
283
|
+
midenightLight20: string;
|
|
284
|
+
midenightLight24: string;
|
|
285
|
+
midenightLight32: string;
|
|
286
|
+
midenightLight40: string;
|
|
287
|
+
midenightLight60: string;
|
|
288
|
+
midenightLight80: string;
|
|
289
|
+
midenightLight100: string;
|
|
290
|
+
charcoal0: string;
|
|
291
|
+
charcoal2: string;
|
|
292
|
+
charcoal4: string;
|
|
293
|
+
charcoal6: string;
|
|
294
|
+
charcoal8: string;
|
|
295
|
+
charcoal12: string;
|
|
296
|
+
charcoal16: string;
|
|
297
|
+
charcoal20: string;
|
|
298
|
+
charcoal24: string;
|
|
299
|
+
charcoal32: string;
|
|
300
|
+
charcoal40: string;
|
|
301
|
+
charcoal60: string;
|
|
302
|
+
charcoal80: string;
|
|
303
|
+
charcoal100: string;
|
|
304
|
+
charcoalLight0: string;
|
|
305
|
+
charcoalLight2: string;
|
|
306
|
+
charcoalLight4: string;
|
|
307
|
+
charcoalLight6: string;
|
|
308
|
+
charcoalLight8: string;
|
|
309
|
+
charcoalLight12: string;
|
|
310
|
+
charcoalLight16: string;
|
|
311
|
+
charcoalLight20: string;
|
|
312
|
+
charcoalLight24: string;
|
|
313
|
+
charcoalLight32: string;
|
|
314
|
+
charcoalLight40: string;
|
|
315
|
+
charcoalLight60: string;
|
|
316
|
+
charcoalLight80: string;
|
|
317
|
+
charcoalLight100: string;
|
|
318
|
+
solid1: string;
|
|
319
|
+
solid2: string;
|
|
320
|
+
solid3: string;
|
|
321
|
+
solid4: string;
|
|
322
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ColorPalette } from './index';
|
|
2
|
+
type PathsToStringProps<T> = T extends string ? [] : {
|
|
3
|
+
[K in keyof T]-?: K extends string ? T[K] extends string ? [K] : [K, ...PathsToStringProps<T[K]>] : never;
|
|
4
|
+
}[keyof T];
|
|
5
|
+
type JoinPath<T extends string[]> = T extends [] ? never : T extends [infer F] ? F : T extends [infer F, ...infer R] ? F extends string ? `${F}.${JoinPath<Extract<R, string[]>>}` : never : string;
|
|
6
|
+
export type ColorPath = JoinPath<PathsToStringProps<ColorPalette>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const debounce: <T extends (...args: any[]) => void>(fn: T, delay: number) => (...args: Parameters<T>) => ReturnType<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getNestedValue<T>(obj: T, path: string): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hexToRgb(hex: string): number[] | null;
|
|
File without changes
|