@muonic/muon 0.0.2-beta.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.
Files changed (124) hide show
  1. package/.nycrc +17 -0
  2. package/.versionrc +3 -0
  3. package/CHANGELOG.md +389 -0
  4. package/components/card/index.js +1 -0
  5. package/components/card/src/card-component.js +43 -0
  6. package/components/card/src/card-styles.css +25 -0
  7. package/components/card/src/config-tokens.json +11 -0
  8. package/components/card/src/design-tokens.json +34 -0
  9. package/components/card/story.js +52 -0
  10. package/components/cta/index.js +1 -0
  11. package/components/cta/src/config-tokens.json +11 -0
  12. package/components/cta/src/cta-component.js +174 -0
  13. package/components/cta/src/cta-styles.css +105 -0
  14. package/components/cta/src/design-tokens.json +132 -0
  15. package/components/cta/story.js +99 -0
  16. package/components/detail/index.js +1 -0
  17. package/components/detail/src/config-tokens.json +11 -0
  18. package/components/detail/src/design-tokens.json +102 -0
  19. package/components/detail/src/detail-component.js +27 -0
  20. package/components/detail/src/detail-styles.css +83 -0
  21. package/components/detail/story.js +33 -0
  22. package/components/form/index.js +1 -0
  23. package/components/form/src/config-tokens.json +11 -0
  24. package/components/form/src/design-tokens.json +9 -0
  25. package/components/form/src/form-component.js +197 -0
  26. package/components/form/src/form-styles.css +10 -0
  27. package/components/form/story.js +71 -0
  28. package/components/icon/index.js +1 -0
  29. package/components/icon/src/config-tokens.json +31 -0
  30. package/components/icon/src/design-tokens.json +8 -0
  31. package/components/icon/src/icon-component.js +91 -0
  32. package/components/icon/src/icon-styles.css +26 -0
  33. package/components/icon/story.js +26 -0
  34. package/components/image/index.js +1 -0
  35. package/components/image/src/config-tokens.json +26 -0
  36. package/components/image/src/image-component.js +96 -0
  37. package/components/image/src/image-styles.css +71 -0
  38. package/components/image/story.js +31 -0
  39. package/components/inputter/index.js +1 -0
  40. package/components/inputter/src/config-tokens.json +14 -0
  41. package/components/inputter/src/design-tokens.json +308 -0
  42. package/components/inputter/src/inputter-component.js +227 -0
  43. package/components/inputter/src/inputter-styles-detail.css +59 -0
  44. package/components/inputter/src/inputter-styles.css +305 -0
  45. package/components/inputter/src/inputter-styles.slotted.css +64 -0
  46. package/components/inputter/story.js +243 -0
  47. package/css/accessibility.css +3 -0
  48. package/css/default.css +9 -0
  49. package/css/global.css +8 -0
  50. package/directives/image-loader-directive.js +116 -0
  51. package/directives/svg-loader-directive.js +94 -0
  52. package/index.js +52 -0
  53. package/mixins/card-mixin.js +27 -0
  54. package/mixins/detail-mixin.js +128 -0
  55. package/mixins/form-associate-mixin.js +36 -0
  56. package/mixins/form-element-mixin.js +378 -0
  57. package/mixins/image-holder-mixin.js +20 -0
  58. package/mixins/mask-mixin.js +159 -0
  59. package/mixins/validation-mixin.js +272 -0
  60. package/muon-element/index.js +97 -0
  61. package/package.json +72 -0
  62. package/rollup.config.mjs +30 -0
  63. package/scripts/build/storybook/index.mjs +11 -0
  64. package/scripts/build/storybook/run.mjs +47 -0
  65. package/scripts/rollup-plugins.mjs +116 -0
  66. package/scripts/serve/index.mjs +11 -0
  67. package/scripts/serve/run.mjs +27 -0
  68. package/scripts/style-dictionary.mjs +64 -0
  69. package/scripts/utils/config.mjs +30 -0
  70. package/scripts/utils/index.mjs +283 -0
  71. package/storybook/find-stories.js +36 -0
  72. package/storybook/server.config.mjs +19 -0
  73. package/storybook/stories.js +86 -0
  74. package/storybook/tokens/color.js +87 -0
  75. package/storybook/tokens/font.js +52 -0
  76. package/storybook/tokens/spacer.js +48 -0
  77. package/tests/README.md +3 -0
  78. package/tests/components/card/__snapshots__/card.test.snap.js +70 -0
  79. package/tests/components/card/card.test.js +81 -0
  80. package/tests/components/cta/__snapshots__/cta.test.snap.js +246 -0
  81. package/tests/components/cta/cta.test.js +212 -0
  82. package/tests/components/form/__snapshots__/form.test.snap.js +115 -0
  83. package/tests/components/form/form.test.js +336 -0
  84. package/tests/components/icon/__snapshots__/icon.test.snap.js +95 -0
  85. package/tests/components/icon/icon.test.js +197 -0
  86. package/tests/components/image/__snapshots__/image.test.snap.js +205 -0
  87. package/tests/components/image/image.test.js +314 -0
  88. package/tests/components/image/images/15.png +0 -0
  89. package/tests/components/image/images/150.png +0 -0
  90. package/tests/components/inputter/__snapshots__/inputter.test.snap.js +357 -0
  91. package/tests/components/inputter/inputter.test.js +427 -0
  92. package/tests/helpers/index.js +30 -0
  93. package/tests/mixins/__snapshots__/card.test.snap.js +35 -0
  94. package/tests/mixins/__snapshots__/detail.test.snap.js +237 -0
  95. package/tests/mixins/__snapshots__/form-element.test.snap.js +137 -0
  96. package/tests/mixins/__snapshots__/mask.test.snap.js +53 -0
  97. package/tests/mixins/__snapshots__/validation.test.snap.js +297 -0
  98. package/tests/mixins/card.test.js +63 -0
  99. package/tests/mixins/detail.test.js +223 -0
  100. package/tests/mixins/form-element.test.js +473 -0
  101. package/tests/mixins/mask.test.js +261 -0
  102. package/tests/mixins/muon-element.test.js +52 -0
  103. package/tests/mixins/validation.test.js +423 -0
  104. package/tests/runner/commands.mjs +19 -0
  105. package/tests/scripts/utils/card-component.js +26 -0
  106. package/tests/scripts/utils/muon.config.test.json +13 -0
  107. package/tests/scripts/utils/single.component.config.json +5 -0
  108. package/tests/scripts/utils/test-runner.mjs +1 -0
  109. package/tests/scripts/utils/utils-test.mjs +284 -0
  110. package/tests/utils/validation.functions.test.js +199 -0
  111. package/tokens/theme/color.json +482 -0
  112. package/tokens/theme/font.json +61 -0
  113. package/tokens/theme/size.json +27 -0
  114. package/tokens/theme/spacer.json +73 -0
  115. package/tokens/utils/formats/reference.js +17 -0
  116. package/tokens/utils/modular-scale.js +33 -0
  117. package/tokens/utils/templates/font-face.css.template +30 -0
  118. package/tokens/utils/transforms/color.js +27 -0
  119. package/tokens/utils/transforms/string.js +6 -0
  120. package/tokens/utils/validation.json +76 -0
  121. package/utils/scroll/index.js +31 -0
  122. package/utils/validation/index.js +205 -0
  123. package/web-test-runner.browserstack.config.mjs +123 -0
  124. package/web-test-runner.config.mjs +44 -0
package/.nycrc ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "report-dir": "./coverage/scripts-coverage",
3
+ "reporter": [
4
+ "html",
5
+ "text"
6
+ ],
7
+ "exclude": [
8
+ "**/modular-scale.js",
9
+ "tests",
10
+ "tokens/**/string.js"
11
+ ],
12
+ "check-coverage": true,
13
+ "lines": 99,
14
+ "branches": 99,
15
+ "functions":99,
16
+ "statements": 99
17
+ }
package/.versionrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "path": "."
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,389 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [0.0.2-beta.0](https://github.com/centrica-engineering/muon/compare/v0.0.2-alpha.2...v0.0.2-beta.0) (2022-10-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * form comp ([8dd5fb6](https://github.com/centrica-engineering/muon/commit/8dd5fb66caeb0c3ed53a18497b6d4d00006d73a8))
11
+ * layout-row tokens and styles ([e221d8a](https://github.com/centrica-engineering/muon/commit/e221d8a7677be49a24f7e3974b46c672d863171e))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * analyzer ([018a59a](https://github.com/centrica-engineering/muon/commit/018a59a9f8e92b72f18a8d1f605dc8500aefeba0))
17
+ * analyzer rollup ([ef8c7aa](https://github.com/centrica-engineering/muon/commit/ef8c7aaef0fe15cc0bbbb78945f0137ba89ee321))
18
+ * analyzer to include components from node_modules ([32bace4](https://github.com/centrica-engineering/muon/commit/32bace4403dc007b84bb49bc59aa580351558c78))
19
+ * automation failures ([238d9bf](https://github.com/centrica-engineering/muon/commit/238d9bf0c70576ef9a24ab8984fc7176656c2c23))
20
+ * ava version ([1851f5e](https://github.com/centrica-engineering/muon/commit/1851f5e10c9a119a81e17e9afffdd14436f028ae))
21
+ * browserstack test failure ([a471e5c](https://github.com/centrica-engineering/muon/commit/a471e5c7995a5564d034460b0dcca39aa344db07))
22
+ * build error ([25b6a9d](https://github.com/centrica-engineering/muon/commit/25b6a9d166b5ab9f4e8aa5d67ab13f9fcd7d2551))
23
+ * clean rollup output path ([7d37480](https://github.com/centrica-engineering/muon/commit/7d37480bbc770b790a47ea246956a25a83bffa7b))
24
+ * cleanup dist before rollup ([24cb36a](https://github.com/centrica-engineering/muon/commit/24cb36a6a9a5fb6c823ceaa5e05a9cf3f0024f64))
25
+ * cleanup muon files for every build & serve ([e8b76c3](https://github.com/centrica-engineering/muon/commit/e8b76c3d2d372dd54e00969d4598e7b7694f61a6))
26
+ * cleanup util ([67b0e34](https://github.com/centrica-engineering/muon/commit/67b0e349fe9c06bc0310f9b0e7810a08477a9de5))
27
+ * command injection ([8f529aa](https://github.com/centrica-engineering/muon/commit/8f529aa095b8ec1d64c8abf2ea5b3d42ba3813d8))
28
+ * deplicate tag check ([7acd409](https://github.com/centrica-engineering/muon/commit/7acd4090a4e1ed3c352e3e3605c6308ea6f52f13))
29
+ * **deps:** fixing build and tests ([388eea8](https://github.com/centrica-engineering/muon/commit/388eea8956d24bfedf1d54959ed912ec22ba61c7))
30
+ * **deps:** packages ([a42388e](https://github.com/centrica-engineering/muon/commit/a42388e49a04c402d0aa8e5f34bab7c4109d1d51))
31
+ * **deps:** update dependencies ([19f8736](https://github.com/centrica-engineering/muon/commit/19f8736f06fb1e48e7af41a6a40c02e1f19885ff))
32
+ * **deps:** update vulnerabilities ([c0aad11](https://github.com/centrica-engineering/muon/commit/c0aad11e69d18a12cedf04927ed29247d3972648))
33
+ * eslint warning ([789b296](https://github.com/centrica-engineering/muon/commit/789b2961c56365a7c01e2ea3b0d3141fb2aa41dc))
34
+ * examples story path ([aa53050](https://github.com/centrica-engineering/muon/commit/aa530500a34b0c9fe50a0afa4c17926967033b7d))
35
+ * lint errors ([5938f65](https://github.com/centrica-engineering/muon/commit/5938f6566c71217553f557428d107bc0eb8a59ab))
36
+ * missing resolve dep ([f026873](https://github.com/centrica-engineering/muon/commit/f02687382dbf03d7f40f5a89835a5c488b9cd410))
37
+ * remove redundent code ([a414686](https://github.com/centrica-engineering/muon/commit/a414686ccb33016c1c2101ce20df33252fab69b7))
38
+ * remove staticHTML from template ([23196a3](https://github.com/centrica-engineering/muon/commit/23196a32b42652a726a0c82e7884e78f9790ab58))
39
+ * remove test ([41e7bbb](https://github.com/centrica-engineering/muon/commit/41e7bbb5e3127ca8a00c97a110986677be787a71))
40
+ * reset test fixtures ([1bf64f4](https://github.com/centrica-engineering/muon/commit/1bf64f4bc15c36396027a402d14eefbc277a0ff8))
41
+ * reset value ([b8682ee](https://github.com/centrica-engineering/muon/commit/b8682ee9b3deb7022cd49040f1264f417223c30f))
42
+ * reset web component values ([40da965](https://github.com/centrica-engineering/muon/commit/40da9653e76474d973e766951c5ddf9c6249df6e))
43
+ * test failure ([694fc36](https://github.com/centrica-engineering/muon/commit/694fc360c4db676b649aa64eb508fe30adf51b46))
44
+ * test failure ([16d0075](https://github.com/centrica-engineering/muon/commit/16d00750d5383755025e41e49adba5cc01b834cf))
45
+ * test failures ([c6fd411](https://github.com/centrica-engineering/muon/commit/c6fd41117c5201218721bc0c2501a5e4fca3fb93))
46
+ * tmp directory skip ([58e9333](https://github.com/centrica-engineering/muon/commit/58e9333db57dac6400e2e612232125d8dcf56331))
47
+
48
+ ### [0.0.2-alpha.2](https://github.com/centrica-engineering/muon/compare/v0.0.2-alpha.1...v0.0.2-alpha.2) (2022-04-07)
49
+
50
+
51
+ ### Features
52
+
53
+ * card mixin ([b6ffca6](https://github.com/centrica-engineering/muon/commit/b6ffca6df8ecef677c2d40c8fbf8d7f7423b411d))
54
+ * card mixins, component and stories ([14abfd5](https://github.com/centrica-engineering/muon/commit/14abfd5fd897c6452c97a36cb923bbbabc28a839))
55
+ * config disabled form element state ([7f1163c](https://github.com/centrica-engineering/muon/commit/7f1163c6746c9d14ed453ca586682a0ac16e80c7))
56
+ * find stories based on config ([c3e38cf](https://github.com/centrica-engineering/muon/commit/c3e38cf1d7ac363713e068065adf3c6bc1679207))
57
+ * include media template ([68228ca](https://github.com/centrica-engineering/muon/commit/68228cae09cadb417ef188184f37a686e2bdc527))
58
+ * initial card styles ([4ebfd65](https://github.com/centrica-engineering/muon/commit/4ebfd65319387405b7441ad377a5d33bf1589fd3))
59
+ * radio and checkbox styles to use ::slotted() ([1089a2e](https://github.com/centrica-engineering/muon/commit/1089a2e11455059c51a1c3e28d7b981110032321))
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * add null check and documentation ([bf1c9ea](https://github.com/centrica-engineering/muon/commit/bf1c9ea2dd77aff41a3ac5cb7c12974d3fde6bd1))
65
+ * **deps:** update dependency @rollup/plugin-replace to v4 ([89c2905](https://github.com/centrica-engineering/muon/commit/89c29051d155ea1ea6c74c108143c6450ef651ae))
66
+ * footer content ([c968ebe](https://github.com/centrica-engineering/muon/commit/c968ebeb95bb39cba712a452da422d207eef72d6))
67
+ * getter templates and tests ([8aac023](https://github.com/centrica-engineering/muon/commit/8aac0232dd9c04b48d692cbb76096b6211fae78e))
68
+ * inputter native validation ([e93715e](https://github.com/centrica-engineering/muon/commit/e93715e0bcc66e4ae2912d9a56f61a1bad48da35))
69
+ * multiple validations ([594f848](https://github.com/centrica-engineering/muon/commit/594f848b2d757d437daee4d95c52ca6e87fe75c0))
70
+ * prefix as string ([5564bb6](https://github.com/centrica-engineering/muon/commit/5564bb66b0116f9428c3b4be13b782aa91238cf7))
71
+ * refactor action slot and card types ([b3e71a2](https://github.com/centrica-engineering/muon/commit/b3e71a2957702cf52996e36b938f21b1a51396db))
72
+ * remove html entity ([f132b31](https://github.com/centrica-engineering/muon/commit/f132b316956bbe9c9c9502b1e28a483b02f440be))
73
+ * remove html entity ([ab59174](https://github.com/centrica-engineering/muon/commit/ab59174fe4821dc1c776657c9f5c8c7f505c63b2))
74
+ * remove placholder for card-image ([4a7019d](https://github.com/centrica-engineering/muon/commit/4a7019d4926f1358433ce57c019801a111822c74))
75
+ * revert the change ([f61a5a9](https://github.com/centrica-engineering/muon/commit/f61a5a9413f649ce545e347584cd23149e366026))
76
+ * sync value property to input element value ([cf440d3](https://github.com/centrica-engineering/muon/commit/cf440d389fb5c460130a0ade8b93d53e292be462))
77
+ * typo ([cd61ec4](https://github.com/centrica-engineering/muon/commit/cd61ec466db20f7b115e70f970ecdb3cd9e8839b))
78
+
79
+ ### 0.0.2-alpha.1 (2022-03-07)
80
+
81
+
82
+ ### Features
83
+
84
+ * add custom validation ([b6635e6](https://github.com/centrica-engineering/muon/commit/b6635e660224e9b53541c6efe82f002766d46e4d))
85
+ * add default cta tokens ([5c7dc75](https://github.com/centrica-engineering/muon/commit/5c7dc75993718f9554d25d94a730c5476dec2a14))
86
+ * add icon component and svg directive ([6297ffc](https://github.com/centrica-engineering/muon/commit/6297ffce1c9f92fdd9c1fbe86cbaf5b2ce5ca16e))
87
+ * add initial components ([8bcca96](https://github.com/centrica-engineering/muon/commit/8bcca96db28678c17a178a22ee79c6fc5f340cba))
88
+ * add initial image component and image loader directives ([b0426ee](https://github.com/centrica-engineering/muon/commit/b0426ee7fdb175d5c78415a43a1b5ca86dcdcf2e))
89
+ * add light dom method ([a85e5da](https://github.com/centrica-engineering/muon/commit/a85e5da383668644a90fa01596f93f6613141bcc))
90
+ * add loading class to classMap ([e8ae0c3](https://github.com/centrica-engineering/muon/commit/e8ae0c3dd9fa04ae7a71c538c29ee0cf9692360a))
91
+ * add loading class to test ([0451b60](https://github.com/centrica-engineering/muon/commit/0451b60e572e3b0bbbc7277b1c30167a74017c3c))
92
+ * add size tokens ([df04da1](https://github.com/centrica-engineering/muon/commit/df04da192e300a149c944f71ca8d0cac4ee401a5))
93
+ * allow fill in high contrast ([c6fc8eb](https://github.com/centrica-engineering/muon/commit/c6fc8eb0c421cb77da4f4e660c0c5b51b0a4d66b))
94
+ * apply hover to inputter detail ([80939a7](https://github.com/centrica-engineering/muon/commit/80939a79486a10d300fc1097a8db5b40ee9b2916))
95
+ * blur event ([bc73210](https://github.com/centrica-engineering/muon/commit/bc73210fc8f8da1eea6ead7520f04a32ae6d7645))
96
+ * change ICON token to ICON_NAME ([26b3930](https://github.com/centrica-engineering/muon/commit/26b393002961a6f6116e0d5ef65a94427b965354))
97
+ * change link url to be `#!` ([ab7a9de](https://github.com/centrica-engineering/muon/commit/ab7a9de8af53889f41329b167594d73a2489892f))
98
+ * checked and disabled for checkbox and radio ([30f3366](https://github.com/centrica-engineering/muon/commit/30f3366829c20f404836478c154913f89e9399f3))
99
+ * chroma modify theme.color.text.dark ([a769feb](https://github.com/centrica-engineering/muon/commit/a769feb5faf35e7f3446e1e95e6a6c5c669c6587))
100
+ * color tokens ([ee2439a](https://github.com/centrica-engineering/muon/commit/ee2439a7bc1a3f9e5860567a578d65633c744457))
101
+ * content indent for toggle-start ([bb2d542](https://github.com/centrica-engineering/muon/commit/bb2d54289b0be819fbf98330f1abdc904abe4aa6))
102
+ * css selector ([438f7c0](https://github.com/centrica-engineering/muon/commit/438f7c05f730c14da57971c7b4fcc4b0cb058e11))
103
+ * cta styles ([44f5b2f](https://github.com/centrica-engineering/muon/commit/44f5b2f9e20e8f1a9009558482bb91559decc339))
104
+ * deploy storybook ([b245cbe](https://github.com/centrica-engineering/muon/commit/b245cbe282b5bb4851adddbb88535d8c94623ed2))
105
+ * detail icon ([7b6c0ef](https://github.com/centrica-engineering/muon/commit/7b6c0ef4e72c06c4ecdc803511525043fdca0b23))
106
+ * detail mixin ([17b3f4b](https://github.com/centrica-engineering/muon/commit/17b3f4bb685ddb8a2982709666a23b8a7d11f804))
107
+ * dispatch event for failed image ([933783d](https://github.com/centrica-engineering/muon/commit/933783dee9f7b7f7c10bc7806528e80d9d7c1cc7))
108
+ * dynamically assign input type ([cc2f62f](https://github.com/centrica-engineering/muon/commit/cc2f62f82381b87691a065f9041f39a432843eb9))
109
+ * es6 module ([9914cc3](https://github.com/centrica-engineering/muon/commit/9914cc37ae5bc99c767e7f072a4785a822a4a012))
110
+ * fine tuning browser pseudo elements ([ddd958b](https://github.com/centrica-engineering/muon/commit/ddd958b87c190e102a26ed858fcf27e1d490acc1))
111
+ * font tokens ([289cda4](https://github.com/centrica-engineering/muon/commit/289cda42143e64bf1923b2f9da2e48e32d135020))
112
+ * form element mixin test coverage ([388eae5](https://github.com/centrica-engineering/muon/commit/388eae5d4133df5da744fc373f931d52cf20968d))
113
+ * form element mixin test coverage ([04fe9d3](https://github.com/centrica-engineering/muon/commit/04fe9d34cf596511c47e2205e5a26a856582ed75))
114
+ * formelement mixin ([f3a62c5](https://github.com/centrica-engineering/muon/commit/f3a62c514d924c4d36849814d1449520c100206e))
115
+ * formelement mixin ([7d4d9ba](https://github.com/centrica-engineering/muon/commit/7d4d9ba124ee47c75f1c426fe112d0cdf889b601))
116
+ * further cta styling ([85036b7](https://github.com/centrica-engineering/muon/commit/85036b757d6e8ae1d1772a96da9ee61d25e1e7a5))
117
+ * global styles for checkbox and radio ([c26f4c3](https://github.com/centrica-engineering/muon/commit/c26f4c3fdc81fd56477a12ffe648e563785eb30b))
118
+ * helper component ([03bf245](https://github.com/centrica-engineering/muon/commit/03bf2456960b9588440bb4ef0e838760b9e0dc82))
119
+ * hide the details marker in Safari ([9758007](https://github.com/centrica-engineering/muon/commit/9758007dca98e0f53ca70ecc221838732b6871fa))
120
+ * html and class name changes ([611b056](https://github.com/centrica-engineering/muon/commit/611b056054623c1e5240124dd55ce62e340f423e))
121
+ * icon position ([6858520](https://github.com/centrica-engineering/muon/commit/68585200ef85c946f937af60b8c46e81e893ec78))
122
+ * include cta spacer tokens ([e1d7d5f](https://github.com/centrica-engineering/muon/commit/e1d7d5fd66592464c9a3c59b65ef02a6b91be456))
123
+ * include details icon and toggle size token ([f7a3643](https://github.com/centrica-engineering/muon/commit/f7a3643acc53a5642926be19112919d7974f98ce))
124
+ * include disabled and e.g. to placeholder ([ff1ac80](https://github.com/centrica-engineering/muon/commit/ff1ac805f4a9703055c5cbd09cca7ccbdd2ca441))
125
+ * include icons for date, search, select ([6ddc9d2](https://github.com/centrica-engineering/muon/commit/6ddc9d2b86cd151260248178540d0dc7a0b25b6e))
126
+ * include inputter detail styles ([22115b8](https://github.com/centrica-engineering/muon/commit/22115b8c6177b786e9fedf22a81181bdaa6ea4ee))
127
+ * include size token for cta icon ([f6ce21e](https://github.com/centrica-engineering/muon/commit/f6ce21ee07591a97b44ae3818bcd2f1b2b22461a))
128
+ * include size token for validation icon ([4d34b16](https://github.com/centrica-engineering/muon/commit/4d34b1623cfa5b185f49d5a284c25c54373d0ec1))
129
+ * include styles for details ([8b662ff](https://github.com/centrica-engineering/muon/commit/8b662ff3c2d49ee8df3cbd79043811ebea776ec6))
130
+ * including autocomplete attribute ([88663cd](https://github.com/centrica-engineering/muon/commit/88663cd0b8ad07d19e935d2ab1de5d7cd91f44b2))
131
+ * initial inputter styles ([6c948a1](https://github.com/centrica-engineering/muon/commit/6c948a1bb07a711dd8e2ae34b82e6da32dbcb557))
132
+ * initial tokens for cta ([db945d4](https://github.com/centrica-engineering/muon/commit/db945d4a2bc5c8193cd044ff7b41982f0a007492))
133
+ * initialise properties in constructor ([6fe8d20](https://github.com/centrica-engineering/muon/commit/6fe8d20f829ef98731022fd24f55c4aea8c27bd2))
134
+ * input type icon ([3ad5848](https://github.com/centrica-engineering/muon/commit/3ad584883ecc23a370572cc742bdb264fd29f244))
135
+ * introduce a default state token ([4364be6](https://github.com/centrica-engineering/muon/commit/4364be6316623d956c3cdc8489f21dc37af38ad3))
136
+ * introduce colours ([fdef9f7](https://github.com/centrica-engineering/muon/commit/fdef9f759a04c343aebee4d63cc7e9a4802bc87f))
137
+ * introduce disabled variant ([d938ee7](https://github.com/centrica-engineering/muon/commit/d938ee71ca19886e920fc8c33e949e501f7b543f))
138
+ * introduce global styles for slotted content ([620bc6b](https://github.com/centrica-engineering/muon/commit/620bc6b4aa2ede9f42b80c044c1a79a1ea5bcc9f))
139
+ * label and textarea display ([2c58aac](https://github.com/centrica-engineering/muon/commit/2c58aac3751227b2994f0e5b772df04c293be2e1))
140
+ * mask and separator ([8d74ffc](https://github.com/centrica-engineering/muon/commit/8d74ffcc0b00812a1beed7a46d694b6498b492ce))
141
+ * mask mixin ([d82ab59](https://github.com/centrica-engineering/muon/commit/d82ab59384f3b138b38adced40142c51dd02cec0))
142
+ * mask separator controller and directive ([4372c68](https://github.com/centrica-engineering/muon/commit/4372c68f97288a896462fb0541f2aa4144f7fad8))
143
+ * muon wrapper elements ([d9f1608](https://github.com/centrica-engineering/muon/commit/d9f16088f5eb1cc3241dbd987be642336afb38ba))
144
+ * muonelement as mixin ([59726db](https://github.com/centrica-engineering/muon/commit/59726db84b33ba798431e5a8218dc95437dbdadc))
145
+ * open close icon tokens ([0876cf5](https://github.com/centrica-engineering/muon/commit/0876cf5b95d60d7eba0a7947aab74cb6709eae4b))
146
+ * property name typo ([c066055](https://github.com/centrica-engineering/muon/commit/c0660552825beaa3e3bc6cb3362d6f6dcaf9b81a))
147
+ * radio and checkbox slotted base style ([d5728a5](https://github.com/centrica-engineering/muon/commit/d5728a505cb4b7b7d58f52e37f446347a3e63e9f))
148
+ * reduce dom depth ([1666614](https://github.com/centrica-engineering/muon/commit/166661439d230646783e750a6a26fca4c3237af5))
149
+ * remove global inputter styles ([eb11e35](https://github.com/centrica-engineering/muon/commit/eb11e358eded387ad354cb5d41c4ed990c4bb779))
150
+ * rename toggle-icon to toggle ([9fb4b9a](https://github.com/centrica-engineering/muon/commit/9fb4b9ae6e6c1a0e32d8ac06d80bbb943c0907e8))
151
+ * review changes ([6f1fb35](https://github.com/centrica-engineering/muon/commit/6f1fb3539736437f7bc629071cba53ec353ae30b))
152
+ * separator spacing and tests ([51a8a42](https://github.com/centrica-engineering/muon/commit/51a8a42d7aa4cd709c2dc33438919d840885123c))
153
+ * size token for inputter detail icon ([3992edc](https://github.com/centrica-engineering/muon/commit/3992edce826a8c755319dd035a2b3f8fe182a4ed))
154
+ * size token for inputter icon ([a9fd723](https://github.com/centrica-engineering/muon/commit/a9fd723e7890f8a451e039d1e94c4c4391dc13be))
155
+ * size token for multiple inputter icon ([fb1942f](https://github.com/centrica-engineering/muon/commit/fb1942f6fde17c12c273c5a481b4a6a3056d7eee))
156
+ * spacer tokens ([51b8cb2](https://github.com/centrica-engineering/muon/commit/51b8cb2c6ab5dba8655e81f0a97793905e626573))
157
+ * spacer tokens for inputter ([42f4dd0](https://github.com/centrica-engineering/muon/commit/42f4dd00ec9901799c44d9166c02c8fa08fc764c))
158
+ * story for disabled input ([dc97895](https://github.com/centrica-engineering/muon/commit/dc9789544447ba7ea0380ec2e7d3990dff4123b6))
159
+ * styles and tokens for detail component ([0e400c4](https://github.com/centrica-engineering/muon/commit/0e400c44582c1accdbdf47b7c483abd13460cbba))
160
+ * styles and tokens for inputter ([ad40f9c](https://github.com/centrica-engineering/muon/commit/ad40f9c81a3691ca2290a1155d966125bc2487eb))
161
+ * styling mask, separator, radio and checkbox ([d8083db](https://github.com/centrica-engineering/muon/commit/d8083db99c90659f1bfbe85ef44977a8f2712aea))
162
+ * test fixes ([688cbae](https://github.com/centrica-engineering/muon/commit/688cbae2d9d0343d193e584c9b9417ec9ad46180))
163
+ * test fixes ([4c304b4](https://github.com/centrica-engineering/muon/commit/4c304b4386888f77c9769f4faa6e1070d81e7c00))
164
+ * toggle icon position css ([6222dbf](https://github.com/centrica-engineering/muon/commit/6222dbfc727c9d1c753d74ea1b8d3bcdcb314ea6))
165
+ * token storybook ([9e11667](https://github.com/centrica-engineering/muon/commit/9e11667b946f1a3e3ff7aa24d52a9e7b3e9d99e1))
166
+ * update snapshot ([3155828](https://github.com/centrica-engineering/muon/commit/3155828e4b1c8ee7c1e856809f4e1d649b0d755c))
167
+ * update stories ([4525c0d](https://github.com/centrica-engineering/muon/commit/4525c0db91ed9ae21c5cfd8ec01be8811ea576d6))
168
+ * update to use latest tokens ([c12004a](https://github.com/centrica-engineering/muon/commit/c12004aa283077839322b8d2d222e10cb95d5502))
169
+ * use CanvasText for fill value ([1b1f68e](https://github.com/centrica-engineering/muon/commit/1b1f68ed421cf78620c2caf1690954bfc7058d9f))
170
+ * validation icon and helper styles ([03b61ad](https://github.com/centrica-engineering/muon/commit/03b61ad898e2ef1498e7fe9bb487f7e84167febe))
171
+ * validation mixin ([6ecbd6e](https://github.com/centrica-engineering/muon/commit/6ecbd6e4b91ae9f69627d2549ecfcf1878d79c09))
172
+ * validation state ([13aec96](https://github.com/centrica-engineering/muon/commit/13aec969c57f41e9bf3eff4ac09702d0e48f1cf1))
173
+ * whitespace tweaks ([ca1ec3e](https://github.com/centrica-engineering/muon/commit/ca1ec3e80ee9b5504d5a43472e04e895d341f1b1))
174
+
175
+
176
+ ### Bug Fixes
177
+
178
+ * [@muon](https://github.com/muons) ([46c3146](https://github.com/centrica-engineering/muon/commit/46c3146d7a44d168ca40cc72589c0f400722d41f))
179
+ * add inputter snapshot ([6f48488](https://github.com/centrica-engineering/muon/commit/6f48488e2fb3468e341ea5d6ecb57cbf4b341344))
180
+ * add inputter test ([d551b57](https://github.com/centrica-engineering/muon/commit/d551b576957a8ef71207363d06dee5637983426d))
181
+ * add missing catches and default values ([40141d4](https://github.com/centrica-engineering/muon/commit/40141d45fa46e5ea23e20fb248b0aa007c2d5f4b))
182
+ * add missing deps ([da9ad60](https://github.com/centrica-engineering/muon/commit/da9ad600def70549cf10c3fbfeb1421ca0441e46))
183
+ * addlightdom private ([a552c91](https://github.com/centrica-engineering/muon/commit/a552c91dde6763d3ec752f77c800f294e0581386))
184
+ * adoptedstyles not working ([5d6d20b](https://github.com/centrica-engineering/muon/commit/5d6d20bee3ba4ed7c95b6c54624e5c1e156d9292))
185
+ * async default check ([634c679](https://github.com/centrica-engineering/muon/commit/634c679c05ff390686311f8a545eafd39e22ca86))
186
+ * async snapshot call ([7769330](https://github.com/centrica-engineering/muon/commit/77693304a267c49d4394b92aa11f400f9e49360e))
187
+ * broken location for tokens and stories ([6f8b899](https://github.com/centrica-engineering/muon/commit/6f8b899ce58e8ed9e42725710c26922db4b9da06))
188
+ * change input type state to getter ([e835d62](https://github.com/centrica-engineering/muon/commit/e835d622b7b32f1a53485633541b74046beac296))
189
+ * change scope name ([5412ddb](https://github.com/centrica-engineering/muon/commit/5412ddbba12bbf6b3fa4d63b9f57ab44ffb96e56))
190
+ * console error ([8e8fec7](https://github.com/centrica-engineering/muon/commit/8e8fec7c0919063c17d12668189eda3032cc8ca6))
191
+ * contrain svg to bounds of icon size ([42cc9d0](https://github.com/centrica-engineering/muon/commit/42cc9d059741e7d2583cc1bf6487a434c7458562))
192
+ * css linting ([510d5e1](https://github.com/centrica-engineering/muon/commit/510d5e12c3c02d12f217e9c7a0356f8e2c86de48))
193
+ * dedupeMixin for FormElementMixin ([149e93e](https://github.com/centrica-engineering/muon/commit/149e93e669edf330f97256fd9b9a7902d85fb560))
194
+ * **deps:** update dependency rollup-plugin-styles to v4 ([a57ec09](https://github.com/centrica-engineering/muon/commit/a57ec09576f625454dbab3635f318749460e644e))
195
+ * disabled state for cta and to work within button ([7864117](https://github.com/centrica-engineering/muon/commit/78641173744e964e57f2da9cbde43ba81c7ab7ec))
196
+ * duplicate custom element names error ([61efab2](https://github.com/centrica-engineering/muon/commit/61efab225a53495eef7352c4cc56042cf47e4571))
197
+ * execsync ([c34dba0](https://github.com/centrica-engineering/muon/commit/c34dba09eb1c7f75f4d18fa019dc86d88bc28f5b))
198
+ * filter stories ([6a14864](https://github.com/centrica-engineering/muon/commit/6a1486462a65324894ae4e616d8d79c99b836f87))
199
+ * fix tab index for child element and add attribute for loading message ([6479c57](https://github.com/centrica-engineering/muon/commit/6479c570d166e07780af933ee8f82cc3ba93de17))
200
+ * form element snapshot changes ([48221c2](https://github.com/centrica-engineering/muon/commit/48221c24df1622842f7bc1d7c80a0d34ccbebae3))
201
+ * icon for validation message ([1e761b5](https://github.com/centrica-engineering/muon/commit/1e761b5564c0252d931e327b934b06c174fc00e7))
202
+ * icon in mixin ([a3889f7](https://github.com/centrica-engineering/muon/commit/a3889f72073c4b8aead6df46bb8a1842a383d29c))
203
+ * icon position for detail component ([17610c3](https://github.com/centrica-engineering/muon/commit/17610c387d5e3217312a197e1a9b2387616d63be))
204
+ * included type ([2d43767](https://github.com/centrica-engineering/muon/commit/2d4376782d53e7fe1881abb5e9de935bbbc88f78))
205
+ * issue with postcss not allowing start|end values ([54884e6](https://github.com/centrica-engineering/muon/commit/54884e6e7bef476a7e00dca190a98040b26e63e1))
206
+ * linting and Merge branch 'main' ([e6f70ae](https://github.com/centrica-engineering/muon/commit/e6f70ae1327f4f15af51c04e26b15289a98a2685))
207
+ * linting warnings ([9089546](https://github.com/centrica-engineering/muon/commit/90895467be4a220780fe2f2cb823e911a96636c4))
208
+ * lowercase CSS value ([5520296](https://github.com/centrica-engineering/muon/commit/55202961a5f5e070e98c5ce2235a4f83a66ce7e6))
209
+ * lowercase directive ([abfbcb0](https://github.com/centrica-engineering/muon/commit/abfbcb0cc2be9059d4d22d42e9b39f4caa31e3ca))
210
+ * mask contrast ratio ([2a6c24c](https://github.com/centrica-engineering/muon/commit/2a6c24cf2e96477377e2e143af508ec15913e373))
211
+ * mask template merge issue ([a9a06d4](https://github.com/centrica-engineering/muon/commit/a9a06d49b53389e15b054379008e3ae1324c42ed))
212
+ * mixin import path ([094c306](https://github.com/centrica-engineering/muon/commit/094c3066cf85cc708d3018c568707c844f753939))
213
+ * move component definer to util ([1b619c3](https://github.com/centrica-engineering/muon/commit/1b619c3d41e7855474a60c4eebcfde89e89f7267))
214
+ * namespace from config ([131209a](https://github.com/centrica-engineering/muon/commit/131209a51fbd78bda365a0df181f8588ffa00525))
215
+ * package path ([e833485](https://github.com/centrica-engineering/muon/commit/e8334852a7e687fb2581da8e5be2b52a9ed56b96))
216
+ * path to component definer ([11d7742](https://github.com/centrica-engineering/muon/commit/11d7742e4b1525b87e968d66582f166915f285b8))
217
+ * postcss working with light dom styles ([43ce030](https://github.com/centrica-engineering/muon/commit/43ce030bdd6b5ba5988b88b5c9d4588d812a2990))
218
+ * prefix config ([504ee8c](https://github.com/centrica-engineering/muon/commit/504ee8c3be265dcd9a63c476dd64e1b948667037))
219
+ * radio and checkbox vertical alignment ([e0b4998](https://github.com/centrica-engineering/muon/commit/e0b499828011f484afa8571652831447358cded3))
220
+ * remove console ([ee08614](https://github.com/centrica-engineering/muon/commit/ee08614d34473e0c2c84f648f3323c5189a0d367))
221
+ * remove console log ([f7897b3](https://github.com/centrica-engineering/muon/commit/f7897b3f1d42f7f25c2f144c419c178f76d2caf7))
222
+ * remove console log ([0f165f7](https://github.com/centrica-engineering/muon/commit/0f165f764f9048e0572391de2b1879faddefca1e))
223
+ * remove duplicate property type for cta ([2a1ce13](https://github.com/centrica-engineering/muon/commit/2a1ce13f1eac624280d662a77627782eb586fa53))
224
+ * remove muon script ([287531e](https://github.com/centrica-engineering/muon/commit/287531e677ad12ead1734742f527a6bc0e0f4a6d))
225
+ * remove node resolve ([b1511c5](https://github.com/centrica-engineering/muon/commit/b1511c5b5827db16a44bcf7263c92828f07c79f3))
226
+ * remove private for library ([03e6701](https://github.com/centrica-engineering/muon/commit/03e67011cdc4e5f2c045b73d647cb470a27a47eb))
227
+ * remove puppeteer ([8fa1a66](https://github.com/centrica-engineering/muon/commit/8fa1a662daec93766318fb1e8be71cf04d0d4ee3))
228
+ * remove unused state ([0335f7f](https://github.com/centrica-engineering/muon/commit/0335f7ff43a67e66269bc0c3d56ca64f7c435e6b))
229
+ * rename error keyword ([9aed69c](https://github.com/centrica-engineering/muon/commit/9aed69c282c492fc8e7101e6b2a66fb260eae490))
230
+ * rename inputType assign logic ([fab84e0](https://github.com/centrica-engineering/muon/commit/fab84e05ba6e0e446f2bd0721cba03666f5d0d5f))
231
+ * rename mixin ([272f47a](https://github.com/centrica-engineering/muon/commit/272f47a20a545ed71c0abbde102ac1e27b3f02fd))
232
+ * resolve node and input ([45baf89](https://github.com/centrica-engineering/muon/commit/45baf89a061f3a0424e8431de5dc4fb9673d0538))
233
+ * snapshot changes ([79b715d](https://github.com/centrica-engineering/muon/commit/79b715db7a114adf80aab228f536784449fdd0dd))
234
+ * stop icon from shrinking ([aa77818](https://github.com/centrica-engineering/muon/commit/aa77818d6c1ea4b5f3b7c46fc5aad4bd989ea2c9))
235
+ * styles for disabled ([05a626c](https://github.com/centrica-engineering/muon/commit/05a626c30c230e58d4725f0cb03875db49dbfa71))
236
+ * test context issue ([82335f6](https://github.com/centrica-engineering/muon/commit/82335f6e74423391d2118fbbca3e381dc7d666d8))
237
+ * test failures ([b51e46e](https://github.com/centrica-engineering/muon/commit/b51e46e5924719b90ab160dc657138ab216bc47a))
238
+ * test failures ([2577e81](https://github.com/centrica-engineering/muon/commit/2577e8131cade40102a6cbfd4faa2ef312c30aa4))
239
+ * test fixtures ([0f18c41](https://github.com/centrica-engineering/muon/commit/0f18c41ecedab92d8c81d15c457bd39956bf1e67))
240
+ * test runner library change ([e1428e6](https://github.com/centrica-engineering/muon/commit/e1428e6bcb92ab3ec5f5d17419090c812942815d))
241
+ * test-runner-path ([9e2d490](https://github.com/centrica-engineering/muon/commit/9e2d490f771668ad2379f52ba552ce77cc05c7b6))
242
+ * to dist dir ([280f25b](https://github.com/centrica-engineering/muon/commit/280f25b5059969021a63fb710fdb2a059e918af8))
243
+ * token dependency ([672039d](https://github.com/centrica-engineering/muon/commit/672039d73871044b1dba95ef8aa95989de9e83a0))
244
+ * use .mjs ([33be8b0](https://github.com/centrica-engineering/muon/commit/33be8b040990d93a92fd586aa438353d2ec25cc5))
245
+
246
+ ### 0.0.2-alpha.0 (2022-01-31)
247
+
248
+
249
+ ### Features
250
+
251
+ * add custom validation ([b6635e6](https://github.com/centrica-engineering/muon/commit/b6635e660224e9b53541c6efe82f002766d46e4d))
252
+ * add default cta tokens ([5c7dc75](https://github.com/centrica-engineering/muon/commit/5c7dc75993718f9554d25d94a730c5476dec2a14))
253
+ * add icon component and svg directive ([6297ffc](https://github.com/centrica-engineering/muon/commit/6297ffce1c9f92fdd9c1fbe86cbaf5b2ce5ca16e))
254
+ * add initial components ([8bcca96](https://github.com/centrica-engineering/muon/commit/8bcca96db28678c17a178a22ee79c6fc5f340cba))
255
+ * add initial image component and image loader directives ([b0426ee](https://github.com/centrica-engineering/muon/commit/b0426ee7fdb175d5c78415a43a1b5ca86dcdcf2e))
256
+ * add light dom method ([a85e5da](https://github.com/centrica-engineering/muon/commit/a85e5da383668644a90fa01596f93f6613141bcc))
257
+ * add loading class to classMap ([e8ae0c3](https://github.com/centrica-engineering/muon/commit/e8ae0c3dd9fa04ae7a71c538c29ee0cf9692360a))
258
+ * add loading class to test ([0451b60](https://github.com/centrica-engineering/muon/commit/0451b60e572e3b0bbbc7277b1c30167a74017c3c))
259
+ * allow fill in high contrast ([c6fc8eb](https://github.com/centrica-engineering/muon/commit/c6fc8eb0c421cb77da4f4e660c0c5b51b0a4d66b))
260
+ * apply hover to inputter detail ([80939a7](https://github.com/centrica-engineering/muon/commit/80939a79486a10d300fc1097a8db5b40ee9b2916))
261
+ * blur event ([bc73210](https://github.com/centrica-engineering/muon/commit/bc73210fc8f8da1eea6ead7520f04a32ae6d7645))
262
+ * change ICON token to ICON_NAME ([26b3930](https://github.com/centrica-engineering/muon/commit/26b393002961a6f6116e0d5ef65a94427b965354))
263
+ * change link url to be `#!` ([ab7a9de](https://github.com/centrica-engineering/muon/commit/ab7a9de8af53889f41329b167594d73a2489892f))
264
+ * checked and disabled for checkbox and radio ([30f3366](https://github.com/centrica-engineering/muon/commit/30f3366829c20f404836478c154913f89e9399f3))
265
+ * chroma modify theme.color.text.dark ([a769feb](https://github.com/centrica-engineering/muon/commit/a769feb5faf35e7f3446e1e95e6a6c5c669c6587))
266
+ * color tokens ([ee2439a](https://github.com/centrica-engineering/muon/commit/ee2439a7bc1a3f9e5860567a578d65633c744457))
267
+ * content indent for toggle-start ([bb2d542](https://github.com/centrica-engineering/muon/commit/bb2d54289b0be819fbf98330f1abdc904abe4aa6))
268
+ * css selector ([438f7c0](https://github.com/centrica-engineering/muon/commit/438f7c05f730c14da57971c7b4fcc4b0cb058e11))
269
+ * cta styles ([44f5b2f](https://github.com/centrica-engineering/muon/commit/44f5b2f9e20e8f1a9009558482bb91559decc339))
270
+ * deploy storybook ([b245cbe](https://github.com/centrica-engineering/muon/commit/b245cbe282b5bb4851adddbb88535d8c94623ed2))
271
+ * detail icon ([7b6c0ef](https://github.com/centrica-engineering/muon/commit/7b6c0ef4e72c06c4ecdc803511525043fdca0b23))
272
+ * detail mixin ([17b3f4b](https://github.com/centrica-engineering/muon/commit/17b3f4bb685ddb8a2982709666a23b8a7d11f804))
273
+ * dispatch event for failed image ([933783d](https://github.com/centrica-engineering/muon/commit/933783dee9f7b7f7c10bc7806528e80d9d7c1cc7))
274
+ * dynamically assign input type ([cc2f62f](https://github.com/centrica-engineering/muon/commit/cc2f62f82381b87691a065f9041f39a432843eb9))
275
+ * es6 module ([9914cc3](https://github.com/centrica-engineering/muon/commit/9914cc37ae5bc99c767e7f072a4785a822a4a012))
276
+ * fine tuning browser pseudo elements ([ddd958b](https://github.com/centrica-engineering/muon/commit/ddd958b87c190e102a26ed858fcf27e1d490acc1))
277
+ * font tokens ([289cda4](https://github.com/centrica-engineering/muon/commit/289cda42143e64bf1923b2f9da2e48e32d135020))
278
+ * form element mixin test coverage ([388eae5](https://github.com/centrica-engineering/muon/commit/388eae5d4133df5da744fc373f931d52cf20968d))
279
+ * form element mixin test coverage ([04fe9d3](https://github.com/centrica-engineering/muon/commit/04fe9d34cf596511c47e2205e5a26a856582ed75))
280
+ * formelement mixin ([f3a62c5](https://github.com/centrica-engineering/muon/commit/f3a62c514d924c4d36849814d1449520c100206e))
281
+ * formelement mixin ([7d4d9ba](https://github.com/centrica-engineering/muon/commit/7d4d9ba124ee47c75f1c426fe112d0cdf889b601))
282
+ * further cta styling ([85036b7](https://github.com/centrica-engineering/muon/commit/85036b757d6e8ae1d1772a96da9ee61d25e1e7a5))
283
+ * global styles for checkbox and radio ([c26f4c3](https://github.com/centrica-engineering/muon/commit/c26f4c3fdc81fd56477a12ffe648e563785eb30b))
284
+ * helper component ([03bf245](https://github.com/centrica-engineering/muon/commit/03bf2456960b9588440bb4ef0e838760b9e0dc82))
285
+ * hide the details marker in Safari ([9758007](https://github.com/centrica-engineering/muon/commit/9758007dca98e0f53ca70ecc221838732b6871fa))
286
+ * html and class name changes ([611b056](https://github.com/centrica-engineering/muon/commit/611b056054623c1e5240124dd55ce62e340f423e))
287
+ * icon position ([6858520](https://github.com/centrica-engineering/muon/commit/68585200ef85c946f937af60b8c46e81e893ec78))
288
+ * include cta spacer tokens ([e1d7d5f](https://github.com/centrica-engineering/muon/commit/e1d7d5fd66592464c9a3c59b65ef02a6b91be456))
289
+ * include disabled and e.g. to placeholder ([ff1ac80](https://github.com/centrica-engineering/muon/commit/ff1ac805f4a9703055c5cbd09cca7ccbdd2ca441))
290
+ * include icons for date, search, select ([6ddc9d2](https://github.com/centrica-engineering/muon/commit/6ddc9d2b86cd151260248178540d0dc7a0b25b6e))
291
+ * include inputter detail styles ([22115b8](https://github.com/centrica-engineering/muon/commit/22115b8c6177b786e9fedf22a81181bdaa6ea4ee))
292
+ * include styles for details ([8b662ff](https://github.com/centrica-engineering/muon/commit/8b662ff3c2d49ee8df3cbd79043811ebea776ec6))
293
+ * including autocomplete attribute ([88663cd](https://github.com/centrica-engineering/muon/commit/88663cd0b8ad07d19e935d2ab1de5d7cd91f44b2))
294
+ * initial inputter styles ([6c948a1](https://github.com/centrica-engineering/muon/commit/6c948a1bb07a711dd8e2ae34b82e6da32dbcb557))
295
+ * initial tokens for cta ([db945d4](https://github.com/centrica-engineering/muon/commit/db945d4a2bc5c8193cd044ff7b41982f0a007492))
296
+ * initialise properties in constructor ([6fe8d20](https://github.com/centrica-engineering/muon/commit/6fe8d20f829ef98731022fd24f55c4aea8c27bd2))
297
+ * input type icon ([3ad5848](https://github.com/centrica-engineering/muon/commit/3ad584883ecc23a370572cc742bdb264fd29f244))
298
+ * introduce a default state token ([4364be6](https://github.com/centrica-engineering/muon/commit/4364be6316623d956c3cdc8489f21dc37af38ad3))
299
+ * introduce colours ([fdef9f7](https://github.com/centrica-engineering/muon/commit/fdef9f759a04c343aebee4d63cc7e9a4802bc87f))
300
+ * introduce disabled variant ([d938ee7](https://github.com/centrica-engineering/muon/commit/d938ee71ca19886e920fc8c33e949e501f7b543f))
301
+ * introduce global styles for slotted content ([620bc6b](https://github.com/centrica-engineering/muon/commit/620bc6b4aa2ede9f42b80c044c1a79a1ea5bcc9f))
302
+ * label and textarea display ([2c58aac](https://github.com/centrica-engineering/muon/commit/2c58aac3751227b2994f0e5b772df04c293be2e1))
303
+ * mask and separator ([8d74ffc](https://github.com/centrica-engineering/muon/commit/8d74ffcc0b00812a1beed7a46d694b6498b492ce))
304
+ * mask mixin ([d82ab59](https://github.com/centrica-engineering/muon/commit/d82ab59384f3b138b38adced40142c51dd02cec0))
305
+ * mask separator controller and directive ([4372c68](https://github.com/centrica-engineering/muon/commit/4372c68f97288a896462fb0541f2aa4144f7fad8))
306
+ * muon wrapper elements ([d9f1608](https://github.com/centrica-engineering/muon/commit/d9f16088f5eb1cc3241dbd987be642336afb38ba))
307
+ * muonelement as mixin ([59726db](https://github.com/centrica-engineering/muon/commit/59726db84b33ba798431e5a8218dc95437dbdadc))
308
+ * open close icon tokens ([0876cf5](https://github.com/centrica-engineering/muon/commit/0876cf5b95d60d7eba0a7947aab74cb6709eae4b))
309
+ * property name typo ([c066055](https://github.com/centrica-engineering/muon/commit/c0660552825beaa3e3bc6cb3362d6f6dcaf9b81a))
310
+ * radio and checkbox slotted base style ([d5728a5](https://github.com/centrica-engineering/muon/commit/d5728a505cb4b7b7d58f52e37f446347a3e63e9f))
311
+ * reduce dom depth ([1666614](https://github.com/centrica-engineering/muon/commit/166661439d230646783e750a6a26fca4c3237af5))
312
+ * remove global inputter styles ([eb11e35](https://github.com/centrica-engineering/muon/commit/eb11e358eded387ad354cb5d41c4ed990c4bb779))
313
+ * rename toggle-icon to toggle ([9fb4b9a](https://github.com/centrica-engineering/muon/commit/9fb4b9ae6e6c1a0e32d8ac06d80bbb943c0907e8))
314
+ * review changes ([6f1fb35](https://github.com/centrica-engineering/muon/commit/6f1fb3539736437f7bc629071cba53ec353ae30b))
315
+ * separator spacing and tests ([51a8a42](https://github.com/centrica-engineering/muon/commit/51a8a42d7aa4cd709c2dc33438919d840885123c))
316
+ * spacer tokens ([51b8cb2](https://github.com/centrica-engineering/muon/commit/51b8cb2c6ab5dba8655e81f0a97793905e626573))
317
+ * spacer tokens for inputter ([42f4dd0](https://github.com/centrica-engineering/muon/commit/42f4dd00ec9901799c44d9166c02c8fa08fc764c))
318
+ * story for disabled input ([dc97895](https://github.com/centrica-engineering/muon/commit/dc9789544447ba7ea0380ec2e7d3990dff4123b6))
319
+ * styles and tokens for detail component ([0e400c4](https://github.com/centrica-engineering/muon/commit/0e400c44582c1accdbdf47b7c483abd13460cbba))
320
+ * styles and tokens for inputter ([ad40f9c](https://github.com/centrica-engineering/muon/commit/ad40f9c81a3691ca2290a1155d966125bc2487eb))
321
+ * styling mask, separator, radio and checkbox ([d8083db](https://github.com/centrica-engineering/muon/commit/d8083db99c90659f1bfbe85ef44977a8f2712aea))
322
+ * test fixes ([688cbae](https://github.com/centrica-engineering/muon/commit/688cbae2d9d0343d193e584c9b9417ec9ad46180))
323
+ * test fixes ([4c304b4](https://github.com/centrica-engineering/muon/commit/4c304b4386888f77c9769f4faa6e1070d81e7c00))
324
+ * toggle icon position css ([6222dbf](https://github.com/centrica-engineering/muon/commit/6222dbfc727c9d1c753d74ea1b8d3bcdcb314ea6))
325
+ * token storybook ([9e11667](https://github.com/centrica-engineering/muon/commit/9e11667b946f1a3e3ff7aa24d52a9e7b3e9d99e1))
326
+ * update snapshot ([3155828](https://github.com/centrica-engineering/muon/commit/3155828e4b1c8ee7c1e856809f4e1d649b0d755c))
327
+ * update stories ([4525c0d](https://github.com/centrica-engineering/muon/commit/4525c0db91ed9ae21c5cfd8ec01be8811ea576d6))
328
+ * update to use latest tokens ([c12004a](https://github.com/centrica-engineering/muon/commit/c12004aa283077839322b8d2d222e10cb95d5502))
329
+ * use CanvasText for fill value ([1b1f68e](https://github.com/centrica-engineering/muon/commit/1b1f68ed421cf78620c2caf1690954bfc7058d9f))
330
+ * validation icon and helper styles ([03b61ad](https://github.com/centrica-engineering/muon/commit/03b61ad898e2ef1498e7fe9bb487f7e84167febe))
331
+ * validation mixin ([6ecbd6e](https://github.com/centrica-engineering/muon/commit/6ecbd6e4b91ae9f69627d2549ecfcf1878d79c09))
332
+ * validation state ([13aec96](https://github.com/centrica-engineering/muon/commit/13aec969c57f41e9bf3eff4ac09702d0e48f1cf1))
333
+ * whitespace tweaks ([ca1ec3e](https://github.com/centrica-engineering/muon/commit/ca1ec3e80ee9b5504d5a43472e04e895d341f1b1))
334
+
335
+
336
+ ### Bug Fixes
337
+
338
+ * [@muon](https://github.com/muons) ([46c3146](https://github.com/centrica-engineering/muon/commit/46c3146d7a44d168ca40cc72589c0f400722d41f))
339
+ * add inputter snapshot ([6f48488](https://github.com/centrica-engineering/muon/commit/6f48488e2fb3468e341ea5d6ecb57cbf4b341344))
340
+ * add inputter test ([d551b57](https://github.com/centrica-engineering/muon/commit/d551b576957a8ef71207363d06dee5637983426d))
341
+ * add missing catches and default values ([40141d4](https://github.com/centrica-engineering/muon/commit/40141d45fa46e5ea23e20fb248b0aa007c2d5f4b))
342
+ * add missing deps ([da9ad60](https://github.com/centrica-engineering/muon/commit/da9ad600def70549cf10c3fbfeb1421ca0441e46))
343
+ * adoptedstyles not working ([5d6d20b](https://github.com/centrica-engineering/muon/commit/5d6d20bee3ba4ed7c95b6c54624e5c1e156d9292))
344
+ * async default check ([634c679](https://github.com/centrica-engineering/muon/commit/634c679c05ff390686311f8a545eafd39e22ca86))
345
+ * async snapshot call ([7769330](https://github.com/centrica-engineering/muon/commit/77693304a267c49d4394b92aa11f400f9e49360e))
346
+ * change input type state to getter ([e835d62](https://github.com/centrica-engineering/muon/commit/e835d622b7b32f1a53485633541b74046beac296))
347
+ * change scope name ([5412ddb](https://github.com/centrica-engineering/muon/commit/5412ddbba12bbf6b3fa4d63b9f57ab44ffb96e56))
348
+ * contrain svg to bounds of icon size ([42cc9d0](https://github.com/centrica-engineering/muon/commit/42cc9d059741e7d2583cc1bf6487a434c7458562))
349
+ * css linting ([510d5e1](https://github.com/centrica-engineering/muon/commit/510d5e12c3c02d12f217e9c7a0356f8e2c86de48))
350
+ * dedupeMixin for FormElementMixin ([149e93e](https://github.com/centrica-engineering/muon/commit/149e93e669edf330f97256fd9b9a7902d85fb560))
351
+ * **deps:** update dependency rollup-plugin-styles to v4 ([a57ec09](https://github.com/centrica-engineering/muon/commit/a57ec09576f625454dbab3635f318749460e644e))
352
+ * disabled state for cta and to work within button ([7864117](https://github.com/centrica-engineering/muon/commit/78641173744e964e57f2da9cbde43ba81c7ab7ec))
353
+ * duplicate custom element names error ([61efab2](https://github.com/centrica-engineering/muon/commit/61efab225a53495eef7352c4cc56042cf47e4571))
354
+ * execsync ([c34dba0](https://github.com/centrica-engineering/muon/commit/c34dba09eb1c7f75f4d18fa019dc86d88bc28f5b))
355
+ * filter stories ([6a14864](https://github.com/centrica-engineering/muon/commit/6a1486462a65324894ae4e616d8d79c99b836f87))
356
+ * fix tab index for child element and add attribute for loading message ([6479c57](https://github.com/centrica-engineering/muon/commit/6479c570d166e07780af933ee8f82cc3ba93de17))
357
+ * form element snapshot changes ([48221c2](https://github.com/centrica-engineering/muon/commit/48221c24df1622842f7bc1d7c80a0d34ccbebae3))
358
+ * icon for validation message ([1e761b5](https://github.com/centrica-engineering/muon/commit/1e761b5564c0252d931e327b934b06c174fc00e7))
359
+ * icon in mixin ([a3889f7](https://github.com/centrica-engineering/muon/commit/a3889f72073c4b8aead6df46bb8a1842a383d29c))
360
+ * icon position for detail component ([17610c3](https://github.com/centrica-engineering/muon/commit/17610c387d5e3217312a197e1a9b2387616d63be))
361
+ * included type ([2d43767](https://github.com/centrica-engineering/muon/commit/2d4376782d53e7fe1881abb5e9de935bbbc88f78))
362
+ * issue with postcss not allowing start|end values ([54884e6](https://github.com/centrica-engineering/muon/commit/54884e6e7bef476a7e00dca190a98040b26e63e1))
363
+ * linting and Merge branch 'main' ([e6f70ae](https://github.com/centrica-engineering/muon/commit/e6f70ae1327f4f15af51c04e26b15289a98a2685))
364
+ * lowercase CSS value ([5520296](https://github.com/centrica-engineering/muon/commit/55202961a5f5e070e98c5ce2235a4f83a66ce7e6))
365
+ * lowercase directive ([abfbcb0](https://github.com/centrica-engineering/muon/commit/abfbcb0cc2be9059d4d22d42e9b39f4caa31e3ca))
366
+ * mask contrast ratio ([2a6c24c](https://github.com/centrica-engineering/muon/commit/2a6c24cf2e96477377e2e143af508ec15913e373))
367
+ * mask template merge issue ([a9a06d4](https://github.com/centrica-engineering/muon/commit/a9a06d49b53389e15b054379008e3ae1324c42ed))
368
+ * mixin import path ([094c306](https://github.com/centrica-engineering/muon/commit/094c3066cf85cc708d3018c568707c844f753939))
369
+ * namespace from config ([131209a](https://github.com/centrica-engineering/muon/commit/131209a51fbd78bda365a0df181f8588ffa00525))
370
+ * package path ([e833485](https://github.com/centrica-engineering/muon/commit/e8334852a7e687fb2581da8e5be2b52a9ed56b96))
371
+ * remove console ([ee08614](https://github.com/centrica-engineering/muon/commit/ee08614d34473e0c2c84f648f3323c5189a0d367))
372
+ * remove console log ([0f165f7](https://github.com/centrica-engineering/muon/commit/0f165f764f9048e0572391de2b1879faddefca1e))
373
+ * remove duplicate property type for cta ([2a1ce13](https://github.com/centrica-engineering/muon/commit/2a1ce13f1eac624280d662a77627782eb586fa53))
374
+ * remove muon script ([287531e](https://github.com/centrica-engineering/muon/commit/287531e677ad12ead1734742f527a6bc0e0f4a6d))
375
+ * remove private for library ([03e6701](https://github.com/centrica-engineering/muon/commit/03e67011cdc4e5f2c045b73d647cb470a27a47eb))
376
+ * remove puppeteer ([8fa1a66](https://github.com/centrica-engineering/muon/commit/8fa1a662daec93766318fb1e8be71cf04d0d4ee3))
377
+ * remove unused state ([0335f7f](https://github.com/centrica-engineering/muon/commit/0335f7ff43a67e66269bc0c3d56ca64f7c435e6b))
378
+ * rename error keyword ([9aed69c](https://github.com/centrica-engineering/muon/commit/9aed69c282c492fc8e7101e6b2a66fb260eae490))
379
+ * rename inputType assign logic ([fab84e0](https://github.com/centrica-engineering/muon/commit/fab84e05ba6e0e446f2bd0721cba03666f5d0d5f))
380
+ * rename mixin ([272f47a](https://github.com/centrica-engineering/muon/commit/272f47a20a545ed71c0abbde102ac1e27b3f02fd))
381
+ * snapshot changes ([79b715d](https://github.com/centrica-engineering/muon/commit/79b715db7a114adf80aab228f536784449fdd0dd))
382
+ * styles for disabled ([05a626c](https://github.com/centrica-engineering/muon/commit/05a626c30c230e58d4725f0cb03875db49dbfa71))
383
+ * test failures ([b51e46e](https://github.com/centrica-engineering/muon/commit/b51e46e5924719b90ab160dc657138ab216bc47a))
384
+ * test failures ([2577e81](https://github.com/centrica-engineering/muon/commit/2577e8131cade40102a6cbfd4faa2ef312c30aa4))
385
+ * test fixtures ([0f18c41](https://github.com/centrica-engineering/muon/commit/0f18c41ecedab92d8c81d15c457bd39956bf1e67))
386
+ * test runner library change ([e1428e6](https://github.com/centrica-engineering/muon/commit/e1428e6bcb92ab3ec5f5d17419090c812942815d))
387
+ * test-runner-path ([9e2d490](https://github.com/centrica-engineering/muon/commit/9e2d490f771668ad2379f52ba552ce77cc05c7b6))
388
+ * to dist dir ([280f25b](https://github.com/centrica-engineering/muon/commit/280f25b5059969021a63fb710fdb2a059e918af8))
389
+ * use .mjs ([33be8b0](https://github.com/centrica-engineering/muon/commit/33be8b040990d93a92fd586aa438353d2ec25cc5))
@@ -0,0 +1 @@
1
+ export { Card } from './src/card-component';
@@ -0,0 +1,43 @@
1
+ import { MuonElement, html, ScopedElementsMixin } from '@muonic/muon';
2
+ import { CardMixin } from '@muon/mixins/card-mixin';
3
+ import { ImageHolderMixin } from '@muon/mixins/image-holder-mixin';
4
+ import { Image } from '@muon/components/image';
5
+ import styles from './card-styles.css';
6
+
7
+ /**
8
+ * A card is a container for content.
9
+ *
10
+ * @element card
11
+ */
12
+ export class Card extends ScopedElementsMixin(ImageHolderMixin(CardMixin(MuonElement))) {
13
+
14
+ static get scopedElements() {
15
+ return {
16
+ 'card-image': Image
17
+ };
18
+ }
19
+
20
+ get _addImage() {
21
+ return this.image ? html`
22
+ <div class="media">
23
+ <card-image src=${this.image} alt=${this.alt} ?background=${this.background}></card-image>
24
+ </div>` : undefined;
25
+ }
26
+
27
+ get standardTemplate() {
28
+ return html`
29
+ <div class="card">
30
+ ${this._addImage}
31
+ <div class="body">
32
+ ${this._addHeader}
33
+ ${this._addContent}
34
+ ${this._addFooter}
35
+ </div>
36
+ </div>
37
+ `;
38
+ }
39
+
40
+ static get styles() {
41
+ return styles;
42
+ }
43
+ }
@@ -0,0 +1,25 @@
1
+ @import "@muonic/muon/css/default.css";
2
+
3
+ :host {
4
+ display: block;
5
+
6
+ & .card {
7
+ background-color: $CARD_BACKGROUND_COLOR;
8
+ border-width: 2px;
9
+ border-style: solid;
10
+ border-color: $CARD_BORDER_COLOR;
11
+ border-radius: 0;
12
+ overflow: hidden;
13
+ }
14
+
15
+ & .body {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: $CARD_GAP;
19
+ color: $CARD_COLOR;
20
+ padding-block-start: $CARD_PADDING_BLOCK;
21
+ padding-block-end: $CARD_PADDING_BLOCK;
22
+ padding-inline-start: $CARD_PADDING_INLINE;
23
+ padding-inline-end: $CARD_PADDING_INLINE;
24
+ }
25
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "card": {
3
+ "config": {
4
+ "type": {
5
+ "description": "Default value for `type` property which renders the template.",
6
+ "value": "standard",
7
+ "type": "string"
8
+ }
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "card": {
3
+ "color": {
4
+ "description": "Text color. Defaults to the dark text color.",
5
+ "value": "{ theme.color.text.dark.value }"
6
+ },
7
+ "background": {
8
+ "color": {
9
+ "description": "Background color. Defaults to the base background color.",
10
+ "value": "{ theme.color.base.background.value }"
11
+ }
12
+ },
13
+ "gap": {
14
+ "description": "Gap between the header, content and footer.",
15
+ "value": "{ theme.spacer.md.value }"
16
+ },
17
+ "padding": {
18
+ "block": {
19
+ "description": "Padding space above and below the body. Equal values in the block axis.",
20
+ "value": "{ card.gap.value }"
21
+ },
22
+ "inline": {
23
+ "description": "Padding space left and right the body. Equal values in the inline axis.",
24
+ "value": "{ card.padding.block.value }"
25
+ }
26
+ },
27
+ "border": {
28
+ "color": {
29
+ "description": "Border color. Inherits the text color.",
30
+ "value": "{ card.color.value }"
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,52 @@
1
+ import { Card } from '@muonic/muon/components/card';
2
+ import setup from '@muonic/muon/storybook/stories';
3
+ import { StandardLink as CTALink } from '../cta/story';
4
+ import { staticHTML, unsafeStatic } from '@muonic/muon';
5
+
6
+ const details = setup('card', Card);
7
+
8
+ export default {
9
+ ...details.defaultValues,
10
+ parameters: {
11
+ controls: {
12
+ exclude: ['standardTemplate']
13
+ }
14
+ }
15
+ };
16
+
17
+ const innerDetail = (args) => staticHTML`
18
+ <h2 slot="header">${unsafeStatic(args.header)}</h2>
19
+ ${unsafeStatic(args.content)}
20
+ <div slot="footer">${unsafeStatic(args.footer)}</div>
21
+ `;
22
+
23
+ const StandardTemplate = (args) => details.template(args, innerDetail);
24
+ export const Standard = StandardTemplate.bind({});
25
+ Standard.args = {
26
+ header: 'Where can I buy an ice cream?',
27
+ content: `<p>We have the most wonderful shop just in town, that sells a whole variety of different ice creams. Just pop on in and we can get you sorted with your favourite flavour!</p>`,
28
+ footer: `We've even got a free <a href='#!'>smartphone app</a>.`
29
+ };
30
+
31
+ export const StandardWithImage = StandardTemplate.bind({});
32
+ StandardWithImage.args = {
33
+ image: 'https://blog.nucleus.design/vanilla-first/vanilla-ice-cream-cone.jpg',
34
+ alt: '',
35
+ background: false,
36
+ header: 'Where can I buy an ice cream?',
37
+ content: `<p>We have the most wonderful shop just in town, that sells a whole variety of different ice creams. Just pop on in and we can get you sorted with your favourite flavour!</p>
38
+ <p>We have the most wonderful shop just in town, that sells a whole variety of different ice creams. Just pop on in and we can get you sorted with your favourite flavour!</p>`,
39
+ footer: `We've even got a free <a href='#!'>smartphone app</a>.`
40
+ };
41
+
42
+ const innerDetailWithCTA = (args) => staticHTML`
43
+ <h2 slot="header">${unsafeStatic(args.header)}</h2>
44
+ ${unsafeStatic(args.content)}
45
+ <div slot="footer">${CTALink(args.cta)}</div>
46
+ `;
47
+ export const StandardWithCTA = (args) => details.template(args, innerDetailWithCTA);
48
+ StandardWithCTA.args = {
49
+ header: 'Where can I buy an ice cream?',
50
+ content: `<p>We have the most wonderful shop just in town, that sells a whole variety of different ice creams. Just pop on in and we can get you sorted with your favourite flavour!</p>`,
51
+ cta: { ...CTALink.args, text: 'Click Here', href: '#!' }
52
+ };