@sirlund/mindset-ui 0.1.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/README.md +307 -0
- package/dist/components/Button/Button.d.ts +56 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +43 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/IconSimple.d.ts +13 -0
- package/dist/components/Icon/IconSimple.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/index.cjs +521 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +936 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +488 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +1194 -0
- package/dist/tokens/index.d.ts +19 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/tokens.d.ts +194 -0
- package/dist/tokens/tokens.d.ts.map +1 -0
- package/package.json +74 -0
package/README.md
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
# MindSet Design System# MindSet Design System
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
A comprehensive Storybook documentation repository for the MindSet Design System, featuring components extracted from Figma with full specifications and interactive examples.A comprehensive Storybook documentation repository for the MindSet Design System, featuring components extracted from Figma with full specifications and interactive examples.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
**Figma Source:** [MindSet Design System](https://www.figma.com/design/XVdVpzEXk8FK4GaXgT1Gi8/%E2%9D%96-MindSet-Design-System)**Figma Source:** [MindSet Design System](https://www.figma.com/design/XVdVpzEXk8FK4GaXgT1Gi8/%E2%9D%96-MindSet-Design-System)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 📚 Overview## 📚 Overview
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
This repository documents and implements the MindSet Design System components as defined in Figma. It serves as:This repository documents and implements the MindSet Design System components as defined in Figma. It serves as:
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
- 🎨 **Component Documentation** - Interactive Storybook showcasing all component variants- 🎨 **Component Documentation** - Interactive Storybook showcasing all component variants
|
|
22
|
+
|
|
23
|
+
- 📋 **Design Reference** - Direct mapping to Figma component specifications- 📋 **Design Reference** - Direct mapping to Figma component specifications
|
|
24
|
+
|
|
25
|
+
- 🔧 **Implementation Guide** - Production-ready React components with TypeScript- 🔧 **Implementation Guide** - Production-ready React components with TypeScript
|
|
26
|
+
|
|
27
|
+
- ♿ **Accessibility** - Built-in a11y testing and documentation- ♿ **Accessibility** - Built-in a11y testing and documentation
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## 🧩 Components## 🧩 Components
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Button Components (140 Total Variants)### Button Components (140 Total Variants)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
#### 1. **Button** - 80 Variants#### 1. **Button** - 80 Variants
|
|
40
|
+
|
|
41
|
+
- **Types**: Primary, Accent (Secondary), Ghost (Tertiary), Text- **Types**: Primary, Accent (Secondary), Ghost (Tertiary), Text
|
|
42
|
+
|
|
43
|
+
- **Sizes**: XSmall, Small, Medium, Large- **Sizes**: XSmall, Small, Medium, Large
|
|
44
|
+
|
|
45
|
+
- **States**: Default, Hover, Active, Focus, Disabled- **States**: Default, Hover, Active, Focus, Disabled
|
|
46
|
+
|
|
47
|
+
- **Figma Node ID**: `90:1131`- **Figma Node ID**: `90:1131`
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
#### 2. **IconButton** - 48 Variants#### 2. **IconButton** - 48 Variants
|
|
52
|
+
|
|
53
|
+
- **Types**: Primary, Accent, Ghost, Text- **Types**: Primary, Accent, Ghost, Text
|
|
54
|
+
|
|
55
|
+
- **Sizes**: Small, XSmall- **Sizes**: Small, XSmall
|
|
56
|
+
|
|
57
|
+
- **Shapes**: Square, Circle- **Shapes**: Square, Circle
|
|
58
|
+
|
|
59
|
+
- **Figma Node ID**: `90:2972`- **Figma Node ID**: `90:2972`
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
#### 3. **ToggleButton** - 12 Variants#### 3. **ToggleButton** - 12 Variants
|
|
64
|
+
|
|
65
|
+
- **Types**: Default, Icon Only- **Types**: Default, Icon Only
|
|
66
|
+
|
|
67
|
+
- **Sizes**: Large, Small, XSmall- **Sizes**: Large, Small, XSmall
|
|
68
|
+
|
|
69
|
+
- **Figma Node ID**: `454:8432`- **Figma Node ID**: `454:8432`
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Additional Components### Additional Components
|
|
74
|
+
|
|
75
|
+
- **Card** - Pricing card components with variants- **Card** - Pricing card components with variants
|
|
76
|
+
|
|
77
|
+
- **Icon** - Icon system with multiple implementations- **Icon** - Icon system with multiple implementations
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## 🚀 Getting Started## 🚀 Getting Started
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### PrerequisitesCurrently, two official plugins are available:
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- Node.js 16+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
90
|
+
|
|
91
|
+
- npm or yarn- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Installation## Expanding the ESLint configuration
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
```bashIf you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
100
|
+
|
|
101
|
+
# Clone the repository
|
|
102
|
+
|
|
103
|
+
git clone <repository-url>```js
|
|
104
|
+
|
|
105
|
+
cd MindsetDSexport default tseslint.config([
|
|
106
|
+
|
|
107
|
+
globalIgnores(['dist']),
|
|
108
|
+
|
|
109
|
+
# Install dependencies {
|
|
110
|
+
|
|
111
|
+
npm install files: ['**/*.{ts,tsx}'],
|
|
112
|
+
|
|
113
|
+
``` extends: [
|
|
114
|
+
|
|
115
|
+
// Other configs...
|
|
116
|
+
|
|
117
|
+
### Running Storybook
|
|
118
|
+
|
|
119
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
120
|
+
|
|
121
|
+
```bash ...tseslint.configs.recommendedTypeChecked,
|
|
122
|
+
|
|
123
|
+
# Start Storybook development server // Alternatively, use this for stricter rules
|
|
124
|
+
|
|
125
|
+
npm run storybook ...tseslint.configs.strictTypeChecked,
|
|
126
|
+
|
|
127
|
+
// Optionally, add this for stylistic rules
|
|
128
|
+
|
|
129
|
+
# Storybook will be available at http://localhost:6006 ...tseslint.configs.stylisticTypeChecked,
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
// Other configs...
|
|
134
|
+
|
|
135
|
+
### Building Storybook ],
|
|
136
|
+
|
|
137
|
+
languageOptions: {
|
|
138
|
+
|
|
139
|
+
```bash parserOptions: {
|
|
140
|
+
|
|
141
|
+
# Build static Storybook site project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
142
|
+
|
|
143
|
+
npm run build-storybook tsconfigRootDir: import.meta.dirname,
|
|
144
|
+
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
# Output will be in storybook-static/ // other options...
|
|
148
|
+
|
|
149
|
+
``` },
|
|
150
|
+
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
## 📦 Project Structure])
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
mindset-design-system/You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
160
|
+
|
|
161
|
+
├── .storybook/ # Storybook configuration
|
|
162
|
+
|
|
163
|
+
│ ├── main.ts # Main config with addons```js
|
|
164
|
+
|
|
165
|
+
│ ├── preview.ts # Global decorators and parameters// eslint.config.js
|
|
166
|
+
|
|
167
|
+
│ └── vitest.setup.ts # Test configurationimport reactX from 'eslint-plugin-react-x'
|
|
168
|
+
|
|
169
|
+
├── src/import reactDom from 'eslint-plugin-react-dom'
|
|
170
|
+
|
|
171
|
+
│ └── components/ # Component library
|
|
172
|
+
|
|
173
|
+
│ ├── Button/export default tseslint.config([
|
|
174
|
+
|
|
175
|
+
│ │ ├── Button.tsx # Main button component globalIgnores(['dist']),
|
|
176
|
+
|
|
177
|
+
│ │ ├── Button.css # Button styles {
|
|
178
|
+
|
|
179
|
+
│ │ ├── Button.stories.tsx # Button documentation (80 variants) files: ['**/*.{ts,tsx}'],
|
|
180
|
+
|
|
181
|
+
│ │ ├── IconButton.stories.tsx # IconButton docs (48 variants) extends: [
|
|
182
|
+
|
|
183
|
+
│ │ ├── ToggleButton.stories.tsx # ToggleButton docs (12 variants) // Other configs...
|
|
184
|
+
|
|
185
|
+
│ │ └── index.ts # Exports // Enable lint rules for React
|
|
186
|
+
|
|
187
|
+
│ ├── Card/ reactX.configs['recommended-typescript'],
|
|
188
|
+
|
|
189
|
+
│ │ ├── Card.tsx // Enable lint rules for React DOM
|
|
190
|
+
|
|
191
|
+
│ │ ├── Card.css reactDom.configs.recommended,
|
|
192
|
+
|
|
193
|
+
│ │ ├── Card.stories.tsx ],
|
|
194
|
+
|
|
195
|
+
│ │ └── index.ts languageOptions: {
|
|
196
|
+
|
|
197
|
+
│ └── Icon/ parserOptions: {
|
|
198
|
+
|
|
199
|
+
│ ├── Icon.tsx project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
200
|
+
|
|
201
|
+
│ ├── Icon.css tsconfigRootDir: import.meta.dirname,
|
|
202
|
+
|
|
203
|
+
│ ├── Icon.stories.tsx },
|
|
204
|
+
|
|
205
|
+
│ └── index.ts // other options...
|
|
206
|
+
|
|
207
|
+
├── MINDSET_DESIGN_SYSTEM.md # Complete design system documentation },
|
|
208
|
+
|
|
209
|
+
├── package.json },
|
|
210
|
+
|
|
211
|
+
└── README.md])
|
|
212
|
+
|
|
213
|
+
``````
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
## 📖 Documentation
|
|
217
|
+
|
|
218
|
+
### Component Documentation
|
|
219
|
+
|
|
220
|
+
Each component includes comprehensive Storybook stories with:
|
|
221
|
+
- **Interactive controls** - Modify props in real-time
|
|
222
|
+
- **Multiple examples** - All variants and use cases
|
|
223
|
+
- **Design mapping** - Links to Figma node IDs
|
|
224
|
+
- **Code examples** - Copy-paste ready implementations
|
|
225
|
+
- **Accessibility notes** - a11y best practices
|
|
226
|
+
|
|
227
|
+
### Design System Documentation
|
|
228
|
+
|
|
229
|
+
See [MINDSET_DESIGN_SYSTEM.md](./MINDSET_DESIGN_SYSTEM.md) for:
|
|
230
|
+
- Complete component specifications from Figma
|
|
231
|
+
- Variant matrices and property tables
|
|
232
|
+
- Figma node ID reference
|
|
233
|
+
- Typography and color tokens
|
|
234
|
+
- Implementation guidelines
|
|
235
|
+
|
|
236
|
+
## 🛠️ Available Scripts
|
|
237
|
+
|
|
238
|
+
| Command | Description |
|
|
239
|
+
|---------|-------------|
|
|
240
|
+
| `npm run storybook` | Start Storybook dev server on port 6006 |
|
|
241
|
+
| `npm run build-storybook` | Build static Storybook site |
|
|
242
|
+
| `npm run lint` | Run ESLint on the codebase |
|
|
243
|
+
| `npm run dev` | Alias for `npm run storybook` |
|
|
244
|
+
| `npm run build` | Alias for `npm run build-storybook` |
|
|
245
|
+
|
|
246
|
+
## 🧪 Testing
|
|
247
|
+
|
|
248
|
+
Storybook includes the following testing addons:
|
|
249
|
+
- **@storybook/addon-a11y** - Accessibility testing
|
|
250
|
+
- **@storybook/addon-vitest** - Component testing with Vitest
|
|
251
|
+
|
|
252
|
+
## 🎨 Design Tokens
|
|
253
|
+
|
|
254
|
+
The design system uses the following design tokens:
|
|
255
|
+
|
|
256
|
+
### Typography
|
|
257
|
+
- **UI-Label/XS** - Extra small labels
|
|
258
|
+
- **UI-Label/S** - Small labels
|
|
259
|
+
- **UI-Label/M** - Medium labels (default)
|
|
260
|
+
- Each with Regular & Strong weights
|
|
261
|
+
|
|
262
|
+
### Colors
|
|
263
|
+
Defined in CSS variables, mapped from Figma:
|
|
264
|
+
- Primary colors for main actions
|
|
265
|
+
- Accent colors for secondary actions
|
|
266
|
+
- Ghost/Tertiary for subtle interactions
|
|
267
|
+
- Semantic colors (danger, success, warning)
|
|
268
|
+
|
|
269
|
+
## 🔗 Figma Integration
|
|
270
|
+
|
|
271
|
+
This repository is designed to work with the Figma design system:
|
|
272
|
+
- Component names match Figma layer names
|
|
273
|
+
- Props map to Figma component properties
|
|
274
|
+
- Variants mirror Figma variant structure
|
|
275
|
+
- Node IDs documented for programmatic access
|
|
276
|
+
|
|
277
|
+
## 📝 Contributing
|
|
278
|
+
|
|
279
|
+
When adding new components:
|
|
280
|
+
1. Create component files in `src/components/[ComponentName]/`
|
|
281
|
+
2. Include `.tsx`, `.css`, `.stories.tsx`, and `index.ts`
|
|
282
|
+
3. Document Figma node IDs in stories
|
|
283
|
+
4. Update `MINDSET_DESIGN_SYSTEM.md` with specifications
|
|
284
|
+
5. Add comprehensive stories covering all variants
|
|
285
|
+
|
|
286
|
+
## 🔧 Technology Stack
|
|
287
|
+
|
|
288
|
+
- **React 19** - UI library
|
|
289
|
+
- **TypeScript 5.8** - Type safety
|
|
290
|
+
- **Storybook 9.1** - Component documentation
|
|
291
|
+
- **Vite 7** - Build tool
|
|
292
|
+
- **Vitest 3** - Testing framework
|
|
293
|
+
- **ESLint** - Code linting
|
|
294
|
+
|
|
295
|
+
## 📄 License
|
|
296
|
+
|
|
297
|
+
[Add your license here]
|
|
298
|
+
|
|
299
|
+
## 👥 Team
|
|
300
|
+
|
|
301
|
+
MindSet Team
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
**Last Updated:** October 16, 2025
|
|
306
|
+
**Storybook Version:** 9.1.5
|
|
307
|
+
**Design System Version:** Based on Figma file 2025-10-15
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Button.css';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* The content of the button
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The variant of the button
|
|
10
|
+
* - primary: Dark background (inverted)
|
|
11
|
+
* - accent: Blue background (secondary)
|
|
12
|
+
* - tertiary: Transparent with border (ghost)
|
|
13
|
+
* - text: No background or border
|
|
14
|
+
* - danger: Red for destructive actions
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'primary' | 'accent' | 'tertiary' | 'text' | 'danger';
|
|
17
|
+
/**
|
|
18
|
+
* The size of the button
|
|
19
|
+
*/
|
|
20
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
21
|
+
/**
|
|
22
|
+
* Whether the button is disabled
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the button is in loading state
|
|
27
|
+
*/
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the button takes full width
|
|
31
|
+
*/
|
|
32
|
+
fullWidth?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Icon to display before the text
|
|
35
|
+
*/
|
|
36
|
+
startIcon?: React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Icon to display after the text
|
|
39
|
+
*/
|
|
40
|
+
endIcon?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Click handler
|
|
43
|
+
*/
|
|
44
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
45
|
+
/**
|
|
46
|
+
* HTML button type
|
|
47
|
+
*/
|
|
48
|
+
type?: 'button' | 'submit' | 'reset';
|
|
49
|
+
/**
|
|
50
|
+
* Additional CSS class name
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
55
|
+
export default Button;
|
|
56
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChE;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwExC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Card.css';
|
|
3
|
+
export interface CardProps {
|
|
4
|
+
/**
|
|
5
|
+
* The plan type
|
|
6
|
+
*/
|
|
7
|
+
plan?: 'Starter' | 'Individual' | 'Teams';
|
|
8
|
+
/**
|
|
9
|
+
* The plan price
|
|
10
|
+
*/
|
|
11
|
+
price?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The plan price per period
|
|
14
|
+
*/
|
|
15
|
+
pricePeriod?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Number of seats/users
|
|
18
|
+
*/
|
|
19
|
+
seats?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether seats can be edited
|
|
22
|
+
*/
|
|
23
|
+
canEditSeats?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Next billing amount
|
|
26
|
+
*/
|
|
27
|
+
nextBillingAmount?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Renewal date
|
|
30
|
+
*/
|
|
31
|
+
renewalDate?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Additional CSS class name
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Click handler for the action button
|
|
38
|
+
*/
|
|
39
|
+
onActionClick?: () => void;
|
|
40
|
+
}
|
|
41
|
+
export declare const Card: React.FC<CardProps>;
|
|
42
|
+
export default Card;
|
|
43
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,CAAC;AA0CpB,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA4IpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Icon.css';
|
|
3
|
+
export type IconName = 'add' | 'add-circle' | 'alert-circle' | 'alert-triangle' | 'archive' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'bell' | 'trash' | 'building' | 'calendar' | 'camera' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'close' | 'mail' | 'folder' | 'folder-open' | 'lock' | 'menu' | 'pencil' | 'question-circle' | 'remove' | 'search' | 'settings' | 'upload' | 'user' | 'view' | 'view-off';
|
|
4
|
+
export type IconSize = 'XS' | 'S' | 'M' | 'L';
|
|
5
|
+
export interface IconProps {
|
|
6
|
+
name: IconName;
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
className?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Icon: React.FC<IconProps>;
|
|
13
|
+
export default Icon;
|
|
14
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,YAAY,GACZ,cAAc,GACd,gBAAgB,GAChB,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,MAAM,GACN,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,OAAO,GACP,cAAc,GACd,cAAc,GACd,eAAe,GACf,YAAY,GACZ,OAAO,GACP,MAAM,GACN,QAAQ,GACR,aAAa,GACb,MAAM,GACN,MAAM,GACN,QAAQ,GACR,iBAAiB,GACjB,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,CAAC;AAEf,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAgFpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Icon.css';
|
|
3
|
+
export type IconName = 'add' | 'edit' | 'trash' | 'settings';
|
|
4
|
+
export interface IconProps {
|
|
5
|
+
name: IconName;
|
|
6
|
+
size?: 'XS' | 'S' | 'M' | 'L';
|
|
7
|
+
className?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const IconSimple: React.FC<IconProps>;
|
|
12
|
+
export default IconSimple;
|
|
13
|
+
//# sourceMappingURL=IconSimple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSimple.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/IconSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,CAAC;AAEpB,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAE7D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkD1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|