@unizap/uniui 1.0.6 → 1.0.8
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 +160 -42
- package/dist/components/Accordion/Accordion.d.ts +3 -2
- package/dist/components/Accordion/Accordion.types.d.ts +13 -12
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +2 -1
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -13
- package/dist/components/ActionMenu/index.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -2
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/{SearchBar/SearchBar.d.ts → Autocomplete/Autocomplete.d.ts} +4 -3
- package/dist/components/{SearchBar/SearchBar.types.d.ts → Autocomplete/Autocomplete.types.d.ts} +24 -24
- package/dist/components/Autocomplete/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -2
- package/dist/components/Avatar/Avatar.types.d.ts +10 -9
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Badge/Badge.types.d.ts +9 -8
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +3 -2
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -14
- package/dist/components/BottomNavigation/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -9
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Button/Button.types.d.ts +17 -16
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +3 -2
- package/dist/components/Card/Card.types.d.ts +17 -16
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/CardWrapper/CardWrapper.d.ts +8 -7
- package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -1
- package/dist/components/CardWrapper/index.d.ts +1 -1
- package/dist/components/Carousel/Carousel.d.ts +3 -2
- package/dist/components/Carousel/Carousel.types.d.ts +21 -21
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -9
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -2
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -12
- package/dist/components/DashboardStatBoxes/index.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +3 -2
- package/dist/components/DatePicker/DatePicker.types.d.ts +16 -16
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -2
- package/dist/components/Dialog/Dialog.types.d.ts +17 -16
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +3 -2
- package/dist/components/Divider/Divider.types.d.ts +6 -6
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +3 -2
- package/dist/components/Drawer/Drawer.types.d.ts +12 -11
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/components/Dropdown/Dropdown.types.d.ts +11 -11
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +3 -2
- package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -23
- package/dist/components/DropzoneUploader/index.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +3 -2
- package/dist/components/EmptyState/EmptyState.types.d.ts +18 -17
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconButton/IconButton.types.d.ts +11 -10
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.types.d.ts +10 -9
- package/dist/components/List/ListItem.d.ts +3 -2
- package/dist/components/List/index.d.ts +2 -2
- package/dist/components/Menu/Menu.d.ts +8 -8
- package/dist/components/Menu/Menu.types.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +3 -2
- package/dist/components/Pagination/Pagination.types.d.ts +8 -8
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +3 -2
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +3 -2
- package/dist/components/Pill/Pill.type.d.ts +8 -7
- package/dist/components/Pill/index.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -9
- package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/index.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts +3 -2
- package/dist/components/Progress/Progress.types.d.ts +48 -47
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -15
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -2
- package/dist/components/Select/Select.types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +10 -10
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -15
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts +28 -28
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts +3 -2
- package/dist/components/Slider/Slider.types.d.ts +21 -20
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +3 -2
- package/dist/components/Snackbar/Snackbar.types.d.ts +41 -40
- package/dist/components/Snackbar/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.d.ts +12 -11
- package/dist/components/Stepper/Stepper.type.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +5 -4
- package/dist/components/Table/Table.types.d.ts +15 -14
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -2
- package/dist/components/Tabs/Tabs.types.d.ts +17 -16
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +3 -2
- package/dist/components/TextArea/TextArea.types.d.ts +7 -7
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +3 -2
- package/dist/components/TextInput/TextInput.types.d.ts +15 -15
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -7
- package/dist/components/ToggleSwitch/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/Tooltip/Tooltip.type.d.ts +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +3 -2
- package/dist/components/Typography/Typography.types.d.ts +8 -7
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/index.d.ts +42 -42
- package/dist/components/otpInput/OtpInput.d.ts +3 -2
- package/dist/components/otpInput/OtpInput.type.d.ts +13 -12
- package/dist/components/otpInput/index.d.ts +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/uniui.css +1 -2209
- package/dist/uniui.js +2025 -2092
- package/dist/uniui.umd.cjs +74 -71
- package/dist/utils/ColorMap.d.ts +29 -156
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +80 -48
- package/dist/components/SearchBar/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,54 +1,172 @@
|
|
|
1
|
-
|
|
1
|
+
<p></p>
|
|
2
|
+
<p align="center">
|
|
3
|
+
<img src="https://ik.imagekit.io/unizap/uniui.svg" alt="UniUI Logo" height="80"/>
|
|
4
|
+
</p>
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
<p align="center">
|
|
7
|
+
<b>UniUI is a comprehensive and highly customizable UI component library built for React. Inspired by modern design principles, UniUI offers a wide range of high-quality, flexible, and easy-to-use components to build elegant and functional user interfaces for web applications.</b>
|
|
8
|
+
</p>
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
---
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
12
|
+
## 🚀 Installation
|
|
9
13
|
|
|
10
|
-
|
|
14
|
+
```sh
|
|
15
|
+
npm i @unizap/uniui
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## ⚡ Usage
|
|
22
|
+
|
|
23
|
+
Import and use components in your React project:
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { Button, IconButton, Badge, Carousel, EmptyState, PasswordInput } from '@unizap/uniui';
|
|
27
|
+
|
|
28
|
+
<Button color="amber" variant="filled">Hello UniUI</Button>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🧩 Components
|
|
34
|
+
|
|
35
|
+
- **Button**
|
|
36
|
+
- **IconButton**
|
|
37
|
+
- **Badge**
|
|
38
|
+
- **Carousel**
|
|
39
|
+
- **EmptyState**
|
|
40
|
+
- **PasswordInput**
|
|
41
|
+
- **CardWrapper**
|
|
42
|
+
- **Checkbox**
|
|
43
|
+
- **Dropdown**
|
|
44
|
+
- **DropzoneUploader**
|
|
45
|
+
- **Menu**
|
|
46
|
+
- **OtpInput**
|
|
47
|
+
- **Pill**
|
|
48
|
+
- **ProfileImageShowcase**
|
|
49
|
+
- **Stepper**
|
|
50
|
+
- **Table**
|
|
51
|
+
- **TextInput**
|
|
52
|
+
- **Skeleton**
|
|
53
|
+
- **TextArea**
|
|
54
|
+
- **Slider**
|
|
55
|
+
- **Snackbar**
|
|
56
|
+
- **Progress**
|
|
57
|
+
- **ToggleSwitch**
|
|
58
|
+
- **Typography**
|
|
59
|
+
- **Card**
|
|
60
|
+
- **Divider**
|
|
61
|
+
- **RadioGroup**
|
|
62
|
+
- **Select**
|
|
63
|
+
- **Tooltip**
|
|
64
|
+
- **Dialog**
|
|
65
|
+
- **ActionMenu**
|
|
66
|
+
- **Drawer**
|
|
67
|
+
- **Accordion**
|
|
68
|
+
- **Pagination**
|
|
69
|
+
- **Avatar**
|
|
70
|
+
- **Alert**
|
|
71
|
+
- **BottomNavigation**
|
|
72
|
+
- **Breadcrumbs**
|
|
73
|
+
- **DatePicker**
|
|
74
|
+
- **Tabs**
|
|
75
|
+
- **DashboardStatBoxes**
|
|
76
|
+
- **Sidebar**
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 🎨 Default Colors
|
|
81
|
+
|
|
82
|
+
UniUI provides a set of default colors you can use out of the box:
|
|
83
|
+
|
|
84
|
+
- **dark**
|
|
85
|
+
- **gray**
|
|
86
|
+
- **light**
|
|
87
|
+
- **pearl**
|
|
88
|
+
- **red**
|
|
89
|
+
- **orange**
|
|
90
|
+
- **amber**
|
|
91
|
+
- **yellow**
|
|
92
|
+
- **lime**
|
|
93
|
+
- **green**
|
|
94
|
+
- **emerald**
|
|
95
|
+
- **teal**
|
|
96
|
+
- **cyan**
|
|
97
|
+
- **sky**
|
|
98
|
+
- **blue**
|
|
99
|
+
- **indigo**
|
|
100
|
+
- **violet**
|
|
101
|
+
- **purple**
|
|
102
|
+
- **fuchsia**
|
|
103
|
+
- **pink**
|
|
104
|
+
- **rose**
|
|
105
|
+
|
|
106
|
+
To use the default color, simply pass its name to the `color` prop:
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
<Button color="amber">Amber Button</Button>
|
|
110
|
+
<Button color="blue">Blue Button</Button>
|
|
111
|
+
```
|
|
11
112
|
|
|
12
|
-
|
|
113
|
+
## 🎨 How to Extend Color
|
|
114
|
+
|
|
115
|
+
To Extend and build sleek interfaces straight from your markup, you can install **UniCSS**:
|
|
116
|
+
[](https://www.npmjs.com/package/@unizap/unicss)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
npm i @unizap/unicss
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
You can add custom colors to UniUI's color system using the exported `extendColorMap` and `extendRangeColorMap` functions.
|
|
126
|
+
|
|
127
|
+
**Example:**
|
|
128
|
+
|
|
129
|
+
1. Create a file in your project (e.g. `brandColor.js`):
|
|
13
130
|
|
|
14
131
|
```js
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
parserOptions: {
|
|
27
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
-
tsconfigRootDir: import.meta.dirname,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
})
|
|
132
|
+
import { extendColorMap } from "@unizap/uniui";
|
|
133
|
+
|
|
134
|
+
extendColorMap({
|
|
135
|
+
brand: {
|
|
136
|
+
filled: 'bg-color-violet-500 text-color-white',
|
|
137
|
+
outline: 'border-color-violet-500 text-color-violet-500',
|
|
138
|
+
transparent: 'text-color-violet-500',
|
|
139
|
+
accent: 'accent-color-violet-500',
|
|
140
|
+
peer: 'peer-checked:border-color-violet-500 peer-checked:text-color-violet-500',
|
|
141
|
+
}
|
|
142
|
+
});
|
|
32
143
|
```
|
|
33
144
|
|
|
34
|
-
|
|
145
|
+
2. Use your new color in any component:
|
|
146
|
+
|
|
147
|
+
```jsx
|
|
148
|
+
import './brandColor.js';
|
|
149
|
+
|
|
150
|
+
<Button color="brand">Brand Button</Button>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
You can also extend Slider colors:
|
|
35
154
|
|
|
36
155
|
```js
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
rules: {
|
|
48
|
-
// other rules...
|
|
49
|
-
// Enable its recommended typescript rules
|
|
50
|
-
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
-
...reactDom.configs.recommended.rules,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
156
|
+
import { extendRangeColorMap } from '@unizap/uniui';
|
|
157
|
+
|
|
158
|
+
extendRangeColorMap({
|
|
159
|
+
brand: {
|
|
160
|
+
track: 'bg-color-brand-200',
|
|
161
|
+
progress: 'bg-color-brand-500',
|
|
162
|
+
thumb: 'bg-color-brand-500 border-color-brand-600 shadow-color-brand-200',
|
|
163
|
+
thumbHover: 'bg-color-brand-600',
|
|
164
|
+
}
|
|
165
|
+
});
|
|
54
166
|
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 📄 License
|
|
171
|
+
|
|
172
|
+
MIT
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
|
|
3
|
+
export interface AccordionProps {
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
expandIcon?: ReactNode;
|
|
7
|
+
collapseIcon?: ReactNode;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
defaultExpanded?: boolean;
|
|
10
|
+
onToggle?: (expanded: boolean) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
titleClass?: string;
|
|
13
|
+
contentClass?: string;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Accordion';
|
|
1
|
+
export { default } from './Accordion';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ActionMenuProps } from './ActionMenu.types';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export default function ActionMenu({ items, trigger, className, dropdownItemClass }: ActionMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
|
|
3
|
+
export interface ActionMenuItem {
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
itemClass?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface ActionMenuProps {
|
|
11
|
+
items: ActionMenuItem[];
|
|
12
|
+
trigger: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
dropdownItemClass?: string;
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ActionMenu';
|
|
1
|
+
export { default } from './ActionMenu';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface AlertProps {
|
|
2
|
-
message: string;
|
|
3
|
-
variant?: 'info' | 'success' | 'danger' | 'warning' | 'dark';
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
autoClose?: boolean;
|
|
6
|
-
autoCloseDuration?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
1
|
+
export interface AlertProps {
|
|
2
|
+
message: string;
|
|
3
|
+
variant?: 'info' | 'success' | 'danger' | 'warning' | 'dark';
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
autoClose?: boolean;
|
|
6
|
+
autoCloseDuration?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Alert';
|
|
1
|
+
export { default } from './Alert';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SearchBarProps } from './
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { SearchBarProps } from './Autocomplete.types';
|
|
3
|
+
|
|
4
|
+
declare const SearchBar: React.FC<SearchBarProps>;
|
|
5
|
+
export default SearchBar;
|
package/dist/components/{SearchBar/SearchBar.types.d.ts → Autocomplete/Autocomplete.types.d.ts}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface SearchBarProps {
|
|
2
|
-
/** Current search value (controlled) */
|
|
3
|
-
value: string;
|
|
4
|
-
/** Called on every keystroke */
|
|
5
|
-
onChange: (v: string) => void;
|
|
6
|
-
/** Optional list shown under the field */
|
|
7
|
-
suggestions?: string[];
|
|
8
|
-
/** Fired when user picks a suggestion (click or Enter) */
|
|
9
|
-
onSelect?: (v: string) => void;
|
|
10
|
-
/** Placeholder text */
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
/** Debounce delay (ms) before firing onChange; 0 = none */
|
|
13
|
-
debounce?: number;
|
|
14
|
-
/** Width of the component (CSS size) */
|
|
15
|
-
width?: string | number;
|
|
16
|
-
/** If true, filter suggestions client-side */
|
|
17
|
-
filterLocal?: boolean;
|
|
18
|
-
/** Custom empty-state text when no suggestions */
|
|
19
|
-
emptyLabel?: string;
|
|
20
|
-
iconStyle?: string;
|
|
21
|
-
inputClass?: string;
|
|
22
|
-
className?: string;
|
|
23
|
-
startIcon?: React.ReactNode;
|
|
24
|
-
}
|
|
1
|
+
export interface SearchBarProps {
|
|
2
|
+
/** Current search value (controlled) */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Called on every keystroke */
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
/** Optional list shown under the field */
|
|
7
|
+
suggestions?: string[];
|
|
8
|
+
/** Fired when user picks a suggestion (click or Enter) */
|
|
9
|
+
onSelect?: (v: string) => void;
|
|
10
|
+
/** Placeholder text */
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Debounce delay (ms) before firing onChange; 0 = none */
|
|
13
|
+
debounce?: number;
|
|
14
|
+
/** Width of the component (CSS size) */
|
|
15
|
+
width?: string | number;
|
|
16
|
+
/** If true, filter suggestions client-side */
|
|
17
|
+
filterLocal?: boolean;
|
|
18
|
+
/** Custom empty-state text when no suggestions */
|
|
19
|
+
emptyLabel?: string;
|
|
20
|
+
iconStyle?: string;
|
|
21
|
+
inputClass?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
startIcon?: React.ReactNode;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Autocomplete';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { AvatarProps } from './Avatar.types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
declare const Avatar: ({ src, alt, size, fallback, className, color, shape, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default Avatar;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
|
|
3
|
+
export interface AvatarProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
fallback?: React.ReactNode;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
shape?: 'circle' | 'rounded' | 'square';
|
|
9
|
+
color?: CompColor;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Avatar';
|
|
1
|
+
export { default } from './Avatar';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CompColor } from '../../utils/ColorMap';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
count?: number;
|
|
6
|
+
showDot?: boolean;
|
|
7
|
+
max?: number;
|
|
8
|
+
color?: CompColor;
|
|
9
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
10
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Badge';
|
|
1
|
+
export { default } from './Badge';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BottomNavigationProps } from './BottomNavigation.types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
declare const BottomNavigation: React.FC<BottomNavigationProps>;
|
|
5
|
+
export default BottomNavigation;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface NavItem {
|
|
2
|
-
label: string;
|
|
3
|
-
icon: React.ReactNode;
|
|
4
|
-
path: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BottomNavigationProps {
|
|
7
|
-
variant?: 'floating' | 'static' | 'fixed';
|
|
8
|
-
activeTab: string;
|
|
9
|
-
navItems: NavItem[];
|
|
10
|
-
onTabChange: (label: string) => void;
|
|
11
|
-
className?: string;
|
|
12
|
-
activeClass?: string;
|
|
13
|
-
buttonClass?: string;
|
|
14
|
-
}
|
|
1
|
+
export interface NavItem {
|
|
2
|
+
label: string;
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
path: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BottomNavigationProps {
|
|
7
|
+
variant?: 'floating' | 'static' | 'fixed';
|
|
8
|
+
activeTab: string;
|
|
9
|
+
navItems: NavItem[];
|
|
10
|
+
onTabChange: (label: string) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
activeClass?: string;
|
|
13
|
+
buttonClass?: string;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './BottomNavigation';
|
|
1
|
+
export { default } from './BottomNavigation';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { BreadcrumbsProps } from './Breadcrumbs.types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
declare const Breadcrumbs: ({ items, separator, className }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default Breadcrumbs;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface BreadcrumbItem {
|
|
2
|
-
label: string;
|
|
3
|
-
href?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface BreadcrumbsProps {
|
|
6
|
-
items: BreadcrumbItem[];
|
|
7
|
-
separator?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BreadcrumbsProps {
|
|
6
|
+
items: BreadcrumbItem[];
|
|
7
|
+
separator?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Breadcrumbs';
|
|
1
|
+
export { default } from './Breadcrumbs';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CompColor } from '../../utils/ColorMap';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
|
|
4
|
+
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
title?: string;
|
|
6
|
+
variant?: 'filled' | 'outlined' | 'transparent';
|
|
7
|
+
color?: CompColor;
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
roundedFull?: boolean;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
17
|
+
type?: 'submit' | 'reset' | 'button';
|
|
18
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Button';
|
|
1
|
+
export { default } from './Button';
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
|
|
3
|
+
export interface ICardProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
space?: 'none' | 'small' | 'medium' | 'large';
|
|
7
|
+
shadow?: 'default' | 'small' | 'medium' | 'large';
|
|
8
|
+
roundness?: 'small' | 'medium' | 'large';
|
|
9
|
+
image?: string;
|
|
10
|
+
divider?: boolean;
|
|
11
|
+
actionMenu?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
hoverable?: boolean;
|
|
15
|
+
bordered?: boolean;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
loaderJsx?: boolean;
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Card';
|
|
1
|
+
export { default } from './Card';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
interface CardWrapperProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
border?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const CardWrapper: React.FC<CardWrapperProps>;
|
|
9
|
+
export default CardWrapper;
|