reke-ui 0.4.3 → 0.5.1
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 +141 -106
- package/dist/components/reke-combobox/reke-combobox.d.ts +18 -1
- package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.js +3 -3
- 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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react-bridge/combobox.d.ts +39 -0
- package/dist/react-bridge/combobox.d.ts.map +1 -0
- package/dist/react-bridge/combobox.js +74 -0
- package/dist/react.d.ts +2 -9
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +30 -38
- package/dist/shared/tailwind.js +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -4,48 +4,48 @@
|
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "javascript-module",
|
|
7
|
-
"path": "src/components/reke-
|
|
7
|
+
"path": "src/components/reke-alert/reke-alert.ts",
|
|
8
8
|
"declarations": [
|
|
9
9
|
{
|
|
10
10
|
"kind": "class",
|
|
11
11
|
"description": "",
|
|
12
|
-
"name": "
|
|
12
|
+
"name": "RekeAlert",
|
|
13
13
|
"cssProperties": [
|
|
14
14
|
{
|
|
15
|
-
"description": "
|
|
16
|
-
"name": "--reke-color-
|
|
17
|
-
"default": "#
|
|
15
|
+
"description": "Success variant color.",
|
|
16
|
+
"name": "--reke-color-primary",
|
|
17
|
+
"default": "#22C55E"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"description": "
|
|
21
|
-
"name": "--reke-color-
|
|
22
|
-
"default": "#
|
|
20
|
+
"description": "Error variant color.",
|
|
21
|
+
"name": "--reke-color-danger",
|
|
22
|
+
"default": "#EF4444"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"description": "
|
|
26
|
-
"name": "--reke-color-
|
|
27
|
-
"default": "#
|
|
25
|
+
"description": "Warning variant color.",
|
|
26
|
+
"name": "--reke-color-warning",
|
|
27
|
+
"default": "#F59E0B"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"description": "
|
|
31
|
-
"name": "--reke-color-
|
|
32
|
-
"default": "#
|
|
30
|
+
"description": "Info variant color.",
|
|
31
|
+
"name": "--reke-color-secondary",
|
|
32
|
+
"default": "#3B82F6"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"description": "
|
|
36
|
-
"name": "--reke-
|
|
37
|
-
"default": "
|
|
35
|
+
"description": "Alert border radius.",
|
|
36
|
+
"name": "--reke-radius",
|
|
37
|
+
"default": "4px"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"cssParts": [
|
|
41
41
|
{
|
|
42
|
-
"description": "The
|
|
43
|
-
"name": "
|
|
42
|
+
"description": "The outer alert container.",
|
|
43
|
+
"name": "alert"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"slots": [
|
|
47
47
|
{
|
|
48
|
-
"description": "Default slot for
|
|
48
|
+
"description": "Default slot for alert content (icon + text, or just text).",
|
|
49
49
|
"name": ""
|
|
50
50
|
}
|
|
51
51
|
],
|
|
@@ -54,131 +54,124 @@
|
|
|
54
54
|
"kind": "field",
|
|
55
55
|
"name": "variant",
|
|
56
56
|
"type": {
|
|
57
|
-
"text": "
|
|
57
|
+
"text": "AlertVariant"
|
|
58
58
|
},
|
|
59
|
-
"default": "'
|
|
59
|
+
"default": "'info'",
|
|
60
60
|
"attribute": "variant",
|
|
61
61
|
"reflects": true
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"kind": "field",
|
|
65
|
-
"name": "
|
|
65
|
+
"name": "dismissible",
|
|
66
66
|
"type": {
|
|
67
|
-
"text": "
|
|
67
|
+
"text": "boolean"
|
|
68
68
|
},
|
|
69
|
-
"default": "
|
|
70
|
-
"attribute": "
|
|
69
|
+
"default": "false",
|
|
70
|
+
"attribute": "dismissible",
|
|
71
71
|
"reflects": true
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"kind": "
|
|
75
|
-
"name": "
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
74
|
+
"kind": "method",
|
|
75
|
+
"name": "handleClose",
|
|
76
|
+
"privacy": "private"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"events": [
|
|
80
|
+
{
|
|
81
|
+
"description": "Fired when the alert is dismissed (only when dismissible).",
|
|
82
|
+
"name": "reke-close"
|
|
82
83
|
}
|
|
83
84
|
],
|
|
84
85
|
"attributes": [
|
|
85
86
|
{
|
|
86
87
|
"name": "variant",
|
|
87
88
|
"type": {
|
|
88
|
-
"text": "
|
|
89
|
+
"text": "AlertVariant"
|
|
89
90
|
},
|
|
90
|
-
"default": "'
|
|
91
|
+
"default": "'info'",
|
|
91
92
|
"fieldName": "variant"
|
|
92
93
|
},
|
|
93
94
|
{
|
|
94
|
-
"name": "
|
|
95
|
-
"type": {
|
|
96
|
-
"text": "BadgeSize"
|
|
97
|
-
},
|
|
98
|
-
"default": "'md'",
|
|
99
|
-
"fieldName": "size"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"name": "shape",
|
|
95
|
+
"name": "dismissible",
|
|
103
96
|
"type": {
|
|
104
|
-
"text": "
|
|
97
|
+
"text": "boolean"
|
|
105
98
|
},
|
|
106
|
-
"default": "
|
|
107
|
-
"fieldName": "
|
|
99
|
+
"default": "false",
|
|
100
|
+
"fieldName": "dismissible"
|
|
108
101
|
}
|
|
109
102
|
],
|
|
110
103
|
"superclass": {
|
|
111
104
|
"name": "RekeElement",
|
|
112
105
|
"module": "/src/shared/base-element.js"
|
|
113
106
|
},
|
|
114
|
-
"tagName": "reke-
|
|
107
|
+
"tagName": "reke-alert",
|
|
115
108
|
"customElement": true,
|
|
116
|
-
"summary": "
|
|
109
|
+
"summary": "An inline alert with color variants. Content via default slot."
|
|
117
110
|
}
|
|
118
111
|
],
|
|
119
112
|
"exports": [
|
|
120
113
|
{
|
|
121
114
|
"kind": "js",
|
|
122
|
-
"name": "
|
|
115
|
+
"name": "RekeAlert",
|
|
123
116
|
"declaration": {
|
|
124
|
-
"name": "
|
|
125
|
-
"module": "src/components/reke-
|
|
117
|
+
"name": "RekeAlert",
|
|
118
|
+
"module": "src/components/reke-alert/reke-alert.ts"
|
|
126
119
|
}
|
|
127
120
|
},
|
|
128
121
|
{
|
|
129
122
|
"kind": "custom-element-definition",
|
|
130
|
-
"name": "reke-
|
|
123
|
+
"name": "reke-alert",
|
|
131
124
|
"declaration": {
|
|
132
|
-
"name": "
|
|
133
|
-
"module": "src/components/reke-
|
|
125
|
+
"name": "RekeAlert",
|
|
126
|
+
"module": "src/components/reke-alert/reke-alert.ts"
|
|
134
127
|
}
|
|
135
128
|
}
|
|
136
129
|
]
|
|
137
130
|
},
|
|
138
131
|
{
|
|
139
132
|
"kind": "javascript-module",
|
|
140
|
-
"path": "src/components/reke-
|
|
133
|
+
"path": "src/components/reke-badge/reke-badge.ts",
|
|
141
134
|
"declarations": [
|
|
142
135
|
{
|
|
143
136
|
"kind": "class",
|
|
144
137
|
"description": "",
|
|
145
|
-
"name": "
|
|
138
|
+
"name": "RekeBadge",
|
|
146
139
|
"cssProperties": [
|
|
147
140
|
{
|
|
148
|
-
"description": "
|
|
149
|
-
"name": "--reke-color-
|
|
150
|
-
"default": "#
|
|
141
|
+
"description": "Default variant background color.",
|
|
142
|
+
"name": "--reke-color-surface",
|
|
143
|
+
"default": "#1A1A1A"
|
|
151
144
|
},
|
|
152
145
|
{
|
|
153
|
-
"description": "
|
|
154
|
-
"name": "--reke-color-
|
|
155
|
-
"default": "#
|
|
146
|
+
"description": "Default variant text color.",
|
|
147
|
+
"name": "--reke-color-text",
|
|
148
|
+
"default": "#E5E5E5"
|
|
156
149
|
},
|
|
157
150
|
{
|
|
158
|
-
"description": "
|
|
159
|
-
"name": "--reke-color-
|
|
160
|
-
"default": "#
|
|
151
|
+
"description": "Default variant border color.",
|
|
152
|
+
"name": "--reke-color-border",
|
|
153
|
+
"default": "#252525"
|
|
161
154
|
},
|
|
162
155
|
{
|
|
163
|
-
"description": "
|
|
164
|
-
"name": "--reke-color-
|
|
165
|
-
"default": "#
|
|
156
|
+
"description": "Primary/success variant accent color.",
|
|
157
|
+
"name": "--reke-color-primary",
|
|
158
|
+
"default": "#22C55E"
|
|
166
159
|
},
|
|
167
160
|
{
|
|
168
|
-
"description": "
|
|
169
|
-
"name": "--reke-
|
|
170
|
-
"default": "
|
|
161
|
+
"description": "Danger variant accent color.",
|
|
162
|
+
"name": "--reke-color-danger",
|
|
163
|
+
"default": "#EF4444"
|
|
171
164
|
}
|
|
172
165
|
],
|
|
173
166
|
"cssParts": [
|
|
174
167
|
{
|
|
175
|
-
"description": "The
|
|
176
|
-
"name": "
|
|
168
|
+
"description": "The inner badge element.",
|
|
169
|
+
"name": "badge"
|
|
177
170
|
}
|
|
178
171
|
],
|
|
179
172
|
"slots": [
|
|
180
173
|
{
|
|
181
|
-
"description": "Default slot for
|
|
174
|
+
"description": "Default slot for badge text.",
|
|
182
175
|
"name": ""
|
|
183
176
|
}
|
|
184
177
|
],
|
|
@@ -187,76 +180,83 @@
|
|
|
187
180
|
"kind": "field",
|
|
188
181
|
"name": "variant",
|
|
189
182
|
"type": {
|
|
190
|
-
"text": "
|
|
183
|
+
"text": "BadgeVariant"
|
|
191
184
|
},
|
|
192
|
-
"default": "'
|
|
185
|
+
"default": "'default'",
|
|
193
186
|
"attribute": "variant",
|
|
194
187
|
"reflects": true
|
|
195
188
|
},
|
|
196
189
|
{
|
|
197
190
|
"kind": "field",
|
|
198
|
-
"name": "
|
|
191
|
+
"name": "size",
|
|
199
192
|
"type": {
|
|
200
|
-
"text": "
|
|
193
|
+
"text": "BadgeSize"
|
|
201
194
|
},
|
|
202
|
-
"default": "
|
|
203
|
-
"attribute": "
|
|
195
|
+
"default": "'md'",
|
|
196
|
+
"attribute": "size",
|
|
204
197
|
"reflects": true
|
|
205
198
|
},
|
|
206
199
|
{
|
|
207
|
-
"kind": "
|
|
208
|
-
"name": "
|
|
209
|
-
"
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"name": "reke-close"
|
|
200
|
+
"kind": "field",
|
|
201
|
+
"name": "shape",
|
|
202
|
+
"type": {
|
|
203
|
+
"text": "BadgeShape"
|
|
204
|
+
},
|
|
205
|
+
"default": "'pill'",
|
|
206
|
+
"attribute": "shape",
|
|
207
|
+
"reflects": true
|
|
216
208
|
}
|
|
217
209
|
],
|
|
218
210
|
"attributes": [
|
|
219
211
|
{
|
|
220
212
|
"name": "variant",
|
|
221
213
|
"type": {
|
|
222
|
-
"text": "
|
|
214
|
+
"text": "BadgeVariant"
|
|
223
215
|
},
|
|
224
|
-
"default": "'
|
|
216
|
+
"default": "'default'",
|
|
225
217
|
"fieldName": "variant"
|
|
226
218
|
},
|
|
227
219
|
{
|
|
228
|
-
"name": "
|
|
220
|
+
"name": "size",
|
|
229
221
|
"type": {
|
|
230
|
-
"text": "
|
|
222
|
+
"text": "BadgeSize"
|
|
231
223
|
},
|
|
232
|
-
"default": "
|
|
233
|
-
"fieldName": "
|
|
224
|
+
"default": "'md'",
|
|
225
|
+
"fieldName": "size"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "shape",
|
|
229
|
+
"type": {
|
|
230
|
+
"text": "BadgeShape"
|
|
231
|
+
},
|
|
232
|
+
"default": "'pill'",
|
|
233
|
+
"fieldName": "shape"
|
|
234
234
|
}
|
|
235
235
|
],
|
|
236
236
|
"superclass": {
|
|
237
237
|
"name": "RekeElement",
|
|
238
238
|
"module": "/src/shared/base-element.js"
|
|
239
239
|
},
|
|
240
|
-
"tagName": "reke-
|
|
240
|
+
"tagName": "reke-badge",
|
|
241
241
|
"customElement": true,
|
|
242
|
-
"summary": "
|
|
242
|
+
"summary": "A badge component for displaying labels, statuses, and counts."
|
|
243
243
|
}
|
|
244
244
|
],
|
|
245
245
|
"exports": [
|
|
246
246
|
{
|
|
247
247
|
"kind": "js",
|
|
248
|
-
"name": "
|
|
248
|
+
"name": "RekeBadge",
|
|
249
249
|
"declaration": {
|
|
250
|
-
"name": "
|
|
251
|
-
"module": "src/components/reke-
|
|
250
|
+
"name": "RekeBadge",
|
|
251
|
+
"module": "src/components/reke-badge/reke-badge.ts"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"kind": "custom-element-definition",
|
|
256
|
-
"name": "reke-
|
|
256
|
+
"name": "reke-badge",
|
|
257
257
|
"declaration": {
|
|
258
|
-
"name": "
|
|
259
|
-
"module": "src/components/reke-
|
|
258
|
+
"name": "RekeBadge",
|
|
259
|
+
"module": "src/components/reke-badge/reke-badge.ts"
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
]
|
|
@@ -1166,6 +1166,15 @@
|
|
|
1166
1166
|
},
|
|
1167
1167
|
"default": "[]"
|
|
1168
1168
|
},
|
|
1169
|
+
{
|
|
1170
|
+
"kind": "field",
|
|
1171
|
+
"name": "optionRender",
|
|
1172
|
+
"type": {
|
|
1173
|
+
"text": "ComboboxOptionRender | null"
|
|
1174
|
+
},
|
|
1175
|
+
"default": "null",
|
|
1176
|
+
"description": "Optional custom renderer for the content of each dropdown option.\nDisplay-only escape hatch: `label` is still required and still drives\nfiltering, the input value and the multi-select summary."
|
|
1177
|
+
},
|
|
1169
1178
|
{
|
|
1170
1179
|
"kind": "field",
|
|
1171
1180
|
"name": "multiple",
|
|
@@ -1545,7 +1554,7 @@
|
|
|
1545
1554
|
},
|
|
1546
1555
|
"tagName": "reke-combobox",
|
|
1547
1556
|
"customElement": true,
|
|
1548
|
-
"summary": "A searchable select. Type to filter options, navigate with the\nkeyboard. Unlike `reke-select`, it exposes a text query and is meant for long\noption lists."
|
|
1557
|
+
"summary": "A searchable select. Type to filter options, navigate with the\nkeyboard. Unlike `reke-select`, it exposes a text query and is meant for long\noption lists.\n\nSet `optionRender` to take over the content of each dropdown option\n(display only — `label` still drives filtering and the input value)."
|
|
1549
1558
|
}
|
|
1550
1559
|
],
|
|
1551
1560
|
"exports": [
|
|
@@ -5626,6 +5635,10 @@
|
|
|
5626
5635
|
{
|
|
5627
5636
|
"description": "The inner sliding thumb element.",
|
|
5628
5637
|
"name": "thumb"
|
|
5638
|
+
},
|
|
5639
|
+
{
|
|
5640
|
+
"description": "The visible label text.",
|
|
5641
|
+
"name": "label"
|
|
5629
5642
|
}
|
|
5630
5643
|
],
|
|
5631
5644
|
"members": [
|
|
@@ -5656,8 +5669,20 @@
|
|
|
5656
5669
|
"text": "string"
|
|
5657
5670
|
},
|
|
5658
5671
|
"default": "''",
|
|
5672
|
+
"description": "Visible text next to the switch, and its accessible name.",
|
|
5659
5673
|
"attribute": "label"
|
|
5660
5674
|
},
|
|
5675
|
+
{
|
|
5676
|
+
"kind": "field",
|
|
5677
|
+
"name": "labelHidden",
|
|
5678
|
+
"type": {
|
|
5679
|
+
"text": "boolean"
|
|
5680
|
+
},
|
|
5681
|
+
"default": "false",
|
|
5682
|
+
"description": "Keeps `label` as the accessible name without rendering it.",
|
|
5683
|
+
"attribute": "label-hidden",
|
|
5684
|
+
"reflects": true
|
|
5685
|
+
},
|
|
5661
5686
|
{
|
|
5662
5687
|
"kind": "method",
|
|
5663
5688
|
"name": "toggle",
|
|
@@ -5711,7 +5736,17 @@
|
|
|
5711
5736
|
"text": "string"
|
|
5712
5737
|
},
|
|
5713
5738
|
"default": "''",
|
|
5739
|
+
"description": "Visible text next to the switch, and its accessible name.",
|
|
5714
5740
|
"fieldName": "label"
|
|
5741
|
+
},
|
|
5742
|
+
{
|
|
5743
|
+
"name": "label-hidden",
|
|
5744
|
+
"type": {
|
|
5745
|
+
"text": "boolean"
|
|
5746
|
+
},
|
|
5747
|
+
"default": "false",
|
|
5748
|
+
"description": "Keeps `label` as the accessible name without rendering it.",
|
|
5749
|
+
"fieldName": "labelHidden"
|
|
5715
5750
|
}
|
|
5716
5751
|
],
|
|
5717
5752
|
"superclass": {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
1
2
|
import { RekeElement } from '../../shared/base-element.js';
|
|
2
3
|
import '../reke-chip/reke-chip.js';
|
|
3
4
|
export type ComboboxSize = 'sm' | 'md' | 'lg';
|
|
@@ -7,12 +8,22 @@ export interface ComboboxOption {
|
|
|
7
8
|
/** Optional image (e.g. a token/coin logo) rendered before the label. */
|
|
8
9
|
image?: string;
|
|
9
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Display-only custom render for a dropdown option. Receives the option and its
|
|
13
|
+
* index in the filtered list, and fills the inside of the component-owned `<li>`
|
|
14
|
+
* (which keeps its id, role, aria-selected, part and handlers).
|
|
15
|
+
* Filtering, the input value and the multi-select summary keep using `label`.
|
|
16
|
+
*/
|
|
17
|
+
export type ComboboxOptionRender = (option: ComboboxOption, index: number) => TemplateResult | string | HTMLElement | Node;
|
|
10
18
|
/**
|
|
11
19
|
* @tag reke-combobox
|
|
12
20
|
* @summary A searchable select. Type to filter options, navigate with the
|
|
13
21
|
* keyboard. Unlike `reke-select`, it exposes a text query and is meant for long
|
|
14
22
|
* option lists.
|
|
15
23
|
*
|
|
24
|
+
* Set `optionRender` to take over the content of each dropdown option
|
|
25
|
+
* (display only — `label` still drives filtering and the input value).
|
|
26
|
+
*
|
|
16
27
|
* @fires reke-change - Fired when the selection changes. Detail: `{ value: string }`
|
|
17
28
|
* in single mode, `{ values: string[] }` when `multiple` is set.
|
|
18
29
|
* @fires reke-search - Fired when the query changes (for remote filtering). Detail: `{ query: string }`.
|
|
@@ -40,6 +51,12 @@ export declare class RekeCombobox extends RekeElement {
|
|
|
40
51
|
value: string;
|
|
41
52
|
placeholder: string;
|
|
42
53
|
options: ComboboxOption[];
|
|
54
|
+
/**
|
|
55
|
+
* Optional custom renderer for the content of each dropdown option.
|
|
56
|
+
* Display-only escape hatch: `label` is still required and still drives
|
|
57
|
+
* filtering, the input value and the multi-select summary.
|
|
58
|
+
*/
|
|
59
|
+
optionRender: ComboboxOptionRender | null;
|
|
43
60
|
/** Enables multi-selection. In this mode use `values` instead of `value`. */
|
|
44
61
|
multiple: boolean;
|
|
45
62
|
/** Render selected values as dismissible chips inside the control. Ignored unless `multiple`. */
|
|
@@ -80,7 +97,7 @@ export declare class RekeCombobox extends RekeElement {
|
|
|
80
97
|
private handleChipDismiss;
|
|
81
98
|
private handleInput;
|
|
82
99
|
private handleKeyDown;
|
|
83
|
-
render():
|
|
100
|
+
render(): TemplateResult<1>;
|
|
84
101
|
}
|
|
85
102
|
declare global {
|
|
86
103
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-combobox.d.ts","sourceRoot":"","sources":["../../../src/components/reke-combobox/reke-combobox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reke-combobox.d.ts","sourceRoot":"","sources":["../../../src/components/reke-combobox/reke-combobox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,2BAA2B,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,KACV,cAAc,GAAG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AAO,CAAC,aAAa;IAkCZ,MAAM;CAiJhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
|
@@ -8,7 +8,7 @@ import { classMap as c } from "lit/directives/class-map.js";
|
|
|
8
8
|
//#region src/components/reke-combobox/reke-combobox.ts
|
|
9
9
|
var l = class extends e {
|
|
10
10
|
constructor(...e) {
|
|
11
|
-
super(...e), this.value = "", this.placeholder = "Buscar...", this.options = [], this.multiple = !1, this.tags = !1, this.values = [], this.disabled = !1, this.error = !1, this.label = "", this.emptyText = "Sin resultados", this.size = "md", this._open = !1, this._query = "", this._activeIndex = 0, this._flashValue = "", this._scaleInValues = [], this._dropdownStyle = "", this._boundHandleOutsideClick = this.handleOutsideClick.bind(this), this._boundReposition = () => this.updatePosition();
|
|
11
|
+
super(...e), this.value = "", this.placeholder = "Buscar...", this.options = [], this.optionRender = null, this.multiple = !1, this.tags = !1, this.values = [], this.disabled = !1, this.error = !1, this.label = "", this.emptyText = "Sin resultados", this.size = "md", this._open = !1, this._query = "", this._activeIndex = 0, this._flashValue = "", this._scaleInValues = [], this._dropdownStyle = "", this._boundHandleOutsideClick = this.handleOutsideClick.bind(this), this._boundReposition = () => this.updatePosition();
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
14
|
this.styles = n;
|
|
@@ -181,7 +181,7 @@ var l = class extends e {
|
|
|
181
181
|
this._activeIndex = t;
|
|
182
182
|
}}
|
|
183
183
|
>
|
|
184
|
-
${e.image ? r`<img class="option-img" src=${e.image} alt="" loading="lazy" />` : i}<span class="option-label">${e.label}</span>${this.multiple && this.isSelected(e) ? r`<span class="check" aria-hidden="true">✓</span>` : i}
|
|
184
|
+
${this.optionRender ? this.optionRender(e, t) : r`${e.image ? r`<img class="option-img" src=${e.image} alt="" loading="lazy" />` : i}<span class="option-label">${e.label}</span>${this.multiple && this.isSelected(e) ? r`<span class="check" aria-hidden="true">✓</span>` : i}`}
|
|
185
185
|
</li>
|
|
186
186
|
`)}
|
|
187
187
|
</ul>
|
|
@@ -189,7 +189,7 @@ var l = class extends e {
|
|
|
189
189
|
`;
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
t([o()], l.prototype, "value", void 0), t([o()], l.prototype, "placeholder", void 0), t([o({ attribute: !1 })], l.prototype, "options", void 0), t([o({
|
|
192
|
+
t([o()], l.prototype, "value", void 0), t([o()], l.prototype, "placeholder", void 0), t([o({ attribute: !1 })], l.prototype, "options", void 0), t([o({ attribute: !1 })], l.prototype, "optionRender", void 0), t([o({
|
|
193
193
|
type: Boolean,
|
|
194
194
|
reflect: !0
|
|
195
195
|
})], l.prototype, "multiple", void 0), t([o({
|
|
@@ -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
|
@@ -9,7 +9,7 @@ export { RekeCard } from './components/reke-card/reke-card.js';
|
|
|
9
9
|
export { RekeCheckbox } from './components/reke-checkbox/reke-checkbox.js';
|
|
10
10
|
export type { ChipColor } from './components/reke-chip/reke-chip.js';
|
|
11
11
|
export { RekeChip } from './components/reke-chip/reke-chip.js';
|
|
12
|
-
export type { ComboboxOption, ComboboxSize } from './components/reke-combobox/reke-combobox.js';
|
|
12
|
+
export type { ComboboxOption, ComboboxOptionRender, ComboboxSize, } from './components/reke-combobox/reke-combobox.js';
|
|
13
13
|
export { RekeCombobox } from './components/reke-combobox/reke-combobox.js';
|
|
14
14
|
export type { DatePickerMode } from './components/reke-date-range/reke-date-range.js';
|
|
15
15
|
export { RekeDateRange } from './components/reke-date-range/reke-date-range.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.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AE,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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { TemplateResult } from 'lit';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type ComboboxOption, type ComboboxSize, RekeCombobox as RekeComboboxClass } from '../components/reke-combobox/reke-combobox.js';
|
|
4
|
+
/**
|
|
5
|
+
* Option renderer. Return any of:
|
|
6
|
+
* - `ReactNode` (JSX) — bridged via a React root, handed to Lit as a raw DOM node
|
|
7
|
+
* - `Node` / `HTMLElement` — passed through (escape hatch for hand-built DOM)
|
|
8
|
+
* - `string` / `TemplateResult` — passed through (Lit-native)
|
|
9
|
+
*
|
|
10
|
+
* Display-only: `label` still drives filtering, the input value and the
|
|
11
|
+
* multi-select summary.
|
|
12
|
+
*/
|
|
13
|
+
export type ReactComboboxOptionRender = (option: ComboboxOption, index: number) => React.ReactNode | TemplateResult | string | Node;
|
|
14
|
+
export interface ComboboxProps {
|
|
15
|
+
value?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
options?: ComboboxOption[];
|
|
18
|
+
optionRender?: ReactComboboxOptionRender;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
tags?: boolean;
|
|
21
|
+
values?: string[];
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
error?: boolean;
|
|
24
|
+
label?: string;
|
|
25
|
+
emptyText?: string;
|
|
26
|
+
size?: ComboboxSize;
|
|
27
|
+
onRekeChange?: (e: CustomEvent<{
|
|
28
|
+
value?: string;
|
|
29
|
+
values?: string[];
|
|
30
|
+
}>) => void;
|
|
31
|
+
onRekeSearch?: (e: CustomEvent<{
|
|
32
|
+
query: string;
|
|
33
|
+
}>) => void;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<RekeComboboxClass>>;
|
|
37
|
+
export type { ComboboxOption, ComboboxOptionRender, ComboboxSize, } from '../components/reke-combobox/reke-combobox.js';
|
|
38
|
+
export { RekeCombobox } from '../components/reke-combobox/reke-combobox.js';
|
|
39
|
+
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/react-bridge/combobox.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,KAAqC,MAAM,OAAO,CAAC;AAG1D,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,YAAY,EACjB,YAAY,IAAI,iBAAiB,EAClC,MAAM,8CAA8C,CAAC;AAYtD;;;;;;;;GAQG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,KACV,KAAK,CAAC,SAAS,GAAG,cAAc,GAAG,MAAM,GAAG,IAAI,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IAC/E,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAmHD,eAAO,MAAM,QAAQ,yFAAkC,CAAC;AAExD,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { RekeCombobox as e } from "../components/reke-combobox/reke-combobox.js";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import n, { useEffect as r, useMemo as i, useRef as a } from "react";
|
|
4
|
+
import { flushSync as o } from "react-dom";
|
|
5
|
+
import { createRoot as s } from "react-dom/client";
|
|
6
|
+
//#region src/react-bridge/combobox.ts
|
|
7
|
+
var c = t({
|
|
8
|
+
tagName: "reke-combobox",
|
|
9
|
+
elementClass: e,
|
|
10
|
+
react: n,
|
|
11
|
+
events: {
|
|
12
|
+
onRekeChange: "reke-change",
|
|
13
|
+
onRekeSearch: "reke-search"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
function l(e) {
|
|
17
|
+
return e == null || typeof e == "string" || typeof e == "number" || e instanceof Node;
|
|
18
|
+
}
|
|
19
|
+
function u(e, t, n = !0) {
|
|
20
|
+
if (!n) {
|
|
21
|
+
e.render(t);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
o(() => {
|
|
26
|
+
e.render(t);
|
|
27
|
+
});
|
|
28
|
+
} catch {
|
|
29
|
+
e.render(t);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function d(e, t) {
|
|
33
|
+
let { optionRender: o, children: d, ...f } = e, p = a(/* @__PURE__ */ new Map()), m = a(/* @__PURE__ */ new Set()), h = a(o);
|
|
34
|
+
h.current = o, r(() => {
|
|
35
|
+
let e = p.current;
|
|
36
|
+
return () => {
|
|
37
|
+
for (let { root: t } of e.values()) t.unmount();
|
|
38
|
+
e.clear();
|
|
39
|
+
};
|
|
40
|
+
}, []), m.current = /* @__PURE__ */ new Set();
|
|
41
|
+
let g = i(() => o ? (e, t) => {
|
|
42
|
+
let n = h.current;
|
|
43
|
+
if (!n) return "";
|
|
44
|
+
let r = n(e, t);
|
|
45
|
+
if (l(r)) return m.current.add(e.value), r ?? "";
|
|
46
|
+
let i = p.current.get(e.value);
|
|
47
|
+
if (!i) {
|
|
48
|
+
let n = document.createElement("span");
|
|
49
|
+
n.style.cssText = "display: contents;", i = {
|
|
50
|
+
root: s(n),
|
|
51
|
+
host: n,
|
|
52
|
+
option: e,
|
|
53
|
+
index: t
|
|
54
|
+
}, p.current.set(e.value, i);
|
|
55
|
+
}
|
|
56
|
+
return i.option = e, i.index = t, m.current.add(e.value), u(i.root, r), i.host;
|
|
57
|
+
} : null, [!!o]);
|
|
58
|
+
return r(() => {
|
|
59
|
+
if (o) for (let e of p.current.values()) {
|
|
60
|
+
let t = o(e.option, e.index);
|
|
61
|
+
l(t) || u(e.root, t, !1);
|
|
62
|
+
}
|
|
63
|
+
}, [o]), r(() => {
|
|
64
|
+
let e = m.current;
|
|
65
|
+
for (let [t, n] of p.current) e.has(t) || (n.root.unmount(), p.current.delete(t));
|
|
66
|
+
}), n.createElement(c, {
|
|
67
|
+
...f,
|
|
68
|
+
ref: t,
|
|
69
|
+
optionRender: g
|
|
70
|
+
}, d);
|
|
71
|
+
}
|
|
72
|
+
var f = n.forwardRef(d);
|
|
73
|
+
//#endregion
|
|
74
|
+
export { f as Combobox };
|
package/dist/react.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { RekeButton } from './components/reke-button/reke-button.js';
|
|
|
5
5
|
import { RekeCard } from './components/reke-card/reke-card.js';
|
|
6
6
|
import { RekeCheckbox } from './components/reke-checkbox/reke-checkbox.js';
|
|
7
7
|
import { RekeChip } from './components/reke-chip/reke-chip.js';
|
|
8
|
-
import { RekeCombobox } from './components/reke-combobox/reke-combobox.js';
|
|
9
8
|
import { RekeDateRange } from './components/reke-date-range/reke-date-range.js';
|
|
10
9
|
import { RekeDialog } from './components/reke-dialog/reke-dialog.js';
|
|
11
10
|
import { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.js';
|
|
@@ -66,14 +65,8 @@ export declare const Select: import("@lit/react").ReactWebComponent<RekeSelect,
|
|
|
66
65
|
value: string;
|
|
67
66
|
}>>;
|
|
68
67
|
}>;
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
value: string;
|
|
72
|
-
}>>;
|
|
73
|
-
onRekeSearch: EventName<CustomEvent<{
|
|
74
|
-
query: string;
|
|
75
|
-
}>>;
|
|
76
|
-
}>;
|
|
68
|
+
export type { ComboboxOption, ComboboxProps, ComboboxSize, ReactComboboxOptionRender, } from './react-bridge/combobox.js';
|
|
69
|
+
export { Combobox } from './react-bridge/combobox.js';
|
|
77
70
|
export type { ReactExpandedRowRenderer, ReactTableColumn, TableColumn, TableProps, TableRow, } from './react-bridge/table.js';
|
|
78
71
|
export { Table } from './react-bridge/table.js';
|
|
79
72
|
export declare const DateRange: import("@lit/react").ReactWebComponent<RekeDateRange, {
|
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,
|
|
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,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,YAAY,EAAE,MAAM,6CAA6C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,CAAC;EAEzD,CAAC"}
|
package/dist/react.js
CHANGED
|
@@ -4,19 +4,19 @@ import { RekeButton as n } from "./components/reke-button/reke-button.js";
|
|
|
4
4
|
import { RekeCard as r } from "./components/reke-card/reke-card.js";
|
|
5
5
|
import { RekeCheckbox as i } from "./components/reke-checkbox/reke-checkbox.js";
|
|
6
6
|
import { RekeChip as a } from "./components/reke-chip/reke-chip.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
7
|
+
import { RekeDateRange as o } from "./components/reke-date-range/reke-date-range.js";
|
|
8
|
+
import { RekeDialog as s } from "./components/reke-dialog/reke-dialog.js";
|
|
9
|
+
import { RekeFileUpload as c } from "./components/reke-file-upload/reke-file-upload.js";
|
|
10
|
+
import { RekeInput as l } from "./components/reke-input/reke-input.js";
|
|
11
|
+
import { RekeMenu as u } from "./components/reke-menu/reke-menu.js";
|
|
12
|
+
import { RekeMenuItem as d } from "./components/reke-menu-item/reke-menu-item.js";
|
|
13
|
+
import { RekeProgress as f } from "./components/reke-progress/reke-progress.js";
|
|
14
|
+
import { RekeSelect as p } from "./components/reke-select/reke-select.js";
|
|
15
|
+
import { RekeTextarea as m } from "./components/reke-textarea/reke-textarea.js";
|
|
16
|
+
import { RekeToast as h } from "./components/reke-toast/reke-toast.js";
|
|
17
|
+
import { RekeToggle as g } from "./components/reke-toggle/reke-toggle.js";
|
|
18
|
+
import { RekeTooltip as _ } from "./components/reke-tooltip/reke-tooltip.js";
|
|
19
|
+
import { Combobox as v } from "./react-bridge/combobox.js";
|
|
20
20
|
import { Table as y } from "./react-bridge/table.js";
|
|
21
21
|
import { createComponent as b } from "@lit/react";
|
|
22
22
|
import x from "react";
|
|
@@ -28,7 +28,7 @@ var S = b({
|
|
|
28
28
|
events: { onRekeClick: "reke-click" }
|
|
29
29
|
}), C = b({
|
|
30
30
|
tagName: "reke-input",
|
|
31
|
-
elementClass:
|
|
31
|
+
elementClass: l,
|
|
32
32
|
react: x,
|
|
33
33
|
events: {
|
|
34
34
|
onRekeInput: "reke-input",
|
|
@@ -36,7 +36,7 @@ var S = b({
|
|
|
36
36
|
}
|
|
37
37
|
}), w = b({
|
|
38
38
|
tagName: "reke-textarea",
|
|
39
|
-
elementClass:
|
|
39
|
+
elementClass: m,
|
|
40
40
|
react: x,
|
|
41
41
|
events: {
|
|
42
42
|
onRekeInput: "reke-input",
|
|
@@ -49,7 +49,7 @@ var S = b({
|
|
|
49
49
|
events: { onRekeChange: "reke-change" }
|
|
50
50
|
}), E = b({
|
|
51
51
|
tagName: "reke-toggle",
|
|
52
|
-
elementClass:
|
|
52
|
+
elementClass: g,
|
|
53
53
|
react: x,
|
|
54
54
|
events: { onRekeChange: "reke-change" }
|
|
55
55
|
}), D = b({
|
|
@@ -58,7 +58,7 @@ var S = b({
|
|
|
58
58
|
react: x
|
|
59
59
|
}), O = b({
|
|
60
60
|
tagName: "reke-progress",
|
|
61
|
-
elementClass:
|
|
61
|
+
elementClass: f,
|
|
62
62
|
react: x
|
|
63
63
|
}), k = b({
|
|
64
64
|
tagName: "reke-card",
|
|
@@ -66,66 +66,58 @@ var S = b({
|
|
|
66
66
|
react: x
|
|
67
67
|
}), A = b({
|
|
68
68
|
tagName: "reke-tooltip",
|
|
69
|
-
elementClass:
|
|
69
|
+
elementClass: _,
|
|
70
70
|
react: x
|
|
71
71
|
}), j = b({
|
|
72
72
|
tagName: "reke-dialog",
|
|
73
|
-
elementClass:
|
|
73
|
+
elementClass: s,
|
|
74
74
|
react: x,
|
|
75
75
|
events: { onRekeClose: "reke-close" }
|
|
76
76
|
}), M = b({
|
|
77
77
|
tagName: "reke-menu",
|
|
78
|
-
elementClass:
|
|
78
|
+
elementClass: u,
|
|
79
79
|
react: x,
|
|
80
80
|
events: { onRekeClose: "reke-close" }
|
|
81
81
|
}), N = b({
|
|
82
82
|
tagName: "reke-menu-item",
|
|
83
|
-
elementClass:
|
|
83
|
+
elementClass: d,
|
|
84
84
|
react: x,
|
|
85
85
|
events: { onRekeSelect: "reke-select" }
|
|
86
86
|
}), P = b({
|
|
87
87
|
tagName: "reke-select",
|
|
88
|
-
elementClass:
|
|
88
|
+
elementClass: p,
|
|
89
89
|
react: x,
|
|
90
90
|
events: { onRekeChange: "reke-change" }
|
|
91
91
|
}), F = b({
|
|
92
|
-
tagName: "reke-combobox",
|
|
93
|
-
elementClass: o,
|
|
94
|
-
react: x,
|
|
95
|
-
events: {
|
|
96
|
-
onRekeChange: "reke-change",
|
|
97
|
-
onRekeSearch: "reke-search"
|
|
98
|
-
}
|
|
99
|
-
}), I = b({
|
|
100
92
|
tagName: "reke-date-range",
|
|
101
|
-
elementClass:
|
|
93
|
+
elementClass: o,
|
|
102
94
|
react: x,
|
|
103
95
|
events: {
|
|
104
96
|
onRekeChange: "reke-change",
|
|
105
97
|
onRekePreset: "reke-preset"
|
|
106
98
|
}
|
|
107
|
-
}),
|
|
99
|
+
}), I = b({
|
|
108
100
|
tagName: "reke-file-upload",
|
|
109
|
-
elementClass:
|
|
101
|
+
elementClass: c,
|
|
110
102
|
react: x,
|
|
111
103
|
events: {
|
|
112
104
|
onRekeFileSelect: "reke-file-select",
|
|
113
105
|
onRekeFileClear: "reke-file-clear"
|
|
114
106
|
}
|
|
115
|
-
}),
|
|
107
|
+
}), L = b({
|
|
116
108
|
tagName: "reke-alert",
|
|
117
109
|
elementClass: e,
|
|
118
110
|
react: x,
|
|
119
111
|
events: { onRekeClose: "reke-close" }
|
|
120
|
-
}),
|
|
112
|
+
}), R = b({
|
|
121
113
|
tagName: "reke-toast",
|
|
122
|
-
elementClass:
|
|
114
|
+
elementClass: h,
|
|
123
115
|
react: x,
|
|
124
116
|
events: {
|
|
125
117
|
onRekeClose: "reke-close",
|
|
126
118
|
onRekeAction: "reke-action"
|
|
127
119
|
}
|
|
128
|
-
}),
|
|
120
|
+
}), z = b({
|
|
129
121
|
tagName: "reke-chip",
|
|
130
122
|
elementClass: a,
|
|
131
123
|
react: x,
|
|
@@ -135,4 +127,4 @@ var S = b({
|
|
|
135
127
|
}
|
|
136
128
|
});
|
|
137
129
|
//#endregion
|
|
138
|
-
export {
|
|
130
|
+
export { L as Alert, D as Badge, S as Button, k as Card, T as Checkbox, z as Chip, v as Combobox, F as DateRange, j as Dialog, I as FileUpload, C as Input, M as Menu, N as MenuItem, O as Progress, P as Select, y as Table, w as Textarea, R 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;--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}";
|
|
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}.inline-block{display:inline-block}.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 };
|