@coinloger/dev-ui 0.0.5 → 0.0.6
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/README.md +63 -0
- package/dist/index.d.ts +410 -15
- package/dist/index.js +1 -1
- package/package.json +4 -1
- package/dist/components/Badge/Badge.d.ts +0 -8
- package/dist/components/Badge/Badge.demo.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -7
- package/dist/components/Button/Button.demo.d.ts +0 -1
- package/dist/components/Card/Card.d.ts +0 -8
- package/dist/components/Card/Card.demo.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/Checkbox/Checkbox.demo.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +0 -11
- package/dist/components/Input/Input.demo.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -38
- package/dist/components/Modal/Modal.demo.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -9
- package/dist/components/Radio/Radio.demo.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +0 -19
- package/dist/components/Select/Select.demo.d.ts +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -9
- package/dist/components/Switch/Switch.demo.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +0 -10
- package/dist/components/Table/Table.demo.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -26
- package/dist/components/Tabs/Tabs.demo.d.ts +0 -1
- package/dist/components/Typography/Heading.d.ts +0 -8
- package/dist/components/Typography/Text.d.ts +0 -11
- package/dist/components/Typography/Typography.demo.d.ts +0 -1
- package/dist/default-theme.d.ts +0 -4
- package/dist/theme.d.ts +0 -7
- package/dist/types.d.ts +0 -221
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# @coinloger/dev-ui
|
|
2
|
+
|
|
3
|
+
React UI component library for Coinloger projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @coinloger/dev-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
### 1. Import Styles
|
|
14
|
+
Import the library's CSS in your main entry file (e.g., `main.tsx` or `App.tsx`):
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import '@coinloger/dev-ui/style.css';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### 2. Wrap with ThemeProvider
|
|
21
|
+
Wrap your application with the `ThemeProvider` to enable dynamic theming:
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { ThemeProvider } from '@coinloger/dev-ui';
|
|
25
|
+
import { defaultTheme } from './your-theme-config'; // Optional customized theme
|
|
26
|
+
|
|
27
|
+
function App() {
|
|
28
|
+
return (
|
|
29
|
+
<ThemeProvider theme={defaultTheme}>
|
|
30
|
+
<YourApp />
|
|
31
|
+
</ThemeProvider>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
### Components
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import { Button, Card, Text } from '@coinloger/dev-ui';
|
|
42
|
+
|
|
43
|
+
function Example() {
|
|
44
|
+
return (
|
|
45
|
+
<Card>
|
|
46
|
+
<Text variant="lead">Hello World</Text>
|
|
47
|
+
<Button variant="primary">Click Me</Button>
|
|
48
|
+
</Card>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Theming
|
|
54
|
+
You can override default theme values by passing a `ThemeConfig` object to the provider.
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
const customTheme = {
|
|
58
|
+
colors: {
|
|
59
|
+
primary: '#ff0000',
|
|
60
|
+
background: '#f0f0f0'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,410 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare const Badge: default_2.ForwardRefExoticComponent<BadgeProps & default_2.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
|
|
6
|
+
export declare interface BadgeProps extends default_2.HTMLAttributes<HTMLSpanElement> {
|
|
7
|
+
variant?: 'primary' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
shape?: 'rounded' | 'pill';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
|
|
14
|
+
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'danger' | 'success' | 'warning' | 'ghost' | 'outline-danger' | 'outline-success' | 'outline-warning';
|
|
16
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare const Card: default_2.ForwardRefExoticComponent<CardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
declare interface CardProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
22
|
+
title?: default_2.ReactNode;
|
|
23
|
+
footer?: default_2.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare const Checkbox: default_2.ForwardRefExoticComponent<CheckboxProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
|
|
28
|
+
export declare interface CheckboxProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
29
|
+
label?: default_2.ReactNode;
|
|
30
|
+
error?: boolean;
|
|
31
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
32
|
+
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare const Heading: default_2.ForwardRefExoticComponent<HeadingProps & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
36
|
+
|
|
37
|
+
export declare interface HeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
|
|
38
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
39
|
+
truncate?: boolean;
|
|
40
|
+
lines?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
44
|
+
|
|
45
|
+
declare interface InputProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
46
|
+
label?: string;
|
|
47
|
+
error?: boolean;
|
|
48
|
+
helperText?: string;
|
|
49
|
+
fullWidth?: boolean;
|
|
50
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare const Modal: (({ isOpen, onClose, title, children, footer, size, className, closeOnBackdropClick, }: ModalProps) => default_2.ReactPortal | null) & {
|
|
54
|
+
Header: ({ children, className }: {
|
|
55
|
+
children: default_2.ReactNode;
|
|
56
|
+
className?: string;
|
|
57
|
+
}) => JSX_2.Element;
|
|
58
|
+
Body: ({ children, className }: {
|
|
59
|
+
children: default_2.ReactNode;
|
|
60
|
+
className?: string;
|
|
61
|
+
}) => JSX_2.Element;
|
|
62
|
+
Footer: ({ children, className }: {
|
|
63
|
+
children: default_2.ReactNode;
|
|
64
|
+
className?: string;
|
|
65
|
+
}) => JSX_2.Element;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export declare const ModalBody: ({ children, className }: {
|
|
69
|
+
children: default_2.ReactNode;
|
|
70
|
+
className?: string;
|
|
71
|
+
}) => JSX_2.Element;
|
|
72
|
+
|
|
73
|
+
export declare const ModalFooter: ({ children, className }: {
|
|
74
|
+
children: default_2.ReactNode;
|
|
75
|
+
className?: string;
|
|
76
|
+
}) => JSX_2.Element;
|
|
77
|
+
|
|
78
|
+
export declare const ModalHeader: ({ children, className }: {
|
|
79
|
+
children: default_2.ReactNode;
|
|
80
|
+
className?: string;
|
|
81
|
+
}) => JSX_2.Element;
|
|
82
|
+
|
|
83
|
+
export declare interface ModalProps {
|
|
84
|
+
isOpen: boolean;
|
|
85
|
+
onClose: () => void;
|
|
86
|
+
title?: default_2.ReactNode;
|
|
87
|
+
children: default_2.ReactNode;
|
|
88
|
+
footer?: default_2.ReactNode;
|
|
89
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
90
|
+
className?: string;
|
|
91
|
+
closeOnBackdropClick?: boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare const Radio: default_2.ForwardRefExoticComponent<RadioProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
95
|
+
|
|
96
|
+
export declare interface RadioProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
97
|
+
label?: default_2.ReactNode;
|
|
98
|
+
error?: boolean;
|
|
99
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
100
|
+
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare const Select: ({ options, value, onChange, placeholder, label, error, helperText, disabled, fullWidth, size, className, }: SelectProps) => JSX_2.Element;
|
|
104
|
+
|
|
105
|
+
export declare interface SelectOption {
|
|
106
|
+
value: string | number;
|
|
107
|
+
label: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export declare interface SelectProps {
|
|
111
|
+
options: SelectOption[];
|
|
112
|
+
value?: string | number;
|
|
113
|
+
onChange?: (value: string | number) => void;
|
|
114
|
+
placeholder?: string;
|
|
115
|
+
label?: string;
|
|
116
|
+
error?: boolean;
|
|
117
|
+
helperText?: string;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
fullWidth?: boolean;
|
|
120
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
121
|
+
className?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
125
|
+
|
|
126
|
+
export declare interface SwitchProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
127
|
+
label?: default_2.ReactNode;
|
|
128
|
+
error?: boolean;
|
|
129
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
130
|
+
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare const Table: default_2.ForwardRefExoticComponent<TableProps & default_2.RefAttributes<HTMLTableElement>>;
|
|
134
|
+
|
|
135
|
+
declare interface TableProps extends default_2.TableHTMLAttributes<HTMLTableElement> {
|
|
136
|
+
bordered?: boolean;
|
|
137
|
+
striped?: boolean;
|
|
138
|
+
hover?: boolean;
|
|
139
|
+
size?: 'sm' | 'md';
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare const Tabs: (({ defaultValue, value, onValueChange, children, className }: TabsProps) => JSX_2.Element) & {
|
|
143
|
+
List: ({ className, children, variant, ...props }: TabsListProps) => JSX_2.Element;
|
|
144
|
+
Trigger: ({ value, className, children, onClick, ...props }: TabsTriggerProps) => JSX_2.Element;
|
|
145
|
+
Content: ({ value, className, children, ...props }: TabsContentProps) => JSX_2.Element | null;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export declare interface TabsContentProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
149
|
+
value: string;
|
|
150
|
+
children: default_2.ReactNode;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare interface TabsListProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
154
|
+
children: default_2.ReactNode;
|
|
155
|
+
variant?: 'line' | 'pills';
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare interface TabsProps {
|
|
159
|
+
defaultValue?: string;
|
|
160
|
+
value?: string;
|
|
161
|
+
onValueChange?: (value: string) => void;
|
|
162
|
+
children: default_2.ReactNode;
|
|
163
|
+
className?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export declare interface TabsTriggerProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
167
|
+
value: string;
|
|
168
|
+
children: default_2.ReactNode;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare const Text_2: default_2.ForwardRefExoticComponent<TextProps & default_2.RefAttributes<HTMLElement>>;
|
|
172
|
+
export { Text_2 as Text }
|
|
173
|
+
|
|
174
|
+
export declare interface TextProps extends default_2.HTMLAttributes<HTMLElement> {
|
|
175
|
+
variant?: 'body' | 'small' | 'caption' | 'lead';
|
|
176
|
+
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
177
|
+
muted?: boolean;
|
|
178
|
+
truncate?: boolean;
|
|
179
|
+
lines?: number;
|
|
180
|
+
as?: default_2.ElementType;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare interface ThemeConfig {
|
|
184
|
+
prefix?: string;
|
|
185
|
+
colors?: {
|
|
186
|
+
primary?: string;
|
|
187
|
+
secondary?: string;
|
|
188
|
+
background?: string;
|
|
189
|
+
text?: string;
|
|
190
|
+
[key: string]: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
typography?: {
|
|
193
|
+
'font-family'?: string;
|
|
194
|
+
'font-size-sm'?: string;
|
|
195
|
+
'font-size-md'?: string;
|
|
196
|
+
'font-size-lg'?: string;
|
|
197
|
+
'font-size-xl'?: string;
|
|
198
|
+
[key: string]: string | undefined;
|
|
199
|
+
};
|
|
200
|
+
spacing?: {
|
|
201
|
+
[key: string]: string;
|
|
202
|
+
};
|
|
203
|
+
radius?: {
|
|
204
|
+
[key: string]: string;
|
|
205
|
+
};
|
|
206
|
+
shadows?: {
|
|
207
|
+
[key: string]: string;
|
|
208
|
+
};
|
|
209
|
+
components?: {
|
|
210
|
+
btn?: {
|
|
211
|
+
[key: string]: string | object | undefined;
|
|
212
|
+
};
|
|
213
|
+
input?: {
|
|
214
|
+
radius?: string;
|
|
215
|
+
bg?: string;
|
|
216
|
+
border?: string;
|
|
217
|
+
color?: string;
|
|
218
|
+
placeholder?: string;
|
|
219
|
+
"focus-border"?: string;
|
|
220
|
+
"focus-ring"?: string;
|
|
221
|
+
"error-border"?: string;
|
|
222
|
+
"error-ring"?: string;
|
|
223
|
+
[key: string]: string | object | undefined;
|
|
224
|
+
};
|
|
225
|
+
select?: {
|
|
226
|
+
radius?: string;
|
|
227
|
+
bg?: string;
|
|
228
|
+
border?: string;
|
|
229
|
+
color?: string;
|
|
230
|
+
placeholder?: string;
|
|
231
|
+
"focus-border"?: string;
|
|
232
|
+
"focus-ring"?: string;
|
|
233
|
+
"error-border"?: string;
|
|
234
|
+
"error-ring"?: string;
|
|
235
|
+
"menu-bg"?: string;
|
|
236
|
+
"menu-border"?: string;
|
|
237
|
+
"menu-shadow"?: string;
|
|
238
|
+
"option-hover-bg"?: string;
|
|
239
|
+
"option-selected-bg"?: string;
|
|
240
|
+
"option-selected-color"?: string;
|
|
241
|
+
[key: string]: string | object | undefined;
|
|
242
|
+
};
|
|
243
|
+
card?: {
|
|
244
|
+
radius?: string;
|
|
245
|
+
shadow?: string;
|
|
246
|
+
bg?: string;
|
|
247
|
+
border?: string;
|
|
248
|
+
padding?: string;
|
|
249
|
+
"header-bg"?: string;
|
|
250
|
+
"header-padding"?: string;
|
|
251
|
+
"header-border"?: string;
|
|
252
|
+
"footer-bg"?: string;
|
|
253
|
+
"footer-padding"?: string;
|
|
254
|
+
"footer-border"?: string;
|
|
255
|
+
[key: string]: string | object | undefined;
|
|
256
|
+
};
|
|
257
|
+
modal?: {
|
|
258
|
+
"radius"?: string;
|
|
259
|
+
"bg"?: string;
|
|
260
|
+
"shadow"?: string;
|
|
261
|
+
"backdrop-bg"?: string;
|
|
262
|
+
"backdrop-blur"?: string;
|
|
263
|
+
"border"?: string;
|
|
264
|
+
"z-index"?: string;
|
|
265
|
+
"header-padding"?: string;
|
|
266
|
+
"body-padding"?: string;
|
|
267
|
+
"footer-padding"?: string;
|
|
268
|
+
"size-sm-width"?: string;
|
|
269
|
+
"size-md-width"?: string;
|
|
270
|
+
"size-lg-width"?: string;
|
|
271
|
+
"size-xl-width"?: string;
|
|
272
|
+
[key: string]: string | object | undefined;
|
|
273
|
+
};
|
|
274
|
+
checkbox?: {
|
|
275
|
+
size?: string;
|
|
276
|
+
radius?: string;
|
|
277
|
+
bg?: string;
|
|
278
|
+
border?: string;
|
|
279
|
+
"checked-bg"?: string;
|
|
280
|
+
"checked-border"?: string;
|
|
281
|
+
"checked-color"?: string;
|
|
282
|
+
"disabled-opacity"?: string;
|
|
283
|
+
"size-sm-size"?: string;
|
|
284
|
+
"size-sm-font-size"?: string;
|
|
285
|
+
"size-md-size"?: string;
|
|
286
|
+
"size-md-font-size"?: string;
|
|
287
|
+
"size-lg-size"?: string;
|
|
288
|
+
"size-lg-font-size"?: string;
|
|
289
|
+
"size-xl-size"?: string;
|
|
290
|
+
"size-xl-font-size"?: string;
|
|
291
|
+
[key: string]: string | object | undefined;
|
|
292
|
+
};
|
|
293
|
+
radio?: {
|
|
294
|
+
size?: string;
|
|
295
|
+
bg?: string;
|
|
296
|
+
border?: string;
|
|
297
|
+
"checked-bg"?: string;
|
|
298
|
+
"checked-border"?: string;
|
|
299
|
+
"checked-color"?: string;
|
|
300
|
+
"disabled-opacity"?: string;
|
|
301
|
+
"size-sm-size"?: string;
|
|
302
|
+
"size-sm-font-size"?: string;
|
|
303
|
+
"size-md-size"?: string;
|
|
304
|
+
"size-md-font-size"?: string;
|
|
305
|
+
"size-lg-size"?: string;
|
|
306
|
+
"size-lg-font-size"?: string;
|
|
307
|
+
"size-xl-size"?: string;
|
|
308
|
+
"size-xl-font-size"?: string;
|
|
309
|
+
[key: string]: string | object | undefined;
|
|
310
|
+
};
|
|
311
|
+
switch?: {
|
|
312
|
+
width?: string;
|
|
313
|
+
height?: string;
|
|
314
|
+
bg?: string;
|
|
315
|
+
"checked-bg"?: string;
|
|
316
|
+
"thumb-size"?: string;
|
|
317
|
+
"thumb-bg"?: string;
|
|
318
|
+
"thumb-shadow"?: string;
|
|
319
|
+
"focus-ring"?: string;
|
|
320
|
+
"disabled-opacity"?: string;
|
|
321
|
+
"size-sm-width"?: string;
|
|
322
|
+
"size-sm-height"?: string;
|
|
323
|
+
"size-sm-thumb-size"?: string;
|
|
324
|
+
"size-md-width"?: string;
|
|
325
|
+
"size-md-height"?: string;
|
|
326
|
+
"size-md-thumb-size"?: string;
|
|
327
|
+
"size-lg-width"?: string;
|
|
328
|
+
"size-lg-height"?: string;
|
|
329
|
+
"size-lg-thumb-size"?: string;
|
|
330
|
+
"size-xl-width"?: string;
|
|
331
|
+
"size-xl-height"?: string;
|
|
332
|
+
"size-xl-thumb-size"?: string;
|
|
333
|
+
[key: string]: string | object | undefined;
|
|
334
|
+
};
|
|
335
|
+
badge?: {
|
|
336
|
+
radius?: string;
|
|
337
|
+
"font-weight"?: string;
|
|
338
|
+
"size-sm-padding"?: string;
|
|
339
|
+
"size-sm-font-size"?: string;
|
|
340
|
+
"size-md-padding"?: string;
|
|
341
|
+
"size-md-font-size"?: string;
|
|
342
|
+
"size-lg-padding"?: string;
|
|
343
|
+
"size-lg-font-size"?: string;
|
|
344
|
+
"primary-bg"?: string;
|
|
345
|
+
"primary-text"?: string;
|
|
346
|
+
"success-bg"?: string;
|
|
347
|
+
"success-text"?: string;
|
|
348
|
+
"warning-bg"?: string;
|
|
349
|
+
"warning-text"?: string;
|
|
350
|
+
"danger-bg"?: string;
|
|
351
|
+
"danger-text"?: string;
|
|
352
|
+
"neutral-bg"?: string;
|
|
353
|
+
"neutral-text"?: string;
|
|
354
|
+
[key: string]: string | object | undefined;
|
|
355
|
+
};
|
|
356
|
+
heading?: {
|
|
357
|
+
"h1-size"?: string;
|
|
358
|
+
"h1-line-height"?: string;
|
|
359
|
+
"h1-weight"?: string;
|
|
360
|
+
"h2-size"?: string;
|
|
361
|
+
"h2-line-height"?: string;
|
|
362
|
+
"h2-weight"?: string;
|
|
363
|
+
"h3-size"?: string;
|
|
364
|
+
"h3-line-height"?: string;
|
|
365
|
+
"h3-weight"?: string;
|
|
366
|
+
"h4-size"?: string;
|
|
367
|
+
"h4-line-height"?: string;
|
|
368
|
+
"h4-weight"?: string;
|
|
369
|
+
"h5-size"?: string;
|
|
370
|
+
"h5-line-height"?: string;
|
|
371
|
+
"h5-weight"?: string;
|
|
372
|
+
"h6-size"?: string;
|
|
373
|
+
"h6-line-height"?: string;
|
|
374
|
+
"h6-weight"?: string;
|
|
375
|
+
[key: string]: string | object | undefined;
|
|
376
|
+
};
|
|
377
|
+
text?: {
|
|
378
|
+
"body-size"?: string;
|
|
379
|
+
"body-line-height"?: string;
|
|
380
|
+
"small-size"?: string;
|
|
381
|
+
"small-line-height"?: string;
|
|
382
|
+
"caption-size"?: string;
|
|
383
|
+
"caption-line-height"?: string;
|
|
384
|
+
"lead-size"?: string;
|
|
385
|
+
"lead-line-height"?: string;
|
|
386
|
+
[key: string]: string | object | undefined;
|
|
387
|
+
};
|
|
388
|
+
tabs?: {
|
|
389
|
+
"border-color"?: string;
|
|
390
|
+
"active-color"?: string;
|
|
391
|
+
"inactive-color"?: string;
|
|
392
|
+
"hover-bg"?: string;
|
|
393
|
+
"trigger-padding"?: string;
|
|
394
|
+
"trigger-weight"?: string;
|
|
395
|
+
"trigger-font-size"?: string;
|
|
396
|
+
"content-padding"?: string;
|
|
397
|
+
[key: string]: string | object | undefined;
|
|
398
|
+
};
|
|
399
|
+
[key: string]: {
|
|
400
|
+
[key: string]: string | object | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export declare const ThemeProvider: ({ theme, children }: {
|
|
406
|
+
theme: ThemeConfig;
|
|
407
|
+
children: default_2.ReactNode;
|
|
408
|
+
}) => JSX_2.Element;
|
|
409
|
+
|
|
410
|
+
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as b, Fragment as A } from "react/jsx-runtime";
|
|
2
|
-
import y, { createContext as $, useRef as C, useEffect as v,
|
|
2
|
+
import y, { useContext as w, createContext as $, useRef as C, useEffect as v, useState as I, forwardRef as g, useId as _, useMemo as F } from "react";
|
|
3
3
|
import { createPortal as P } from "react-dom";
|
|
4
4
|
function T(e) {
|
|
5
5
|
var t, i, s = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinloger/dev-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
11
14
|
"exports": {
|
|
12
15
|
".": {
|
|
13
16
|
"import": "./dist/index.js",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
5
|
-
size?: 'sm' | 'md' | 'lg';
|
|
6
|
-
shape?: 'rounded' | 'pill';
|
|
7
|
-
}
|
|
8
|
-
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function BadgeDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'outline' | 'danger' | 'success' | 'warning' | 'ghost' | 'outline-danger' | 'outline-success' | 'outline-warning';
|
|
5
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
-
}
|
|
7
|
-
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function ButtonDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
|
-
title?: React.ReactNode;
|
|
5
|
-
footer?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function CardDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
8
|
-
}
|
|
9
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function CheckboxDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
-
label?: string;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
helperText?: string;
|
|
7
|
-
fullWidth?: boolean;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
-
}
|
|
10
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function InputDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const ModalHeader: ({ children, className }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const ModalBody: ({ children, className }: {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const ModalFooter: ({ children, className }: {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export interface ModalProps {
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
title?: React.ReactNode;
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
footer?: React.ReactNode;
|
|
21
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
22
|
-
className?: string;
|
|
23
|
-
closeOnBackdropClick?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const Modal: (({ isOpen, onClose, title, children, footer, size, className, closeOnBackdropClick, }: ModalProps) => React.ReactPortal | null) & {
|
|
26
|
-
Header: ({ children, className }: {
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
Body: ({ children, className }: {
|
|
31
|
-
children: React.ReactNode;
|
|
32
|
-
className?: string;
|
|
33
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
Footer: ({ children, className }: {
|
|
35
|
-
children: React.ReactNode;
|
|
36
|
-
className?: string;
|
|
37
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function ModalDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
8
|
-
}
|
|
9
|
-
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function RadioDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export interface SelectOption {
|
|
3
|
-
value: string | number;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface SelectProps {
|
|
7
|
-
options: SelectOption[];
|
|
8
|
-
value?: string | number;
|
|
9
|
-
onChange?: (value: string | number) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
helperText?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
fullWidth?: boolean;
|
|
16
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const Select: ({ options, value, onChange, placeholder, label, error, helperText, disabled, fullWidth, size, className, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function SelectDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
8
|
-
}
|
|
9
|
-
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function SwitchDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
4
|
-
bordered?: boolean;
|
|
5
|
-
striped?: boolean;
|
|
6
|
-
hover?: boolean;
|
|
7
|
-
size?: 'sm' | 'md';
|
|
8
|
-
}
|
|
9
|
-
export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function TableDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface TabsProps {
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onValueChange?: (value: string) => void;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface TabsListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
variant?: 'line' | 'pills';
|
|
13
|
-
}
|
|
14
|
-
export interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
-
value: string;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
value: string;
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const Tabs: (({ defaultValue, value, onValueChange, children, className }: TabsProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
23
|
-
List: ({ className, children, variant, ...props }: TabsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
Trigger: ({ value, className, children, onClick, ...props }: TabsTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
Content: ({ value, className, children, ...props }: TabsContentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function TabsDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
4
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
-
truncate?: boolean;
|
|
6
|
-
lines?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
variant?: 'body' | 'small' | 'caption' | 'lead';
|
|
5
|
-
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
6
|
-
muted?: boolean;
|
|
7
|
-
truncate?: boolean;
|
|
8
|
-
lines?: number;
|
|
9
|
-
as?: React.ElementType;
|
|
10
|
-
}
|
|
11
|
-
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function TypographyDemo(): import("react/jsx-runtime").JSX.Element;
|
package/dist/default-theme.d.ts
DELETED
package/dist/theme.d.ts
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
export interface ThemeConfig {
|
|
2
|
-
prefix?: string;
|
|
3
|
-
colors?: {
|
|
4
|
-
primary?: string;
|
|
5
|
-
secondary?: string;
|
|
6
|
-
background?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
[key: string]: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
typography?: {
|
|
11
|
-
'font-family'?: string;
|
|
12
|
-
'font-size-sm'?: string;
|
|
13
|
-
'font-size-md'?: string;
|
|
14
|
-
'font-size-lg'?: string;
|
|
15
|
-
'font-size-xl'?: string;
|
|
16
|
-
[key: string]: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
spacing?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
radius?: {
|
|
22
|
-
[key: string]: string;
|
|
23
|
-
};
|
|
24
|
-
shadows?: {
|
|
25
|
-
[key: string]: string;
|
|
26
|
-
};
|
|
27
|
-
components?: {
|
|
28
|
-
btn?: {
|
|
29
|
-
[key: string]: string | object | undefined;
|
|
30
|
-
};
|
|
31
|
-
input?: {
|
|
32
|
-
radius?: string;
|
|
33
|
-
bg?: string;
|
|
34
|
-
border?: string;
|
|
35
|
-
color?: string;
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
"focus-border"?: string;
|
|
38
|
-
"focus-ring"?: string;
|
|
39
|
-
"error-border"?: string;
|
|
40
|
-
"error-ring"?: string;
|
|
41
|
-
[key: string]: string | object | undefined;
|
|
42
|
-
};
|
|
43
|
-
select?: {
|
|
44
|
-
radius?: string;
|
|
45
|
-
bg?: string;
|
|
46
|
-
border?: string;
|
|
47
|
-
color?: string;
|
|
48
|
-
placeholder?: string;
|
|
49
|
-
"focus-border"?: string;
|
|
50
|
-
"focus-ring"?: string;
|
|
51
|
-
"error-border"?: string;
|
|
52
|
-
"error-ring"?: string;
|
|
53
|
-
"menu-bg"?: string;
|
|
54
|
-
"menu-border"?: string;
|
|
55
|
-
"menu-shadow"?: string;
|
|
56
|
-
"option-hover-bg"?: string;
|
|
57
|
-
"option-selected-bg"?: string;
|
|
58
|
-
"option-selected-color"?: string;
|
|
59
|
-
[key: string]: string | object | undefined;
|
|
60
|
-
};
|
|
61
|
-
card?: {
|
|
62
|
-
radius?: string;
|
|
63
|
-
shadow?: string;
|
|
64
|
-
bg?: string;
|
|
65
|
-
border?: string;
|
|
66
|
-
padding?: string;
|
|
67
|
-
"header-bg"?: string;
|
|
68
|
-
"header-padding"?: string;
|
|
69
|
-
"header-border"?: string;
|
|
70
|
-
"footer-bg"?: string;
|
|
71
|
-
"footer-padding"?: string;
|
|
72
|
-
"footer-border"?: string;
|
|
73
|
-
[key: string]: string | object | undefined;
|
|
74
|
-
};
|
|
75
|
-
modal?: {
|
|
76
|
-
"radius"?: string;
|
|
77
|
-
"bg"?: string;
|
|
78
|
-
"shadow"?: string;
|
|
79
|
-
"backdrop-bg"?: string;
|
|
80
|
-
"backdrop-blur"?: string;
|
|
81
|
-
"border"?: string;
|
|
82
|
-
"z-index"?: string;
|
|
83
|
-
"header-padding"?: string;
|
|
84
|
-
"body-padding"?: string;
|
|
85
|
-
"footer-padding"?: string;
|
|
86
|
-
"size-sm-width"?: string;
|
|
87
|
-
"size-md-width"?: string;
|
|
88
|
-
"size-lg-width"?: string;
|
|
89
|
-
"size-xl-width"?: string;
|
|
90
|
-
[key: string]: string | object | undefined;
|
|
91
|
-
};
|
|
92
|
-
checkbox?: {
|
|
93
|
-
size?: string;
|
|
94
|
-
radius?: string;
|
|
95
|
-
bg?: string;
|
|
96
|
-
border?: string;
|
|
97
|
-
"checked-bg"?: string;
|
|
98
|
-
"checked-border"?: string;
|
|
99
|
-
"checked-color"?: string;
|
|
100
|
-
"disabled-opacity"?: string;
|
|
101
|
-
"size-sm-size"?: string;
|
|
102
|
-
"size-sm-font-size"?: string;
|
|
103
|
-
"size-md-size"?: string;
|
|
104
|
-
"size-md-font-size"?: string;
|
|
105
|
-
"size-lg-size"?: string;
|
|
106
|
-
"size-lg-font-size"?: string;
|
|
107
|
-
"size-xl-size"?: string;
|
|
108
|
-
"size-xl-font-size"?: string;
|
|
109
|
-
[key: string]: string | object | undefined;
|
|
110
|
-
};
|
|
111
|
-
radio?: {
|
|
112
|
-
size?: string;
|
|
113
|
-
bg?: string;
|
|
114
|
-
border?: string;
|
|
115
|
-
"checked-bg"?: string;
|
|
116
|
-
"checked-border"?: string;
|
|
117
|
-
"checked-color"?: string;
|
|
118
|
-
"disabled-opacity"?: string;
|
|
119
|
-
"size-sm-size"?: string;
|
|
120
|
-
"size-sm-font-size"?: string;
|
|
121
|
-
"size-md-size"?: string;
|
|
122
|
-
"size-md-font-size"?: string;
|
|
123
|
-
"size-lg-size"?: string;
|
|
124
|
-
"size-lg-font-size"?: string;
|
|
125
|
-
"size-xl-size"?: string;
|
|
126
|
-
"size-xl-font-size"?: string;
|
|
127
|
-
[key: string]: string | object | undefined;
|
|
128
|
-
};
|
|
129
|
-
switch?: {
|
|
130
|
-
width?: string;
|
|
131
|
-
height?: string;
|
|
132
|
-
bg?: string;
|
|
133
|
-
"checked-bg"?: string;
|
|
134
|
-
"thumb-size"?: string;
|
|
135
|
-
"thumb-bg"?: string;
|
|
136
|
-
"thumb-shadow"?: string;
|
|
137
|
-
"focus-ring"?: string;
|
|
138
|
-
"disabled-opacity"?: string;
|
|
139
|
-
"size-sm-width"?: string;
|
|
140
|
-
"size-sm-height"?: string;
|
|
141
|
-
"size-sm-thumb-size"?: string;
|
|
142
|
-
"size-md-width"?: string;
|
|
143
|
-
"size-md-height"?: string;
|
|
144
|
-
"size-md-thumb-size"?: string;
|
|
145
|
-
"size-lg-width"?: string;
|
|
146
|
-
"size-lg-height"?: string;
|
|
147
|
-
"size-lg-thumb-size"?: string;
|
|
148
|
-
"size-xl-width"?: string;
|
|
149
|
-
"size-xl-height"?: string;
|
|
150
|
-
"size-xl-thumb-size"?: string;
|
|
151
|
-
[key: string]: string | object | undefined;
|
|
152
|
-
};
|
|
153
|
-
badge?: {
|
|
154
|
-
radius?: string;
|
|
155
|
-
"font-weight"?: string;
|
|
156
|
-
"size-sm-padding"?: string;
|
|
157
|
-
"size-sm-font-size"?: string;
|
|
158
|
-
"size-md-padding"?: string;
|
|
159
|
-
"size-md-font-size"?: string;
|
|
160
|
-
"size-lg-padding"?: string;
|
|
161
|
-
"size-lg-font-size"?: string;
|
|
162
|
-
"primary-bg"?: string;
|
|
163
|
-
"primary-text"?: string;
|
|
164
|
-
"success-bg"?: string;
|
|
165
|
-
"success-text"?: string;
|
|
166
|
-
"warning-bg"?: string;
|
|
167
|
-
"warning-text"?: string;
|
|
168
|
-
"danger-bg"?: string;
|
|
169
|
-
"danger-text"?: string;
|
|
170
|
-
"neutral-bg"?: string;
|
|
171
|
-
"neutral-text"?: string;
|
|
172
|
-
[key: string]: string | object | undefined;
|
|
173
|
-
};
|
|
174
|
-
heading?: {
|
|
175
|
-
"h1-size"?: string;
|
|
176
|
-
"h1-line-height"?: string;
|
|
177
|
-
"h1-weight"?: string;
|
|
178
|
-
"h2-size"?: string;
|
|
179
|
-
"h2-line-height"?: string;
|
|
180
|
-
"h2-weight"?: string;
|
|
181
|
-
"h3-size"?: string;
|
|
182
|
-
"h3-line-height"?: string;
|
|
183
|
-
"h3-weight"?: string;
|
|
184
|
-
"h4-size"?: string;
|
|
185
|
-
"h4-line-height"?: string;
|
|
186
|
-
"h4-weight"?: string;
|
|
187
|
-
"h5-size"?: string;
|
|
188
|
-
"h5-line-height"?: string;
|
|
189
|
-
"h5-weight"?: string;
|
|
190
|
-
"h6-size"?: string;
|
|
191
|
-
"h6-line-height"?: string;
|
|
192
|
-
"h6-weight"?: string;
|
|
193
|
-
[key: string]: string | object | undefined;
|
|
194
|
-
};
|
|
195
|
-
text?: {
|
|
196
|
-
"body-size"?: string;
|
|
197
|
-
"body-line-height"?: string;
|
|
198
|
-
"small-size"?: string;
|
|
199
|
-
"small-line-height"?: string;
|
|
200
|
-
"caption-size"?: string;
|
|
201
|
-
"caption-line-height"?: string;
|
|
202
|
-
"lead-size"?: string;
|
|
203
|
-
"lead-line-height"?: string;
|
|
204
|
-
[key: string]: string | object | undefined;
|
|
205
|
-
};
|
|
206
|
-
tabs?: {
|
|
207
|
-
"border-color"?: string;
|
|
208
|
-
"active-color"?: string;
|
|
209
|
-
"inactive-color"?: string;
|
|
210
|
-
"hover-bg"?: string;
|
|
211
|
-
"trigger-padding"?: string;
|
|
212
|
-
"trigger-weight"?: string;
|
|
213
|
-
"trigger-font-size"?: string;
|
|
214
|
-
"content-padding"?: string;
|
|
215
|
-
[key: string]: string | object | undefined;
|
|
216
|
-
};
|
|
217
|
-
[key: string]: {
|
|
218
|
-
[key: string]: string | object | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
};
|
|
221
|
-
}
|