@seamapi/react 2.15.0 → 2.16.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 +26 -18
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/DeviceDetails/DeviceInfo.js +1 -1
- package/lib/seam/components/DeviceDetails/DeviceInfo.js.map +1 -1
- package/lib/ui/layout/DetailSection.d.ts +2 -1
- package/lib/ui/layout/DetailSection.js +3 -2
- package/lib/ui/layout/DetailSection.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/seam/components/DeviceDetails/DeviceInfo.tsx +4 -1
- package/src/lib/ui/layout/DetailSection.tsx +4 -1
- package/src/lib/version.ts +1 -1
|
@@ -5,7 +5,7 @@ import { DetailRow } from '../../../../lib/ui/layout/DetailRow.js';
|
|
|
5
5
|
import { DetailSection } from '../../../../lib/ui/layout/DetailSection.js';
|
|
6
6
|
export function DeviceInfo({ device, disableConnectedAccountInformation, disableResourceIds, }) {
|
|
7
7
|
const { connectedAccount } = useConnectedAccount(device.connected_account_id);
|
|
8
|
-
return (_jsxs(DetailSection, { label: t.deviceInfo, children: [_jsx(DetailRow, { label: t.manufacturer, children: _jsxs("div", { className: 'seam-detail-row-hstack', children: [device.properties.model.manufacturer_display_name, device.properties.manufacturer === 'ecobee' && _jsx(BeeIcon, {})] }) }), !disableConnectedAccountInformation && (_jsx(DetailRow, { label: t.linkedAccount, sublabel: connectedAccount?.user_identifier?.email ??
|
|
8
|
+
return (_jsxs(DetailSection, { label: t.deviceInfo, className: 'seam-device-details-device-info', children: [_jsx(DetailRow, { label: t.manufacturer, children: _jsxs("div", { className: 'seam-detail-row-hstack', children: [device.properties.model.manufacturer_display_name, device.properties.manufacturer === 'ecobee' && _jsx(BeeIcon, {})] }) }), !disableConnectedAccountInformation && (_jsx(DetailRow, { label: t.linkedAccount, sublabel: connectedAccount?.user_identifier?.email ??
|
|
9
9
|
device.connected_account_id })), !disableResourceIds && (_jsx(DetailRow, { label: t.deviceId, sublabel: device.device_id }))] }));
|
|
10
10
|
}
|
|
11
11
|
const t = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceInfo.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/DeviceDetails/DeviceInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAA;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAY9D,MAAM,UAAU,UAAU,CAAC,EACzB,MAAM,EACN,kCAAkC,EAClC,kBAAkB,GACF;IAChB,MAAM,EAAE,gBAAgB,EAAE,GAAG,mBAAmB,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAC7E,OAAO,CACL,MAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"DeviceInfo.js","sourceRoot":"","sources":["../../../../src/lib/seam/components/DeviceDetails/DeviceInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAA;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAY9D,MAAM,UAAU,UAAU,CAAC,EACzB,MAAM,EACN,kCAAkC,EAClC,kBAAkB,GACF;IAChB,MAAM,EAAE,gBAAgB,EAAE,GAAG,mBAAmB,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAC7E,OAAO,CACL,MAAC,aAAa,IACZ,KAAK,EAAE,CAAC,CAAC,UAAU,EACnB,SAAS,EAAC,iCAAiC,aAE3C,KAAC,SAAS,IAAC,KAAK,EAAE,CAAC,CAAC,YAAY,YAC9B,eAAK,SAAS,EAAC,wBAAwB,aACpC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,yBAAyB,EACjD,MAAM,CAAC,UAAU,CAAC,YAAY,KAAK,QAAQ,IAAI,KAAC,OAAO,KAAG,IACvD,GACI,EACX,CAAC,kCAAkC,IAAI,CACtC,KAAC,SAAS,IACR,KAAK,EAAE,CAAC,CAAC,aAAa,EACtB,QAAQ,EACN,gBAAgB,EAAE,eAAe,EAAE,KAAK;oBACxC,MAAM,CAAC,oBAAoB,GAE7B,CACH,EACA,CAAC,kBAAkB,IAAI,CACtB,KAAC,SAAS,IAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,GAAI,CAC7D,IACa,CACjB,CAAA;AACH,CAAC;AAED,MAAM,CAAC,GAAG;IACR,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,gBAAgB;IAC/B,QAAQ,EAAE,WAAW;CACtB,CAAA"}
|
|
@@ -2,6 +2,7 @@ import type { PropsWithChildren } from 'react';
|
|
|
2
2
|
interface DetailSectionProps {
|
|
3
3
|
label?: string;
|
|
4
4
|
tooltipContent?: JSX.Element | string;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function DetailSection({ label, tooltipContent, children, }: PropsWithChildren<DetailSectionProps>): JSX.Element;
|
|
7
|
+
export declare function DetailSection({ label, tooltipContent, className, children, }: PropsWithChildren<DetailSectionProps>): JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import { Tooltip } from '../../../lib/ui/Tooltip/Tooltip.js';
|
|
3
|
-
export function DetailSection({ label, tooltipContent, children, }) {
|
|
4
|
-
return (_jsxs("div", { className: 'seam-detail-section', children: [_jsxs("div", { className: 'seam-detail-label-wrap', children: [label != null && _jsx("p", { className: 'seam-detail-label', children: label }), tooltipContent != null && _jsx(Tooltip, { children: tooltipContent })] }), _jsx("div", { className: 'seam-detail-group', children: children })] }));
|
|
4
|
+
export function DetailSection({ label, tooltipContent, className, children, }) {
|
|
5
|
+
return (_jsxs("div", { className: classNames('seam-detail-section', className), children: [_jsxs("div", { className: 'seam-detail-label-wrap', children: [label != null && _jsx("p", { className: 'seam-detail-label', children: label }), tooltipContent != null && _jsx(Tooltip, { children: tooltipContent })] }), _jsx("div", { className: 'seam-detail-group', children: children })] }));
|
|
5
6
|
}
|
|
6
7
|
//# sourceMappingURL=DetailSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailSection.js","sourceRoot":"","sources":["../../../src/lib/ui/layout/DetailSection.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DetailSection.js","sourceRoot":"","sources":["../../../src/lib/ui/layout/DetailSection.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAQnD,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,cAAc,EACd,SAAS,EACT,QAAQ,GAC8B;IACtC,OAAO,CACL,eAAK,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,SAAS,CAAC,aAC1D,eAAK,SAAS,EAAC,wBAAwB,aACpC,KAAK,IAAI,IAAI,IAAI,YAAG,SAAS,EAAC,mBAAmB,YAAE,KAAK,GAAK,EAC7D,cAAc,IAAI,IAAI,IAAI,KAAC,OAAO,cAAE,cAAc,GAAW,IAC1D,EAEN,cAAK,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAO,IAC/C,CACP,CAAA;AACH,CAAC"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiReactVersion = "2.
|
|
1
|
+
declare const seamapiReactVersion = "2.16.0";
|
|
2
2
|
export default seamapiReactVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -23,7 +23,10 @@ export function DeviceInfo({
|
|
|
23
23
|
}: DeviceInfoProps): JSX.Element | null {
|
|
24
24
|
const { connectedAccount } = useConnectedAccount(device.connected_account_id)
|
|
25
25
|
return (
|
|
26
|
-
<DetailSection
|
|
26
|
+
<DetailSection
|
|
27
|
+
label={t.deviceInfo}
|
|
28
|
+
className='seam-device-details-device-info'
|
|
29
|
+
>
|
|
27
30
|
<DetailRow label={t.manufacturer}>
|
|
28
31
|
<div className='seam-detail-row-hstack'>
|
|
29
32
|
{device.properties.model.manufacturer_display_name}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import classNames from 'classnames'
|
|
1
2
|
import type { PropsWithChildren } from 'react'
|
|
2
3
|
|
|
3
4
|
import { Tooltip } from 'lib/ui/Tooltip/Tooltip.js'
|
|
@@ -5,15 +6,17 @@ import { Tooltip } from 'lib/ui/Tooltip/Tooltip.js'
|
|
|
5
6
|
interface DetailSectionProps {
|
|
6
7
|
label?: string
|
|
7
8
|
tooltipContent?: JSX.Element | string
|
|
9
|
+
className?: string
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export function DetailSection({
|
|
11
13
|
label,
|
|
12
14
|
tooltipContent,
|
|
15
|
+
className,
|
|
13
16
|
children,
|
|
14
17
|
}: PropsWithChildren<DetailSectionProps>): JSX.Element {
|
|
15
18
|
return (
|
|
16
|
-
<div className='seam-detail-section'>
|
|
19
|
+
<div className={classNames('seam-detail-section', className)}>
|
|
17
20
|
<div className='seam-detail-label-wrap'>
|
|
18
21
|
{label != null && <p className='seam-detail-label'>{label}</p>}
|
|
19
22
|
{tooltipContent != null && <Tooltip>{tooltipContent}</Tooltip>}
|
package/src/lib/version.ts
CHANGED