@kroyd/ui-core 0.0.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/dist/components/button/button.d.ts +10 -0
- package/dist/components/button/button.styles.d.ts +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/kroyd-ui-core.mjs +1 -0
- package/dist/kroyd-ui-core.umd.js +1 -0
- package/dist/react/UiButton.d.ts +14 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/register.d.ts +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class UiButton extends LitElement {
|
|
4
|
+
static styles: import('lit').CSSResult;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
variant: "primary" | "error" | "error_outline" | "success";
|
|
7
|
+
size: "sm" | "md" | "lg";
|
|
8
|
+
private handleClick;
|
|
9
|
+
render(): import('lit').TemplateResult<1>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buttonStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button/index';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n){typeof define=="function"&&define.amd?define(n):n()})(function(){"use strict"});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type UiButtonClickEvent = CustomEvent<{
|
|
4
|
+
variant: string;
|
|
5
|
+
size: string;
|
|
6
|
+
originalEvent: MouseEvent;
|
|
7
|
+
}>;
|
|
8
|
+
export interface UiButtonProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
|
+
variant?: "primary" | "error" | "error_outline" | "success";
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onUiClick?: (e: UiButtonClickEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const iButton: React.FC<UiButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { iButton } from './UiButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kroyd/ui-core",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"dist/kroyd-ui-core.es.js"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/kroyd-ui-core.es.js",
|
|
15
|
+
"require": "./dist/kroyd-ui-core.umd.js"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./dist/react/index.d.ts",
|
|
19
|
+
"import": "./dist/react/index.es.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/kroyd-ui-core.umd.js",
|
|
23
|
+
"module": "dist/kroyd-ui-core.es.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "vite build",
|
|
27
|
+
"dev": "vite"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"lit": "^3.0.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": ">=17"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"vite": "^5.0.0",
|
|
37
|
+
"typescript": "^5.0.0",
|
|
38
|
+
"vite-plugin-dts": "^3.5.0",
|
|
39
|
+
"sass": "^1.70.0"
|
|
40
|
+
}
|
|
41
|
+
}
|