@seamapi/react 4.5.0 → 4.7.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 (83) hide show
  1. package/README.md +2 -2
  2. package/dist/elements.js +11560 -9368
  3. package/dist/elements.js.map +1 -1
  4. package/dist/index.css +255 -3
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.min.css.map +1 -1
  8. package/lib/icons/Trash.d.ts +2 -0
  9. package/lib/icons/Trash.js +5 -0
  10. package/lib/icons/Trash.js.map +1 -0
  11. package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js +8 -3
  12. package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js.map +1 -1
  13. package/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.js +17 -1
  14. package/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.js.map +1 -1
  15. package/lib/seam/thermostats/thermostat-device.d.ts +2 -1
  16. package/lib/seam/thermostats/thermostat-device.js.map +1 -1
  17. package/lib/seam/thermostats/unit-conversion.d.ts +5 -2
  18. package/lib/seam/thermostats/unit-conversion.js +5 -2
  19. package/lib/seam/thermostats/unit-conversion.js.map +1 -1
  20. package/lib/seam/thermostats/use-create-thermostat-climate-preset.d.ts +6 -0
  21. package/lib/seam/thermostats/use-create-thermostat-climate-preset.js +55 -0
  22. package/lib/seam/thermostats/use-create-thermostat-climate-preset.js.map +1 -0
  23. package/lib/seam/thermostats/use-delete-thermostat-climate-preset.d.ts +6 -0
  24. package/lib/seam/thermostats/use-delete-thermostat-climate-preset.js +44 -0
  25. package/lib/seam/thermostats/use-delete-thermostat-climate-preset.js.map +1 -0
  26. package/lib/seam/thermostats/use-update-thermostat-climate-preset.d.ts +6 -0
  27. package/lib/seam/thermostats/use-update-thermostat-climate-preset.js +55 -0
  28. package/lib/seam/thermostats/use-update-thermostat-climate-preset.js.map +1 -0
  29. package/lib/ui/Button.d.ts +3 -2
  30. package/lib/ui/Button.js +12 -4
  31. package/lib/ui/Button.js.map +1 -1
  32. package/lib/ui/IconButton.d.ts +5 -2
  33. package/lib/ui/IconButton.js +2 -2
  34. package/lib/ui/IconButton.js.map +1 -1
  35. package/lib/ui/Popover/Popover.d.ts +17 -0
  36. package/lib/ui/Popover/Popover.js +85 -0
  37. package/lib/ui/Popover/Popover.js.map +1 -0
  38. package/lib/ui/Popover/PopoverContentPrompt.d.ts +11 -0
  39. package/lib/ui/Popover/PopoverContentPrompt.js +12 -0
  40. package/lib/ui/Popover/PopoverContentPrompt.js.map +1 -0
  41. package/lib/ui/thermostat/ClimateModeMenu.d.ts +7 -2
  42. package/lib/ui/thermostat/ClimateModeMenu.js +7 -2
  43. package/lib/ui/thermostat/ClimateModeMenu.js.map +1 -1
  44. package/lib/ui/thermostat/ClimatePreset.d.ts +8 -0
  45. package/lib/ui/thermostat/ClimatePreset.js +141 -0
  46. package/lib/ui/thermostat/ClimatePreset.js.map +1 -0
  47. package/lib/ui/thermostat/ClimatePresets.d.ts +9 -0
  48. package/lib/ui/thermostat/ClimatePresets.js +72 -0
  49. package/lib/ui/thermostat/ClimatePresets.js.map +1 -0
  50. package/lib/ui/thermostat/FanModeMenu.d.ts +3 -1
  51. package/lib/ui/thermostat/FanModeMenu.js +5 -2
  52. package/lib/ui/thermostat/FanModeMenu.js.map +1 -1
  53. package/lib/ui/thermostat/ThermostatCard.d.ts +1 -0
  54. package/lib/ui/thermostat/ThermostatCard.js +4 -2
  55. package/lib/ui/thermostat/ThermostatCard.js.map +1 -1
  56. package/lib/ui/types.d.ts +3 -3
  57. package/lib/version.d.ts +1 -1
  58. package/lib/version.js +1 -1
  59. package/package.json +3 -2
  60. package/src/lib/icons/Trash.tsx +28 -0
  61. package/src/lib/seam/components/AccessCodeDetails/AccessCodeDetails.tsx +50 -34
  62. package/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx +52 -1
  63. package/src/lib/seam/thermostats/thermostat-device.ts +4 -0
  64. package/src/lib/seam/thermostats/unit-conversion.ts +12 -2
  65. package/src/lib/seam/thermostats/use-create-thermostat-climate-preset.ts +101 -0
  66. package/src/lib/seam/thermostats/use-delete-thermostat-climate-preset.ts +84 -0
  67. package/src/lib/seam/thermostats/use-update-thermostat-climate-preset.ts +103 -0
  68. package/src/lib/ui/Button.tsx +20 -3
  69. package/src/lib/ui/IconButton.tsx +19 -2
  70. package/src/lib/ui/Popover/Popover.tsx +168 -0
  71. package/src/lib/ui/Popover/PopoverContentPrompt.tsx +58 -0
  72. package/src/lib/ui/thermostat/ClimateModeMenu.tsx +33 -1
  73. package/src/lib/ui/thermostat/ClimatePreset.tsx +373 -0
  74. package/src/lib/ui/thermostat/ClimatePresets.tsx +235 -0
  75. package/src/lib/ui/thermostat/FanModeMenu.tsx +20 -2
  76. package/src/lib/ui/thermostat/ThermostatCard.tsx +10 -4
  77. package/src/lib/ui/types.ts +3 -3
  78. package/src/lib/version.ts +1 -1
  79. package/src/styles/_buttons.scss +56 -2
  80. package/src/styles/_main.scss +2 -0
  81. package/src/styles/_popover.scss +46 -0
  82. package/src/styles/_spinner.scss +1 -1
  83. package/src/styles/_thermostat.scss +154 -2
package/README.md CHANGED
@@ -87,7 +87,7 @@ export function App() {
87
87
  <seam-device-table publishable-key="your_publishable_key"></seam-device-table>
88
88
  <script
89
89
  type="module"
90
- src="https://react.seam.co/v/4.5.0/dist/elements.js"
90
+ src="https://react.seam.co/v/4.7.0/dist/elements.js"
91
91
  ></script>
92
92
  </body>
93
93
  ```
@@ -215,7 +215,7 @@ or place the following in the `<head>` tag:
215
215
  ```html
216
216
  <link
217
217
  rel="stylesheet"
218
- href="https://react.seam.co/v/4.5.0/dist/index.min.css"
218
+ href="https://react.seam.co/v/4.7.0/dist/index.min.css"
219
219
  />
220
220
  ```
221
221