@m3e/shape 1.0.0-rc.2 → 1.0.0-rc.3

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.
@@ -988,25 +988,6 @@
988
988
  "kind": "mixin",
989
989
  "description": "Mixin that adds support for custom event attributes.",
990
990
  "name": "EventAttribute",
991
- "members": [
992
- {
993
- "kind": "method",
994
- "name": "dispatchEvent",
995
- "return": {
996
- "type": {
997
- "text": "boolean"
998
- }
999
- },
1000
- "parameters": [
1001
- {
1002
- "name": "event",
1003
- "type": {
1004
- "text": "Event"
1005
- }
1006
- }
1007
- ]
1008
- }
1009
- ],
1010
991
  "parameters": [
1011
992
  {
1012
993
  "name": "base",
@@ -1304,6 +1285,17 @@
1304
1285
  "description": "Mixin to augment an element with behavior used to submit a form.",
1305
1286
  "name": "FormSubmitter",
1306
1287
  "members": [
1288
+ {
1289
+ "kind": "field",
1290
+ "name": "formAssociated",
1291
+ "type": {
1292
+ "text": "boolean"
1293
+ },
1294
+ "static": true,
1295
+ "readonly": true,
1296
+ "default": "true",
1297
+ "description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
1298
+ },
1307
1299
  {
1308
1300
  "kind": "field",
1309
1301
  "name": "name",
@@ -0,0 +1,48 @@
1
+ import { LitElement } from "lit";
2
+ import { ShapeName } from "./ShapeName";
3
+ /**
4
+ * A shape used to add emphasis and decorative flair.
5
+ *
6
+ * @description
7
+ * The `m3e-shape` component allows you to use abstract shapes thoughtfully to add emphasis and decorative flair,
8
+ * including built-in shape morphing.
9
+ *
10
+ * All shape names are sourced from the Material Shape library: `4-leaf-clover`, `4-sided-cookie`, `6-sided-cookie`,
11
+ * `7-sided-cookie`, `8-leaf-clover`, `9-sided-cookie`, `12-sided-cookie`, `arch`, `arrow`, `boom`, `bun`, `burst`,
12
+ * `circle`, `diamond`, `fan`, `flower`, `gem`, `ghost-ish`, `heart`, `hexagon`, `oval`, `pentagon`, `pill`, `pixel-circle`,
13
+ * `pixel-triangle`, `puffy`, `puffy-diamond`, `semicircle`, `slanted`, `soft-boom`, `soft-burst`, `square`, `sunny`,
14
+ * `triangle`, and `very-sunny`. Refer to the Material Shape library for visual references and details.
15
+ *
16
+ * @example
17
+ * The following example illustrates using the `m3e-shape` component to present the `sunny` shape.
18
+ * ```html
19
+ * <m3e-shape name="sunny"></m3e-shape>
20
+ * ```
21
+ *
22
+ * @tag m3e-shape
23
+ *
24
+ * @slot - Renders the clipped content of the shape.
25
+ *
26
+ * @attr name - The name of the shape.
27
+ *
28
+ * @cssprop --m3e-shape-size - Default size of the shape.
29
+ * @cssprop --m3e-shape-container-color - Container (background) color of the shape.
30
+ * @cssprop --m3e-shape-transition - Transition used to morph between shapes.
31
+ */
32
+ export declare class M3eShapeElement extends LitElement {
33
+ /** The styles of the element. */
34
+ static styles: import("lit").CSSResultGroup[];
35
+ /**
36
+ * The name of the shape.
37
+ * @default null
38
+ */
39
+ name: ShapeName | null;
40
+ /** @inheritdoc */
41
+ protected render(): unknown;
42
+ }
43
+ declare global {
44
+ interface HTMLElementTagNameMap {
45
+ "m3e-shape": M3eShapeElement;
46
+ }
47
+ }
48
+ //# sourceMappingURL=ShapeElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeElement.d.ts","sourceRoot":"","sources":["../../src/ShapeElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,iCAAiC;IACjC,OAAgB,MAAM,iCAAgC;IAEtD;;;OAGG;IAC0B,IAAI,EAAE,SAAS,GAAG,IAAI,CAAQ;IAE3D,kBAAkB;cACC,MAAM,IAAI,OAAO;CAGrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,eAAe,CAAC;KAC9B;CACF"}
@@ -0,0 +1,3 @@
1
+ /** Specifies the possible names of a shape. */
2
+ export type ShapeName = "4-leaf-clover" | "4-sided-cookie" | "6-sided-cookie" | "7-sided-cookie" | "8-leaf-clover" | "9-sided-cookie" | "12-sided-cookie" | "arch" | "arrow" | "boom" | "bun" | "burst" | "circle" | "diamond" | "fan" | "flower" | "gem" | "ghost-ish" | "heart" | "hexagon" | "oval" | "pentagon" | "pill" | "pixel-circle" | "pixel-triangle" | "puffy" | "puffy-diamond" | "semicircle" | "slanted" | "soft-boom" | "soft-burst" | "square" | "sunny" | "triangle" | "very-sunny";
3
+ //# sourceMappingURL=ShapeName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeName.d.ts","sourceRoot":"","sources":["../../src/ShapeName.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,MAAM,MAAM,SAAS,GACjB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,SAAS,GACT,KAAK,GACL,QAAQ,GACR,KAAK,GACL,WAAW,GACX,OAAO,GACP,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,cAAc,GACd,gBAAgB,GAChB,OAAO,GACP,eAAe,GACf,YAAY,GACZ,SAAS,GACT,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,UAAU,GACV,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CSSResultGroup } from "lit";
2
+ /**
3
+ * Name styles for `M3eShapeElement`.
4
+ * @internal
5
+ */
6
+ export declare const ShapeNameStyle: CSSResultGroup;
7
+ //# sourceMappingURL=ShapeNameStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeNameStyle.d.ts","sourceRoot":"","sources":["../../src/ShapeNameStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAa,MAAM,KAAK,CAAC;AAchE;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,cAE5B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { CSSResult } from "lit";
2
+ import { ShapeName } from "./ShapeName";
3
+ /**
4
+ * Normalized polygons for each shape.
5
+ * @internal
6
+ */
7
+ export declare const ShapePolygon: Record<ShapeName, CSSResult>;
8
+ //# sourceMappingURL=ShapePolygon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapePolygon.d.ts","sourceRoot":"","sources":["../../src/ShapePolygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,CA0GrD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CSSResultGroup } from "lit";
2
+ /**
3
+ * Baseline styles for `M3eShapeElement`.
4
+ * @internal
5
+ */
6
+ export declare const ShapeStyle: CSSResultGroup;
7
+ //# sourceMappingURL=ShapeStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeStyle.d.ts","sourceRoot":"","sources":["../../src/ShapeStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,cAiCxB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Component design tokens that control the `M3eShapeElement` for all variants.
3
+ * @internal
4
+ */
5
+ export declare const ShapeToken: {
6
+ /** Default size of the shape. */
7
+ readonly size: import("lit").CSSResult;
8
+ /** Container (background) color of the shape. */
9
+ readonly containerColor: import("lit").CSSResult;
10
+ /** Transition used to morph between shapes. */
11
+ readonly transition: import("lit").CSSResult;
12
+ };
13
+ //# sourceMappingURL=ShapeToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShapeToken.d.ts","sourceRoot":"","sources":["../../src/ShapeToken.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,UAAU;IACrB,iCAAiC;;IAGjC,iDAAiD;;IAGjD,+CAA+C;;CAEvC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./ShapeElement";
2
+ export * from "./ShapeName";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m3e/shape",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.3",
4
4
  "description": "Shape for M3E",
5
5
  "author": "matraic <matraic@yahoo.com>",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "clean": "rimraf dist"
63
63
  },
64
64
  "peerDependencies": {
65
- "@m3e/core": "1.0.0-rc.2",
65
+ "@m3e/core": "1.0.0-rc.3",
66
66
  "lit": "^3.3.0"
67
67
  },
68
68
  "devDependencies": {