@sebgroup/green-react 3.4.0 → 3.5.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.
package/index.esm.js CHANGED
@@ -2315,8 +2315,7 @@ const Dropdown = _a => {
2315
2315
  } = _a,
2316
2316
  props = __rest(_a, ["compareWith", "display", "id", "informationLabel", "label", "multiSelect", "onChange", "options", "searchFilter", "searchable", "texts", "useValue", "validator", "value", "syncPopoverWidth"]);
2317
2317
  const handleOnChange = e => {
2318
- var _a;
2319
- if ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) {
2318
+ if ('value' in e.detail) {
2320
2319
  onChange === null || onChange === void 0 ? void 0 : onChange(e.detail.value);
2321
2320
  }
2322
2321
  };
@@ -2343,7 +2342,8 @@ const Dropdown = _a => {
2343
2342
  searchFilter: searchFilterAdapter,
2344
2343
  syncPopoverWidth: syncPopoverWidth,
2345
2344
  size: props.size,
2346
- hideLabel: props.hideLabel
2345
+ hideLabel: props.hideLabel,
2346
+ maxHeight: props.maxHeight
2347
2347
  }, {
2348
2348
  children: [informationLabel && jsx("span", Object.assign({
2349
2349
  slot: "sub-label"
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sebgroup/green-react",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "peerDependencies": {
5
5
  "react": "^17 || ^18",
6
6
  "react-dom": "^17 || ^18"
7
7
  },
8
8
  "dependencies": {
9
- "@sebgroup/green-core": "^1.8.0",
9
+ "@sebgroup/green-core": "^1.9.0",
10
10
  "@sebgroup/chlorophyll": "^3.1.1",
11
11
  "@sebgroup/extract": "^3.0.1",
12
12
  "@lit/react": "^1.0.2",
@@ -12,6 +12,8 @@ export interface DatepickerOptions {
12
12
  testId?: string;
13
13
  size?: 'small' | 'medium';
14
14
  hideLabel?: boolean;
15
+ disabledWeekends?: boolean;
16
+ disabledDates?: Date[];
15
17
  /** @deprecated Use `value` instead */
16
18
  selectedDate?: Date;
17
19
  /** @deprecated Use `value` instead */
@@ -34,6 +34,8 @@ export interface DropdownArgs {
34
34
  size?: 'small' | 'medium';
35
35
  /** Hide the label */
36
36
  hideLabel?: boolean;
37
+ /** Max height of the dropdown */
38
+ maxHeight?: number;
37
39
  }
38
40
  export interface DropdownTexts {
39
41
  placeholder?: string;