@seamapi/react 1.60.3 → 1.61.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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/elements.js +4112 -4027
  3. package/dist/elements.js.map +1 -1
  4. package/dist/index.css +64 -4
  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/Search.js +2 -2
  9. package/lib/icons/Search.js.map +1 -1
  10. package/lib/seam/components/AccessCodeTable/AccessCodeTable.js +7 -2
  11. package/lib/seam/components/AccessCodeTable/AccessCodeTable.js.map +1 -1
  12. package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js +4 -5
  13. package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js.map +1 -1
  14. package/lib/seam/components/DeviceTable/DeviceTable.js +4 -5
  15. package/lib/seam/components/DeviceTable/DeviceTable.js.map +1 -1
  16. package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js +1 -1
  17. package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js.map +1 -1
  18. package/lib/ui/LoadingToast/LoadingToast.d.ts +9 -0
  19. package/lib/ui/LoadingToast/LoadingToast.js +34 -0
  20. package/lib/ui/LoadingToast/LoadingToast.js.map +1 -0
  21. package/lib/version.d.ts +1 -1
  22. package/lib/version.js +1 -1
  23. package/package.json +1 -1
  24. package/src/lib/icons/Search.tsx +7 -7
  25. package/src/lib/seam/components/AccessCodeTable/AccessCodeTable.tsx +14 -1
  26. package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.tsx +10 -5
  27. package/src/lib/seam/components/DeviceTable/DeviceTable.tsx +10 -5
  28. package/src/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.tsx +1 -1
  29. package/src/lib/ui/LoadingToast/LoadingToast.tsx +62 -0
  30. package/src/lib/version.ts +1 -1
  31. package/src/styles/_inputs.scss +13 -1
  32. package/src/styles/_loading_toast.scss +59 -0
  33. package/src/styles/_main.scss +2 -0
  34. package/src/styles/_spinner.scss +1 -1
  35. package/src/styles/_supported-device-table.scss +2 -2
  36. package/src/styles/_tables.scss +9 -0
@@ -0,0 +1,59 @@
1
+ @use './colors';
2
+
3
+ @keyframes scale-in {
4
+ 0% {
5
+ transform: scale(0.5);
6
+ opacity: 0;
7
+ visibility: hidden;
8
+ }
9
+
10
+ 100% {
11
+ transform: scale(1);
12
+ opacity: 1;
13
+ visibility: visible;
14
+ }
15
+ }
16
+
17
+ @mixin all {
18
+ .seam-loading-toast {
19
+ height: 32px;
20
+ padding: 0 10px;
21
+ display: flex;
22
+ justify-content: center;
23
+ align-items: center;
24
+ flex-direction: row;
25
+ border-radius: 6px;
26
+ background: colors.$bg-a;
27
+ box-shadow:
28
+ 0 1px 5px 0 rgb(24 29 37 / 6%),
29
+ 0 0 1px 0 rgb(24 29 37 / 25%);
30
+ gap: 8px;
31
+ will-change: transform;
32
+ animation: scale-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
33
+ transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
34
+ pointer-events: none;
35
+ position: absolute;
36
+ z-index: 9;
37
+
38
+ &.seam-loading-toast-hide {
39
+ transform: scale(0.5);
40
+ opacity: 0;
41
+ visibility: hidden;
42
+ }
43
+
44
+ .seam-loading-toast-icon-wrap {
45
+ width: 18px;
46
+ height: 18px;
47
+ display: flex;
48
+ justify-content: center;
49
+ align-items: center;
50
+ }
51
+
52
+ .seam-loading-toast-text {
53
+ font-size: 14px;
54
+ font-weight: 400;
55
+ line-height: 1;
56
+ white-space: nowrap;
57
+ }
58
+ }
59
+ }
@@ -5,6 +5,7 @@
5
5
  @use './alert';
6
6
  @use './buttons';
7
7
  @use './layout';
8
+ @use './loading_toast';
8
9
  @use './colors';
9
10
  @use './icons';
10
11
  @use './menus';
@@ -38,6 +39,7 @@
38
39
  @include form-field.all;
39
40
  @include buttons.all;
40
41
  @include layout.all;
42
+ @include loading_toast.all;
41
43
  @include icons.all;
42
44
  @include menus.all;
43
45
  @include checkbox.all;
@@ -18,7 +18,7 @@
18
18
  width: $default-size;
19
19
  height: $default-size;
20
20
  border: $default-border-width solid colors.$primary;
21
- border-top: $default-border-width solid colors.$white;
21
+ border-top: $default-border-width solid transparent;
22
22
  display: inline-block;
23
23
  border-radius: 50%;
24
24
  animation: spin 0.5s linear infinite;
@@ -126,9 +126,9 @@ $row-padding: 8px;
126
126
  background: colors.$white;
127
127
  display: flex;
128
128
  height: 30px;
129
- padding: 4px 24px;
129
+ padding: 5px 24px 4px 16px;
130
130
  align-items: center;
131
- gap: 10px;
131
+ gap: 2px;
132
132
  font-size: 14px;
133
133
  line-height: 115%;
134
134
  color: colors.$text-gray-1;
@@ -14,6 +14,15 @@
14
14
  align-items: center;
15
15
  width: 100%;
16
16
  }
17
+
18
+ .seam-table-header-loading-wrap {
19
+ width: 100%;
20
+ position: absolute;
21
+ left: 0;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-items: center;
25
+ }
17
26
  }
18
27
 
19
28
  .seam-table-title {