@sxo/ui 0.0.0 → 0.1.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.md +21 -0
- package/README.md +70 -35
- package/package.json +11 -12
- package/dist/components/Accordion.d.ts +0 -11
- package/dist/components/Alert.d.ts +0 -12
- package/dist/components/Avatar.d.ts +0 -9
- package/dist/components/BackTop.d.ts +0 -4
- package/dist/components/Badge.d.ts +0 -5
- package/dist/components/Breadcrumb.d.ts +0 -10
- package/dist/components/Button.d.ts +0 -7
- package/dist/components/Calendar.d.ts +0 -19
- package/dist/components/Card.d.ts +0 -7
- package/dist/components/Cascader.d.ts +0 -16
- package/dist/components/Checkbox.d.ts +0 -8
- package/dist/components/DatePicker.d.ts +0 -21
- package/dist/components/Descriptions.d.ts +0 -10
- package/dist/components/Dialog.d.ts +0 -17
- package/dist/components/Divider.d.ts +0 -18
- package/dist/components/Drawer.d.ts +0 -13
- package/dist/components/Dropdown.d.ts +0 -12
- package/dist/components/Empty.d.ts +0 -9
- package/dist/components/Feedback.d.ts +0 -16
- package/dist/components/Form.d.ts +0 -19
- package/dist/components/Input.d.ts +0 -6
- package/dist/components/Mentions.d.ts +0 -12
- package/dist/components/Menu.d.ts +0 -11
- package/dist/components/Pagination.d.ts +0 -14
- package/dist/components/Popconfirm.d.ts +0 -10
- package/dist/components/Popover.d.ts +0 -10
- package/dist/components/Radio.d.ts +0 -8
- package/dist/components/Rate.d.ts +0 -11
- package/dist/components/Result.d.ts +0 -10
- package/dist/components/Search.d.ts +0 -11
- package/dist/components/Select.d.ts +0 -8
- package/dist/components/Skeleton.d.ts +0 -16
- package/dist/components/Slider.d.ts +0 -11
- package/dist/components/Statistic.d.ts +0 -8
- package/dist/components/Steps.d.ts +0 -22
- package/dist/components/Switch.d.ts +0 -8
- package/dist/components/Table.d.ts +0 -19
- package/dist/components/Tabs.d.ts +0 -9
- package/dist/components/Tag.d.ts +0 -11
- package/dist/components/Timeline.d.ts +0 -13
- package/dist/components/Toast.d.ts +0 -13
- package/dist/components/Tooltip.d.ts +0 -7
- package/dist/components/Transfer.d.ts +0 -20
- package/dist/components/Tree.d.ts +0 -11
- package/dist/components/TreeSelect.d.ts +0 -13
- package/dist/components/Upload.d.ts +0 -16
- package/dist/components/VirtualList.d.ts +0 -8
- package/dist/components/index.d.ts +0 -47
- package/dist/demo.d.ts +0 -5
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -952
- package/dist/test-demo.d.ts +0 -1
- package/dist/theme.d.ts +0 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sxo team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,35 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
SXO
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>@sxo/ui</h1>
|
|
3
|
+
<p><b>The style contract and layout layer for the SXO design system.</b></p>
|
|
4
|
+
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@sxo/ui"><img src="https://img.shields.io/npm/v/@sxo/ui.svg?style=flat-square" alt="npm version"></a>
|
|
7
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="license">
|
|
8
|
+
<img src="https://img.shields.io/bundlephobia/minzip/@sxo/ui?style=flat-square" alt="bundle size">
|
|
9
|
+
<img src="https://img.shields.io/npm/dm/@sxo/ui.svg?style=flat-square" alt="downloads">
|
|
10
|
+
</p>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
`@sxo/ui` bridges the gap between **Headless Logic** and **Visual Design**. It provides the "Style Contract" that defines how components should look by translating design tokens and states into atomic CSS classes.
|
|
16
|
+
|
|
17
|
+
## 🌉 Bridging the Gap
|
|
18
|
+
|
|
19
|
+
While `@sxo/design` handles behavior, `@sxo/ui` handles the visual identity:
|
|
20
|
+
|
|
21
|
+
1. **Contract Definition**: Defines standard Props and interfaces for all framework adaptors.
|
|
22
|
+
2. **Style Generation**: Provides pure functions that map component states (e.g., `variant`, `size`, `isOpen`) to atomic CSS classes.
|
|
23
|
+
3. **Unopinionated Layout**: It doesn't render HTML directly, allowing adaptors to maintain their own rendering optimizations.
|
|
24
|
+
|
|
25
|
+
## ✨ Key Features
|
|
26
|
+
|
|
27
|
+
- 🎨 **Atomic Generators**: High-performance functions to generate utility-first classes.
|
|
28
|
+
- 📐 **Strict Typing**: Full TypeScript interfaces for every component prop and state.
|
|
29
|
+
- 🧩 **Framework Independent**: Use the same style logic in React, Vue, Solid, or even vanilla JS.
|
|
30
|
+
- 🚀 **AOT Ready**: Designed for both runtime generation and ahead-of-time compilation.
|
|
31
|
+
|
|
32
|
+
## 🚀 Quick Start
|
|
33
|
+
|
|
34
|
+
### Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pnpm add @sxo/ui @sxo/engine
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Using Class Generators
|
|
41
|
+
|
|
42
|
+
Generate atomic styles based on component state. This is how we keep the UI consistent while remaining headless at the logic level.
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { getButtonClasses } from '@sxo/ui';
|
|
46
|
+
|
|
47
|
+
// Map component state to atomic classes
|
|
48
|
+
const classes = getButtonClasses({
|
|
49
|
+
variant: 'primary',
|
|
50
|
+
size: 'md',
|
|
51
|
+
loading: true
|
|
52
|
+
});
|
|
53
|
+
// Result: "inline-flex bg-primary-DEFAULT px-4 py-2 opacity-50 cursor-wait ..."
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Component Contracts
|
|
57
|
+
|
|
58
|
+
Ensures that every framework implementation (React, Vue, etc.) adheres to the same API.
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import type { ButtonProps } from '@sxo/ui';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 📖 Documentation
|
|
65
|
+
|
|
66
|
+
For full documentation and examples, visit the [Components Index](https://sxo-engine.pages.dev/zh-CN/components/button.html).
|
|
67
|
+
|
|
68
|
+
## 📄 License
|
|
69
|
+
|
|
70
|
+
MIT License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxo/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Framework-agnostic UI component logic and style generators for SXO.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sxo",
|
|
@@ -21,18 +21,20 @@
|
|
|
21
21
|
"require": "./dist/index.cjs"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
24
27
|
"files": [
|
|
25
28
|
"dist"
|
|
26
29
|
],
|
|
27
30
|
"devDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"vitest": "^3.0.0"
|
|
31
|
+
"tsup": "^8.3.6",
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"vitest": "^3.2.4"
|
|
32
34
|
},
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"@sxo/design": "0.
|
|
35
|
-
"@sxo/engine": "0.
|
|
36
|
+
"@sxo/design": "0.1.1",
|
|
37
|
+
"@sxo/engine": "0.1.1"
|
|
36
38
|
},
|
|
37
39
|
"repository": {
|
|
38
40
|
"type": "git",
|
|
@@ -43,12 +45,9 @@
|
|
|
43
45
|
"url": "https://github.com/doki-land/sxo-engine/issues"
|
|
44
46
|
},
|
|
45
47
|
"homepage": "https://github.com/doki-land/sxo-engine/tree/main/packages/sxo-ui#readme",
|
|
46
|
-
"publishConfig": {
|
|
47
|
-
"access": "public"
|
|
48
|
-
},
|
|
49
48
|
"scripts": {
|
|
50
|
-
"build": "
|
|
51
|
-
"dev": "
|
|
49
|
+
"build": "tsup src/index.ts --format cjs --format esm --dts",
|
|
50
|
+
"dev": "tsup src/index.ts --format cjs --format esm --dts --watch",
|
|
52
51
|
"test": "vitest run"
|
|
53
52
|
}
|
|
54
53
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface AccordionOptions {
|
|
2
|
-
variant?: 'ghost' | 'bordered' | 'splitted';
|
|
3
|
-
}
|
|
4
|
-
export declare function getAccordionClasses(options?: AccordionOptions): {
|
|
5
|
-
root: string;
|
|
6
|
-
item: (isExpanded: boolean) => string;
|
|
7
|
-
trigger: string;
|
|
8
|
-
triggerText: string;
|
|
9
|
-
icon: (isExpanded: boolean) => string;
|
|
10
|
-
panel: string;
|
|
11
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface AlertOptions {
|
|
2
|
-
type?: 'info' | 'success' | 'warning' | 'error';
|
|
3
|
-
variant?: 'subtle' | 'solid' | 'outline';
|
|
4
|
-
}
|
|
5
|
-
export declare function getAlertClasses(options?: AlertOptions): {
|
|
6
|
-
container: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
content: string;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
closeButton: string;
|
|
12
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface ButtonOptions {
|
|
2
|
-
variant?: 'primary' | 'secondary' | 'accent' | 'outline' | 'ghost';
|
|
3
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
6
|
-
}
|
|
7
|
-
export declare function getButtonClasses(options?: ButtonOptions): string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare function getCalendarClasses(): {
|
|
2
|
-
container: string;
|
|
3
|
-
header: string;
|
|
4
|
-
headerTitle: string;
|
|
5
|
-
headerActions: string;
|
|
6
|
-
headerBtn: string;
|
|
7
|
-
body: string;
|
|
8
|
-
weekRow: string;
|
|
9
|
-
weekDay: string;
|
|
10
|
-
grid: string;
|
|
11
|
-
day: string;
|
|
12
|
-
dayCurrent: string;
|
|
13
|
-
dayToday: string;
|
|
14
|
-
daySelected: string;
|
|
15
|
-
dayOutside: string;
|
|
16
|
-
dayText: string;
|
|
17
|
-
dayDot: string;
|
|
18
|
-
dayDotToday: string;
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface CardOptions {
|
|
2
|
-
variant?: 'outline' | 'elevated' | 'accent' | 'ghost';
|
|
3
|
-
padding?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
5
|
-
interactive?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function getCardClasses(options?: CardOptions): string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface CascaderOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
rounded?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function getCascaderClasses(options?: CascaderOptions): {
|
|
6
|
-
container: string;
|
|
7
|
-
input: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
iconOpen: string;
|
|
10
|
-
dropdown: string;
|
|
11
|
-
menu: string;
|
|
12
|
-
menuItem: string;
|
|
13
|
-
menuItemActive: string;
|
|
14
|
-
menuItemDisabled: string;
|
|
15
|
-
expandIcon: string;
|
|
16
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface DatePickerOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
variant?: 'outline' | 'ghost' | 'bottom-line';
|
|
4
|
-
rounded?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function getDatePickerClasses(options?: DatePickerOptions): {
|
|
7
|
-
container: string;
|
|
8
|
-
input: string;
|
|
9
|
-
icon: string;
|
|
10
|
-
panel: string;
|
|
11
|
-
header: string;
|
|
12
|
-
headerButton: string;
|
|
13
|
-
headerTitle: string;
|
|
14
|
-
grid: string;
|
|
15
|
-
weekday: string;
|
|
16
|
-
day: string;
|
|
17
|
-
dayToday: string;
|
|
18
|
-
daySelected: string;
|
|
19
|
-
dayOutside: string;
|
|
20
|
-
footer: string;
|
|
21
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface DialogStylesOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
3
|
-
isCentered?: boolean;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* 获取对话框各部分的样式类名
|
|
7
|
-
*/
|
|
8
|
-
export declare function getDialogClasses(options?: DialogStylesOptions): {
|
|
9
|
-
overlay: string;
|
|
10
|
-
container: string;
|
|
11
|
-
content: string;
|
|
12
|
-
header: string;
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
closeButton: string;
|
|
16
|
-
footer: string;
|
|
17
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface DividerOptions {
|
|
2
|
-
direction?: 'horizontal' | 'vertical';
|
|
3
|
-
type?: 'solid' | 'dashed' | 'dotted';
|
|
4
|
-
contentPlacement?: 'left' | 'center' | 'right';
|
|
5
|
-
}
|
|
6
|
-
export declare function getDividerClasses(options?: DividerOptions): {
|
|
7
|
-
container: string;
|
|
8
|
-
text: string;
|
|
9
|
-
lineLeft?: undefined;
|
|
10
|
-
lineRight?: undefined;
|
|
11
|
-
line?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
container: string;
|
|
14
|
-
lineLeft: string;
|
|
15
|
-
lineRight: string;
|
|
16
|
-
line: string;
|
|
17
|
-
text: string;
|
|
18
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface DrawerOptions {
|
|
2
|
-
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
3
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
|
-
}
|
|
5
|
-
export declare function getDrawerClasses(options?: DrawerOptions): {
|
|
6
|
-
overlay: string;
|
|
7
|
-
container: string;
|
|
8
|
-
header: string;
|
|
9
|
-
title: string;
|
|
10
|
-
content: string;
|
|
11
|
-
footer: string;
|
|
12
|
-
closeButton: string;
|
|
13
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface DropdownOptions {
|
|
2
|
-
placement?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
|
|
3
|
-
}
|
|
4
|
-
export declare function getDropdownClasses(options?: DropdownOptions): {
|
|
5
|
-
container: string;
|
|
6
|
-
menu: string;
|
|
7
|
-
item: string;
|
|
8
|
-
itemActive: string;
|
|
9
|
-
itemDisabled: string;
|
|
10
|
-
divider: string;
|
|
11
|
-
header: string;
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface SpinnerOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
color?: 'primary' | 'secondary' | 'accent';
|
|
4
|
-
}
|
|
5
|
-
export declare function getSpinnerClasses(options?: SpinnerOptions): string;
|
|
6
|
-
export interface ProgressOptions {
|
|
7
|
-
value: number;
|
|
8
|
-
max?: number;
|
|
9
|
-
color?: 'primary' | 'success' | 'warning' | 'error';
|
|
10
|
-
size?: 'sm' | 'md' | 'lg';
|
|
11
|
-
}
|
|
12
|
-
export declare function getProgressClasses(options: ProgressOptions): {
|
|
13
|
-
root: string;
|
|
14
|
-
bar: string;
|
|
15
|
-
percentage: number;
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface FormOptions {
|
|
2
|
-
layout?: 'vertical' | 'horizontal' | 'inline';
|
|
3
|
-
size?: 'sm' | 'md' | 'lg';
|
|
4
|
-
}
|
|
5
|
-
export declare function getFormClasses(options?: FormOptions): {
|
|
6
|
-
root: string;
|
|
7
|
-
};
|
|
8
|
-
export interface FormItemOptions {
|
|
9
|
-
layout?: 'vertical' | 'horizontal';
|
|
10
|
-
required?: boolean;
|
|
11
|
-
hasError?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function getFormItemClasses(options?: FormItemOptions): {
|
|
14
|
-
root: string;
|
|
15
|
-
label: string;
|
|
16
|
-
control: string;
|
|
17
|
-
error: string;
|
|
18
|
-
extra: string;
|
|
19
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface MentionsOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
status?: 'error' | 'warning' | 'success';
|
|
4
|
-
}
|
|
5
|
-
export declare function getMentionsClasses(options?: MentionsOptions): {
|
|
6
|
-
container: string;
|
|
7
|
-
textarea: string;
|
|
8
|
-
dropdown: string;
|
|
9
|
-
item: string;
|
|
10
|
-
itemActive: string;
|
|
11
|
-
avatar: string;
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface PaginationOptions {
|
|
2
|
-
size?: 'sm' | 'md' | 'lg';
|
|
3
|
-
variant?: 'outline' | 'ghost' | 'solid';
|
|
4
|
-
rounded?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function getPaginationClasses(options?: PaginationOptions): {
|
|
7
|
-
container: string;
|
|
8
|
-
item: string;
|
|
9
|
-
active: string;
|
|
10
|
-
disabled: string;
|
|
11
|
-
jumper: string;
|
|
12
|
-
total: string;
|
|
13
|
-
ellipsis: string;
|
|
14
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface PopoverOptions {
|
|
2
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
-
}
|
|
4
|
-
export declare function getPopoverClasses(options?: PopoverOptions): {
|
|
5
|
-
container: string;
|
|
6
|
-
content: string;
|
|
7
|
-
arrow: string;
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ResultOptions {
|
|
2
|
-
status?: 'success' | 'error' | 'info' | 'warning' | '404' | '500' | '403';
|
|
3
|
-
}
|
|
4
|
-
export declare function getResultClasses(options?: ResultOptions): {
|
|
5
|
-
container: string;
|
|
6
|
-
icon: string;
|
|
7
|
-
title: string;
|
|
8
|
-
subTitle: string;
|
|
9
|
-
extra: string;
|
|
10
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface SearchOptions {
|
|
2
|
-
variant?: 'outline' | 'ghost' | 'bottom-line';
|
|
3
|
-
size?: 'sm' | 'md' | 'lg';
|
|
4
|
-
rounded?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function getSearchClasses(options?: SearchOptions): {
|
|
7
|
-
container: string;
|
|
8
|
-
input: string;
|
|
9
|
-
icon: string;
|
|
10
|
-
clearButton: string;
|
|
11
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface SkeletonOptions {
|
|
2
|
-
active?: boolean;
|
|
3
|
-
rounded?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function getSkeletonClasses(options?: SkeletonOptions): {
|
|
6
|
-
root: string;
|
|
7
|
-
header: string;
|
|
8
|
-
avatar: string;
|
|
9
|
-
title: string;
|
|
10
|
-
paragraph: string;
|
|
11
|
-
line: string;
|
|
12
|
-
lineLast: string;
|
|
13
|
-
rect: string;
|
|
14
|
-
circle: string;
|
|
15
|
-
button: string;
|
|
16
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface StepsOptions {
|
|
2
|
-
direction?: 'horizontal' | 'vertical';
|
|
3
|
-
}
|
|
4
|
-
export declare function getStepsClasses(options?: StepsOptions): {
|
|
5
|
-
container: string;
|
|
6
|
-
item: string;
|
|
7
|
-
head: string;
|
|
8
|
-
line: string;
|
|
9
|
-
linePending: string;
|
|
10
|
-
lineCompleted: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
iconContainer: string;
|
|
13
|
-
iconPending: string;
|
|
14
|
-
iconProcess: string;
|
|
15
|
-
iconCompleted: string;
|
|
16
|
-
content: string;
|
|
17
|
-
title: string;
|
|
18
|
-
titlePending: string;
|
|
19
|
-
titleProcess: string;
|
|
20
|
-
titleCompleted: string;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|