@sb1/ffe-file-upload 8.0.4 → 8.0.6

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 (2) hide show
  1. package/README.md +26 -6
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -6,16 +6,36 @@
6
6
  npm install --save @sb1/ffe-file-upload
7
7
  ```
8
8
 
9
- ## Browser Support
10
-
11
- See the current status on browser support for CSS Grid on [caniuse.com](https://caniuse.com/#feat=css-grid).
12
-
13
- At moment of writing (09.10.2019), all commonly used browsers support CSS Grid (with IE10+).
14
-
15
9
  ## Usage
16
10
 
11
+ Full documentation on file upload usage is available at https://design.sparebank1.no/komponenter/skjemaelementer/#fileupload.
12
+
17
13
  ```less
18
14
  @import 'path/to/node_modules/@sb1/ffe-file.upload/less/ffe-file-upload.less';
19
15
  ```
20
16
 
21
17
  See also `@sb1/ffe-file-upload-react`.
18
+
19
+ ## Theming with CSS custom properties
20
+
21
+ In order to support theming of components, this package contains styling that depends on a set of custom properties, defined in `less/theme.less`. These properties in turn depend on a base theme defined in `ffe-core`.
22
+
23
+ If your project uses the `ffe-core`, you're probably good to go. If not, make sure to import the core properties in `theme.less`:
24
+
25
+ ```css
26
+ @import '~@sb1/ffe-core/less/theme';
27
+ ```
28
+
29
+ ## Development
30
+
31
+ To start a local development server, run the following from the designsystem root folder:
32
+
33
+ ```bash
34
+ npm install
35
+ npm run build
36
+ npm start
37
+ ```
38
+
39
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
40
+
41
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-file-upload",
3
- "version": "8.0.4",
3
+ "version": "8.0.6",
4
4
  "description": "File upload module",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -16,8 +16,8 @@
16
16
  "test": "npm run lint"
17
17
  },
18
18
  "dependencies": {
19
- "@sb1/ffe-core": "^27.0.0",
20
- "@sb1/ffe-form": "^23.0.4"
19
+ "@sb1/ffe-core": "^27.0.1",
20
+ "@sb1/ffe-form": "^23.0.6"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@sb1/ffe-buildtool": "^0.5.0"
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "af7fc1a32630d5717ffbc8f50f339ba697c73130"
28
+ "gitHead": "1ab898e744977e4cb4db1bee9b65369a0deeef9a"
29
29
  }