reke-ui 0.1.2 → 0.2.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/README.md +21 -0
- package/cli/install-skills.mjs +169 -0
- package/custom-elements.json +405 -161
- package/dist/__type-checks__/no-lit-in-public-types.d.ts +2 -0
- package/dist/__type-checks__/no-lit-in-public-types.d.ts.map +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +9 -0
- package/dist/components/reke-alert/reke-alert.d.ts.map +1 -1
- package/dist/components/reke-alert/reke-alert.js +32 -40
- package/dist/components/reke-alert/reke-alert.styles.js +7 -10
- package/dist/components/reke-badge/reke-badge.js +26 -40
- package/dist/components/reke-badge/reke-badge.styles.js +7 -10
- package/dist/components/reke-button/reke-button.d.ts.map +1 -1
- package/dist/components/reke-button/reke-button.js +41 -52
- package/dist/components/reke-button/reke-button.styles.js +7 -10
- package/dist/components/reke-card/reke-card.d.ts.map +1 -1
- package/dist/components/reke-card/reke-card.js +38 -58
- package/dist/components/reke-card/reke-card.styles.js +7 -10
- package/dist/components/reke-checkbox/reke-checkbox.js +40 -47
- package/dist/components/reke-checkbox/reke-checkbox.styles.d.ts.map +1 -1
- package/dist/components/reke-checkbox/reke-checkbox.styles.js +7 -9
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.js +42 -50
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.styles.js +16 -13
- package/dist/components/reke-date-range/reke-date-range.d.ts.map +1 -1
- package/dist/components/reke-date-range/reke-date-range.js +240 -260
- package/dist/components/reke-date-range/reke-date-range.styles.d.ts.map +1 -1
- package/dist/components/reke-date-range/reke-date-range.styles.js +29 -16
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.js +52 -65
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.styles.js +8 -10
- package/dist/components/reke-file-upload/reke-file-upload.d.ts.map +1 -1
- package/dist/components/reke-file-upload/reke-file-upload.js +62 -86
- package/dist/components/reke-file-upload/reke-file-upload.styles.js +7 -10
- package/dist/components/reke-input/reke-input.js +42 -61
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.styles.js +8 -10
- package/dist/components/reke-select/reke-select.d.ts.map +1 -1
- package/dist/components/reke-select/reke-select.js +66 -89
- package/dist/components/reke-select/reke-select.styles.d.ts.map +1 -1
- package/dist/components/reke-select/reke-select.styles.js +9 -11
- package/dist/components/reke-table/reke-table.d.ts +134 -23
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +243 -143
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.styles.js +67 -9
- package/dist/components/reke-textarea/reke-textarea.js +42 -61
- package/dist/components/reke-textarea/reke-textarea.styles.js +6 -9
- package/dist/components/reke-toast/reke-toast.d.ts.map +1 -1
- package/dist/components/reke-toast/reke-toast.js +50 -68
- package/dist/components/reke-toast/reke-toast.styles.d.ts.map +1 -1
- package/dist/components/reke-toast/reke-toast.styles.js +13 -12
- package/dist/components/reke-toggle/reke-toggle.js +36 -43
- package/dist/components/reke-toggle/reke-toggle.styles.js +7 -10
- package/dist/components/reke-tooltip/reke-tooltip.js +31 -47
- package/dist/components/reke-tooltip/reke-tooltip.styles.js +6 -9
- package/dist/index.d.ts +23 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -33
- package/dist/node_modules/lit/directives/ref.js +1 -0
- package/dist/node_modules/lit-html/async-directive.js +55 -0
- package/dist/node_modules/lit-html/directive-helpers.js +5 -0
- package/dist/node_modules/lit-html/directive.js +28 -0
- package/dist/node_modules/lit-html/directives/ref.js +30 -0
- package/dist/node_modules/lit-html/lit-html.js +234 -0
- package/dist/react-bridge/table.d.ts +58 -0
- package/dist/react-bridge/table.d.ts.map +1 -0
- package/dist/react-bridge/table.js +115 -0
- package/dist/react.d.ts +12 -26
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +110 -146
- package/dist/shared/base-element.js +13 -15
- package/dist/shared/tailwind-styles.js +6 -6
- package/dist/shared/tailwind.js +4 -0
- package/dist/tokens/reke-tokens.css +47 -0
- package/package.json +40 -20
- package/dist/shared/tailwind.css.js +0 -4
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
-
import { css as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
o`
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-checkbox/reke-checkbox.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
6
5
|
:host {
|
|
7
6
|
display: inline-flex;
|
|
8
7
|
align-items: center;
|
|
@@ -21,6 +20,7 @@ const n = [
|
|
|
21
20
|
gap: 8px;
|
|
22
21
|
cursor: pointer;
|
|
23
22
|
outline: none;
|
|
23
|
+
min-height: 24px; /* WCAG 2.2 — 2.5.8 Target Size Minimum */
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.native-input {
|
|
@@ -74,8 +74,6 @@ const n = [
|
|
|
74
74
|
color: var(--reke-color-text, #E5E5E5);
|
|
75
75
|
user-select: none;
|
|
76
76
|
}
|
|
77
|
-
`
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
n as styles
|
|
81
|
-
};
|
|
77
|
+
`];
|
|
78
|
+
//#endregion
|
|
79
|
+
export { n as styles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-chip.d.ts","sourceRoot":"","sources":["../../../src/components/reke-chip/reke-chip.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,QAAS,SAAQ,WAAW;IACvC,OAAgB,MAAM,4BAAU;IAEhC,wCAAwC;IAExC,KAAK,EAAE,SAAS,CAAa;IAE7B,wDAAwD;IAExD,MAAM,UAAS;IAEf,kCAAkC;IAElC,WAAW,UAAS;IAGpB,QAAQ,UAAS;IAEjB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;IAMb,MAAM;
|
|
1
|
+
{"version":3,"file":"reke-chip.d.ts","sourceRoot":"","sources":["../../../src/components/reke-chip/reke-chip.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,QAAS,SAAQ,WAAW;IACvC,OAAgB,MAAM,4BAAU;IAEhC,wCAAwC;IAExC,KAAK,EAAE,SAAS,CAAa;IAE7B,wDAAwD;IAExD,MAAM,UAAS;IAEf,kCAAkC;IAElC,WAAW,UAAS;IAGpB,QAAQ,UAAS;IAEjB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,cAAc;IAMb,MAAM;CAmChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
chip: !0,
|
|
24
|
-
[`chip--${this.color}`]: !0,
|
|
25
|
-
"chip--active": this.active
|
|
26
|
-
};
|
|
27
|
-
return n`
|
|
1
|
+
import { RekeElement as e } from "../../shared/base-element.js";
|
|
2
|
+
import { __decorate as t } from "../../_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js";
|
|
3
|
+
import { styles as n } from "./reke-chip.styles.js";
|
|
4
|
+
import { html as r, nothing as i } from "lit";
|
|
5
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
6
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
7
|
+
//#region src/components/reke-chip/reke-chip.ts
|
|
8
|
+
var c = class extends e {
|
|
9
|
+
constructor(...e) {
|
|
10
|
+
super(...e), this.color = "primary", this.active = !1, this.dismissible = !1, this.disabled = !1;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.styles = n;
|
|
14
|
+
}
|
|
15
|
+
_handleClick() {
|
|
16
|
+
this.disabled || this.emit("reke-click");
|
|
17
|
+
}
|
|
18
|
+
_handleDismiss(e) {
|
|
19
|
+
e.stopPropagation(), !this.disabled && this.emit("reke-dismiss");
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return r`
|
|
28
23
|
<button
|
|
29
24
|
part="chip"
|
|
30
|
-
class=${
|
|
25
|
+
class=${s({
|
|
26
|
+
chip: !0,
|
|
27
|
+
[`chip--${this.color}`]: !0,
|
|
28
|
+
"chip--active": this.active
|
|
29
|
+
})}
|
|
31
30
|
type="button"
|
|
32
31
|
?disabled=${this.disabled}
|
|
33
32
|
aria-pressed=${this.active}
|
|
34
33
|
@click=${this._handleClick}
|
|
35
34
|
>
|
|
36
35
|
<slot></slot>
|
|
37
|
-
${this.dismissible ?
|
|
36
|
+
${this.dismissible ? r`
|
|
38
37
|
<span
|
|
39
38
|
part="dismiss"
|
|
40
39
|
class="chip__dismiss"
|
|
@@ -44,27 +43,20 @@ let s = class extends u {
|
|
|
44
43
|
>
|
|
45
44
|
<svg viewBox="0 0 24 24" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
|
|
46
45
|
</span>
|
|
47
|
-
` :
|
|
46
|
+
` : i}
|
|
48
47
|
</button>
|
|
49
48
|
`;
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
s.styles = f;
|
|
53
|
-
i([
|
|
54
|
-
o({ reflect: !0 })
|
|
55
|
-
], s.prototype, "color", 2);
|
|
56
|
-
i([
|
|
57
|
-
o({ type: Boolean, reflect: !0 })
|
|
58
|
-
], s.prototype, "active", 2);
|
|
59
|
-
i([
|
|
60
|
-
o({ type: Boolean, reflect: !0 })
|
|
61
|
-
], s.prototype, "dismissible", 2);
|
|
62
|
-
i([
|
|
63
|
-
o({ type: Boolean, reflect: !0 })
|
|
64
|
-
], s.prototype, "disabled", 2);
|
|
65
|
-
s = i([
|
|
66
|
-
m("reke-chip")
|
|
67
|
-
], s);
|
|
68
|
-
export {
|
|
69
|
-
s as RekeChip
|
|
49
|
+
}
|
|
70
50
|
};
|
|
51
|
+
t([o({ reflect: !0 })], c.prototype, "color", void 0), t([o({
|
|
52
|
+
type: Boolean,
|
|
53
|
+
reflect: !0
|
|
54
|
+
})], c.prototype, "active", void 0), t([o({
|
|
55
|
+
type: Boolean,
|
|
56
|
+
reflect: !0
|
|
57
|
+
})], c.prototype, "dismissible", void 0), t([o({
|
|
58
|
+
type: Boolean,
|
|
59
|
+
reflect: !0
|
|
60
|
+
})], c.prototype, "disabled", void 0), c = t([a("reke-chip")], c);
|
|
61
|
+
//#endregion
|
|
62
|
+
export { c as RekeChip };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-chip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-chip/reke-chip.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"reke-chip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-chip/reke-chip.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BA6HlB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tailwindStyles as
|
|
2
|
-
import { css as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
o`
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-chip/reke-chip.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
6
5
|
:host {
|
|
7
6
|
display: inline-block;
|
|
8
7
|
}
|
|
@@ -24,7 +23,7 @@ const i = [
|
|
|
24
23
|
border: 1px solid var(--reke-color-border-subtle, #1F1F1F);
|
|
25
24
|
border-radius: var(--reke-radius, 4px);
|
|
26
25
|
background: transparent;
|
|
27
|
-
color: var(--reke-color-text-
|
|
26
|
+
color: var(--reke-color-text-ghost, #7A7A7A);
|
|
28
27
|
cursor: pointer;
|
|
29
28
|
transition:
|
|
30
29
|
background-color var(--reke-transition-fast, 0.12s ease),
|
|
@@ -98,8 +97,8 @@ const i = [
|
|
|
98
97
|
display: inline-flex;
|
|
99
98
|
align-items: center;
|
|
100
99
|
justify-content: center;
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
100
|
+
width: 16px;
|
|
101
|
+
height: 16px;
|
|
103
102
|
border-radius: 2px;
|
|
104
103
|
cursor: pointer;
|
|
105
104
|
opacity: 0.6;
|
|
@@ -110,6 +109,12 @@ const i = [
|
|
|
110
109
|
opacity: 1;
|
|
111
110
|
}
|
|
112
111
|
|
|
112
|
+
.chip__dismiss:focus-visible {
|
|
113
|
+
outline: 2px solid var(--reke-color-primary, #22C55E);
|
|
114
|
+
outline-offset: 1px;
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
113
118
|
.chip__dismiss svg {
|
|
114
119
|
width: 10px;
|
|
115
120
|
height: 10px;
|
|
@@ -118,8 +123,6 @@ const i = [
|
|
|
118
123
|
stroke-linecap: round;
|
|
119
124
|
fill: none;
|
|
120
125
|
}
|
|
121
|
-
`
|
|
122
|
-
|
|
123
|
-
export {
|
|
124
|
-
i as styles
|
|
125
|
-
};
|
|
126
|
+
`];
|
|
127
|
+
//#endregion
|
|
128
|
+
export { n as styles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-date-range.d.ts","sourceRoot":"","sources":["../../../src/components/reke-date-range/reke-date-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"reke-date-range.d.ts","sourceRoot":"","sources":["../../../src/components/reke-date-range/reke-date-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAwEhD;;;;;;;;;;;;;;;GAeG;AACH,qBACa,aAAc,SAAQ,WAAW;IAC5C,OAAgB,MAAM,4BAAU;IAEhC,+DAA+D;IAE/D,IAAI,EAAE,cAAc,CAAW;IAE/B,+CAA+C;IAE/C,KAAK,SAAM;IAEX,+BAA+B;IAE/B,IAAI,SAAM;IAEV,6BAA6B;IAE7B,EAAE,SAAM;IAGR,KAAK,SAAM;IAGX,WAAW,SAAM;IAEjB,2CAA2C;IAE3C,GAAG,SAAM;IAET,2CAA2C;IAE3C,GAAG,SAAM;IAGT,QAAQ,UAAS;IAGjB,KAAK,UAAS;IAEL,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,UAAU,CAAyB;IAEpD,wEAAwE;IAC/D,OAAO,CAAC,eAAe,CAAS;IAEzC,OAAO,CAAC,kBAAkB,CAAmC;IAEpD,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAMrC,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,UAAU,CAahB;IAEF,OAAO,CAAC,WAAW;IAiBnB,mDAAmD;IACnD,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,UAAU;IAgClB,OAAO,CAAC,QAAQ;IA8BhB,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,cAAc;IAmCtB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,cAAc;IAQb,MAAM;CA8GhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|