@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.
- package/README.md +2 -2
- package/dist/elements.js +3691 -3682
- package/dist/elements.js.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/seam/SeamProvider.js +1 -1
- package/lib/seam/SeamProvider.js.map +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js.map +1 -1
- package/lib/seam/components/AccessCodeTable/AccessCodeTable.js +1 -1
- package/lib/seam/components/AccessCodeTable/AccessCodeTable.js.map +1 -1
- package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js +1 -1
- package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js.map +1 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js +1 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js.map +1 -1
- package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js +1 -1
- package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js.map +1 -1
- package/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.js +1 -1
- package/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.js.map +1 -1
- package/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.js +1 -1
- package/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.js.map +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js.map +1 -1
- package/lib/seam/components/DeviceTable/DeviceTable.js +1 -1
- package/lib/seam/components/DeviceTable/DeviceTable.js.map +1 -1
- package/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.js +1 -1
- package/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.js.map +1 -1
- package/lib/ui/AccessCodeForm/AccessCodeForm.js +25 -24
- package/lib/ui/AccessCodeForm/AccessCodeForm.js.map +1 -1
- package/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.js +1 -1
- package/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.js.map +1 -1
- package/lib/ui/FormField.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +12 -11
- package/src/lib/seam/SeamProvider.tsx +2 -3
- package/src/lib/seam/components/AccessCodeDetails/AccessCodeDetails.tsx +1 -2
- package/src/lib/seam/components/AccessCodeTable/AccessCodeTable.tsx +1 -2
- package/src/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.tsx +1 -2
- package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.tsx +1 -2
- package/src/lib/seam/components/ConnectAccountButton/ConnectAccountButton.tsx +1 -2
- package/src/lib/seam/components/CreateAccessCodeForm/CreateAccessCodeForm.tsx +1 -2
- package/src/lib/seam/components/CreateClimateSettingScheduleForm/CreateClimateSettingScheduleForm.tsx +1 -2
- package/src/lib/seam/components/DeviceDetails/DeviceDetails.tsx +1 -2
- package/src/lib/seam/components/DeviceTable/DeviceTable.tsx +1 -2
- package/src/lib/seam/components/EditAccessCodeForm/EditAccessCodeForm.tsx +1 -2
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTable.tsx +1 -2
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceTableManufacturerKeys.tsx +1 -2
- package/src/lib/ui/AccessCodeForm/AccessCodeForm.tsx +74 -67
- package/src/lib/ui/ClimateSettingForm/ClimateSettingScheduleForm.tsx +1 -2
- package/src/lib/ui/FormField.tsx +2 -2
- package/src/lib/version.ts +1 -1
- package/src/styles/_supported-device-table.scss +6 -1
package/src/lib/ui/FormField.tsx
CHANGED
|
@@ -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
|
}
|
package/src/lib/version.ts
CHANGED
|
@@ -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:
|
|
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;
|