@lamenna/lxp-shared-components 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=icon.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.test.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/__tests__/icon.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { iconPaths, iconNames, iconConfig } from "../";
2
+ describe("Icon (Shared)", () => {
3
+ it("exposes a curated icon set", () => {
4
+ expect(iconNames.length).toBeGreaterThanOrEqual(15);
5
+ });
6
+ it("each icon has at least one non-empty path string", () => {
7
+ iconNames.forEach((n) => {
8
+ expect(Array.isArray(iconPaths[n])).toBe(true);
9
+ expect(iconPaths[n].length).toBeGreaterThan(0);
10
+ iconPaths[n].forEach((d) => {
11
+ expect(typeof d).toBe("string");
12
+ expect(d.length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+ });
16
+ it("includes the POS essentials", () => {
17
+ [
18
+ "search",
19
+ "cart",
20
+ "plus",
21
+ "minus",
22
+ "check",
23
+ "close",
24
+ "trash",
25
+ "wrench",
26
+ ].forEach((k) => expect(iconPaths).toHaveProperty(k));
27
+ });
28
+ it("uses a 24px outline config", () => {
29
+ expect(iconConfig.viewBox).toBe("0 0 24 24");
30
+ expect(iconConfig.strokeWidth).toBe(1.5);
31
+ expect(iconConfig.defaultSize).toBe(24);
32
+ });
33
+ });
34
+ //# sourceMappingURL=icon.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.test.js","sourceRoot":"","sources":["../../../../src/components/Icon/__tests__/icon.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEvD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtB,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC/C,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACzB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAChC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACrC;YACE,QAAQ;YACR,MAAM;YACN,MAAM;YACN,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,QAAQ;SACT,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC7C,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const iconConfig: {
2
+ readonly viewBox: "0 0 24 24";
3
+ /** Default rendered size (width & height) in px. */
4
+ readonly defaultSize: 24;
5
+ /** Heroicons outline stroke width. */
6
+ readonly strokeWidth: 1.5;
7
+ /** Default stroke color when none is provided. */
8
+ readonly defaultColor: string;
9
+ };
10
+ export type IconConfig = typeof iconConfig;
11
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;IAErB,oDAAoD;;IAEpD,sCAAsC;;IAEtC,kDAAkD;;CAE1C,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ /** Icon configuration (platform-agnostic). */
2
+ import { tokens } from "@lamenna/lxp-tokens";
3
+ export const iconConfig = {
4
+ viewBox: "0 0 24 24",
5
+ /** Default rendered size (width & height) in px. */
6
+ defaultSize: 24,
7
+ /** Heroicons outline stroke width. */
8
+ strokeWidth: 1.5,
9
+ /** Default stroke color when none is provided. */
10
+ defaultColor: tokens.color.neutral[700],
11
+ };
12
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/components/Icon/config.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,WAAW;IACpB,oDAAoD;IACpD,WAAW,EAAE,EAAE;IACf,sCAAsC;IACtC,WAAW,EAAE,GAAG;IAChB,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Curated Heroicons (v2, 24px outline) path data — the single source of truth
3
+ * shared by the React, React Native and Angular Icon implementations.
4
+ *
5
+ * Each icon is an array of SVG path `d` strings (a few glyphs use more than one
6
+ * path). All paths are drawn as strokes on a `0 0 24 24` viewBox with round caps
7
+ * and joins, matching the Heroicons outline style.
8
+ *
9
+ * Heroicons is MIT-licensed (https://github.com/tailwindlabs/heroicons).
10
+ * Add more icons here as the product needs them.
11
+ */
12
+ export declare const iconPaths: {
13
+ readonly search: readonly ["m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607"];
14
+ readonly cart: readonly ["M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.137a60 60 0 0 0-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0m12.75 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0"];
15
+ readonly plus: readonly ["M12 4.5v15m7.5-7.5h-15"];
16
+ readonly minus: readonly ["M5 12h14"];
17
+ readonly check: readonly ["m4.5 12.75l6 6l9-13.5"];
18
+ readonly close: readonly ["M6 18L18 6M6 6l12 12"];
19
+ readonly bell: readonly ["M14.857 17.082a24 24 0 0 0 5.454-1.31A8.97 8.97 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.97 8.97 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.3 24.3 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"];
20
+ readonly "chevron-right": readonly ["m8.25 4.5l7.5 7.5l-7.5 7.5"];
21
+ readonly "chevron-down": readonly ["m19.5 8.25l-7.5 7.5l-7.5-7.5"];
22
+ readonly "chevron-left": readonly ["M15.75 19.5L8.25 12l7.5-7.5"];
23
+ readonly trash: readonly ["m14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.088 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0"];
24
+ readonly user: readonly ["M15.75 6a3.75 3.75 0 1 1-7.5 0a3.75 3.75 0 0 1 7.5 0M4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.9 17.9 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632"];
25
+ readonly wrench: readonly ["M11.42 15.17L17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14q.19.017.384.017a4.5 4.5 0 0 0 4.102-6.352l-3.276 3.276a3 3 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008z"];
26
+ readonly cash: readonly ["M2.25 18.75a60 60 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0a3 3 0 0 1 6 0m3 0h.008v.008H18zm-12 0h.008v.008H6z"];
27
+ readonly mobile: readonly ["M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"];
28
+ readonly warning: readonly ["M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"];
29
+ readonly info: readonly ["m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"];
30
+ readonly cube: readonly ["m21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"];
31
+ readonly tag: readonly ["M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.1 18.1 0 0 0 5.224-5.223c.54-.827.368-1.908-.33-2.607l-9.583-9.58A2.25 2.25 0 0 0 9.568 3", "M6 6h.008v.008H6z"];
32
+ readonly logout: readonly ["M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0l-3-3m0 0l3-3m-3 3H15"];
33
+ };
34
+ export type IconName = keyof typeof iconPaths;
35
+ /** All available icon names (handy for galleries / validation). */
36
+ export declare const iconNames: IconName[];
37
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAgDZ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,mEAAmE;AACnE,eAAO,MAAM,SAAS,EAA6B,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Curated Heroicons (v2, 24px outline) path data — the single source of truth
3
+ * shared by the React, React Native and Angular Icon implementations.
4
+ *
5
+ * Each icon is an array of SVG path `d` strings (a few glyphs use more than one
6
+ * path). All paths are drawn as strokes on a `0 0 24 24` viewBox with round caps
7
+ * and joins, matching the Heroicons outline style.
8
+ *
9
+ * Heroicons is MIT-licensed (https://github.com/tailwindlabs/heroicons).
10
+ * Add more icons here as the product needs them.
11
+ */
12
+ export const iconPaths = {
13
+ search: [
14
+ "m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607",
15
+ ],
16
+ cart: [
17
+ "M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.137a60 60 0 0 0-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0m12.75 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0",
18
+ ],
19
+ plus: ["M12 4.5v15m7.5-7.5h-15"],
20
+ minus: ["M5 12h14"],
21
+ check: ["m4.5 12.75l6 6l9-13.5"],
22
+ close: ["M6 18L18 6M6 6l12 12"],
23
+ bell: [
24
+ "M14.857 17.082a24 24 0 0 0 5.454-1.31A8.97 8.97 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.97 8.97 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.3 24.3 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0",
25
+ ],
26
+ "chevron-right": ["m8.25 4.5l7.5 7.5l-7.5 7.5"],
27
+ "chevron-down": ["m19.5 8.25l-7.5 7.5l-7.5-7.5"],
28
+ "chevron-left": ["M15.75 19.5L8.25 12l7.5-7.5"],
29
+ trash: [
30
+ "m14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.088 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0",
31
+ ],
32
+ user: [
33
+ "M15.75 6a3.75 3.75 0 1 1-7.5 0a3.75 3.75 0 0 1 7.5 0M4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.9 17.9 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632",
34
+ ],
35
+ wrench: [
36
+ "M11.42 15.17L17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14q.19.017.384.017a4.5 4.5 0 0 0 4.102-6.352l-3.276 3.276a3 3 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008z",
37
+ ],
38
+ cash: [
39
+ "M2.25 18.75a60 60 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0a3 3 0 0 1 6 0m3 0h.008v.008H18zm-12 0h.008v.008H6z",
40
+ ],
41
+ mobile: [
42
+ "M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3",
43
+ ],
44
+ warning: [
45
+ "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z",
46
+ ],
47
+ info: [
48
+ "m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z",
49
+ ],
50
+ cube: [
51
+ "m21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9",
52
+ ],
53
+ tag: [
54
+ "M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.1 18.1 0 0 0 5.224-5.223c.54-.827.368-1.908-.33-2.607l-9.583-9.58A2.25 2.25 0 0 0 9.568 3",
55
+ "M6 6h.008v.008H6z",
56
+ ],
57
+ logout: [
58
+ "M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0l-3-3m0 0l3-3m-3 3H15",
59
+ ],
60
+ };
61
+ /** All available icon names (handy for galleries / validation). */
62
+ export const iconNames = Object.keys(iconPaths);
63
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/components/Icon/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE;QACN,+EAA+E;KAChF;IACD,IAAI,EAAE;QACJ,2QAA2Q;KAC5Q;IACD,IAAI,EAAE,CAAC,wBAAwB,CAAC;IAChC,KAAK,EAAE,CAAC,UAAU,CAAC;IACnB,KAAK,EAAE,CAAC,uBAAuB,CAAC;IAChC,KAAK,EAAE,CAAC,sBAAsB,CAAC;IAC/B,IAAI,EAAE;QACJ,wMAAwM;KACzM;IACD,eAAe,EAAE,CAAC,4BAA4B,CAAC;IAC/C,cAAc,EAAE,CAAC,8BAA8B,CAAC;IAChD,cAAc,EAAE,CAAC,6BAA6B,CAAC;IAC/C,KAAK,EAAE;QACL,kXAAkX;KACnX;IACD,IAAI,EAAE;QACJ,mJAAmJ;KACpJ;IACD,MAAM,EAAE;QACN,6gBAA6gB;KAC9gB;IACD,IAAI,EAAE;QACJ,ieAAie;KACle;IACD,MAAM,EAAE;QACN,sKAAsK;KACvK;IACD,OAAO,EAAE;QACP,+JAA+J;KAChK;IACD,IAAI,EAAE;QACJ,qJAAqJ;KACtJ;IACD,IAAI,EAAE;QACJ,uFAAuF;KACxF;IACD,GAAG,EAAE;QACH,0MAA0M;QAC1M,mBAAmB;KACpB;IACD,MAAM,EAAE;QACN,wJAAwJ;KACzJ;CACO,CAAC;AAIX,mEAAmE;AACnE,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./icons";
2
+ export * from "./config";
3
+ export * from "./types";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./icons";
2
+ export * from "./config";
3
+ export * from "./types";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { IconName } from "./icons";
2
+ export type { IconName };
3
+ export interface BaseIconProps {
4
+ /** Which icon to render (see iconNames for the full set) */
5
+ name: IconName;
6
+ /** Pixel size for both width and height (default 24) */
7
+ size?: number;
8
+ /** Stroke color (default neutral-700) */
9
+ color?: string;
10
+ /** Stroke width (default 1.5) */
11
+ strokeWidth?: number;
12
+ className?: string;
13
+ id?: string;
14
+ testID?: string;
15
+ }
16
+ export interface ReactIconProps extends BaseIconProps {
17
+ /** Accessible label; when set the icon is exposed as role="img" */
18
+ title?: string;
19
+ }
20
+ export interface ReactNativeIconProps extends BaseIconProps {
21
+ }
22
+ export interface AngularIconProps extends BaseIconProps {
23
+ }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,IAAI,EAAE,QAAQ,CAAC;IACf,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,oBAAqB,SAAQ,aAAa;CAAG;AAC9D,MAAM,WAAW,gBAAiB,SAAQ,aAAa;CAAG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -10,4 +10,5 @@ export * from "./components/Avatar";
10
10
  export * from "./components/Card";
11
11
  export * from "./components/SegmentedControl";
12
12
  export * from "./components/QuantityStepper";
13
+ export * from "./components/Icon";
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -14,4 +14,5 @@ export * from "./components/Avatar";
14
14
  export * from "./components/Card";
15
15
  export * from "./components/SegmentedControl";
16
16
  export * from "./components/QuantityStepper";
17
+ export * from "./components/Icon";
17
18
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,cAAc,qBAAqB,CAAC;AAEpC,yDAAyD;AACzD,cAAc,oBAAoB,CAAC;AAEnC,sDAAsD;AACtD,cAAc,oBAAoB,CAAC;AAEnC,kBAAkB;AAClB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,cAAc,qBAAqB,CAAC;AAEpC,yDAAyD;AACzD,cAAc,oBAAoB,CAAC;AAEnC,sDAAsD;AACtD,cAAc,oBAAoB,CAAC;AAEnC,kBAAkB;AAClB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lamenna/lxp-shared-components",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Shared component logic for LXP - reusable across React, React Native, and Angular",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@lamenna/lxp-tokens": "0.4.0"
14
+ "@lamenna/lxp-tokens": "0.5.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/react": "18.2.79",