@luminescent/ui 0.4.2 → 0.5.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 +9 -2
- package/lib/index.qwik.cjs +319 -206
- package/lib/index.qwik.mjs +320 -207
- package/lib-types/components/elements/Button.d.ts +1 -0
- package/lib-types/components/elements/Card.d.ts +11 -1
- package/lib-types/components/elements/ColorInput.d.ts +2 -2
- package/lib-types/components/elements/SelectInput.d.ts +6 -5
- package/lib-types/components/elements/{TextAreaInput.d.ts → TextArea.d.ts} +4 -3
- package/lib-types/components/elements/TextInput.d.ts +1 -0
- package/lib-types/components/elements.d.ts +1 -2
- package/lib-types/svg/ChevronDown.d.ts +2 -0
- package/lib-types/utils/simple-color-picker/color.d.ts +1 -0
- package/package.json +2 -1
- package/src/tailwind.config.js +3 -3
- package/lib-types/components/elements/OutputField.d.ts +0 -19
- package/lib-types/tailwind-config.d.ts +0 -114
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsOf } from '@builder.io/qwik';
|
|
2
2
|
interface CardProps extends Omit<PropsOf<'div'>, 'class'> {
|
|
3
3
|
color?: keyof typeof cardColorClasses;
|
|
4
|
-
|
|
4
|
+
hover?: boolean | 'clickable';
|
|
5
5
|
href?: string;
|
|
6
6
|
row?: boolean;
|
|
7
7
|
blobs?: boolean;
|
|
@@ -19,6 +19,7 @@ export declare const cardColorClasses: {
|
|
|
19
19
|
bg_blobs: string;
|
|
20
20
|
bg: string;
|
|
21
21
|
hover: string;
|
|
22
|
+
click: string;
|
|
22
23
|
};
|
|
23
24
|
blobs: string[];
|
|
24
25
|
};
|
|
@@ -27,6 +28,7 @@ export declare const cardColorClasses: {
|
|
|
27
28
|
bg_blobs: string;
|
|
28
29
|
bg: string;
|
|
29
30
|
hover: string;
|
|
31
|
+
click: string;
|
|
30
32
|
};
|
|
31
33
|
blobs: string[];
|
|
32
34
|
};
|
|
@@ -35,6 +37,7 @@ export declare const cardColorClasses: {
|
|
|
35
37
|
bg_blobs: string;
|
|
36
38
|
bg: string;
|
|
37
39
|
hover: string;
|
|
40
|
+
click: string;
|
|
38
41
|
};
|
|
39
42
|
blobs: string[];
|
|
40
43
|
};
|
|
@@ -43,6 +46,7 @@ export declare const cardColorClasses: {
|
|
|
43
46
|
bg_blobs: string;
|
|
44
47
|
bg: string;
|
|
45
48
|
hover: string;
|
|
49
|
+
click: string;
|
|
46
50
|
};
|
|
47
51
|
blobs: string[];
|
|
48
52
|
};
|
|
@@ -51,6 +55,7 @@ export declare const cardColorClasses: {
|
|
|
51
55
|
bg_blobs: string;
|
|
52
56
|
bg: string;
|
|
53
57
|
hover: string;
|
|
58
|
+
click: string;
|
|
54
59
|
};
|
|
55
60
|
blobs: string[];
|
|
56
61
|
};
|
|
@@ -59,6 +64,7 @@ export declare const cardColorClasses: {
|
|
|
59
64
|
bg_blobs: string;
|
|
60
65
|
bg: string;
|
|
61
66
|
hover: string;
|
|
67
|
+
click: string;
|
|
62
68
|
};
|
|
63
69
|
blobs: string[];
|
|
64
70
|
};
|
|
@@ -67,6 +73,7 @@ export declare const cardColorClasses: {
|
|
|
67
73
|
bg_blobs: string;
|
|
68
74
|
bg: string;
|
|
69
75
|
hover: string;
|
|
76
|
+
click: string;
|
|
70
77
|
};
|
|
71
78
|
blobs: string[];
|
|
72
79
|
};
|
|
@@ -75,6 +82,7 @@ export declare const cardColorClasses: {
|
|
|
75
82
|
bg_blobs: string;
|
|
76
83
|
bg: string;
|
|
77
84
|
hover: string;
|
|
85
|
+
click: string;
|
|
78
86
|
};
|
|
79
87
|
blobs: string[];
|
|
80
88
|
};
|
|
@@ -83,6 +91,7 @@ export declare const cardColorClasses: {
|
|
|
83
91
|
bg_blobs: string;
|
|
84
92
|
bg: string;
|
|
85
93
|
hover: string;
|
|
94
|
+
click: string;
|
|
86
95
|
};
|
|
87
96
|
blobs: string[];
|
|
88
97
|
};
|
|
@@ -91,6 +100,7 @@ export declare const cardColorClasses: {
|
|
|
91
100
|
bg_blobs: string;
|
|
92
101
|
bg: string;
|
|
93
102
|
hover: string;
|
|
103
|
+
click: string;
|
|
94
104
|
};
|
|
95
105
|
blobs: string[];
|
|
96
106
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { QRL } from '@builder.io/qwik';
|
|
2
2
|
import type { TextInputRawProps } from './TextInput';
|
|
3
|
-
interface ColorInputProps extends Omit<TextInputRawProps, 'onInput$' | 'children'> {
|
|
3
|
+
export interface ColorInputProps extends Omit<TextInputRawProps, 'onInput$' | 'children'> {
|
|
4
4
|
onInput$?: QRL<(color: string, element: HTMLInputElement) => void>;
|
|
5
5
|
value?: string;
|
|
6
6
|
presetColors?: string[];
|
|
7
|
+
preview?: 'left' | 'right' | 'top' | 'bottom' | 'full';
|
|
7
8
|
}
|
|
8
9
|
export declare const ColorInput: import("@builder.io/qwik").Component<ColorInputProps>;
|
|
9
|
-
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { PropsOf } from '@builder.io/qwik';
|
|
2
|
-
interface
|
|
2
|
+
interface SelectInputProps extends Omit<PropsOf<'select'>, 'class'> {
|
|
3
3
|
class?: {
|
|
4
4
|
[key: string]: boolean;
|
|
5
5
|
};
|
|
6
|
-
transparent?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface SelectInputProps extends SelectInputRawProps {
|
|
9
6
|
id: string;
|
|
7
|
+
values: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
}[];
|
|
10
11
|
}
|
|
11
12
|
export declare const SelectInput: import("@builder.io/qwik").Component<SelectInputProps>;
|
|
12
|
-
export declare const SelectInputRaw: import("@builder.io/qwik").Component<
|
|
13
|
+
export declare const SelectInputRaw: import("@builder.io/qwik").Component<SelectInputProps>;
|
|
13
14
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { PropsOf } from '@builder.io/qwik';
|
|
2
|
-
export interface TextAreaRawProps extends Omit<PropsOf<'textarea'>, 'class'> {
|
|
2
|
+
export interface TextAreaRawProps extends Omit<PropsOf<'textarea'>, 'class' | 'onChange$' | 'onClick$'> {
|
|
3
3
|
class?: {
|
|
4
4
|
[key: string]: boolean;
|
|
5
5
|
};
|
|
6
|
+
output?: boolean;
|
|
6
7
|
}
|
|
7
8
|
interface TextAreaProps extends Omit<TextAreaRawProps, 'children'> {
|
|
8
9
|
id: string;
|
|
9
10
|
}
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const TextArea: import("@builder.io/qwik").Component<TextAreaProps>;
|
|
12
|
+
export declare const TextAreaRaw: import("@builder.io/qwik").Component<TextAreaRawProps>;
|
|
12
13
|
export {};
|
|
@@ -9,6 +9,7 @@ export interface TextInputRawProps extends Omit<(PropsOf<'input'> & {
|
|
|
9
9
|
interface TextInputProps extends Omit<TextInputRawProps, 'children'> {
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
+
export declare const InputClasses = "transition ease-in-out text-lg border border-gray-700 bg-gray-800 text-gray-50 hover:bg-gray-700 hover:shadow-lg focus:bg-gray-700 focus:outline-none focus:border-gray-400 rounded-md px-3 py-2";
|
|
12
13
|
export declare const TextInput: import("@builder.io/qwik").Component<TextInputProps>;
|
|
13
14
|
export declare const TextInputRaw: import("@builder.io/qwik").Component<TextInputRawProps>;
|
|
14
15
|
export {};
|
|
@@ -3,8 +3,7 @@ export * from './elements/Button';
|
|
|
3
3
|
export * from './elements/Card';
|
|
4
4
|
export * from './elements/ColorInput';
|
|
5
5
|
export * from './elements/NumberInput';
|
|
6
|
-
export * from './elements/OutputField';
|
|
7
6
|
export * from './elements/SelectInput';
|
|
8
|
-
export * from './elements/
|
|
7
|
+
export * from './elements/TextArea';
|
|
9
8
|
export * from './elements/TextInput';
|
|
10
9
|
export * from './elements/Toggle';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"qwik": "qwik"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@anuragroy/tailwindcss-animate": "^1.0.6",
|
|
43
44
|
"@builder.io/qwik": "1.4.5",
|
|
44
45
|
"@builder.io/qwik-city": "^1.4.5",
|
|
45
46
|
"@types/eslint": "^8.56.2",
|
package/src/tailwind.config.js
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PropsOf, QRL } from '@builder.io/qwik';
|
|
2
|
-
interface alertsStore {
|
|
3
|
-
alerts: {
|
|
4
|
-
class: string;
|
|
5
|
-
text: string;
|
|
6
|
-
}[];
|
|
7
|
-
}
|
|
8
|
-
interface OutputFieldRawProps extends Omit<PropsOf<'textarea'>, 'class' | 'onChange$'> {
|
|
9
|
-
class?: {
|
|
10
|
-
[key: string]: boolean;
|
|
11
|
-
};
|
|
12
|
-
onChange$?: QRL<(event: Event, element: HTMLTextAreaElement, alertsStore: alertsStore) => any>;
|
|
13
|
-
}
|
|
14
|
-
interface OutputFieldProps extends Omit<OutputFieldRawProps, 'children'> {
|
|
15
|
-
id: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const OutputField: import("@builder.io/qwik").Component<OutputFieldProps>;
|
|
18
|
-
export declare const OutputFieldRaw: import("@builder.io/qwik").Component<OutputFieldRawProps>;
|
|
19
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
content: string[];
|
|
3
|
-
animation: {
|
|
4
|
-
blob: string;
|
|
5
|
-
blob1: string;
|
|
6
|
-
blob2: string;
|
|
7
|
-
blob3: string;
|
|
8
|
-
blob4: string;
|
|
9
|
-
blob5: string;
|
|
10
|
-
blob6: string;
|
|
11
|
-
float: string;
|
|
12
|
-
};
|
|
13
|
-
keyframes: {
|
|
14
|
-
blob: {
|
|
15
|
-
'0%, 100%': {
|
|
16
|
-
transform: string;
|
|
17
|
-
};
|
|
18
|
-
'25%': {
|
|
19
|
-
transform: string;
|
|
20
|
-
};
|
|
21
|
-
'50%': {
|
|
22
|
-
transform: string;
|
|
23
|
-
};
|
|
24
|
-
'75%': {
|
|
25
|
-
transform: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
blob1: {
|
|
29
|
-
'0%, 100%': {
|
|
30
|
-
transform: string;
|
|
31
|
-
};
|
|
32
|
-
'25%': {
|
|
33
|
-
transform: string;
|
|
34
|
-
};
|
|
35
|
-
'50%': {
|
|
36
|
-
transform: string;
|
|
37
|
-
};
|
|
38
|
-
'75%': {
|
|
39
|
-
transform: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
blob2: {
|
|
43
|
-
'0%, 100%': {
|
|
44
|
-
transform: string;
|
|
45
|
-
};
|
|
46
|
-
'25%': {
|
|
47
|
-
transform: string;
|
|
48
|
-
};
|
|
49
|
-
'50%': {
|
|
50
|
-
transform: string;
|
|
51
|
-
};
|
|
52
|
-
'75%': {
|
|
53
|
-
transform: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
blob3: {
|
|
57
|
-
'0%, 100%': {
|
|
58
|
-
transform: string;
|
|
59
|
-
};
|
|
60
|
-
'25%': {
|
|
61
|
-
transform: string;
|
|
62
|
-
};
|
|
63
|
-
'50%': {
|
|
64
|
-
transform: string;
|
|
65
|
-
};
|
|
66
|
-
'75%': {
|
|
67
|
-
transform: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
blob4: {
|
|
71
|
-
'0%, 100%': {
|
|
72
|
-
transform: string;
|
|
73
|
-
};
|
|
74
|
-
'25%': {
|
|
75
|
-
transform: string;
|
|
76
|
-
};
|
|
77
|
-
'50%': {
|
|
78
|
-
transform: string;
|
|
79
|
-
};
|
|
80
|
-
'75%': {
|
|
81
|
-
transform: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
blob5: {
|
|
85
|
-
'0%, 100%': {
|
|
86
|
-
transform: string;
|
|
87
|
-
};
|
|
88
|
-
'25%': {
|
|
89
|
-
transform: string;
|
|
90
|
-
};
|
|
91
|
-
'50%': {
|
|
92
|
-
transform: string;
|
|
93
|
-
};
|
|
94
|
-
'75%': {
|
|
95
|
-
transform: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
blob6: {
|
|
99
|
-
'0%, 100%': {
|
|
100
|
-
transform: string;
|
|
101
|
-
};
|
|
102
|
-
'25%': {
|
|
103
|
-
transform: string;
|
|
104
|
-
};
|
|
105
|
-
'50%': {
|
|
106
|
-
transform: string;
|
|
107
|
-
};
|
|
108
|
-
'75%': {
|
|
109
|
-
transform: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
export default _default;
|