reke-ui 0.1.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.
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/custom-elements.json +3536 -0
- package/dist/components/reke-alert/reke-alert.d.ts +31 -0
- package/dist/components/reke-alert/reke-alert.d.ts.map +1 -0
- package/dist/components/reke-alert/reke-alert.styles.d.ts +2 -0
- package/dist/components/reke-alert/reke-alert.styles.d.ts.map +1 -0
- package/dist/components/reke-badge/reke-badge.d.ts +29 -0
- package/dist/components/reke-badge/reke-badge.d.ts.map +1 -0
- package/dist/components/reke-badge/reke-badge.styles.d.ts +2 -0
- package/dist/components/reke-badge/reke-badge.styles.d.ts.map +1 -0
- package/dist/components/reke-button/reke-button.d.ts +39 -0
- package/dist/components/reke-button/reke-button.d.ts.map +1 -0
- package/dist/components/reke-button/reke-button.styles.d.ts +2 -0
- package/dist/components/reke-button/reke-button.styles.d.ts.map +1 -0
- package/dist/components/reke-card/reke-card.d.ts +31 -0
- package/dist/components/reke-card/reke-card.d.ts.map +1 -0
- package/dist/components/reke-card/reke-card.styles.d.ts +2 -0
- package/dist/components/reke-card/reke-card.styles.d.ts.map +1 -0
- package/dist/components/reke-checkbox/reke-checkbox.d.ts +32 -0
- package/dist/components/reke-checkbox/reke-checkbox.d.ts.map +1 -0
- package/dist/components/reke-checkbox/reke-checkbox.styles.d.ts +2 -0
- package/dist/components/reke-checkbox/reke-checkbox.styles.d.ts.map +1 -0
- package/dist/components/reke-chip/reke-chip.d.ts +41 -0
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -0
- package/dist/components/reke-chip/reke-chip.styles.d.ts +2 -0
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -0
- package/dist/components/reke-date-range/reke-date-range.d.ts +71 -0
- package/dist/components/reke-date-range/reke-date-range.d.ts.map +1 -0
- package/dist/components/reke-date-range/reke-date-range.styles.d.ts +2 -0
- package/dist/components/reke-date-range/reke-date-range.styles.d.ts.map +1 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts +39 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -0
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts +2 -0
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -0
- package/dist/components/reke-file-upload/reke-file-upload.d.ts +45 -0
- package/dist/components/reke-file-upload/reke-file-upload.d.ts.map +1 -0
- package/dist/components/reke-file-upload/reke-file-upload.styles.d.ts +2 -0
- package/dist/components/reke-file-upload/reke-file-upload.styles.d.ts.map +1 -0
- package/dist/components/reke-input/reke-input.d.ts +37 -0
- package/dist/components/reke-input/reke-input.d.ts.map +1 -0
- package/dist/components/reke-input/reke-input.styles.d.ts +2 -0
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -0
- package/dist/components/reke-select/reke-select.d.ts +51 -0
- package/dist/components/reke-select/reke-select.d.ts.map +1 -0
- package/dist/components/reke-select/reke-select.styles.d.ts +2 -0
- package/dist/components/reke-select/reke-select.styles.d.ts.map +1 -0
- package/dist/components/reke-table/reke-table.d.ts +76 -0
- package/dist/components/reke-table/reke-table.d.ts.map +1 -0
- package/dist/components/reke-table/reke-table.styles.d.ts +2 -0
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -0
- package/dist/components/reke-textarea/reke-textarea.d.ts +37 -0
- package/dist/components/reke-textarea/reke-textarea.d.ts.map +1 -0
- package/dist/components/reke-textarea/reke-textarea.styles.d.ts +2 -0
- package/dist/components/reke-textarea/reke-textarea.styles.d.ts.map +1 -0
- package/dist/components/reke-toast/reke-toast.d.ts +44 -0
- package/dist/components/reke-toast/reke-toast.d.ts.map +1 -0
- package/dist/components/reke-toast/reke-toast.styles.d.ts +2 -0
- package/dist/components/reke-toast/reke-toast.styles.d.ts.map +1 -0
- package/dist/components/reke-toggle/reke-toggle.d.ts +33 -0
- package/dist/components/reke-toggle/reke-toggle.d.ts.map +1 -0
- package/dist/components/reke-toggle/reke-toggle.styles.d.ts +2 -0
- package/dist/components/reke-toggle/reke-toggle.styles.d.ts.map +1 -0
- package/dist/components/reke-tooltip/reke-tooltip.d.ts +32 -0
- package/dist/components/reke-tooltip/reke-tooltip.d.ts.map +1 -0
- package/dist/components/reke-tooltip/reke-tooltip.styles.d.ts +2 -0
- package/dist/components/reke-tooltip/reke-tooltip.styles.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/react.d.ts +101 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +133 -0
- package/dist/reke-chip-Xb0Y_Cqo.js +3358 -0
- package/dist/reke-ui.js +20 -0
- package/dist/shared/base-element.d.ts +5 -0
- package/dist/shared/base-element.d.ts.map +1 -0
- package/dist/shared/tailwind-styles.d.ts +2 -0
- package/dist/shared/tailwind-styles.d.ts.map +1 -0
- package/dist/tokens/reke-tokens.css +107 -0
- package/package.json +149 -0
package/dist/reke-ui.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { R as k, a as R, b as s, c as o, d as t, e as l, f as g, g as p, h as i, i as n, j as r, k as T, l as d, m as b, n as c, o as h, p as m } from "./reke-chip-Xb0Y_Cqo.js";
|
|
2
|
+
export {
|
|
3
|
+
k as RekeAlert,
|
|
4
|
+
R as RekeBadge,
|
|
5
|
+
s as RekeButton,
|
|
6
|
+
o as RekeCard,
|
|
7
|
+
t as RekeCheckbox,
|
|
8
|
+
l as RekeChip,
|
|
9
|
+
g as RekeDateRange,
|
|
10
|
+
p as RekeDialog,
|
|
11
|
+
i as RekeElement,
|
|
12
|
+
n as RekeFileUpload,
|
|
13
|
+
r as RekeInput,
|
|
14
|
+
T as RekeSelect,
|
|
15
|
+
d as RekeTable,
|
|
16
|
+
b as RekeTextarea,
|
|
17
|
+
c as RekeToast,
|
|
18
|
+
h as RekeToggle,
|
|
19
|
+
m as RekeTooltip
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-element.d.ts","sourceRoot":"","sources":["../../src/shared/base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,qBAAa,WAAY,SAAQ,UAAU;IACzC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,OAAO;CAUrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind-styles.d.ts","sourceRoot":"","sources":["../../src/shared/tailwind-styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* ================================================================
|
|
2
|
+
reke-ui Design Tokens
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
<html> → Dark (default)
|
|
6
|
+
<html data-reke-theme="dark"> → Dark (explicit)
|
|
7
|
+
<html data-reke-theme="light"> → Light
|
|
8
|
+
<html data-reke-theme="auto"> → Follows OS preference
|
|
9
|
+
|
|
10
|
+
Override tokens in your project:
|
|
11
|
+
:root { --reke-color-primary: #6366F1; }
|
|
12
|
+
================================================================ */
|
|
13
|
+
|
|
14
|
+
/* ===== Shared tokens (theme-independent) ===== */
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
/* Accent colors */
|
|
18
|
+
--reke-color-primary: #22C55E;
|
|
19
|
+
--reke-color-secondary: #3B82F6;
|
|
20
|
+
--reke-color-danger: #EF4444;
|
|
21
|
+
--reke-color-warning: #F59E0B;
|
|
22
|
+
|
|
23
|
+
/* Typography */
|
|
24
|
+
--reke-font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
25
|
+
--reke-font-size-2xs: 11px;
|
|
26
|
+
--reke-font-size-xs: 12px;
|
|
27
|
+
--reke-font-size-sm: 13px;
|
|
28
|
+
--reke-font-size-md: 14px;
|
|
29
|
+
--reke-font-size-lg: 18px;
|
|
30
|
+
--reke-font-size-xl: 36px;
|
|
31
|
+
--reke-font-size-2xl: 48px;
|
|
32
|
+
--reke-font-weight-normal: 400;
|
|
33
|
+
--reke-font-weight-medium: 500;
|
|
34
|
+
--reke-font-weight-semibold: 600;
|
|
35
|
+
|
|
36
|
+
/* Spacing */
|
|
37
|
+
--reke-space-2xs: 6px;
|
|
38
|
+
--reke-space-xs: 8px;
|
|
39
|
+
--reke-space-sm: 12px;
|
|
40
|
+
--reke-space-md: 16px;
|
|
41
|
+
--reke-space-lg: 20px;
|
|
42
|
+
--reke-space-xl: 24px;
|
|
43
|
+
--reke-space-2xl: 28px;
|
|
44
|
+
--reke-space-3xl: 48px;
|
|
45
|
+
--reke-space-4xl: 64px;
|
|
46
|
+
--reke-space-5xl: 80px;
|
|
47
|
+
|
|
48
|
+
/* Radii */
|
|
49
|
+
--reke-radius: 4px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ===== Dark theme (default) ===== */
|
|
53
|
+
|
|
54
|
+
:root,
|
|
55
|
+
[data-reke-theme="dark"] {
|
|
56
|
+
--reke-color-on-primary: #0A0A0B;
|
|
57
|
+
--reke-color-bg: #0A0A0B;
|
|
58
|
+
--reke-color-bg-section: #0F0F10;
|
|
59
|
+
--reke-color-surface: #1A1A1A;
|
|
60
|
+
--reke-color-surface-elevated: #151515;
|
|
61
|
+
--reke-color-border: #252525;
|
|
62
|
+
--reke-color-border-subtle: #1F1F1F;
|
|
63
|
+
--reke-color-text: #E5E5E5;
|
|
64
|
+
--reke-color-text-muted: #525252;
|
|
65
|
+
--reke-color-text-ghost: #737373;
|
|
66
|
+
--reke-color-text-disabled: #3B3B3B;
|
|
67
|
+
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
68
|
+
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ===== Light theme ===== */
|
|
72
|
+
|
|
73
|
+
[data-reke-theme="light"] {
|
|
74
|
+
--reke-color-on-primary: #FFFFFF;
|
|
75
|
+
--reke-color-bg: #FFFFFF;
|
|
76
|
+
--reke-color-bg-section: #F8F8F8;
|
|
77
|
+
--reke-color-surface: #FFFFFF;
|
|
78
|
+
--reke-color-surface-elevated: #F0F0F0;
|
|
79
|
+
--reke-color-border: #E0E0E0;
|
|
80
|
+
--reke-color-border-subtle: #EBEBEB;
|
|
81
|
+
--reke-color-text: #1A1A1A;
|
|
82
|
+
--reke-color-text-muted: #8A8A8A;
|
|
83
|
+
--reke-color-text-ghost: #9A9A9A;
|
|
84
|
+
--reke-color-text-disabled: #C0C0C0;
|
|
85
|
+
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
86
|
+
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ===== Auto-detect OS preference (opt-in) ===== */
|
|
90
|
+
|
|
91
|
+
@media (prefers-color-scheme: light) {
|
|
92
|
+
[data-reke-theme="auto"] {
|
|
93
|
+
--reke-color-on-primary: #FFFFFF;
|
|
94
|
+
--reke-color-bg: #FFFFFF;
|
|
95
|
+
--reke-color-bg-section: #F8F8F8;
|
|
96
|
+
--reke-color-surface: #FFFFFF;
|
|
97
|
+
--reke-color-surface-elevated: #F0F0F0;
|
|
98
|
+
--reke-color-border: #E0E0E0;
|
|
99
|
+
--reke-color-border-subtle: #EBEBEB;
|
|
100
|
+
--reke-color-text: #1A1A1A;
|
|
101
|
+
--reke-color-text-muted: #8A8A8A;
|
|
102
|
+
--reke-color-text-ghost: #9A9A9A;
|
|
103
|
+
--reke-color-text-disabled: #C0C0C0;
|
|
104
|
+
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
105
|
+
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
106
|
+
}
|
|
107
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "reke-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Web Component library built with Lit 3 — dark & light themes",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/reke-ui.js",
|
|
7
|
+
"module": "./dist/reke-ui.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/reke-ui.js"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/react.d.ts",
|
|
16
|
+
"default": "./dist/react.js"
|
|
17
|
+
},
|
|
18
|
+
"./button": {
|
|
19
|
+
"types": "./dist/components/reke-button/reke-button.d.ts",
|
|
20
|
+
"default": "./dist/components/reke-button/reke-button.js"
|
|
21
|
+
},
|
|
22
|
+
"./input": {
|
|
23
|
+
"types": "./dist/components/reke-input/reke-input.d.ts",
|
|
24
|
+
"default": "./dist/components/reke-input/reke-input.js"
|
|
25
|
+
},
|
|
26
|
+
"./textarea": {
|
|
27
|
+
"types": "./dist/components/reke-textarea/reke-textarea.d.ts",
|
|
28
|
+
"default": "./dist/components/reke-textarea/reke-textarea.js"
|
|
29
|
+
},
|
|
30
|
+
"./checkbox": {
|
|
31
|
+
"types": "./dist/components/reke-checkbox/reke-checkbox.d.ts",
|
|
32
|
+
"default": "./dist/components/reke-checkbox/reke-checkbox.js"
|
|
33
|
+
},
|
|
34
|
+
"./toggle": {
|
|
35
|
+
"types": "./dist/components/reke-toggle/reke-toggle.d.ts",
|
|
36
|
+
"default": "./dist/components/reke-toggle/reke-toggle.js"
|
|
37
|
+
},
|
|
38
|
+
"./badge": {
|
|
39
|
+
"types": "./dist/components/reke-badge/reke-badge.d.ts",
|
|
40
|
+
"default": "./dist/components/reke-badge/reke-badge.js"
|
|
41
|
+
},
|
|
42
|
+
"./card": {
|
|
43
|
+
"types": "./dist/components/reke-card/reke-card.d.ts",
|
|
44
|
+
"default": "./dist/components/reke-card/reke-card.js"
|
|
45
|
+
},
|
|
46
|
+
"./tooltip": {
|
|
47
|
+
"types": "./dist/components/reke-tooltip/reke-tooltip.d.ts",
|
|
48
|
+
"default": "./dist/components/reke-tooltip/reke-tooltip.js"
|
|
49
|
+
},
|
|
50
|
+
"./dialog": {
|
|
51
|
+
"types": "./dist/components/reke-dialog/reke-dialog.d.ts",
|
|
52
|
+
"default": "./dist/components/reke-dialog/reke-dialog.js"
|
|
53
|
+
},
|
|
54
|
+
"./select": {
|
|
55
|
+
"types": "./dist/components/reke-select/reke-select.d.ts",
|
|
56
|
+
"default": "./dist/components/reke-select/reke-select.js"
|
|
57
|
+
},
|
|
58
|
+
"./table": {
|
|
59
|
+
"types": "./dist/components/reke-table/reke-table.d.ts",
|
|
60
|
+
"default": "./dist/components/reke-table/reke-table.js"
|
|
61
|
+
},
|
|
62
|
+
"./date-range": {
|
|
63
|
+
"types": "./dist/components/reke-date-range/reke-date-range.d.ts",
|
|
64
|
+
"default": "./dist/components/reke-date-range/reke-date-range.js"
|
|
65
|
+
},
|
|
66
|
+
"./file-upload": {
|
|
67
|
+
"types": "./dist/components/reke-file-upload/reke-file-upload.d.ts",
|
|
68
|
+
"default": "./dist/components/reke-file-upload/reke-file-upload.js"
|
|
69
|
+
},
|
|
70
|
+
"./alert": {
|
|
71
|
+
"types": "./dist/components/reke-alert/reke-alert.d.ts",
|
|
72
|
+
"default": "./dist/components/reke-alert/reke-alert.js"
|
|
73
|
+
},
|
|
74
|
+
"./toast": {
|
|
75
|
+
"types": "./dist/components/reke-toast/reke-toast.d.ts",
|
|
76
|
+
"default": "./dist/components/reke-toast/reke-toast.js"
|
|
77
|
+
},
|
|
78
|
+
"./chip": {
|
|
79
|
+
"types": "./dist/components/reke-chip/reke-chip.d.ts",
|
|
80
|
+
"default": "./dist/components/reke-chip/reke-chip.js"
|
|
81
|
+
},
|
|
82
|
+
"./tokens/css": "./dist/tokens/reke-tokens.css"
|
|
83
|
+
},
|
|
84
|
+
"files": [
|
|
85
|
+
"dist",
|
|
86
|
+
"custom-elements.json",
|
|
87
|
+
"README.md",
|
|
88
|
+
"LICENSE"
|
|
89
|
+
],
|
|
90
|
+
"scripts": {
|
|
91
|
+
"dev": "storybook dev -p 6006",
|
|
92
|
+
"build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly && mkdir -p dist/tokens && cp src/tokens/reke-tokens.css dist/tokens/",
|
|
93
|
+
"build:storybook": "storybook build",
|
|
94
|
+
"test": "vitest",
|
|
95
|
+
"test:run": "vitest run",
|
|
96
|
+
"analyze": "cem analyze --litelement",
|
|
97
|
+
"lint": "tsc --noEmit",
|
|
98
|
+
"prepublishOnly": "npm run build && npm run analyze"
|
|
99
|
+
},
|
|
100
|
+
"keywords": [
|
|
101
|
+
"web-components",
|
|
102
|
+
"lit",
|
|
103
|
+
"lit-element",
|
|
104
|
+
"design-system",
|
|
105
|
+
"components",
|
|
106
|
+
"ui",
|
|
107
|
+
"typescript"
|
|
108
|
+
],
|
|
109
|
+
"author": "Jesús Requena Pérez",
|
|
110
|
+
"license": "MIT",
|
|
111
|
+
"repository": {
|
|
112
|
+
"type": "git",
|
|
113
|
+
"url": "git+https://github.com/JReque/reke-ui.git"
|
|
114
|
+
},
|
|
115
|
+
"homepage": "https://github.com/JReque/reke-ui",
|
|
116
|
+
"bugs": {
|
|
117
|
+
"url": "https://github.com/JReque/reke-ui/issues"
|
|
118
|
+
},
|
|
119
|
+
"customElements": "custom-elements.json",
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"@lit/react": "^1.0.8",
|
|
122
|
+
"lit": "^3.3.2"
|
|
123
|
+
},
|
|
124
|
+
"peerDependencies": {
|
|
125
|
+
"react": ">=18"
|
|
126
|
+
},
|
|
127
|
+
"peerDependenciesMeta": {
|
|
128
|
+
"react": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"devDependencies": {
|
|
133
|
+
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
134
|
+
"@storybook/addon-a11y": "^10.2.11",
|
|
135
|
+
"@storybook/web-components-vite": "^10.2.11",
|
|
136
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
137
|
+
"@types/react": "^18.3.28",
|
|
138
|
+
"@vitest/browser": "^4.0.18",
|
|
139
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
140
|
+
"axe-core": "^4.11.1",
|
|
141
|
+
"playwright": "^1.58.2",
|
|
142
|
+
"react": "^19.2.4",
|
|
143
|
+
"storybook": "^10.2.11",
|
|
144
|
+
"tailwindcss": "^4.2.1",
|
|
145
|
+
"typescript": "^5.9.3",
|
|
146
|
+
"vite": "^7.3.1",
|
|
147
|
+
"vitest": "^4.0.18"
|
|
148
|
+
}
|
|
149
|
+
}
|