@rcarls/rc-chip 0.0.0-next-20260921045401
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/CHANGELOG.md +98 -0
- package/README.md +52 -0
- package/dist/custom-elements.json +626 -0
- package/dist/rc-chip-DTfbSSwo.js +455 -0
- package/dist/rc-chip-DTfbSSwo.js.map +1 -0
- package/dist/rc-chip-define.js +3 -0
- package/dist/rc-chip-define.js.map +1 -0
- package/dist/rc-chip.js +5 -0
- package/dist/rc-chip.js.map +1 -0
- package/dist/types/packages/rc-chip/src/define.d.ts +1 -0
- package/dist/types/packages/rc-chip/src/index.d.ts +2 -0
- package/dist/types/packages/rc-chip/src/rc-chip.d.ts +156 -0
- package/dist/types/packages/rc-chip/src/rc-chip.styles.d.ts +2 -0
- package/package.json +62 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/define.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "custom-element-definition",
|
|
12
|
+
"name": "rc-chip",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "RCChip",
|
|
15
|
+
"module": "/src/rc-chip.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "javascript-module",
|
|
22
|
+
"path": "src/index.ts",
|
|
23
|
+
"declarations": [],
|
|
24
|
+
"exports": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "js",
|
|
27
|
+
"name": "RCChip",
|
|
28
|
+
"declaration": {
|
|
29
|
+
"name": "default",
|
|
30
|
+
"module": "./rc-chip.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "js",
|
|
35
|
+
"name": "RCChipChangeDetail",
|
|
36
|
+
"declaration": {
|
|
37
|
+
"name": "RCChipChangeDetail",
|
|
38
|
+
"module": "./rc-chip.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"kind": "js",
|
|
43
|
+
"name": "RCChipRemoveDetail",
|
|
44
|
+
"declaration": {
|
|
45
|
+
"name": "RCChipRemoveDetail",
|
|
46
|
+
"module": "./rc-chip.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "js",
|
|
51
|
+
"name": "RCChipVariant",
|
|
52
|
+
"declaration": {
|
|
53
|
+
"name": "RCChipVariant",
|
|
54
|
+
"module": "./rc-chip.js"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "javascript-module",
|
|
61
|
+
"path": "src/rc-chip.ts",
|
|
62
|
+
"declarations": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "class",
|
|
65
|
+
"description": "Chip wrapper that preserves a direct native `<button>` child for action chips,\na direct `<a href>` for navigation chips, or a direct `<label>` containing a\nnative checkbox/radio for filter chips. Read-only chips accept a direct\n`[data-rc-chip-label]` child.",
|
|
66
|
+
"name": "RCChip",
|
|
67
|
+
"cssProperties": [
|
|
68
|
+
{
|
|
69
|
+
"description": "Gap between the slotted button/anchor/label's content.",
|
|
70
|
+
"name": "--rc-chip-gap",
|
|
71
|
+
"default": "0px"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"description": "Minimum chip block size (defers to native button/anchor sizing when unset).",
|
|
75
|
+
"name": "--rc-chip-block-size"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"description": "Minimum interactive touch target size.",
|
|
79
|
+
"name": "--rc-chip-touch-target-block-size",
|
|
80
|
+
"default": "3rem"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"description": "Zero by default. A theme or consumer sets this on a chip that sits at a real block-axis leading edge (no neighbor on that side), such as inside a height-constrained field, to let its touch-target inflation overlap into whatever sits just outside the host instead of also reserving layout space there.",
|
|
84
|
+
"name": "--rc-chip-touch-target-overlap-block-start",
|
|
85
|
+
"default": "0px"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"description": "The block-axis trailing-edge counterpart to `--rc-chip-touch-target-overlap-block-start`.",
|
|
89
|
+
"name": "--rc-chip-touch-target-overlap-block-end",
|
|
90
|
+
"default": "0px"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"description": "Block-axis padding of the slotted button, anchor, or label (defers to native padding when unset).",
|
|
94
|
+
"name": "--rc-chip-padding-block"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"description": "Inline-axis padding of the slotted button, anchor, or label (defers to native padding when unset).",
|
|
98
|
+
"name": "--rc-chip-padding-inline"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"description": "Logical leading padding of the slotted button, anchor, or label.",
|
|
102
|
+
"name": "--rc-chip-padding-inline-start",
|
|
103
|
+
"default": "var(--rc-chip-padding-inline)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"description": "Logical trailing padding of the slotted button, anchor, or label.",
|
|
107
|
+
"name": "--rc-chip-padding-inline-end",
|
|
108
|
+
"default": "var(--rc-chip-padding-inline)"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"description": "Border of the slotted button, anchor, or label (defers to native border when unset).",
|
|
112
|
+
"name": "--rc-chip-border"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"description": "Border radius of the slotted button/anchor/label and the state-layer overlay (defers to native border-radius when unset; the state-layer overlay falls back to 0).",
|
|
116
|
+
"name": "--rc-chip-radius"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"description": "Background of the slotted button, anchor, or label (defers to native background when unset).",
|
|
120
|
+
"name": "--rc-chip-bg"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"description": "Text color of the slotted button, anchor, or label (defers to native color when unset).",
|
|
124
|
+
"name": "--rc-chip-color"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"description": "Font shorthand for the slotted button, anchor, or label (defers to native font when unset).",
|
|
128
|
+
"name": "--rc-chip-font"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"description": "Text decoration for the slotted anchor (defers to native text-decoration when unset).",
|
|
132
|
+
"name": "--rc-chip-text-decoration"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"description": "Border color when `selected` (defers to native styling when unset).",
|
|
136
|
+
"name": "--rc-chip-selected-border-color"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"description": "Background when `selected` (defers to native styling when unset).",
|
|
140
|
+
"name": "--rc-chip-selected-bg"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"description": "Text color when `selected` (defers to native styling when unset).",
|
|
144
|
+
"name": "--rc-chip-selected-color"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"description": "Opacity of the slotted button when `disabled` (defers to native disabled styling when unset).",
|
|
148
|
+
"name": "--rc-chip-disabled-opacity"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"description": "Outline shown while focus-within (defers to native focus styling when unset).",
|
|
152
|
+
"name": "--rc-chip-focus-ring"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"description": "Outline offset while focus-within (defers to native focus styling when unset).",
|
|
156
|
+
"name": "--rc-chip-focus-ring-offset"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"description": "Hover/focus/pressed state-layer color.",
|
|
160
|
+
"name": "--rc-chip-state-layer-color",
|
|
161
|
+
"default": "currentColor"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"description": "Selected chip state-layer color.",
|
|
165
|
+
"name": "--rc-chip-selected-state-layer-color",
|
|
166
|
+
"default": "var(--rc-chip-state-layer-color, currentColor)"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"description": "Hover state-layer opacity.",
|
|
170
|
+
"name": "--rc-chip-hover-state-layer-opacity",
|
|
171
|
+
"default": "0.08"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"description": "Focus state-layer opacity.",
|
|
175
|
+
"name": "--rc-chip-focus-state-layer-opacity",
|
|
176
|
+
"default": "0.12"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"description": "Pressed state-layer opacity.",
|
|
180
|
+
"name": "--rc-chip-pressed-state-layer-opacity",
|
|
181
|
+
"default": "0.12"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"description": "State-layer effects duration.",
|
|
185
|
+
"name": "--rc-chip-state-layer-transition-duration",
|
|
186
|
+
"default": "var(--rc-motion-effects-duration-fast,80ms)"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"description": "State-layer effects easing.",
|
|
190
|
+
"name": "--rc-chip-state-layer-transition-easing",
|
|
191
|
+
"default": "var(--rc-motion-effects-easing-fast,ease-out)"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"description": "Inline offset of the remove indicator from the chip edge.",
|
|
195
|
+
"name": "--rc-chip-remove-offset-inline",
|
|
196
|
+
"default": "0.125rem"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"description": "Minimum inline and block size of the remove indicator's hit target.",
|
|
200
|
+
"name": "--rc-chip-remove-target-size",
|
|
201
|
+
"default": "1.5rem"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"description": "Border radius of the remove indicator.",
|
|
205
|
+
"name": "--rc-chip-remove-radius",
|
|
206
|
+
"default": "9999px"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"description": "Font size for a slotted remove icon.",
|
|
210
|
+
"name": "--rc-chip-remove-icon-size",
|
|
211
|
+
"default": "smaller"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"description": "Override for removable chip content end padding.",
|
|
215
|
+
"name": "--rc-chip-removable-padding-inline-end",
|
|
216
|
+
"default": "calc(var(--rc-chip-remove-target-size, 1.5rem) + var(--rc-chip-remove-offset-inline, 0.125rem))"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"cssParts": [
|
|
220
|
+
{
|
|
221
|
+
"description": "Overlay layer for hover, focus, pressed, ripple, or design-system effects.",
|
|
222
|
+
"name": "state-layer"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"description": "Presentational trailing remove indicator.",
|
|
226
|
+
"name": "remove"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"slots": [
|
|
230
|
+
{
|
|
231
|
+
"description": "A direct native `<button>` child, `<a href>`, native-backed filter `<label>`, or `[data-rc-chip-label]` when `readonly`.",
|
|
232
|
+
"name": ""
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"description": "Optional presentational remove icon.",
|
|
236
|
+
"name": "remove-icon"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"members": [
|
|
240
|
+
{
|
|
241
|
+
"kind": "field",
|
|
242
|
+
"name": "_styledRoots",
|
|
243
|
+
"privacy": "private",
|
|
244
|
+
"static": true,
|
|
245
|
+
"readonly": true,
|
|
246
|
+
"default": "new WeakSet<Document | ShadowRoot>()"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"kind": "method",
|
|
250
|
+
"name": "_ensureBaseStyles",
|
|
251
|
+
"privacy": "private",
|
|
252
|
+
"static": true,
|
|
253
|
+
"return": {
|
|
254
|
+
"type": {
|
|
255
|
+
"text": "void"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"parameters": [
|
|
259
|
+
{
|
|
260
|
+
"name": "root",
|
|
261
|
+
"type": {
|
|
262
|
+
"text": "Document | ShadowRoot"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"kind": "field",
|
|
269
|
+
"name": "_selected",
|
|
270
|
+
"type": {
|
|
271
|
+
"text": "boolean | undefined"
|
|
272
|
+
},
|
|
273
|
+
"privacy": "private"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"kind": "field",
|
|
277
|
+
"name": "_defaultSelected",
|
|
278
|
+
"type": {
|
|
279
|
+
"text": "boolean"
|
|
280
|
+
},
|
|
281
|
+
"privacy": "private",
|
|
282
|
+
"default": "false"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "field",
|
|
286
|
+
"name": "_uncontrolledSelected",
|
|
287
|
+
"type": {
|
|
288
|
+
"text": "boolean | undefined"
|
|
289
|
+
},
|
|
290
|
+
"privacy": "private"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"kind": "field",
|
|
294
|
+
"name": "_selectedInitialized",
|
|
295
|
+
"type": {
|
|
296
|
+
"text": "boolean"
|
|
297
|
+
},
|
|
298
|
+
"privacy": "private",
|
|
299
|
+
"default": "false"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "field",
|
|
303
|
+
"name": "_$button",
|
|
304
|
+
"type": {
|
|
305
|
+
"text": "HTMLButtonElement | null"
|
|
306
|
+
},
|
|
307
|
+
"privacy": "private",
|
|
308
|
+
"default": "null"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"kind": "field",
|
|
312
|
+
"name": "_$input",
|
|
313
|
+
"type": {
|
|
314
|
+
"text": "HTMLInputElement | null"
|
|
315
|
+
},
|
|
316
|
+
"privacy": "private",
|
|
317
|
+
"default": "null"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"kind": "field",
|
|
321
|
+
"name": "_$form",
|
|
322
|
+
"type": {
|
|
323
|
+
"text": "HTMLFormElement | null"
|
|
324
|
+
},
|
|
325
|
+
"privacy": "private",
|
|
326
|
+
"default": "null"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"kind": "field",
|
|
330
|
+
"name": "_controlObserver",
|
|
331
|
+
"type": {
|
|
332
|
+
"text": "MutationObserver | null"
|
|
333
|
+
},
|
|
334
|
+
"privacy": "private",
|
|
335
|
+
"default": "null"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "field",
|
|
339
|
+
"name": "_disabledOwned",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "boolean"
|
|
342
|
+
},
|
|
343
|
+
"privacy": "private",
|
|
344
|
+
"default": "false"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"kind": "field",
|
|
348
|
+
"name": "_pressedOwned",
|
|
349
|
+
"type": {
|
|
350
|
+
"text": "boolean"
|
|
351
|
+
},
|
|
352
|
+
"privacy": "private",
|
|
353
|
+
"default": "false"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"kind": "field",
|
|
357
|
+
"name": "_slotMicrotaskQueued",
|
|
358
|
+
"type": {
|
|
359
|
+
"text": "boolean"
|
|
360
|
+
},
|
|
361
|
+
"privacy": "private",
|
|
362
|
+
"default": "false"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "field",
|
|
366
|
+
"name": "_lastChildWarning",
|
|
367
|
+
"type": {
|
|
368
|
+
"text": "string | null"
|
|
369
|
+
},
|
|
370
|
+
"privacy": "private",
|
|
371
|
+
"default": "null"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"kind": "field",
|
|
375
|
+
"name": "variant",
|
|
376
|
+
"type": {
|
|
377
|
+
"text": "RCChipVariant"
|
|
378
|
+
},
|
|
379
|
+
"default": "'assist'",
|
|
380
|
+
"description": "Chip variant.",
|
|
381
|
+
"attribute": "variant",
|
|
382
|
+
"reflects": true
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"kind": "field",
|
|
386
|
+
"name": "selected",
|
|
387
|
+
"type": {
|
|
388
|
+
"text": "boolean"
|
|
389
|
+
},
|
|
390
|
+
"description": "Current selected state. Host writes are silent.",
|
|
391
|
+
"attribute": "selected",
|
|
392
|
+
"reflects": true
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"kind": "field",
|
|
396
|
+
"name": "defaultSelected",
|
|
397
|
+
"type": {
|
|
398
|
+
"text": "boolean"
|
|
399
|
+
},
|
|
400
|
+
"description": "Initial selected state for uncontrolled usage.",
|
|
401
|
+
"attribute": "default-selected"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"kind": "field",
|
|
405
|
+
"name": "disabled",
|
|
406
|
+
"type": {
|
|
407
|
+
"text": "boolean"
|
|
408
|
+
},
|
|
409
|
+
"default": "false",
|
|
410
|
+
"description": "Mirror disabled state to the native child button.",
|
|
411
|
+
"attribute": "disabled",
|
|
412
|
+
"reflects": true
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"kind": "field",
|
|
416
|
+
"name": "readonly",
|
|
417
|
+
"type": {
|
|
418
|
+
"text": "boolean"
|
|
419
|
+
},
|
|
420
|
+
"default": "false",
|
|
421
|
+
"description": "Mark this chip as non-interactive display content.",
|
|
422
|
+
"attribute": "readonly",
|
|
423
|
+
"reflects": true
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"kind": "field",
|
|
427
|
+
"name": "removable",
|
|
428
|
+
"type": {
|
|
429
|
+
"text": "boolean"
|
|
430
|
+
},
|
|
431
|
+
"default": "false",
|
|
432
|
+
"description": "Show a trailing remove affordance.",
|
|
433
|
+
"attribute": "removable",
|
|
434
|
+
"reflects": true
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"kind": "method",
|
|
438
|
+
"name": "_handleSlotChange",
|
|
439
|
+
"privacy": "private",
|
|
440
|
+
"return": {
|
|
441
|
+
"type": {
|
|
442
|
+
"text": "void"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"kind": "method",
|
|
448
|
+
"name": "_syncSlottedButton",
|
|
449
|
+
"privacy": "private",
|
|
450
|
+
"return": {
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "void"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"parameters": [
|
|
456
|
+
{
|
|
457
|
+
"name": "deferInitialSelectionUpdate",
|
|
458
|
+
"default": "false"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "field",
|
|
464
|
+
"name": "_handleNativeChange",
|
|
465
|
+
"privacy": "private",
|
|
466
|
+
"readonly": true
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"kind": "field",
|
|
470
|
+
"name": "_handleButtonClick",
|
|
471
|
+
"privacy": "private",
|
|
472
|
+
"readonly": true
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"kind": "method",
|
|
476
|
+
"name": "_dispatchRemove",
|
|
477
|
+
"privacy": "private",
|
|
478
|
+
"return": {
|
|
479
|
+
"type": {
|
|
480
|
+
"text": "void"
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"kind": "method",
|
|
486
|
+
"name": "_syncDisabled",
|
|
487
|
+
"privacy": "private",
|
|
488
|
+
"return": {
|
|
489
|
+
"type": {
|
|
490
|
+
"text": "void"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"kind": "method",
|
|
496
|
+
"name": "_syncCheckedState",
|
|
497
|
+
"privacy": "private",
|
|
498
|
+
"return": {
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "void"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"kind": "method",
|
|
506
|
+
"name": "_syncCheckedFromNative",
|
|
507
|
+
"privacy": "private",
|
|
508
|
+
"return": {
|
|
509
|
+
"type": {
|
|
510
|
+
"text": "void"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"kind": "field",
|
|
516
|
+
"name": "_handleFormReset",
|
|
517
|
+
"privacy": "private",
|
|
518
|
+
"readonly": true
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"kind": "method",
|
|
522
|
+
"name": "_syncPressedState",
|
|
523
|
+
"privacy": "private",
|
|
524
|
+
"return": {
|
|
525
|
+
"type": {
|
|
526
|
+
"text": "void"
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"events": [
|
|
532
|
+
{
|
|
533
|
+
"name": "rc-chip-remove",
|
|
534
|
+
"type": {
|
|
535
|
+
"text": "CustomEvent"
|
|
536
|
+
},
|
|
537
|
+
"description": "Fired when a user activates a removable chip's native button."
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"description": "Fired when a user toggles a filter chip.",
|
|
541
|
+
"name": "rc-chip-change"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"attributes": [
|
|
545
|
+
{
|
|
546
|
+
"description": "Chip variant.",
|
|
547
|
+
"name": "variant",
|
|
548
|
+
"type": {
|
|
549
|
+
"text": "RCChipVariant"
|
|
550
|
+
},
|
|
551
|
+
"default": "'assist'",
|
|
552
|
+
"fieldName": "variant"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"description": "Current selected state. Host writes are silent.",
|
|
556
|
+
"name": "selected",
|
|
557
|
+
"type": {
|
|
558
|
+
"text": "boolean"
|
|
559
|
+
},
|
|
560
|
+
"fieldName": "selected"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"description": "Initial selected state for uncontrolled usage.",
|
|
564
|
+
"name": "default-selected",
|
|
565
|
+
"type": {
|
|
566
|
+
"text": "boolean"
|
|
567
|
+
},
|
|
568
|
+
"fieldName": "defaultSelected"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"description": "Mirror disabled state to the native child button.",
|
|
572
|
+
"name": "disabled",
|
|
573
|
+
"type": {
|
|
574
|
+
"text": "boolean"
|
|
575
|
+
},
|
|
576
|
+
"default": "false",
|
|
577
|
+
"fieldName": "disabled"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"description": "Mark this chip as non-interactive display content.",
|
|
581
|
+
"name": "readonly",
|
|
582
|
+
"type": {
|
|
583
|
+
"text": "boolean"
|
|
584
|
+
},
|
|
585
|
+
"default": "false",
|
|
586
|
+
"fieldName": "readonly"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"description": "Show a trailing remove affordance.",
|
|
590
|
+
"name": "removable",
|
|
591
|
+
"type": {
|
|
592
|
+
"text": "boolean"
|
|
593
|
+
},
|
|
594
|
+
"default": "false",
|
|
595
|
+
"fieldName": "removable"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"superclass": {
|
|
599
|
+
"name": "LitElement",
|
|
600
|
+
"package": "lit"
|
|
601
|
+
},
|
|
602
|
+
"tagName": "rc-chip",
|
|
603
|
+
"customElement": true
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"exports": [
|
|
607
|
+
{
|
|
608
|
+
"kind": "js",
|
|
609
|
+
"name": "RCChip",
|
|
610
|
+
"declaration": {
|
|
611
|
+
"name": "RCChip",
|
|
612
|
+
"module": "src/rc-chip.ts"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"kind": "js",
|
|
617
|
+
"name": "default",
|
|
618
|
+
"declaration": {
|
|
619
|
+
"name": "RCChip",
|
|
620
|
+
"module": "src/rc-chip.ts"
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
]
|
|
626
|
+
}
|