@ably/ui 5.0.1-dev.baf5b97.0 → 5.3.0-dev.3c981a4
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/core/.gitignore +1 -0
- package/core/Code/component.css +70 -0
- package/core/Code/component.js +1 -0
- package/core/Code.jsx +7578 -0
- package/core/ConnectStateWrapper/component.js +1 -0
- package/core/ConnectStateWrapper.jsx +213 -0
- package/core/ContactFooter/component.css +12 -0
- package/core/ContactFooter/component.js +1 -0
- package/core/ContactFooter.jsx +448 -0
- package/core/CookieMessage/component.css +14 -0
- package/core/CookieMessage/component.js +1 -0
- package/core/CookieMessage.jsx +476 -0
- package/core/CustomerLogos/component.js +1 -0
- package/core/CustomerLogos.jsx +246 -0
- package/core/FeatureFooter/component.css +13 -0
- package/core/FeatureFooter/component.js +1 -0
- package/core/FeatureFooter.jsx +17 -0
- package/core/FeaturedLink/component.css +16 -0
- package/core/FeaturedLink/component.js +1 -0
- package/core/FeaturedLink.jsx +307 -0
- package/core/Flash/component.css +30 -0
- package/core/Flash/component.js +1 -0
- package/core/Flash.jsx +2002 -0
- package/core/Footer/component.css +14 -0
- package/core/Footer/component.js +1 -0
- package/core/Footer.jsx +593 -0
- package/core/Icon/component.css +1 -0
- package/core/Icon/component.js +1 -0
- package/core/Icon.jsx +257 -0
- package/core/Logo/component.js +1 -0
- package/core/Logo.jsx +302 -0
- package/core/Meganav/component.css +103 -0
- package/core/Meganav/component.js +1 -0
- package/core/Meganav/component.json +37 -0
- package/core/Meganav.jsx +6514 -0
- package/core/MeganavBlogPostsList/component.js +1 -0
- package/core/MeganavBlogPostsList.jsx +360 -0
- package/core/MeganavContentDevelopers/component.js +1 -0
- package/core/MeganavContentDevelopers.jsx +418 -0
- package/core/MeganavContentPlatform/component.js +1 -0
- package/core/MeganavContentPlatform.jsx +440 -0
- package/core/MeganavContentUseCases/component.js +1 -0
- package/core/MeganavContentUseCases.jsx +309 -0
- package/core/MeganavContentWhyAbly/component.js +1 -0
- package/core/MeganavContentWhyAbly.jsx +1471 -0
- package/core/MeganavControl/component.js +1 -0
- package/core/MeganavControl.jsx +301 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -0
- package/core/MeganavControlMobileDropdown.jsx +303 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -0
- package/core/MeganavControlMobilePanelClose.jsx +301 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -0
- package/core/MeganavControlMobilePanelOpen.jsx +299 -0
- package/core/MeganavItemsDesktop/component.js +1 -0
- package/core/MeganavItemsDesktop.jsx +377 -0
- package/core/MeganavItemsMobile/component.js +1 -0
- package/core/MeganavItemsMobile.jsx +581 -0
- package/core/MeganavItemsSignedIn/component.js +1 -0
- package/core/MeganavItemsSignedIn.jsx +461 -0
- package/core/Notice/component.css +8 -0
- package/core/Notice/component.js +2 -0
- package/core/Notice/component.js.LICENSE.txt +9 -0
- package/core/Notice.jsx +2915 -0
- package/core/Showcase/component.css +31 -0
- package/core/Showcase/component.js +1 -0
- package/core/Showcase.jsx +17 -0
- package/core/SignOutLink/component.js +1 -0
- package/core/SignOutLink.jsx +262 -0
- package/core/Slider/component.css +9 -0
- package/core/Slider/component.js +1 -0
- package/core/Slider.jsx +957 -0
- package/core/Test/component.js +59 -0
- package/core/Test.jsx +4 -0
- package/core/Uptime/component.css +129 -0
- package/core/Uptime/component.js +1 -0
- package/core/Uptime.jsx +1373 -0
- package/core/core.base.css +1 -0
- package/core/core.components.css +49 -0
- package/core/fonts/.DS_Store +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Light.eot +0 -0
- package/core/fonts/NEXT-Book-Light.otf +0 -0
- package/core/fonts/NEXT-Book-Light.woff +0 -0
- package/core/fonts/NEXT-Book-Light.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium.eot +0 -0
- package/core/fonts/NEXT-Book-Medium.otf +0 -0
- package/core/fonts/NEXT-Book-Medium.woff +0 -0
- package/core/fonts/NEXT-Book-Medium.woff2 +0 -0
- package/core/fonts/next.css +59 -0
- package/core/images/.DS_Store +0 -0
- package/core/images/ably-logo.svg +15 -0
- package/core/images/ably-stack.svg +14 -0
- package/core/images/blog-thumb1.jpg +0 -0
- package/core/images/blog-thumb2.jpg +0 -0
- package/core/images/blog-thumb3.jpg +0 -0
- package/core/images/cust-logo-ao-col-pos.png +0 -0
- package/core/images/cust-logo-ao-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/core/images/cust-logo-hubspot-col-pos.png +0 -0
- package/core/images/cust-logo-hubspot-col-pos@2x.png +0 -0
- package/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/core/images/cust-logo-lightspeed-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-col-pos@2x.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-col-pos.png +0 -0
- package/core/images/cust-logo-split-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/core/images/cust-logo-vitac-col-pos.png +0 -0
- package/core/images/cust-logo-vitac-col-pos@2x.png +0 -0
- package/core/images/cust-photo-hubspot-max-freiert.jpg +0 -0
- package/core/images/cust-photo-split-pato-echague.jpg +0 -0
- package/core/images/cust-photo-vitac-joe-antonio.jpg +0 -0
- package/core/images/flexible-companies.png +0 -0
- package/core/images/rocket-list-2021.png +0 -0
- package/core/images/scale-motif-open-empathetic.svg +1 -0
- package/core/images/technical-support-01-800x533.jpg +0 -0
- package/core/scripts.js +1 -0
- package/core/sprites.svg +130 -0
- package/core/styles.base.css +1 -0
- package/core/styles.components.css +49 -0
- package/core/styles.css +560 -0
- package/package.json +1 -1
- package/preview/log/.keep +0 -0
- package/preview/tmp/.keep +0 -0
- package/preview/tmp/pids/.keep +0 -0
- package/reset/.gitignore +1 -0
- package/reset/scripts.js +1 -0
- package/reset/styles.css +487 -0
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Code/component.html.erb +3 -3
- package/src/core/Code/component.jsx +3 -2
- package/src/core/Code/component.rb +2 -1
- package/src/core/CustomerLogos/component.html.erb +9 -0
- package/src/core/CustomerLogos/component.js +0 -0
- package/src/core/CustomerLogos/component.jsx +27 -0
- package/src/core/CustomerLogos/component.rb +13 -0
- package/src/core/FeaturedLink/component.css +1 -2
- package/src/core/FeaturedLink/component.html.erb +1 -1
- package/src/core/FeaturedLink/component.rb +3 -1
- package/src/core/MeganavItemsSignedIn/component.html.erb +1 -1
- package/src/core/MeganavItemsSignedIn/component.jsx +1 -1
- package/src/core/Slider/component.html.erb +2 -2
- package/src/core/Slider/component.js +2 -2
- package/src/core/Slider/component.jsx +2 -2
- package/src/core/icons/icon-display-api-keys.svg +3 -0
- package/src/core/icons/icon-display-cloud-servers.svg +3 -0
- package/src/core/icons/icon-display-map-pin.svg +1 -1
- package/src/core/icons/icon-display-servers.svg +3 -0
- package/src/core/icons/icon-gui-history.svg +3 -0
- package/src/core/icons/icon-gui-refresh.svg +10 -0
- package/src/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/src/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/src/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/src/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/src/core/styles/buttons.css +91 -4
- package/src/core/styles/forms.css +50 -0
- package/src/core/styles/properties.css +34 -6
- package/src/core/styles/text.css +62 -1
- package/src/core/styles.components.css +1 -0
- package/tailwind.config.js +22 -1
package/core/styles.css
ADDED
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
--color-cool-black: #03020d;
|
|
4
|
+
--color-active-orange: #ff5416;
|
|
5
|
+
--color-red-orange: #e40000;
|
|
6
|
+
--color-white: #ffffff;
|
|
7
|
+
--color-electric-cyan: #4af7ff;
|
|
8
|
+
--color-zingy-green: #08ff13;
|
|
9
|
+
--color-bright-red: #ff2739;
|
|
10
|
+
--color-jazzy-pink: #ff17d2;
|
|
11
|
+
--color-light-grey: #f5f5f6;
|
|
12
|
+
--color-mid-grey: #dbdbdc;
|
|
13
|
+
--color-dark-grey: #76767c;
|
|
14
|
+
--color-charcoal-grey: #292831;
|
|
15
|
+
--color-gui-default: #0073e6;
|
|
16
|
+
--color-gui-hover: #0867c4;
|
|
17
|
+
--color-gui-focus: #80b9f2;
|
|
18
|
+
--color-gui-active: #074095;
|
|
19
|
+
--color-gui-viewed: #4887c2;
|
|
20
|
+
--color-gui-unavailable: #a8a8a8;
|
|
21
|
+
--color-gui-error: #fb0c0c;
|
|
22
|
+
|
|
23
|
+
/* code syntax: theme */
|
|
24
|
+
--syntax-black: var(--color-cool-black);
|
|
25
|
+
--syntax-dark-grey: var(--color-dark-grey);
|
|
26
|
+
--syntax-mid-grey: var(--color-mid-grey);
|
|
27
|
+
--syntax-light-grey: var(--color-light-grey);
|
|
28
|
+
|
|
29
|
+
--syntax-orange: #e78c45;
|
|
30
|
+
--syntax-yellow: #e7c547;
|
|
31
|
+
--syntax-blue: #3490ec;
|
|
32
|
+
--syntax-green: #b9ca4a;
|
|
33
|
+
--syntax-red: #d54e53;
|
|
34
|
+
--syntax-lilac: #bb87d3;
|
|
35
|
+
|
|
36
|
+
/* uptime status colors */
|
|
37
|
+
--uptime-color-up: #39b54a;
|
|
38
|
+
--uptime-color-trouble: #e87623;
|
|
39
|
+
--uptime-color-down: #e6242c;
|
|
40
|
+
|
|
41
|
+
/* flat colors for social icons */
|
|
42
|
+
--icon-color-linkedin: #1269bf;
|
|
43
|
+
--icon-color-twitter: #2caae1;
|
|
44
|
+
--icon-color-glassdoor: #0baa41;
|
|
45
|
+
--icon-color-github: #000000;
|
|
46
|
+
|
|
47
|
+
--gradient-active-orange: linear-gradient(
|
|
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%
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
--fs-title-xl: 4rem;
|
|
72
|
+
--fs-title: 3.5rem;
|
|
73
|
+
--fs-title-xs: 3rem;
|
|
74
|
+
--fs-h1-xl: 3.5rem;
|
|
75
|
+
--fs-h1: 3rem;
|
|
76
|
+
--fs-h1-xs: 2.625rem;
|
|
77
|
+
--fs-h2-xl: 2.5rem;
|
|
78
|
+
--fs-h2: 2rem;
|
|
79
|
+
--fs-h2-xs: 1.875rem;
|
|
80
|
+
--fs-h3: 1.5rem;
|
|
81
|
+
--fs-h4: 1.125rem;
|
|
82
|
+
--fs-p1: 1.125rem;
|
|
83
|
+
--fs-p2: 1rem;
|
|
84
|
+
--fs-p3: 0.875rem;
|
|
85
|
+
--fs-standfirst-xl: 2.25rem;
|
|
86
|
+
--fs-standfirst: 1.5rem;
|
|
87
|
+
--fs-sub-header: 1.5rem;
|
|
88
|
+
--fs-sub-header-xs: 1.125rem;
|
|
89
|
+
--fs-overline1: 1rem;
|
|
90
|
+
--fs-overline2: 0.875rem;
|
|
91
|
+
--fs-btn1: 1.125rem;
|
|
92
|
+
--fs-btn2: 1rem;
|
|
93
|
+
--fs-btn3: 0.875rem;
|
|
94
|
+
--fs-menu1: 1.125rem;
|
|
95
|
+
--fs-menu2: 1rem;
|
|
96
|
+
--fs-menu3: 0.875rem;
|
|
97
|
+
--fs-quote: 1.5rem;
|
|
98
|
+
--fs-code1: 1rem;
|
|
99
|
+
--fs-code2: 0.875rem;
|
|
100
|
+
|
|
101
|
+
--lh-dense: 1;
|
|
102
|
+
--lh-tight: 1.125;
|
|
103
|
+
--lh-snug: 1.15;
|
|
104
|
+
--lh-normal: 1.25;
|
|
105
|
+
--lh-relaxed: 1.45;
|
|
106
|
+
|
|
107
|
+
--ls-tighten-0_025: -0.025em;
|
|
108
|
+
--ls-tighten-0_02: -0.02em;
|
|
109
|
+
--ls-tighten-0_015: -0.015em;
|
|
110
|
+
--ls-tighten-0_01: -0.01em;
|
|
111
|
+
--ls-tighten-0_005: -0.005em;
|
|
112
|
+
--ls-tighten-0_0025: -0.0025em;
|
|
113
|
+
--ls-widen-0_1: 0.1em;
|
|
114
|
+
--ls-widen-0_15: 0.15em;
|
|
115
|
+
|
|
116
|
+
--spacing-0: 0px;
|
|
117
|
+
--spacing-1: 1px;
|
|
118
|
+
--spacing-4: 0.25rem;
|
|
119
|
+
--spacing-8: 0.5rem;
|
|
120
|
+
--spacing-12: 0.75rem;
|
|
121
|
+
--spacing-14: 0.875rem;
|
|
122
|
+
--spacing-16: 1rem;
|
|
123
|
+
--spacing-20: 1.25rem;
|
|
124
|
+
--spacing-24: 1.5rem;
|
|
125
|
+
--spacing-32: 2rem;
|
|
126
|
+
--spacing-40: 2.5rem;
|
|
127
|
+
--spacing-48: 3rem;
|
|
128
|
+
--spacing-64: 4rem;
|
|
129
|
+
--spacing-72: 4.5rem;
|
|
130
|
+
--spacing-80: 5rem;
|
|
131
|
+
--spacing-88: 5.5rem;
|
|
132
|
+
--spacing-96: 6rem;
|
|
133
|
+
--spacing-128: 8rem;
|
|
134
|
+
--spacing-160: 10rem;
|
|
135
|
+
--spacing-256: 16rem;
|
|
136
|
+
|
|
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 */
|
|
141
|
+
--spacing-menu-row: 0.625rem 0.5rem 0.6875rem; /* 10px 8px 11px */
|
|
142
|
+
--spacing-menu-row-snug: 0.4375rem 0.5rem 0.375rem; /* 7px 8px 6px */
|
|
143
|
+
--spacing-menu-row-title: 0.6875rem 0.5rem; /* 11px 8px */
|
|
144
|
+
--spacing-media: 0.5rem; /* 8px */
|
|
145
|
+
--spacing-input: 0.8125rem 1rem 0.75rem; /* 13px 16px 12px */
|
|
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 */
|
|
151
|
+
|
|
152
|
+
/* In components, when looking at implementing viewport margin and spacing between elements,
|
|
153
|
+
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
|
154
|
+
alternatively, look for ui-grid-* helpers. */
|
|
155
|
+
--bp-xs: 375px; /* gutters 8px, side-margin 24px */
|
|
156
|
+
--bp-sm: 600px; /* gutters 16px, side-margin 32px */
|
|
157
|
+
--bp-md: 1040px; /* gutters 24px, side-margin 40px, meganav desktop */
|
|
158
|
+
--bp-lg: 1280px; /* gutters 24px, side-margin 64px */
|
|
159
|
+
--bp-xl: 1440px; /* gutters 32px, side-margin 64px */
|
|
160
|
+
|
|
161
|
+
/* Page stacking context. If components create new stacking contexts z-index values should be defined within them. */
|
|
162
|
+
--stacking-context-page-meganav: 100;
|
|
163
|
+
|
|
164
|
+
/* Expose component values for cross-component usage */
|
|
165
|
+
--ui-meganav-height: 4rem;
|
|
166
|
+
--ui-showcase-client-logo-min-width: 8.75rem; /* 140px at 16px base*/
|
|
167
|
+
--ui-showcase-client-logo-max-width: 15rem; /* 240px at 16px base*/
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
@layer components {
|
|
171
|
+
.ui-btn {
|
|
172
|
+
@apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block rounded p-btn;
|
|
173
|
+
@apply hover:text-white hover:bg-active-orange;
|
|
174
|
+
@apply active:text-white active:bg-red-orange;
|
|
175
|
+
@apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
|
|
176
|
+
@apply disabled:text-mid-grey disabled:bg-gui-unavailable disabled:cursor-not-allowed;
|
|
177
|
+
@apply transition-colors;
|
|
178
|
+
@apply flex items-center;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ui-btn-alt {
|
|
182
|
+
transition: background-position 0.2s;
|
|
183
|
+
background: linear-gradient(
|
|
184
|
+
61.2deg,
|
|
185
|
+
var(--color-active-orange) 5%,
|
|
186
|
+
#fe5215 19%,
|
|
187
|
+
#fc4a13 27%,
|
|
188
|
+
#f73c10 33%,
|
|
189
|
+
#f1280a 39%,
|
|
190
|
+
#e90f04 44%,
|
|
191
|
+
var(--color-red-orange) 50%
|
|
192
|
+
);
|
|
193
|
+
background-size: 200% 100%;
|
|
194
|
+
background-position: 0% 0%;
|
|
195
|
+
|
|
196
|
+
@apply text-white text-btn2 font-sans font-medium inline-block rounded p-btn;
|
|
197
|
+
@apply focus:outline-gui-focus;
|
|
198
|
+
@apply flex items-center;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ui-btn-alt:hover,
|
|
202
|
+
.ui-btn-alt:focus {
|
|
203
|
+
background-position: 100% 0%;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ui-btn-alt:disabled {
|
|
207
|
+
background: linear-gradient(var(--gradient-transparent));
|
|
208
|
+
@apply bg-gui-unavailable text-mid-grey cursor-not-allowed;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ui-btn-invert {
|
|
212
|
+
@apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block rounded p-btn;
|
|
213
|
+
@apply hover:text-white hover:bg-active-orange;
|
|
214
|
+
@apply active:text-white active:bg-red-orange;
|
|
215
|
+
@apply focus:text-white focus:bg-cool-black focus:outline-gui-focus;
|
|
216
|
+
@apply disabled:text-mid-grey disabled:bg-gui-unavailable disabled:cursor-not-allowed;
|
|
217
|
+
@apply transition-colors;
|
|
218
|
+
@apply flex items-center;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ui-btn-secondary {
|
|
222
|
+
@apply text-cool-black bg-white text-btn2 font-sans font-medium inline-block border-btn border-cool-black rounded p-btn;
|
|
223
|
+
@apply hover:text-cool-black hover:border-active-orange hover:bg-white;
|
|
224
|
+
@apply active:border-red-orange active:bg-white;
|
|
225
|
+
@apply focus:border-cool-black focus:bg-white focus:outline-gui-focus;
|
|
226
|
+
@apply disabled:text-gui-unavailable disabled:border-gui-unavailable disabled:bg-white disabled:cursor-not-allowed;
|
|
227
|
+
@apply transition-colors;
|
|
228
|
+
@apply flex items-center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ui-btn-secondary-invert {
|
|
232
|
+
@apply text-white bg-cool-black text-btn2 font-sans font-medium inline-block border-btn border-mid-grey rounded p-btn;
|
|
233
|
+
@apply hover:text-white hover:border-active-orange;
|
|
234
|
+
@apply active:border-red-orange;
|
|
235
|
+
@apply focus:outline-gui-focus;
|
|
236
|
+
@apply disabled:text-gui-unavailable disabled:border-gui-unavailable disabled:cursor-not-allowed;
|
|
237
|
+
@apply transition-colors;
|
|
238
|
+
@apply flex items-center;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ui-btn-icon {
|
|
242
|
+
@apply w-24 h-24 mr-16;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ui-btn-icon-small {
|
|
246
|
+
@apply w-20 h-20 mr-12;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ui-btn-icon-xsmall {
|
|
250
|
+
@apply w-16 h-16 mr-8;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.ui-chip {
|
|
254
|
+
@apply text-btn3 p-chip rounded text-cool-black;
|
|
255
|
+
@apply hover:bg-mid-grey;
|
|
256
|
+
@apply active:bg-red-orange active:text-white;
|
|
257
|
+
@apply focus:bg-red-orange focus:text-white focus:outline-none;
|
|
258
|
+
@apply disabled:text-mid-grey disabled:bg-gui-unavailable disabled:cursor-not-allowed;
|
|
259
|
+
@apply transition-colors;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.ui-chip[data-selected] {
|
|
263
|
+
@apply bg-active-orange text-white;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ui-chip[data-selected]:hover {
|
|
267
|
+
@apply bg-mid-grey text-cool-black;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ui-chip[data-selected]:focus {
|
|
271
|
+
@apply bg-red-orange text-white;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ui-chip-alt {
|
|
275
|
+
@apply text-btn3 p-chip rounded text-white;
|
|
276
|
+
@apply hover:bg-gui-hover;
|
|
277
|
+
@apply active:bg-gui-active active:text-white;
|
|
278
|
+
@apply focus:bg-gui-active focus:text-white focus:outline-none;
|
|
279
|
+
@apply disabled:text-mid-grey disabled:bg-gui-unavailable disabled:cursor-not-allowed;
|
|
280
|
+
@apply transition-colors;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.ui-chip-alt[data-selected] {
|
|
284
|
+
@apply bg-dark-grey text-white;
|
|
285
|
+
}
|
|
286
|
+
.ui-chip-alt[data-selected]:hover {
|
|
287
|
+
@apply bg-gui-hover text-white;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ui-chip-alt[data-selected]:focus {
|
|
291
|
+
@apply bg-gui-active text-white;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
@layer components {
|
|
295
|
+
.ui-standard-container {
|
|
296
|
+
@apply w-full max-w-screen-xl mx-auto px-24 sm:px-32 md:px-40 lg:px-64;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ui-grid-gap {
|
|
300
|
+
@apply gap-8 sm:gap-16 md:gap-24 xl:gap-32;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ui-grid-px {
|
|
304
|
+
@apply px-24 sm:px-32 md:px-40 lg:px-64;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.ui-grid-mx {
|
|
308
|
+
@apply mx-24 sm:mx-32 md:mx-40 lg:mx-64;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
@layer components {
|
|
312
|
+
.ui-text-title {
|
|
313
|
+
@apply font-sans font-medium text-cool-black;
|
|
314
|
+
@apply text-title-xs xs:text-title xl:text-title-xl;
|
|
315
|
+
@apply tracking-tighten-0.01 xs:tracking-tighten-0.015 xl:tracking-tighten-0.02;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ui-text-h1 {
|
|
319
|
+
@apply font-sans font-medium text-cool-black;
|
|
320
|
+
@apply text-h1-xs xs:text-h1 xl:text-h1-xl;
|
|
321
|
+
@apply tracking-tighten-0.01;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ui-text-h2 {
|
|
325
|
+
@apply font-sans font-medium text-cool-black;
|
|
326
|
+
@apply text-h2-xs xs:text-h2 xl:text-h2-xl;
|
|
327
|
+
@apply tracking-tighten-0.005;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ui-text-h3 {
|
|
331
|
+
@apply font-sans font-medium text-cool-black;
|
|
332
|
+
@apply text-h3;
|
|
333
|
+
@apply tracking-tighten-0.0025;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ui-text-h4 {
|
|
337
|
+
@apply font-sans font-medium text-cool-black;
|
|
338
|
+
@apply text-h4;
|
|
339
|
+
@apply tracking-widen-0.1;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ui-text-p1 {
|
|
343
|
+
@apply font-sans font-light text-cool-black;
|
|
344
|
+
@apply text-p1;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.ui-text-p2 {
|
|
348
|
+
@apply font-sans font-light text-cool-black;
|
|
349
|
+
@apply text-p2;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ui-text-p3 {
|
|
353
|
+
@apply font-sans font-light text-cool-black;
|
|
354
|
+
@apply text-p3;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ui-text-standfirst {
|
|
358
|
+
@apply font-sans font-light text-active-orange;
|
|
359
|
+
@apply text-standfirst xl:text-standfirst-xl;
|
|
360
|
+
@apply tracking-tighten-0.025 xl:tracking-tighten-0.015;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ui-text-quote {
|
|
364
|
+
@apply font-sans font-light text-cool-black;
|
|
365
|
+
@apply text-quote;
|
|
366
|
+
@apply tracking-tighten-0.025;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ui-text-sub-header {
|
|
370
|
+
@apply font-sans font-light text-dark-grey;
|
|
371
|
+
@apply text-sub-header-xs xs:text-sub-header;
|
|
372
|
+
@apply tracking-tighten-0.025;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ui-text-overline1 {
|
|
376
|
+
@apply font-sans font-medium text-dark-grey uppercase;
|
|
377
|
+
@apply text-overline1;
|
|
378
|
+
@apply tracking-widen-0.15;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.ui-text-overline2 {
|
|
382
|
+
@apply font-sans font-medium text-dark-grey uppercase;
|
|
383
|
+
@apply text-overline2;
|
|
384
|
+
@apply tracking-widen-0.1;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ui-text-menu1 {
|
|
388
|
+
@apply font-sans font-light text-cool-black;
|
|
389
|
+
@apply text-menu1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.ui-text-menu2 {
|
|
393
|
+
@apply font-sans font-light text-cool-black;
|
|
394
|
+
@apply text-menu2;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.ui-text-menu3 {
|
|
398
|
+
@apply font-sans font-light text-cool-black;
|
|
399
|
+
@apply text-menu3;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ui-text-code1 {
|
|
403
|
+
@apply font-mono font-normal text-code1;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ui-text-code2 {
|
|
407
|
+
@apply font-mono font-normal text-code2;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.ui-unordered-list {
|
|
411
|
+
@apply text-p1 font-light text-cool-black;
|
|
412
|
+
@apply list-disc ml-32 mb-24;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.ui-unordered-list ul {
|
|
416
|
+
@apply ml-24 mt-16 list-circle;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.ui-unordered-list ul ul {
|
|
420
|
+
@apply list-square;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.ui-unordered-list-with-emphasis {
|
|
424
|
+
@apply text-p1 font-light text-cool-black;
|
|
425
|
+
@apply list-disc ml-32 mt-32 -mb-12;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.ui-unordered-list-with-emphasis li div {
|
|
429
|
+
@apply relative -top-12;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.ui-unordered-list-with-emphasis li div > strong {
|
|
433
|
+
@apply block;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.ui-unordered-list-with-emphasis ul {
|
|
437
|
+
margin-top: calc(var(--spacing-16) + var(--spacing-8));
|
|
438
|
+
@apply ml-24 list-disc;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.ui-unordered-list-with-emphasis ul ul {
|
|
442
|
+
@apply list-circle;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* visited needs to come before :hover et all else it overrides them */
|
|
446
|
+
.ui-link:visited {
|
|
447
|
+
@apply text-gui-viewed;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.ui-link {
|
|
451
|
+
@apply hover:text-active-orange active:text-red-orange;
|
|
452
|
+
-webkit-text-decoration-color: var(--color-active-orange);
|
|
453
|
+
text-decoration-color: var(--color-active-orange);
|
|
454
|
+
text-underline-offset: 4px; /* px used here as behaves weird with rem's */
|
|
455
|
+
-webkit-text-decoration-line: underline;
|
|
456
|
+
text-decoration-line: underline;
|
|
457
|
+
text-decoration-thickness: 0.125rem;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.ui-link:focus {
|
|
461
|
+
@apply focus:text-white focus:bg-active-orange focus:outline-none;
|
|
462
|
+
text-decoration: none;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
@layer components {
|
|
466
|
+
.ui-checkbox-p1 {
|
|
467
|
+
@apply flex items-start mb-16 font-sans;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.ui-checkbox-p2 {
|
|
471
|
+
@apply flex items-start mb-12 font-sans;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.ui-checkbox-input {
|
|
475
|
+
@apply opacity-0 absolute h-20 w-20;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.ui-checkbox-styled {
|
|
479
|
+
@apply w-20 h-20 mr-16;
|
|
480
|
+
@apply bg-white flex flex-shrink-0 justify-center items-center;
|
|
481
|
+
@apply border border-dark-grey rounded-md focus-within:border-active-orange;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.ui-checkbox-styled-tick {
|
|
485
|
+
@apply hidden text-white;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.ui-checkbox-label-p1 {
|
|
489
|
+
@apply select-none;
|
|
490
|
+
@apply text-p1 font-light text-cool-black;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.ui-checkbox-label-p2 {
|
|
494
|
+
@apply select-none;
|
|
495
|
+
@apply text-p2 font-light text-cool-black;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.ui-checkbox-input:disabled + .ui-checkbox-styled {
|
|
499
|
+
@apply bg-gui-unavailable border;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.ui-checkbox-input:focus + .ui-checkbox-styled {
|
|
503
|
+
border-width: 0.125rem;
|
|
504
|
+
@apply border-gui-focus;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.ui-checkbox-input:checked + .ui-checkbox-styled {
|
|
508
|
+
@apply bg-active-orange border-dark-grey border;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ui-checkbox-input:checked + .ui-checkbox-styled svg {
|
|
512
|
+
@apply block;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
@layer components {
|
|
516
|
+
.ui-input {
|
|
517
|
+
@apply text-p2 font-light bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
|
518
|
+
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
519
|
+
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
|
520
|
+
@apply max-w-screen-sm;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/* Basis for icon component */
|
|
524
|
+
.ui-icon-cool-black {
|
|
525
|
+
stroke: var(--color-cool-black);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.ui-icon-white {
|
|
529
|
+
stroke: var(--color-white);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.ui-icon-dark-grey {
|
|
533
|
+
stroke: var(--color-dark-grey);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* Extend how tailwind does group hover for icons */
|
|
537
|
+
.group {
|
|
538
|
+
&:hover {
|
|
539
|
+
.group-hover\:icon-gui-hover {
|
|
540
|
+
stroke: var(--color-gui-hover);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
&:focus {
|
|
545
|
+
.group-focus\:icon-gui-focus {
|
|
546
|
+
stroke: var(--color-gui-focus);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.ui-version-tag {
|
|
552
|
+
@apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
|
|
553
|
+
|
|
554
|
+
position: relative;
|
|
555
|
+
vertical-align: super;
|
|
556
|
+
margin-left: 3px;
|
|
557
|
+
font-size: 8px;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.3.0-dev.3c981a4",
|
|
4
4
|
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/reset/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*
|
package/reset/scripts.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Reset=t())}(this,(function(){return(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})()}));
|