@attraccess/plugin-shelly 0.1.0-nightly.1088.1 → 0.1.0-nightly.1105.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.
@@ -156,10 +156,10 @@ function usePluginLiveUpdates(props) {
156
156
  }
157
157
  //#endregion
158
158
  //#region ../../../libs/plugins-frontend-sdk/src/lib/frontend.standard-drawer.tsx
159
- var { DrawerBackdrop: DrawerBackdrop$1, DrawerContent: DrawerContent$1, DrawerDialog: DrawerDialog$1 } = await importShared("@heroui/react");
159
+ var { StandardDrawer: SharedStandardDrawer } = await importShared("@attraccess/plugins-frontend-ui");
160
160
  //#endregion
161
161
  //#region ../../../libs/plugins-frontend-sdk/src/lib/frontend.standard-modal.tsx
162
- var { Modal: Modal$1, ModalBackdrop: ModalBackdrop$1, ModalContainer: ModalContainer$1, ModalDialog: ModalDialog$1 } = await importShared("@heroui/react");
162
+ var { StandardModal: SharedStandardModal } = await importShared("@attraccess/plugins-frontend-ui");
163
163
  //#endregion
164
164
  //#region frontend/src/api.ts
165
165
  var api = createPluginApiClient("/api/shelly");
@@ -218,6 +218,28 @@ function discoverDevices(input = {}) {
218
218
  body: input
219
219
  });
220
220
  }
221
+ //#endregion
222
+ //#region frontend/src/shared/drawer.tsx
223
+ var { Input, Label, TextField } = await importShared("@heroui/react");
224
+ function TextFieldRow({ label, value, onChange, placeholder, required, description, dataCy }) {
225
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TextField, {
226
+ value,
227
+ onChange,
228
+ isRequired: required,
229
+ children: [
230
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: label }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
232
+ placeholder,
233
+ autoComplete: "off",
234
+ "data-cy": dataCy
235
+ }),
236
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
237
+ className: "sh:mt-1 sh:text-xs sh:text-muted",
238
+ children: description
239
+ })
240
+ ]
241
+ });
242
+ }
221
243
  var en_default = {
222
244
  devices: {
223
245
  "title": "Shelly Devices",
@@ -269,9 +291,7 @@ var en_default = {
269
291
  "newDescription": "Protects the device's local web interface and API.",
270
292
  "error": "Could not set password",
271
293
  "required": "New password is required.",
272
- "save": "Save password",
273
- "show": "Show password",
274
- "hide": "Hide password"
294
+ "save": "Save password"
275
295
  },
276
296
  discovery: {
277
297
  "title": "Discover devices",
@@ -401,9 +421,7 @@ var de_default = {
401
421
  "newDescription": "Schützt die lokale Weboberfläche und API des Geräts.",
402
422
  "error": "Passwort konnte nicht festgelegt werden",
403
423
  "required": "Ein neues Passwort ist erforderlich.",
404
- "save": "Passwort speichern",
405
- "show": "Passwort anzeigen",
406
- "hide": "Passwort verbergen"
424
+ "save": "Passwort speichern"
407
425
  },
408
426
  discovery: {
409
427
  "title": "Geräte suchen",
@@ -490,96 +508,11 @@ var useShellyTranslations = () => useTranslations({
490
508
  de: de_default
491
509
  }, { escapeValues: false });
492
510
  //#endregion
493
- //#region frontend/src/shared/drawer.tsx
494
- var { Button: Button$6, Description, DrawerBackdrop, DrawerContent, DrawerDialog, Input, InputGroup, Label, TextField, Tooltip: Tooltip$2 } = await importShared("@heroui/react");
495
- var { EyeIcon: EyeIcon$1, EyeOffIcon: EyeOffIcon$1 } = await importShared("lucide-react");
496
- var { useState: useState$6 } = await importShared("react");
497
- var DRAWER_DIALOG_CLASSNAME = "sh:md:max-w-2xl sh:md:mx-auto sh:bg-surface-secondary";
498
- var FIELD_CONTRAST_STYLE = {
499
- ["--field-border"]: "var(--border-secondary)",
500
- ["--border-width-field"]: "1px"
501
- };
502
- function StandardDrawer({ isOpen, onOpenChange, children }) {
503
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerBackdrop, {
504
- isOpen,
505
- onOpenChange,
506
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerDialog, {
507
- className: DRAWER_DIALOG_CLASSNAME,
508
- style: FIELD_CONTRAST_STYLE,
509
- children
510
- }) })
511
- });
512
- }
513
- function TextFieldRow({ label, value, onChange, placeholder, required, description, dataCy }) {
514
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TextField, {
515
- value,
516
- onChange,
517
- isRequired: required,
518
- children: [
519
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: label }),
520
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
521
- placeholder,
522
- autoComplete: "off",
523
- "data-cy": dataCy
524
- }),
525
- description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
526
- className: "sh:mt-1 sh:text-xs sh:text-muted",
527
- children: description
528
- })
529
- ]
530
- });
531
- }
532
- function PasswordFieldRow({ label, value, onChange, description, required, dataCy, autoComplete }) {
533
- const { t } = useShellyTranslations();
534
- const [visible, setVisible] = useState$6(false);
535
- const toggleLabel = t(visible ? "password.hide" : "password.show");
536
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TextField, {
537
- value,
538
- onChange,
539
- isRequired: required,
540
- children: [
541
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label, { children: label }),
542
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InputGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroup.Input, {
543
- type: visible ? "text" : "password",
544
- autoComplete,
545
- "data-cy": dataCy
546
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroup.Suffix, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Tooltip$2, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$2.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$6, {
547
- isIconOnly: true,
548
- variant: "ghost",
549
- "aria-label": toggleLabel,
550
- onPress: () => setVisible((v) => !v),
551
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOffIcon$1, { className: "sh:h-4 sh:w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeIcon$1, { className: "sh:h-4 sh:w-4" })
552
- }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$2.Content, { children: toggleLabel })] }) })] }),
553
- description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, { children: description })
554
- ]
555
- });
556
- }
557
- //#endregion
558
- //#region frontend/src/shared/StatusAlert.tsx
559
- var { Alert, AlertContent, AlertDescription, AlertIndicator, AlertTitle } = await importShared("@heroui/react");
560
- var { AlertCircleIcon, AlertTriangleIcon, CheckCircle2Icon, InfoIcon: InfoIcon$2 } = await importShared("lucide-react");
561
- var iconByStatus = {
562
- default: InfoIcon$2,
563
- accent: InfoIcon$2,
564
- success: CheckCircle2Icon,
565
- warning: AlertTriangleIcon,
566
- danger: AlertCircleIcon
567
- };
568
- function StatusAlert({ status, title, children, dataCy }) {
569
- const Icon = iconByStatus[status];
570
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
571
- status,
572
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertContent, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: title }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, {
573
- "data-cy": dataCy,
574
- children
575
- })] })]
576
- });
577
- }
578
- //#endregion
579
511
  //#region frontend/src/devices/AddDeviceDrawer.tsx
580
- var { Button: Button$5, DrawerBody: DrawerBody$4, DrawerHeader: DrawerHeader$4, DrawerHeading: DrawerHeading$4, Form: Form$3 } = await importShared("@heroui/react");
512
+ var { DrawerBody: DrawerBody$4, DrawerHeader: DrawerHeader$4, DrawerHeading: DrawerHeading$4, Form: Form$3 } = await importShared("@heroui/react");
581
513
  var { PlusIcon: PlusIcon$1, XIcon: XIcon$4 } = await importShared("lucide-react");
582
514
  var { useCallback: useCallback$5, useRef: useRef$2, useState: useState$5 } = await importShared("react");
515
+ var { Button: Button$5, StandardDrawer: StandardDrawer$4, StatusAlert: StatusAlert$5 } = await importShared("@attraccess/plugins-frontend-ui");
583
516
  function AddDeviceDrawer({ isOpen, onOpenChange, onAdded }) {
584
517
  const { t, tMessage } = useShellyTranslations();
585
518
  const [ipAddress, setIpAddress] = useState$5("");
@@ -619,7 +552,7 @@ function AddDeviceDrawer({ isOpen, onOpenChange, onAdded }) {
619
552
  onAdded,
620
553
  close
621
554
  ]);
622
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer, {
555
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer$4, {
623
556
  isOpen,
624
557
  onOpenChange,
625
558
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerHeader$4, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
@@ -659,10 +592,10 @@ function AddDeviceDrawer({ isOpen, onOpenChange, onAdded }) {
659
592
  placeholder: t("add.placeholder"),
660
593
  dataCy: "shelly-add-name"
661
594
  }),
662
- error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
595
+ error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$5, {
663
596
  status: "danger",
664
597
  title: t("add.error"),
665
- dataCy: "shelly-add-error",
598
+ "data-cy": "shelly-add-error",
666
599
  children: tMessage(error)
667
600
  }),
668
601
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
@@ -694,9 +627,10 @@ function AddDeviceDrawer({ isOpen, onOpenChange, onAdded }) {
694
627
  }
695
628
  //#endregion
696
629
  //#region frontend/src/AdminPasswordDrawer.tsx
697
- var { Button: Button$4, DrawerBody: DrawerBody$3, DrawerFooter: DrawerFooter$2, DrawerHeader: DrawerHeader$3, DrawerHeading: DrawerHeading$3, Form: Form$2 } = await importShared("@heroui/react");
630
+ var { DrawerBody: DrawerBody$3, DrawerFooter: DrawerFooter$2, DrawerHeader: DrawerHeader$3, DrawerHeading: DrawerHeading$3, Form: Form$2 } = await importShared("@heroui/react");
698
631
  var { KeyRoundIcon: KeyRoundIcon$1, XIcon: XIcon$3 } = await importShared("lucide-react");
699
632
  var { useCallback: useCallback$4, useEffect: useEffect$3, useState: useState$4 } = await importShared("react");
633
+ var { Button: Button$4, PasswordInput: PasswordInput$2, StandardDrawer: StandardDrawer$3, StatusAlert: StatusAlert$4 } = await importShared("@attraccess/plugins-frontend-ui");
700
634
  function AdminPasswordDrawer({ device, onOpenChange, onSaved }) {
701
635
  const { t, tMessage } = useShellyTranslations();
702
636
  const [currentPassword, setCurrentPassword] = useState$4("");
@@ -743,7 +677,7 @@ function AdminPasswordDrawer({ device, onOpenChange, onSaved }) {
743
677
  event.preventDefault();
744
678
  submit();
745
679
  }, [submit]);
746
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer, {
680
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer$3, {
747
681
  isOpen: !!device,
748
682
  onOpenChange,
749
683
  children: [
@@ -776,27 +710,27 @@ function AdminPasswordDrawer({ device, onOpenChange, onSaved }) {
776
710
  onSubmit,
777
711
  className: "sh:flex sh:flex-col sh:gap-4",
778
712
  children: [
779
- device?.authState === "required" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordFieldRow, {
713
+ device?.authState === "required" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordInput$2, {
780
714
  label: t("password.current"),
781
715
  value: currentPassword,
782
716
  onChange: setCurrentPassword,
783
717
  description: t("password.currentDescription"),
784
718
  autoComplete: "current-password",
785
- dataCy: "shelly-auth-current-password"
719
+ "data-cy": "shelly-auth-current-password"
786
720
  }),
787
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordFieldRow, {
721
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordInput$2, {
788
722
  label: t("password.new"),
789
723
  value: password,
790
724
  onChange: setPassword,
791
725
  description: t("password.newDescription"),
792
- required: true,
726
+ isRequired: true,
793
727
  autoComplete: "new-password",
794
- dataCy: "shelly-auth-password"
728
+ "data-cy": "shelly-auth-password"
795
729
  }),
796
- error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
730
+ error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$4, {
797
731
  status: "danger",
798
732
  title: t("password.error"),
799
- dataCy: "shelly-auth-error",
733
+ "data-cy": "shelly-auth-error",
800
734
  children: tMessage(error)
801
735
  }),
802
736
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
@@ -825,8 +759,9 @@ function AdminPasswordDrawer({ device, onOpenChange, onSaved }) {
825
759
  }
826
760
  //#endregion
827
761
  //#region frontend/src/devices/info/DeviceInfoDrawer.tsx
828
- var { Button: Button$3, Card, DrawerBody: DrawerBody$2, DrawerFooter: DrawerFooter$1, DrawerHeader: DrawerHeader$2, DrawerHeading: DrawerHeading$2, Form: Form$1, Skeleton } = await importShared("@heroui/react");
829
- var { EyeIcon, EyeOffIcon, InfoIcon: InfoIcon$1, RefreshCwIcon: RefreshCwIcon$2, XIcon: XIcon$2 } = await importShared("lucide-react");
762
+ var { Button: Button$3, PasswordInput: PasswordInput$1, StandardDrawer: StandardDrawer$2, StatusAlert: StatusAlert$3, useDateTimeFormatter: useDateTimeFormatter$1 } = await importShared("@attraccess/plugins-frontend-ui");
763
+ var { Card, DrawerBody: DrawerBody$2, DrawerFooter: DrawerFooter$1, DrawerHeader: DrawerHeader$2, DrawerHeading: DrawerHeading$2, Form: Form$1, Skeleton } = await importShared("@heroui/react");
764
+ var { InfoIcon: InfoIcon$1, RefreshCwIcon: RefreshCwIcon$2, XIcon: XIcon$2 } = await importShared("lucide-react");
830
765
  var { useCallback: useCallback$3, useEffect: useEffect$2, useState: useState$3 } = await importShared("react");
831
766
  function formatInfoValue(value, t, language, suffix = "") {
832
767
  if (value === void 0 || value === null || value === "") return t("info.notReported");
@@ -974,7 +909,6 @@ function DeviceInfoCards({ info }) {
974
909
  }
975
910
  function AuthProtectedForm({ authState, currentPassword, onChange, loading, onLoad }) {
976
911
  const { t } = useShellyTranslations();
977
- const [visible, setVisible] = useState$3(false);
978
912
  if (authState !== "required") return null;
979
913
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
980
914
  className: "sh:rounded-md sh:border-l-4 sh:border-l-warning sh:bg-warning/5 sh:p-4",
@@ -989,23 +923,13 @@ function AuthProtectedForm({ authState, currentPassword, onChange, loading, onLo
989
923
  className: "sh:text-sm",
990
924
  children: t("info.auth")
991
925
  }),
992
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
993
- className: "sh:relative",
994
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextFieldRow, {
995
- label: t("password.title"),
996
- value: currentPassword,
997
- onChange,
998
- placeholder: t("info.passwordPlaceholder"),
999
- dataCy: "shelly-info-current-password"
1000
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$3, {
1001
- isIconOnly: true,
1002
- variant: "ghost",
1003
- size: "sm",
1004
- "aria-label": t(visible ? "password.hide" : "password.show"),
1005
- className: "sh:absolute sh:right-1 sh:top-6",
1006
- onPress: () => setVisible((v) => !v),
1007
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOffIcon, { className: "sh:h-4 sh:w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeIcon, { className: "sh:h-4 sh:w-4" })
1008
- })]
926
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordInput$1, {
927
+ label: t("password.title"),
928
+ value: currentPassword,
929
+ onChange,
930
+ placeholder: t("info.passwordPlaceholder"),
931
+ autoComplete: "current-password",
932
+ "data-cy": "shelly-info-current-password"
1009
933
  }),
1010
934
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1011
935
  className: "sh:flex sh:justify-end",
@@ -1027,7 +951,11 @@ function AuthProtectedForm({ authState, currentPassword, onChange, loading, onLo
1027
951
  });
1028
952
  }
1029
953
  function DeviceInfoDrawer({ device, onOpenChange }) {
1030
- const { t, language } = useShellyTranslations();
954
+ const { t } = useShellyTranslations();
955
+ const formatDateTime = useDateTimeFormatter$1({
956
+ showDate: false,
957
+ showSeconds: true
958
+ });
1031
959
  const [info, setInfo] = useState$3(null);
1032
960
  const [currentPassword, setCurrentPassword] = useState$3("");
1033
961
  const [loading, setLoading] = useState$3(false);
@@ -1055,7 +983,7 @@ function DeviceInfoDrawer({ device, onOpenChange }) {
1055
983
  useEffect$2(() => {
1056
984
  if (device && device.authState !== "required") load();
1057
985
  }, [device]);
1058
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer, {
986
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer$2, {
1059
987
  isOpen: !!device,
1060
988
  onOpenChange,
1061
989
  children: [
@@ -1091,7 +1019,7 @@ function DeviceInfoDrawer({ device, onOpenChange }) {
1091
1019
  loading,
1092
1020
  onLoad: () => void load()
1093
1021
  }),
1094
- error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1022
+ error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$3, {
1095
1023
  status: "danger",
1096
1024
  title: t("info.loadError"),
1097
1025
  children: error
@@ -1111,7 +1039,7 @@ function DeviceInfoDrawer({ device, onOpenChange }) {
1111
1039
  className: "sh:flex sh:w-full sh:items-center sh:justify-between sh:gap-3",
1112
1040
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1113
1041
  className: "sh:text-xs sh:text-default-500",
1114
- children: info ? t("info.updated", { time: new Date(info.fetchedAt).toLocaleTimeString(language) }) : ""
1042
+ children: info ? t("info.updated", { time: formatDateTime(info.fetchedAt) }) : ""
1115
1043
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$3, {
1116
1044
  variant: "secondary",
1117
1045
  onPress: () => void load(),
@@ -1129,7 +1057,8 @@ function DeviceInfoDrawer({ device, onOpenChange }) {
1129
1057
  }
1130
1058
  //#endregion
1131
1059
  //#region frontend/src/DiscoverDrawer.tsx
1132
- var { Button: Button$2, Chip: Chip$2, DrawerBody: DrawerBody$1, DrawerHeader: DrawerHeader$1, DrawerHeading: DrawerHeading$1, Form, Spinner: Spinner$2 } = await importShared("@heroui/react");
1060
+ var { Button: Button$2, StandardDrawer: StandardDrawer$1, StatusAlert: StatusAlert$2 } = await importShared("@attraccess/plugins-frontend-ui");
1061
+ var { Chip: Chip$2, DrawerBody: DrawerBody$1, DrawerHeader: DrawerHeader$1, DrawerHeading: DrawerHeading$1, Form, Spinner: Spinner$1 } = await importShared("@heroui/react");
1133
1062
  var { SearchIcon: SearchIcon$1, XIcon: XIcon$1 } = await importShared("lucide-react");
1134
1063
  var { useCallback: useCallback$2, useRef: useRef$1, useState: useState$2 } = await importShared("react");
1135
1064
  function ResultSummary({ result }) {
@@ -1140,7 +1069,7 @@ function ResultSummary({ result }) {
1140
1069
  className: "sh:flex sh:flex-col sh:gap-3",
1141
1070
  "data-cy": "shelly-discover-result",
1142
1071
  children: [
1143
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1072
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$2, {
1144
1073
  status: result.devices.length > 0 ? "success" : "warning",
1145
1074
  title: result.devices.length > 0 ? t("discovery.found", {
1146
1075
  count: result.devices.length,
@@ -1211,7 +1140,7 @@ function DiscoverDrawer({ isOpen, onOpenChange, onDiscovered }) {
1211
1140
  setRunning(false);
1212
1141
  }
1213
1142
  }, [cidr, onDiscovered]);
1214
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer, {
1143
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StandardDrawer$1, {
1215
1144
  isOpen,
1216
1145
  onOpenChange,
1217
1146
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerHeader$1, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
@@ -1244,15 +1173,15 @@ function DiscoverDrawer({ isOpen, onOpenChange, onDiscovered }) {
1244
1173
  description: t("discovery.subnetDescription"),
1245
1174
  dataCy: "shelly-discover-cidr"
1246
1175
  }),
1247
- error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1176
+ error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$2, {
1248
1177
  status: "danger",
1249
1178
  title: t("discovery.error"),
1250
- dataCy: "shelly-discover-error",
1179
+ "data-cy": "shelly-discover-error",
1251
1180
  children: error
1252
1181
  }),
1253
1182
  running && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1254
1183
  className: "sh:flex sh:items-center sh:gap-3 sh:text-sm sh:text-muted",
1255
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner$2, {
1184
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner$1, {
1256
1185
  color: "accent",
1257
1186
  size: "sm"
1258
1187
  }), t("discovery.running")]
@@ -1388,7 +1317,8 @@ function useFirmwareDrawerState({ device, onOpenChange, onUpdated }) {
1388
1317
  }
1389
1318
  //#endregion
1390
1319
  //#region frontend/src/devices/firmware/FirmwareDrawer.tsx
1391
- var { Button: Button$1, DrawerBody, DrawerFooter, DrawerHeader, DrawerHeading, Spinner: Spinner$1, Tooltip: Tooltip$1 } = await importShared("@heroui/react");
1320
+ var { Button: Button$1, EmptyState: EmptyState$1, PasswordInput, StandardDrawer, StatusAlert: StatusAlert$1, TableDataLoadingIndicator: TableDataLoadingIndicator$1, useDateTimeFormatter } = await importShared("@attraccess/plugins-frontend-ui");
1321
+ var { DrawerBody, DrawerFooter, DrawerHeader, DrawerHeading, Spinner, Tooltip: Tooltip$1 } = await importShared("@heroui/react");
1392
1322
  var { ArrowUpCircleIcon, CpuIcon: CpuIcon$1, DownloadIcon, RefreshCwIcon: RefreshCwIcon$1, XIcon } = await importShared("lucide-react");
1393
1323
  function shortVersion(version) {
1394
1324
  const tail = version.split("/").pop();
@@ -1455,11 +1385,9 @@ function VersionRow({ label, value }) {
1455
1385
  }
1456
1386
  var UPDATE_TIMEOUT_MS = 3e5;
1457
1387
  function FirmwareDetails({ status }) {
1458
- const { t, language } = useShellyTranslations();
1459
- if (!status) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1460
- className: "sh:rounded-xl sh:border sh:border-dashed sh:border-default-300 sh:p-4 sh:text-sm sh:text-default-500",
1461
- children: t("firmware.empty")
1462
- });
1388
+ const { t } = useShellyTranslations();
1389
+ const formatDateTime = useDateTimeFormatter({ showSeconds: true });
1390
+ if (!status) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState$1, { message: t("firmware.empty") });
1463
1391
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
1464
1392
  className: "sh:rounded-xl sh:border sh:border-default-200 sh:bg-surface sh:p-4",
1465
1393
  "data-cy": "shelly-firmware-details",
@@ -1478,7 +1406,7 @@ function FirmwareDetails({ status }) {
1478
1406
  }),
1479
1407
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VersionRow, {
1480
1408
  label: t("firmware.checked"),
1481
- value: new Date(status.fetchedAt).toLocaleString(language)
1409
+ value: String(formatDateTime(status.fetchedAt))
1482
1410
  })
1483
1411
  ]
1484
1412
  });
@@ -1521,27 +1449,27 @@ function FirmwareDrawer({ device, onOpenChange, onUpdated }) {
1521
1449
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DrawerBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1522
1450
  className: "sh:flex sh:flex-col sh:gap-4",
1523
1451
  children: [
1524
- device?.authState === "required" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordFieldRow, {
1452
+ device?.authState === "required" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordInput, {
1525
1453
  label: t("password.current"),
1526
1454
  value: currentPassword,
1527
1455
  onChange: setCurrentPassword,
1528
1456
  description: t("password.currentDescription"),
1529
1457
  autoComplete: "current-password",
1530
- dataCy: "shelly-firmware-current-password"
1458
+ "data-cy": "shelly-firmware-current-password"
1531
1459
  }),
1532
- error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1460
+ error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$1, {
1533
1461
  status: "danger",
1534
1462
  title: t("firmware.error"),
1535
- dataCy: "shelly-firmware-error",
1463
+ "data-cy": "shelly-firmware-error",
1536
1464
  children: tMessage(error)
1537
1465
  }),
1538
- installing && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1466
+ installing && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$1, {
1539
1467
  status: "accent",
1540
1468
  title: t("firmware.running"),
1541
- dataCy: "shelly-firmware-progress",
1469
+ "data-cy": "shelly-firmware-progress",
1542
1470
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1543
1471
  className: "sh:flex sh:items-center sh:gap-2",
1544
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner$1, {
1472
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, {
1545
1473
  size: "sm",
1546
1474
  color: "accent"
1547
1475
  }), t("firmware.installing", {
@@ -1550,16 +1478,13 @@ function FirmwareDrawer({ device, onOpenChange, onUpdated }) {
1550
1478
  })]
1551
1479
  })
1552
1480
  }),
1553
- installedVersion && !installing && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1481
+ installedVersion && !installing && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert$1, {
1554
1482
  status: "success",
1555
1483
  title: t("firmware.finished"),
1556
- dataCy: "shelly-firmware-success",
1484
+ "data-cy": "shelly-firmware-success",
1557
1485
  children: t("firmware.success", { version: installedVersion })
1558
1486
  }),
1559
- loading && !status ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1560
- className: "sh:flex sh:items-center sh:justify-center sh:p-6",
1561
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner$1, { color: "accent" })
1562
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirmwareDetails, { status })
1487
+ loading && !status ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableDataLoadingIndicator$1, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirmwareDetails, { status })
1563
1488
  ]
1564
1489
  }) }),
1565
1490
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DrawerFooter, {
@@ -1767,8 +1692,9 @@ function useDevicesPageState() {
1767
1692
  }
1768
1693
  //#endregion
1769
1694
  //#region frontend/src/devices/DevicesPage.tsx
1770
- var { Button, Chip, Dropdown, DropdownItem, DropdownMenu, DropdownPopover, DropdownTrigger, Modal, ModalBackdrop, ModalBody, ModalContainer, ModalDialog, ModalFooter, ModalHeader, ModalHeading, Spinner, Table, TableBody, TableColumn, TableContent, TableHeader, TableScrollContainer, Tooltip } = await importShared("@heroui/react");
1771
- var { CpuIcon, InfoIcon, KeyRoundIcon, MehIcon, MoreVerticalIcon, PlusIcon, RefreshCwIcon, SearchIcon, Trash2Icon, TriangleAlertIcon, WifiIcon: WifiIcon$1 } = await importShared("lucide-react");
1695
+ var { Button, EmptyState, PageHeader, StatusAlert, StatusDialog, TableDataLoadingIndicator } = await importShared("@attraccess/plugins-frontend-ui");
1696
+ var { Chip, Dropdown, DropdownItem, DropdownMenu, DropdownPopover, DropdownTrigger, Table, TableBody, TableColumn, TableContent, TableHeader, TableScrollContainer, Tooltip } = await importShared("@heroui/react");
1697
+ var { CpuIcon, InfoIcon, KeyRoundIcon, MoreVerticalIcon, PlusIcon, RefreshCwIcon, SearchIcon, Trash2Icon, TriangleAlertIcon, WifiIcon: WifiIcon$1 } = await importShared("lucide-react");
1772
1698
  function AuthChip({ state }) {
1773
1699
  const { t } = useShellyTranslations();
1774
1700
  const { color } = {
@@ -1787,28 +1713,18 @@ function AuthChip({ state }) {
1787
1713
  function EmptyDevices({ onAdd }) {
1788
1714
  const { t } = useShellyTranslations();
1789
1715
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1790
- className: "sh:flex sh:flex-col sh:items-center sh:justify-center sh:gap-3 sh:px-4 sh:py-12",
1791
- children: [
1792
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MehIcon, {
1793
- size: 36,
1794
- className: "sh:text-default-300"
1795
- }),
1796
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1797
- className: "sh:text-sm sh:text-default-500",
1798
- children: t("devices.empty")
1799
- }),
1800
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
1801
- variant: "secondary",
1802
- size: "sm",
1803
- onPress: onAdd,
1804
- "data-cy": "shelly-add-open-empty",
1805
- children: [
1806
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlusIcon, { className: "sh:h-4 sh:w-4" }),
1807
- " ",
1808
- t("devices.add")
1809
- ]
1810
- })
1811
- ]
1716
+ className: "sh:flex sh:flex-col sh:items-center sh:justify-center sh:gap-3 sh:pb-6",
1717
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, { message: t("devices.empty") }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
1718
+ variant: "secondary",
1719
+ size: "sm",
1720
+ onPress: onAdd,
1721
+ "data-cy": "shelly-add-open-empty",
1722
+ children: [
1723
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlusIcon, { className: "sh:h-4 sh:w-4" }),
1724
+ " ",
1725
+ t("devices.add")
1726
+ ]
1727
+ })]
1812
1728
  });
1813
1729
  }
1814
1730
  function ProbeErrorIndicator({ message }) {
@@ -1897,49 +1813,33 @@ function DevicesPage() {
1897
1813
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1898
1814
  className: "sh:mx-auto sh:flex sh:w-full sh:max-w-5xl sh:flex-col sh:gap-6 sh:p-4 sh:md:p-6",
1899
1815
  children: [
1900
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1901
- className: "sh:flex sh:w-full sh:flex-wrap sh:items-center sh:justify-between sh:gap-y-4",
1902
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1903
- className: "sh:flex sh:items-center sh:gap-3",
1904
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(WifiIcon$1, { className: "sh:h-6 sh:w-6 sh:text-accent-soft-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
1905
- className: "sh:text-2xl sh:font-bold",
1906
- children: t("devices.title")
1907
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1908
- className: "sh:mt-1 sh:text-sm sh:text-muted",
1909
- children: t("devices.description")
1910
- })] })]
1911
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1912
- className: "sh:flex sh:flex-wrap sh:gap-2",
1913
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
1914
- variant: "secondary",
1915
- onPress: discoverDrawer.open,
1916
- "data-cy": "shelly-discover-open",
1917
- children: [
1918
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SearchIcon, { className: "sh:h-4 sh:w-4" }),
1919
- " ",
1920
- t("devices.discover")
1921
- ]
1922
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
1923
- variant: "primary",
1924
- onPress: addDrawer.open,
1925
- "data-cy": "shelly-add-open",
1926
- children: [
1927
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlusIcon, { className: "sh:h-4 sh:w-4" }),
1928
- " ",
1929
- t("devices.add")
1930
- ]
1931
- })]
1932
- })]
1816
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeader, {
1817
+ noMargin: true,
1818
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WifiIcon$1, { className: "sh:h-6 sh:w-6 sh:text-accent-soft-foreground" }),
1819
+ title: t("devices.title"),
1820
+ subtitle: t("devices.description"),
1821
+ actions: [{
1822
+ key: "discover",
1823
+ label: t("devices.discover"),
1824
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SearchIcon, { className: "sh:h-4 sh:w-4" }),
1825
+ variant: "secondary",
1826
+ onPress: discoverDrawer.open,
1827
+ dataCy: "shelly-discover-open"
1828
+ }, {
1829
+ key: "add",
1830
+ label: t("devices.add"),
1831
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlusIcon, { className: "sh:h-4 sh:w-4" }),
1832
+ variant: "primary",
1833
+ onPress: addDrawer.open,
1834
+ dataCy: "shelly-add-open"
1835
+ }]
1933
1836
  }),
1934
1837
  pageError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusAlert, {
1935
1838
  status: "danger",
1936
1839
  title: t("devices.loadError"),
1937
1840
  children: pageError
1938
1841
  }),
1939
- loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1940
- className: "sh:flex sh:items-center sh:justify-center sh:p-6",
1941
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { color: "accent" })
1942
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Table, {
1842
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableDataLoadingIndicator, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Table, {
1943
1843
  "data-cy": "shelly-device-table",
1944
1844
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableScrollContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableContent, {
1945
1845
  "aria-label": t("devices.table"),
@@ -2013,38 +1913,24 @@ function DevicesPage() {
2013
1913
  onOpenChange: (open) => !open && setFirmwareDevice(null),
2014
1914
  onUpdated: () => void refreshFirmware(devices)
2015
1915
  }),
2016
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Modal, {
1916
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusDialog, {
2017
1917
  isOpen: !!deleteTarget,
2018
- onOpenChange: (open) => {
2019
- if (!open) setDeleteTarget(null);
1918
+ onClose: () => setDeleteTarget(null),
1919
+ status: "error",
1920
+ title: t("devices.delete"),
1921
+ action: {
1922
+ label: t("common.delete"),
1923
+ onPress: confirmDelete,
1924
+ isPending: deleting,
1925
+ "data-cy": "shelly-delete-confirm"
2020
1926
  },
1927
+ closeLabel: t("common.cancel"),
1928
+ closeDataCy: "shelly-delete-cancel",
2021
1929
  "data-cy": "shelly-delete-confirmation-modal",
2022
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalBackdrop, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalContainer, {
2023
- size: "sm",
2024
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ModalDialog, { children: [
2025
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalHeading, { children: t("devices.delete") }) }),
2026
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: t("devices.deleteDescription", {
2027
- name: deleteTarget?.name,
2028
- address: deleteTarget?.ipAddress
2029
- }) }) }),
2030
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ModalFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
2031
- variant: "secondary",
2032
- onPress: () => setDeleteTarget(null),
2033
- "data-cy": "shelly-delete-cancel",
2034
- children: t("common.cancel")
2035
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
2036
- variant: "danger",
2037
- onPress: confirmDelete,
2038
- isPending: deleting,
2039
- "data-cy": "shelly-delete-confirm",
2040
- children: [
2041
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2Icon, { className: "sh:h-4 sh:w-4" }),
2042
- " ",
2043
- t("common.delete")
2044
- ]
2045
- })] })
2046
- ] })
2047
- }) })
1930
+ children: t("devices.deleteDescription", {
1931
+ name: deleteTarget?.name,
1932
+ address: deleteTarget?.ipAddress
1933
+ })
2048
1934
  })
2049
1935
  ]
2050
1936
  });
@@ -75,7 +75,7 @@ var exportSet = /* @__PURE__ */ new Set([
75
75
  ]);
76
76
  var moduleMap = { "./plugin": () => {
77
77
  dynamicLoadingCss(["style.css"], false, "./plugin");
78
- return __federation_import("./__federation_expose_Plugin-hm26oJAA.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
78
+ return __federation_import("./__federation_expose_Plugin-1PLBb5VH.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
79
79
  } };
80
80
  var seen = {};
81
81
  var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
@@ -11,7 +11,6 @@
11
11
 
12
12
  :root, :host {
13
13
  --sh-spacing: .25rem;
14
- --sh-container-2xl: 42rem;
15
14
  --sh-container-5xl: 64rem;
16
15
  --sh-text-xs: .75rem;
17
16
  --sh-text-xs--line-height: calc(1 / .75);
@@ -19,30 +18,11 @@
19
18
  --sh-text-sm--line-height: calc(1.25 / .875);
20
19
  --sh-text-lg: 1.125rem;
21
20
  --sh-text-lg--line-height: calc(1.75 / 1.125);
22
- --sh-text-2xl: 1.5rem;
23
- --sh-text-2xl--line-height: calc(2 / 1.5);
24
21
  --sh-font-weight-medium: 500;
25
22
  --sh-font-weight-semibold: 600;
26
- --sh-font-weight-bold: 700;
27
23
  --sh-tracking-wide: .025em;
28
24
  }
29
25
 
30
- .sh\:absolute {
31
- position: absolute;
32
- }
33
-
34
- .sh\:relative {
35
- position: relative;
36
- }
37
-
38
- .sh\:top-6 {
39
- top: calc(var(--sh-spacing) * 6);
40
- }
41
-
42
- .sh\:right-1 {
43
- right: var(--sh-spacing);
44
- }
45
-
46
26
  .sh\:mx-auto {
47
27
  margin-inline: auto;
48
28
  }
@@ -195,10 +175,6 @@
195
175
  gap: calc(var(--sh-spacing) * 6);
196
176
  }
197
177
 
198
- .sh\:gap-y-4 {
199
- row-gap: calc(var(--sh-spacing) * 4);
200
- }
201
-
202
178
  .sh\:truncate {
203
179
  text-overflow: ellipsis;
204
180
  white-space: nowrap;
@@ -232,11 +208,6 @@
232
208
  border-left-width: 4px;
233
209
  }
234
210
 
235
- .sh\:border-dashed {
236
- --tw-border-style: dashed;
237
- border-style: dashed;
238
- }
239
-
240
211
  .sh\:border-l-warning {
241
212
  border-left-color: var(--warning);
242
213
  }
@@ -245,10 +216,6 @@
245
216
  background-color: var(--surface);
246
217
  }
247
218
 
248
- .sh\:bg-surface-secondary {
249
- background-color: var(--surface-secondary);
250
- }
251
-
252
219
  .sh\:bg-warning\/5 {
253
220
  background-color: var(--warning);
254
221
  }
@@ -263,26 +230,14 @@
263
230
  padding: calc(var(--sh-spacing) * 4);
264
231
  }
265
232
 
266
- .sh\:p-6 {
267
- padding: calc(var(--sh-spacing) * 6);
268
- }
269
-
270
233
  .sh\:px-3 {
271
234
  padding-inline: calc(var(--sh-spacing) * 3);
272
235
  }
273
236
 
274
- .sh\:px-4 {
275
- padding-inline: calc(var(--sh-spacing) * 4);
276
- }
277
-
278
237
  .sh\:py-2 {
279
238
  padding-block: calc(var(--sh-spacing) * 2);
280
239
  }
281
240
 
282
- .sh\:py-12 {
283
- padding-block: calc(var(--sh-spacing) * 12);
284
- }
285
-
286
241
  .sh\:pt-2 {
287
242
  padding-top: calc(var(--sh-spacing) * 2);
288
243
  }
@@ -291,13 +246,12 @@
291
246
  padding-bottom: 0;
292
247
  }
293
248
 
294
- .sh\:text-end {
295
- text-align: end;
249
+ .sh\:pb-6 {
250
+ padding-bottom: calc(var(--sh-spacing) * 6);
296
251
  }
297
252
 
298
- .sh\:text-2xl {
299
- font-size: var(--sh-text-2xl);
300
- line-height: var(--tw-leading, var(--sh-text-2xl--line-height));
253
+ .sh\:text-end {
254
+ text-align: end;
301
255
  }
302
256
 
303
257
  .sh\:text-lg {
@@ -315,11 +269,6 @@
315
269
  line-height: var(--tw-leading, var(--sh-text-xs--line-height));
316
270
  }
317
271
 
318
- .sh\:font-bold {
319
- --tw-font-weight: var(--sh-font-weight-bold);
320
- font-weight: var(--sh-font-weight-bold);
321
- }
322
-
323
272
  .sh\:font-medium {
324
273
  --tw-font-weight: var(--sh-font-weight-medium);
325
274
  font-weight: var(--sh-font-weight-medium);
@@ -387,10 +336,6 @@
387
336
  }
388
337
 
389
338
  @media (min-width: 48rem) {
390
- .sh\:md\:mx-auto {
391
- margin-inline: auto;
392
- }
393
-
394
339
  .sh\:md\:block {
395
340
  display: block;
396
341
  }
@@ -399,10 +344,6 @@
399
344
  display: none;
400
345
  }
401
346
 
402
- .sh\:md\:max-w-2xl {
403
- max-width: var(--sh-container-2xl);
404
- }
405
-
406
347
  .sh\:md\:p-6 {
407
348
  padding: calc(var(--sh-spacing) * 6);
408
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attraccess/plugin-shelly",
3
- "version": "0.1.0-nightly.1088.1",
3
+ "version": "0.1.0-nightly.1105.1",
4
4
  "description": "Official Attraccess integration for Shelly devices.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {