@grantcodes/ui 1.0.0 → 2.0.0-beta.2
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/CHANGELOG.md +20 -0
- package/dist/components/avatar/avatar.component.js +3 -0
- package/dist/components/avatar/avatar.js +1 -0
- package/dist/components/avatar/avatar.react.js +1 -0
- package/dist/components/avatar/avatar.scss.js +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/button/button.component.js +5 -0
- package/dist/components/button/button.js +1 -0
- package/dist/components/button/button.react.js +1 -0
- package/dist/components/button/button.scss.js +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/button-group.component.js +5 -0
- package/dist/components/button-group/button-group.js +1 -0
- package/dist/components/button-group/button-group.react.js +1 -0
- package/dist/components/button-group/button-group.scss.js +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card/card.component.js +8 -0
- package/dist/components/card/card.js +1 -0
- package/dist/components/card/card.react.js +1 -0
- package/dist/components/card/card.scss.js +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/code-preview/code-preview.component.js +1 -0
- package/dist/components/code-preview/code-preview.js +1 -0
- package/dist/components/code-preview/code-preview.react.js +1 -0
- package/dist/components/code-preview/code-preview.scss.js +1 -0
- package/dist/components/code-preview/index.js +1 -0
- package/dist/components/container/container.component.js +5 -0
- package/dist/components/container/container.js +1 -0
- package/dist/components/container/container.react.js +1 -0
- package/dist/components/container/container.scss.js +1 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/dialog/dialog.component.js +23 -0
- package/dist/components/dialog/dialog.js +1 -0
- package/dist/components/dialog/dialog.react.js +1 -0
- package/dist/components/dialog/dialog.scss.js +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dropzone/dropzone.component.js +11 -0
- package/dist/components/dropzone/dropzone.js +1 -0
- package/dist/components/dropzone/dropzone.react.js +1 -0
- package/dist/components/dropzone/dropzone.scss.js +1 -0
- package/dist/components/dropzone/index.js +1 -0
- package/dist/components/form-field/form-field.component.js +22 -0
- package/dist/components/form-field/form-field.js +1 -0
- package/dist/components/form-field/form-field.react.js +1 -0
- package/dist/components/form-field/form-field.scss.js +1 -0
- package/dist/components/form-field/index.js +1 -0
- package/dist/components/gallery/gallery-image.component.js +14 -0
- package/dist/components/gallery/gallery-image.js +1 -0
- package/dist/components/gallery/gallery.component.js +5 -0
- package/dist/components/gallery/gallery.js +1 -0
- package/dist/components/gallery/gallery.react.js +1 -0
- package/dist/components/gallery/gallery.scss.js +1 -0
- package/dist/components/gallery/index.js +1 -0
- package/dist/components/icon/icon.component.js +1 -0
- package/dist/components/icon/icon.js +1 -0
- package/dist/components/icon/icon.react.js +1 -0
- package/dist/components/icon/icon.scss.js +1 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/loading/index.js +1 -0
- package/dist/components/loading/loading.component.js +5 -0
- package/dist/components/loading/loading.js +1 -0
- package/dist/components/loading/loading.react.js +1 -0
- package/dist/components/loading/loading.scss.js +1 -0
- package/dist/components/notice/index.js +1 -0
- package/dist/components/notice/notice.component.js +17 -0
- package/dist/components/notice/notice.js +1 -0
- package/dist/components/notice/notice.react.js +1 -0
- package/dist/components/notice/notice.scss.js +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/pagination.component.js +13 -0
- package/dist/components/pagination/pagination.js +1 -0
- package/dist/components/pagination/pagination.react.js +1 -0
- package/dist/components/pagination/pagination.scss.js +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tab.component.js +1 -0
- package/dist/components/tabs/tab.js +1 -0
- package/dist/components/tabs/tabs-item.component.js +1 -0
- package/dist/components/tabs/tabs-panel.component.js +10 -0
- package/dist/components/tabs/tabs-panel.js +1 -0
- package/dist/components/tabs/tabs-tab.component.js +12 -0
- package/dist/components/tabs/tabs-tab.js +1 -0
- package/dist/components/tabs/tabs.component.js +28 -0
- package/dist/components/tabs/tabs.js +1 -0
- package/dist/components/tabs/tabs.react.js +1 -0
- package/dist/components/tabs/tabs.scss.js +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/tooltip.component.js +10 -0
- package/dist/components/tooltip/tooltip.js +1 -0
- package/dist/components/tooltip/tooltip.react.js +1 -0
- package/dist/components/tooltip/tooltip.scss.js +1 -0
- package/dist/css/base.css +1 -0
- package/dist/css/themes/grantcodes.css +1 -0
- package/dist/fonts/greycliff-bold-oblique.woff +0 -0
- package/dist/fonts/greycliff-bold-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-bold.woff +0 -0
- package/dist/fonts/greycliff-bold.woff2 +0 -0
- package/dist/fonts/greycliff-demi-bold-oblique.woff +0 -0
- package/dist/fonts/greycliff-demi-bold-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-demi-bold.woff +0 -0
- package/dist/fonts/greycliff-demi-bold.woff2 +0 -0
- package/dist/fonts/greycliff-extra-bold-oblique.woff +0 -0
- package/dist/fonts/greycliff-extra-bold-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-extra-bold.woff +0 -0
- package/dist/fonts/greycliff-extra-bold.woff2 +0 -0
- package/dist/fonts/greycliff-extra-light-oblique.woff +0 -0
- package/dist/fonts/greycliff-extra-light-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-extra-light.woff +0 -0
- package/dist/fonts/greycliff-extra-light.woff2 +0 -0
- package/dist/fonts/greycliff-heavy-oblique.woff +0 -0
- package/dist/fonts/greycliff-heavy-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-heavy.woff +0 -0
- package/dist/fonts/greycliff-heavy.woff2 +0 -0
- package/dist/fonts/greycliff-light-oblique.woff +0 -0
- package/dist/fonts/greycliff-light-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-light.woff +0 -0
- package/dist/fonts/greycliff-light.woff2 +0 -0
- package/dist/fonts/greycliff-medium-oblique.woff +0 -0
- package/dist/fonts/greycliff-medium-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-medium.woff +0 -0
- package/dist/fonts/greycliff-medium.woff2 +0 -0
- package/dist/fonts/greycliff-regular-oblique.woff +0 -0
- package/dist/fonts/greycliff-regular-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-regular.woff +0 -0
- package/dist/fonts/greycliff-regular.woff2 +0 -0
- package/dist/fonts/greycliff-thin-oblique.woff +0 -0
- package/dist/fonts/greycliff-thin-oblique.woff2 +0 -0
- package/dist/fonts/greycliff-thin.woff +0 -0
- package/dist/fonts/greycliff-thin.woff2 +0 -0
- package/dist/icons.js +1 -0
- package/dist/lib/generate-id.js +1 -0
- package/dist/main.js +1 -88328
- package/dist/react.js +1 -0
- package/package.json +83 -87
- package/dist/Provider/Provider.d.ts +0 -11
- package/dist/Provider/Themes/ThemeDefault.d.ts +0 -9
- package/dist/Provider/Themes/ThemeTodomap.d.ts +0 -8
- package/dist/Provider/Themes/index.d.ts +0 -5
- package/dist/Provider/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Button/Button.types.d.ts +0 -8
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -8
- package/dist/components/ButtonGroup/index.d.ts +0 -1
- package/dist/components/Card/Card.d.ts +0 -3
- package/dist/components/Card/Card.types.d.ts +0 -8
- package/dist/components/Card/CardActions.d.ts +0 -3
- package/dist/components/Card/CardContent.d.ts +0 -3
- package/dist/components/Card/CardMeta.d.ts +0 -7
- package/dist/components/Card/CardMetaItem.d.ts +0 -7
- package/dist/components/Card/index.d.ts +0 -3
- package/dist/components/CodePreview/CodePreview.d.ts +0 -3
- package/dist/components/CodePreview/CodePreview.types.d.ts +0 -6
- package/dist/components/CodePreview/index.d.ts +0 -1
- package/dist/components/Container/Container.d.ts +0 -3
- package/dist/components/Container/Container.types.d.ts +0 -8
- package/dist/components/Container/index.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -10
- package/dist/components/Dialog/Dialog.types.d.ts +0 -8
- package/dist/components/Dialog/DialogActions.d.ts +0 -3
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/Dropzone/Dropzone.d.ts +0 -3
- package/dist/components/Dropzone/Dropzone.types.d.ts +0 -9
- package/dist/components/Dropzone/index.d.ts +0 -1
- package/dist/components/Gallery/Gallery.d.ts +0 -4
- package/dist/components/Gallery/Gallery.types.d.ts +0 -29
- package/dist/components/Gallery/GalleryThumbnail.d.ts +0 -3
- package/dist/components/Gallery/index.d.ts +0 -1
- package/dist/components/Gallery/lib/normalize-image.d.ts +0 -3
- package/dist/components/Icon/Icon.d.ts +0 -9
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Input/Checkbox.d.ts +0 -3
- package/dist/components/Input/Input.d.ts +0 -3
- package/dist/components/Input/Input.types.d.ts +0 -16
- package/dist/components/Input/Radio.d.ts +0 -3
- package/dist/components/Input/Select.d.ts +0 -3
- package/dist/components/Input/TextArea.d.ts +0 -3
- package/dist/components/Input/index.d.ts +0 -5
- package/dist/components/Label/Label.d.ts +0 -6
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Link/Link.d.ts +0 -6
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/Loading/Loading.d.ts +0 -3
- package/dist/components/Loading/Loading.types.d.ts +0 -3
- package/dist/components/Loading/index.d.ts +0 -1
- package/dist/components/Notice/Notice.d.ts +0 -11
- package/dist/components/Notice/index.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -3
- package/dist/components/Pagination/Pagination.types.d.ts +0 -6
- package/dist/components/Pagination/index.d.ts +0 -1
- package/dist/components/Tabs/Tab.d.ts +0 -3
- package/dist/components/Tabs/Tabs.d.ts +0 -3
- package/dist/components/Tabs/Tabs.types.d.ts +0 -9
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/lib/addClassNameToPrimitiveHOC.d.ts +0 -3
- package/dist/main.cjs +0 -88377
- package/dist/main.cjs.map +0 -1
- package/dist/main.d.ts +0 -17
- package/dist/main.js.map +0 -1
package/dist/react.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Avatar as t}from"./components/avatar/avatar.react.js";import{Button as p}from"./components/button/button.react.js";import{ButtonGroup as f}from"./components/button-group/button-group.react.js";import{Card as a}from"./components/card/card.react.js";import{Container as n}from"./components/container/container.react.js";import{CodePreview as d}from"./components/code-preview/code-preview.react.js";import{Dialog as u}from"./components/dialog/dialog.react.js";import{Dropzone as c}from"./components/dropzone/dropzone.react.js";import{FormField as B}from"./components/form-field/form-field.react.js";import{Gallery as F}from"./components/gallery/gallery.react.js";import{Icon as P}from"./components/icon/icon.react.js";import{Loading as b}from"./components/loading/loading.react.js";import{Notice as w}from"./components/notice/notice.react.js";import{Pagination as z}from"./components/pagination/pagination.react.js";import{Tabs as I}from"./components/tabs/tabs.react.js";import{Tooltip as N}from"./components/tooltip/tooltip.react.js";export{t as Avatar,p as Button,f as ButtonGroup,a as Card,d as CodePreview,n as Container,u as Dialog,c as Dropzone,B as FormField,F as Gallery,P as Icon,b as Loading,w as Notice,z as Pagination,I as Tabs,N as Tooltip};
|
package/package.json
CHANGED
|
@@ -1,89 +1,85 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"src/": "tmp/tests/"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
2
|
+
"name": "@grantcodes/ui",
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.cjs",
|
|
7
|
+
"module": "dist/main.js",
|
|
8
|
+
"types": "dist/main.d.ts",
|
|
9
|
+
"author": "grantcodes",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/main.d.ts",
|
|
13
|
+
"import": "./dist/main.js",
|
|
14
|
+
"require": "./dist/main.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react.d.ts",
|
|
18
|
+
"import": "./dist/react.js",
|
|
19
|
+
"require": "./dist/react.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./styles/base.css": {
|
|
22
|
+
"import": "./dist/css/base.css",
|
|
23
|
+
"require": "./dist/css/base.css"
|
|
24
|
+
},
|
|
25
|
+
"./styles/themes/grantcodes.css": {
|
|
26
|
+
"import": "./dist/css/themes/grantcodes.css",
|
|
27
|
+
"require": "./dist/css/themes/grantcodes.css"
|
|
28
|
+
},
|
|
29
|
+
"./components/*": {
|
|
30
|
+
"import": "./dist/components/*",
|
|
31
|
+
"require": "./dist/components/*"
|
|
32
|
+
},
|
|
33
|
+
"./fonts/*": "./dist/fonts/*"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build",
|
|
37
|
+
"watch": "rollup -c -w",
|
|
38
|
+
"generate": "plop",
|
|
39
|
+
"fix": "run-s fix:lint",
|
|
40
|
+
"fix:lint": "npx @biomejs/biome format --write src",
|
|
41
|
+
"test": "run-s test:lint test:unit",
|
|
42
|
+
"test:lint": "npx @biomejs/biome lint src",
|
|
43
|
+
"test:unit": "ava",
|
|
44
|
+
"storybook": "storybook dev -p 6006",
|
|
45
|
+
"build-storybook": "storybook build"
|
|
46
|
+
},
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@grantcodes/style-dictionary": "^1.1.0",
|
|
50
|
+
"@lit/react": "^1.0.6",
|
|
51
|
+
"classnames": "^2.5.1",
|
|
52
|
+
"lit": "^3.2.1",
|
|
53
|
+
"react-dom": "^18.3.1",
|
|
54
|
+
"sanitize.css": "^13.0.0",
|
|
55
|
+
"shiki": "^1.22.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@biomejs/biome": "1.9.2",
|
|
59
|
+
"@ava/typescript": "^5.0.0",
|
|
60
|
+
"@babel/core": "^7.25.8",
|
|
61
|
+
"@grantcodes/commit": "^1.0.7",
|
|
62
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
63
|
+
"@storybook/web-components": "^8.3.6",
|
|
64
|
+
"@storybook/web-components-vite": "^8.3.6",
|
|
65
|
+
"ava": "^6.1.3",
|
|
66
|
+
"lucide-static": "^0.453.0",
|
|
67
|
+
"npm-run-all": "^4.1.5",
|
|
68
|
+
"plop": "^4.0.1",
|
|
69
|
+
"rollup": "^4.24.0",
|
|
70
|
+
"sass": "^1.80.3",
|
|
71
|
+
"storybook": "^8.3.6",
|
|
72
|
+
"typescript": "^5.6.3",
|
|
73
|
+
"vite": "^5.4.9"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {},
|
|
76
|
+
"files": ["dist/**/*", "CHANGELOG.md", "README.md", "LICENCE"],
|
|
77
|
+
"ava": {
|
|
78
|
+
"typescript": {
|
|
79
|
+
"compile": false,
|
|
80
|
+
"rewritePaths": {
|
|
81
|
+
"src/": "tmp/tests/"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
89
85
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './BaseStyles.scss';
|
|
3
|
-
export interface ProviderProps {
|
|
4
|
-
theme: 'default';
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const Context: React.Context<{
|
|
8
|
-
theme: {};
|
|
9
|
-
}>;
|
|
10
|
-
declare const Provider: React.FC<any>;
|
|
11
|
-
export { Provider };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@grantcodes/style-dictionary/default/css';
|
|
3
|
-
import '@grantcodes/style-dictionary/assets/fonts/greycliff';
|
|
4
|
-
export interface ThemeDefaultProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
setThemeData: Function;
|
|
7
|
-
}
|
|
8
|
-
declare const ThemeDefault: React.FC<any>;
|
|
9
|
-
export { ThemeDefault };
|
package/dist/Provider/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Provider';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'outline' | 'destructive' | 'inline';
|
|
3
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: ButtonVariant;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ButtonProps } from '../Button';
|
|
3
|
-
export interface ButtonGroupProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
-
className?: string;
|
|
5
|
-
children: React.ReactElement<ButtonProps>[];
|
|
6
|
-
}
|
|
7
|
-
declare const ButtonGroup: React.FC<any>;
|
|
8
|
-
export { ButtonGroup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ButtonGroup';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ButtonGroupProps } from '../ButtonGroup';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface CardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
asChild?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface CardActionsProps extends ButtonGroupProps {
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CardMetaItemProps } from './CardMetaItem';
|
|
3
|
-
export interface CardMetaProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement> {
|
|
4
|
-
children: React.ReactElement<CardMetaItemProps>[];
|
|
5
|
-
}
|
|
6
|
-
declare const CardMeta: React.FC<any>;
|
|
7
|
-
export { CardMeta };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface CardMetaItemProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
|
-
title: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const CardMetaItem: React.FC<any>;
|
|
7
|
-
export { CardMetaItem };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CodePreview';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Container';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
-
import { DialogContentProps } from './Dialog.types';
|
|
4
|
-
declare function Content({ children: allChildren, ...props }: DialogContentProps): JSX.Element;
|
|
5
|
-
export declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
6
|
-
export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export declare const DialogContent: typeof Content;
|
|
8
|
-
export declare const DialogTitle: React.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
-
export declare const DialogDescription: React.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DialogProps as DialogPrimitiveProps, DialogContentProps as DialogPrimitiveContentProps } from '@radix-ui/react-dialog';
|
|
2
|
-
import { CardActionsProps } from '../Card/Card.types';
|
|
3
|
-
export interface DialogProps extends DialogPrimitiveProps {
|
|
4
|
-
}
|
|
5
|
-
export interface DialogContentProps extends DialogPrimitiveContentProps {
|
|
6
|
-
}
|
|
7
|
-
export interface DialogActionsProps extends CardActionsProps {
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Dropzone';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type GalleryVariation = 'square' | 'custom';
|
|
3
|
-
export interface GalleryThumbnail {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
src: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GalleryImage {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
src: string;
|
|
12
|
-
alt: string;
|
|
13
|
-
caption?: string;
|
|
14
|
-
thumbnail?: GalleryThumbnail;
|
|
15
|
-
}
|
|
16
|
-
export interface GalleryProps {
|
|
17
|
-
className: string;
|
|
18
|
-
images: GalleryImage[];
|
|
19
|
-
variation: GalleryVariation;
|
|
20
|
-
columns?: number;
|
|
21
|
-
gap?: string;
|
|
22
|
-
rowHeight?: string;
|
|
23
|
-
lightbox: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface GalleryThumbnailProps extends GalleryThumbnail {
|
|
26
|
-
alt: string;
|
|
27
|
-
caption?: string;
|
|
28
|
-
onClick?: React.MouseEventHandler;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Gallery';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Icon';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
className: string;
|
|
4
|
-
}
|
|
5
|
-
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
6
|
-
className: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
9
|
-
className: string;
|
|
10
|
-
}
|
|
11
|
-
export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
12
|
-
className: string;
|
|
13
|
-
}
|
|
14
|
-
export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
15
|
-
className: string;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Label';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Link';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Loading';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type NoticeVariant = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
-
export interface NoticeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
4
|
-
title?: string;
|
|
5
|
-
variant: NoticeVariant;
|
|
6
|
-
icon?: React.ReactElement;
|
|
7
|
-
onDismiss?: (Event: React.SyntheticEvent) => void;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
declare const Notice: React.FC<any>;
|
|
11
|
-
export { Notice };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Notice';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Pagination';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TabsProps as TabsPrimitiveProps, TabsContentProps } from '@radix-ui/react-tabs';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface TabProps extends TabsContentProps {
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TabsProps extends TabsPrimitiveProps {
|
|
7
|
-
children: React.ReactElement<TabProps>[];
|
|
8
|
-
tabsListLabel: string;
|
|
9
|
-
}
|