@entur/datepicker 8.0.11 → 8.0.13

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/dist/styles.css CHANGED
@@ -1,67 +1,29 @@
1
- :root {
2
- --eds-datepicker: 1;
3
- }
4
1
  /* DO NOT CHANGE!*/
5
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
- .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
7
- margin-left: 1rem;
8
- }
9
- .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
10
- border-color: transparent;
11
- box-shadow: none;
12
- }
13
- .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
14
- border-color: transparent;
15
- box-shadow: none;
16
- }
17
- .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
18
- background: none;
3
+ [dir="ltr"] .eds-date-and-time-field__segment {
4
+ text-align: right;
19
5
  }
20
- .eds-datefield .eds-form-control__append--tooltip {
21
- margin-top: 0.75rem;
22
- margin-right: -0.25rem;
6
+ [dir="rtl"] .eds-date-and-time-field__segment {
7
+ text-align: left;
23
8
  }
24
- /* DO NOT CHANGE!*/
25
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
26
- .eds-datepicker {
27
- position: relative;
28
- width: -moz-fit-content;
29
- width: fit-content;
9
+ .eds-date-and-time-field__segment {
10
+ margin-top: 1rem;
11
+ padding: 0 2px;
12
+ font-feature-settings: "tnum";
13
+ font-variant-numeric: tabular-nums;
30
14
  }
31
- .eds-datepicker__open-calendar-button {
32
- position: absolute;
33
- right: 0.5rem;
34
- top: 0.45rem;
15
+ .eds-date-and-time-field__segment--placeholder {
16
+ color: #646464;
35
17
  }
36
- .eds-datepicker__open-calendar-button.eds-icon-button {
37
- color: #181c56;
18
+ .eds-date-and-time-field__segment--dot-separator {
19
+ margin-left: -0.1rem;
20
+ margin-right: -0.2rem;
38
21
  }
39
- .eds-datepicker__open-calendar-button.eds-icon-button:hover {
22
+ .eds-date-and-time-field__segment:focus {
40
23
  background-color: #656782;
41
24
  color: #ffffff;
42
- }
43
- .eds-datepicker__open-calendar-button.eds-icon-button:focus {
44
- border: 0.0625rem solid #181c56;
45
- }
46
- .eds-datepicker__open-calendar-button.eds-icon-button:active {
47
- background-color: #8285a8;
48
- }
49
- .eds-datepicker__datefield {
50
- padding-right: 4rem;
51
- }
52
- .eds-datepicker__datefield--disabled {
53
- padding-right: 1rem;
54
- }
55
- .eds-datepicker__datefield__wrapper {
56
- position: relative;
57
- }
58
- .eds-datepicker__calendar-modal.eds-modal__content {
59
- padding: 0;
60
- padding: initial;
61
- width: inherit;
62
- background-color: transparent;
63
- background-color: initial;
64
- overflow: scroll;
25
+ outline: none;
26
+ border-radius: 0.0625rem;
65
27
  }
66
28
  /* DO NOT CHANGE!*/
67
29
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -190,6 +152,66 @@
190
152
  .eds-contrast .eds-datepicker__calendar__grid__cell--today {
191
153
  border-bottom: 2px solid #ff5959;
192
154
  }
155
+ .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
156
+ margin-left: 1rem;
157
+ }
158
+ .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
159
+ border-color: transparent;
160
+ box-shadow: none;
161
+ }
162
+ .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
163
+ border-color: transparent;
164
+ box-shadow: none;
165
+ }
166
+ .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
167
+ background: none;
168
+ }
169
+ .eds-datefield .eds-form-control__append--tooltip {
170
+ margin-top: 0.75rem;
171
+ margin-right: -0.25rem;
172
+ }
173
+ /* DO NOT CHANGE!*/
174
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
175
+ .eds-datepicker {
176
+ position: relative;
177
+ width: -moz-fit-content;
178
+ width: fit-content;
179
+ }
180
+ .eds-datepicker__open-calendar-button {
181
+ position: absolute;
182
+ right: 0.5rem;
183
+ top: 0.45rem;
184
+ }
185
+ .eds-datepicker__open-calendar-button.eds-icon-button {
186
+ color: #181c56;
187
+ }
188
+ .eds-datepicker__open-calendar-button.eds-icon-button:hover {
189
+ background-color: #656782;
190
+ color: #ffffff;
191
+ }
192
+ .eds-datepicker__open-calendar-button.eds-icon-button:focus {
193
+ border: 0.0625rem solid #181c56;
194
+ }
195
+ .eds-datepicker__open-calendar-button.eds-icon-button:active {
196
+ background-color: #8285a8;
197
+ }
198
+ .eds-datepicker__datefield {
199
+ padding-right: 4rem;
200
+ }
201
+ .eds-datepicker__datefield--disabled {
202
+ padding-right: 1rem;
203
+ }
204
+ .eds-datepicker__datefield__wrapper {
205
+ position: relative;
206
+ }
207
+ .eds-datepicker__calendar-modal.eds-modal__content {
208
+ padding: 0;
209
+ padding: initial;
210
+ width: inherit;
211
+ background-color: transparent;
212
+ background-color: initial;
213
+ overflow: scroll;
214
+ }
193
215
  /* DO NOT CHANGE!*/
194
216
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
195
217
  .eds-timepicker__wrapper {
@@ -238,36 +260,10 @@
238
260
  position: absolute;
239
261
  top: 3.5rem;
240
262
  }
241
- /* DO NOT CHANGE!*/
242
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
243
263
  .eds-native-timepicker input[type=time]::-webkit-calendar-picker-indicator {
244
264
  position: relative;
245
265
  top: -0.5rem;
246
266
  }
247
- /* DO NOT CHANGE!*/
248
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
249
- [dir="ltr"] .eds-date-and-time-field__segment {
250
- text-align: right;
251
- }
252
- [dir="rtl"] .eds-date-and-time-field__segment {
253
- text-align: left;
254
- }
255
- .eds-date-and-time-field__segment {
256
- margin-top: 1rem;
257
- padding: 0 2px;
258
- font-feature-settings: "tnum";
259
- font-variant-numeric: tabular-nums;
260
- }
261
- .eds-date-and-time-field__segment--placeholder {
262
- color: #646464;
263
- }
264
- .eds-date-and-time-field__segment--dot-separator {
265
- margin-left: -0.1rem;
266
- margin-right: -0.2rem;
267
- }
268
- .eds-date-and-time-field__segment:focus {
269
- background-color: #656782;
270
- color: #ffffff;
271
- outline: none;
272
- border-radius: 0.0625rem;
267
+ :root {
268
+ --eds-datepicker: 1;
273
269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/datepicker",
3
- "version": "8.0.11",
3
+ "version": "8.0.13",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/datepicker.esm.js",
@@ -27,15 +27,15 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.68",
31
- "@entur/button": "^3.1.0",
32
- "@entur/form": "^7.0.15",
33
- "@entur/icons": "^6.4.2",
34
- "@entur/modal": "^1.7.9",
30
+ "@entur/a11y": "^0.2.70",
31
+ "@entur/button": "^3.1.2",
32
+ "@entur/form": "^7.0.17",
33
+ "@entur/icons": "^6.5.0",
34
+ "@entur/modal": "^1.7.11",
35
35
  "@entur/tokens": "^3.10.0",
36
- "@entur/tooltip": "^2.6.25",
37
- "@entur/typography": "^1.8.6",
38
- "@entur/utils": "^0.9.3",
36
+ "@entur/tooltip": "^2.6.27",
37
+ "@entur/typography": "^1.8.8",
38
+ "@entur/utils": "^0.9.5",
39
39
  "@floating-ui/react-dom": "^1.0.0",
40
40
  "@internationalized/date": "^3.0.2",
41
41
  "@react-aria/button": "^3.6.4",
@@ -52,5 +52,5 @@
52
52
  "node": "16.17.0",
53
53
  "yarn": "1.22.19"
54
54
  },
55
- "gitHead": "5fcad4b449082b80b796ab52e68f178977f2eba7"
55
+ "gitHead": "9b8d4e5d2e6f7a74256371e30ebef43e046c9338"
56
56
  }