conversion-ui-library 1.0.5
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/common/Table.d.ts +10 -0
- package/dist/common/Table.d.ts.map +1 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +6 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts.map +1 -0
- package/dist/components/Autocomplete/AutocompleteTable.d.ts +3 -0
- package/dist/components/Autocomplete/AutocompleteTable.d.ts.map +1 -0
- package/dist/components/Button/Button.stories.d.ts +7 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/components/Button/ButtonTable.d.ts +3 -0
- package/dist/components/Button/ButtonTable.d.ts.map +1 -0
- package/dist/components/Chart/chart-comparison.d.ts +4 -0
- package/dist/components/Chart/chart-comparison.d.ts.map +1 -0
- package/dist/components/Chart/chart-conversion.d.ts +3 -0
- package/dist/components/Chart/chart-conversion.d.ts.map +1 -0
- package/dist/components/Chart/chart-histogram.d.ts +4 -0
- package/dist/components/Chart/chart-histogram.d.ts.map +1 -0
- package/dist/components/Chart/chart.d.ts +3 -0
- package/dist/components/Chart/chart.d.ts.map +1 -0
- package/dist/components/Chart/chart.stories.d.ts +6 -0
- package/dist/components/Chart/chart.stories.d.ts.map +1 -0
- package/dist/components/Chart/chart.types.d.ts +44 -0
- package/dist/components/Chart/chart.types.d.ts.map +1 -0
- package/dist/components/Chip/Chip.stories.d.ts +8 -0
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -0
- package/dist/components/Chip/ChipTable.d.ts +2 -0
- package/dist/components/Chip/ChipTable.d.ts.map +1 -0
- package/dist/components/Colors/ColorTable.d.ts +11 -0
- package/dist/components/Colors/ColorTable.d.ts.map +1 -0
- package/dist/components/Colors/Colors.stories.d.ts +6 -0
- package/dist/components/Colors/Colors.stories.d.ts.map +1 -0
- package/dist/components/ConversionSidebar/ConversionSidebar.d.ts +47 -0
- package/dist/components/ConversionSidebar/ConversionSidebar.d.ts.map +1 -0
- package/dist/components/ConversionSidebar/ConversionSidebar.stories.d.ts +7 -0
- package/dist/components/ConversionSidebar/ConversionSidebar.stories.d.ts.map +1 -0
- package/dist/components/Elevation/Elevation.stories.d.ts +6 -0
- package/dist/components/Elevation/Elevation.stories.d.ts.map +1 -0
- package/dist/components/Filter/Filter.d.ts +15 -0
- package/dist/components/Filter/Filter.d.ts.map +1 -0
- package/dist/components/Filter/Filter.stories.d.ts +7 -0
- package/dist/components/Filter/Filter.stories.d.ts.map +1 -0
- package/dist/components/Heading/Heading.stories.d.ts +6 -0
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/components/Heading/HeadingTable.d.ts +3 -0
- package/dist/components/Heading/HeadingTable.d.ts.map +1 -0
- package/dist/components/Icons/icon.d.ts +12 -0
- package/dist/components/Icons/icon.d.ts.map +1 -0
- package/dist/components/Icons/icon.stories.d.ts +6 -0
- package/dist/components/Icons/icon.stories.d.ts.map +1 -0
- package/dist/components/Label/Label.stories.d.ts +7 -0
- package/dist/components/Label/Label.stories.d.ts.map +1 -0
- package/dist/components/Label/LabelTable.d.ts +3 -0
- package/dist/components/Label/LabelTable.d.ts.map +1 -0
- package/dist/components/Menu/Menu.d.ts +18 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/Menu/Menu.stories.d.ts +8 -0
- package/dist/components/Menu/Menu.stories.d.ts.map +1 -0
- package/dist/components/Paragraph/Paragraph.stories.d.ts +7 -0
- package/dist/components/Paragraph/Paragraph.stories.d.ts.map +1 -0
- package/dist/components/Paragraph/ParagraphTable.d.ts +3 -0
- package/dist/components/Paragraph/ParagraphTable.d.ts.map +1 -0
- package/dist/components/Popup/Popup.d.ts +14 -0
- package/dist/components/Popup/Popup.d.ts.map +1 -0
- package/dist/components/Popup/Popup.stories.d.ts +36 -0
- package/dist/components/Popup/Popup.stories.d.ts.map +1 -0
- package/dist/components/Progress/Progress.stories.d.ts +7 -0
- package/dist/components/Progress/Progress.stories.d.ts.map +1 -0
- package/dist/components/Progress/ProgressTable.d.ts +3 -0
- package/dist/components/Progress/ProgressTable.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +7 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +12 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts.map +1 -0
- package/dist/components/StatusBadge/StatusBadge.stories.d.ts +7 -0
- package/dist/components/StatusBadge/StatusBadge.stories.d.ts.map +1 -0
- package/dist/components/Switch/switch.stories.d.ts +7 -0
- package/dist/components/Switch/switch.stories.d.ts.map +1 -0
- package/dist/components/Table/table.stories.d.ts +26 -0
- package/dist/components/Table/table.stories.d.ts.map +1 -0
- package/dist/components/Table/tableComponent.d.ts +17 -0
- package/dist/components/Table/tableComponent.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +7 -0
- package/dist/components/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/components/Tabs/TabsLayout.d.ts +2 -0
- package/dist/components/Tabs/TabsLayout.d.ts.map +1 -0
- package/dist/components/Text/Text.stories.d.ts +7 -0
- package/dist/components/Text/Text.stories.d.ts.map +1 -0
- package/dist/components/Text/TextTable.d.ts +3 -0
- package/dist/components/Text/TextTable.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.stories.d.ts +6 -0
- package/dist/components/TextArea/TextArea.stories.d.ts.map +1 -0
- package/dist/components/TextArea/TextAreaTable.d.ts +3 -0
- package/dist/components/TextArea/TextAreaTable.d.ts.map +1 -0
- package/dist/components/TextField/TextField.stories.d.ts +6 -0
- package/dist/components/TextField/TextField.stories.d.ts.map +1 -0
- package/dist/components/TextField/TextFieldTable.d.ts +3 -0
- package/dist/components/TextField/TextFieldTable.d.ts.map +1 -0
- package/dist/components/Trend/Trend.stories.d.ts +24 -0
- package/dist/components/Trend/Trend.stories.d.ts.map +1 -0
- package/dist/components/Trend/TrendTable.d.ts +2 -0
- package/dist/components/Trend/TrendTable.d.ts.map +1 -0
- package/dist/components/Typography/Typography.stories.d.ts +6 -0
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -0
- package/dist/components/Typography/TypographyPage.d.ts +2 -0
- package/dist/components/Typography/TypographyPage.d.ts.map +1 -0
- package/dist/components/Typography/TypographyRow.d.ts +26 -0
- package/dist/components/Typography/TypographyRow.d.ts.map +1 -0
- package/dist/components/ui/Chip.d.ts +59 -0
- package/dist/components/ui/Chip.d.ts.map +1 -0
- package/dist/components/ui/Trend.d.ts +15 -0
- package/dist/components/ui/Trend.d.ts.map +1 -0
- package/dist/components/ui/autocomplete.d.ts +21 -0
- package/dist/components/ui/autocomplete.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +30 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +45 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/heading.d.ts +10 -0
- package/dist/components/ui/heading.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +12 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/menu.d.ts +28 -0
- package/dist/components/ui/menu.d.ts.map +1 -0
- package/dist/components/ui/paragraph.d.ts +10 -0
- package/dist/components/ui/paragraph.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +11 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/search-input.d.ts +18 -0
- package/dist/components/ui/search-input.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +9 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +18 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/text.d.ts +14 -0
- package/dist/components/ui/text.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +9 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textfield.d.ts +20 -0
- package/dist/components/ui/textfield.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/index.cjs.js +106 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +31890 -0
- package/dist/index.umd.js +107 -0
- package/dist/lib/Icons/icon-registry.d.ts +323 -0
- package/dist/lib/Icons/icon-registry.d.ts.map +1 -0
- package/dist/lib/use-mobile.d.ts +2 -0
- package/dist/lib/use-mobile.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/tokens/colors/colors.d.ts +137 -0
- package/dist/tokens/colors/colors.d.ts.map +1 -0
- package/dist/tokens/colors/colors.runtime.d.ts +137 -0
- package/dist/tokens/colors/colors.runtime.d.ts.map +1 -0
- package/dist/tokens/elevation/elevation.d.ts +9 -0
- package/dist/tokens/elevation/elevation.d.ts.map +1 -0
- package/dist/tokens/typography/typography.d.ts +145 -0
- package/dist/tokens/typography/typography.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +115 -0
package/README.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Conversion UI Library
|
|
2
|
+
|
|
3
|
+
## Features
|
|
4
|
+
|
|
5
|
+
- 🚀 **React Components** - Modern, reusable UI components built with React and hooks
|
|
6
|
+
- 🎨 **Tailwind + shadcn/ui** - Fully styled with Tailwind utility classes and Radix primitives
|
|
7
|
+
- 📚 **Storybook Integration** - Interactive component documentation
|
|
8
|
+
- 🧩 **Modular Components** - Composable and reusable across multiple projects
|
|
9
|
+
- ⚡ **Fast Builds** - Optimized library build pipeline
|
|
10
|
+
- 🛠️ **TypeScript Support** - Strong typing and autocompletion
|
|
11
|
+
- 🎯 **Theming Ready** - Easily customize colors, typography, and spacing
|
|
12
|
+
|
|
13
|
+
## Quick Start
|
|
14
|
+
|
|
15
|
+
### Prerequisites
|
|
16
|
+
|
|
17
|
+
- Node.js (v18 or higher)
|
|
18
|
+
- Yarn (v1 or Berry)
|
|
19
|
+
- Consumer app: React **^19.2.0** and React DOM **^19.2.0** (peer dependencies)
|
|
20
|
+
|
|
21
|
+
### Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Clone the repository
|
|
25
|
+
git clone <repository-url>
|
|
26
|
+
cd conversion-ui-library
|
|
27
|
+
|
|
28
|
+
# Install dependencies
|
|
29
|
+
yarn install
|
|
30
|
+
|
|
31
|
+
# Run Storybook to view and develop components
|
|
32
|
+
yarn storybook
|
|
33
|
+
|
|
34
|
+
# Build the library before using it in another project
|
|
35
|
+
yarn build
|
|
36
|
+
|
|
37
|
+
# Create a local package to use in another project
|
|
38
|
+
yarn local:pack
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## Using the Library in Another Project
|
|
43
|
+
# 1. Install the Library
|
|
44
|
+
# From the client project root:
|
|
45
|
+
```bash
|
|
46
|
+
# Using yarn pack to test the local library in the consumer project without publishing
|
|
47
|
+
yarn add /absolute/path/to/conversion-ui-library/artifacts/conversion-ui-library-<version>.tgz
|
|
48
|
+
# Example:
|
|
49
|
+
yarn add /home/developer/Desktop/codebase/conversion-ui-library/artifacts/conversion-ui-library-1.0.0.tgz
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
# 2. Import Global Styles (Required)
|
|
53
|
+
## In your client app entry file (main.tsx / index.tsx):
|
|
54
|
+
```bash
|
|
55
|
+
import "conversion-ui-library/styles.css";
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This is required because the components rely on Tailwind utility classes (for example `gap-1.5`) and design tokens (for example `bg-soft`, `text-strong`) that are shipped in that stylesheet.
|
|
59
|
+
## Recommended Workflow
|
|
60
|
+
```
|
|
61
|
+
Library Development:
|
|
62
|
+
├── yarn storybook # Run Storybook to view components
|
|
63
|
+
├── update components # Make component changes
|
|
64
|
+
├── yarn build # Build the library
|
|
65
|
+
├── yarn pack # Pack for local testing
|
|
66
|
+
└── test in client app # Test integration in your app
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
# Project Structure
|
|
70
|
+
```
|
|
71
|
+
conversion-ui-library/
|
|
72
|
+
├── src/
|
|
73
|
+
│ ├── components/ # Reusable UI components
|
|
74
|
+
│ ├── styles/ # Global and theme styles
|
|
75
|
+
│ ├── utils/ # Utility functions
|
|
76
|
+
│ ├── hooks/ # Custom React hooks
|
|
77
|
+
│ └── index.ts # Library entry point
|
|
78
|
+
├── .storybook/ # Storybook config
|
|
79
|
+
├── package.json
|
|
80
|
+
├── tsconfig.json
|
|
81
|
+
└── README.md
|
|
82
|
+
```
|
|
83
|
+
## Example Component Usage
|
|
84
|
+
```bash
|
|
85
|
+
import { Button } from "conversion-ui-library";
|
|
86
|
+
|
|
87
|
+
export default function App() {
|
|
88
|
+
return <Button variant="primary">Click Me</Button>;
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Dependencies
|
|
93
|
+
|
|
94
|
+
React (**^19.2.0**, peer dependency)
|
|
95
|
+
Tailwind CSS
|
|
96
|
+
shadcn/ui
|
|
97
|
+
Radix UI
|
|
98
|
+
Storybook
|
|
99
|
+
TypeScript
|
|
100
|
+
|
|
101
|
+
## Troubleshooting
|
|
102
|
+
|
|
103
|
+
### Invalid hook call (e.g. `Cannot read properties of null (reading 'useState')`)
|
|
104
|
+
|
|
105
|
+
This almost always means the app ended up with **more than one copy of React** (or mismatched `react` / `react-dom` versions).
|
|
106
|
+
|
|
107
|
+
- **Ensure React + React DOM versions match in the consuming app** (React 19 requires React DOM 19).
|
|
108
|
+
- **Check for duplicate React installs**:
|
|
109
|
+
- `npm ls react react-dom`
|
|
110
|
+
- `yarn why react && yarn why react-dom`
|
|
111
|
+
- **If you’re using Vite**, add dedupe in the consuming app’s `vite.config.ts`:
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
export default defineConfig({
|
|
115
|
+
resolve: {
|
|
116
|
+
dedupe: ["react", "react-dom"],
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
- **If you’re consuming the library locally**, avoid linking the repo folder directly (it can accidentally resolve `react` from this library’s own `node_modules`).
|
|
122
|
+
- Prefer `yarn pack` and install the generated `.tgz`, or publish/install from npm.
|
|
123
|
+
|
|
124
|
+
## Scripts
|
|
125
|
+
```bash
|
|
126
|
+
yarn storybook # Run Storybook
|
|
127
|
+
yarn build # Build the library
|
|
128
|
+
yarn local:pack # Build and pack for local usage (creates .tgz in artifacts/)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Publishing to npm
|
|
132
|
+
|
|
133
|
+
The library is **automatically published to npm** when the version in `package.json` changes on the `main` branch.
|
|
134
|
+
|
|
135
|
+
### Automatic Publishing Workflow
|
|
136
|
+
|
|
137
|
+
1. **Update the version** in `package.json`:
|
|
138
|
+
```bash
|
|
139
|
+
# Bump version (patch, minor, or major)
|
|
140
|
+
npm version patch # 1.0.0 -> 1.0.1
|
|
141
|
+
# or
|
|
142
|
+
npm version minor # 1.0.0 -> 1.1.0
|
|
143
|
+
# or
|
|
144
|
+
npm version major # 1.0.0 -> 2.0.0
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
2. **Commit and push to main**:
|
|
148
|
+
```bash
|
|
149
|
+
git add package.json
|
|
150
|
+
git commit -m "Bump version to 1.0.1"
|
|
151
|
+
git push origin main
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
3. **GitHub Actions automatically**:
|
|
155
|
+
- ✅ Detects the version change
|
|
156
|
+
- ✅ Builds the package
|
|
157
|
+
- ✅ Creates a git tag (e.g., `v1.0.1`)
|
|
158
|
+
- ✅ Publishes to npm
|
|
159
|
+
- ✅ Creates a GitHub release
|
|
160
|
+
|
|
161
|
+
**If the version hasn't changed**, the workflow skips publishing (no accidental publishes!).
|
|
162
|
+
|
|
163
|
+
### Manual Publishing (Optional)
|
|
164
|
+
|
|
165
|
+
You can also manually trigger publishing:
|
|
166
|
+
- Go to GitHub → Actions → "Build, Publish and Deploy"
|
|
167
|
+
- Click "Run workflow"
|
|
168
|
+
- Enable "Publish to npm"
|
|
169
|
+
- Click "Run workflow"
|
|
170
|
+
|
|
171
|
+
This will publish even if the version hasn't changed.
|
|
172
|
+
|
|
173
|
+
**Note:** Make sure the `NPM_TOKEN` secret is configured in your GitHub repository settings.
|
|
174
|
+
|
|
175
|
+
## License
|
|
176
|
+
|
|
177
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
|
178
|
+
|
|
179
|
+
## Author
|
|
180
|
+
|
|
181
|
+
Sharad Wankhade ([@sharadwankhade](https://github.com/sharad-conversion))
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface TableRow {
|
|
2
|
+
component: React.ReactNode;
|
|
3
|
+
code: string;
|
|
4
|
+
}
|
|
5
|
+
interface ComponentCodeTableProps {
|
|
6
|
+
rows: TableRow[];
|
|
7
|
+
}
|
|
8
|
+
export declare function ComponentTable({ rows }: ComponentCodeTableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/common/Table.tsx"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IAChB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,2CAiC/D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { default as AutocompleteTable } from './AutocompleteTable';
|
|
3
|
+
declare const meta: Meta<typeof AutocompleteTable>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare function AutocompleteDocs(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Autocomplete.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAMxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,wBAAgB,gBAAgB,4CAS/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutocompleteTable.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/AutocompleteTable.tsx"],"names":[],"mappings":"AAmBA,iBAAS,oBAAoB,4CAoJ5B;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').ForwardRefExoticComponent<import('../ui/button').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function ButtonDocs(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":";;;;AAGA,wBAGE;AACF,wBAAgB,UAAU,4CASzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonTable.d.ts","sourceRoot":"","sources":["../../../src/components/Button/ButtonTable.tsx"],"names":[],"mappings":"AA+OA,iBAAS,WAAW,4CAEnB;AACD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComparisonProps, EmptyStateProps } from './chart.types';
|
|
2
|
+
export default function ComparisonChart({ title, percentage, timeframe, estimatedOrders, valueType, scale, data, }: ComparisonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function EmptyState({ title }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=chart-comparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-comparison.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart-comparison.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,eAAe,EACf,eAAe,EAChB,MAAM,eAAe,CAAC;AAmHvB,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,UAAU,EACV,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAU,EACV,IAAS,GACV,EAAE,eAAe,2CAqGjB;AAID,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,eAAe,2CA0BpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-conversion.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart-conversion.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAkBhD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,eAAe,2CA6F7D"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HistogramProps } from './chart.types';
|
|
2
|
+
export default function HistogramChart({ data }: HistogramProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function Branding(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=chart-histogram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart-histogram.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart-histogram.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAU/C,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,2CAsE9D;AAqCD,wBAAgB,QAAQ,4CAiBvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,kDActC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAG5B,CAAC;AACF,eAAe,IAAI,CAAC;AAkBpB,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,KAAK,CAmX5C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type ChartVariant = "histogram" | "comparison" | "conversion";
|
|
2
|
+
type BaseChartProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
estimatedOrders?: number;
|
|
5
|
+
};
|
|
6
|
+
export type ChartValueType = "$" | "#" | "%" | "empty" | "cogs";
|
|
7
|
+
export type EmptyStateProps = {
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export type ComparisonDataItem = {
|
|
11
|
+
label: string;
|
|
12
|
+
value: number;
|
|
13
|
+
displayValue?: string | number;
|
|
14
|
+
};
|
|
15
|
+
export type HistogramProps = BaseChartProps & {
|
|
16
|
+
variant: "histogram";
|
|
17
|
+
data: {
|
|
18
|
+
label: string;
|
|
19
|
+
control: number;
|
|
20
|
+
variation: number;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
export type ComparisonProps = BaseChartProps & {
|
|
24
|
+
variant: "comparison";
|
|
25
|
+
percentage?: string;
|
|
26
|
+
timeframe?: string;
|
|
27
|
+
valueType?: ChartValueType;
|
|
28
|
+
scale?: string[];
|
|
29
|
+
data: ComparisonDataItem[];
|
|
30
|
+
};
|
|
31
|
+
export type ConversionProps = BaseChartProps & {
|
|
32
|
+
variant: "conversion";
|
|
33
|
+
percentage?: string;
|
|
34
|
+
timeframe?: string;
|
|
35
|
+
valueType?: ChartValueType;
|
|
36
|
+
scale?: string[];
|
|
37
|
+
data: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: number;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
export type ChartProps = HistogramProps | ComparisonProps | ConversionProps;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=chart.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.types.d.ts","sourceRoot":"","sources":["../../../src/components/Chart/chart.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC;AAErE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,MAAM,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;;;;;AAGlC,wBAGE;AAEF,wBAAgB,QAAQ,4CASvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChipTable.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/ChipTable.tsx"],"names":[],"mappings":"AAoEA,MAAM,CAAC,OAAO,UAAU,SAAS,4CAEhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type ColorItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
type Props = {
|
|
6
|
+
title: string;
|
|
7
|
+
items: ColorItem[];
|
|
8
|
+
};
|
|
9
|
+
export declare function ColorPaletteTable({ title, items }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ColorTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorTable.d.ts","sourceRoot":"","sources":["../../../src/components/Colors/ColorTable.tsx"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AAuBF,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,2CAsExD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Colors.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Colors/Colors.stories.tsx"],"names":[],"mappings":";;;AAGA,wBAAiD;AAEjD,eAAO,MAAM,MAAM,+CA6FlB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IconName } from '../../lib/Icons/icon-registry';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type SidebarItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
icon: React.ElementType | IconName;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
onclick?: () => void;
|
|
10
|
+
items?: {
|
|
11
|
+
title: string;
|
|
12
|
+
url: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
export type SidebarGroupData = {
|
|
16
|
+
label?: string;
|
|
17
|
+
items: SidebarItem[];
|
|
18
|
+
};
|
|
19
|
+
export type SidebarFooterItem = {
|
|
20
|
+
title: string;
|
|
21
|
+
icon: IconName;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
onclick?: () => void;
|
|
24
|
+
};
|
|
25
|
+
interface ConversionSidebarProps {
|
|
26
|
+
type?: "default" | "setting";
|
|
27
|
+
user?: {
|
|
28
|
+
name: string;
|
|
29
|
+
email: string;
|
|
30
|
+
avatar?: string;
|
|
31
|
+
};
|
|
32
|
+
settingOptions?: SidebarGroupData[];
|
|
33
|
+
defaultOptions?: SidebarGroupData[];
|
|
34
|
+
settingFooterOptions?: SidebarFooterItem[];
|
|
35
|
+
defaultFooterOptions?: SidebarFooterItem[];
|
|
36
|
+
dropdownOptions?: {
|
|
37
|
+
label: string;
|
|
38
|
+
icon: IconName;
|
|
39
|
+
onClick?: () => void;
|
|
40
|
+
onclick?: () => void;
|
|
41
|
+
}[];
|
|
42
|
+
codesniper?: string;
|
|
43
|
+
supperhuman?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare function ConversionSidebar({ type, user, defaultOptions, settingOptions, defaultFooterOptions, settingFooterOptions, dropdownOptions, codesniper, supperhuman, }: ConversionSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=ConversionSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversionSidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ConversionSidebar/ConversionSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+B/B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIrD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC,WAAW,GAAG,QAAQ,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3C,oBAAoB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3C,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,EAAE,CAAC;IACJ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA8HD,wBAAgB,iBAAiB,CAAC,EAChC,IAAgB,EAChB,IAIC,EACD,cAAqC,EACrC,cAAqC,EACrC,oBAAyB,EACzB,oBAAyB,EACzB,eAAoB,EACpB,UAAU,EACV,WAAW,GACZ,EAAE,sBAAsB,2CAqBxB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ConversionSidebar } from './ConversionSidebar';
|
|
3
|
+
declare const meta: Meta<typeof ConversionSidebar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ConversionSidebar>;
|
|
6
|
+
export declare const Sidebar: Story;
|
|
7
|
+
//# sourceMappingURL=ConversionSidebar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversionSidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ConversionSidebar/ConversionSidebar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAMxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAqKhD,eAAO,MAAM,OAAO,EAAE,KAmHrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Elevation.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Elevation/Elevation.stories.tsx"],"names":[],"mappings":";;;AAGA,wBAAoD;AAEpD,eAAO,MAAM,SAAS,+CAiCrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
type FilterSelectProps = {
|
|
6
|
+
options: Option[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
};
|
|
13
|
+
export declare const FilterSelect: ({ options, placeholder, value, onValueChange, className, size, }: FilterSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=Filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../src/components/Filter/Filter.tsx"],"names":[],"mappings":"AAWA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC;AAQF,eAAO,MAAM,YAAY,GAAI,kEAO1B,iBAAiB,4CAuCnB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { FilterSelect } from './Filter';
|
|
3
|
+
declare const meta: Meta<typeof FilterSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FilterSelect>;
|
|
6
|
+
export declare const Filter: Story;
|
|
7
|
+
//# sourceMappingURL=Filter.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Filter.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Filter/Filter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAGnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAC3C,eAAO,MAAM,MAAM,EAAE,KA6BpB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { Heading } from '../ui/heading';
|
|
3
|
+
declare const meta: Meta<typeof Heading>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare function HeadingDocs(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Heading.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAU9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,wBAAgB,WAAW,4CAS1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingTable.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/HeadingTable.tsx"],"names":[],"mappings":"AAmCA,iBAAS,YAAY,4CAEpB;AACD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IconName } from '../../lib/Icons/icon-registry';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type IconColor = "default" | "primary" | "secondary" | "muted" | "danger";
|
|
5
|
+
export interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
6
|
+
name: IconName;
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
color?: IconColor;
|
|
9
|
+
}
|
|
10
|
+
export declare const Icon: ({ name, size, color, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxD,KAAK,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1E,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC9D,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAwBD,eAAO,MAAM,IAAI,GAAI,4CAMlB,SAAS,mDAYX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/icon.stories.tsx"],"names":[],"mappings":";;;AAOA,wBAEE;AAEF,eAAO,MAAM,QAAQ,+CAsDpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Label } from '../ui/label';
|
|
3
|
+
declare const meta: Meta<typeof Label>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Label>;
|
|
6
|
+
export declare const HeadingDocs: Story;
|
|
7
|
+
//# sourceMappingURL=Label.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAU5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelTable.d.ts","sourceRoot":"","sources":["../../../src/components/Label/LabelTable.tsx"],"names":[],"mappings":"AAyBA,iBAAS,UAAU,4CAElB;AACD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IconName } from '../../lib/Icons/icon-registry';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface MenuItem {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: IconName;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuProps {
|
|
11
|
+
trigger: React.ReactNode;
|
|
12
|
+
items: MenuItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
contentClassName?: string;
|
|
15
|
+
align?: "right" | "center" | "left";
|
|
16
|
+
}
|
|
17
|
+
export declare function Menu({ trigger, items, className, contentClassName, align, }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI1D,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvC;AAED,wBAAgB,IAAI,CAAC,EACjB,OAAO,EACP,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,KAAgB,GACnB,EAAE,SAAS,2CAoCX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,QAAQ,CAAC;;;;;AAI7C,wBAGE;AAiBF,eAAO,MAAM,QAAQ,+CA0EpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Paragraph } from '../ui/paragraph';
|
|
3
|
+
declare const meta: Meta<typeof Paragraph>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Paragraph>;
|
|
6
|
+
export declare const ParagraphDocs: Story;
|
|
7
|
+
//# sourceMappingURL=Paragraph.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Paragraph/Paragraph.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAUhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC"}
|