@openmrs/esm-framework 6.0.5-pre.2686 → 6.0.5-pre.2690

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/docs/API.md CHANGED
@@ -546,7 +546,7 @@ A type for any of the acceptable date formats
546
546
 
547
547
  #### Defined in
548
548
 
549
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:73](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L73)
549
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:77](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L77)
550
550
 
551
551
  ___
552
552
 
@@ -1859,7 +1859,7 @@ A date picker component to select a single date. Based on React Aria, but styled
1859
1859
 
1860
1860
  #### Defined in
1861
1861
 
1862
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:392](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L392)
1862
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:411](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L411)
1863
1863
 
1864
1864
  ___
1865
1865
 
@@ -23,6 +23,7 @@ Properties for the OpenmrsDatePicker
23
23
  - [className](OpenmrsDatePickerProps.md#classname)
24
24
  - [defaultOpen](OpenmrsDatePickerProps.md#defaultopen)
25
25
  - [defaultValue](OpenmrsDatePickerProps.md#defaultvalue)
26
+ - [firstDayOfWeek](OpenmrsDatePickerProps.md#firstdayofweek)
26
27
  - [granularity](OpenmrsDatePickerProps.md#granularity)
27
28
  - [hideTimeZone](OpenmrsDatePickerProps.md#hidetimezone)
28
29
  - [hourCycle](OpenmrsDatePickerProps.md#hourcycle)
@@ -160,7 +161,7 @@ Omit.children
160
161
 
161
162
  #### Defined in
162
163
 
163
- node_modules/react-aria-components/dist/types.d.ts:56
164
+ node_modules/react-aria-components/dist/types.d.ts:60
164
165
 
165
166
  ___
166
167
 
@@ -172,7 +173,7 @@ Any CSS classes to add to the outer div of the date picker
172
173
 
173
174
  #### Defined in
174
175
 
175
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:82](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L82)
176
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:86](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L86)
176
177
 
177
178
  ___
178
179
 
@@ -200,7 +201,23 @@ The default value (uncontrolled)
200
201
 
201
202
  #### Defined in
202
203
 
203
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:84](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L84)
204
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:88](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L88)
205
+
206
+ ___
207
+
208
+ ### firstDayOfWeek
209
+
210
+ • `Optional` **firstDayOfWeek**: ``"sun"`` \| ``"mon"`` \| ``"tue"`` \| ``"wed"`` \| ``"thu"`` \| ``"fri"`` \| ``"sat"``
211
+
212
+ The day that starts the week.
213
+
214
+ #### Inherited from
215
+
216
+ Omit.firstDayOfWeek
217
+
218
+ #### Defined in
219
+
220
+ node_modules/@react-types/datepicker/src/index.d.ts:78
204
221
 
205
222
  ___
206
223
 
@@ -278,7 +295,7 @@ Whether the input value is invalid.
278
295
 
279
296
  #### Defined in
280
297
 
281
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:86](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L86)
298
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:90](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L90)
282
299
 
283
300
  ___
284
301
 
@@ -290,7 +307,7 @@ Text to show if the input is invalid e.g. an error message
290
307
 
291
308
  #### Defined in
292
309
 
293
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:88](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L88)
310
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:92](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L92)
294
311
 
295
312
  ___
296
313
 
@@ -384,7 +401,7 @@ The label for this DatePicker element
384
401
 
385
402
  #### Defined in
386
403
 
387
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:93](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L93)
404
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:97](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L97)
388
405
 
389
406
  ___
390
407
 
@@ -396,7 +413,7 @@ The label for this DatePicker element.
396
413
 
397
414
  #### Defined in
398
415
 
399
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:95](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L95)
416
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:99](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L99)
400
417
 
401
418
  ___
402
419
 
@@ -408,7 +425,7 @@ ___
408
425
 
409
426
  #### Defined in
410
427
 
411
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:97](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L97)
428
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:101](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L101)
412
429
 
413
430
  ___
414
431
 
@@ -420,13 +437,13 @@ The latest date it is possible to select
420
437
 
421
438
  #### Defined in
422
439
 
423
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:99](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L99)
440
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L103)
424
441
 
425
442
  ___
426
443
 
427
444
  ### maxValue
428
445
 
429
- • `Optional` **maxValue**: `DateValue`
446
+ • `Optional` **maxValue**: ``null`` \| `DateValue`
430
447
 
431
448
  The maximum allowed date that a user may select.
432
449
 
@@ -448,13 +465,13 @@ The earliest date it is possible to select
448
465
 
449
466
  #### Defined in
450
467
 
451
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:101](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L101)
468
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:105](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L105)
452
469
 
453
470
  ___
454
471
 
455
472
  ### minValue
456
473
 
457
- • `Optional` **minValue**: `DateValue`
474
+ • `Optional` **minValue**: ``null`` \| `DateValue`
458
475
 
459
476
  The minimum allowed date that a user may select.
460
477
 
@@ -504,7 +521,7 @@ ___
504
521
 
505
522
  ### placeholderValue
506
523
 
507
- • `Optional` **placeholderValue**: `CalendarDate`
524
+ • `Optional` **placeholderValue**: ``null`` \| `CalendarDate`
508
525
 
509
526
  A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight.
510
527
 
@@ -526,7 +543,7 @@ ___
526
543
 
527
544
  #### Defined in
528
545
 
529
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:109](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L109)
546
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:113](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L113)
530
547
 
531
548
  ___
532
549
 
@@ -573,7 +590,7 @@ Specifies the size of the input. Currently supports either `sm`, `md`, or `lg` a
573
590
 
574
591
  #### Defined in
575
592
 
576
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:107](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L107)
593
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:111](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L111)
577
594
 
578
595
  ___
579
596
 
@@ -590,13 +607,13 @@ Omit.slot
590
607
 
591
608
  #### Defined in
592
609
 
593
- node_modules/react-aria-components/dist/types.d.ts:73
610
+ node_modules/react-aria-components/dist/types.d.ts:77
594
611
 
595
612
  ___
596
613
 
597
614
  ### style
598
615
 
599
- • `Optional` **style**: `CSSProperties` \| (`values`: `DatePickerRenderProps` & { `defaultStyle`: `CSSProperties` }) => `CSSProperties`
616
+ • `Optional` **style**: `CSSProperties` \| (`values`: `DatePickerRenderProps` & { `defaultStyle`: `CSSProperties` }) => `undefined` \| `CSSProperties`
600
617
 
601
618
  The inline [style](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style) for the element. A function may be provided to compute the style based on component state.
602
619
 
@@ -606,7 +623,7 @@ Omit.style
606
623
 
607
624
  #### Defined in
608
625
 
609
- node_modules/react-aria-components/dist/types.d.ts:50
626
+ node_modules/react-aria-components/dist/types.d.ts:54
610
627
 
611
628
  ___
612
629
 
@@ -626,7 +643,7 @@ Omit.validationBehavior
626
643
 
627
644
  #### Defined in
628
645
 
629
- node_modules/react-aria-components/dist/types.d.ts:84
646
+ node_modules/react-aria-components/dist/types.d.ts:88
630
647
 
631
648
  ___
632
649
 
@@ -638,7 +655,7 @@ The value (controlled)
638
655
 
639
656
  #### Defined in
640
657
 
641
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:111](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L111)
658
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:115](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L115)
642
659
 
643
660
  ## Methods
644
661
 
@@ -712,7 +729,7 @@ Handler that is called when the value changes.
712
729
 
713
730
  #### Defined in
714
731
 
715
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L103)
732
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:107](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L107)
716
733
 
717
734
  ___
718
735
 
@@ -734,7 +751,7 @@ Handler that is called when the value changes. Note that this provides types fro
734
751
 
735
752
  #### Defined in
736
753
 
737
- [packages/framework/esm-styleguide/src/datepicker/index.tsx:105](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L105)
754
+ [packages/framework/esm-styleguide/src/datepicker/index.tsx:109](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L109)
738
755
 
739
756
  ___
740
757
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "6.0.5-pre.2686",
3
+ "version": "6.0.5-pre.2690",
4
4
  "license": "MPL-2.0",
5
5
  "browser": "dist/openmrs-esm-framework.js",
6
6
  "main": "src/index.ts",
@@ -37,23 +37,23 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@openmrs/esm-api": "6.0.5-pre.2686",
41
- "@openmrs/esm-config": "6.0.5-pre.2686",
42
- "@openmrs/esm-context": "6.0.5-pre.2686",
43
- "@openmrs/esm-dynamic-loading": "6.0.5-pre.2686",
44
- "@openmrs/esm-error-handling": "6.0.5-pre.2686",
45
- "@openmrs/esm-expression-evaluator": "6.0.5-pre.2686",
46
- "@openmrs/esm-extensions": "6.0.5-pre.2686",
47
- "@openmrs/esm-feature-flags": "6.0.5-pre.2686",
48
- "@openmrs/esm-globals": "6.0.5-pre.2686",
49
- "@openmrs/esm-navigation": "6.0.5-pre.2686",
50
- "@openmrs/esm-offline": "6.0.5-pre.2686",
51
- "@openmrs/esm-react-utils": "6.0.5-pre.2686",
52
- "@openmrs/esm-routes": "6.0.5-pre.2686",
53
- "@openmrs/esm-state": "6.0.5-pre.2686",
54
- "@openmrs/esm-styleguide": "6.0.5-pre.2686",
55
- "@openmrs/esm-translations": "6.0.5-pre.2686",
56
- "@openmrs/esm-utils": "6.0.5-pre.2686",
40
+ "@openmrs/esm-api": "6.0.5-pre.2690",
41
+ "@openmrs/esm-config": "6.0.5-pre.2690",
42
+ "@openmrs/esm-context": "6.0.5-pre.2690",
43
+ "@openmrs/esm-dynamic-loading": "6.0.5-pre.2690",
44
+ "@openmrs/esm-error-handling": "6.0.5-pre.2690",
45
+ "@openmrs/esm-expression-evaluator": "6.0.5-pre.2690",
46
+ "@openmrs/esm-extensions": "6.0.5-pre.2690",
47
+ "@openmrs/esm-feature-flags": "6.0.5-pre.2690",
48
+ "@openmrs/esm-globals": "6.0.5-pre.2690",
49
+ "@openmrs/esm-navigation": "6.0.5-pre.2690",
50
+ "@openmrs/esm-offline": "6.0.5-pre.2690",
51
+ "@openmrs/esm-react-utils": "6.0.5-pre.2690",
52
+ "@openmrs/esm-routes": "6.0.5-pre.2690",
53
+ "@openmrs/esm-state": "6.0.5-pre.2690",
54
+ "@openmrs/esm-styleguide": "6.0.5-pre.2690",
55
+ "@openmrs/esm-translations": "6.0.5-pre.2690",
56
+ "@openmrs/esm-utils": "6.0.5-pre.2690",
57
57
  "dayjs": "^1.10.7"
58
58
  },
59
59
  "peerDependencies": {