@nanoporetech-digital/components 8.0.0-alpha.2 → 8.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/cjs/{fade-C3xL9ihU.js → fade-CqKYrZYq.js} +1 -1
  2. package/dist/cjs/{fullscreen-pHBD1-3e.js → fullscreen-D-fHJ_IJ.js} +1 -1
  3. package/dist/cjs/index-IR1lkhwT.js +4 -4
  4. package/dist/cjs/{lazyload-D2pj9J7r.js → lazyload-DK1ITMfR.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/nano-avatar_5.cjs.entry.js +7 -7
  7. package/dist/cjs/nano-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +1 -1
  9. package/dist/cjs/nano-components.cjs.js +1 -1
  10. package/dist/cjs/nano-cta.cjs.entry.js +2 -1
  11. package/dist/cjs/{nano-data-table-BkyqQiTG.js → nano-data-table-C_KLyFMO.js} +6 -3
  12. package/dist/cjs/nano-data-table.cjs.entry.js +1 -1
  13. package/dist/cjs/nano-datalist_3.cjs.entry.js +8 -8
  14. package/dist/cjs/nano-file-upload.cjs.entry.js +48 -29
  15. package/dist/cjs/nano-footer.cjs.entry.js +3 -3
  16. package/dist/cjs/nano-global-nav.cjs.entry.js +1 -1
  17. package/dist/cjs/nano-icon_3.cjs.entry.js +2 -2
  18. package/dist/cjs/nano-progress-bar.cjs.entry.js +3 -17
  19. package/dist/cjs/nano-rating.cjs.entry.js +4 -4
  20. package/dist/cjs/nano-resize-observe_2.cjs.entry.js +3 -3
  21. package/dist/cjs/nano-slide.cjs.entry.js +1 -1
  22. package/dist/cjs/{nano-slides-B3-XISfn.js → nano-slides-BhpvytBB.js} +7 -7
  23. package/dist/cjs/nano-slides.cjs.entry.js +1 -1
  24. package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
  25. package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
  26. package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
  27. package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
  28. package/dist/cjs/nano-tab.cjs.entry.js +2 -2
  29. package/dist/cjs/nano-table.cjs.entry.js +2 -2
  30. package/dist/cjs/{page-dots-DHz-mQDL.js → page-dots-DeSuT5bE.js} +1 -1
  31. package/dist/cjs/{style-BccHkuhC.js → style-Bf3iH5GX.js} +16 -2
  32. package/dist/cjs/{table.worker-NnDnfSFs.js → table.worker-C5ofbi7M.js} +1 -1
  33. package/dist/collection/components/cta/cta.js +2 -1
  34. package/dist/collection/components/data-table/table.js +5 -2
  35. package/dist/collection/components/datalist/datalist.js +6 -6
  36. package/dist/collection/components/file-upload/file-upload.css +140 -215
  37. package/dist/collection/components/file-upload/file-upload.js +66 -44
  38. package/dist/collection/components/footer/footer.css +2 -3
  39. package/dist/collection/components/footer/footer.js +4 -3
  40. package/dist/collection/components/progress-bar/progress-bar.css +78 -33
  41. package/dist/collection/components/progress-bar/progress-bar.js +18 -61
  42. package/dist/collection/components/rating/rating.js +4 -4
  43. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  44. package/dist/collection/components/select/select.js +7 -7
  45. package/dist/collection/components/skeleton/skeleton.js +2 -2
  46. package/dist/collection/components/slides/slide.js +1 -1
  47. package/dist/collection/components/slides/slides.js +3 -3
  48. package/dist/collection/components/sortable/sortable.js +1 -1
  49. package/dist/collection/components/spinner/spinner.js +1 -1
  50. package/dist/collection/components/sticker/sticker.js +2 -2
  51. package/dist/collection/components/table/table.js +2 -2
  52. package/dist/collection/components/tabs/tab-content.js +2 -2
  53. package/dist/collection/components/tabs/tab.js +2 -2
  54. package/dist/collection/components/tag/tag.js +2 -2
  55. package/dist/collection/components/tooltip/tooltip.js +2 -2
  56. package/dist/collection/utils/style.js +16 -2
  57. package/dist/components/cta.js +2 -1
  58. package/dist/components/datalist.js +6 -6
  59. package/dist/components/nano-data-table.js +5 -2
  60. package/dist/components/nano-file-upload.js +58 -33
  61. package/dist/components/nano-footer.js +5 -4
  62. package/dist/components/nano-rating.js +4 -4
  63. package/dist/components/nano-slide.js +1 -1
  64. package/dist/components/nano-sortable.js +1 -1
  65. package/dist/components/nano-tab-content.js +2 -2
  66. package/dist/components/nano-tab.js +2 -2
  67. package/dist/components/nano-table.js +2 -2
  68. package/dist/components/progress-bar.js +7 -23
  69. package/dist/components/resize-observe.js +1 -1
  70. package/dist/components/select.js +7 -7
  71. package/dist/components/skeleton.js +2 -2
  72. package/dist/components/slides.js +3 -3
  73. package/dist/components/spinner.js +1 -1
  74. package/dist/components/sticker.js +2 -2
  75. package/dist/components/style.js +16 -2
  76. package/dist/components/tag.js +2 -2
  77. package/dist/components/tooltip.js +2 -2
  78. package/dist/esm/{fade-BTgTGh6q.js → fade-CnaZvOTY.js} +1 -1
  79. package/dist/esm/{fullscreen-BTpZyXkc.js → fullscreen-BIFliVxG.js} +1 -1
  80. package/dist/esm/index-DXvE-U_j.js +4 -4
  81. package/dist/esm/{lazyload-BYoZ43fz.js → lazyload-D_Ju_KaC.js} +1 -1
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/nano-avatar_5.entry.js +7 -7
  84. package/dist/esm/nano-breadcrumb.entry.js +1 -1
  85. package/dist/esm/nano-collapsible-comparison.entry.js +1 -1
  86. package/dist/esm/nano-components.js +1 -1
  87. package/dist/esm/nano-cta.entry.js +2 -1
  88. package/dist/esm/{nano-data-table-DDBCyBmN.js → nano-data-table-CJbVKIuu.js} +6 -3
  89. package/dist/esm/nano-data-table.entry.js +1 -1
  90. package/dist/esm/nano-datalist_3.entry.js +8 -8
  91. package/dist/esm/nano-file-upload.entry.js +48 -29
  92. package/dist/esm/nano-footer.entry.js +4 -4
  93. package/dist/esm/nano-global-nav.entry.js +1 -1
  94. package/dist/esm/nano-icon_3.entry.js +2 -2
  95. package/dist/esm/nano-progress-bar.entry.js +4 -18
  96. package/dist/esm/nano-rating.entry.js +4 -4
  97. package/dist/esm/nano-resize-observe_2.entry.js +3 -3
  98. package/dist/esm/nano-slide.entry.js +1 -1
  99. package/dist/esm/{nano-slides-CvZxKg4X.js → nano-slides-B9KjZVqC.js} +7 -7
  100. package/dist/esm/nano-slides.entry.js +1 -1
  101. package/dist/esm/nano-sortable.entry.js +1 -1
  102. package/dist/esm/nano-spinner.entry.js +1 -1
  103. package/dist/esm/nano-sticker.entry.js +2 -2
  104. package/dist/esm/nano-tab-content.entry.js +2 -2
  105. package/dist/esm/nano-tab.entry.js +2 -2
  106. package/dist/esm/nano-table.entry.js +2 -2
  107. package/dist/esm/{page-dots-_tkpExQM.js → page-dots-BmS6HUrx.js} +1 -1
  108. package/dist/esm/{style-BrRDhFfF.js → style-xLaX004n.js} +16 -2
  109. package/dist/esm/{table.worker-webIEBZt.js → table.worker-CsTdjWrS.js} +1 -1
  110. package/dist/nano-components/{fade-BTgTGh6q.js → fade-CnaZvOTY.js} +1 -1
  111. package/dist/nano-components/{fullscreen-BTpZyXkc.js → fullscreen-BIFliVxG.js} +1 -1
  112. package/dist/nano-components/{lazyload-BYoZ43fz.js → lazyload-D_Ju_KaC.js} +1 -1
  113. package/dist/nano-components/nano-avatar_5.entry.js +1 -1
  114. package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
  115. package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
  116. package/dist/nano-components/nano-components.css +23 -19
  117. package/dist/nano-components/nano-components.esm.js +1 -1
  118. package/dist/nano-components/nano-cta.entry.js +1 -1
  119. package/dist/nano-components/{nano-data-table-DDBCyBmN.js → nano-data-table-CJbVKIuu.js} +1 -1
  120. package/dist/nano-components/nano-data-table.entry.js +1 -1
  121. package/dist/nano-components/nano-datalist_3.entry.js +1 -1
  122. package/dist/nano-components/nano-file-upload.entry.js +1 -1
  123. package/dist/nano-components/nano-footer.entry.js +1 -1
  124. package/dist/nano-components/nano-global-nav.entry.js +1 -1
  125. package/dist/nano-components/nano-icon_3.entry.js +1 -1
  126. package/dist/nano-components/nano-progress-bar.entry.js +1 -1
  127. package/dist/nano-components/nano-rating.entry.js +1 -1
  128. package/dist/nano-components/nano-resize-observe_2.entry.js +1 -1
  129. package/dist/nano-components/nano-slide.entry.js +1 -1
  130. package/dist/nano-components/{nano-slides-CvZxKg4X.js → nano-slides-B9KjZVqC.js} +3 -3
  131. package/dist/nano-components/nano-slides.entry.js +1 -1
  132. package/dist/nano-components/nano-sortable.entry.js +1 -1
  133. package/dist/nano-components/nano-spinner.entry.js +1 -1
  134. package/dist/nano-components/nano-sticker.entry.js +1 -1
  135. package/dist/nano-components/nano-tab-content.entry.js +1 -1
  136. package/dist/nano-components/nano-tab.entry.js +1 -1
  137. package/dist/nano-components/nano-table.entry.js +1 -1
  138. package/dist/nano-components/{page-dots-_tkpExQM.js → page-dots-BmS6HUrx.js} +1 -1
  139. package/dist/nano-components/style-xLaX004n.js +4 -0
  140. package/dist/nano-components/{table.worker-webIEBZt.js → table.worker-CsTdjWrS.js} +1 -1
  141. package/dist/style/components.css +1 -1
  142. package/dist/style/components.css.map +1 -1
  143. package/dist/style/core.css +1 -1
  144. package/dist/style/core.css.map +1 -1
  145. package/dist/style/dark.css +1 -1
  146. package/dist/style/dark.css.map +1 -1
  147. package/dist/style/light.css +1 -1
  148. package/dist/style/light.css.map +1 -1
  149. package/dist/style/nano.css +1 -1
  150. package/dist/style/nano.css.map +1 -1
  151. package/dist/types/components/file-upload/file-upload.d.ts +14 -9
  152. package/dist/types/components/progress-bar/progress-bar.d.ts +6 -13
  153. package/dist/types/components.d.ts +43 -53
  154. package/docs-json.json +111 -172
  155. package/docs-vscode.json +16 -9
  156. package/hydrate/index.js +132 -110
  157. package/hydrate/index.mjs +132 -110
  158. package/package.json +3 -3
  159. package/dist/collection/components/file-upload/file-upload-list.js +0 -3
  160. package/dist/nano-components/style-BrRDhFfF.js +0 -4
  161. package/dist/types/components/file-upload/file-upload-list.d.ts +0 -0
@@ -1,22 +1,15 @@
1
1
  /**
2
2
  * Shows the status of an ongoing operation.
3
3
  *
4
- * @version 3.0.0
5
- * @status stable
4
+ * @version 8.0.0
5
+ * @status new
6
+ * @type CSS Only
6
7
  *
7
- * @slot - A label to show inside the indicator.
8
- *
9
- * @part base - The component's base wrapper.
10
- * @part indicator - The progress bar indicator.
11
- * @part label - The progress bar label.
8
+ * @slot - Used for mandatory `<progress>` element and optional `<label>`
12
9
  */
13
10
  export declare class ProgressBar {
14
- host: HTMLNanoProgressBarElement;
15
- /** The progress bar's percentage, 0 to 100. */
16
- value: number;
17
- /** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */
18
- indeterminate: boolean;
19
11
  /** Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot. */
20
12
  showPercent: boolean;
21
- render(): any;
13
+ /** The height of the progress-bar */
14
+ size: 'small' | 'medium' | 'large';
22
15
  }
@@ -1394,10 +1394,9 @@ export namespace Components {
1394
1394
  "validationState": ValidationState[];
1395
1395
  }
1396
1396
  /**
1397
- * A better UI experience for `input type="file"` form controls.
1398
- * - Drag and Drop
1399
- * - Validation options
1400
- * - Preview and manage multiple files
1397
+ * Enables the selection of files for upload.
1398
+ * @version 1.0.0
1399
+ * @status stable
1401
1400
  */
1402
1401
  interface NanoFileUpload {
1403
1402
  /**
@@ -1412,7 +1411,7 @@ export namespace Components {
1412
1411
  * If `true`, a clear icon will appear in the input when there is a value. Clicking it clears the input. Only used within single file uploads.
1413
1412
  * @default false
1414
1413
  */
1415
- "clearInput": boolean;
1414
+ "clearable": boolean;
1416
1415
  /**
1417
1416
  * If `true`, the user cannot interact with the select.
1418
1417
  * @default false
@@ -1438,9 +1437,9 @@ export namespace Components {
1438
1437
  /**
1439
1438
  * This will be true when the control is in an invalid state. Validity is determined by the `required` prop. Or if custom validity message is set.
1440
1439
  * @readonly
1441
- * @default false
1440
+ * @default null
1442
1441
  */
1443
- "invalid": boolean;
1442
+ "invalid": any;
1444
1443
  /**
1445
1444
  * String to place within a label element.
1446
1445
  */
@@ -1451,7 +1450,7 @@ export namespace Components {
1451
1450
  */
1452
1451
  "maxFileSize": number;
1453
1452
  /**
1454
- * The maximum file size allowed per file (bytes).
1453
+ * The maximum number of files that can be selected. Defaults to 1
1455
1454
  * @default 1
1456
1455
  */
1457
1456
  "maxFiles": number;
@@ -1461,7 +1460,7 @@ export namespace Components {
1461
1460
  "name": string;
1462
1461
  /**
1463
1462
  * Placeholder only used within single file uploads.
1464
- * @default 'Choose a file...'
1463
+ * @default 'Choose a file'
1465
1464
  */
1466
1465
  "placeholder": string;
1467
1466
  /**
@@ -1491,7 +1490,7 @@ export namespace Components {
1491
1490
  "showInlineError": boolean;
1492
1491
  /**
1493
1492
  * When should the field perform validation
1494
- * @default 'submit'
1493
+ * @default 'submitThenDirty'
1495
1494
  */
1496
1495
  "validateOn"?: 'dirty' | 'submit' | 'submitThenDirty';
1497
1496
  /**
@@ -2396,25 +2395,21 @@ export namespace Components {
2396
2395
  }
2397
2396
  /**
2398
2397
  * Shows the status of an ongoing operation.
2399
- * @version 3.0.0
2400
- * @status stable
2398
+ * @version 8.0.0
2399
+ * @status new
2400
+ * @type CSS Only
2401
2401
  */
2402
2402
  interface NanoProgressBar {
2403
- /**
2404
- * When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
2405
- * @default false
2406
- */
2407
- "indeterminate": boolean;
2408
2403
  /**
2409
2404
  * Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot.
2410
2405
  * @default false
2411
2406
  */
2412
2407
  "showPercent": boolean;
2413
2408
  /**
2414
- * The progress bar's percentage, 0 to 100.
2415
- * @default 0
2409
+ * The height of the progress-bar
2410
+ * @default 'medium'
2416
2411
  */
2417
- "value": number;
2412
+ "size": 'small' | 'medium' | 'large';
2418
2413
  }
2419
2414
  /**
2420
2415
  * Ranges allow the user to select a value within a given range using a slider.
@@ -4037,10 +4032,9 @@ declare global {
4037
4032
  "nanoValidate": ControlValidityEventDetail;
4038
4033
  }
4039
4034
  /**
4040
- * A better UI experience for `input type="file"` form controls.
4041
- * - Drag and Drop
4042
- * - Validation options
4043
- * - Preview and manage multiple files
4035
+ * Enables the selection of files for upload.
4036
+ * @version 1.0.0
4037
+ * @status stable
4044
4038
  */
4045
4039
  interface HTMLNanoFileUploadElement extends Components.NanoFileUpload, HTMLStencilElement {
4046
4040
  addEventListener<K extends keyof HTMLNanoFileUploadElementEventMap>(type: K, listener: (this: HTMLNanoFileUploadElement, ev: NanoFileUploadCustomEvent<HTMLNanoFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4385,8 +4379,9 @@ declare global {
4385
4379
  };
4386
4380
  /**
4387
4381
  * Shows the status of an ongoing operation.
4388
- * @version 3.0.0
4389
- * @status stable
4382
+ * @version 8.0.0
4383
+ * @status new
4384
+ * @type CSS Only
4390
4385
  */
4391
4386
  interface HTMLNanoProgressBarElement extends Components.NanoProgressBar, HTMLStencilElement {
4392
4387
  }
@@ -6233,10 +6228,9 @@ declare namespace LocalJSX {
6233
6228
  "validationState"?: ValidationState[];
6234
6229
  }
6235
6230
  /**
6236
- * A better UI experience for `input type="file"` form controls.
6237
- * - Drag and Drop
6238
- * - Validation options
6239
- * - Preview and manage multiple files
6231
+ * Enables the selection of files for upload.
6232
+ * @version 1.0.0
6233
+ * @status stable
6240
6234
  */
6241
6235
  interface NanoFileUpload {
6242
6236
  /**
@@ -6251,7 +6245,7 @@ declare namespace LocalJSX {
6251
6245
  * If `true`, a clear icon will appear in the input when there is a value. Clicking it clears the input. Only used within single file uploads.
6252
6246
  * @default false
6253
6247
  */
6254
- "clearInput"?: boolean;
6248
+ "clearable"?: boolean;
6255
6249
  /**
6256
6250
  * If `true`, the user cannot interact with the select.
6257
6251
  * @default false
@@ -6273,20 +6267,20 @@ declare namespace LocalJSX {
6273
6267
  /**
6274
6268
  * This will be true when the control is in an invalid state. Validity is determined by the `required` prop. Or if custom validity message is set.
6275
6269
  * @readonly
6276
- * @default false
6270
+ * @default null
6277
6271
  */
6278
- "invalid"?: boolean;
6272
+ "invalid"?: any;
6279
6273
  /**
6280
6274
  * String to place within a label element.
6281
6275
  */
6282
- "label": string;
6276
+ "label"?: string;
6283
6277
  /**
6284
6278
  * The maximum file size allowed per file (Megabytes)
6285
6279
  * @default 1
6286
6280
  */
6287
6281
  "maxFileSize"?: number;
6288
6282
  /**
6289
- * The maximum file size allowed per file (bytes).
6283
+ * The maximum number of files that can be selected. Defaults to 1
6290
6284
  * @default 1
6291
6285
  */
6292
6286
  "maxFiles"?: number;
@@ -6313,7 +6307,7 @@ declare namespace LocalJSX {
6313
6307
  "onNanoValidate"?: (event: NanoFileUploadCustomEvent<ControlValidityEventDetail>) => void;
6314
6308
  /**
6315
6309
  * Placeholder only used within single file uploads.
6316
- * @default 'Choose a file...'
6310
+ * @default 'Choose a file'
6317
6311
  */
6318
6312
  "placeholder"?: string;
6319
6313
  /**
@@ -6328,7 +6322,7 @@ declare namespace LocalJSX {
6328
6322
  "showInlineError"?: boolean;
6329
6323
  /**
6330
6324
  * When should the field perform validation
6331
- * @default 'submit'
6325
+ * @default 'submitThenDirty'
6332
6326
  */
6333
6327
  "validateOn"?: 'dirty' | 'submit' | 'submitThenDirty';
6334
6328
  /**
@@ -7272,25 +7266,21 @@ declare namespace LocalJSX {
7272
7266
  }
7273
7267
  /**
7274
7268
  * Shows the status of an ongoing operation.
7275
- * @version 3.0.0
7276
- * @status stable
7269
+ * @version 8.0.0
7270
+ * @status new
7271
+ * @type CSS Only
7277
7272
  */
7278
7273
  interface NanoProgressBar {
7279
- /**
7280
- * When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
7281
- * @default false
7282
- */
7283
- "indeterminate"?: boolean;
7284
7274
  /**
7285
7275
  * Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot.
7286
7276
  * @default false
7287
7277
  */
7288
7278
  "showPercent"?: boolean;
7289
7279
  /**
7290
- * The progress bar's percentage, 0 to 100.
7291
- * @default 0
7280
+ * The height of the progress-bar
7281
+ * @default 'medium'
7292
7282
  */
7293
- "value"?: number;
7283
+ "size"?: 'small' | 'medium' | 'large';
7294
7284
  }
7295
7285
  /**
7296
7286
  * Ranges allow the user to select a value within a given range using a slider.
@@ -8450,10 +8440,9 @@ declare module "@stencil/core" {
8450
8440
  */
8451
8441
  "nano-field-validator": LocalJSX.NanoFieldValidator & JSXBase.HTMLAttributes<HTMLNanoFieldValidatorElement>;
8452
8442
  /**
8453
- * A better UI experience for `input type="file"` form controls.
8454
- * - Drag and Drop
8455
- * - Validation options
8456
- * - Preview and manage multiple files
8443
+ * Enables the selection of files for upload.
8444
+ * @version 1.0.0
8445
+ * @status stable
8457
8446
  */
8458
8447
  "nano-file-upload": LocalJSX.NanoFileUpload & JSXBase.HTMLAttributes<HTMLNanoFileUploadElement>;
8459
8448
  /**
@@ -8572,8 +8561,9 @@ declare module "@stencil/core" {
8572
8561
  "nano-option": LocalJSX.NanoOption & JSXBase.HTMLAttributes<HTMLNanoOptionElement>;
8573
8562
  /**
8574
8563
  * Shows the status of an ongoing operation.
8575
- * @version 3.0.0
8576
- * @status stable
8564
+ * @version 8.0.0
8565
+ * @status new
8566
+ * @type CSS Only
8577
8567
  */
8578
8568
  "nano-progress-bar": LocalJSX.NanoProgressBar & JSXBase.HTMLAttributes<HTMLNanoProgressBarElement>;
8579
8569
  /**