@stackone/malachite 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/README.md +181 -0
- package/dist/index.d.ts +386 -0
- package/dist/index.js +31436 -0
- package/dist/index.js.map +1 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Malachite
|
|
2
|
+
|
|
3
|
+
A modern React component library built with TypeScript, providing a comprehensive set of reusable UI components for building StackOne applications.
|
|
4
|
+
|
|
5
|
+
## 🚀 Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install malachite
|
|
9
|
+
# or
|
|
10
|
+
yarn add malachite
|
|
11
|
+
# or
|
|
12
|
+
pnpm add malachite
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 📦 What's Included
|
|
16
|
+
|
|
17
|
+
Malachite provides a set of components to be used in StackOne applications.
|
|
18
|
+
|
|
19
|
+
### Core Components
|
|
20
|
+
- **Button** - Flexible button component with multiple variants
|
|
21
|
+
- **Card** - Container component for content organization
|
|
22
|
+
- **Input** - Form input component with validation support
|
|
23
|
+
- **Typography** - Text components with consistent styling
|
|
24
|
+
- **Spacer** - Layout component for consistent spacing
|
|
25
|
+
|
|
26
|
+
### Layout & Structure
|
|
27
|
+
- **Flex** - Flexible layout component with alignment controls
|
|
28
|
+
- **Padded** - Container component with consistent padding
|
|
29
|
+
- **FooterLinks** - Pre-styled footer navigation component
|
|
30
|
+
|
|
31
|
+
### Interactive Components
|
|
32
|
+
- **Alert** - Notification and alert messages
|
|
33
|
+
- **Tooltip** - Contextual information on hover
|
|
34
|
+
- **ButtonList** - Group of related buttons
|
|
35
|
+
- **Form** - Form wrapper with validation support
|
|
36
|
+
|
|
37
|
+
### Content & Media
|
|
38
|
+
- **Markdown** - Render markdown content with styling
|
|
39
|
+
- **Spinner** - Loading indicators
|
|
40
|
+
- **CustomIcons** - Comprehensive icon library
|
|
41
|
+
|
|
42
|
+
### Theme System
|
|
43
|
+
- **ThemeProvider** - Theme context provider
|
|
44
|
+
- **useTheme** - Theme context hook
|
|
45
|
+
|
|
46
|
+
## 🎯 Quick Start
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
import React from 'react';
|
|
50
|
+
import {
|
|
51
|
+
ThemeProvider,
|
|
52
|
+
Button,
|
|
53
|
+
Card,
|
|
54
|
+
Typography,
|
|
55
|
+
Flex
|
|
56
|
+
} from 'malachite';
|
|
57
|
+
|
|
58
|
+
function App() {
|
|
59
|
+
return (
|
|
60
|
+
<ThemeProvider>
|
|
61
|
+
<Card>
|
|
62
|
+
<Flex direction="column" gap="md">
|
|
63
|
+
<Typography variant="h1">Welcome to Malachite</Typography>
|
|
64
|
+
<Typography variant="body">
|
|
65
|
+
Build beautiful UIs with our component library
|
|
66
|
+
</Typography>
|
|
67
|
+
<Button variant="primary">
|
|
68
|
+
Get Started
|
|
69
|
+
</Button>
|
|
70
|
+
</Flex>
|
|
71
|
+
</Card>
|
|
72
|
+
</ThemeProvider>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export default App;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## 🎨 Theming
|
|
80
|
+
|
|
81
|
+
Malachite includes a powerful theming system that allows you to customize the look and feel of all components:
|
|
82
|
+
|
|
83
|
+
```tsx
|
|
84
|
+
import { ThemeProvider, useTheme } from 'malachite';
|
|
85
|
+
|
|
86
|
+
// Wrap your app with ThemeProvider
|
|
87
|
+
function App() {
|
|
88
|
+
return (
|
|
89
|
+
<ThemeProvider>
|
|
90
|
+
<YourComponents />
|
|
91
|
+
</ThemeProvider>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Use the theme in your components
|
|
96
|
+
function CustomComponent() {
|
|
97
|
+
const theme = useTheme();
|
|
98
|
+
// Access theme values
|
|
99
|
+
return <div style={{ color: theme.colors.primary }}>Themed content</div>;
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 📚 Storybook
|
|
104
|
+
|
|
105
|
+
Explore all components and their variants in our interactive Storybook:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm run storybook
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
This will launch Storybook where you can:
|
|
112
|
+
- Browse all available components
|
|
113
|
+
- See component variations and props
|
|
114
|
+
- Test component interactions
|
|
115
|
+
- Copy code examples
|
|
116
|
+
|
|
117
|
+
## 🛠️ Development
|
|
118
|
+
|
|
119
|
+
### Prerequisites
|
|
120
|
+
- Node.js 16+
|
|
121
|
+
- npm, yarn, or pnpm
|
|
122
|
+
|
|
123
|
+
### Setup
|
|
124
|
+
|
|
125
|
+
1. Clone the repository
|
|
126
|
+
```bash
|
|
127
|
+
git clone https://github.com/StackOneHQ/malachite.git
|
|
128
|
+
cd malachite
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
2. Install dependencies
|
|
132
|
+
```bash
|
|
133
|
+
npm install
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
3. Start development server
|
|
137
|
+
```bash
|
|
138
|
+
npm run dev
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
4. Run Storybook
|
|
142
|
+
```bash
|
|
143
|
+
npm run storybook
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Available Scripts
|
|
147
|
+
|
|
148
|
+
- `npm run dev` - Start development server
|
|
149
|
+
- `npm run build` - Build for production
|
|
150
|
+
- `npm run preview` - Preview production build
|
|
151
|
+
- `npm run storybook` - Launch Storybook
|
|
152
|
+
- `npm run lint` - Run ESLint
|
|
153
|
+
- `npm run type-check` - Run TypeScript checks
|
|
154
|
+
|
|
155
|
+
## 📋 Component Reference
|
|
156
|
+
|
|
157
|
+
### Layout Components
|
|
158
|
+
| Component | Description | Key Props |
|
|
159
|
+
|-----------|-------------|-----------|
|
|
160
|
+
| `Flex` | Flexible layout container | `direction`, `justify`, `align`, `gap` |
|
|
161
|
+
| `Padded` | Container with consistent padding | `size`, `children` |
|
|
162
|
+
| `Spacer` | Adds consistent spacing | `size`, `direction` |
|
|
163
|
+
|
|
164
|
+
### UI Components
|
|
165
|
+
| Component | Description | Key Props |
|
|
166
|
+
|-----------|-------------|-----------|
|
|
167
|
+
| `Button` | Interactive button | `variant`, `size`, `disabled` |
|
|
168
|
+
| `Card` | Content container | `elevation`, `padding` |
|
|
169
|
+
| `Input` | Form input field | `type`, `placeholder`, `validation` |
|
|
170
|
+
| `Alert` | Notification messages | `type`, `message`, `dismissible` |
|
|
171
|
+
|
|
172
|
+
### Content Components
|
|
173
|
+
| Component | Description | Key Props |
|
|
174
|
+
|-----------|-------------|-----------|
|
|
175
|
+
| `Typography` | Text elements | `variant`, `color`, `weight` |
|
|
176
|
+
| `Markdown` | Rendered markdown | `content`, `sanitize` |
|
|
177
|
+
| `Tooltip` | Contextual help | `content`, `placement` |
|
|
178
|
+
|
|
179
|
+
## 📄 License
|
|
180
|
+
|
|
181
|
+
This project is licensed under the MIT License.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { CodeTextProps } from './codeText';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
import { createStyles } from 'antd-style';
|
|
4
|
+
import { CSSObject } from 'antd-style';
|
|
5
|
+
import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
|
|
6
|
+
import { default as default_2 } from 'react';
|
|
7
|
+
import { EllipsisTextProps } from './ellipsisText';
|
|
8
|
+
import { FC } from 'react';
|
|
9
|
+
import { FieldPath } from 'react-hook-form';
|
|
10
|
+
import { FieldValues } from 'react-hook-form';
|
|
11
|
+
import { FormInstance } from 'antd';
|
|
12
|
+
import { FormSectionTitleProps } from './formSectionText';
|
|
13
|
+
import { HandWrittenProps } from './handWritten';
|
|
14
|
+
import { JSX as JSX_2 } from 'react';
|
|
15
|
+
import { LinkProps } from './link';
|
|
16
|
+
import { PageTitleProps } from './pageTitle';
|
|
17
|
+
import * as React_2 from 'react';
|
|
18
|
+
import { ReactNode } from 'react';
|
|
19
|
+
import { SecondaryTextProps } from './secondaryText';
|
|
20
|
+
import { SectionTitleProps } from './sectionTitle';
|
|
21
|
+
import { StatisticLabelProps } from './statisticLabel';
|
|
22
|
+
import { StatisticValueProps } from './statisticValue';
|
|
23
|
+
import { TerminalTextProps } from './terminalText';
|
|
24
|
+
import { TextProps } from './text';
|
|
25
|
+
|
|
26
|
+
export declare const Alert: default_2.FC<AlertProps>;
|
|
27
|
+
|
|
28
|
+
declare interface AlertProps {
|
|
29
|
+
type?: AlertType;
|
|
30
|
+
message: string;
|
|
31
|
+
hasMargin?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare type AlertType = 'success' | 'error' | 'warning' | 'info';
|
|
35
|
+
|
|
36
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
|
|
38
|
+
declare interface ButtonDefinition {
|
|
39
|
+
label: string;
|
|
40
|
+
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void> | void;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
danger?: boolean;
|
|
43
|
+
icon?: React.ReactNode;
|
|
44
|
+
tooltip?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare const ButtonList: default_2.FC<ButtonListProps>;
|
|
48
|
+
|
|
49
|
+
declare interface ButtonListProps {
|
|
50
|
+
buttons: Array<{
|
|
51
|
+
key: string;
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
onClick: () => void;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare interface ButtonProps {
|
|
58
|
+
type?: ButtonType;
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
htmlType?: 'button' | 'submit' | 'reset';
|
|
61
|
+
icon?: default_2.ReactNode;
|
|
62
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
63
|
+
flexGrow?: boolean;
|
|
64
|
+
children?: default_2.ReactNode;
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
tooltip?: string;
|
|
67
|
+
onClick?: (e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
68
|
+
fill?: boolean;
|
|
69
|
+
iconPosition?: 'start' | 'end';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare type ButtonType = 'filled' | 'outline' | 'destructive' | 'green' | 'orange' | 'red' | 'ghost' | 'no-style';
|
|
73
|
+
|
|
74
|
+
export declare const Card: default_2.FC<CardProps>;
|
|
75
|
+
|
|
76
|
+
declare interface CardProps {
|
|
77
|
+
title?: string | default_2.ReactNode;
|
|
78
|
+
padding?: string;
|
|
79
|
+
children?: default_2.ReactNode;
|
|
80
|
+
size?: 'default' | 'small';
|
|
81
|
+
width?: string;
|
|
82
|
+
minWidth?: string;
|
|
83
|
+
direction?: 'row' | 'column';
|
|
84
|
+
align?: 'center';
|
|
85
|
+
dimmed?: boolean;
|
|
86
|
+
fullHeight?: boolean;
|
|
87
|
+
border?: 'base' | 'rounded';
|
|
88
|
+
alignSelf?: 'center';
|
|
89
|
+
height?: string;
|
|
90
|
+
footer?: default_2.ReactNode;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare interface Colors {
|
|
94
|
+
orangeForeground: string;
|
|
95
|
+
orangeBackground: string;
|
|
96
|
+
redForeground: string;
|
|
97
|
+
redBackground: string;
|
|
98
|
+
greenForeground: string;
|
|
99
|
+
greenBackground: string;
|
|
100
|
+
primaryForeground: string;
|
|
101
|
+
primaryBackground: string;
|
|
102
|
+
primaryShadow: string;
|
|
103
|
+
primaryBorder: string;
|
|
104
|
+
primaryBorderHover: string;
|
|
105
|
+
secondaryForeground: string;
|
|
106
|
+
secondaryBackground: string;
|
|
107
|
+
secondaryShadow: string;
|
|
108
|
+
secondaryBorder: string;
|
|
109
|
+
secondaryBorderHover: string;
|
|
110
|
+
destructiveBackground: string;
|
|
111
|
+
destructiveForeground: string;
|
|
112
|
+
destructiveShadow: string;
|
|
113
|
+
destructiveBorder: string;
|
|
114
|
+
background: string;
|
|
115
|
+
dimmedBackground: string;
|
|
116
|
+
dimmedForeground: string;
|
|
117
|
+
dimmedForegroundSecondary: string;
|
|
118
|
+
quoteBackground: string;
|
|
119
|
+
quoteForeground: string;
|
|
120
|
+
linkForeground: string;
|
|
121
|
+
linkForegroundHover: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare const CustomIcons: {
|
|
125
|
+
AccountIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
126
|
+
AccountsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
127
|
+
AddIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
128
|
+
AdvancedLogsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
129
|
+
ApiKeysIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
130
|
+
ArrowLeftIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
131
|
+
Authentication: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
132
|
+
BiDirectionalArrowsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
133
|
+
CaretDownIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
134
|
+
CaretLeftIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
135
|
+
CaretRightIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
136
|
+
CaretUpIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
137
|
+
ChangePasswordIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
138
|
+
CheckCircleFilledIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
139
|
+
ClearIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
140
|
+
CloseIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
141
|
+
CommandKeyIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
142
|
+
CopyIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
143
|
+
CsvIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
144
|
+
CustomFieldIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
145
|
+
DashboardIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
146
|
+
DateIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
147
|
+
DisabledIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
148
|
+
DisableIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
149
|
+
DocIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
150
|
+
DownloadIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
151
|
+
EditIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
152
|
+
EnableIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
153
|
+
EnumIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
154
|
+
ExpandIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
155
|
+
FieldMappingIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
156
|
+
FilledCaretDownIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
157
|
+
FilledCaretRightIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
158
|
+
FilterIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
159
|
+
ForbiddenIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
160
|
+
ForwardArrowIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
161
|
+
InfoIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
162
|
+
IntegrationsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
163
|
+
KeyIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
164
|
+
LogsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
165
|
+
MagicWandIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
166
|
+
ManageTeamIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
167
|
+
ManualWebhookIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
168
|
+
MembersIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
169
|
+
ModalIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
170
|
+
NavbarCollapseIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
171
|
+
NavbarExpandIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
172
|
+
NotFoundIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
173
|
+
PlusIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
174
|
+
PreviewIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
175
|
+
ProgrammaticWebhookIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
176
|
+
PulseIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
177
|
+
RefreshIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
178
|
+
RejectIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
179
|
+
ReloadIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
180
|
+
RequiredFieldIndicatorIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
181
|
+
SecurityIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
182
|
+
SettingsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
183
|
+
SignOutIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
184
|
+
SliderIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
185
|
+
SortIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
186
|
+
SourceIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
187
|
+
SyntheticWebhookIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
188
|
+
TrashIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
189
|
+
UploadIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
190
|
+
WebhookEventsIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
191
|
+
WebhookIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
192
|
+
WebhookSigningSecretIcon: (props: Partial<CustomIconComponentProps>) => JSX_2.Element;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export declare const Flex: default_2.FC<FlexProps>;
|
|
196
|
+
|
|
197
|
+
export declare enum FlexAlign {
|
|
198
|
+
Top = "flex-start",
|
|
199
|
+
Bottom = "flex-end",
|
|
200
|
+
Center = "center",
|
|
201
|
+
Normal = "normal"
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export declare enum FlexDirection {
|
|
205
|
+
Horizontal = "horizontal",
|
|
206
|
+
Vertical = "vertical"
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare enum FlexGapSize {
|
|
210
|
+
Small = "small",
|
|
211
|
+
Medium = "medium",
|
|
212
|
+
Large = "large"
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export declare enum FlexJustify {
|
|
216
|
+
Left = "flex-start",
|
|
217
|
+
Right = "flex-end",
|
|
218
|
+
Center = "center",
|
|
219
|
+
SpaceBetween = "space-between",
|
|
220
|
+
SpaceAround = "space-around",
|
|
221
|
+
SpaceEvenly = "space-evenly"
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare interface FlexProps {
|
|
225
|
+
justify?: FlexJustify;
|
|
226
|
+
align?: FlexAlign;
|
|
227
|
+
gapSize?: FlexGapSize;
|
|
228
|
+
direction?: FlexDirection;
|
|
229
|
+
fullHeight?: boolean;
|
|
230
|
+
grow?: boolean;
|
|
231
|
+
width?: string;
|
|
232
|
+
id?: string;
|
|
233
|
+
children?: default_2.ReactNode;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare type FontSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
237
|
+
|
|
238
|
+
export declare const FooterLinks: default_2.FC<FooterLinksProps>;
|
|
239
|
+
|
|
240
|
+
declare interface FooterLinksProps {
|
|
241
|
+
fullWidth?: boolean;
|
|
242
|
+
showDocsSupport?: boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export declare const Form: default_2.FC<FormProps>;
|
|
246
|
+
|
|
247
|
+
declare interface FormProps {
|
|
248
|
+
children: default_2.ReactNode;
|
|
249
|
+
onFinish?: () => void;
|
|
250
|
+
formInstance?: FormInstance;
|
|
251
|
+
style?: default_2.CSSProperties;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export declare const Input: default_2.FC<InputProps>;
|
|
255
|
+
|
|
256
|
+
declare interface InputProps {
|
|
257
|
+
label?: string;
|
|
258
|
+
hint?: string;
|
|
259
|
+
tooltip?: string;
|
|
260
|
+
placeholder?: string;
|
|
261
|
+
icon?: default_2.ReactNode;
|
|
262
|
+
readOnly?: boolean;
|
|
263
|
+
name: FieldPath<FieldValues> | string;
|
|
264
|
+
type?: 'text' | 'password' | 'number';
|
|
265
|
+
description?: string;
|
|
266
|
+
size?: SizeType;
|
|
267
|
+
required?: boolean;
|
|
268
|
+
error?: boolean;
|
|
269
|
+
loading?: boolean;
|
|
270
|
+
defaultValue?: string;
|
|
271
|
+
disabled?: boolean;
|
|
272
|
+
prefixValue?: string;
|
|
273
|
+
prefixSecondaryValue?: string;
|
|
274
|
+
ellipsis?: boolean;
|
|
275
|
+
formControl?: Control<FieldValues, unknown>;
|
|
276
|
+
buttons?: ButtonDefinition[];
|
|
277
|
+
onCopyClick?: () => void;
|
|
278
|
+
onChange?: (value: string) => void;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export declare const Markdown: default_2.FC<MarkdownProps>;
|
|
282
|
+
|
|
283
|
+
declare interface MarkdownProps {
|
|
284
|
+
text: string;
|
|
285
|
+
color?: TextColor;
|
|
286
|
+
size?: FontSize;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const Padded: default_2.FC<PaddedProps>;
|
|
290
|
+
|
|
291
|
+
declare interface PaddedProps {
|
|
292
|
+
vertical: PaddingSize;
|
|
293
|
+
horizontal: PaddingSize;
|
|
294
|
+
children: default_2.ReactNode;
|
|
295
|
+
fullHeight?: boolean;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare type PaddingSize = 'small' | 'medium' | 'large' | 'none';
|
|
299
|
+
|
|
300
|
+
declare type SizeType = 'small' | 'middle' | 'large';
|
|
301
|
+
|
|
302
|
+
export declare const Spacer: default_2.FC<SpacerProps>;
|
|
303
|
+
|
|
304
|
+
declare interface SpacerProps {
|
|
305
|
+
direction?: 'horizontal' | 'vertical';
|
|
306
|
+
size?: number;
|
|
307
|
+
align?: 'center' | 'start' | 'end' | 'baseline';
|
|
308
|
+
justifyContent?: 'space-between' | 'end' | 'center';
|
|
309
|
+
padding?: string;
|
|
310
|
+
children: default_2.ReactNode;
|
|
311
|
+
id?: string;
|
|
312
|
+
fullHeight?: boolean;
|
|
313
|
+
fullWidth?: boolean;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export declare const Spinner: default_2.FC<SpinnerProps>;
|
|
317
|
+
|
|
318
|
+
declare interface SpinnerProps {
|
|
319
|
+
size?: 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large';
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare type TextColor = 'regular' | 'dimmed' | 'primary' | 'secondary' | 'destructive' | 'green' | 'red' | 'orange';
|
|
323
|
+
|
|
324
|
+
declare type Theme = 'dark' | 'light' | 'system';
|
|
325
|
+
|
|
326
|
+
export declare function ThemeProvider({ children, theme, ...props }: ThemeProviderProps): React_2.JSX.Element;
|
|
327
|
+
|
|
328
|
+
declare type ThemeProviderProps = {
|
|
329
|
+
children: React_2.ReactNode;
|
|
330
|
+
theme?: Theme;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare type ThemeProviderState = {
|
|
334
|
+
theme: Theme;
|
|
335
|
+
colors: Colors;
|
|
336
|
+
useStyles: ReturnType<typeof createStyles<{
|
|
337
|
+
colors: Colors;
|
|
338
|
+
}, Partial<{
|
|
339
|
+
'button-orange': CSSObject;
|
|
340
|
+
'button-red': CSSObject;
|
|
341
|
+
'button-green': CSSObject;
|
|
342
|
+
'button-filled': CSSObject;
|
|
343
|
+
'button-outline': CSSObject;
|
|
344
|
+
'button-destructive': CSSObject;
|
|
345
|
+
'button-ghost': CSSObject;
|
|
346
|
+
'button-no-style': CSSObject;
|
|
347
|
+
card: CSSObject;
|
|
348
|
+
'input-wrapper': CSSObject;
|
|
349
|
+
terminalText: CSSObject;
|
|
350
|
+
link: CSSObject;
|
|
351
|
+
buttonList: CSSObject;
|
|
352
|
+
buttonListItem: CSSObject;
|
|
353
|
+
'alert-info': CSSObject;
|
|
354
|
+
'alert-success': CSSObject;
|
|
355
|
+
'alert-error': CSSObject;
|
|
356
|
+
'alert-warning': CSSObject;
|
|
357
|
+
}>>>;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export declare const Tooltip: default_2.FC<TooltipProps>;
|
|
361
|
+
|
|
362
|
+
declare interface TooltipProps {
|
|
363
|
+
text: default_2.ReactNode | string;
|
|
364
|
+
children: default_2.ReactNode;
|
|
365
|
+
delay?: number;
|
|
366
|
+
wrapChildren?: boolean;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export declare const Typography: {
|
|
370
|
+
Text: FC<TextProps>;
|
|
371
|
+
PageTitle: FC<PageTitleProps>;
|
|
372
|
+
StatisticLabel: FC<StatisticLabelProps>;
|
|
373
|
+
StatisticValue: FC<StatisticValueProps>;
|
|
374
|
+
SectionTitle: FC<SectionTitleProps>;
|
|
375
|
+
SecondaryText: FC<SecondaryTextProps>;
|
|
376
|
+
EllipsisText: FC<EllipsisTextProps>;
|
|
377
|
+
CodeText: FC<CodeTextProps>;
|
|
378
|
+
FormSectionTitle: FC<FormSectionTitleProps>;
|
|
379
|
+
TerminalText: FC<TerminalTextProps>;
|
|
380
|
+
HandWritten: FC<HandWrittenProps>;
|
|
381
|
+
Link: ({ children, href, target, rel }: LinkProps) => JSX_2.Element;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
385
|
+
|
|
386
|
+
export { }
|