@entur/datepicker 9.0.3 → 9.1.0-RC.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.
@@ -29,3 +29,7 @@ export declare function timeOrDateValueToNativeDate(value: TimeValue | DateValue
29
29
  export declare const createCalendar: (identifier?: string) => Calendar;
30
30
  export declare const ariaLabelIfNorwegian: (norwegianAriaLabel: string, locale: string, propsCollection: any) => any;
31
31
  export declare const lastMillisecondOfDay: (dateValue: DateValue) => CalendarDateTime;
32
+ export declare const convertValueToType: ({ value, type, }: {
33
+ value: DateValue | null;
34
+ type: 'CalendarDate' | 'CalendarDateTime' | 'ZonedDateTime';
35
+ }) => DateValue | null;
package/dist/styles.css CHANGED
@@ -1,5 +1,93 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ [dir="ltr"] .eds-date-and-time-field__segment {
4
+ text-align: right;
5
+ }
6
+ [dir="rtl"] .eds-date-and-time-field__segment {
7
+ text-align: left;
8
+ }
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;
14
+ }
15
+ .eds-date-and-time-field__segment--placeholder {
16
+ color: #646464;
17
+ }
18
+ .eds-date-and-time-field__segment--dot-separator {
19
+ margin-left: -0.1rem;
20
+ margin-right: -0.2rem;
21
+ }
22
+ .eds-date-and-time-field__segment:focus {
23
+ background-color: #656782;
24
+ color: #ffffff;
25
+ outline: transparent;
26
+ border-radius: 0.0625rem;
27
+ }
28
+ .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
29
+ margin-left: 1rem;
30
+ }
31
+ .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
32
+ border-color: transparent;
33
+ box-shadow: none;
34
+ }
35
+ .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
36
+ border-color: transparent;
37
+ box-shadow: none;
38
+ }
39
+ .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
40
+ background: none;
41
+ }
42
+ .eds-datefield .eds-form-control__append--tooltip {
43
+ margin-top: 0.75rem;
44
+ margin-right: -0.25rem;
45
+ }
46
+ /* DO NOT CHANGE!*/
47
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
48
+ .eds-datepicker {
49
+ position: relative;
50
+ width: -moz-fit-content;
51
+ width: fit-content;
52
+ height: -moz-fit-content;
53
+ height: fit-content;
54
+ }
55
+ .eds-datepicker__open-calendar-button {
56
+ position: absolute;
57
+ right: 0.5rem;
58
+ top: 0.45rem;
59
+ }
60
+ .eds-datepicker__open-calendar-button.eds-icon-button {
61
+ color: #181c56;
62
+ }
63
+ .eds-datepicker__open-calendar-button.eds-icon-button:hover {
64
+ background-color: #656782;
65
+ color: #ffffff;
66
+ }
67
+ .eds-datepicker__open-calendar-button.eds-icon-button:focus {
68
+ border: 0.0625rem solid #181c56;
69
+ }
70
+ .eds-datepicker__open-calendar-button.eds-icon-button:active {
71
+ background-color: #8285a8;
72
+ }
73
+ .eds-datepicker__datefield {
74
+ padding-right: 4rem;
75
+ }
76
+ .eds-datepicker__datefield--disabled {
77
+ padding-right: 1rem;
78
+ }
79
+ .eds-datepicker__datefield__wrapper {
80
+ position: relative;
81
+ }
82
+ .eds-datepicker__calendar-modal.eds-modal__content {
83
+ padding: 0;
84
+ padding: initial;
85
+ width: inherit;
86
+ background-color: transparent;
87
+ background-color: initial;
88
+ }
89
+ /* DO NOT CHANGE!*/
90
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
91
  .eds-datepicker__calendar,
4
92
  .eds-contrast .eds-datepicker__calendar {
5
93
  width: -moz-fit-content;
@@ -127,94 +215,6 @@
127
215
  }
128
216
  /* DO NOT CHANGE!*/
129
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
130
- [dir="ltr"] .eds-date-and-time-field__segment {
131
- text-align: right;
132
- }
133
- [dir="rtl"] .eds-date-and-time-field__segment {
134
- text-align: left;
135
- }
136
- .eds-date-and-time-field__segment {
137
- margin-top: 1rem;
138
- padding: 0 2px;
139
- font-feature-settings: "tnum";
140
- font-variant-numeric: tabular-nums;
141
- }
142
- .eds-date-and-time-field__segment--placeholder {
143
- color: #646464;
144
- }
145
- .eds-date-and-time-field__segment--dot-separator {
146
- margin-left: -0.1rem;
147
- margin-right: -0.2rem;
148
- }
149
- .eds-date-and-time-field__segment:focus {
150
- background-color: #656782;
151
- color: #ffffff;
152
- outline: transparent;
153
- border-radius: 0.0625rem;
154
- }
155
- /* DO NOT CHANGE!*/
156
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
- .eds-datepicker {
158
- position: relative;
159
- width: -moz-fit-content;
160
- width: fit-content;
161
- height: -moz-fit-content;
162
- height: fit-content;
163
- }
164
- .eds-datepicker__open-calendar-button {
165
- position: absolute;
166
- right: 0.5rem;
167
- top: 0.45rem;
168
- }
169
- .eds-datepicker__open-calendar-button.eds-icon-button {
170
- color: #181c56;
171
- }
172
- .eds-datepicker__open-calendar-button.eds-icon-button:hover {
173
- background-color: #656782;
174
- color: #ffffff;
175
- }
176
- .eds-datepicker__open-calendar-button.eds-icon-button:focus {
177
- border: 0.0625rem solid #181c56;
178
- }
179
- .eds-datepicker__open-calendar-button.eds-icon-button:active {
180
- background-color: #8285a8;
181
- }
182
- .eds-datepicker__datefield {
183
- padding-right: 4rem;
184
- }
185
- .eds-datepicker__datefield--disabled {
186
- padding-right: 1rem;
187
- }
188
- .eds-datepicker__datefield__wrapper {
189
- position: relative;
190
- }
191
- .eds-datepicker__calendar-modal.eds-modal__content {
192
- padding: 0;
193
- padding: initial;
194
- width: inherit;
195
- background-color: transparent;
196
- background-color: initial;
197
- }
198
- .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
199
- margin-left: 1rem;
200
- }
201
- .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
202
- border-color: transparent;
203
- box-shadow: none;
204
- }
205
- .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
206
- border-color: transparent;
207
- box-shadow: none;
208
- }
209
- .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
210
- background: none;
211
- }
212
- .eds-datefield .eds-form-control__append--tooltip {
213
- margin-top: 0.75rem;
214
- margin-right: -0.25rem;
215
- }
216
- /* DO NOT CHANGE!*/
217
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
218
218
  .eds-timepicker__wrapper {
219
219
  position: relative;
220
220
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/datepicker",
3
- "version": "9.0.3",
3
+ "version": "9.1.0-RC.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/datepicker.esm.js",
@@ -27,14 +27,14 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.72",
31
- "@entur/button": "^3.2.3",
32
- "@entur/form": "^7.0.30",
33
- "@entur/icons": "^6.13.0",
34
- "@entur/modal": "^1.7.23",
35
- "@entur/tokens": "^3.11.1",
36
- "@entur/tooltip": "^2.6.39",
37
- "@entur/typography": "^1.8.18",
30
+ "@entur/a11y": "^0.2.73-RC.0",
31
+ "@entur/button": "^3.2.4-RC.0",
32
+ "@entur/form": "^7.0.31-RC.0",
33
+ "@entur/icons": "^6.13.1-RC.0",
34
+ "@entur/modal": "^1.7.24-RC.0",
35
+ "@entur/tokens": "^3.11.2-RC.0",
36
+ "@entur/tooltip": "^2.6.40-RC.0",
37
+ "@entur/typography": "^1.8.19-RC.0",
38
38
  "@entur/utils": "^0.9.5",
39
39
  "@floating-ui/react-dom": "^1.0.0",
40
40
  "@internationalized/date": "^3.4.0",
@@ -48,5 +48,5 @@
48
48
  "classnames": "^2.3.1",
49
49
  "react-focus-lock": "^2.9.1"
50
50
  },
51
- "gitHead": "298374e622bca3ae3bbb7226bdd94890be5f82c8"
51
+ "gitHead": "ffc1bbef705504dd4e8df8abccc435dd01513ce3"
52
52
  }