@entur/datepicker 9.0.4-beta.0 → 9.1.0-RC.1

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,21 +1,3 @@
1
- .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
2
- margin-left: 1rem;
3
- }
4
- .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
5
- border-color: transparent;
6
- box-shadow: none;
7
- }
8
- .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
9
- border-color: transparent;
10
- box-shadow: none;
11
- }
12
- .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
13
- background: none;
14
- }
15
- .eds-datefield .eds-form-control__append--tooltip {
16
- margin-top: 0.75rem;
17
- margin-right: -0.25rem;
18
- }
19
1
  /* DO NOT CHANGE!*/
20
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
21
3
  .eds-datepicker__calendar,
@@ -145,6 +127,33 @@
145
127
  }
146
128
  /* DO NOT CHANGE!*/
147
129
  /* 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. */
148
157
  .eds-datepicker {
149
158
  position: relative;
150
159
  width: -moz-fit-content;
@@ -186,32 +195,23 @@
186
195
  background-color: transparent;
187
196
  background-color: initial;
188
197
  }
189
- /* DO NOT CHANGE!*/
190
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
191
- [dir="ltr"] .eds-date-and-time-field__segment {
192
- text-align: right;
193
- }
194
- [dir="rtl"] .eds-date-and-time-field__segment {
195
- text-align: left;
198
+ .eds-datefield div:first-of-type.eds-date-and-time-field__segment {
199
+ margin-left: 1rem;
196
200
  }
197
- .eds-date-and-time-field__segment {
198
- margin-top: 1rem;
199
- padding: 0 2px;
200
- font-feature-settings: "tnum";
201
- font-variant-numeric: tabular-nums;
201
+ .eds-datefield.eds-form-control-wrapper--disabled[focus-within] {
202
+ border-color: transparent;
203
+ box-shadow: none;
202
204
  }
203
- .eds-date-and-time-field__segment--placeholder {
204
- color: #646464;
205
+ .eds-datefield.eds-form-control-wrapper--disabled:focus-within {
206
+ border-color: transparent;
207
+ box-shadow: none;
205
208
  }
206
- .eds-date-and-time-field__segment--dot-separator {
207
- margin-left: -0.1rem;
208
- margin-right: -0.2rem;
209
+ .eds-datefield.eds-form-control-wrapper--disabled .eds-date-and-time-field__segment:focus {
210
+ background: none;
209
211
  }
210
- .eds-date-and-time-field__segment:focus {
211
- background-color: #656782;
212
- color: #ffffff;
213
- outline: transparent;
214
- border-radius: 0.0625rem;
212
+ .eds-datefield .eds-form-control__append--tooltip {
213
+ margin-top: 0.75rem;
214
+ margin-right: -0.25rem;
215
215
  }
216
216
  /* DO NOT CHANGE!*/
217
217
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/datepicker",
3
- "version": "9.0.4-beta.0",
3
+ "version": "9.1.0-RC.1",
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.73-beta.0",
31
- "@entur/button": "^3.2.4-beta.0",
32
- "@entur/form": "^7.0.31-beta.0",
33
- "@entur/icons": "^6.13.1-beta.0",
34
- "@entur/modal": "^1.7.24-beta.0",
35
- "@entur/tokens": "^3.11.2-beta.0",
36
- "@entur/tooltip": "^2.6.40-beta.0",
37
- "@entur/typography": "^1.8.19-beta.0",
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": "c312024e8f66298e0f6d4cf85849572f38b15d53"
51
+ "gitHead": "19b7406adb5596c51df75e91f41cd2dfbfe24a05"
52
52
  }