@luminescent/ui 0.19.2 → 1.0.0

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.
Files changed (61) hide show
  1. package/package.json +16 -33
  2. package/src/components/bg.ts +38 -0
  3. package/src/components/btn.ts +9 -0
  4. package/src/components/card.ts +9 -0
  5. package/src/components/input.ts +9 -0
  6. package/src/components/loading.ts +9 -0
  7. package/src/components/pad.ts +60 -0
  8. package/src/index.ts +9 -0
  9. package/lib/index.qwik.cjs +0 -2730
  10. package/lib/index.qwik.mjs +0 -2730
  11. package/lib-types/components/docs/Anchor.d.ts +0 -2
  12. package/lib-types/components/docs/Blobs.d.ts +0 -2
  13. package/lib-types/components/docs/Button.d.ts +0 -2
  14. package/lib-types/components/docs/Card.d.ts +0 -2
  15. package/lib-types/components/docs/ColorInput.d.ts +0 -2
  16. package/lib-types/components/docs/ColorPicker.d.ts +0 -2
  17. package/lib-types/components/docs/Dropdown.d.ts +0 -2
  18. package/lib-types/components/docs/IconsLogos.d.ts +0 -2
  19. package/lib-types/components/docs/Nav.d.ts +0 -2
  20. package/lib-types/components/docs/NumberInput.d.ts +0 -2
  21. package/lib-types/components/docs/TextArea.d.ts +0 -2
  22. package/lib-types/components/docs/TextInput.d.ts +0 -2
  23. package/lib-types/components/docs/Toggle.d.ts +0 -2
  24. package/lib-types/components/elements/Anchor.d.ts +0 -5
  25. package/lib-types/components/elements/Blobs.d.ts +0 -36
  26. package/lib-types/components/elements/Button.d.ts +0 -182
  27. package/lib-types/components/elements/Card.d.ts +0 -159
  28. package/lib-types/components/elements/ColorInput.d.ts +0 -12
  29. package/lib-types/components/elements/ColorPicker.d.ts +0 -15
  30. package/lib-types/components/elements/Dropdown.d.ts +0 -22
  31. package/lib-types/components/elements/Header.d.ts +0 -12
  32. package/lib-types/components/elements/LoadingIcon.d.ts +0 -10
  33. package/lib-types/components/elements/Nav.d.ts +0 -38
  34. package/lib-types/components/elements/NumberInput.d.ts +0 -23
  35. package/lib-types/components/elements/TextArea.d.ts +0 -15
  36. package/lib-types/components/elements/TextInput.d.ts +0 -43
  37. package/lib-types/components/elements/Toggle.d.ts +0 -212
  38. package/lib-types/components/elements.d.ts +0 -13
  39. package/lib-types/components/logos/Birdflop.d.ts +0 -7
  40. package/lib-types/components/logos/Discord.d.ts +0 -2
  41. package/lib-types/components/logos/Fabric.d.ts +0 -2
  42. package/lib-types/components/logos/Forge.d.ts +0 -2
  43. package/lib-types/components/logos/IconProps.d.ts +0 -3
  44. package/lib-types/components/logos/Luminescent.d.ts +0 -3
  45. package/lib-types/components/logos/Paper.d.ts +0 -2
  46. package/lib-types/components/logos/Pterodactyl.d.ts +0 -2
  47. package/lib-types/components/logos/Purpur.d.ts +0 -2
  48. package/lib-types/components/logos/Velocity.d.ts +0 -2
  49. package/lib-types/components/logos/Waterfall.d.ts +0 -2
  50. package/lib-types/components/logos.d.ts +0 -10
  51. package/lib-types/entry.dev.d.ts +0 -2
  52. package/lib-types/entry.ssr.d.ts +0 -14
  53. package/lib-types/index.d.ts +0 -2
  54. package/lib-types/root.d.ts +0 -3
  55. package/lib-types/svg/ChevronDown.d.ts +0 -2
  56. package/lib-types/svg/Link.d.ts +0 -2
  57. package/lib-types/svg/Minus.d.ts +0 -2
  58. package/lib-types/svg/Plus.d.ts +0 -2
  59. package/lib-types/svg/Shuffle.d.ts +0 -2
  60. package/lib-types/utils/color.d.ts +0 -36
  61. package/src/tailwind.config.js +0 -86
@@ -1,212 +0,0 @@
1
- import type { JSXOutput, PropsOf } from '@builder.io/qwik';
2
- interface ToggleProps extends Omit<(PropsOf<'input'> & {
3
- type: 'checkbox';
4
- }), 'class' | 'bind:checked' | 'type' | 'children'> {
5
- class?: {
6
- [key: string]: boolean;
7
- };
8
- checkbox?: boolean;
9
- round?: boolean;
10
- onColor?: keyof typeof toggleOnColorClasses;
11
- offColor?: keyof typeof toggleOffColorClasses;
12
- center?: boolean;
13
- label?: string | JSXOutput;
14
- }
15
- export declare const toggleOnColorClasses: {
16
- slate: {
17
- checked: string;
18
- checkedAfter: string;
19
- };
20
- gray: {
21
- checked: string;
22
- checkedAfter: string;
23
- };
24
- darkgray: {
25
- checked: string;
26
- checkedAfter: string;
27
- };
28
- darkergray: {
29
- checked: string;
30
- checkedAfter: string;
31
- };
32
- zinc: {
33
- checked: string;
34
- checkedAfter: string;
35
- };
36
- neutral: {
37
- checked: string;
38
- checkedAfter: string;
39
- };
40
- stone: {
41
- checked: string;
42
- checkedAfter: string;
43
- };
44
- red: {
45
- checked: string;
46
- checkedAfter: string;
47
- };
48
- orange: {
49
- checked: string;
50
- checkedAfter: string;
51
- };
52
- amber: {
53
- checked: string;
54
- checkedAfter: string;
55
- };
56
- yellow: {
57
- checked: string;
58
- checkedAfter: string;
59
- };
60
- lime: {
61
- checked: string;
62
- checkedAfter: string;
63
- };
64
- green: {
65
- checked: string;
66
- checkedAfter: string;
67
- };
68
- emerald: {
69
- checked: string;
70
- checkedAfter: string;
71
- };
72
- teal: {
73
- checked: string;
74
- checkedAfter: string;
75
- };
76
- cyan: {
77
- checked: string;
78
- checkedAfter: string;
79
- };
80
- sky: {
81
- checked: string;
82
- checkedAfter: string;
83
- };
84
- blue: {
85
- checked: string;
86
- checkedAfter: string;
87
- };
88
- indigo: {
89
- checked: string;
90
- checkedAfter: string;
91
- };
92
- violet: {
93
- checked: string;
94
- checkedAfter: string;
95
- };
96
- purple: {
97
- checked: string;
98
- checkedAfter: string;
99
- };
100
- fuchsia: {
101
- checked: string;
102
- checkedAfter: string;
103
- };
104
- pink: {
105
- checked: string;
106
- checkedAfter: string;
107
- };
108
- rose: {
109
- checked: string;
110
- checkedAfter: string;
111
- };
112
- };
113
- export declare const toggleOffColorClasses: {
114
- slate: {
115
- unchecked: string;
116
- uncheckedAfter: string;
117
- };
118
- gray: {
119
- unchecked: string;
120
- uncheckedAfter: string;
121
- };
122
- darkgray: {
123
- unchecked: string;
124
- uncheckedAfter: string;
125
- };
126
- darkergray: {
127
- unchecked: string;
128
- uncheckedAfter: string;
129
- };
130
- zinc: {
131
- unchecked: string;
132
- uncheckedAfter: string;
133
- };
134
- neutral: {
135
- unchecked: string;
136
- uncheckedAfter: string;
137
- };
138
- stone: {
139
- unchecked: string;
140
- uncheckedAfter: string;
141
- };
142
- red: {
143
- unchecked: string;
144
- uncheckedAfter: string;
145
- };
146
- orange: {
147
- unchecked: string;
148
- uncheckedAfter: string;
149
- };
150
- amber: {
151
- unchecked: string;
152
- uncheckedAfter: string;
153
- };
154
- yellow: {
155
- unchecked: string;
156
- uncheckedAfter: string;
157
- };
158
- lime: {
159
- unchecked: string;
160
- uncheckedAfter: string;
161
- };
162
- green: {
163
- unchecked: string;
164
- uncheckedAfter: string;
165
- };
166
- emerald: {
167
- unchecked: string;
168
- uncheckedAfter: string;
169
- };
170
- teal: {
171
- unchecked: string;
172
- uncheckedAfter: string;
173
- };
174
- cyan: {
175
- unchecked: string;
176
- uncheckedAfter: string;
177
- };
178
- sky: {
179
- unchecked: string;
180
- uncheckedAfter: string;
181
- };
182
- blue: {
183
- unchecked: string;
184
- uncheckedAfter: string;
185
- };
186
- indigo: {
187
- unchecked: string;
188
- uncheckedAfter: string;
189
- };
190
- violet: {
191
- unchecked: string;
192
- uncheckedAfter: string;
193
- };
194
- purple: {
195
- unchecked: string;
196
- uncheckedAfter: string;
197
- };
198
- fuchsia: {
199
- unchecked: string;
200
- uncheckedAfter: string;
201
- };
202
- pink: {
203
- unchecked: string;
204
- uncheckedAfter: string;
205
- };
206
- rose: {
207
- unchecked: string;
208
- uncheckedAfter: string;
209
- };
210
- };
211
- export declare const Toggle: import("@builder.io/qwik").Component<ToggleProps>;
212
- export {};
@@ -1,13 +0,0 @@
1
- export * from './elements/Anchor';
2
- export * from './elements/Blobs';
3
- export * from './elements/Button';
4
- export * from './elements/Card';
5
- export * from './elements/ColorPicker';
6
- export * from './elements/Dropdown';
7
- export * from './elements/Header';
8
- export * from './elements/LoadingIcon';
9
- export * from './elements/Nav';
10
- export * from './elements/NumberInput';
11
- export * from './elements/TextArea';
12
- export * from './elements/TextInput';
13
- export * from './elements/Toggle';
@@ -1,7 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- interface LogoBirdflopProps extends IconProps {
3
- confused?: boolean;
4
- fillGradient?: string[];
5
- }
6
- export declare const LogoBirdflop: import("@builder.io/qwik").Component<LogoBirdflopProps>;
7
- export {};
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoDiscord: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoFabric: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoForge: import("@builder.io/qwik").Component<IconProps>;
@@ -1,3 +0,0 @@
1
- import type { PropsOf } from '@builder.io/qwik';
2
- export interface IconProps extends Omit<PropsOf<'svg'>, 'height'> {
3
- }
@@ -1,3 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoLuminescent: import("@builder.io/qwik").Component<IconProps>;
3
- export declare const LogoLuminescentFull: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoPaper: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoPterodactyl: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoPurpur: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoVelocity: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from './IconProps';
2
- export declare const LogoWaterfall: import("@builder.io/qwik").Component<IconProps>;
@@ -1,10 +0,0 @@
1
- export * from './logos/Birdflop';
2
- export * from './logos/Discord';
3
- export * from './logos/Fabric';
4
- export * from './logos/Forge';
5
- export * from './logos/Luminescent';
6
- export * from './logos/Paper';
7
- export * from './logos/Pterodactyl';
8
- export * from './logos/Purpur';
9
- export * from './logos/Velocity';
10
- export * from './logos/Waterfall';
@@ -1,2 +0,0 @@
1
- import { type RenderOptions } from '@builder.io/qwik';
2
- export default function (opts: RenderOptions): Promise<import("@builder.io/qwik").RenderResult>;
@@ -1,14 +0,0 @@
1
- /**
2
- * WHAT IS THIS FILE?
3
- *
4
- * SSR entry point, in all cases the application is rendered outside the browser, this
5
- * entry point will be the common one.
6
- *
7
- * - Server (express, cloudflare...)
8
- * - npm run start
9
- * - npm run preview
10
- * - npm run build
11
- *
12
- */
13
- import { type RenderToStreamOptions } from '@builder.io/qwik/server';
14
- export default function (opts: RenderToStreamOptions): Promise<import("@builder.io/qwik/server").RenderToStreamResult>;
@@ -1,2 +0,0 @@
1
- export * from './components/elements';
2
- export * from './components/logos';
@@ -1,3 +0,0 @@
1
- import './global.css';
2
- declare const _default: import("@builder.io/qwik").Component<unknown>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../components/logos/IconProps';
2
- export declare const ChevronDown: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../components/logos/IconProps';
2
- export declare const Link: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../components/logos/IconProps';
2
- export declare const Minus: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../components/logos/IconProps';
2
- export declare const Plus: import("@builder.io/qwik").Component<IconProps>;
@@ -1,2 +0,0 @@
1
- import type { IconProps } from '../components/logos/IconProps';
2
- export declare const Shuffle: import("@builder.io/qwik").Component<IconProps>;
@@ -1,36 +0,0 @@
1
- export declare const clamp: (value: number, min: number, max: number) => number;
2
- export declare function getMousePosition(e: MouseEvent | TouchEvent): {
3
- x: number;
4
- y: number;
5
- };
6
- export declare const pad2: (c: string) => string;
7
- export type RGBAColor = {
8
- r: number;
9
- g: number;
10
- b: number;
11
- a?: number;
12
- };
13
- export type HSVAColor = {
14
- h: number;
15
- s: number;
16
- v: number;
17
- a?: number;
18
- };
19
- export declare function getBrightness(color: RGBAColor): number;
20
- export declare function hexNumberToRgb(color: number): {
21
- r: number;
22
- g: number;
23
- b: number;
24
- };
25
- export declare function rgbToHex(color: RGBAColor): string;
26
- export declare const hexStringToNumber: (color: string) => number;
27
- export declare function hsvToRgb(color: HSVAColor): {
28
- r: number;
29
- g: number;
30
- b: number;
31
- };
32
- export declare function rgbToHsv(color: RGBAColor): {
33
- h: number;
34
- s: number;
35
- v: number;
36
- };
@@ -1,86 +0,0 @@
1
- function getBlobKeyFrame() {
2
- const translateXPercentages = [0, 19, 38, 57, 76];
3
- const translateYPercentages = [0, 12, 25, 38, 50];
4
- const scaleValues = [0.8, 1, 1.2, 1.4];
5
-
6
- const translateX0Key = Math.floor(Math.random() * translateXPercentages.length);
7
- const translateX0 = translateXPercentages[translateX0Key];
8
- translateXPercentages.splice(translateX0Key, 1);
9
- const translateX1Key = Math.floor(Math.random() * translateXPercentages.length);
10
- const translateX1 = translateXPercentages[translateX1Key];
11
- translateXPercentages.splice(translateX1Key, 1);
12
- const translateX2Key = Math.floor(Math.random() * translateXPercentages.length);
13
- const translateX2 = translateXPercentages[translateX2Key];
14
- translateXPercentages.splice(translateX2Key, 1);
15
- const translateX3Key = Math.floor(Math.random() * translateXPercentages.length);
16
- const translateX3 = translateXPercentages[translateX3Key];
17
- translateXPercentages.splice(translateX3Key, 1);
18
-
19
- const translateY0Key = Math.floor(Math.random() * translateYPercentages.length);
20
- const translateY0 = translateYPercentages[translateY0Key];
21
- translateYPercentages.splice(translateY0Key, 1);
22
- const translateY1Key = Math.floor(Math.random() * translateYPercentages.length);
23
- const translateY1 = translateYPercentages[translateY1Key];
24
- translateYPercentages.splice(translateY1Key, 1);
25
- const translateY2Key = Math.floor(Math.random() * translateYPercentages.length);
26
- const translateY2 = translateYPercentages[translateY2Key];
27
- translateYPercentages.splice(translateY2Key, 1);
28
- const translateY3Key = Math.floor(Math.random() * translateYPercentages.length);
29
- const translateY3 = translateYPercentages[translateY3Key];
30
- translateYPercentages.splice(translateY3Key, 1);
31
-
32
- const scale0 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
33
- const scale1 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
34
- const scale2 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
35
- const scale3 = scaleValues[Math.floor(Math.random() * scaleValues.length)];
36
-
37
- const keyframe = {
38
- '0%, 100%': { transform: `translate(${translateX0}cqw, ${translateY0}cqh) scale(${scale0})` },
39
- '25%': { transform: `translate(${translateX1}cqw, ${translateY1}cqh) scale(${scale1})` },
40
- '50%': { transform: `translate(${translateX2}cqw, ${translateY2}cqh) scale(${scale2})` },
41
- '75%': { transform: `translate(${translateX3}cqw, ${translateY3}cqh) scale(${scale3})` },
42
- };
43
-
44
- return keyframe;
45
- }
46
-
47
- const luminescent = {
48
- 50 : "hsl(286deg, 65%, 97%)",
49
- 100: "hsl(286deg, 60%, 95%)",
50
- 200: "hsl(286deg, 55%, 90%)",
51
- 300: "hsl(286deg, 50%, 82%)",
52
- 400: "hsl(286deg, 45%, 75%)",
53
- 500: "hsl(286deg, 40%, 60%)",
54
- 600: "hsl(286deg, 35%, 51%)",
55
- 700: "hsl(286deg, 30%, 42%)",
56
- 800: "hsl(286deg, 25%, 35%)",
57
- 900: "hsl(286deg, 20%, 30%)",
58
- 950: "hsl(286deg, 15%, 17%)"
59
- };
60
-
61
- module.exports = {
62
- content: ['./node_modules/@luminescent/ui/**/*.{mjs,cjs}'],
63
- theme: {
64
- extend: {
65
- colors: { luminescent },
66
- animation: {
67
- blob: 'blob 15s infinite',
68
- blob1: 'blob1 15s infinite',
69
- blob2: 'blob2 15s infinite',
70
- blob3: 'blob3 15s infinite',
71
- blob4: 'blob4 15s infinite',
72
- blob5: 'blob5 15s infinite',
73
- blob6: 'blob6 15s infinite',
74
- },
75
- keyframes: {
76
- blob: getBlobKeyFrame(),
77
- blob1: getBlobKeyFrame(),
78
- blob2: getBlobKeyFrame(),
79
- blob3: getBlobKeyFrame(),
80
- blob4: getBlobKeyFrame(),
81
- blob5: getBlobKeyFrame(),
82
- blob6: getBlobKeyFrame(),
83
- },
84
- },
85
- },
86
- };