@nanoporetech-digital/components 5.2.1 → 5.3.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 (259) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/{_commonjsHelpers-9f2314fc.js → _commonjsHelpers-29614748.js} +1 -17
  3. package/dist/cjs/_commonjsHelpers-29614748.js.map +1 -0
  4. package/dist/cjs/algoliasearch-lite.esm.browser-992a2eff.js +922 -0
  5. package/dist/cjs/algoliasearch-lite.esm.browser-992a2eff.js.map +1 -0
  6. package/dist/cjs/component-store-21cb4901.js +328 -0
  7. package/dist/cjs/component-store-21cb4901.js.map +1 -0
  8. package/dist/cjs/events-db0a42ee.js +39 -0
  9. package/dist/cjs/events-db0a42ee.js.map +1 -0
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/nano-alert.cjs.entry.js +9 -2
  12. package/dist/cjs/nano-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -2
  14. package/dist/cjs/nano-algolia-filter.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nano-algolia-input.cjs.entry.js +8 -4
  16. package/dist/cjs/nano-algolia-input.cjs.entry.js.map +1 -1
  17. package/dist/cjs/nano-algolia.cjs.entry.js +4 -4
  18. package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
  19. package/dist/cjs/nano-components.cjs.js +1 -1
  20. package/dist/cjs/nano-datalist_3.cjs.entry.js +1 -1
  21. package/dist/cjs/nano-dialog.cjs.entry.js +23 -22
  22. package/dist/cjs/nano-dialog.cjs.entry.js.map +1 -1
  23. package/dist/cjs/nano-drawer.cjs.entry.js +169 -111
  24. package/dist/cjs/nano-drawer.cjs.entry.js.map +1 -1
  25. package/dist/cjs/nano-dropdown.cjs.entry.js +16 -2
  26. package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -1
  27. package/dist/cjs/nano-global-nav.cjs.entry.js +5 -6
  28. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  29. package/dist/cjs/nano-global-search-results.cjs.entry.js +2 -1
  30. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nano-slides.cjs.entry.js +1 -1
  32. package/dist/cjs/nano-sortable.cjs.entry.js +3 -15
  33. package/dist/cjs/nano-sortable.cjs.entry.js.map +1 -1
  34. package/dist/cjs/nano-sticker.cjs.entry.js +16 -9
  35. package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
  36. package/dist/cjs/nano-tab-group.cjs.entry.js +1 -2
  37. package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/{nano-table-10a40ab3.js → nano-table-e15cc6b0.js} +6 -6
  39. package/dist/cjs/nano-table-e15cc6b0.js.map +1 -0
  40. package/dist/cjs/nano-table.cjs.entry.js +1 -1
  41. package/dist/cjs/{slot-a448c1a7.js → slot-2dd6ed1d.js} +20 -15
  42. package/dist/cjs/slot-2dd6ed1d.js.map +1 -0
  43. package/dist/cjs/{table.worker-f04588c1.js → table.worker-8759e6ea.js} +2 -2
  44. package/dist/cjs/table.worker-8759e6ea.js.map +1 -0
  45. package/dist/collection/components/alert/alert.css +15 -0
  46. package/dist/collection/components/alert/alert.js +10 -2
  47. package/dist/collection/components/alert/alert.js.map +1 -1
  48. package/dist/collection/components/algolia/algolia-interface.js.map +1 -1
  49. package/dist/collection/components/algolia/algolia.js +1 -1
  50. package/dist/collection/components/algolia/algolia.js.map +1 -1
  51. package/dist/collection/components/dialog/dialog.css +1 -17
  52. package/dist/collection/components/dialog/dialog.js +31 -20
  53. package/dist/collection/components/dialog/dialog.js.map +1 -1
  54. package/dist/collection/components/drawer/drawer.css +136 -67
  55. package/dist/collection/components/drawer/drawer.js +282 -154
  56. package/dist/collection/components/drawer/drawer.js.map +1 -1
  57. package/dist/collection/components/dropdown/dropdown.css +10 -0
  58. package/dist/collection/components/dropdown/dropdown.js +15 -1
  59. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  60. package/dist/collection/components/global-nav/global-nav.js +2 -2
  61. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  62. package/dist/collection/components/global-nav/style/global-nav.css +5 -1
  63. package/dist/collection/components/global-search-results/global-search-results.js +2 -1
  64. package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
  65. package/dist/collection/components/sticker/sticker.js +16 -9
  66. package/dist/collection/components/sticker/sticker.js.map +1 -1
  67. package/dist/collection/components/table/table.pin-service.js +4 -4
  68. package/dist/collection/components/table/table.pin-service.js.map +1 -1
  69. package/dist/collection/utils/events.js +17 -0
  70. package/dist/collection/utils/events.js.map +1 -1
  71. package/dist/collection/utils/slot.js +19 -14
  72. package/dist/collection/utils/slot.js.map +1 -1
  73. package/dist/collection/utils/store/get-set.js +6 -12
  74. package/dist/collection/utils/store/get-set.js.map +1 -1
  75. package/dist/components/_commonjsHelpers.js +1 -16
  76. package/dist/components/_commonjsHelpers.js.map +1 -1
  77. package/dist/components/algolia.js +2 -2
  78. package/dist/components/algolia.js.map +1 -1
  79. package/dist/components/algoliasearch-lite.esm.browser.js +920 -0
  80. package/dist/components/algoliasearch-lite.esm.browser.js.map +1 -0
  81. package/dist/components/component-store.js +68 -2001
  82. package/dist/components/component-store.js.map +1 -1
  83. package/dist/components/dropdown.js +16 -2
  84. package/dist/components/dropdown.js.map +1 -1
  85. package/dist/components/events.js +36 -0
  86. package/dist/components/events.js.map +1 -0
  87. package/dist/components/nano-alert.js +10 -2
  88. package/dist/components/nano-alert.js.map +1 -1
  89. package/dist/components/nano-algolia-input.js +6 -1
  90. package/dist/components/nano-algolia-input.js.map +1 -1
  91. package/dist/components/nano-dialog.js +21 -20
  92. package/dist/components/nano-dialog.js.map +1 -1
  93. package/dist/components/nano-drawer.js +205 -122
  94. package/dist/components/nano-drawer.js.map +1 -1
  95. package/dist/components/nano-global-nav.js +4 -4
  96. package/dist/components/nano-global-nav.js.map +1 -1
  97. package/dist/components/nano-global-search-results.js +2 -1
  98. package/dist/components/nano-global-search-results.js.map +1 -1
  99. package/dist/components/nano-sortable.js +1 -13
  100. package/dist/components/nano-sortable.js.map +1 -1
  101. package/dist/components/slot.js +19 -14
  102. package/dist/components/slot.js.map +1 -1
  103. package/dist/components/sticker.js +16 -9
  104. package/dist/components/sticker.js.map +1 -1
  105. package/dist/components/table.js +4 -4
  106. package/dist/components/table.js.map +1 -1
  107. package/dist/esm/{_commonjsHelpers-e401b2a2.js → _commonjsHelpers-04a0e019.js} +2 -17
  108. package/dist/esm/_commonjsHelpers-04a0e019.js.map +1 -0
  109. package/dist/esm/algoliasearch-lite.esm.browser-04891fdc.js +920 -0
  110. package/dist/esm/algoliasearch-lite.esm.browser-04891fdc.js.map +1 -0
  111. package/dist/esm/component-store-65d7e36a.js +326 -0
  112. package/dist/esm/component-store-65d7e36a.js.map +1 -0
  113. package/dist/esm/events-6a805b42.js +36 -0
  114. package/dist/esm/events-6a805b42.js.map +1 -0
  115. package/dist/esm/loader.js +1 -1
  116. package/dist/esm/nano-alert.entry.js +9 -2
  117. package/dist/esm/nano-alert.entry.js.map +1 -1
  118. package/dist/esm/nano-algolia-filter.entry.js +1 -2
  119. package/dist/esm/nano-algolia-filter.entry.js.map +1 -1
  120. package/dist/esm/nano-algolia-input.entry.js +7 -3
  121. package/dist/esm/nano-algolia-input.entry.js.map +1 -1
  122. package/dist/esm/nano-algolia.entry.js +4 -4
  123. package/dist/esm/nano-algolia.entry.js.map +1 -1
  124. package/dist/esm/nano-components.js +1 -1
  125. package/dist/esm/nano-datalist_3.entry.js +1 -1
  126. package/dist/esm/nano-dialog.entry.js +23 -22
  127. package/dist/esm/nano-dialog.entry.js.map +1 -1
  128. package/dist/esm/nano-drawer.entry.js +171 -113
  129. package/dist/esm/nano-drawer.entry.js.map +1 -1
  130. package/dist/esm/nano-dropdown.entry.js +16 -2
  131. package/dist/esm/nano-dropdown.entry.js.map +1 -1
  132. package/dist/esm/nano-global-nav.entry.js +5 -6
  133. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  134. package/dist/esm/nano-global-search-results.entry.js +2 -1
  135. package/dist/esm/nano-global-search-results.entry.js.map +1 -1
  136. package/dist/esm/nano-slides.entry.js +1 -1
  137. package/dist/esm/nano-sortable.entry.js +1 -13
  138. package/dist/esm/nano-sortable.entry.js.map +1 -1
  139. package/dist/esm/nano-sticker.entry.js +16 -9
  140. package/dist/esm/nano-sticker.entry.js.map +1 -1
  141. package/dist/esm/nano-tab-group.entry.js +1 -2
  142. package/dist/esm/nano-tab-group.entry.js.map +1 -1
  143. package/dist/esm/{nano-table-2bbcaa8d.js → nano-table-5c5bd3f2.js} +6 -6
  144. package/dist/esm/nano-table-5c5bd3f2.js.map +1 -0
  145. package/dist/esm/nano-table.entry.js +1 -1
  146. package/dist/esm/{slot-a4f6e2af.js → slot-8126e238.js} +20 -15
  147. package/dist/esm/slot-8126e238.js.map +1 -0
  148. package/dist/esm/{table.worker-7324ad73.js → table.worker-e7f4f50c.js} +2 -2
  149. package/dist/esm/table.worker-e7f4f50c.js.map +1 -0
  150. package/dist/nano-components/nano-components.css +1 -1
  151. package/dist/nano-components/nano-components.esm.js +1 -1
  152. package/dist/nano-components/nano-components.esm.js.map +1 -1
  153. package/dist/nano-components/p-0301e8f7.entry.js +5 -0
  154. package/dist/nano-components/p-0301e8f7.entry.js.map +1 -0
  155. package/dist/nano-components/p-27422aa9.entry.js +5 -0
  156. package/dist/nano-components/{p-6920ad69.entry.js.map → p-27422aa9.entry.js.map} +1 -1
  157. package/dist/nano-components/{p-52ae36ec.js → p-2d79f5b3.js} +2 -2
  158. package/dist/nano-components/{p-0697795a.entry.js → p-31c23d6e.entry.js} +2 -2
  159. package/dist/nano-components/p-31c23d6e.entry.js.map +1 -0
  160. package/dist/nano-components/p-487de04d.entry.js.map +1 -1
  161. package/dist/nano-components/p-570d2e50.entry.js +5 -0
  162. package/dist/nano-components/p-570d2e50.entry.js.map +1 -0
  163. package/dist/nano-components/{p-3eb6d833.entry.js → p-5a4b3fa9.entry.js} +2 -2
  164. package/dist/nano-components/p-653ae985.js +5 -0
  165. package/dist/nano-components/p-653ae985.js.map +1 -0
  166. package/dist/nano-components/p-676a4744.entry.js +5 -0
  167. package/dist/nano-components/{p-d0eefd52.entry.js.map → p-676a4744.entry.js.map} +1 -1
  168. package/dist/nano-components/p-8fe51abf.js +5 -0
  169. package/dist/nano-components/{p-4884b65a.entry.js → p-90cd4f56.entry.js} +2 -2
  170. package/dist/nano-components/p-90cd4f56.entry.js.map +1 -0
  171. package/dist/nano-components/p-9ba81ed2.js +5 -0
  172. package/dist/nano-components/p-9ba81ed2.js.map +1 -0
  173. package/dist/nano-components/p-9bfdee71.js +5 -0
  174. package/dist/nano-components/p-9bfdee71.js.map +1 -0
  175. package/dist/nano-components/p-a8d6ca38.entry.js +5 -0
  176. package/dist/nano-components/p-a8d6ca38.entry.js.map +1 -0
  177. package/dist/nano-components/p-ace7743c.entry.js +5 -0
  178. package/dist/nano-components/p-ace7743c.entry.js.map +1 -0
  179. package/dist/nano-components/{p-39aec880.entry.js → p-bab2888b.entry.js} +2 -2
  180. package/dist/nano-components/p-bdb5b6fc.entry.js +5 -0
  181. package/dist/nano-components/p-bdb5b6fc.entry.js.map +1 -0
  182. package/dist/nano-components/p-cad86fb8.js +5 -0
  183. package/dist/nano-components/p-cad86fb8.js.map +1 -0
  184. package/dist/nano-components/p-dc565459.js +5 -0
  185. package/dist/nano-components/p-dc565459.js.map +1 -0
  186. package/dist/nano-components/p-ede12d35.entry.js +5 -0
  187. package/dist/nano-components/p-ede12d35.entry.js.map +1 -0
  188. package/dist/nano-components/p-f504b1df.entry.js +7 -0
  189. package/dist/nano-components/p-f504b1df.entry.js.map +1 -0
  190. package/dist/nano-components/{p-db370094.entry.js → p-f7a4c62b.entry.js} +2 -2
  191. package/dist/themes/london-calling.css.map +1 -1
  192. package/dist/themes/nanopore.cn.css.map +1 -1
  193. package/dist/themes/nanopore.css.map +1 -1
  194. package/dist/types/components/alert/alert.d.ts +1 -0
  195. package/dist/types/components/algolia/algolia-interface.d.ts +1 -1
  196. package/dist/types/components/algolia/algolia.d.ts +1 -1
  197. package/dist/types/components/dialog/dialog.d.ts +15 -4
  198. package/dist/types/components/drawer/drawer.d.ts +69 -50
  199. package/dist/types/components/sticker/sticker.d.ts +4 -4
  200. package/dist/types/components.d.ts +50 -28
  201. package/dist/types/types/algolia.d.ts +4 -0
  202. package/dist/types/types/scss.vars.d.ts +4 -0
  203. package/dist/types/utils/events.d.ts +7 -0
  204. package/dist/types/utils/slot.d.ts +3 -3
  205. package/docs-json.json +268 -61
  206. package/docs-vscode.json +28 -11
  207. package/hydrate/index.js +1335 -2236
  208. package/package.json +4 -4
  209. package/dist/cjs/_commonjsHelpers-9f2314fc.js.map +0 -1
  210. package/dist/cjs/algoliasearch.umd-689c1560.js +0 -15
  211. package/dist/cjs/algoliasearch.umd-689c1560.js.map +0 -1
  212. package/dist/cjs/component-store-f1dc1276.js +0 -2261
  213. package/dist/cjs/component-store-f1dc1276.js.map +0 -1
  214. package/dist/cjs/nano-table-10a40ab3.js.map +0 -1
  215. package/dist/cjs/slot-a448c1a7.js.map +0 -1
  216. package/dist/cjs/table.worker-f04588c1.js.map +0 -1
  217. package/dist/components/algoliasearch.umd.js +0 -13
  218. package/dist/components/algoliasearch.umd.js.map +0 -1
  219. package/dist/esm/_commonjsHelpers-e401b2a2.js.map +0 -1
  220. package/dist/esm/algoliasearch.umd-4f7efa84.js +0 -13
  221. package/dist/esm/algoliasearch.umd-4f7efa84.js.map +0 -1
  222. package/dist/esm/component-store-c23ebc9c.js +0 -2259
  223. package/dist/esm/component-store-c23ebc9c.js.map +0 -1
  224. package/dist/esm/nano-table-2bbcaa8d.js.map +0 -1
  225. package/dist/esm/slot-a4f6e2af.js.map +0 -1
  226. package/dist/esm/table.worker-7324ad73.js.map +0 -1
  227. package/dist/nano-components/p-0697795a.entry.js.map +0 -1
  228. package/dist/nano-components/p-17b099cc.entry.js +0 -5
  229. package/dist/nano-components/p-17b099cc.entry.js.map +0 -1
  230. package/dist/nano-components/p-1a0b5bc3.js +0 -5
  231. package/dist/nano-components/p-1a0b5bc3.js.map +0 -1
  232. package/dist/nano-components/p-4884b65a.entry.js.map +0 -1
  233. package/dist/nano-components/p-58cf5446.js +0 -5
  234. package/dist/nano-components/p-58cf5446.js.map +0 -1
  235. package/dist/nano-components/p-6920ad69.entry.js +0 -5
  236. package/dist/nano-components/p-69a3e911.js +0 -5
  237. package/dist/nano-components/p-7baa9e14.entry.js +0 -5
  238. package/dist/nano-components/p-7baa9e14.entry.js.map +0 -1
  239. package/dist/nano-components/p-9b533dc3.js +0 -5
  240. package/dist/nano-components/p-9b533dc3.js.map +0 -1
  241. package/dist/nano-components/p-a362bd23.entry.js +0 -5
  242. package/dist/nano-components/p-a362bd23.entry.js.map +0 -1
  243. package/dist/nano-components/p-b04fd7ca.entry.js +0 -5
  244. package/dist/nano-components/p-b04fd7ca.entry.js.map +0 -1
  245. package/dist/nano-components/p-b72df1aa.entry.js +0 -5
  246. package/dist/nano-components/p-b72df1aa.entry.js.map +0 -1
  247. package/dist/nano-components/p-ce5efc3f.entry.js +0 -5
  248. package/dist/nano-components/p-ce5efc3f.entry.js.map +0 -1
  249. package/dist/nano-components/p-d0eefd52.entry.js +0 -5
  250. package/dist/nano-components/p-e2b2b015.entry.js +0 -5
  251. package/dist/nano-components/p-e2b2b015.entry.js.map +0 -1
  252. package/dist/nano-components/p-ed6adde2.js +0 -7
  253. package/dist/nano-components/p-ed6adde2.js.map +0 -1
  254. package/dist/types/dom.ie.d.ts +0 -3
  255. /package/dist/nano-components/{p-39aec880.entry.js.map → p-2d79f5b3.js.map} +0 -0
  256. /package/dist/nano-components/{p-3eb6d833.entry.js.map → p-5a4b3fa9.entry.js.map} +0 -0
  257. /package/dist/nano-components/{p-52ae36ec.js.map → p-8fe51abf.js.map} +0 -0
  258. /package/dist/nano-components/{p-69a3e911.js.map → p-bab2888b.entry.js.map} +0 -0
  259. /package/dist/nano-components/{p-db370094.entry.js.map → p-f7a4c62b.entry.js.map} +0 -0
package/docs-json.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-08-03T13:31:21",
2
+ "timestamp": "2023-08-08T21:17:15",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.23.0",
@@ -4356,8 +4356,40 @@
4356
4356
  "docs": "Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.",
4357
4357
  "docsTags": [
4358
4358
  {
4359
- "name": "slot",
4360
- "text": "- The dialog's content."
4359
+ "name": "part",
4360
+ "text": "base - The component’s base wrapper"
4361
+ },
4362
+ {
4363
+ "name": "part",
4364
+ "text": "overlay - The overlay that covers the screen behind the dialog"
4365
+ },
4366
+ {
4367
+ "name": "part",
4368
+ "text": "panel - The dialog’s panel (where the dialog and its content are rendered)"
4369
+ },
4370
+ {
4371
+ "name": "part",
4372
+ "text": "header - The dialog’s header. This element wraps the title and header actions"
4373
+ },
4374
+ {
4375
+ "name": "part",
4376
+ "text": "title - The dialog’s title"
4377
+ },
4378
+ {
4379
+ "name": "part",
4380
+ "text": "close-button - The `<nano-icon-button>` close button"
4381
+ },
4382
+ {
4383
+ "name": "part",
4384
+ "text": "close-button__base - The close button's exported `base` part"
4385
+ },
4386
+ {
4387
+ "name": "part",
4388
+ "text": "body - dilog body / content"
4389
+ },
4390
+ {
4391
+ "name": "part",
4392
+ "text": "footer - dialog footer bar"
4361
4393
  },
4362
4394
  {
4363
4395
  "name": "slot",
@@ -4366,6 +4398,10 @@
4366
4398
  {
4367
4399
  "name": "slot",
4368
4400
  "text": "footer - The dialog's footer, usually one or more buttons representing various options."
4401
+ },
4402
+ {
4403
+ "name": "slot",
4404
+ "text": "- The dialog's content."
4369
4405
  }
4370
4406
  ],
4371
4407
  "usage": {},
@@ -4656,7 +4692,7 @@
4656
4692
  {
4657
4693
  "name": "--close-button-color",
4658
4694
  "annotation": "prop",
4659
- "docs": "defaults to #687576;"
4695
+ "docs": "defaults to #b5aea7;"
4660
4696
  },
4661
4697
  {
4662
4698
  "name": "--content-background",
@@ -4706,31 +4742,39 @@
4706
4742
  "parts": [
4707
4743
  {
4708
4744
  "name": "base",
4709
- "docs": ""
4745
+ "docs": "The component’s base wrapper"
4710
4746
  },
4711
4747
  {
4712
4748
  "name": "body",
4713
- "docs": ""
4749
+ "docs": "dilog body / content"
4750
+ },
4751
+ {
4752
+ "name": "close-button",
4753
+ "docs": "The `<nano-icon-button>` close button"
4754
+ },
4755
+ {
4756
+ "name": "close-button__base",
4757
+ "docs": "The close button's exported `base` part"
4714
4758
  },
4715
4759
  {
4716
4760
  "name": "footer",
4717
- "docs": ""
4761
+ "docs": "dialog footer bar"
4718
4762
  },
4719
4763
  {
4720
4764
  "name": "header",
4721
- "docs": ""
4765
+ "docs": "The dialog’s header. This element wraps the title and header actions"
4722
4766
  },
4723
4767
  {
4724
4768
  "name": "overlay",
4725
- "docs": ""
4769
+ "docs": "The overlay that covers the screen behind the dialog"
4726
4770
  },
4727
4771
  {
4728
4772
  "name": "panel",
4729
- "docs": ""
4773
+ "docs": "The dialog’s panel (where the dialog and its content are rendered)"
4730
4774
  },
4731
4775
  {
4732
4776
  "name": "title",
4733
- "docs": ""
4777
+ "docs": "The dialog’s title"
4734
4778
  }
4735
4779
  ],
4736
4780
  "dependents": [],
@@ -4754,19 +4798,63 @@
4754
4798
  "encapsulation": "shadow",
4755
4799
  "tag": "nano-drawer",
4756
4800
  "readme": "# nano-drawer\n\n\n",
4757
- "docs": "WIP / TODO. https://git.oxfordnanolabs.local/Digital/nano-components/-/issues/24",
4801
+ "docs": "Drawers slide in from a container to expose additional options and information.",
4758
4802
  "docsTags": [
4759
4803
  {
4760
4804
  "name": "slot",
4761
- "text": "- The drawer's content."
4805
+ "text": "- The drawer's main content"
4762
4806
  },
4763
4807
  {
4764
4808
  "name": "slot",
4765
- "text": "label - The dialog's label. Alternatively, you can use the label prop."
4809
+ "text": "label - The drawer's label. Alternatively, you can use the `label` attribute"
4766
4810
  },
4767
4811
  {
4768
4812
  "name": "slot",
4769
- "text": "footer - The drawer's footer, usually one or more buttons representing various options."
4813
+ "text": "header-actions - Optional actions to add to the header. Works best with `<nano-icon-button>`"
4814
+ },
4815
+ {
4816
+ "name": "slot",
4817
+ "text": "footer - The drawer's footer, usually one or more buttons representing various options"
4818
+ },
4819
+ {
4820
+ "name": "part",
4821
+ "text": "base - The component's base wrapper"
4822
+ },
4823
+ {
4824
+ "name": "part",
4825
+ "text": "overlay - The overlay that covers the screen behind the drawer"
4826
+ },
4827
+ {
4828
+ "name": "part",
4829
+ "text": "panel - The drawer's panel (where the drawer and its content are rendered)"
4830
+ },
4831
+ {
4832
+ "name": "part",
4833
+ "text": "header - The drawer's header. This element wraps the title and header actions"
4834
+ },
4835
+ {
4836
+ "name": "part",
4837
+ "text": "header-actions - Optional actions to add to the header. Works best with `<nano-icon-button>`"
4838
+ },
4839
+ {
4840
+ "name": "part",
4841
+ "text": "title - The drawer's title"
4842
+ },
4843
+ {
4844
+ "name": "part",
4845
+ "text": "close-button - The close button, an `<nano-icon-button>`"
4846
+ },
4847
+ {
4848
+ "name": "part",
4849
+ "text": "close-button__base - The close button's exported `base` part"
4850
+ },
4851
+ {
4852
+ "name": "part",
4853
+ "text": "body - The drawer's body"
4854
+ },
4855
+ {
4856
+ "name": "part",
4857
+ "text": "footer - The drawer's footer"
4770
4858
  }
4771
4859
  ],
4772
4860
  "usage": {},
@@ -4776,8 +4864,8 @@
4776
4864
  "type": "boolean",
4777
4865
  "mutable": false,
4778
4866
  "attr": "contained",
4779
- "reflectToAttr": false,
4780
- "docs": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this prop and add `position: relative` to the parent.",
4867
+ "reflectToAttr": true,
4868
+ "docs": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent.",
4781
4869
  "docsTags": [],
4782
4870
  "default": "false",
4783
4871
  "values": [
@@ -4791,16 +4879,17 @@
4791
4879
  "setter": false
4792
4880
  },
4793
4881
  {
4794
- "name": "contentSelector",
4795
- "type": "string",
4882
+ "name": "hoist",
4883
+ "type": "boolean",
4796
4884
  "mutable": false,
4797
- "attr": "content-selector",
4885
+ "attr": "hoist",
4798
4886
  "reflectToAttr": false,
4799
- "docs": "Required for 'reveal' and 'push' types\nA valid DOM selector of the content element that this drawer will push or reveal underneath\nPlease remember - elements wrapping the content element must be 'overflow: hidden'\notherwise menus will be shown when closed",
4887
+ "docs": "Relocate the dialog to the root of the DOM. Useful for elements bound via css `transform: ...`",
4800
4888
  "docsTags": [],
4889
+ "default": "false",
4801
4890
  "values": [
4802
4891
  {
4803
- "type": "string"
4892
+ "type": "boolean"
4804
4893
  }
4805
4894
  ],
4806
4895
  "optional": false,
@@ -4813,17 +4902,16 @@
4813
4902
  "type": "string",
4814
4903
  "mutable": false,
4815
4904
  "attr": "label",
4816
- "reflectToAttr": false,
4817
- "docs": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
4905
+ "reflectToAttr": true,
4906
+ "docs": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
4818
4907
  "docsTags": [],
4819
- "default": "''",
4820
4908
  "values": [
4821
4909
  {
4822
4910
  "type": "string"
4823
4911
  }
4824
4912
  ],
4825
4913
  "optional": false,
4826
- "required": false,
4914
+ "required": true,
4827
4915
  "getter": false,
4828
4916
  "setter": false
4829
4917
  },
@@ -4832,7 +4920,7 @@
4832
4920
  "type": "boolean",
4833
4921
  "mutable": false,
4834
4922
  "attr": "no-header",
4835
- "reflectToAttr": false,
4923
+ "reflectToAttr": true,
4836
4924
  "docs": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer.",
4837
4925
  "docsTags": [],
4838
4926
  "default": "false",
@@ -4846,13 +4934,32 @@
4846
4934
  "getter": false,
4847
4935
  "setter": false
4848
4936
  },
4937
+ {
4938
+ "name": "noUserDismiss",
4939
+ "type": "boolean",
4940
+ "mutable": false,
4941
+ "attr": "no-user-dismiss",
4942
+ "reflectToAttr": false,
4943
+ "docs": "An alternative to `preventDefault()` on the `nanoRequestClose` event. This will hide the close button and disable clicks on the overlay or presses the `Escape` key",
4944
+ "docsTags": [],
4945
+ "default": "false",
4946
+ "values": [
4947
+ {
4948
+ "type": "boolean"
4949
+ }
4950
+ ],
4951
+ "optional": false,
4952
+ "required": false,
4953
+ "getter": false,
4954
+ "setter": false
4955
+ },
4849
4956
  {
4850
4957
  "name": "open",
4851
4958
  "type": "boolean",
4852
- "mutable": true,
4959
+ "mutable": false,
4853
4960
  "attr": "open",
4854
4961
  "reflectToAttr": true,
4855
- "docs": "Indicates whether or not the drawer is open. You can use this in lieu of the show/hide methods.",
4962
+ "docs": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
4856
4963
  "docsTags": [],
4857
4964
  "default": "false",
4858
4965
  "values": [
@@ -4870,7 +4977,7 @@
4870
4977
  "type": "\"bottom\" | \"end\" | \"start\" | \"top\"",
4871
4978
  "mutable": false,
4872
4979
  "attr": "placement",
4873
- "reflectToAttr": false,
4980
+ "reflectToAttr": true,
4874
4981
  "docs": "The direction from which the drawer will open.",
4875
4982
  "docsTags": [],
4876
4983
  "default": "'end'",
@@ -4898,25 +5005,55 @@
4898
5005
  "setter": false
4899
5006
  },
4900
5007
  {
4901
- "name": "type",
4902
- "type": "\"overlay\" | \"push\" | \"reveal\"",
5008
+ "name": "storeId",
5009
+ "type": "string",
4903
5010
  "mutable": false,
4904
- "attr": "type",
5011
+ "attr": "store-id",
4905
5012
  "reflectToAttr": false,
4906
- "docs": "The display type of the drawer",
5013
+ "docs": "Store search queries (against this ID) to the component store. Use in conjunction with storeMethod",
4907
5014
  "docsTags": [],
4908
- "default": "'overlay'",
4909
5015
  "values": [
4910
5016
  {
4911
- "value": "overlay",
5017
+ "type": "string"
5018
+ }
5019
+ ],
5020
+ "optional": true,
5021
+ "required": false,
5022
+ "getter": false,
5023
+ "setter": false
5024
+ },
5025
+ {
5026
+ "name": "storeMethod",
5027
+ "type": "\"local\" | \"session\" | \"url-hash\" | \"url-hash-push\" | \"url-query\" | \"url-query-push\"",
5028
+ "mutable": false,
5029
+ "attr": "store-method",
5030
+ "reflectToAttr": false,
5031
+ "docs": "The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').",
5032
+ "docsTags": [],
5033
+ "default": "'url-hash'",
5034
+ "values": [
5035
+ {
5036
+ "value": "local",
5037
+ "type": "string"
5038
+ },
5039
+ {
5040
+ "value": "session",
4912
5041
  "type": "string"
4913
5042
  },
4914
5043
  {
4915
- "value": "push",
5044
+ "value": "url-hash",
4916
5045
  "type": "string"
4917
5046
  },
4918
5047
  {
4919
- "value": "reveal",
5048
+ "value": "url-hash-push",
5049
+ "type": "string"
5050
+ },
5051
+ {
5052
+ "value": "url-query",
5053
+ "type": "string"
5054
+ },
5055
+ {
5056
+ "value": "url-query-push",
4920
5057
  "type": "string"
4921
5058
  }
4922
5059
  ],
@@ -4946,7 +5083,7 @@
4946
5083
  },
4947
5084
  "signature": "show() => Promise<void>",
4948
5085
  "parameters": [],
4949
- "docs": "Shows the drawer",
5086
+ "docs": "Shows the drawer.",
4950
5087
  "docsTags": []
4951
5088
  }
4952
5089
  ],
@@ -4957,7 +5094,7 @@
4957
5094
  "bubbles": true,
4958
5095
  "cancelable": true,
4959
5096
  "composed": true,
4960
- "docs": "Emitted after the drawer closes and all transitions are complete.",
5097
+ "docs": "Emitted after the drawer closes and all animations are complete.",
4961
5098
  "docsTags": []
4962
5099
  },
4963
5100
  {
@@ -4966,7 +5103,7 @@
4966
5103
  "bubbles": true,
4967
5104
  "cancelable": true,
4968
5105
  "composed": true,
4969
- "docs": "Emitted after the drawer opens and all transitions are complete.",
5106
+ "docs": "Emitted after the drawer opens and all animations are complete.",
4970
5107
  "docsTags": []
4971
5108
  },
4972
5109
  {
@@ -4975,16 +5112,25 @@
4975
5112
  "bubbles": true,
4976
5113
  "cancelable": true,
4977
5114
  "composed": true,
4978
- "docs": "Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed.",
5115
+ "docs": "Emitted when the drawer closes.",
4979
5116
  "docsTags": []
4980
5117
  },
4981
5118
  {
4982
- "event": "nanoOverlayDismiss",
5119
+ "event": "nanoInitialFocus",
4983
5120
  "detail": "any",
4984
5121
  "bubbles": true,
4985
5122
  "cancelable": true,
4986
5123
  "composed": true,
4987
- "docs": "Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the drawer from closing.",
5124
+ "docs": "Emitted when the drawer opens and is ready to receive focus. Calling\n`event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.",
5125
+ "docsTags": []
5126
+ },
5127
+ {
5128
+ "event": "nanoRquestClose",
5129
+ "detail": "{ source: \"overlay\" | \"keyboard\" | \"close-button\"; }",
5130
+ "bubbles": true,
5131
+ "cancelable": true,
5132
+ "composed": true,
5133
+ "docs": "Emitted when the user attempts to\nclose the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling\n`event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in\ndestructive behavior such as data loss.",
4988
5134
  "docsTags": []
4989
5135
  },
4990
5136
  {
@@ -4993,26 +5139,51 @@
4993
5139
  "bubbles": true,
4994
5140
  "cancelable": true,
4995
5141
  "composed": true,
4996
- "docs": "Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened.",
5142
+ "docs": "Emitted when the drawer opens.",
4997
5143
  "docsTags": []
4998
5144
  }
4999
5145
  ],
5000
5146
  "listeners": [],
5001
5147
  "styles": [
5002
5148
  {
5003
- "name": "--overlay-color",
5149
+ "name": "--body-spacing",
5004
5150
  "annotation": "prop",
5005
- "docs": "Defaults to 'hsla(203, 10%, 20%, 0.5)';"
5151
+ "docs": "The amount of padding to use for the body."
5006
5152
  },
5007
5153
  {
5008
- "name": "--panel-background-color",
5154
+ "name": "--footer-background",
5155
+ "annotation": "prop",
5156
+ "docs": "Defaults to #e4e6e8;"
5157
+ },
5158
+ {
5159
+ "name": "--footer-spacing",
5160
+ "annotation": "prop",
5161
+ "docs": "The amount of padding to use for the footer. Defaults to var(--nano-spacing-medium, 16px) var(--nano-spacing-large, 20px)"
5162
+ },
5163
+ {
5164
+ "name": "--header-button-color",
5165
+ "annotation": "prop",
5166
+ "docs": "defaults to #b5aea7;"
5167
+ },
5168
+ {
5169
+ "name": "--header-spacing",
5170
+ "annotation": "prop",
5171
+ "docs": "The amount of padding to use for the header."
5172
+ },
5173
+ {
5174
+ "name": "--panel-background",
5009
5175
  "annotation": "prop",
5010
5176
  "docs": "background color of panel. Default to 'white'"
5011
5177
  },
5012
5178
  {
5013
5179
  "name": "--panel-shadow",
5014
5180
  "annotation": "prop",
5015
- "docs": "Defaults to '0 4px 16px rgb(0 0 0 / 10%)';"
5181
+ "docs": "Defaults to var(--nano-layer-shadow-xlarge, 0 4px 16px rgba(0, 0, 0, 0.4));"
5182
+ },
5183
+ {
5184
+ "name": "--scrim-color",
5185
+ "annotation": "prop",
5186
+ "docs": "overlay colour of alert display. Defaults to var(--nano-layer-overlay-dark, rgb(74 74 74 / 50%));"
5016
5187
  },
5017
5188
  {
5018
5189
  "name": "--size",
@@ -5023,50 +5194,78 @@
5023
5194
  "slots": [
5024
5195
  {
5025
5196
  "name": "",
5026
- "docs": "The drawer's content."
5197
+ "docs": "The drawer's main content"
5027
5198
  },
5028
5199
  {
5029
5200
  "name": "footer",
5030
- "docs": "The drawer's footer, usually one or more buttons representing various options."
5201
+ "docs": "The drawer's footer, usually one or more buttons representing various options"
5202
+ },
5203
+ {
5204
+ "name": "header-actions",
5205
+ "docs": "Optional actions to add to the header. Works best with `<nano-icon-button>`"
5031
5206
  },
5032
5207
  {
5033
5208
  "name": "label",
5034
- "docs": "The dialog's label. Alternatively, you can use the label prop."
5209
+ "docs": "The drawer's label. Alternatively, you can use the `label` attribute"
5035
5210
  }
5036
5211
  ],
5037
5212
  "parts": [
5038
5213
  {
5039
5214
  "name": "base",
5040
- "docs": ""
5215
+ "docs": "The component's base wrapper"
5041
5216
  },
5042
5217
  {
5043
5218
  "name": "body",
5044
- "docs": ""
5219
+ "docs": "The drawer's body"
5220
+ },
5221
+ {
5222
+ "name": "close-button",
5223
+ "docs": "The close button, an `<nano-icon-button>`"
5224
+ },
5225
+ {
5226
+ "name": "close-button__base",
5227
+ "docs": "The close button's exported `base` part"
5045
5228
  },
5046
5229
  {
5047
5230
  "name": "footer",
5048
- "docs": ""
5231
+ "docs": "The drawer's footer"
5049
5232
  },
5050
5233
  {
5051
5234
  "name": "header",
5052
- "docs": ""
5235
+ "docs": "The drawer's header. This element wraps the title and header actions"
5236
+ },
5237
+ {
5238
+ "name": "header-actions",
5239
+ "docs": "Optional actions to add to the header. Works best with `<nano-icon-button>`"
5053
5240
  },
5054
5241
  {
5055
5242
  "name": "overlay",
5056
- "docs": ""
5243
+ "docs": "The overlay that covers the screen behind the drawer"
5057
5244
  },
5058
5245
  {
5059
5246
  "name": "panel",
5060
- "docs": ""
5247
+ "docs": "The drawer's panel (where the drawer and its content are rendered)"
5061
5248
  },
5062
5249
  {
5063
5250
  "name": "title",
5064
- "docs": ""
5251
+ "docs": "The drawer's title"
5065
5252
  }
5066
5253
  ],
5067
5254
  "dependents": [],
5068
- "dependencies": [],
5069
- "dependencyGraph": {}
5255
+ "dependencies": [
5256
+ "nano-sticker",
5257
+ "nano-icon-button"
5258
+ ],
5259
+ "dependencyGraph": {
5260
+ "nano-drawer": [
5261
+ "nano-sticker",
5262
+ "nano-icon-button"
5263
+ ],
5264
+ "nano-icon-button": [
5265
+ "nano-icon",
5266
+ "nano-tooltip"
5267
+ ]
5268
+ }
5070
5269
  },
5071
5270
  {
5072
5271
  "filePath": "./src/components/dropdown/dropdown.tsx",
@@ -8616,6 +8815,7 @@
8616
8815
  "dependents": [
8617
8816
  "nano-alert",
8618
8817
  "nano-dialog",
8818
+ "nano-drawer",
8619
8819
  "nano-file-upload",
8620
8820
  "nano-overflow-nav",
8621
8821
  "nano-tab"
@@ -8635,6 +8835,9 @@
8635
8835
  "nano-dialog": [
8636
8836
  "nano-icon-button"
8637
8837
  ],
8838
+ "nano-drawer": [
8839
+ "nano-icon-button"
8840
+ ],
8638
8841
  "nano-file-upload": [
8639
8842
  "nano-icon-button"
8640
8843
  ],
@@ -15179,6 +15382,7 @@
15179
15382
  "parts": [],
15180
15383
  "dependents": [
15181
15384
  "nano-dialog",
15385
+ "nano-drawer",
15182
15386
  "nano-global-nav"
15183
15387
  ],
15184
15388
  "dependencies": [],
@@ -15186,6 +15390,9 @@
15186
15390
  "nano-dialog": [
15187
15391
  "nano-sticker"
15188
15392
  ],
15393
+ "nano-drawer": [
15394
+ "nano-sticker"
15395
+ ],
15189
15396
  "nano-global-nav": [
15190
15397
  "nano-sticker"
15191
15398
  ]
package/docs-vscode.json CHANGED
@@ -933,28 +933,32 @@
933
933
  "name": "nano-drawer",
934
934
  "description": {
935
935
  "kind": "markdown",
936
- "value": "WIP / TODO. https://git.oxfordnanolabs.local/Digital/nano-components/-/issues/24"
936
+ "value": "Drawers slide in from a container to expose additional options and information."
937
937
  },
938
938
  "attributes": [
939
939
  {
940
940
  "name": "contained",
941
- "description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this prop and add `position: relative` to the parent."
941
+ "description": "By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\nits parent element, set this attribute and add `position: relative` to the parent."
942
942
  },
943
943
  {
944
- "name": "content-selector",
945
- "description": "Required for 'reveal' and 'push' types\nA valid DOM selector of the content element that this drawer will push or reveal underneath\nPlease remember - elements wrapping the content element must be 'overflow: hidden'\notherwise menus will be shown when closed"
944
+ "name": "hoist",
945
+ "description": "Relocate the dialog to the root of the DOM. Useful for elements bound via css `transform: ...`"
946
946
  },
947
947
  {
948
948
  "name": "label",
949
- "description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility."
949
+ "description": "The drawer's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead."
950
950
  },
951
951
  {
952
952
  "name": "no-header",
953
953
  "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy,\naccessible way for users to dismiss the drawer."
954
954
  },
955
+ {
956
+ "name": "no-user-dismiss",
957
+ "description": "An alternative to `preventDefault()` on the `nanoRequestClose` event. This will hide the close button and disable clicks on the overlay or presses the `Escape` key"
958
+ },
955
959
  {
956
960
  "name": "open",
957
- "description": "Indicates whether or not the drawer is open. You can use this in lieu of the show/hide methods."
961
+ "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state."
958
962
  },
959
963
  {
960
964
  "name": "placement",
@@ -975,17 +979,30 @@
975
979
  ]
976
980
  },
977
981
  {
978
- "name": "type",
979
- "description": "The display type of the drawer",
982
+ "name": "store-id",
983
+ "description": "Store search queries (against this ID) to the component store. Use in conjunction with storeMethod"
984
+ },
985
+ {
986
+ "name": "store-method",
987
+ "description": "The method of storage. Either session storage, url hash (after the '#') or url query (after the '?').",
980
988
  "values": [
981
989
  {
982
- "name": "overlay"
990
+ "name": "local"
991
+ },
992
+ {
993
+ "name": "session"
994
+ },
995
+ {
996
+ "name": "url-hash"
997
+ },
998
+ {
999
+ "name": "url-hash-push"
983
1000
  },
984
1001
  {
985
- "name": "push"
1002
+ "name": "url-query"
986
1003
  },
987
1004
  {
988
- "name": "reveal"
1005
+ "name": "url-query-push"
989
1006
  }
990
1007
  ]
991
1008
  }