@sb1/ffe-datepicker 11.0.4 → 11.0.5

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 +30 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -10,6 +10,8 @@ npm install --save @sb1/ffe-datepicker
10
10
 
11
11
  ## Usage
12
12
 
13
+ Full documentation on datepicker usage is available at https://design.sparebank1.no/komponenter/skjemaelementer/#datepicker.
14
+
13
15
  The styles for this package can be used in 3 different ways depending on what you want.
14
16
  For All styles or Only date input you will need the `@sb1/ffe-form` package in your project.
15
17
 
@@ -42,9 +44,9 @@ Example HTML stucture with classes. (Aria-tags and other attributes have been re
42
44
 
43
45
  ```html
44
46
  <div class="ffe-dateinput">
45
- <input class="ffe-dateinput__field ffe-input-field" type="text">
47
+ <input class="ffe-dateinput__field ffe-input-field" type="text" />
46
48
  <svg class="ffe-dateinput__icon">
47
- <path .../>
49
+ <path ... />
48
50
  </svg>
49
51
  </div>
50
52
  ```
@@ -63,7 +65,7 @@ Example HTML stucture with classes. (Aria-tags and other attributes have been re
63
65
  <div class="ffe-calendar__header-inner-wrapper">
64
66
  <button class="ffe-calendar__month-nav ffe-calendar__previous">
65
67
  <svg class="ffe-calendar__icon-prev">
66
- <path .../>
68
+ <path ... />
67
69
  </svg>
68
70
  </button>
69
71
  <header class="ffe-calendar__title">
@@ -74,7 +76,7 @@ Example HTML stucture with classes. (Aria-tags and other attributes have been re
74
76
  </header>
75
77
  <button class="ffe-calendar__month-nav ffe-calendar__next">
76
78
  <svg class="ffe-calendar__icon-next">
77
- <path .../>
79
+ <path ... />
78
80
  </svg>
79
81
  </button>
80
82
  </div>
@@ -145,3 +147,27 @@ Example HTML stucture with classes. (Aria-tags and other attributes have been re
145
147
  </table>
146
148
  </div>
147
149
  ```
150
+
151
+ ## Theming with CSS custom properties
152
+
153
+ 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`.
154
+
155
+ 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`:
156
+
157
+ ```css
158
+ @import '~@sb1/ffe-core/less/theme';
159
+ ```
160
+
161
+ ## Development
162
+
163
+ To start a local development server, run the following from the designsystem root folder:
164
+
165
+ ```bash
166
+ npm install
167
+ npm run build
168
+ npm start
169
+ ```
170
+
171
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
172
+
173
+ 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-datepicker",
3
- "version": "11.0.4",
3
+ "version": "11.0.5",
4
4
  "description": "FFE Datepicker",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@sb1/ffe-core": "^27.0.0",
20
- "@sb1/ffe-form": "^23.0.4"
20
+ "@sb1/ffe-form": "^23.0.5"
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": "b7655b0f74114c758119405511df2b0ed8b1b458"
29
29
  }