@brightspace-ui/labs 2.32.0 → 2.33.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.
package/package.json CHANGED
@@ -114,5 +114,5 @@
114
114
  "resize-observer-polyfill": "^1",
115
115
  "webvtt-parser": "^2.1.2"
116
116
  },
117
- "version": "2.32.0"
117
+ "version": "2.33.0"
118
118
  }
@@ -1,15 +1,27 @@
1
1
  # File Uploader
2
- Lit component for uploading files with drag and drop capability. This component does not perform the actual uploading work, it simply provides visual cues and exposes an event when files have been uploaded.
2
+ Lit component for uploading files with drag and drop capability. This component does not perform the actual uploading work - it simply provides visual cues and exposes an event when files have been uploaded.
3
3
 
4
+ An official component for this is in progress. Please reach out before adding a new usage of this labs version!
4
5
 
5
- ## Usage
6
+ ## File Uploader [d2l-labs-file-uploader]
6
7
 
8
+ <!-- docs: demo code -->
7
9
  ```html
8
- <head>
9
- <script type="module" src="@brightspace-ui/labs/components/file-uploader.js"></script>
10
- </head>
10
+ <script type="module">
11
+ import '@brightspace-ui/labs/components/file-uploader.js';
12
+ </script>
13
+ <d2l-labs-file-uploader label="profile picture"></d2l-labs-file-uploader>
14
+ ```
15
+
16
+ <!-- docs: demo code -->
17
+ ```html
18
+ <script type="module">
19
+ import '@brightspace-ui/labs/components/file-uploader.js';
20
+ </script>
21
+ <d2l-labs-file-uploader multiple label="assignments"></d2l-labs-file-uploader>
11
22
  ```
12
23
 
24
+ <!-- docs: start hidden content -->
13
25
  ### Basic Usage with Accessible Label
14
26
 
15
27
  It's important to always provide an accessible label which describes the purpose of the uploader using the `label` attribute. The label will be hidden visually but associated with the upload input for those using assistive technologies such as a screen reader.
@@ -81,3 +93,4 @@ document.getElementById('my-uploader')
81
93
  });
82
94
  </script>
83
95
  ```
96
+ <!-- docs: end hidden content -->