@seamapi/react 2.10.2 → 2.11.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.
Files changed (57) hide show
  1. package/README.md +2 -2
  2. package/dist/elements.js +3691 -3682
  3. package/dist/elements.js.map +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.min.css.map +1 -1
  6. package/lib/seam/SeamProvider.js +1 -1
  7. package/lib/seam/SeamProvider.js.map +1 -1
  8. package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js +1 -1
  9. package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js.map +1 -1
  10. package/lib/seam/components/AccessCodeTable/AccessCodeTable.js +1 -1
  11. package/lib/seam/components/AccessCodeTable/AccessCodeTable.js.map +1 -1
  12. package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js +1 -1
  13. package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js.map +1 -1
  14. package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js +1 -1
  15. package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js.map +1 -1
  16. package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js +1 -1
  17. package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js.map +1 -1
  18. package/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.js +1 -1
  19. package/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.js.map +1 -1
  20. package/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.js +1 -1
  21. package/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.js.map +1 -1
  22. package/lib/seam/components/DeviceDetails/DeviceDetails.js +1 -1
  23. package/lib/seam/components/DeviceDetails/DeviceDetails.js.map +1 -1
  24. package/lib/seam/components/DeviceTable/DeviceTable.js +1 -1
  25. package/lib/seam/components/DeviceTable/DeviceTable.js.map +1 -1
  26. package/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.js +1 -1
  27. package/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.js.map +1 -1
  28. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js +1 -1
  29. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js.map +1 -1
  30. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js +1 -1
  31. package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js.map +1 -1
  32. package/lib/ui/AccessCodeForm/AccessCodeForm.js +25 -24
  33. package/lib/ui/AccessCodeForm/AccessCodeForm.js.map +1 -1
  34. package/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.js +1 -1
  35. package/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.js.map +1 -1
  36. package/lib/ui/FormField.js.map +1 -1
  37. package/lib/version.d.ts +1 -1
  38. package/lib/version.js +1 -1
  39. package/package.json +12 -11
  40. package/src/lib/seam/SeamProvider.tsx +2 -3
  41. package/src/lib/seam/components/AccessCodeDetails/AccessCodeDetails.tsx +1 -2
  42. package/src/lib/seam/components/AccessCodeTable/AccessCodeTable.tsx +1 -2
  43. package/src/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.tsx +1 -2
  44. package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.tsx +1 -2
  45. package/src/lib/seam/components/ConnectAccountButton/ConnectAccountButton.tsx +1 -2
  46. package/src/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.tsx +1 -2
  47. package/src/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.tsx +1 -2
  48. package/src/lib/seam/components/DeviceDetails/DeviceDetails.tsx +1 -2
  49. package/src/lib/seam/components/DeviceTable/DeviceTable.tsx +1 -2
  50. package/src/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.tsx +1 -2
  51. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.tsx +1 -2
  52. package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.tsx +1 -2
  53. package/src/lib/ui/AccessCodeForm/AccessCodeForm.tsx +74 -67
  54. package/src/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.tsx +1 -2
  55. package/src/lib/ui/FormField.tsx +2 -2
  56. package/src/lib/version.ts +1 -1
  57. package/src/styles/_supported-device-table.scss +6 -1
@@ -1,5 +1,5 @@
1
1
  import classNames from 'classnames'
2
- import { cloneElement, useRef } from 'react'
2
+ import { type Attributes, cloneElement, useRef } from 'react'
3
3
 
4
4
  import { DateTimePicker } from 'lib/ui/DateTimePicker/DateTimePicker.js'
5
5
  import { InputLabel } from 'lib/ui/InputLabel.js'
@@ -27,7 +27,7 @@ export function FormField({
27
27
  // Map children to automatically focus on input when clicking
28
28
  // on an InputLabel.
29
29
  const clonedChildren = components.map((component, index) => {
30
- const baseProps = {
30
+ const baseProps: Attributes = {
31
31
  ...component.props,
32
32
  key: index,
33
33
  }
@@ -1,3 +1,3 @@
1
- const seamapiReactVersion = '2.10.2'
1
+ const seamapiReactVersion = '2.11.0'
2
2
 
3
3
  export default seamapiReactVersion
@@ -1,3 +1,4 @@
1
+ @use 'sass:math';
1
2
  @use './colors';
2
3
 
3
4
  $row-height: 64px;
@@ -175,7 +176,11 @@ $see-all-button-height: 30px;
175
176
  0 1px 1px 0 rgb(16 27 37 / 10%),
176
177
  0 1px 8px 0 rgb(46 69 82 / 12%);
177
178
  position: absolute;
178
- bottom: -($row-height - $see-all-button-height - $row-padding) / 2;
179
+ bottom: math.div(
180
+ -($row-height - $see-all-button-height - $row-padding),
181
+ 2
182
+ )
183
+ or calc(-1 * ($row-height - $see-all-button-height - $row-padding) / 2);
179
184
  left: 50%;
180
185
  transform: translate(-50%, -47px);
181
186
  z-index: 3;