@ably/ui 5.2.0 → 6.0.1-dev.2e2d2c8

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 (60) hide show
  1. package/core/Code.jsx +6 -3
  2. package/core/CompanyAutocomplete/component.css +46 -0
  3. package/core/CompanyAutocomplete/component.js +1 -0
  4. package/core/CustomerLogos/component.js +1 -0
  5. package/core/CustomerLogos.jsx +246 -0
  6. package/core/FeatureFooter.jsx +17 -0
  7. package/core/FeaturedLink/component.css +1 -2
  8. package/core/Icon/component.css +1 -0
  9. package/core/Test/component.js +59 -0
  10. package/core/Test.jsx +4 -0
  11. package/core/core.base.css +1 -0
  12. package/core/core.components.css +49 -0
  13. package/core/fonts/.DS_Store +0 -0
  14. package/core/images/.DS_Store +0 -0
  15. package/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
  16. package/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
  17. package/core/images/cust-logo-hopin-mono-pos.svg +4 -0
  18. package/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
  19. package/core/images/cust-logo-split-mono-pos.svg +9 -0
  20. package/core/images/cust-logo-toyota-mono-pos.svg +18 -0
  21. package/core/sprites.svg +18 -1
  22. package/core/styles.base.css +1 -0
  23. package/core/styles.components.css +49 -0
  24. package/core/styles.css +239 -11
  25. package/package.json +1 -1
  26. package/src/.DS_Store +0 -0
  27. package/src/core/.DS_Store +0 -0
  28. package/src/core/Code/component.html.erb +3 -3
  29. package/src/core/Code/component.jsx +3 -2
  30. package/src/core/Code/component.rb +2 -1
  31. package/src/core/CompanyAutocomplete/component.css +45 -0
  32. package/src/core/CompanyAutocomplete/component.js +201 -0
  33. package/src/core/CustomerLogos/component.html.erb +9 -0
  34. package/src/core/CustomerLogos/component.js +0 -0
  35. package/src/core/CustomerLogos/component.jsx +27 -0
  36. package/src/core/CustomerLogos/component.rb +13 -0
  37. package/src/core/FeaturedLink/component.css +1 -2
  38. package/src/core/FeaturedLink/component.html.erb +1 -1
  39. package/src/core/FeaturedLink/component.rb +3 -1
  40. package/src/core/fonts/.DS_Store +0 -0
  41. package/src/core/icons/icon-display-api-keys.svg +3 -0
  42. package/src/core/icons/icon-display-cloud-servers.svg +3 -0
  43. package/src/core/icons/icon-display-map-pin.svg +1 -1
  44. package/src/core/icons/icon-display-servers.svg +3 -0
  45. package/src/core/icons/icon-gui-history.svg +3 -0
  46. package/src/core/icons/icon-gui-refresh.svg +10 -0
  47. package/src/core/images/.DS_Store +0 -0
  48. package/src/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
  49. package/src/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
  50. package/src/core/images/cust-logo-hopin-mono-pos.svg +4 -0
  51. package/src/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
  52. package/src/core/images/cust-logo-split-mono-pos.svg +9 -0
  53. package/src/core/images/cust-logo-toyota-mono-pos.svg +18 -0
  54. package/src/core/styles/buttons.css +91 -4
  55. package/src/core/styles/forms.css +50 -0
  56. package/src/core/styles/properties.css +34 -6
  57. package/src/core/styles/text.css +62 -1
  58. package/src/core/styles.components.css +1 -0
  59. package/src/reset/.DS_Store +0 -0
  60. package/tailwind.config.js +22 -1
@@ -0,0 +1,50 @@
1
+ @layer components {
2
+ .ui-checkbox-p1 {
3
+ @apply flex items-start mb-16 font-sans;
4
+ }
5
+
6
+ .ui-checkbox-p2 {
7
+ @apply flex items-start mb-12 font-sans;
8
+ }
9
+
10
+ .ui-checkbox-input {
11
+ @apply opacity-0 absolute h-20 w-20;
12
+ }
13
+
14
+ .ui-checkbox-styled {
15
+ @apply w-20 h-20 mr-16;
16
+ @apply bg-white flex flex-shrink-0 justify-center items-center;
17
+ @apply border border-dark-grey rounded-md focus-within:border-active-orange;
18
+ }
19
+
20
+ .ui-checkbox-styled-tick {
21
+ @apply hidden text-white;
22
+ }
23
+
24
+ .ui-checkbox-label-p1 {
25
+ @apply select-none;
26
+ @apply text-p1 font-light text-cool-black;
27
+ }
28
+
29
+ .ui-checkbox-label-p2 {
30
+ @apply select-none;
31
+ @apply text-p2 font-light text-cool-black;
32
+ }
33
+
34
+ .ui-checkbox-input:disabled + .ui-checkbox-styled {
35
+ @apply bg-gui-unavailable border;
36
+ }
37
+
38
+ .ui-checkbox-input:focus + .ui-checkbox-styled {
39
+ border-width: 0.125rem;
40
+ @apply border-gui-focus;
41
+ }
42
+
43
+ .ui-checkbox-input:checked + .ui-checkbox-styled {
44
+ @apply bg-active-orange border-dark-grey border;
45
+ }
46
+
47
+ .ui-checkbox-input:checked + .ui-checkbox-styled svg {
48
+ @apply block;
49
+ }
50
+ }
@@ -45,10 +45,27 @@
45
45
  --icon-color-github: #000000;
46
46
 
47
47
  --gradient-active-orange: linear-gradient(
48
- 62deg,
49
- var(--color-active-orange) 0,
50
- var(--color-active-orange) 60%,
51
- var(--color-red-orange) 100%
48
+ 61.2deg,
49
+ var(--color-active-orange) 10.46%,
50
+ #fe5215 38.63%,
51
+ #fc4a13 54.38%,
52
+ #f73c10 67.07%,
53
+ #f1280a 78.13%,
54
+ #e90f04 88.02%,
55
+ var(--color-red-orange) 92.73%
56
+ );
57
+
58
+ /* Used for smooth transitions from gradient to non-gradient backgrounds */
59
+ --gradient-transparent: linear-gradient(
60
+ 0deg,
61
+ rgba(255, 255, 255, 0),
62
+ rgba(255, 255, 255, 0)
63
+ );
64
+
65
+ --gradient-hot-pink: linear-gradient(
66
+ 80.2deg,
67
+ var(--color-bright-red) 0%,
68
+ var(--color-jazzy-pink) 100%
52
69
  );
53
70
 
54
71
  --fs-title-xl: 4rem;
@@ -73,11 +90,15 @@
73
90
  --fs-overline2: 0.875rem;
74
91
  --fs-btn1: 1.125rem;
75
92
  --fs-btn2: 1rem;
93
+ --fs-btn3: 0.875rem;
76
94
  --fs-menu1: 1.125rem;
77
95
  --fs-menu2: 1rem;
78
96
  --fs-menu3: 0.875rem;
79
97
  --fs-quote: 1.5rem;
98
+ --fs-code1: 1rem;
99
+ --fs-code2: 0.875rem;
80
100
 
101
+ --lh-dense: 1;
81
102
  --lh-tight: 1.125;
82
103
  --lh-snug: 1.15;
83
104
  --lh-normal: 1.25;
@@ -109,17 +130,24 @@
109
130
  --spacing-80: 5rem;
110
131
  --spacing-88: 5.5rem;
111
132
  --spacing-96: 6rem;
133
+ --spacing-128: 8rem;
112
134
  --spacing-160: 10rem;
113
135
  --spacing-256: 16rem;
114
136
 
115
- --spacing-btn: 0.9375rem 1.5rem; /* 15px 24px */
116
- --spacing-btn-small: 0.6875rem 1rem; /* 11px 16px */
137
+ --spacing-btn-small: 0.875rem 1.25rem; /* 14px 16px */
138
+ --spacing-btn-xsmall: 0.875rem 1rem; /* 14px 16px */
139
+ --spacing-btn: 0.875rem 1.5rem; /* 14px 24px */
140
+ --spacing-btn-large: 0.875rem 1.75rem; /* 14px 28px */
117
141
  --spacing-menu-row: 0.625rem 0.5rem 0.6875rem; /* 10px 8px 11px */
118
142
  --spacing-menu-row-snug: 0.4375rem 0.5rem 0.375rem; /* 7px 8px 6px */
119
143
  --spacing-menu-row-title: 0.6875rem 0.5rem; /* 11px 8px */
120
144
  --spacing-media: 0.5rem; /* 8px */
121
145
  --spacing-input: 0.8125rem 1rem 0.75rem; /* 13px 16px 12px */
122
146
  --spacing-overline: 0.6875rem 0; /* 11px 0 */
147
+ --spacing-chip-xsmall: 0.375rem 0.5rem; /* 6px 8px */
148
+ --spacing-chip-small: 0.5rem 0.75rem; /* 8px 12px */
149
+ --spacing-chip: 0.75rem 1rem; /* 6px 8px */
150
+ --spacing-chip-large: 1rem 1.25rem; /* 16px 20px */
123
151
 
124
152
  /* In components, when looking at implementing viewport margin and spacing between elements,
125
153
  the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
@@ -14,7 +14,7 @@
14
14
  .ui-text-h2 {
15
15
  @apply font-sans font-medium text-cool-black;
16
16
  @apply text-h2-xs xs:text-h2 xl:text-h2-xl;
17
- @apply tracking-tighten-0.01;
17
+ @apply tracking-tighten-0.005;
18
18
  }
19
19
 
20
20
  .ui-text-h3 {
@@ -88,4 +88,65 @@
88
88
  @apply font-sans font-light text-cool-black;
89
89
  @apply text-menu3;
90
90
  }
91
+
92
+ .ui-text-code1 {
93
+ @apply font-mono font-normal text-code1;
94
+ }
95
+
96
+ .ui-text-code2 {
97
+ @apply font-mono font-normal text-code2;
98
+ }
99
+
100
+ .ui-unordered-list {
101
+ @apply text-p1 font-light text-cool-black;
102
+ @apply list-disc ml-32 mb-24;
103
+ }
104
+
105
+ .ui-unordered-list ul {
106
+ @apply ml-24 mt-16 list-circle;
107
+ }
108
+
109
+ .ui-unordered-list ul ul {
110
+ @apply list-square;
111
+ }
112
+
113
+ .ui-unordered-list-with-emphasis {
114
+ @apply text-p1 font-light text-cool-black;
115
+ @apply list-disc ml-32 mt-32 -mb-12;
116
+ }
117
+
118
+ .ui-unordered-list-with-emphasis li div {
119
+ @apply relative -top-12;
120
+ }
121
+
122
+ .ui-unordered-list-with-emphasis li div > strong {
123
+ @apply block;
124
+ }
125
+
126
+ .ui-unordered-list-with-emphasis ul {
127
+ margin-top: calc(var(--spacing-16) + var(--spacing-8));
128
+ @apply ml-24 list-disc;
129
+ }
130
+
131
+ .ui-unordered-list-with-emphasis ul ul {
132
+ @apply list-circle;
133
+ }
134
+
135
+ /* visited needs to come before :hover et all else it overrides them */
136
+ .ui-link:visited {
137
+ @apply text-gui-viewed;
138
+ }
139
+
140
+ .ui-link {
141
+ @apply hover:text-active-orange active:text-red-orange;
142
+ text-decoration-color: var(--color-active-orange);
143
+ text-underline-offset: 4px; /* px used here as behaves weird with rem's */
144
+ text-decoration-line: underline;
145
+ text-decoration-thickness: 0.125rem;
146
+ }
147
+
148
+ .ui-link:focus {
149
+ @apply focus:text-white focus:bg-active-orange focus:outline-none;
150
+ text-decoration: none;
151
+ }
91
152
  }
@@ -1,6 +1,7 @@
1
1
  @import "./styles/buttons.css";
2
2
  @import "./styles/layout.css";
3
3
  @import "./styles/text.css";
4
+ @import "./styles/forms.css";
4
5
 
5
6
  @layer components {
6
7
  .ui-input {
Binary file
@@ -44,12 +44,16 @@ module.exports = {
44
44
  "sub-header-xs": ["var(--fs-sub-header-xs)", "var(--lh-normal)"],
45
45
  overline1: ["var(--fs-overline1)", "var(--lh-normal)"],
46
46
  overline2: ["var(--fs-overline2)", "var(--lh-normal)"],
47
- btn1: ["var(--fs-btn1)", "var(--lh-tight)"],
47
+ btn1: ["var(--fs-btn1)", "var(--lh-normal)"],
48
48
  btn2: ["var(--fs-btn2)", "var(--lh-tight)"],
49
+ btn3: ["var(--fs-btn2)", "var(--lh-tight)"],
50
+ btn4: ["var(--fs-btn3)", "var(--lh-dense)"],
49
51
  menu1: ["var(--fs-menu1)", "var(--lh-tight)"],
50
52
  menu2: ["var(--fs-menu2)", "var(--lh-tight)"],
51
53
  menu3: ["var(--fs-menu3)", "var(--lh-snug)"],
52
54
  quote: ["var(--fs-quote)", "var(--lh-relaxed)"],
55
+ code1: ["var(--fs-code1)", "var(--lh-relaxed)"],
56
+ code2: ["var(--fs-code2)", "var(--lh-relaxed)"],
53
57
  },
54
58
  colors: {
55
59
  transparent: "transparent",
@@ -90,6 +94,12 @@ module.exports = {
90
94
  padding: (theme) => ({
91
95
  btn: "var(--spacing-btn)",
92
96
  "btn-small": "var(--spacing-btn-small)",
97
+ "btn-xsmall": "var(--spacing-btn-xsmall)",
98
+ "btn-large": "var(--spacing-btn-large)",
99
+ chip: "var(--spacing-chip)",
100
+ "chip-small": "var(--spacing-chip-small)",
101
+ "chip-xsmall": "var(--spacing-chip-xsmall)",
102
+ "chip-large": "var(--spacing-chip-large)",
93
103
  "menu-row": "var(--spacing-menu-row)",
94
104
  "menu-row-snug": "var(--spacing-menu-row-snug)",
95
105
  "menu-row-title": "var(--spacing-menu-row-title)",
@@ -146,6 +156,7 @@ module.exports = {
146
156
  borderRadius: {
147
157
  none: "0",
148
158
  sm: "0.125rem",
159
+ md: "0.1875rem",
149
160
  lg: "0.5rem",
150
161
  xl: "0.75rem",
151
162
  full: "9999px",
@@ -158,6 +169,7 @@ module.exports = {
158
169
  extend: {
159
170
  backgroundImage: {
160
171
  "gradient-active-orange": "var(--gradient-active-orange)",
172
+ "gradient-hot-pink": "var(--gradient-hot-pink)",
161
173
  },
162
174
  transitionProperty: {
163
175
  input: "background-color, box-shadow",
@@ -180,6 +192,13 @@ module.exports = {
180
192
  8: "8",
181
193
  },
182
194
  },
195
+ listStyleType: {
196
+ none: "none",
197
+ disc: "disc",
198
+ decimal: "decimal",
199
+ square: "square",
200
+ circle: "circle",
201
+ },
183
202
  },
184
203
  variants: {
185
204
  extend: {
@@ -187,7 +206,9 @@ module.exports = {
187
206
  textColor: ["hover", "focus", "active", "group-focus", "disabled"],
188
207
  display: ["group-focus"],
189
208
  backgroundColor: ["hover", "focus", "active", "group-focus", "disabled"],
209
+ backgroundImage: ["hover", "active", "focus"],
190
210
  filter: ["hover"],
211
+ cursor: ["disabled"],
191
212
  },
192
213
  },
193
214
  corePlugins: {