reke-ui 0.4.2 → 0.5.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/custom-elements.json +198 -0
- package/dist/components/reke-progress/reke-progress.d.ts +54 -0
- package/dist/components/reke-progress/reke-progress.d.ts.map +1 -0
- package/dist/components/reke-progress/reke-progress.js +81 -0
- package/dist/components/reke-progress/reke-progress.styles.d.ts +2 -0
- package/dist/components/reke-progress/reke-progress.styles.d.ts.map +1 -0
- package/dist/components/reke-progress/reke-progress.styles.js +70 -0
- package/dist/components/reke-toggle/reke-toggle.d.ts +12 -0
- package/dist/components/reke-toggle/reke-toggle.d.ts.map +1 -1
- package/dist/components/reke-toggle/reke-toggle.js +7 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/react.d.ts +3 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +55 -50
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +8 -0
- package/package.json +5 -1
package/custom-elements.json
CHANGED
|
@@ -3494,6 +3494,178 @@
|
|
|
3494
3494
|
}
|
|
3495
3495
|
]
|
|
3496
3496
|
},
|
|
3497
|
+
{
|
|
3498
|
+
"kind": "javascript-module",
|
|
3499
|
+
"path": "src/components/reke-progress/reke-progress.ts",
|
|
3500
|
+
"declarations": [
|
|
3501
|
+
{
|
|
3502
|
+
"kind": "class",
|
|
3503
|
+
"description": "",
|
|
3504
|
+
"name": "RekeProgress",
|
|
3505
|
+
"cssProperties": [
|
|
3506
|
+
{
|
|
3507
|
+
"description": "Height of the bar.",
|
|
3508
|
+
"name": "--reke-progress-height",
|
|
3509
|
+
"default": "4px"
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"description": "Border radius of the track and segments.",
|
|
3513
|
+
"name": "--reke-progress-radius",
|
|
3514
|
+
"default": "9999px"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"description": "Background color of the empty track.",
|
|
3518
|
+
"name": "--reke-progress-track-color",
|
|
3519
|
+
"default": "#2A2A2A"
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
"description": "Default fill color when `color` is not set.",
|
|
3523
|
+
"name": "--reke-progress-color",
|
|
3524
|
+
"default": "#22C55E"
|
|
3525
|
+
}
|
|
3526
|
+
],
|
|
3527
|
+
"cssParts": [
|
|
3528
|
+
{
|
|
3529
|
+
"description": "The outer track element carrying the progressbar role.",
|
|
3530
|
+
"name": "track"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"description": "Each filled segment inside the track.",
|
|
3534
|
+
"name": "segment"
|
|
3535
|
+
}
|
|
3536
|
+
],
|
|
3537
|
+
"members": [
|
|
3538
|
+
{
|
|
3539
|
+
"kind": "field",
|
|
3540
|
+
"name": "value",
|
|
3541
|
+
"type": {
|
|
3542
|
+
"text": "number"
|
|
3543
|
+
},
|
|
3544
|
+
"default": "0",
|
|
3545
|
+
"description": "Fill percentage used in single-bar mode. Normalized to 0-100 on update, so\nthe property and its reflected attribute always match what is rendered.\nNon-finite input becomes 0.",
|
|
3546
|
+
"attribute": "value",
|
|
3547
|
+
"reflects": true
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"kind": "field",
|
|
3551
|
+
"name": "color",
|
|
3552
|
+
"type": {
|
|
3553
|
+
"text": "string"
|
|
3554
|
+
},
|
|
3555
|
+
"default": "''",
|
|
3556
|
+
"description": "Fill color for single-bar and indeterminate modes. Empty means the token default.",
|
|
3557
|
+
"attribute": "color",
|
|
3558
|
+
"reflects": true
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"kind": "field",
|
|
3562
|
+
"name": "segments",
|
|
3563
|
+
"type": {
|
|
3564
|
+
"text": "RekeProgressSegment[]"
|
|
3565
|
+
},
|
|
3566
|
+
"default": "[]",
|
|
3567
|
+
"description": "Multi-segment mode. Max 3 segments; each value is that segment's width in percent.\nA NON-EMPTY array takes precedence over `value`; an empty array renders the\nsingle-value bar."
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"kind": "field",
|
|
3571
|
+
"name": "indeterminate",
|
|
3572
|
+
"type": {
|
|
3573
|
+
"text": "boolean"
|
|
3574
|
+
},
|
|
3575
|
+
"default": "false",
|
|
3576
|
+
"description": "Animated loading bar. Ignores `value` and `segments`.",
|
|
3577
|
+
"attribute": "indeterminate",
|
|
3578
|
+
"reflects": true
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"kind": "field",
|
|
3582
|
+
"name": "hostLabel",
|
|
3583
|
+
"type": {
|
|
3584
|
+
"text": "string | null"
|
|
3585
|
+
},
|
|
3586
|
+
"privacy": "private",
|
|
3587
|
+
"default": "null",
|
|
3588
|
+
"description": "Mirror of the host `aria-label` attribute, forwarded to the inner progressbar.\nDeclared as a reactive property (not a public API prop) so Lit observes the\nattribute and re-renders when it changes. The name differs from the native\n`ariaLabel` DOM property to avoid fighting native ARIA reflection.",
|
|
3589
|
+
"attribute": "aria-label"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"kind": "method",
|
|
3593
|
+
"name": "resolveSegments",
|
|
3594
|
+
"privacy": "private",
|
|
3595
|
+
"return": {
|
|
3596
|
+
"type": {
|
|
3597
|
+
"text": "{ list: RekeProgressSegment[]; total: number }"
|
|
3598
|
+
}
|
|
3599
|
+
},
|
|
3600
|
+
"description": "Visible segments with accumulated width clamped at 100%."
|
|
3601
|
+
}
|
|
3602
|
+
],
|
|
3603
|
+
"attributes": [
|
|
3604
|
+
{
|
|
3605
|
+
"name": "value",
|
|
3606
|
+
"type": {
|
|
3607
|
+
"text": "number"
|
|
3608
|
+
},
|
|
3609
|
+
"default": "0",
|
|
3610
|
+
"description": "Fill percentage used in single-bar mode. Normalized to 0-100 on update, so\nthe property and its reflected attribute always match what is rendered.\nNon-finite input becomes 0.",
|
|
3611
|
+
"fieldName": "value"
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "color",
|
|
3615
|
+
"type": {
|
|
3616
|
+
"text": "string"
|
|
3617
|
+
},
|
|
3618
|
+
"default": "''",
|
|
3619
|
+
"description": "Fill color for single-bar and indeterminate modes. Empty means the token default.",
|
|
3620
|
+
"fieldName": "color"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"name": "indeterminate",
|
|
3624
|
+
"type": {
|
|
3625
|
+
"text": "boolean"
|
|
3626
|
+
},
|
|
3627
|
+
"default": "false",
|
|
3628
|
+
"description": "Animated loading bar. Ignores `value` and `segments`.",
|
|
3629
|
+
"fieldName": "indeterminate"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
"name": "aria-label",
|
|
3633
|
+
"type": {
|
|
3634
|
+
"text": "string | null"
|
|
3635
|
+
},
|
|
3636
|
+
"default": "null",
|
|
3637
|
+
"description": "Mirror of the host `aria-label` attribute, forwarded to the inner progressbar.\nDeclared as a reactive property (not a public API prop) so Lit observes the\nattribute and re-renders when it changes. The name differs from the native\n`ariaLabel` DOM property to avoid fighting native ARIA reflection.",
|
|
3638
|
+
"fieldName": "hostLabel"
|
|
3639
|
+
}
|
|
3640
|
+
],
|
|
3641
|
+
"superclass": {
|
|
3642
|
+
"name": "RekeElement",
|
|
3643
|
+
"module": "/src/shared/base-element.js"
|
|
3644
|
+
},
|
|
3645
|
+
"tagName": "reke-progress",
|
|
3646
|
+
"customElement": true,
|
|
3647
|
+
"summary": "A thin progress bar supporting single-value, multi-segment, and indeterminate modes."
|
|
3648
|
+
}
|
|
3649
|
+
],
|
|
3650
|
+
"exports": [
|
|
3651
|
+
{
|
|
3652
|
+
"kind": "js",
|
|
3653
|
+
"name": "RekeProgress",
|
|
3654
|
+
"declaration": {
|
|
3655
|
+
"name": "RekeProgress",
|
|
3656
|
+
"module": "src/components/reke-progress/reke-progress.ts"
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
"kind": "custom-element-definition",
|
|
3661
|
+
"name": "reke-progress",
|
|
3662
|
+
"declaration": {
|
|
3663
|
+
"name": "RekeProgress",
|
|
3664
|
+
"module": "src/components/reke-progress/reke-progress.ts"
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
]
|
|
3668
|
+
},
|
|
3497
3669
|
{
|
|
3498
3670
|
"kind": "javascript-module",
|
|
3499
3671
|
"path": "src/components/reke-select/reke-select.ts",
|
|
@@ -5454,6 +5626,10 @@
|
|
|
5454
5626
|
{
|
|
5455
5627
|
"description": "The inner sliding thumb element.",
|
|
5456
5628
|
"name": "thumb"
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
"description": "The visible label text.",
|
|
5632
|
+
"name": "label"
|
|
5457
5633
|
}
|
|
5458
5634
|
],
|
|
5459
5635
|
"members": [
|
|
@@ -5484,8 +5660,20 @@
|
|
|
5484
5660
|
"text": "string"
|
|
5485
5661
|
},
|
|
5486
5662
|
"default": "''",
|
|
5663
|
+
"description": "Visible text next to the switch, and its accessible name.",
|
|
5487
5664
|
"attribute": "label"
|
|
5488
5665
|
},
|
|
5666
|
+
{
|
|
5667
|
+
"kind": "field",
|
|
5668
|
+
"name": "labelHidden",
|
|
5669
|
+
"type": {
|
|
5670
|
+
"text": "boolean"
|
|
5671
|
+
},
|
|
5672
|
+
"default": "false",
|
|
5673
|
+
"description": "Keeps `label` as the accessible name without rendering it.",
|
|
5674
|
+
"attribute": "label-hidden",
|
|
5675
|
+
"reflects": true
|
|
5676
|
+
},
|
|
5489
5677
|
{
|
|
5490
5678
|
"kind": "method",
|
|
5491
5679
|
"name": "toggle",
|
|
@@ -5539,7 +5727,17 @@
|
|
|
5539
5727
|
"text": "string"
|
|
5540
5728
|
},
|
|
5541
5729
|
"default": "''",
|
|
5730
|
+
"description": "Visible text next to the switch, and its accessible name.",
|
|
5542
5731
|
"fieldName": "label"
|
|
5732
|
+
},
|
|
5733
|
+
{
|
|
5734
|
+
"name": "label-hidden",
|
|
5735
|
+
"type": {
|
|
5736
|
+
"text": "boolean"
|
|
5737
|
+
},
|
|
5738
|
+
"default": "false",
|
|
5739
|
+
"description": "Keeps `label` as the accessible name without rendering it.",
|
|
5740
|
+
"fieldName": "labelHidden"
|
|
5543
5741
|
}
|
|
5544
5742
|
],
|
|
5545
5743
|
"superclass": {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type PropertyValues } from 'lit';
|
|
2
|
+
import { RekeElement } from '../../shared/base-element.js';
|
|
3
|
+
export type RekeProgressSegment = {
|
|
4
|
+
value: number;
|
|
5
|
+
color: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @tag reke-progress
|
|
9
|
+
* @summary A thin progress bar supporting single-value, multi-segment, and indeterminate modes.
|
|
10
|
+
*
|
|
11
|
+
* @csspart track - The outer track element carrying the progressbar role.
|
|
12
|
+
* @csspart segment - Each filled segment inside the track.
|
|
13
|
+
*
|
|
14
|
+
* @cssprop [--reke-progress-height=4px] - Height of the bar.
|
|
15
|
+
* @cssprop [--reke-progress-radius=9999px] - Border radius of the track and segments.
|
|
16
|
+
* @cssprop [--reke-progress-track-color=#2A2A2A] - Background color of the empty track.
|
|
17
|
+
* @cssprop [--reke-progress-color=#22C55E] - Default fill color when `color` is not set.
|
|
18
|
+
*/
|
|
19
|
+
export declare class RekeProgress extends RekeElement {
|
|
20
|
+
static styles: import("lit").CSSResult[];
|
|
21
|
+
/**
|
|
22
|
+
* Fill percentage used in single-bar mode. Normalized to 0-100 on update, so
|
|
23
|
+
* the property and its reflected attribute always match what is rendered.
|
|
24
|
+
* Non-finite input becomes 0.
|
|
25
|
+
*/
|
|
26
|
+
value: number;
|
|
27
|
+
/** Fill color for single-bar and indeterminate modes. Empty means the token default. */
|
|
28
|
+
color: string;
|
|
29
|
+
/**
|
|
30
|
+
* Multi-segment mode. Max 3 segments; each value is that segment's width in percent.
|
|
31
|
+
* A NON-EMPTY array takes precedence over `value`; an empty array renders the
|
|
32
|
+
* single-value bar.
|
|
33
|
+
*/
|
|
34
|
+
segments: RekeProgressSegment[];
|
|
35
|
+
/** Animated loading bar. Ignores `value` and `segments`. */
|
|
36
|
+
indeterminate: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Mirror of the host `aria-label` attribute, forwarded to the inner progressbar.
|
|
39
|
+
* Declared as a reactive property (not a public API prop) so Lit observes the
|
|
40
|
+
* attribute and re-renders when it changes. The name differs from the native
|
|
41
|
+
* `ariaLabel` DOM property to avoid fighting native ARIA reflection.
|
|
42
|
+
*/
|
|
43
|
+
private hostLabel;
|
|
44
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
45
|
+
/** Visible segments with accumulated width clamped at 100%. */
|
|
46
|
+
private resolveSegments;
|
|
47
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
48
|
+
}
|
|
49
|
+
declare global {
|
|
50
|
+
interface HTMLElementTagNameMap {
|
|
51
|
+
'reke-progress': RekeProgress;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=reke-progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reke-progress.d.ts","sourceRoot":"","sources":["../../../src/components/reke-progress/reke-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AASF;;;;;;;;;;;GAWG;AACH,qBACa,YAAa,SAAQ,WAAW;IAC3C,OAAgB,MAAM,4BAAU;IAEhC;;;;OAIG;IAEH,KAAK,SAAK;IAEV,wFAAwF;IAExF,KAAK,SAAM;IAEX;;;;OAIG;IAEH,QAAQ,EAAE,mBAAmB,EAAE,CAAM;IAErC,4DAA4D;IAE5D,aAAa,UAAS;IAEtB;;;;;OAKG;IAEH,OAAO,CAAC,SAAS,CAAuB;cAErB,UAAU,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IASlE,+DAA+D;IAC/D,OAAO,CAAC,eAAe;IAUd,MAAM;CAoDhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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-progress.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 { styleMap as s } from "lit/directives/style-map.js";
|
|
7
|
+
//#region src/components/reke-progress/reke-progress.ts
|
|
8
|
+
var c = 3;
|
|
9
|
+
function l(e) {
|
|
10
|
+
return Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : 0;
|
|
11
|
+
}
|
|
12
|
+
var u = class extends e {
|
|
13
|
+
constructor(...e) {
|
|
14
|
+
super(...e), this.value = 0, this.color = "", this.segments = [], this.indeterminate = !1, this.hostLabel = null;
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = n;
|
|
18
|
+
}
|
|
19
|
+
willUpdate(e) {
|
|
20
|
+
if (e.has("value")) {
|
|
21
|
+
let e = l(Number(this.value));
|
|
22
|
+
this.value !== e && (this.value = e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
resolveSegments() {
|
|
26
|
+
let e = 0;
|
|
27
|
+
return {
|
|
28
|
+
list: this.segments.slice(0, c).map((t) => {
|
|
29
|
+
let n = Math.min(l(t.value), 100 - e);
|
|
30
|
+
return e += n, {
|
|
31
|
+
value: n,
|
|
32
|
+
color: t.color
|
|
33
|
+
};
|
|
34
|
+
}),
|
|
35
|
+
total: e
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
let { list: e, total: t } = this.resolveSegments(), n = e.length > 0, a = l(this.value), o = this.indeterminate ? i : n ? t : a;
|
|
40
|
+
return r`
|
|
41
|
+
<div
|
|
42
|
+
part="track"
|
|
43
|
+
class="track"
|
|
44
|
+
role="progressbar"
|
|
45
|
+
aria-label=${this.hostLabel ?? i}
|
|
46
|
+
aria-valuemin="0"
|
|
47
|
+
aria-valuemax="100"
|
|
48
|
+
aria-valuenow=${o}
|
|
49
|
+
>
|
|
50
|
+
${this.indeterminate ? r`<div
|
|
51
|
+
part="segment"
|
|
52
|
+
class="segment segment--indeterminate"
|
|
53
|
+
style=${s({ backgroundColor: this.color || void 0 })}
|
|
54
|
+
></div>` : n ? e.map((e) => r`<div
|
|
55
|
+
part="segment"
|
|
56
|
+
class="segment"
|
|
57
|
+
style=${s({
|
|
58
|
+
width: `${e.value}%`,
|
|
59
|
+
backgroundColor: e.color || void 0
|
|
60
|
+
})}
|
|
61
|
+
></div>`) : r`<div
|
|
62
|
+
part="segment"
|
|
63
|
+
class="segment"
|
|
64
|
+
style=${s({
|
|
65
|
+
width: `${a}%`,
|
|
66
|
+
backgroundColor: this.color || void 0
|
|
67
|
+
})}
|
|
68
|
+
></div>`}
|
|
69
|
+
</div>
|
|
70
|
+
`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
t([o({
|
|
74
|
+
type: Number,
|
|
75
|
+
reflect: !0
|
|
76
|
+
})], u.prototype, "value", void 0), t([o({ reflect: !0 })], u.prototype, "color", void 0), t([o({ attribute: !1 })], u.prototype, "segments", void 0), t([o({
|
|
77
|
+
type: Boolean,
|
|
78
|
+
reflect: !0
|
|
79
|
+
})], u.prototype, "indeterminate", void 0), t([o({ attribute: "aria-label" })], u.prototype, "hostLabel", void 0), u = t([a("reke-progress")], u);
|
|
80
|
+
//#endregion
|
|
81
|
+
export { u as RekeProgress };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reke-progress.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-progress/reke-progress.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BAmElB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-progress/reke-progress.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.track {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
width: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
height: var(--reke-progress-height, 4px);
|
|
16
|
+
border-radius: var(--reke-progress-radius, 9999px);
|
|
17
|
+
background-color: var(--reke-progress-track-color, #2A2A2A);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.segment {
|
|
21
|
+
height: 100%;
|
|
22
|
+
background-color: var(--reke-progress-color, #22C55E);
|
|
23
|
+
transition: width var(--reke-transition-normal, 0.2s ease);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.segment:first-child {
|
|
27
|
+
border-top-left-radius: var(--reke-progress-radius, 9999px);
|
|
28
|
+
border-bottom-left-radius: var(--reke-progress-radius, 9999px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.segment:last-child {
|
|
32
|
+
border-top-right-radius: var(--reke-progress-radius, 9999px);
|
|
33
|
+
border-bottom-right-radius: var(--reke-progress-radius, 9999px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* === Indeterminate === */
|
|
37
|
+
|
|
38
|
+
.segment--indeterminate {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
width: 40%;
|
|
43
|
+
border-radius: var(--reke-progress-radius, 9999px);
|
|
44
|
+
transition: none;
|
|
45
|
+
animation: reke-progress-slide 1.4s ease-in-out infinite;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes reke-progress-slide {
|
|
49
|
+
from {
|
|
50
|
+
transform: translateX(-100%);
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
transform: translateX(250%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (prefers-reduced-motion: reduce) {
|
|
58
|
+
.segment--indeterminate {
|
|
59
|
+
animation: none;
|
|
60
|
+
width: 100%;
|
|
61
|
+
opacity: 0.6;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.segment {
|
|
65
|
+
transition: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`];
|
|
69
|
+
//#endregion
|
|
70
|
+
export { n as styles };
|
|
@@ -5,8 +5,12 @@ import { RekeElement } from '../../shared/base-element.js';
|
|
|
5
5
|
*
|
|
6
6
|
* @fires reke-change - Fired when the toggle state changes, with `{ checked: boolean }` detail.
|
|
7
7
|
*
|
|
8
|
+
* @property label - Visible text next to the switch, and its accessible name.
|
|
9
|
+
* @property labelHidden - Keeps `label` as the accessible name without rendering it.
|
|
10
|
+
*
|
|
8
11
|
* @csspart track - The outer track element.
|
|
9
12
|
* @csspart thumb - The inner sliding thumb element.
|
|
13
|
+
* @csspart label - The visible label text.
|
|
10
14
|
*
|
|
11
15
|
* @cssprop [--reke-color-primary=#22C55E] - Track background when checked.
|
|
12
16
|
* @cssprop [--reke-color-on-primary=#0A0A0B] - Thumb color when checked.
|
|
@@ -19,7 +23,15 @@ export declare class RekeToggle extends RekeElement {
|
|
|
19
23
|
static styles: import("lit").CSSResult[];
|
|
20
24
|
checked: boolean;
|
|
21
25
|
disabled: boolean;
|
|
26
|
+
/** Visible text rendered next to the switch. Doubles as its accessible name. */
|
|
22
27
|
label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Renders the switch on its own while keeping `label` as its accessible name.
|
|
30
|
+
*
|
|
31
|
+
* Without this, a bare toggle has no name at all: the `role="switch"` lives in
|
|
32
|
+
* the shadow DOM, so an `aria-label` set on the host never reaches it.
|
|
33
|
+
*/
|
|
34
|
+
labelHidden: boolean;
|
|
23
35
|
private toggle;
|
|
24
36
|
private handleClick;
|
|
25
37
|
private handleKeyDown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/reke-toggle/reke-toggle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D
|
|
1
|
+
{"version":3,"file":"reke-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/reke-toggle/reke-toggle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,UAAW,SAAQ,WAAW;IACzC,OAAgB,MAAM,4BAAU;IAGhC,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAEjB,gFAAgF;IAEhF,KAAK,SAAM;IAEX;;;;;OAKG;IAEH,WAAW,UAAS;IAEpB,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,aAAa;IAOZ,MAAM;CAsBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
|
@@ -6,7 +6,7 @@ import { customElement as a, property as o } from "lit/decorators.js";
|
|
|
6
6
|
//#region src/components/reke-toggle/reke-toggle.ts
|
|
7
7
|
var s = class extends e {
|
|
8
8
|
constructor(...e) {
|
|
9
|
-
super(...e), this.checked = !1, this.disabled = !1, this.label = "";
|
|
9
|
+
super(...e), this.checked = !1, this.disabled = !1, this.label = "", this.labelHidden = !1;
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.styles = n;
|
|
@@ -34,7 +34,7 @@ var s = class extends e {
|
|
|
34
34
|
<div part="track" class="track ${this.checked ? "track--checked" : ""}">
|
|
35
35
|
<div part="thumb" class="thumb ${this.checked ? "thumb--checked" : ""}"></div>
|
|
36
36
|
</div>
|
|
37
|
-
${this.label ? r`<span class="label">${this.label}</span>` : i}
|
|
37
|
+
${this.label && !this.labelHidden ? r`<span part="label" class="label">${this.label}</span>` : i}
|
|
38
38
|
</div>
|
|
39
39
|
`;
|
|
40
40
|
}
|
|
@@ -45,6 +45,10 @@ t([o({
|
|
|
45
45
|
})], s.prototype, "checked", void 0), t([o({
|
|
46
46
|
type: Boolean,
|
|
47
47
|
reflect: !0
|
|
48
|
-
})], s.prototype, "disabled", void 0), t([o()], s.prototype, "label", void 0),
|
|
48
|
+
})], s.prototype, "disabled", void 0), t([o()], s.prototype, "label", void 0), t([o({
|
|
49
|
+
type: Boolean,
|
|
50
|
+
reflect: !0,
|
|
51
|
+
attribute: "label-hidden"
|
|
52
|
+
})], s.prototype, "labelHidden", void 0), s = t([a("reke-toggle")], s);
|
|
49
53
|
//#endregion
|
|
50
54
|
export { s as RekeToggle };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type { MenuItemVariant } from './components/reke-menu-item/reke-menu-item
|
|
|
23
23
|
export { RekeMenuItem } from './components/reke-menu-item/reke-menu-item.js';
|
|
24
24
|
export type { PieChartDatum, PieChartSelectDetail, PieChartVariant, } from './components/reke-pie-chart/reke-pie-chart.js';
|
|
25
25
|
export { RekePieChart } from './components/reke-pie-chart/reke-pie-chart.js';
|
|
26
|
+
export type { RekeProgressSegment } from './components/reke-progress/reke-progress.js';
|
|
27
|
+
export { RekeProgress } from './components/reke-progress/reke-progress.js';
|
|
26
28
|
export type { SelectSize } from './components/reke-select/reke-select.js';
|
|
27
29
|
export { RekeSelect } from './components/reke-select/reke-select.js';
|
|
28
30
|
export type { Cleanup, ExpandedRowElement, GetRowKey, RowKey, TableColumn, TableRow, } from './components/reke-table/reke-table.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,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,CA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AC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,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
CHANGED
|
@@ -13,10 +13,11 @@ import { RekeInput as d } from "./components/reke-input/reke-input.js";
|
|
|
13
13
|
import { RekeMenu as f } from "./components/reke-menu/reke-menu.js";
|
|
14
14
|
import { RekeMenuItem as p } from "./components/reke-menu-item/reke-menu-item.js";
|
|
15
15
|
import { RekePieChart as m } from "./components/reke-pie-chart/reke-pie-chart.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
16
|
+
import { RekeProgress as h } from "./components/reke-progress/reke-progress.js";
|
|
17
|
+
import { RekeSelect as g } from "./components/reke-select/reke-select.js";
|
|
18
|
+
import { RekeTable as _ } from "./components/reke-table/reke-table.js";
|
|
19
|
+
import { RekeTextarea as v } from "./components/reke-textarea/reke-textarea.js";
|
|
20
|
+
import { RekeToast as y } from "./components/reke-toast/reke-toast.js";
|
|
21
|
+
import { RekeToggle as b } from "./components/reke-toggle/reke-toggle.js";
|
|
22
|
+
import { RekeTooltip as x } from "./components/reke-tooltip/reke-tooltip.js";
|
|
23
|
+
export { t as RekeAlert, n as RekeBadge, r as RekeButton, i as RekeCard, a as RekeCheckbox, o as RekeChip, s as RekeCombobox, c as RekeDateRange, l as RekeDialog, e as RekeElement, u as RekeFileUpload, d as RekeInput, f as RekeMenu, p as RekeMenuItem, m as RekePieChart, h as RekeProgress, g as RekeSelect, _ as RekeTable, v as RekeTextarea, y as RekeToast, b as RekeToggle, x as RekeTooltip };
|
package/dist/react.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.j
|
|
|
12
12
|
import { RekeInput } from './components/reke-input/reke-input.js';
|
|
13
13
|
import { RekeMenu } from './components/reke-menu/reke-menu.js';
|
|
14
14
|
import { RekeMenuItem } from './components/reke-menu-item/reke-menu-item.js';
|
|
15
|
+
import { RekeProgress } from './components/reke-progress/reke-progress.js';
|
|
15
16
|
import { RekeSelect } from './components/reke-select/reke-select.js';
|
|
16
17
|
import { RekeTextarea } from './components/reke-textarea/reke-textarea.js';
|
|
17
18
|
import { RekeToast } from './components/reke-toast/reke-toast.js';
|
|
@@ -47,6 +48,8 @@ export declare const Toggle: import("@lit/react").ReactWebComponent<RekeToggle,
|
|
|
47
48
|
}>>;
|
|
48
49
|
}>;
|
|
49
50
|
export declare const Badge: import("@lit/react").ReactWebComponent<RekeBadge, {}>;
|
|
51
|
+
export declare const Progress: import("@lit/react").ReactWebComponent<RekeProgress, {}>;
|
|
52
|
+
export type { RekeProgressSegment } from './components/reke-progress/reke-progress.js';
|
|
50
53
|
export declare const Card: import("@lit/react").ReactWebComponent<RekeCard, {}>;
|
|
51
54
|
export declare const Tooltip: import("@lit/react").ReactWebComponent<RekeTooltip, {}>;
|
|
52
55
|
export declare const Dialog: import("@lit/react").ReactWebComponent<RekeDialog, {
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,eAAO,MAAM,MAAM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UAAU;sBAKqB,SAAS,CAAC,WAAW,CAAC;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;qBACxC,SAAS,CAAC,WAAW,CAAC;EAE9D,CAAC;AAEH,eAAO,MAAM,KAAK;iBAKe,SAAS,CAAC,WAAW,CAAC;EAErD,CAAC;AAEH,eAAO,MAAM,KAAK;iBAKe,SAAS,CAAC,WAAW,CAAC;kBACpB,SAAS,CAAC,WAAW,CAAC;EAEvD,CAAC;AAEH,eAAO,MAAM,IAAI;iBAKgB,SAAS,CAAC,WAAW,CAAC;mBAClB,SAAS,CAAC,WAAW,CAAC;EAEzD,CAAC"}
|
package/dist/react.js
CHANGED
|
@@ -11,123 +11,128 @@ import { RekeFileUpload as l } from "./components/reke-file-upload/reke-file-upl
|
|
|
11
11
|
import { RekeInput as u } from "./components/reke-input/reke-input.js";
|
|
12
12
|
import { RekeMenu as d } from "./components/reke-menu/reke-menu.js";
|
|
13
13
|
import { RekeMenuItem as f } from "./components/reke-menu-item/reke-menu-item.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import b from "react";
|
|
14
|
+
import { RekeProgress as p } from "./components/reke-progress/reke-progress.js";
|
|
15
|
+
import { RekeSelect as m } from "./components/reke-select/reke-select.js";
|
|
16
|
+
import { RekeTextarea as h } from "./components/reke-textarea/reke-textarea.js";
|
|
17
|
+
import { RekeToast as g } from "./components/reke-toast/reke-toast.js";
|
|
18
|
+
import { RekeToggle as _ } from "./components/reke-toggle/reke-toggle.js";
|
|
19
|
+
import { RekeTooltip as v } from "./components/reke-tooltip/reke-tooltip.js";
|
|
20
|
+
import { Table as y } from "./react-bridge/table.js";
|
|
21
|
+
import { createComponent as b } from "@lit/react";
|
|
22
|
+
import x from "react";
|
|
22
23
|
//#region src/react.ts
|
|
23
|
-
var
|
|
24
|
+
var S = b({
|
|
24
25
|
tagName: "reke-button",
|
|
25
26
|
elementClass: n,
|
|
26
|
-
react:
|
|
27
|
+
react: x,
|
|
27
28
|
events: { onRekeClick: "reke-click" }
|
|
28
|
-
}),
|
|
29
|
+
}), C = b({
|
|
29
30
|
tagName: "reke-input",
|
|
30
31
|
elementClass: u,
|
|
31
|
-
react:
|
|
32
|
+
react: x,
|
|
32
33
|
events: {
|
|
33
34
|
onRekeInput: "reke-input",
|
|
34
35
|
onRekeChange: "reke-change"
|
|
35
36
|
}
|
|
36
|
-
}),
|
|
37
|
+
}), w = b({
|
|
37
38
|
tagName: "reke-textarea",
|
|
38
|
-
elementClass:
|
|
39
|
-
react:
|
|
39
|
+
elementClass: h,
|
|
40
|
+
react: x,
|
|
40
41
|
events: {
|
|
41
42
|
onRekeInput: "reke-input",
|
|
42
43
|
onRekeChange: "reke-change"
|
|
43
44
|
}
|
|
44
|
-
}),
|
|
45
|
+
}), T = b({
|
|
45
46
|
tagName: "reke-checkbox",
|
|
46
47
|
elementClass: i,
|
|
47
|
-
react:
|
|
48
|
+
react: x,
|
|
48
49
|
events: { onRekeChange: "reke-change" }
|
|
49
|
-
}),
|
|
50
|
+
}), E = b({
|
|
50
51
|
tagName: "reke-toggle",
|
|
51
|
-
elementClass:
|
|
52
|
-
react:
|
|
52
|
+
elementClass: _,
|
|
53
|
+
react: x,
|
|
53
54
|
events: { onRekeChange: "reke-change" }
|
|
54
|
-
}),
|
|
55
|
+
}), D = b({
|
|
55
56
|
tagName: "reke-badge",
|
|
56
57
|
elementClass: t,
|
|
57
|
-
react:
|
|
58
|
-
}),
|
|
58
|
+
react: x
|
|
59
|
+
}), O = b({
|
|
60
|
+
tagName: "reke-progress",
|
|
61
|
+
elementClass: p,
|
|
62
|
+
react: x
|
|
63
|
+
}), k = b({
|
|
59
64
|
tagName: "reke-card",
|
|
60
65
|
elementClass: r,
|
|
61
|
-
react:
|
|
62
|
-
}),
|
|
66
|
+
react: x
|
|
67
|
+
}), A = b({
|
|
63
68
|
tagName: "reke-tooltip",
|
|
64
|
-
elementClass:
|
|
65
|
-
react:
|
|
66
|
-
}),
|
|
69
|
+
elementClass: v,
|
|
70
|
+
react: x
|
|
71
|
+
}), j = b({
|
|
67
72
|
tagName: "reke-dialog",
|
|
68
73
|
elementClass: c,
|
|
69
|
-
react:
|
|
74
|
+
react: x,
|
|
70
75
|
events: { onRekeClose: "reke-close" }
|
|
71
|
-
}),
|
|
76
|
+
}), M = b({
|
|
72
77
|
tagName: "reke-menu",
|
|
73
78
|
elementClass: d,
|
|
74
|
-
react:
|
|
79
|
+
react: x,
|
|
75
80
|
events: { onRekeClose: "reke-close" }
|
|
76
|
-
}),
|
|
81
|
+
}), N = b({
|
|
77
82
|
tagName: "reke-menu-item",
|
|
78
83
|
elementClass: f,
|
|
79
|
-
react:
|
|
84
|
+
react: x,
|
|
80
85
|
events: { onRekeSelect: "reke-select" }
|
|
81
|
-
}),
|
|
86
|
+
}), P = b({
|
|
82
87
|
tagName: "reke-select",
|
|
83
|
-
elementClass:
|
|
84
|
-
react:
|
|
88
|
+
elementClass: m,
|
|
89
|
+
react: x,
|
|
85
90
|
events: { onRekeChange: "reke-change" }
|
|
86
|
-
}),
|
|
91
|
+
}), F = b({
|
|
87
92
|
tagName: "reke-combobox",
|
|
88
93
|
elementClass: o,
|
|
89
|
-
react:
|
|
94
|
+
react: x,
|
|
90
95
|
events: {
|
|
91
96
|
onRekeChange: "reke-change",
|
|
92
97
|
onRekeSearch: "reke-search"
|
|
93
98
|
}
|
|
94
|
-
}),
|
|
99
|
+
}), I = b({
|
|
95
100
|
tagName: "reke-date-range",
|
|
96
101
|
elementClass: s,
|
|
97
|
-
react:
|
|
102
|
+
react: x,
|
|
98
103
|
events: {
|
|
99
104
|
onRekeChange: "reke-change",
|
|
100
105
|
onRekePreset: "reke-preset"
|
|
101
106
|
}
|
|
102
|
-
}),
|
|
107
|
+
}), L = b({
|
|
103
108
|
tagName: "reke-file-upload",
|
|
104
109
|
elementClass: l,
|
|
105
|
-
react:
|
|
110
|
+
react: x,
|
|
106
111
|
events: {
|
|
107
112
|
onRekeFileSelect: "reke-file-select",
|
|
108
113
|
onRekeFileClear: "reke-file-clear"
|
|
109
114
|
}
|
|
110
|
-
}),
|
|
115
|
+
}), R = b({
|
|
111
116
|
tagName: "reke-alert",
|
|
112
117
|
elementClass: e,
|
|
113
|
-
react:
|
|
118
|
+
react: x,
|
|
114
119
|
events: { onRekeClose: "reke-close" }
|
|
115
|
-
}),
|
|
120
|
+
}), z = b({
|
|
116
121
|
tagName: "reke-toast",
|
|
117
|
-
elementClass:
|
|
118
|
-
react:
|
|
122
|
+
elementClass: g,
|
|
123
|
+
react: x,
|
|
119
124
|
events: {
|
|
120
125
|
onRekeClose: "reke-close",
|
|
121
126
|
onRekeAction: "reke-action"
|
|
122
127
|
}
|
|
123
|
-
}),
|
|
128
|
+
}), B = b({
|
|
124
129
|
tagName: "reke-chip",
|
|
125
130
|
elementClass: a,
|
|
126
|
-
react:
|
|
131
|
+
react: x,
|
|
127
132
|
events: {
|
|
128
133
|
onRekeClick: "reke-click",
|
|
129
134
|
onRekeDismiss: "reke-dismiss"
|
|
130
135
|
}
|
|
131
136
|
});
|
|
132
137
|
//#endregion
|
|
133
|
-
export {
|
|
138
|
+
export { R as Alert, D as Badge, S as Button, k as Card, T as Checkbox, B as Chip, F as Combobox, I as DateRange, j as Dialog, L as FileUpload, C as Input, M as Menu, N as MenuItem, O as Progress, P as Select, y as Table, w as Textarea, z as Toast, E as Toggle, A as Tooltip };
|
package/dist/shared/tailwind.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/shared/tailwind.css?inline
|
|
2
|
-
var e = "/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.row-0{grid-row:0}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.flex-shrink{flex-shrink:1}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}";
|
|
2
|
+
var e = "/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.row-0{grid-row:0}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.flex-shrink{flex-shrink:1}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
/* Chip prefix size */
|
|
79
79
|
--reke-chip-prefix-size: 16px;
|
|
80
80
|
|
|
81
|
+
/* Progress bar */
|
|
82
|
+
--reke-progress-height: 4px;
|
|
83
|
+
--reke-progress-radius: 9999px;
|
|
84
|
+
--reke-progress-color: var(--reke-color-primary);
|
|
85
|
+
|
|
81
86
|
/* Glow shadows — themed per accent color */
|
|
82
87
|
--reke-shadow-glow-primary: 0 0 20px color-mix(in srgb, var(--reke-color-primary, #22C55E) 35%, transparent);
|
|
83
88
|
--reke-shadow-glow-secondary: 0 0 20px color-mix(in srgb, var(--reke-color-secondary, #3B82F6) 35%, transparent);
|
|
@@ -106,6 +111,7 @@
|
|
|
106
111
|
--reke-color-text-ghost: #737373;
|
|
107
112
|
--reke-color-text-disabled: #3B3B3B;
|
|
108
113
|
--reke-color-text-label: #8A8A8A;
|
|
114
|
+
--reke-progress-track-color: #2A2A2A;
|
|
109
115
|
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
110
116
|
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
111
117
|
}
|
|
@@ -127,6 +133,7 @@
|
|
|
127
133
|
--reke-color-text-ghost: #9A9A9A;
|
|
128
134
|
--reke-color-text-disabled: #C0C0C0;
|
|
129
135
|
--reke-color-text-label: #666666;
|
|
136
|
+
--reke-progress-track-color: #E0E0E0;
|
|
130
137
|
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
131
138
|
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
132
139
|
}
|
|
@@ -186,6 +193,7 @@
|
|
|
186
193
|
--reke-color-text-ghost: #9A9A9A;
|
|
187
194
|
--reke-color-text-disabled: #C0C0C0;
|
|
188
195
|
--reke-color-text-label: #666666;
|
|
196
|
+
--reke-progress-track-color: #E0E0E0;
|
|
189
197
|
--reke-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
190
198
|
--reke-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
191
199
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reke-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Web Component library built with Lit 3 — dark & light themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"types": "./dist/components/reke-pie-chart/reke-pie-chart.d.ts",
|
|
38
38
|
"default": "./dist/components/reke-pie-chart/reke-pie-chart.js"
|
|
39
39
|
},
|
|
40
|
+
"./progress": {
|
|
41
|
+
"types": "./dist/components/reke-progress/reke-progress.d.ts",
|
|
42
|
+
"default": "./dist/components/reke-progress/reke-progress.js"
|
|
43
|
+
},
|
|
40
44
|
"./textarea": {
|
|
41
45
|
"types": "./dist/components/reke-textarea/reke-textarea.d.ts",
|
|
42
46
|
"default": "./dist/components/reke-textarea/reke-textarea.js"
|