@sats-group/ui-lib 74.2.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 (227) hide show
  1. package/.nvmrc +1 -0
  2. package/README.md +35 -0
  3. package/catalog-info.yaml +14 -0
  4. package/eslint.config.mjs +94 -0
  5. package/fonts/Inter-BoldItalic.woff +0 -0
  6. package/fonts/Inter-BoldItalic.woff2 +0 -0
  7. package/fonts/Inter-ExtraBold.woff +0 -0
  8. package/fonts/Inter-ExtraBold.woff2 +0 -0
  9. package/fonts/Inter-Italic.woff +0 -0
  10. package/fonts/Inter-Italic.woff2 +0 -0
  11. package/fonts/Inter-Regular.woff +0 -0
  12. package/fonts/Inter-Regular.woff2 +0 -0
  13. package/fonts/Inter-SemiBold.woff +0 -0
  14. package/fonts/Inter-SemiBold.woff2 +0 -0
  15. package/fonts/LICENSE.txt +92 -0
  16. package/fonts/SATSHeadline-Bold.woff +0 -0
  17. package/fonts/SATSHeadline-BoldItalic.woff +0 -0
  18. package/fonts/SATSHeadline-RegularItalic.woff +0 -0
  19. package/fonts/SATSHeadline-SemiBoldItalic.woff +0 -0
  20. package/logos/e-avatar.svg +3 -0
  21. package/logos/elixia-letter.svg +3 -0
  22. package/logos/elixia-small.svg +8 -0
  23. package/logos/elixia.svg +8 -0
  24. package/logos/s-avatar.svg +3 -0
  25. package/logos/sats-letter.svg +3 -0
  26. package/logos/sats-small.svg +3 -0
  27. package/logos/sats.svg +4 -0
  28. package/package.json +58 -0
  29. package/react/add-bem-modifiers.ts +51 -0
  30. package/react/badge/badge.scss +53 -0
  31. package/react/badge/badge.tsx +28 -0
  32. package/react/badge/badge.types.ts +34 -0
  33. package/react/badge/index.ts +2 -0
  34. package/react/banner/banner.scss +118 -0
  35. package/react/banner/banner.tsx +92 -0
  36. package/react/banner/banner.types.ts +10 -0
  37. package/react/banner/index.ts +2 -0
  38. package/react/bomb/bomb.scss +33 -0
  39. package/react/bomb/bomb.tsx +19 -0
  40. package/react/bomb/bomb.types.ts +1 -0
  41. package/react/bomb/index.ts +2 -0
  42. package/react/button/button.tsx +19 -0
  43. package/react/button/button.types.ts +3 -0
  44. package/react/button/index.ts +2 -0
  45. package/react/checkbox/checkbox.scss +218 -0
  46. package/react/checkbox/checkbox.tsx +176 -0
  47. package/react/checkbox/checkbox.types.ts +19 -0
  48. package/react/checkbox/index.ts +2 -0
  49. package/react/chip/chip.scss +46 -0
  50. package/react/chip/chip.tsx +37 -0
  51. package/react/chip/chip.types.ts +18 -0
  52. package/react/chip/index.ts +2 -0
  53. package/react/chip/remove.tsx +14 -0
  54. package/react/chip-selected/chip-selected.scss +47 -0
  55. package/react/chip-selected/chip-selected.tsx +102 -0
  56. package/react/chip-selected/chip-selected.types.ts +11 -0
  57. package/react/chip-selected/index.ts +2 -0
  58. package/react/confirmation/confirmation.scss +60 -0
  59. package/react/confirmation/confirmation.tsx +85 -0
  60. package/react/confirmation/confirmation.types.ts +24 -0
  61. package/react/confirmation/index.ts +2 -0
  62. package/react/context-menu/context-menu.scss +183 -0
  63. package/react/context-menu/context-menu.tsx +200 -0
  64. package/react/context-menu/context-menu.types.ts +71 -0
  65. package/react/context-menu/index.ts +2 -0
  66. package/react/cropped-image/cropped-image.scss +48 -0
  67. package/react/cropped-image/cropped-image.tsx +36 -0
  68. package/react/cropped-image/cropped-image.types.ts +26 -0
  69. package/react/cropped-image/index.ts +2 -0
  70. package/react/dropdown-list/dropdown-list.scss +170 -0
  71. package/react/dropdown-list/dropdown-list.tsx +116 -0
  72. package/react/dropdown-list/dropdown-list.types.ts +17 -0
  73. package/react/dropdown-list/index.ts +2 -0
  74. package/react/expander/expander.scss +115 -0
  75. package/react/expander/expander.tsx +167 -0
  76. package/react/expander/expander.types.ts +26 -0
  77. package/react/expander/index.ts +2 -0
  78. package/react/filter/filter.scss +94 -0
  79. package/react/filter/filter.tsx +99 -0
  80. package/react/filter/filter.types.ts +8 -0
  81. package/react/filter/index.ts +2 -0
  82. package/react/filter-wrapper/filter-wrapper.scss +46 -0
  83. package/react/filter-wrapper/filter-wrapper.tsx +24 -0
  84. package/react/filter-wrapper/filter-wrapper.types.ts +10 -0
  85. package/react/filter-wrapper/index.ts +2 -0
  86. package/react/flag/flag.scss +26 -0
  87. package/react/flag/flag.tsx +27 -0
  88. package/react/flag/flag.types.ts +17 -0
  89. package/react/flag/index.ts +2 -0
  90. package/react/form-content/checkbox-category.tsx +183 -0
  91. package/react/form-content/form-content.checkbox-list.tsx +126 -0
  92. package/react/form-content/form-content.checkbox-list.types.ts +36 -0
  93. package/react/form-content/form-content.radio-list.tsx +58 -0
  94. package/react/form-content/form-content.range.tsx +20 -0
  95. package/react/form-content/form-content.range.types.ts +14 -0
  96. package/react/form-content/form-content.scss +234 -0
  97. package/react/form-content/form-content.search.tsx +47 -0
  98. package/react/form-content/form-content.tsx +95 -0
  99. package/react/form-content/form-content.types.ts +55 -0
  100. package/react/form-content/index.ts +2 -0
  101. package/react/form-content/types/index.d.ts +1 -0
  102. package/react/hidden-input/hidden-input.tsx +9 -0
  103. package/react/hidden-input/hidden-input.types.ts +6 -0
  104. package/react/hidden-input/index.ts +2 -0
  105. package/react/hooks/focus-previous-element.ts +30 -0
  106. package/react/hooks/is-running-on-client.ts +1 -0
  107. package/react/hooks/use-click-outside.ts +23 -0
  108. package/react/hooks/use-escape.ts +18 -0
  109. package/react/hooks/use-event.ts +29 -0
  110. package/react/hooks/use-is-mounted.ts +11 -0
  111. package/react/hooks/use-toggle.ts +19 -0
  112. package/react/icons/16/close.tsx +12 -0
  113. package/react/icons/18/close.tsx +18 -0
  114. package/react/icons/24/arrow-down.tsx +14 -0
  115. package/react/icons/24/arrow-right.tsx +14 -0
  116. package/react/icons/24/arrow-up.tsx +14 -0
  117. package/react/icons/24/close.tsx +12 -0
  118. package/react/icons/24/remove.tsx +12 -0
  119. package/react/icons/24/search.tsx +10 -0
  120. package/react/icons/icons.md +3 -0
  121. package/react/indexed-access-type.ts +1 -0
  122. package/react/link/index.ts +2 -0
  123. package/react/link/link.scss +44 -0
  124. package/react/link/link.tsx +62 -0
  125. package/react/link/link.types.ts +37 -0
  126. package/react/link-button/index.ts +2 -0
  127. package/react/link-button/link-button.tsx +17 -0
  128. package/react/link-button/link-button.types.ts +5 -0
  129. package/react/link-card/index.ts +2 -0
  130. package/react/link-card/link-card.scss +37 -0
  131. package/react/link-card/link-card.tsx +24 -0
  132. package/react/link-card/link-card.types.ts +5 -0
  133. package/react/logos/e-avatar.tsx +12 -0
  134. package/react/logos/elixia-letter.tsx +12 -0
  135. package/react/logos/elixia-small.tsx +12 -0
  136. package/react/logos/elixia.tsx +12 -0
  137. package/react/logos/index.ts +8 -0
  138. package/react/logos/s-avatar.tsx +12 -0
  139. package/react/logos/sats-letter.tsx +12 -0
  140. package/react/logos/sats-small.tsx +12 -0
  141. package/react/logos/sats.tsx +12 -0
  142. package/react/message/hook/use-message.ts +22 -0
  143. package/react/message/index.ts +2 -0
  144. package/react/message/message.scss +92 -0
  145. package/react/message/message.tsx +60 -0
  146. package/react/message/message.types.ts +39 -0
  147. package/react/message/publish.ts +19 -0
  148. package/react/message-field/index.ts +2 -0
  149. package/react/message-field/message-field.scss +21 -0
  150. package/react/message-field/message-field.tsx +70 -0
  151. package/react/message-field/message-field.types.ts +24 -0
  152. package/react/modal/index.ts +2 -0
  153. package/react/modal/modal.scss +162 -0
  154. package/react/modal/modal.tsx +130 -0
  155. package/react/modal/modal.types.ts +36 -0
  156. package/react/modal/tab-trapper.tsx +68 -0
  157. package/react/progress-bar/index.ts +2 -0
  158. package/react/progress-bar/progress-bar.scss +71 -0
  159. package/react/progress-bar/progress-bar.tsx +81 -0
  160. package/react/progress-bar/progress-bar.types.ts +35 -0
  161. package/react/radio/index.ts +2 -0
  162. package/react/radio/radio.scss +142 -0
  163. package/react/radio/radio.tsx +87 -0
  164. package/react/radio/radio.types.ts +15 -0
  165. package/react/scale-bar/index.ts +2 -0
  166. package/react/scale-bar/scale-bar.scss +22 -0
  167. package/react/scale-bar/scale-bar.tsx +29 -0
  168. package/react/scale-bar/scale-bar.types.ts +4 -0
  169. package/react/search/index.ts +2 -0
  170. package/react/search/search.scss +207 -0
  171. package/react/search/search.tsx +255 -0
  172. package/react/search/search.types.ts +43 -0
  173. package/react/select/chevron-down.tsx +24 -0
  174. package/react/select/index.ts +2 -0
  175. package/react/select/select.scss +135 -0
  176. package/react/select/select.tsx +105 -0
  177. package/react/select/select.types.ts +19 -0
  178. package/react/select-option/README.md +3 -0
  179. package/react/select-option/index.ts +2 -0
  180. package/react/select-option/select-option.tsx +16 -0
  181. package/react/select-option/select-option.types.ts +8 -0
  182. package/react/tag/index.ts +2 -0
  183. package/react/tag/tag.scss +107 -0
  184. package/react/tag/tag.tsx +26 -0
  185. package/react/tag/tag.types.ts +30 -0
  186. package/react/text/index.ts +2 -0
  187. package/react/text/text.scss +109 -0
  188. package/react/text/text.tsx +40 -0
  189. package/react/text/text.types.ts +29 -0
  190. package/react/text-area/index.ts +2 -0
  191. package/react/text-area/text-area.scss +180 -0
  192. package/react/text-area/text-area.tsx +153 -0
  193. package/react/text-area/text-area.types.ts +24 -0
  194. package/react/text-input/index.ts +2 -0
  195. package/react/text-input/text-input.scss +233 -0
  196. package/react/text-input/text-input.tsx +106 -0
  197. package/react/text-input/text-input.types.ts +19 -0
  198. package/react/toggle/index.ts +2 -0
  199. package/react/toggle/toggle.scss +69 -0
  200. package/react/toggle/toggle.tsx +83 -0
  201. package/react/toggle/toggle.types.ts +11 -0
  202. package/react/toolbox/index.ts +2 -0
  203. package/react/toolbox/toolbox.scss +68 -0
  204. package/react/toolbox/toolbox.tsx +43 -0
  205. package/react/toolbox/toolbox.types.ts +39 -0
  206. package/react/ts/debounce.ts +12 -0
  207. package/react/types.ts +38 -0
  208. package/react/use-input-validation.ts +47 -0
  209. package/react/use-input-validation.types.ts +12 -0
  210. package/react/visually-button/index.ts +2 -0
  211. package/react/visually-button/visually-button.scss +470 -0
  212. package/react/visually-button/visually-button.tsx +130 -0
  213. package/react/visually-button/visually-button.types.ts +71 -0
  214. package/react/visually-hidden/index.ts +2 -0
  215. package/react/visually-hidden/visually-hidden.scss +6 -0
  216. package/react/visually-hidden/visually-hidden.tsx +10 -0
  217. package/tokens/corner-radius.scss +5 -0
  218. package/tokens/dark.scss +392 -0
  219. package/tokens/darkmode.scss +131 -0
  220. package/tokens/elevation.scss +57 -0
  221. package/tokens/font-faces.scss +62 -0
  222. package/tokens/font-names.scss +2 -0
  223. package/tokens/font-sizes.scss +95 -0
  224. package/tokens/light.scss +392 -0
  225. package/tokens/lightmode.scss +131 -0
  226. package/tokens/primitives.scss +137 -0
  227. package/tokens/spacing.scss +12 -0
@@ -0,0 +1,137 @@
1
+ // Figma: https://www.figma.com/file/WzKCwRY09zn4rzRVfY0YvdRt/%F0%9F%8E%A8-sats-ds-styles?type=design&node-id=8481%3A40159&mode=design&t=4Gq1pqiSLpmo4bBj-1
2
+
3
+ $black-10: #e5e5e5;
4
+ $black-100: #000000;
5
+ $black-20: #cccccc;
6
+ $black-3: #f7f7f7;
7
+ $black-40: #999999;
8
+ $black-5: #f2f2f2;
9
+ $black-50: #808080;
10
+ $black-55: #707070;
11
+ $black-60: #666666;
12
+ $black-70: #4c4c4c;
13
+ $black-80: #333333;
14
+ $black-85: #262626;
15
+ $black-90: #1a1a1a;
16
+ $black-95: #0d0d0d;
17
+ $black-o20: #00000033;
18
+ $blue-10: #e7e9eb;
19
+ $blue-100: #0d2134;
20
+ $blue-105: #0a1826;
21
+ $blue-110: #06101a;
22
+ $blue-20: #cfd3d6;
23
+ $blue-40: #9ea6ae;
24
+ $blue-5: #f3f4f5;
25
+ $blue-70: #566471;
26
+ $blue-90: #253748;
27
+ $blue-grey-80: #404d5b;
28
+ $bright-blue-10: #e9f1f7;
29
+ $bright-blue-100: #2676b0;
30
+ $bright-blue-110: #226a9e;
31
+ $bright-blue-130: #1b537b;
32
+ $bright-blue-160: #0f2f46;
33
+ $bright-blue-170: #0b2335;
34
+ $bright-blue-20: #d4e4ef;
35
+ $bright-blue-60: #7dadd0;
36
+ $bright-blue-80: #5191c0;
37
+ $cardinal-10: #f8ebed;
38
+ $cardinal-100: #b93947;
39
+ $cardinal-120: #942e39;
40
+ $cardinal-170: #381115;
41
+ $cardinal-30: #eac4c8;
42
+ $cardinal-60: #d58891;
43
+ $caribbean-current-10: #e6efef;
44
+ $caribbean-current-100: #065d63;
45
+ $caribbean-current-140: #054a4f;
46
+ $caribbean-current-160: #04383b;
47
+ $caribbean-current-180: #011314;
48
+ $caribbean-current-20: #cddfe0;
49
+ $caribbean-current-60: #6a9ea1;
50
+ $celadon-10: #f0fdf4;
51
+ $celadon-100: #65e694;
52
+ $celadon-140: #3f965e;
53
+ $celadon-160: #184629;
54
+ $celadon-180: #051e0e;
55
+ $celadon-20: #e0faea;
56
+ $celadon-60: #a3f0bf;
57
+ $chili-red-10: #fbeae9;
58
+ $chili-red-100: #d93226;
59
+ $chili-red-120: #ae281e;
60
+ $chili-red-170: #410f0b;
61
+ $chili-red-60: #e8847d;
62
+ $chili-red-80: #e15b51;
63
+ $coral-10: #ffeeeb;
64
+ $coral-100: #fa5333;
65
+ $coral-120: #c84229;
66
+ $coral-130: #af3a24;
67
+ $coral-170: #4b190f;
68
+ $coral-190: #32110a;
69
+ $coral-40: #fdbaad;
70
+ $coral-5: #fff6f5;
71
+ $coral-60: #fc9885;
72
+ $coral-90: #fb6447;
73
+ $egyptian-purple-10: #ebebf3;
74
+ $egyptian-purple-100: #37378b;
75
+ $egyptian-purple-160: #161638;
76
+ $egyptian-purple-40: #afafd1;
77
+ $egyptian-purple-60: #8787b9;
78
+ $egyptian-purple-80: #5f5fa2;
79
+ $gold-10: #f8f3e8;
80
+ $gold-100: #e2b74a;
81
+ $gold-110: #cca442;
82
+ $gold-130: #9e8034;
83
+ $gold-140: #866c2a;
84
+ $gold-170: #443716;
85
+ $gold-30: #f3e6c5;
86
+ $gold-60: #ecd290;
87
+ $gold-80: #e7c46d;
88
+ $light-grey-15: #dcdee0;
89
+ $salmon-pink-10: #fff1f3;
90
+ $salmon-pink-100: #ff7083;
91
+ $salmon-pink-140: #b54352;
92
+ $salmon-pink-160: #912d3a;
93
+ $salmon-pink-180: #470009;
94
+ $salmon-pink-20: #ffe2e6;
95
+ $salmon-pink-60: #ffa9b5;
96
+ $spring-green-10: #e6f2ee;
97
+ $spring-green-100: #097f58;
98
+ $spring-green-120: #076646;
99
+ $spring-green-170: #03261a;
100
+ $spring-green-30: #b5d9cd;
101
+ $spring-green-60: #6bb29b;
102
+ $spring-green-80: #3a9979;
103
+ $tangerine-10: #fff6e6;
104
+ $tangerine-100: #fba000;
105
+ $tangerine-140: #976000;
106
+ $tangerine-160: #644000;
107
+ $tangerine-180: #322000;
108
+ $tangerine-20: #feeccc;
109
+ $tangerine-60: #fdc666;
110
+ $tropical-indigo-10: #f6f1ff;
111
+ $tropical-indigo-100: #a670ff;
112
+ $tropical-indigo-140: #644399;
113
+ $tropical-indigo-160: #422d66;
114
+ $tropical-indigo-180: #211633;
115
+ $tropical-indigo-20: #ede2ff;
116
+ $tropical-indigo-60: #caa9ff;
117
+ $uranian-blue-10: #f1f9ff;
118
+ $uranian-blue-100: #70c4ff;
119
+ $uranian-blue-140: #2d6891;
120
+ $uranian-blue-160: #16496c;
121
+ $uranian-blue-180: #0b3959;
122
+ $uranian-blue-20: #e2f3ff;
123
+ $uranian-blue-60: #a9dcff;
124
+ $white-0: #ffffff00;
125
+ $white-10: #ffffff1a;
126
+ $white-100: #ffffff;
127
+ $white-15: #ffffff26;
128
+ $white-20: #ffffff33;
129
+ $white-40: #ffffff66;
130
+ $white-5: #ffffff0d;
131
+ $white-50: #ffffff80;
132
+ $white-60: #ffffff99;
133
+ $white-65: #ffffffa6;
134
+ $white-70: #ffffffb2;
135
+ $white-80: #ffffffcc;
136
+ $white-85: #ffffffd9;
137
+ $white-90: #ffffffe5;
@@ -0,0 +1,12 @@
1
+ // https://www.figma.com/file/WzKCwRY09zn4rzRVfY0YvdRt/sats-ds-styles?node-id=408%3A85
2
+ $xxs: 4px;
3
+ $xs: 8px;
4
+ $s: 12px;
5
+ $m: 16px;
6
+ $l: 24px;
7
+ $xl: 32px;
8
+ $xxl: 64px;
9
+ $xxxl: 128px;
10
+
11
+ $hero: 256px;
12
+ $minimum-viewport-width: 320px;