@m3e/chips 1.0.0-rc.2 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/custom-elements.json +106 -89
- package/dist/index.js +72 -22
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +42 -31
- package/dist/index.min.js.map +1 -1
- package/dist/src/AssistChipElement.d.ts +83 -0
- package/dist/src/AssistChipElement.d.ts.map +1 -0
- package/dist/src/ChipElement.d.ts +83 -0
- package/dist/src/ChipElement.d.ts.map +1 -0
- package/dist/src/ChipSetElement.d.ts +42 -0
- package/dist/src/ChipSetElement.d.ts.map +1 -0
- package/dist/src/ChipVariant.d.ts +3 -0
- package/dist/src/ChipVariant.d.ts.map +1 -0
- package/dist/src/FilterChipElement.d.ts +105 -0
- package/dist/src/FilterChipElement.d.ts.map +1 -0
- package/dist/src/FilterChipSetElement.d.ts +77 -0
- package/dist/src/FilterChipSetElement.d.ts.map +1 -0
- package/dist/src/InputChipElement.d.ts +117 -0
- package/dist/src/InputChipElement.d.ts.map +1 -0
- package/dist/src/InputChipSetElement.d.ts +74 -0
- package/dist/src/InputChipSetElement.d.ts.map +1 -0
- package/dist/src/SuggestionChipElement.d.ts +84 -0
- package/dist/src/SuggestionChipElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { M3eChipElement } from "./ChipElement";
|
|
2
|
+
declare const M3eSuggestionChipElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").FormSubmitterMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").AttachInternalsMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").LinkButtonMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledInteractiveMixin> & import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor<import("@m3e/core").DisabledMixin> & typeof M3eChipElement;
|
|
3
|
+
/**
|
|
4
|
+
* A chip used to help narrow a user's intent by presenting dynamically generated suggestions, such as
|
|
5
|
+
* suggested responses or search filters.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* The `m3e-suggestion-chip` component presents a suggestion chip, offering users contextually relevant
|
|
9
|
+
* actions or responses. It is designed for dynamic suggestion scenarios, such as search filters or
|
|
10
|
+
* smart replies, and supports accessibility, keyboard interaction, and expressive state styling in line
|
|
11
|
+
* with Material 3 guidelines. Appearance variants include `elevated` and `outlined`, enabling visual
|
|
12
|
+
* differentiation and contextual emphasis.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* The following example illustrates use of the `m3e-suggestion-chip`. In this example, multiple chips are nested inside
|
|
16
|
+
* a `m3e-chip-set` container to create a cohesive set of chips. The container is given the ARIA `role="group"` to convey
|
|
17
|
+
* to assistive technologies that the chips are part of a related set of element.
|
|
18
|
+
* ```html
|
|
19
|
+
* <m3e-chip-set role="group" aria-label="Suggested replies">
|
|
20
|
+
* <m3e-suggestion-chip>Sounds good!</m3e-suggestion-chip>
|
|
21
|
+
* <m3e-suggestion-chip>Can you clarify?</m3e-suggestion-chip>
|
|
22
|
+
* <m3e-suggestion-chip>Let's do it.</m3e-suggestion-chip>
|
|
23
|
+
* <m3e-suggestion-chip>Maybe later.</m3e-suggestion-chip>
|
|
24
|
+
* </m3e-chip-set>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @tag m3e-suggestion-chip
|
|
28
|
+
*
|
|
29
|
+
* @slot - Renders the label of the chip.
|
|
30
|
+
* @slot icon - Renders an icon before the chip's label.
|
|
31
|
+
*
|
|
32
|
+
* @attr disabled - A value indicating whether the element is disabled.
|
|
33
|
+
* @attr disabled-interactive - A value indicating whether the element is disabled and interactive.
|
|
34
|
+
* @attr download - A value indicating whether the `target` of the link button will be downloaded, optionally specifying the new name of the file.
|
|
35
|
+
* @attr href - The URL to which the link button points.
|
|
36
|
+
* @attr name - The name of the element, submitted as a pair with the element's `value` as part of form data, when the element is used to submit a form.
|
|
37
|
+
* @attr rel - The relationship between the `target` of the link button and the document.
|
|
38
|
+
* @attr target - The target of the link button.
|
|
39
|
+
* @attr type - The type of the element.
|
|
40
|
+
* @attr value - A string representing the value of the chip.
|
|
41
|
+
* @attr variant - The appearance variant of the chip.
|
|
42
|
+
*
|
|
43
|
+
* @fires click - Emitted when the element is clicked.
|
|
44
|
+
*
|
|
45
|
+
* @cssprop --m3e-chip-container-shape - Border radius of the chip container.
|
|
46
|
+
* @cssprop --m3e-chip-container-height - Base height of the chip container before density adjustment.
|
|
47
|
+
* @cssprop --m3e-chip-label-text-font-size - Font size of the chip label text.
|
|
48
|
+
* @cssprop --m3e-chip-label-text-font-weight - Font weight of the chip label text.
|
|
49
|
+
* @cssprop --m3e-chip-label-text-line-height - Line height of the chip label text.
|
|
50
|
+
* @cssprop --m3e-chip-label-text-tracking - Letter spacing of the chip label text.
|
|
51
|
+
* @cssprop --m3e-chip-label-text-color - Label text color in default state.
|
|
52
|
+
* @cssprop --m3e-chip-icon-color - Icon color in default state.
|
|
53
|
+
* @cssprop --m3e-chip-icon-size - Font size of leading/trailing icons.
|
|
54
|
+
* @cssprop --m3e-chip-spacing - Horizontal gap between chip content elements.
|
|
55
|
+
* @cssprop --m3e-chip-padding-start - Default start padding when no icon is present.
|
|
56
|
+
* @cssprop --m3e-chip-padding-end - Default end padding when no trailing icon is present.
|
|
57
|
+
* @cssprop --m3e-chip-with-icon-padding-start - Start padding when leading icon is present.
|
|
58
|
+
* @cssprop --m3e-chip-with-icon-padding-end - End padding when trailing icon is present.
|
|
59
|
+
* @cssprop --m3e-chip-disabled-label-text-color - Base color for disabled label text.
|
|
60
|
+
* @cssprop --m3e-chip-disabled-label-text-opacity - Opacity applied to disabled label text.
|
|
61
|
+
* @cssprop --m3e-chip-disabled-icon-color - Base color for disabled icons.
|
|
62
|
+
* @cssprop --m3e-chip-disabled-icon-opacity - Opacity applied to disabled icons.
|
|
63
|
+
* @cssprop --m3e-elevated-chip-container-color - Background color for elevated variant.
|
|
64
|
+
* @cssprop --m3e-elevated-chip-elevation - Elevation level for elevated variant.
|
|
65
|
+
* @cssprop --m3e-elevated-chip-hover-elevation - Elevation level on hover.
|
|
66
|
+
* @cssprop --m3e-elevated-chip-disabled-container-color - Background color for disabled elevated variant.
|
|
67
|
+
* @cssprop --m3e-elevated-chip-disabled-container-opacity - Opacity applied to disabled elevated background.
|
|
68
|
+
* @cssprop --m3e-elevated-chip-disabled-elevation - Elevation level for disabled elevated variant.
|
|
69
|
+
* @cssprop --m3e-outlined-chip-outline-thickness - Outline thickness for outlined variant.
|
|
70
|
+
* @cssprop --m3e-outlined-chip-outline-color - Outline color for outlined variant.
|
|
71
|
+
* @cssprop --m3e-outlined-chip-disabled-outline-color - Outline color for disabled outlined variant.
|
|
72
|
+
* @cssprop --m3e-outlined-chip-disabled-outline-opacity - Opacity applied to disabled outline.
|
|
73
|
+
*/
|
|
74
|
+
export declare class M3eSuggestionChipElement extends M3eSuggestionChipElement_base {
|
|
75
|
+
/** @internal @inheritdoc */
|
|
76
|
+
protected _renderTrailingIcon(): unknown;
|
|
77
|
+
}
|
|
78
|
+
declare global {
|
|
79
|
+
interface HTMLElementTagNameMap {
|
|
80
|
+
"m3e-suggestion-chip": M3eSuggestionChipElement;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
84
|
+
//# sourceMappingURL=SuggestionChipElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestionChipElement.d.ts","sourceRoot":"","sources":["../../src/SuggestionChipElement.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,qBACa,wBAAyB,SAAQ,6BAK7C;IACC,4BAA4B;cACT,mBAAmB,IAAI,OAAO;CAGlD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,wBAAwB,CAAC;KACjD;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./AssistChipElement";
|
|
2
|
+
export * from "./ChipElement";
|
|
3
|
+
export * from "./ChipSetElement";
|
|
4
|
+
export * from "./ChipVariant";
|
|
5
|
+
export * from "./FilterChipElement";
|
|
6
|
+
export * from "./FilterChipSetElement";
|
|
7
|
+
export * from "./InputChipElement";
|
|
8
|
+
export * from "./InputChipSetElement";
|
|
9
|
+
export * from "./SuggestionChipElement";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/chips",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"description": "Chips for M3E",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"clean": "rimraf dist"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@m3e/core": "1.0.0-rc.
|
|
36
|
-
"@m3e/icon-button": "1.0.0-rc.
|
|
37
|
-
"@m3e/form-field": "1.0.0-rc.
|
|
35
|
+
"@m3e/core": "1.0.0-rc.4",
|
|
36
|
+
"@m3e/icon-button": "1.0.0-rc.4",
|
|
37
|
+
"@m3e/form-field": "1.0.0-rc.4",
|
|
38
38
|
"lit": "^3.3.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|