@lion/ui 0.15.0 → 0.15.2

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 (265) hide show
  1. package/README.md +38 -12
  2. package/components/combobox/test/lion-combobox.test.js +50 -2
  3. package/components/core/src/SlotMixin.js +52 -0
  4. package/components/core/test/SlotMixin.test.js +85 -0
  5. package/components/dialog/test/lion-dialog.integration.test.js +170 -0
  6. package/components/input-amount-dropdown/src/localizeNamespaceLoader.js +53 -0
  7. package/components/input-amount-dropdown/translations/bg.js +5 -0
  8. package/components/input-amount-dropdown/translations/cs.js +5 -0
  9. package/components/input-amount-dropdown/translations/de.js +5 -0
  10. package/components/input-amount-dropdown/translations/es.js +5 -0
  11. package/components/input-amount-dropdown/translations/fr.js +5 -0
  12. package/components/input-amount-dropdown/translations/hu.js +5 -0
  13. package/components/input-amount-dropdown/translations/id.js +5 -0
  14. package/components/input-amount-dropdown/translations/it.js +5 -0
  15. package/components/input-amount-dropdown/translations/nl.js +5 -0
  16. package/components/input-amount-dropdown/translations/pl.js +5 -0
  17. package/components/input-amount-dropdown/translations/ro.js +5 -0
  18. package/components/input-amount-dropdown/translations/ru.js +5 -0
  19. package/components/input-amount-dropdown/translations/sk.js +5 -0
  20. package/components/input-amount-dropdown/translations/uk.js +5 -0
  21. package/components/input-amount-dropdown/translations/zh.js +5 -0
  22. package/components/listbox/src/ListboxMixin.js +3 -35
  23. package/components/overlays/src/ArrowMixin.js +10 -4
  24. package/components/overlays/src/OverlayController.js +34 -7
  25. package/components/overlays/test/OverlayController.test.js +4 -1
  26. package/components/overlays/test/OverlayMixin.test.js +2 -2
  27. package/components/overlays/test-suites/OverlayMixin.suite.js +57 -0
  28. package/custom-elements.json +2969 -207
  29. package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
  30. package/dist-types/components/core/src/SlotMixin.d.ts +35 -0
  31. package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
  32. package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
  33. package/dist-types/components/dialog/test/lion-dialog.integration.test.d.ts +3 -0
  34. package/dist-types/components/dialog/test/lion-dialog.integration.test.d.ts.map +1 -0
  35. package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts +1 -1
  36. package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts.map +1 -1
  37. package/dist-types/components/input-amount-dropdown/translations/bg.d.ts +7 -0
  38. package/dist-types/components/input-amount-dropdown/translations/bg.d.ts.map +1 -0
  39. package/dist-types/components/input-amount-dropdown/translations/cs.d.ts +7 -0
  40. package/dist-types/components/input-amount-dropdown/translations/cs.d.ts.map +1 -0
  41. package/dist-types/components/input-amount-dropdown/translations/de.d.ts +7 -0
  42. package/dist-types/components/input-amount-dropdown/translations/de.d.ts.map +1 -0
  43. package/dist-types/components/input-amount-dropdown/translations/es.d.ts +7 -0
  44. package/dist-types/components/input-amount-dropdown/translations/es.d.ts.map +1 -0
  45. package/dist-types/components/input-amount-dropdown/translations/fr.d.ts +7 -0
  46. package/dist-types/components/input-amount-dropdown/translations/fr.d.ts.map +1 -0
  47. package/dist-types/components/input-amount-dropdown/translations/hu.d.ts +7 -0
  48. package/dist-types/components/input-amount-dropdown/translations/hu.d.ts.map +1 -0
  49. package/dist-types/components/input-amount-dropdown/translations/id.d.ts +7 -0
  50. package/dist-types/components/input-amount-dropdown/translations/id.d.ts.map +1 -0
  51. package/dist-types/components/input-amount-dropdown/translations/it.d.ts +7 -0
  52. package/dist-types/components/input-amount-dropdown/translations/it.d.ts.map +1 -0
  53. package/dist-types/components/input-amount-dropdown/translations/nl.d.ts +7 -0
  54. package/dist-types/components/input-amount-dropdown/translations/nl.d.ts.map +1 -0
  55. package/dist-types/components/input-amount-dropdown/translations/pl.d.ts +7 -0
  56. package/dist-types/components/input-amount-dropdown/translations/pl.d.ts.map +1 -0
  57. package/dist-types/components/input-amount-dropdown/translations/ro.d.ts +7 -0
  58. package/dist-types/components/input-amount-dropdown/translations/ro.d.ts.map +1 -0
  59. package/dist-types/components/input-amount-dropdown/translations/ru.d.ts +7 -0
  60. package/dist-types/components/input-amount-dropdown/translations/ru.d.ts.map +1 -0
  61. package/dist-types/components/input-amount-dropdown/translations/sk.d.ts +7 -0
  62. package/dist-types/components/input-amount-dropdown/translations/sk.d.ts.map +1 -0
  63. package/dist-types/components/input-amount-dropdown/translations/uk.d.ts +7 -0
  64. package/dist-types/components/input-amount-dropdown/translations/uk.d.ts.map +1 -0
  65. package/dist-types/components/input-amount-dropdown/translations/zh.d.ts +7 -0
  66. package/dist-types/components/input-amount-dropdown/translations/zh.d.ts.map +1 -0
  67. package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
  68. package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
  69. package/dist-types/components/overlays/src/OverlayController.d.ts +13 -4
  70. package/dist-types/components/overlays/src/OverlayController.d.ts.map +1 -1
  71. package/dist-types/components/overlays/test-suites/OverlayMixin.suite.d.ts.map +1 -1
  72. package/dist-types/tsconfig.tsbuildinfo +1 -1
  73. package/docs/components/accordion/index.md +1 -1
  74. package/docs/components/accordion/overview.md +1 -1
  75. package/docs/components/accordion/reference.md +1 -1
  76. package/docs/components/accordion/use-cases.md +1 -1
  77. package/docs/components/button/{extensions/bootstrap-button.mjs → assets/bootstrap-button.js} +10 -5
  78. package/docs/components/button/examples.md +1 -1
  79. package/docs/components/button/extensions.md +2 -2
  80. package/docs/components/button/index.md +2 -2
  81. package/docs/components/button/overview.md +4 -4
  82. package/docs/components/button/use-cases.md +6 -6
  83. package/docs/components/calendar/index.md +1 -1
  84. package/docs/components/calendar/overview.md +1 -1
  85. package/docs/components/calendar/use-cases.md +2 -2
  86. package/docs/components/checkbox-group/index.md +1 -1
  87. package/docs/components/checkbox-group/overview.md +3 -3
  88. package/docs/components/checkbox-group/use-cases.md +1 -1
  89. package/docs/components/collapsible/examples.md +1 -1
  90. package/docs/components/collapsible/index.md +1 -1
  91. package/docs/components/collapsible/overview.md +2 -2
  92. package/docs/components/collapsible/use-cases.md +1 -1
  93. package/docs/components/combobox/extensions.md +2 -1
  94. package/docs/components/combobox/index.md +1 -1
  95. package/docs/components/combobox/overview.md +2 -2
  96. package/docs/components/combobox/use-cases.md +2 -2
  97. package/docs/components/dialog/index.md +1 -1
  98. package/docs/components/dialog/overview.md +2 -2
  99. package/docs/components/dialog/use-cases.md +3 -3
  100. package/docs/components/drawer/index.md +1 -1
  101. package/docs/components/drawer/overview.md +1 -1
  102. package/docs/components/drawer/use-cases.md +1 -1
  103. package/docs/components/fieldset/index.md +1 -1
  104. package/docs/components/fieldset/overview.md +6 -6
  105. package/docs/components/fieldset/use-cases.md +1 -1
  106. package/docs/components/form/index.md +1 -1
  107. package/docs/components/form/overview.md +4 -4
  108. package/docs/components/form/use-cases.md +3 -3
  109. package/docs/components/icon/index.md +1 -1
  110. package/docs/components/icon/overview.md +1 -1
  111. package/docs/components/icon/use-cases.md +2 -15
  112. package/docs/components/index.md +1 -1
  113. package/docs/components/input/index.md +1 -1
  114. package/docs/components/input/overview.md +2 -2
  115. package/docs/components/input/use-cases.md +1 -1
  116. package/docs/components/input-amount/index.md +1 -1
  117. package/docs/components/input-amount/overview.md +4 -4
  118. package/docs/components/input-amount/use-cases.md +1 -1
  119. package/docs/components/input-amount-dropdown/index.md +1 -1
  120. package/docs/components/input-amount-dropdown/use-cases.md +1 -1
  121. package/docs/components/input-date/index.md +1 -1
  122. package/docs/components/input-date/overview.md +4 -4
  123. package/docs/components/input-date/use-cases.md +1 -1
  124. package/docs/components/input-datepicker/index.md +1 -1
  125. package/docs/components/input-datepicker/overview.md +6 -6
  126. package/docs/components/input-datepicker/use-cases.md +1 -1
  127. package/docs/components/input-email/index.md +1 -1
  128. package/docs/components/input-email/overview.md +3 -3
  129. package/docs/components/input-email/use-cases.md +1 -1
  130. package/docs/components/input-file/index.md +1 -1
  131. package/docs/components/input-file/overview.md +2 -2
  132. package/docs/components/input-file/use-cases.md +1 -1
  133. package/docs/components/input-iban/index.md +1 -1
  134. package/docs/components/input-iban/overview.md +3 -3
  135. package/docs/components/input-iban/use-cases.md +1 -1
  136. package/docs/components/input-range/index.md +1 -1
  137. package/docs/components/input-range/overview.md +3 -3
  138. package/docs/components/input-range/use-cases.md +1 -1
  139. package/docs/components/input-stepper/index.md +1 -1
  140. package/docs/components/input-stepper/overview.md +2 -2
  141. package/docs/components/input-stepper/use-cases.md +1 -1
  142. package/docs/components/input-tel/index.md +1 -1
  143. package/docs/components/input-tel/overview.md +2 -2
  144. package/docs/components/input-tel/use-cases.md +7 -7
  145. package/docs/components/input-tel-dropdown/extensions.md +1 -1
  146. package/docs/components/input-tel-dropdown/index.md +1 -1
  147. package/docs/components/input-tel-dropdown/overview.md +2 -2
  148. package/docs/components/input-tel-dropdown/use-cases.md +1 -1
  149. package/docs/components/listbox/index.md +1 -1
  150. package/docs/components/listbox/overview.md +1 -1
  151. package/docs/components/listbox/use-cases.md +2 -2
  152. package/docs/components/pagination/index.md +1 -1
  153. package/docs/components/pagination/overview.md +1 -1
  154. package/docs/components/pagination/use-cases.md +1 -1
  155. package/docs/components/progress-indicator/examples.md +1 -1
  156. package/docs/components/progress-indicator/index.md +1 -1
  157. package/docs/components/progress-indicator/overview.md +1 -1
  158. package/docs/components/radio-group/index.md +1 -1
  159. package/docs/components/radio-group/overview.md +4 -4
  160. package/docs/components/radio-group/use-cases.md +1 -1
  161. package/docs/components/select/index.md +1 -1
  162. package/docs/components/select/overview.md +1 -1
  163. package/docs/components/select/use-cases.md +2 -2
  164. package/docs/components/select-rich/examples.md +1 -1
  165. package/docs/components/select-rich/index.md +1 -1
  166. package/docs/components/select-rich/overview.md +1 -1
  167. package/docs/components/select-rich/use-cases.md +3 -3
  168. package/docs/components/steps/index.md +1 -1
  169. package/docs/components/steps/overview.md +1 -1
  170. package/docs/components/steps/use-cases.md +1 -1
  171. package/docs/components/switch/index.md +1 -1
  172. package/docs/components/switch/overview.md +1 -1
  173. package/docs/components/switch/reference.md +1 -1
  174. package/docs/components/switch/use-cases.md +1 -1
  175. package/docs/components/tabs/examples.md +2 -2
  176. package/docs/components/tabs/index.md +1 -1
  177. package/docs/components/tabs/overview.md +1 -1
  178. package/docs/components/tabs/use-cases.md +1 -1
  179. package/docs/components/textarea/index.md +1 -1
  180. package/docs/components/textarea/overview.md +1 -1
  181. package/docs/components/textarea/use-cases.md +1 -1
  182. package/docs/components/tooltip/examples.md +1 -1
  183. package/docs/components/tooltip/index.md +1 -1
  184. package/docs/components/tooltip/overview.md +1 -1
  185. package/docs/components/tooltip/use-cases.md +1 -1
  186. package/docs/fundamentals/index.md +4 -4
  187. package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +1 -1
  188. package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +1 -1
  189. package/docs/fundamentals/node-tools/index.md +1 -1
  190. package/docs/fundamentals/node-tools/providence-analytics/index.md +1 -1
  191. package/docs/fundamentals/node-tools/providence-analytics/overview.md +1 -1
  192. package/docs/fundamentals/node-tools/publish-docs/index.md +1 -1
  193. package/docs/fundamentals/node-tools/publish-docs/overview.md +4 -4
  194. package/docs/fundamentals/node-tools/remark-extend/index.md +1 -1
  195. package/docs/fundamentals/node-tools/remark-extend/overview.md +1 -1
  196. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +1 -1
  197. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +3 -3
  198. package/docs/fundamentals/rationales/TypeScript.md +1 -1
  199. package/docs/fundamentals/rationales/accessibility.md +2 -2
  200. package/docs/fundamentals/rationales/index.md +1 -1
  201. package/docs/fundamentals/rationales/side-effects.md +1 -1
  202. package/docs/fundamentals/rationales/versioning.md +1 -1
  203. package/docs/fundamentals/systems/core/SlotMixin.md +2 -2
  204. package/docs/fundamentals/systems/core/index.md +1 -1
  205. package/docs/fundamentals/systems/core/overview.md +2 -2
  206. package/docs/fundamentals/systems/form/formatting-and-parsing.md +5 -5
  207. package/docs/fundamentals/systems/form/index.md +1 -1
  208. package/docs/fundamentals/systems/form/interaction-states.md +1 -1
  209. package/docs/fundamentals/systems/form/model-value.md +2 -2
  210. package/docs/fundamentals/systems/form/overview.md +29 -29
  211. package/docs/fundamentals/systems/form/styling.md +1 -1
  212. package/docs/fundamentals/systems/form/use-cases.md +1 -1
  213. package/docs/fundamentals/systems/form/validate.md +3 -3
  214. package/docs/fundamentals/systems/icon/index.md +1 -1
  215. package/docs/fundamentals/systems/icon/overview.md +1 -1
  216. package/docs/fundamentals/systems/index.md +1 -1
  217. package/docs/fundamentals/systems/localize/api-table.md +3 -0
  218. package/docs/fundamentals/systems/localize/dates.md +1 -1
  219. package/docs/fundamentals/systems/localize/index.md +1 -1
  220. package/docs/fundamentals/systems/localize/numbers.md +1 -1
  221. package/docs/fundamentals/systems/localize/overview.md +5 -5
  222. package/docs/fundamentals/systems/localize/rationale.md +1 -1
  223. package/docs/fundamentals/systems/localize/text.md +5 -4
  224. package/docs/fundamentals/systems/localize/use-cases.md +1 -1
  225. package/docs/fundamentals/systems/overlays/_configuration-positioning.md +3 -3
  226. package/docs/fundamentals/systems/overlays/_edge-cases.md +3 -3
  227. package/docs/fundamentals/systems/overlays/api-table.md +3 -0
  228. package/docs/fundamentals/systems/overlays/assets/demo-overlay-positioning.mjs +1 -1
  229. package/docs/fundamentals/systems/overlays/configuration.md +5 -5
  230. package/docs/fundamentals/systems/overlays/index.md +1 -1
  231. package/docs/fundamentals/systems/overlays/overview.md +6 -6
  232. package/docs/fundamentals/systems/overlays/rationale.md +1 -1
  233. package/docs/fundamentals/systems/overlays/use-cases.md +6 -6
  234. package/docs/fundamentals/tools/ajax/index.md +1 -1
  235. package/docs/fundamentals/tools/ajax/overview.md +2 -2
  236. package/docs/fundamentals/tools/ajax/use-cases.md +3 -3
  237. package/docs/fundamentals/tools/helpers/action-logger.md +1 -1
  238. package/docs/fundamentals/tools/helpers/index.md +2 -2
  239. package/docs/fundamentals/tools/helpers/overview.md +2 -2
  240. package/docs/fundamentals/tools/index.md +1 -1
  241. package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +1 -1
  242. package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +4 -4
  243. package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +2 -2
  244. package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-a/page-a.js → page-c/page-c.js} +2 -2
  245. package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b/page-b.js → page-d/page-d.js} +2 -2
  246. package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +4 -4
  247. package/docs/fundamentals/tools/singleton-manager/example-success/index.md +2 -2
  248. package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-a/page-a.js → page-e/page-e.js} +2 -3
  249. package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b/page-b.js → page-f/page-f.js} +2 -2
  250. package/docs/fundamentals/tools/singleton-manager/index.md +2 -2
  251. package/docs/fundamentals/tools/singleton-manager/overview.md +5 -5
  252. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  253. package/docs/guides/how-to/create-a-form.md +4 -4
  254. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  255. package/docs/guides/index.md +8 -8
  256. package/docs/guides/principles/index.md +5 -5
  257. package/docs/guides/principles/styling.md +1 -1
  258. package/package.json +1 -1
  259. /package/docs/fundamentals/systems/overlays/assets/{applyDemoOverlayStyles.mjs → applyDemoOverlayStyles.js} +0 -0
  260. /package/docs/fundamentals/systems/overlays/assets/{demo-el-using-overlaymixin.mjs → demo-el-using-overlaymixin.js} +0 -0
  261. /package/docs/fundamentals/systems/overlays/assets/{demo-overlay-backdrop.mjs → demo-overlay-backdrop.js} +0 -0
  262. /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/index.js +0 -0
  263. /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/instance.js +0 -0
  264. /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/index.js +0 -0
  265. /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/instance.js +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Accordion
2
3
  parts:
3
4
  - Accordion
4
- title: Accordion
5
5
  eleventyNavigation:
6
6
  key: Accordion
7
7
  order: 0
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Accordion: Overview'
2
3
  parts:
3
4
  - Accordion
4
5
  - Overview
5
- title: 'Accordion: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Accordion: Overview'
8
8
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Accordion: Reference'
2
3
  parts:
3
4
  - Accordion
4
5
  - Reference
5
- title: 'Accordion: Reference'
6
6
  eleventyNavigation:
7
7
  key: 'Accordion: Reference'
8
8
  order: 30
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Accordion: Use Cases'
2
3
  parts:
3
4
  - Accordion
4
5
  - Use Cases
5
- title: 'Accordion: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Accordion: Use Cases'
8
8
  order: 20
@@ -18,8 +18,9 @@ export class BootstrapButton extends LionButton {
18
18
  --bs-border-radius: 0.375rem;
19
19
  --bs-border-width: 1px;
20
20
 
21
- --bs-btn-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
22
- 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
21
+ --bs-btn-font-family:
22
+ system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans',
23
+ 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
23
24
  'Segoe UI Symbol', 'Noto Color Emoji';
24
25
  margin: 0.25rem 0.125rem;
25
26
 
@@ -34,7 +35,8 @@ export class BootstrapButton extends LionButton {
34
35
  --bs-btn-border-color: transparent;
35
36
  --bs-btn-border-radius: var(--bs-border-radius);
36
37
  --bs-btn-hover-border-color: transparent;
37
- --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
38
+ --bs-btn-box-shadow:
39
+ inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
38
40
  --bs-btn-disabled-opacity: 0.65;
39
41
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
40
42
  display: inline-block;
@@ -54,8 +56,11 @@ export class BootstrapButton extends LionButton {
54
56
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
55
57
  border-radius: var(--bs-btn-border-radius);
56
58
  background-color: var(--bs-btn-bg);
57
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
58
- border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
59
+ transition:
60
+ color 0.15s ease-in-out,
61
+ background-color 0.15s ease-in-out,
62
+ border-color 0.15s ease-in-out,
63
+ box-shadow 0.15s ease-in-out;
59
64
  text-transform: none;
60
65
  }
61
66
 
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Button: Examples'
2
3
  parts:
3
4
  - Button
4
5
  - Examples
5
- title: 'Button: Examples'
6
6
  eleventyNavigation:
7
7
  key: 'Button: Examples'
8
8
  order: 30
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Button: Extensions'
2
3
  parts:
3
4
  - Button
4
5
  - Extensions
5
- title: 'Button: Extensions'
6
6
  eleventyNavigation:
7
7
  key: 'Button: Extensions'
8
8
  order: 90
@@ -14,7 +14,7 @@ eleventyNavigation:
14
14
 
15
15
  ```js script
16
16
  import { html } from '@mdjs/mdjs-preview';
17
- import './extensions/bootstrap-button.mjs';
17
+ import './assets/bootstrap-button.js';
18
18
  ```
19
19
 
20
20
  ## Bootstrap button
@@ -1,11 +1,11 @@
1
1
  ---
2
+ title: Button
2
3
  parts:
3
4
  - Button
4
- title: Button
5
5
  eleventyNavigation:
6
6
  key: Button
7
- order: 10
8
7
  title: Button
8
+ order: 10
9
9
  ---
10
10
 
11
11
  # Button
@@ -1,13 +1,13 @@
1
1
  ---
2
+ title: 'Button: Overview'
2
3
  parts:
3
- - Button
4
4
  - Overview
5
- title: 'Button: Overview'
5
+ - Button
6
6
  eleventyNavigation:
7
- key: 'Button: Overview'
7
+ key: Button >> Overview
8
+ title: Overview
8
9
  order: 10
9
10
  parent: Button
10
- title: Overview
11
11
  ---
12
12
 
13
13
  # Button: Overview
@@ -1,13 +1,13 @@
1
1
  ---
2
+ title: 'Button: Use Cases'
2
3
  parts:
3
- - Button
4
4
  - Use Cases
5
- title: 'Button: Use Cases'
5
+ - Button
6
6
  eleventyNavigation:
7
- key: 'Button: Use Cases'
7
+ key: Button >> Use Cases
8
+ title: Use Cases
8
9
  order: 20
9
10
  parent: Button
10
- title: Use Cases
11
11
  ---
12
12
 
13
13
  # Button: Use Cases
@@ -74,10 +74,10 @@ export const withinForm = () => html`
74
74
  <input id="firstNameId" name="firstName" />
75
75
  <label for="lastNameId">Last name</label>
76
76
  <input id="lastNameId" name="lastName" />
77
- <lion-button-submit @click="${ev => console.log('click submit handler', ev.target)}"
77
+ <lion-button-submit @click=${ev => console.log('click submit handler', ev.target)}
78
78
  >Submit</lion-button-submit
79
79
  >
80
- <lion-button-reset @click="${ev => console.log('click reset handler', ev.target)}"
80
+ <lion-button-reset @click=${ev => console.log('click reset handler', ev.target)}
81
81
  >Reset</lion-button-reset
82
82
  >
83
83
  </form>
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Calendar
2
3
  parts:
3
4
  - Calendar
4
- title: Calendar
5
5
  eleventyNavigation:
6
6
  key: Calendar
7
7
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Calendar: Overview'
2
3
  parts:
3
4
  - Calendar
4
5
  - Overview
5
- title: 'Calendar: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Calendar: Overview'
8
8
  order: 10
@@ -1,11 +1,11 @@
1
1
  ---
2
+ title: 'Calendar: Use Cases'
2
3
  parts:
3
4
  - Calendar
4
5
  - Use Cases
5
- title: 'Calendar: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Calendar: Use Cases'
8
- order: 20
8
+ order: 0
9
9
  parent: Calendar
10
10
  title: Use Cases
11
11
  ---
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Checkbox Group
2
3
  parts:
3
4
  - Checkbox Group
4
- title: Checkbox Group
5
5
  eleventyNavigation:
6
6
  key: Checkbox Group
7
7
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Checkbox Group: Overview'
2
3
  parts:
3
4
  - Checkbox Group
4
5
  - Overview
5
- title: 'Checkbox Group: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Checkbox Group: Overview'
8
8
  order: 10
@@ -31,11 +31,11 @@ import '@lion/ui/define/lion-checkbox.js';
31
31
  </lion-checkbox-group>
32
32
  ```
33
33
 
34
- > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/form/overview.md)'s serialization result.
34
+ > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/form/overview.md)'s serialization result.
35
35
 
36
36
  ## Features
37
37
 
38
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/fieldset/overview.md),
38
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/fieldset/overview.md),
39
39
  it has all the features a fieldset has.
40
40
 
41
41
  ## Installation
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Checkbox Group: Use Cases'
2
3
  parts:
3
4
  - Checkbox Group
4
5
  - Use Cases
5
- title: 'Checkbox Group: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Checkbox Group: Use Cases'
8
8
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Collapsible: Examples'
2
3
  parts:
3
4
  - Collapsible
4
5
  - Examples
5
- title: 'Collapsible: Examples'
6
6
  eleventyNavigation:
7
7
  key: 'Collapsible: Examples'
8
8
  order: 30
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Collapsible
2
3
  parts:
3
4
  - Collapsible
4
- title: Collapsible
5
5
  eleventyNavigation:
6
6
  key: Collapsible
7
7
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Collapsible: Overview'
2
3
  parts:
3
4
  - Collapsible
4
5
  - Overview
5
- title: 'Collapsible: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Collapsible: Overview'
8
8
  order: 10
@@ -34,7 +34,7 @@ export const main = () => html`
34
34
  ## Features
35
35
 
36
36
  - Use `opened` attribute or `toggle()` method to render default open.
37
- - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/button/overview.md) or native `button` with custom styling.
37
+ - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/button/overview.md) or native `button` with custom styling.
38
38
  - Observe the state with the help of `@opened-changed` event.
39
39
  - `show()` and `hide()` are helper methods to hide or show the content from outside.
40
40
 
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Collapsible: Use Cases'
2
3
  parts:
3
4
  - Collapsible
4
5
  - Use Cases
5
- title: 'Collapsible: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Collapsible: Use Cases'
8
8
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Combobox: Extensions'
2
3
  parts:
3
4
  - Combobox
4
5
  - Extensions
5
- title: 'Combobox: Extensions'
6
6
  eleventyNavigation:
7
7
  key: 'Combobox: Extensions'
8
8
  order: 30
@@ -59,6 +59,7 @@ export const Github = () => html`
59
59
 
60
60
  ```js preview-story
61
61
  export const Whatsapp = () => {
62
+ // in Rocket this is resolved based on the URL, in astro this is resolved based on filesystem (or is it?)
62
63
  const obamaImgUrl = new URL('../src/wa-combobox/assets/obama.jpeg', import.meta.url).href;
63
64
  const trumpImgUrl = new URL('../src/wa-combobox/assets/trump.jpeg', import.meta.url).href;
64
65
  const bidenImgUrl = new URL('../src/wa-combobox/assets/biden.jpeg', import.meta.url).href;
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Combobox
2
3
  parts:
3
4
  - Combobox
4
- title: Combobox
5
5
  eleventyNavigation:
6
6
  key: Combobox
7
7
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Combobox: Overview'
2
3
  parts:
3
4
  - Combobox
4
5
  - Overview
5
- title: 'Combobox: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Combobox: Overview'
8
8
  order: 10
@@ -46,7 +46,7 @@ export const main = () => html`
46
46
  `;
47
47
  ```
48
48
 
49
- [...show more](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/combobox/extensions.md)
49
+ [...show more](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/combobox/extensions.md)
50
50
 
51
51
  ## Features
52
52
 
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Combobox: Use Cases'
2
3
  parts:
3
4
  - Combobox
4
5
  - Use Cases
5
- title: 'Combobox: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Combobox: Use Cases'
8
8
  order: 20
@@ -558,4 +558,4 @@ export const complexObjectChoiceValue = () =>
558
558
  ## Listbox compatibility
559
559
 
560
560
  All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
561
- See the [listbox documentation](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/listbox/overview.md) for more information.
561
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/listbox/overview.md) for more information.
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Dialog
2
3
  parts:
3
4
  - Dialog
4
- title: Dialog
5
5
  eleventyNavigation:
6
6
  key: Dialog
7
7
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Dialog: Overview'
2
3
  parts:
3
4
  - Dialog
4
5
  - Overview
5
- title: 'Dialog: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Dialog: Overview'
8
8
  order: 10
@@ -66,6 +66,6 @@ import '@lion/ui/define/lion-dialog.js';
66
66
  ## Changing the configuration
67
67
 
68
68
  You can use the `.config` property on the dialog to change the configuration.
69
- The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/overlays/configuration.md).
69
+ The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/configuration.md).
70
70
 
71
71
  The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Dialog: Use Cases'
2
3
  parts:
3
4
  - Dialog
4
5
  - Use Cases
5
- title: 'Dialog: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Dialog: Use Cases'
8
8
  order: 20
@@ -162,7 +162,7 @@ No backdrop, hides on escape, prevents scrolling while opened, and focuses the b
162
162
  export const otherOverrides = () => {
163
163
  const cfg = {
164
164
  hasBackdrop: false,
165
- hidesOnEscape: true,
165
+ hidesOnEsc: true,
166
166
  preventsScroll: true,
167
167
  elementToFocusAfterHide: document.body,
168
168
  };
@@ -192,7 +192,7 @@ Configuration passed to `config` property:
192
192
  ```js
193
193
  {
194
194
  hasBackdrop: false,
195
- hidesOnEscape: true,
195
+ hidesOnEsc: true,
196
196
  preventsScroll: true,
197
197
  elementToFocusAfterHide: document.body
198
198
  }
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Drawer
2
3
  parts:
3
4
  - Drawer
4
- title: Drawer
5
5
  eleventyNavigation:
6
6
  key: Drawer
7
7
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Drawer: Overview'
2
3
  parts:
3
4
  - Drawer
4
5
  - Overview
5
- title: 'Drawer: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Drawer: Overview'
8
8
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Drawer: Use Cases'
2
3
  parts:
3
4
  - Drawer
4
5
  - Use Cases
5
- title: 'Drawer: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Drawer: Use Cases'
8
8
  order: 20
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Fieldset
2
3
  parts:
3
4
  - Fieldset
4
- title: Fieldset
5
5
  eleventyNavigation:
6
6
  key: Fieldset
7
7
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Fieldset: Overview'
2
3
  parts:
3
4
  - Fieldset
4
5
  - Overview
5
- title: 'Fieldset: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Fieldset: Overview'
8
8
  order: 10
@@ -32,9 +32,9 @@ export const main = () => html`
32
32
 
33
33
  We have three specific fieldset implementations:
34
34
 
35
- - [form](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/form/overview.md)
36
- - [checkbox-group](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/checkbox-group/overview.md)
37
- - [radio-group](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/components/radio-group/overview.md)
35
+ - [form](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/form/overview.md)
36
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/checkbox-group/overview.md)
37
+ - [radio-group](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/radio-group/overview.md)
38
38
 
39
39
  A native fieldset element should always have a legend-element for a11y purposes.
40
40
  However, our fieldset element is not native and should not have a legend-element.
@@ -43,8 +43,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or
43
43
  ## Features
44
44
 
45
45
  - Easy retrieval of form data based on field names
46
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/interaction-states.md)
47
- - Can have [validate](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
46
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/interaction-states.md)
47
+ - Can have [validate](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
48
48
  - Can disable input fields on fieldset level
49
49
  - Accessible out of the box
50
50
 
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Fieldset: Use Cases'
2
3
  parts:
3
4
  - Fieldset
4
5
  - Use Cases
5
- title: 'Fieldset: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Fieldset: Use Cases'
8
8
  order: 20
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Form
2
3
  parts:
3
4
  - Form
4
- title: Form
5
5
  eleventyNavigation:
6
6
  key: Form
7
7
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Form: Overview'
2
3
  parts:
3
4
  - Form
4
5
  - Overview
5
- title: 'Form: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Form: Overview'
8
8
  order: 10
@@ -20,7 +20,7 @@ import '@lion/ui/define/lion-form.js';
20
20
  ```
21
21
 
22
22
  A web component that enhances the functionality of the native `form` component.
23
- It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/overview.md).
23
+ It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/overview.md).
24
24
 
25
25
  ```js preview-story
26
26
  export const main = () => {
@@ -49,11 +49,11 @@ export const main = () => {
49
49
  - Data synchronization with models
50
50
  - Easy retrieval of form data based on field names
51
51
  - Advanced validation possibilities
52
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/interaction-states.md)
52
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/interaction-states.md)
53
53
  - Registration mechanism for form controls
54
54
  - Accessible out of the box
55
55
 
56
- For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/overview.md).
56
+ For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/overview.md).
57
57
 
58
58
  ## Installation
59
59
 
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Form: Use Cases'
2
3
  parts:
3
4
  - Form
4
5
  - Use Cases
5
- title: 'Form: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Form: Use Cases'
8
8
  order: 20
@@ -26,7 +26,7 @@ import '@lion/ui/define/lion-form.js';
26
26
  To submit a form, use a regular `<button>` (or `<lion-button-submit>`) somewhere inside the native `<form>`. Then, add a `submit` handler on the `<lion-form>`. You can use this event to do your own (pre-)submit logic, like getting the serialized form data and sending it to a backend API.
27
27
 
28
28
  Another example is checking if the form has errors, and focusing the first field with a validation error.
29
- To learn more about form validation, please take a look at [validate](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/validate.md).
29
+ To learn more about form validation, please take a look at [validate](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/validate.md).
30
30
 
31
31
  To fire a submit from JavaScript, select the `<lion-form>` element and call `.submit()`.
32
32
 
@@ -128,7 +128,7 @@ export const prefilledData = () => {
128
128
  };
129
129
  ```
130
130
 
131
- Learn more about [formatting and parsing](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/form/formatting-and-parsing.md).
131
+ Learn more about [formatting and parsing](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/formatting-and-parsing.md).
132
132
 
133
133
  ## Sub forms
134
134
 
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Icon
2
3
  parts:
3
4
  - Icon
4
- title: Icon
5
5
  eleventyNavigation:
6
6
  key: Icon
7
7
  order: 20
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Icon: Overview'
2
3
  parts:
3
4
  - Icon
4
5
  - Overview
5
- title: 'Icon: Overview'
6
6
  eleventyNavigation:
7
7
  key: 'Icon: Overview'
8
8
  order: 10
@@ -1,8 +1,8 @@
1
1
  ---
2
+ title: 'Icon: Use Cases'
2
3
  parts:
3
4
  - Icon
4
5
  - Use Cases
5
- title: 'Icon: Use Cases'
6
6
  eleventyNavigation:
7
7
  key: 'Icon: Use Cases'
8
8
  order: 20
@@ -20,25 +20,12 @@ import './assets/iconset-misc.js';
20
20
  import * as spaceSet from './assets/iconset-space.js';
21
21
 
22
22
  import '@lion/ui/define/lion-icon.js';
23
-
24
- icons.addIconResolver('lion', (iconset, name) => {
25
- switch (iconset) {
26
- case 'bugs':
27
- return import('./assets/iconset-bugs.js').then(module => module[name]);
28
- case 'space':
29
- return import('./assets/iconset-space.js').then(module => module[name]);
30
- case 'misc':
31
- return import('./assets/iconset-misc.js').then(module => module[name]);
32
- default:
33
- throw new Error(`Unknown iconset ${iconset}`);
34
- }
35
- });
36
23
  ```
37
24
 
38
25
  ## Icon sets
39
26
 
40
27
  Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance.
41
- See the [system documentation](https://github.com/ing-bank/lion/blob/4c077fbf1de58ec799dd263ebe7d94dfef1262c0/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
28
+ See the [system documentation](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
42
29
 
43
30
  ```js preview-story
44
31
  export const iconSets = () => html`
@@ -1,7 +1,7 @@
1
1
  ---
2
+ title: Components
2
3
  parts:
3
4
  - Components
4
- title: Components
5
5
  eleventyNavigation:
6
6
  key: Components
7
7
  order: 40