Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Address some minor issues with OpenmrsDatePicker overlay #1283

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/framework/esm-framework/docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ A type for any of the acceptable date formats

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:78](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L78)

___

Expand Down Expand Up @@ -1859,7 +1859,7 @@ A date picker component to select a single date. Based on React Aria, but styled

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:429](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L429)

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Properties for the OpenmrsDatePicker
- [className](OpenmrsDatePickerProps.md#classname)
- [defaultOpen](OpenmrsDatePickerProps.md#defaultopen)
- [defaultValue](OpenmrsDatePickerProps.md#defaultvalue)
- [firstDayOfWeek](OpenmrsDatePickerProps.md#firstdayofweek)
- [granularity](OpenmrsDatePickerProps.md#granularity)
- [hideTimeZone](OpenmrsDatePickerProps.md#hidetimezone)
- [hourCycle](OpenmrsDatePickerProps.md#hourcycle)
Expand Down Expand Up @@ -160,7 +161,7 @@ Omit.children

#### Defined in

node_modules/react-aria-components/dist/types.d.ts:56
node_modules/react-aria-components/dist/types.d.ts:60

___

Expand All @@ -172,7 +173,7 @@ Any CSS classes to add to the outer div of the date picker

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:87](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L87)

___

Expand Down Expand Up @@ -200,7 +201,23 @@ The default value (uncontrolled)

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:89](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L89)

___

### firstDayOfWeek

• `Optional` **firstDayOfWeek**: ``"sun"`` \| ``"mon"`` \| ``"tue"`` \| ``"wed"`` \| ``"thu"`` \| ``"fri"`` \| ``"sat"``

The day that starts the week.

#### Inherited from

Omit.firstDayOfWeek

#### Defined in

node_modules/@react-types/datepicker/src/index.d.ts:78

___

Expand Down Expand Up @@ -278,7 +295,7 @@ Whether the input value is invalid.

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:91](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L91)

___

Expand All @@ -290,7 +307,7 @@ Text to show if the input is invalid e.g. an error message

#### Defined in

[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)
[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)

___

Expand Down Expand Up @@ -384,7 +401,7 @@ The label for this DatePicker element

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:98](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L98)

___

Expand All @@ -396,7 +413,7 @@ The label for this DatePicker element.

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:100](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L100)

___

Expand All @@ -408,7 +425,7 @@ ___

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:102](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L102)

___

Expand All @@ -420,13 +437,13 @@ The latest date it is possible to select

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:104](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L104)

___

### maxValue

• `Optional` **maxValue**: `DateValue`
• `Optional` **maxValue**: ``null`` \| `DateValue`

The maximum allowed date that a user may select.

Expand All @@ -448,13 +465,13 @@ The earliest date it is possible to select

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:106](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L106)

___

### minValue

• `Optional` **minValue**: `DateValue`
• `Optional` **minValue**: ``null`` \| `DateValue`

The minimum allowed date that a user may select.

Expand Down Expand Up @@ -504,7 +521,7 @@ ___

### placeholderValue

• `Optional` **placeholderValue**: `CalendarDate`
• `Optional` **placeholderValue**: ``null`` \| `CalendarDate`

A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight.

Expand All @@ -526,7 +543,7 @@ ___

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:114](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L114)

___

Expand Down Expand Up @@ -573,7 +590,7 @@ Specifies the size of the input. Currently supports either `sm`, `md`, or `lg` a

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:112](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L112)

___

Expand All @@ -590,13 +607,13 @@ Omit.slot

#### Defined in

node_modules/react-aria-components/dist/types.d.ts:73
node_modules/react-aria-components/dist/types.d.ts:77

___

### style

• `Optional` **style**: `CSSProperties` \| (`values`: `DatePickerRenderProps` & { `defaultStyle`: `CSSProperties` }) => `CSSProperties`
• `Optional` **style**: `CSSProperties` \| (`values`: `DatePickerRenderProps` & { `defaultStyle`: `CSSProperties` }) => `undefined` \| `CSSProperties`

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.

Expand All @@ -606,7 +623,7 @@ Omit.style

#### Defined in

node_modules/react-aria-components/dist/types.d.ts:50
node_modules/react-aria-components/dist/types.d.ts:54

___

Expand All @@ -626,7 +643,7 @@ Omit.validationBehavior

#### Defined in

node_modules/react-aria-components/dist/types.d.ts:84
node_modules/react-aria-components/dist/types.d.ts:88

___

Expand All @@ -638,7 +655,7 @@ The value (controlled)

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:116](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L116)

## Methods

Expand Down Expand Up @@ -712,7 +729,7 @@ Handler that is called when the value changes.

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:108](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L108)

___

Expand All @@ -734,7 +751,7 @@ Handler that is called when the value changes. Note that this provides types fro

#### Defined in

[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)
[packages/framework/esm-styleguide/src/datepicker/index.tsx:110](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L110)

___

Expand Down
4 changes: 2 additions & 2 deletions packages/framework/esm-styleguide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"dependencies": {
"@carbon/charts": "^1.12.0",
"@carbon/react": "~1.37.0",
"@internationalized/date": "^3.5.5",
"@internationalized/date": "^3.7.0",
"core-js-pure": "^3.36.0",
"d3": "^7.8.0",
"geopattern": "^1.2.3",
"lodash-es": "^4.17.21",
"react-aria-components": "^1.3.3",
"react-aria-components": "^1.6.0",
"react-avatar": "^5.0.3"
},
"peerDependencies": {
Expand Down
Loading
Loading