reke-ui 0.1.1 → 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 +23 -0
- package/cli/install-skills.mjs +169 -0
- package/custom-elements.json +472 -128
- 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 +45 -0
- package/dist/components/reke-alert/reke-alert.styles.d.ts.map +1 -1
- package/dist/components/reke-alert/reke-alert.styles.js +103 -0
- package/dist/components/reke-badge/reke-badge.d.ts +4 -2
- package/dist/components/reke-badge/reke-badge.d.ts.map +1 -1
- package/dist/components/reke-badge/reke-badge.js +30 -0
- package/dist/components/reke-badge/reke-badge.styles.d.ts.map +1 -1
- package/dist/components/reke-badge/reke-badge.styles.js +92 -0
- package/dist/components/reke-button/reke-button.d.ts.map +1 -1
- package/dist/components/reke-button/reke-button.js +53 -0
- package/dist/components/reke-button/reke-button.styles.d.ts.map +1 -1
- package/dist/components/reke-button/reke-button.styles.js +226 -0
- package/dist/components/reke-card/reke-card.d.ts +7 -0
- package/dist/components/reke-card/reke-card.d.ts.map +1 -1
- package/dist/components/reke-card/reke-card.js +50 -0
- package/dist/components/reke-card/reke-card.styles.d.ts.map +1 -1
- package/dist/components/reke-card/reke-card.styles.js +147 -0
- package/dist/components/reke-checkbox/reke-checkbox.js +57 -0
- package/dist/components/reke-checkbox/reke-checkbox.styles.d.ts.map +1 -1
- package/dist/components/reke-checkbox/reke-checkbox.styles.js +79 -0
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.js +62 -0
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.styles.js +128 -0
- package/dist/components/reke-date-range/reke-date-range.d.ts.map +1 -1
- package/dist/components/reke-date-range/reke-date-range.js +326 -0
- 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 +335 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.js +77 -0
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.styles.js +132 -0
- package/dist/components/reke-file-upload/reke-file-upload.d.ts.map +1 -1
- package/dist/components/reke-file-upload/reke-file-upload.js +84 -0
- package/dist/components/reke-file-upload/reke-file-upload.styles.js +104 -0
- package/dist/components/reke-input/reke-input.js +54 -0
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.styles.js +78 -0
- package/dist/components/reke-select/reke-select.d.ts.map +1 -1
- package/dist/components/reke-select/reke-select.js +89 -0
- package/dist/components/reke-select/reke-select.styles.d.ts.map +1 -1
- package/dist/components/reke-select/reke-select.styles.js +120 -0
- package/dist/components/reke-table/reke-table.d.ts +144 -13
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +291 -0
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.styles.js +265 -0
- package/dist/components/reke-textarea/reke-textarea.js +54 -0
- package/dist/components/reke-textarea/reke-textarea.styles.js +73 -0
- package/dist/components/reke-toast/reke-toast.d.ts.map +1 -1
- package/dist/components/reke-toast/reke-toast.js +74 -0
- package/dist/components/reke-toast/reke-toast.styles.d.ts.map +1 -1
- package/dist/components/reke-toast/reke-toast.styles.js +183 -0
- package/dist/components/reke-toggle/reke-toggle.js +50 -0
- package/dist/components/reke-toggle/reke-toggle.styles.js +68 -0
- package/dist/components/reke-tooltip/reke-tooltip.js +51 -0
- package/dist/components/reke-tooltip/reke-tooltip.styles.js +64 -0
- package/dist/index.d.ts +23 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- 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 +111 -132
- package/dist/shared/base-element.js +14 -0
- package/dist/shared/tailwind-styles.js +6 -0
- package/dist/shared/tailwind.js +4 -0
- package/dist/tokens/reke-tokens.css +70 -0
- package/package.json +43 -23
- package/dist/reke-chip-DexKxhxn.js +0 -3358
- package/dist/reke-ui.js +0 -20
|
@@ -0,0 +1,50 @@
|
|
|
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-toggle.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
|
+
//#region src/components/reke-toggle/reke-toggle.ts
|
|
7
|
+
var s = class extends e {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.checked = !1, this.disabled = !1, this.label = "";
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = n;
|
|
13
|
+
}
|
|
14
|
+
toggle() {
|
|
15
|
+
this.disabled || (this.checked = !this.checked, this.emit("reke-change", { checked: this.checked }));
|
|
16
|
+
}
|
|
17
|
+
handleClick() {
|
|
18
|
+
this.toggle();
|
|
19
|
+
}
|
|
20
|
+
handleKeyDown(e) {
|
|
21
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this.toggle());
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return r`
|
|
25
|
+
<div
|
|
26
|
+
class="toggle"
|
|
27
|
+
role="switch"
|
|
28
|
+
aria-checked=${this.checked}
|
|
29
|
+
aria-label=${this.label || i}
|
|
30
|
+
tabindex=${this.disabled ? -1 : 0}
|
|
31
|
+
@click=${this.handleClick}
|
|
32
|
+
@keydown=${this.handleKeyDown}
|
|
33
|
+
>
|
|
34
|
+
<div part="track" class="track ${this.checked ? "track--checked" : ""}">
|
|
35
|
+
<div part="thumb" class="thumb ${this.checked ? "thumb--checked" : ""}"></div>
|
|
36
|
+
</div>
|
|
37
|
+
${this.label ? r`<span class="label">${this.label}</span>` : i}
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
t([o({
|
|
43
|
+
type: Boolean,
|
|
44
|
+
reflect: !0
|
|
45
|
+
})], s.prototype, "checked", void 0), t([o({
|
|
46
|
+
type: Boolean,
|
|
47
|
+
reflect: !0
|
|
48
|
+
})], s.prototype, "disabled", void 0), t([o()], s.prototype, "label", void 0), s = t([a("reke-toggle")], s);
|
|
49
|
+
//#endregion
|
|
50
|
+
export { s as RekeToggle };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-toggle/reke-toggle.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
5
|
+
:host {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([disabled]) {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
opacity: 0.5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.toggle {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.toggle:focus-visible .track {
|
|
24
|
+
outline: 2px solid var(--reke-color-primary, #22C55E);
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.track {
|
|
29
|
+
position: relative;
|
|
30
|
+
width: 40px;
|
|
31
|
+
height: 22px;
|
|
32
|
+
border-radius: 11px;
|
|
33
|
+
background-color: var(--reke-color-surface, #1A1A1A);
|
|
34
|
+
border: 1px solid var(--reke-color-border, #252525);
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.track--checked {
|
|
40
|
+
background-color: var(--reke-color-primary, #22C55E);
|
|
41
|
+
border-color: var(--reke-color-primary, #22C55E);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.thumb {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 2px;
|
|
48
|
+
width: 16px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
background-color: var(--reke-color-text-muted, #525252);
|
|
52
|
+
transform: translateY(-50%);
|
|
53
|
+
transition: transform 0.15s ease, background-color 0.15s ease;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.thumb--checked {
|
|
57
|
+
background-color: var(--reke-color-on-primary, #0A0A0B);
|
|
58
|
+
transform: translateX(18px) translateY(-50%);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.label {
|
|
62
|
+
color: var(--reke-color-text, #E5E5E5);
|
|
63
|
+
font-family: var(--reke-font-mono, 'JetBrains Mono', ui-monospace, monospace);
|
|
64
|
+
font-size: var(--reke-font-size-sm, 13px);
|
|
65
|
+
}
|
|
66
|
+
`];
|
|
67
|
+
//#endregion
|
|
68
|
+
export { n as styles };
|
|
@@ -0,0 +1,51 @@
|
|
|
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-tooltip.styles.js";
|
|
4
|
+
import { html as r } from "lit";
|
|
5
|
+
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
6
|
+
//#region src/components/reke-tooltip/reke-tooltip.ts
|
|
7
|
+
var s = class extends e {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.text = "", this.position = "top", this.delay = 200, this._visible = !1;
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = n;
|
|
13
|
+
}
|
|
14
|
+
show() {
|
|
15
|
+
clearTimeout(this._delayTimeout), this._delayTimeout = setTimeout(() => {
|
|
16
|
+
this._visible = !0;
|
|
17
|
+
}, this.delay);
|
|
18
|
+
}
|
|
19
|
+
hide() {
|
|
20
|
+
clearTimeout(this._delayTimeout), this._delayTimeout = setTimeout(() => {
|
|
21
|
+
this._visible = !1;
|
|
22
|
+
}, this.delay);
|
|
23
|
+
}
|
|
24
|
+
disconnectedCallback() {
|
|
25
|
+
super.disconnectedCallback(), clearTimeout(this._delayTimeout);
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return r`
|
|
29
|
+
<div
|
|
30
|
+
class="wrapper"
|
|
31
|
+
aria-describedby="tooltip"
|
|
32
|
+
@mouseenter=${this.show}
|
|
33
|
+
@mouseleave=${this.hide}
|
|
34
|
+
@focusin=${this.show}
|
|
35
|
+
@focusout=${this.hide}
|
|
36
|
+
>
|
|
37
|
+
<div
|
|
38
|
+
id="tooltip"
|
|
39
|
+
class="tooltip tooltip--${this.position} ${this._visible ? "tooltip--visible" : ""}"
|
|
40
|
+
role="tooltip"
|
|
41
|
+
>
|
|
42
|
+
${this.text}
|
|
43
|
+
</div>
|
|
44
|
+
<slot></slot>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
t([a()], s.prototype, "text", void 0), t([a({ reflect: !0 })], s.prototype, "position", void 0), t([a({ type: Number })], s.prototype, "delay", void 0), t([o()], s.prototype, "_visible", void 0), s = t([i("reke-tooltip")], s);
|
|
50
|
+
//#endregion
|
|
51
|
+
export { s as RekeTooltip };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-tooltip/reke-tooltip.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
5
|
+
:host {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wrapper {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tooltip {
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index: 1000;
|
|
18
|
+
padding: 6px 12px;
|
|
19
|
+
background-color: var(--reke-color-surface-elevated, #151515);
|
|
20
|
+
color: var(--reke-color-text, #E5E5E5);
|
|
21
|
+
border: 1px solid var(--reke-color-border, #252525);
|
|
22
|
+
border-radius: var(--reke-radius, 4px);
|
|
23
|
+
font-family: var(--reke-font-mono, 'JetBrains Mono', ui-monospace, monospace);
|
|
24
|
+
font-size: var(--reke-font-size-xs, 12px);
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
transition: opacity 0.15s ease;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tooltip--visible {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tooltip--top {
|
|
36
|
+
bottom: 100%;
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
margin-bottom: 6px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tooltip--bottom {
|
|
43
|
+
top: 100%;
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translateX(-50%);
|
|
46
|
+
margin-top: 6px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tooltip--left {
|
|
50
|
+
right: 100%;
|
|
51
|
+
top: 50%;
|
|
52
|
+
transform: translateY(-50%);
|
|
53
|
+
margin-right: 6px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tooltip--right {
|
|
57
|
+
left: 100%;
|
|
58
|
+
top: 50%;
|
|
59
|
+
transform: translateY(-50%);
|
|
60
|
+
margin-left: 6px;
|
|
61
|
+
}
|
|
62
|
+
`];
|
|
63
|
+
//#endregion
|
|
64
|
+
export { n as styles };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export type { InputSize } from './components/reke-input/reke-input.js';
|
|
5
|
-
export { RekeTextarea } from './components/reke-textarea/reke-textarea.js';
|
|
6
|
-
export type { TextareaSize } from './components/reke-textarea/reke-textarea.js';
|
|
7
|
-
export { RekeCheckbox } from './components/reke-checkbox/reke-checkbox.js';
|
|
8
|
-
export { RekeToggle } from './components/reke-toggle/reke-toggle.js';
|
|
1
|
+
export type { AlertVariant } from './components/reke-alert/reke-alert.js';
|
|
2
|
+
export { RekeAlert } from './components/reke-alert/reke-alert.js';
|
|
3
|
+
export type { BadgeShape, BadgeSize, BadgeVariant } from './components/reke-badge/reke-badge.js';
|
|
9
4
|
export { RekeBadge } from './components/reke-badge/reke-badge.js';
|
|
10
|
-
export type {
|
|
5
|
+
export type { ButtonSize, ButtonVariant } from './components/reke-button/reke-button.js';
|
|
6
|
+
export { RekeButton } from './components/reke-button/reke-button.js';
|
|
7
|
+
export type { CardAccent, CardPadding, CardVariant } from './components/reke-card/reke-card.js';
|
|
11
8
|
export { RekeCard } from './components/reke-card/reke-card.js';
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
9
|
+
export { RekeCheckbox } from './components/reke-checkbox/reke-checkbox.js';
|
|
10
|
+
export type { ChipColor } from './components/reke-chip/reke-chip.js';
|
|
11
|
+
export { RekeChip } from './components/reke-chip/reke-chip.js';
|
|
12
|
+
export type { DatePickerMode } from './components/reke-date-range/reke-date-range.js';
|
|
13
|
+
export { RekeDateRange } from './components/reke-date-range/reke-date-range.js';
|
|
16
14
|
export type { DialogVariant, DrawerPosition } from './components/reke-dialog/reke-dialog.js';
|
|
17
|
-
export {
|
|
15
|
+
export { RekeDialog } from './components/reke-dialog/reke-dialog.js';
|
|
16
|
+
export { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.js';
|
|
17
|
+
export type { InputSize } from './components/reke-input/reke-input.js';
|
|
18
|
+
export { RekeInput } from './components/reke-input/reke-input.js';
|
|
18
19
|
export type { SelectSize } from './components/reke-select/reke-select.js';
|
|
20
|
+
export { RekeSelect } from './components/reke-select/reke-select.js';
|
|
21
|
+
export type { Cleanup, ExpandedRowElement, GetRowKey, RowKey, TableColumn, TableRow, } from './components/reke-table/reke-table.js';
|
|
19
22
|
export { RekeTable } from './components/reke-table/reke-table.js';
|
|
20
|
-
export type {
|
|
21
|
-
export {
|
|
22
|
-
export type { DatePickerMode } from './components/reke-date-range/reke-date-range.js';
|
|
23
|
-
export { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.js';
|
|
24
|
-
export { RekeAlert } from './components/reke-alert/reke-alert.js';
|
|
25
|
-
export type { AlertVariant } from './components/reke-alert/reke-alert.js';
|
|
26
|
-
export { RekeToast } from './components/reke-toast/reke-toast.js';
|
|
23
|
+
export type { TextareaSize } from './components/reke-textarea/reke-textarea.js';
|
|
24
|
+
export { RekeTextarea } from './components/reke-textarea/reke-textarea.js';
|
|
27
25
|
export type { ToastVariant } from './components/reke-toast/reke-toast.js';
|
|
28
|
-
export {
|
|
29
|
-
export
|
|
26
|
+
export { RekeToast } from './components/reke-toast/reke-toast.js';
|
|
27
|
+
export { RekeToggle } from './components/reke-toggle/reke-toggle.js';
|
|
28
|
+
export type { TooltipPosition } from './components/reke-tooltip/reke-tooltip.js';
|
|
29
|
+
export { RekeTooltip } from './components/reke-tooltip/reke-tooltip.js';
|
|
30
30
|
export { RekeElement } from './shared/base-element.js';
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,GACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RekeElement as e } from "./shared/base-element.js";
|
|
2
|
+
import { RekeAlert as t } from "./components/reke-alert/reke-alert.js";
|
|
3
|
+
import { RekeBadge as n } from "./components/reke-badge/reke-badge.js";
|
|
4
|
+
import { RekeButton as r } from "./components/reke-button/reke-button.js";
|
|
5
|
+
import { RekeCard as i } from "./components/reke-card/reke-card.js";
|
|
6
|
+
import { RekeCheckbox as a } from "./components/reke-checkbox/reke-checkbox.js";
|
|
7
|
+
import { RekeChip as o } from "./components/reke-chip/reke-chip.js";
|
|
8
|
+
import { RekeDateRange as s } from "./components/reke-date-range/reke-date-range.js";
|
|
9
|
+
import { RekeDialog as c } from "./components/reke-dialog/reke-dialog.js";
|
|
10
|
+
import { RekeFileUpload as l } from "./components/reke-file-upload/reke-file-upload.js";
|
|
11
|
+
import { RekeInput as u } from "./components/reke-input/reke-input.js";
|
|
12
|
+
import { RekeSelect as d } from "./components/reke-select/reke-select.js";
|
|
13
|
+
import { RekeTable as f } from "./components/reke-table/reke-table.js";
|
|
14
|
+
import { RekeTextarea as p } from "./components/reke-textarea/reke-textarea.js";
|
|
15
|
+
import { RekeToast as m } from "./components/reke-toast/reke-toast.js";
|
|
16
|
+
import { RekeToggle as h } from "./components/reke-toggle/reke-toggle.js";
|
|
17
|
+
import { RekeTooltip as g } from "./components/reke-tooltip/reke-tooltip.js";
|
|
18
|
+
export { t as RekeAlert, n as RekeBadge, r as RekeButton, i as RekeCard, a as RekeCheckbox, o as RekeChip, s as RekeDateRange, c as RekeDialog, e as RekeElement, l as RekeFileUpload, u as RekeInput, d as RekeSelect, f as RekeTable, p as RekeTextarea, m as RekeToast, h as RekeToggle, g as RekeTooltip };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../lit-html/directives/ref.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as e } from "./directive-helpers.js";
|
|
2
|
+
import { i as t, t as n } from "./directive.js";
|
|
3
|
+
//#region node_modules/lit-html/async-directive.js
|
|
4
|
+
var r = (e, t) => {
|
|
5
|
+
let n = e._$AN;
|
|
6
|
+
if (n === void 0) return !1;
|
|
7
|
+
for (let e of n) e._$AO?.(t, !1), r(e, t);
|
|
8
|
+
return !0;
|
|
9
|
+
}, i = (e) => {
|
|
10
|
+
let t, n;
|
|
11
|
+
do {
|
|
12
|
+
if ((t = e._$AM) === void 0) break;
|
|
13
|
+
n = t._$AN, n.delete(e), e = t;
|
|
14
|
+
} while (n?.size === 0);
|
|
15
|
+
}, a = (e) => {
|
|
16
|
+
for (let t; t = e._$AM; e = t) {
|
|
17
|
+
let n = t._$AN;
|
|
18
|
+
if (n === void 0) t._$AN = n = /* @__PURE__ */ new Set();
|
|
19
|
+
else if (n.has(e)) break;
|
|
20
|
+
n.add(e), c(t);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function o(e) {
|
|
24
|
+
this._$AN === void 0 ? this._$AM = e : (i(this), this._$AM = e, a(this));
|
|
25
|
+
}
|
|
26
|
+
function s(e, t = !1, n = 0) {
|
|
27
|
+
let a = this._$AH, o = this._$AN;
|
|
28
|
+
if (o !== void 0 && o.size !== 0) if (t) if (Array.isArray(a)) for (let e = n; e < a.length; e++) r(a[e], !1), i(a[e]);
|
|
29
|
+
else a != null && (r(a, !1), i(a));
|
|
30
|
+
else r(this, e);
|
|
31
|
+
}
|
|
32
|
+
var c = (e) => {
|
|
33
|
+
e.type == n.CHILD && (e._$AP ??= s, e._$AQ ??= o);
|
|
34
|
+
}, l = class extends t {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments), this._$AN = void 0;
|
|
37
|
+
}
|
|
38
|
+
_$AT(e, t, n) {
|
|
39
|
+
super._$AT(e, t, n), a(this), this.isConnected = e._$AU;
|
|
40
|
+
}
|
|
41
|
+
_$AO(e, t = !0) {
|
|
42
|
+
e !== this.isConnected && (this.isConnected = e, e ? this.reconnected?.() : this.disconnected?.()), t && (r(this, e), i(this));
|
|
43
|
+
}
|
|
44
|
+
setValue(t) {
|
|
45
|
+
if (e(this._$Ct)) this._$Ct._$AI(t, this);
|
|
46
|
+
else {
|
|
47
|
+
let e = [...this._$Ct._$AH];
|
|
48
|
+
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
disconnected() {}
|
|
52
|
+
reconnected() {}
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { l as f };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region node_modules/lit-html/directive.js
|
|
2
|
+
var e = {
|
|
3
|
+
ATTRIBUTE: 1,
|
|
4
|
+
CHILD: 2,
|
|
5
|
+
PROPERTY: 3,
|
|
6
|
+
BOOLEAN_ATTRIBUTE: 4,
|
|
7
|
+
EVENT: 5,
|
|
8
|
+
ELEMENT: 6
|
|
9
|
+
}, t = (e) => (...t) => ({
|
|
10
|
+
_$litDirective$: e,
|
|
11
|
+
values: t
|
|
12
|
+
}), n = class {
|
|
13
|
+
constructor(e) {}
|
|
14
|
+
get _$AU() {
|
|
15
|
+
return this._$AM._$AU;
|
|
16
|
+
}
|
|
17
|
+
_$AT(e, t, n) {
|
|
18
|
+
this._$Ct = e, this._$AM = t, this._$Ci = n;
|
|
19
|
+
}
|
|
20
|
+
_$AS(e, t) {
|
|
21
|
+
return this.update(e, t);
|
|
22
|
+
}
|
|
23
|
+
update(e, t) {
|
|
24
|
+
return this.render(...t);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { t as e, n as i, e as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { A as e } from "../lit-html.js";
|
|
2
|
+
import { e as t } from "../directive.js";
|
|
3
|
+
import { f as n } from "../async-directive.js";
|
|
4
|
+
//#region node_modules/lit-html/directives/ref.js
|
|
5
|
+
var r = /* @__PURE__ */ new WeakMap(), i = t(class extends n {
|
|
6
|
+
render(t) {
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
update(t, [n]) {
|
|
10
|
+
let r = n !== this.G;
|
|
11
|
+
return r && this.rt(void 0), (r || this.lt !== this.ct) && (this.G = n, this.ht = t.options?.host, this.rt(this.ct = t.element)), e;
|
|
12
|
+
}
|
|
13
|
+
rt(e) {
|
|
14
|
+
if (this.G !== void 0) if (this.isConnected || (e = void 0), typeof this.G == "function") {
|
|
15
|
+
let t = this.ht ?? globalThis, n = r.get(t);
|
|
16
|
+
n === void 0 && (n = /* @__PURE__ */ new WeakMap(), r.set(t, n)), n.get(this.G) !== void 0 && this.G.call(this.ht, void 0), n.set(this.G, e), e !== void 0 && this.G.call(this.ht, e);
|
|
17
|
+
} else this.G.value = e;
|
|
18
|
+
}
|
|
19
|
+
get lt() {
|
|
20
|
+
return typeof this.G == "function" ? r.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
|
|
21
|
+
}
|
|
22
|
+
disconnected() {
|
|
23
|
+
this.lt === this.ct && this.rt(void 0);
|
|
24
|
+
}
|
|
25
|
+
reconnected() {
|
|
26
|
+
this.rt(this.ct);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as n };
|