@coopdigital/react 0.50.0 → 0.51.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.
@@ -116,7 +116,7 @@ const DatePicker = ({ className, closeOnSelect = true, dateFormat = "dd/MM/yyyy"
116
116
  };
117
117
  return (jsxs("div", { ...componentProps, children: [jsxs(Popover, { onOpenChange: setOpen, open: state.open, children: [jsxs(Popover.Anchor, { className: "coop-datepicker-inner", children: [jsx(TextInput, { autoComplete: "off", className: "coop-datepicker-input", disabled: disabled, id: uid + componentConfig.fieldSuffix,
118
118
  //maxLength={dateFormat.length}
119
- name: name + componentConfig.fieldSuffix, onChange: updateFromInput, placeholder: getPlaceholder(), ref: ref, required: required, size: size, value: (_f = (_e = state === null || state === void 0 ? void 0 : state[mode]) === null || _e === void 0 ? void 0 : _e.input) !== null && _f !== void 0 ? _f : "" }), jsx(Popover.Trigger, { asChild: true, children: jsx(Button, { className: "coop-datepicker-button", disabled: disabled, size: size, children: "Select" }) })] }), jsxs(Popover.Content, { "aria-label": "Date picker", className: "coop-datepicker-calendar bg-white", collisionPadding: 16, sideOffset: 4, children: [jsx(Calendar
119
+ name: name + componentConfig.fieldSuffix, onChange: updateFromInput, placeholder: getPlaceholder(), ref: ref, required: required, size: size, value: (_f = (_e = state === null || state === void 0 ? void 0 : state[mode]) === null || _e === void 0 ? void 0 : _e.input) !== null && _f !== void 0 ? _f : "" }), jsx(Popover.Trigger, { asChild: true, children: jsx(Button, { className: "coop-datepicker-button", disabled: disabled, size: size, children: "Select" }) })] }), jsxs(Popover.Content, { "aria-label": "Date picker", className: "coop-datepicker-calendar", collisionPadding: 16, sideOffset: 4, children: [jsx(Calendar
120
120
  // jsx-ally throws here because we set autoFocus, but this
121
121
  // is not a standard element. Daypicker uses this value to
122
122
  // focus the day rather than the nav when it renders.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopdigital/react",
3
3
  "type": "module",
4
- "version": "0.50.0",
4
+ "version": "0.51.1",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -63,7 +63,7 @@
63
63
  "@storybook/react-vite": "^10.1.11",
64
64
  "@testing-library/jest-dom": "^6.9.1",
65
65
  "@testing-library/react": "^16.3.1",
66
- "@types/react": "^19.2.7",
66
+ "@types/react": "^19.2.8",
67
67
  "@types/react-dom": "^19.2.3",
68
68
  "react": "^19.2.3",
69
69
  "react-dom": "^19.2.3",
@@ -80,10 +80,10 @@
80
80
  "storybook": "$storybook"
81
81
  },
82
82
  "dependencies": {
83
- "@coopdigital/styles": "^0.42.2",
83
+ "@coopdigital/styles": "^0.43.0",
84
84
  "@radix-ui/react-popover": "^1.1.15",
85
85
  "clsx": "^2.1.1",
86
86
  "react-day-picker": "^9.12.0"
87
87
  },
88
- "gitHead": "65ad05bec304ca62f94470c7d1058056e4b57fd6"
88
+ "gitHead": "3f007f8bb17e4765044db9834ce84022f84fe3b6"
89
89
  }
@@ -308,7 +308,7 @@ export const DatePicker = ({
308
308
  </Popover.Anchor>
309
309
  <Popover.Content
310
310
  aria-label="Date picker"
311
- className="coop-datepicker-calendar bg-white"
311
+ className="coop-datepicker-calendar"
312
312
  collisionPadding={16}
313
313
  sideOffset={4}
314
314
  >