@ably/ui 14.0.0-dev.fbce38f → 14.0.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.
- package/README.md +8 -10
- package/core/Accordion.js +1 -0
- package/core/Code/component.js +1 -1
- package/core/Code.js +1 -0
- package/core/ConnectStateWrapper.js +1 -0
- package/core/ContactFooter/component.css +9 -7
- package/core/ContactFooter/component.js +1 -1
- package/core/ContactFooter.js +1 -0
- package/core/CookieMessage/component.css +12 -10
- package/core/CookieMessage.js +1 -0
- package/core/CustomerLogos.js +1 -0
- package/core/DropdownMenu.js +1 -0
- package/core/Expander.js +1 -0
- package/core/FeaturedLink.js +1 -0
- package/core/Flash/component.css +21 -19
- package/core/Flash.js +1 -0
- package/core/Footer/component.css +24 -22
- package/core/Footer.js +1 -0
- package/core/Icon.js +1 -0
- package/core/Loader.js +13 -0
- package/core/Logo.js +1 -0
- package/core/Meganav/component.css +105 -103
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.js +1 -0
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.js +1 -0
- package/core/MeganavContentCompany.js +1 -0
- package/core/MeganavContentDevelopers.js +1 -0
- package/core/MeganavContentProducts.js +1 -0
- package/core/MeganavContentUseCases.js +1 -0
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.js +1 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -0
- package/core/MeganavItemsDesktop.js +1 -0
- package/core/MeganavItemsMobile.js +1 -0
- package/core/MeganavItemsSignedIn.js +1 -0
- package/core/MeganavSearch.js +1 -0
- package/core/MeganavSearchAutocomplete/component.js +1 -1
- package/core/MeganavSearchAutocomplete.js +1 -0
- package/core/MeganavSearchPanel.js +1 -0
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/MeganavSearchSuggestions.js +1 -0
- package/core/Notice/component.css +6 -4
- package/core/Notice/component.js +1 -1
- package/core/Notice.js +1 -0
- package/core/SignOutLink.js +1 -0
- package/core/Slider/component.css +38 -4
- package/core/Slider/component.js +1 -1
- package/core/Slider.js +1 -0
- package/core/Table/Table.js +1 -1
- package/core/Table/TableCell.js +7 -1
- package/core/Table/TableRow.js +1 -1
- package/core/Table/data.js +1 -0
- package/core/Table.js +1 -0
- package/core/Tooltip.js +1 -0
- package/core/css.js +1 -1
- package/core/dom-query.js +1 -1
- package/core/hubspot-chat-toggle.js +1 -1
- package/core/icons/icon-gui-partial.svg +4 -0
- package/core/icons.js +1 -1
- package/core/load-sprites.js +1 -1
- package/core/react-renderer.js +1 -1
- package/core/remote-blogs-posts.js +1 -1
- package/core/remote-data-store.js +1 -1
- package/core/remote-data-util.js +1 -1
- package/core/remote-session-data.js +1 -1
- package/core/scripts.js +1 -1
- package/core/sprites.svg +1 -1
- package/core/styles/buttons.css +123 -121
- package/core/styles/forms.css +51 -49
- package/core/styles/layout.css +16 -14
- package/core/styles/properties.css +252 -250
- package/core/styles/text.css +167 -165
- package/core/styles.components.css +24 -22
- package/core/url-base.js +1 -1
- package/core/utils/syntax-highlighter-registry.js +1 -1
- package/core/utils/syntax-highlighter.css +59 -55
- package/core/utils/syntax-highlighter.js +1 -1
- package/package.json +4 -7
- package/src/core/Accordion/Accordion.stories.tsx +1 -1
- package/src/core/{Accordion/component.tsx → Accordion.tsx} +8 -6
- package/src/core/Code/Code.stories.tsx +1 -1
- package/src/core/{Code/component.tsx → Code.tsx} +2 -3
- package/src/core/{ConnectStateWrapper/component.tsx → ConnectStateWrapper.tsx} +1 -1
- package/src/core/ContactFooter/ContactFooter.stories.tsx +1 -1
- package/src/core/ContactFooter/component.css +9 -7
- package/src/core/{ContactFooter/component.tsx → ContactFooter.tsx} +3 -4
- package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
- package/src/core/CookieMessage/component.css +12 -10
- package/src/core/{CookieMessage/component.tsx → CookieMessage.tsx} +1 -2
- package/src/core/CustomerLogos/CustomerLogos.stories.tsx +1 -1
- package/src/core/DropdownMenu/DropdownMenu.stories.tsx +2 -2
- package/src/core/{DropdownMenu/component.tsx → DropdownMenu.tsx} +1 -1
- package/src/core/Expander/Expander.stories.tsx +132 -0
- package/src/core/Expander.tsx +63 -0
- package/src/core/FeaturedLink/FeaturedLink.stories.tsx +1 -1
- package/src/core/{FeaturedLink/component.tsx → FeaturedLink.tsx} +1 -1
- package/src/core/Flash/Flash.stories.tsx +1 -1
- package/src/core/Flash/component.css +21 -19
- package/src/core/{Flash/component.tsx → Flash.tsx} +3 -4
- package/src/core/Footer/Footer.stories.tsx +1 -1
- package/src/core/Footer/component.css +24 -22
- package/src/core/{Footer/component.tsx → Footer.tsx} +2 -3
- package/src/core/Icon/Icon.stories.tsx +2 -1
- package/src/core/Loader/Loader.stories.tsx +1 -1
- package/src/core/Logo/Logo.stories.tsx +1 -1
- package/src/core/Meganav/Meganav.stories.tsx +1 -1
- package/src/core/Meganav/component.css +105 -103
- package/src/core/Meganav/component.js +0 -2
- package/src/core/{Meganav/component.tsx → Meganav.tsx} +16 -19
- package/src/core/{MeganavBlogPostsList/component.tsx → MeganavBlogPostsList.tsx} +2 -2
- package/src/core/{MeganavContentCompany/component.tsx → MeganavContentCompany.tsx} +5 -5
- package/src/core/{MeganavContentDevelopers/component.tsx → MeganavContentDevelopers.tsx} +2 -2
- package/src/core/{MeganavContentProducts/component.tsx → MeganavContentProducts.tsx} +2 -2
- package/src/core/{MeganavContentUseCases/component.tsx → MeganavContentUseCases.tsx} +2 -2
- package/src/core/{MeganavControl/component.tsx → MeganavControl.tsx} +2 -2
- package/src/core/{MeganavControlMobileDropdown/component.tsx → MeganavControlMobileDropdown.tsx} +2 -2
- package/src/core/{MeganavControlMobilePanelClose/component.tsx → MeganavControlMobilePanelClose.tsx} +1 -2
- package/src/core/{MeganavControlMobilePanelOpen/component.tsx → MeganavControlMobilePanelOpen.tsx} +1 -2
- package/src/core/{MeganavItemsDesktop/component.tsx → MeganavItemsDesktop.tsx} +3 -3
- package/src/core/{MeganavItemsMobile/component.tsx → MeganavItemsMobile.tsx} +9 -9
- package/src/core/{MeganavItemsSignedIn/component.tsx → MeganavItemsSignedIn.tsx} +4 -8
- package/src/core/{MeganavSearch/component.tsx → MeganavSearch.tsx} +3 -3
- package/src/core/{MeganavSearchPanel/component.tsx → MeganavSearchPanel.tsx} +4 -4
- package/src/core/{MeganavSearchSuggestions/component.tsx → MeganavSearchSuggestions.tsx} +2 -2
- package/src/core/Notice/component.css +6 -4
- package/src/core/Notice/component.js +1 -2
- package/src/core/{Notice/component.tsx → Notice.tsx} +2 -4
- package/src/core/{SignOutLink/component.tsx → SignOutLink.tsx} +1 -1
- package/src/core/Slider/Slider.stories.tsx +83 -30
- package/src/core/Slider/component.css +38 -4
- package/src/core/Slider/component.js +0 -2
- package/src/core/Slider.tsx +224 -0
- package/src/core/Table/Table.tsx +38 -10
- package/src/core/Table/TableCell.tsx +14 -27
- package/src/core/Table/{stories/data.tsx → data.tsx} +23 -3
- package/src/core/{Table/index.ts → Table.tsx} +3 -12
- package/src/core/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/core/{Tooltip/component.tsx → Tooltip.tsx} +34 -6
- package/src/core/icons/icon-gui-partial.svg +4 -0
- package/src/core/scripts.js +0 -2
- package/src/core/styles/buttons.css +123 -121
- package/src/core/styles/forms.css +51 -49
- package/src/core/styles/layout.css +16 -14
- package/src/core/styles/properties.css +252 -250
- package/src/core/styles/text.css +167 -165
- package/src/core/styles.components.css +24 -22
- package/src/core/utils/syntax-highlighter.css +59 -55
- package/src/pages/Buttons.mdx +1 -1
- package/src/pages/Chips.mdx +1 -1
- package/src/pages/Forms.mdx +2 -2
- package/core/Accordion/component.js +0 -1
- package/core/ConnectStateWrapper/component.js +0 -1
- package/core/CookieMessage/component.js +0 -1
- package/core/CustomerLogos/component.js +0 -1
- package/core/DropdownMenu/component.js +0 -1
- package/core/FeaturedLink/component.js +0 -1
- package/core/Flash/component.js +0 -1
- package/core/Footer/component.js +0 -1
- package/core/Icon/component.js +0 -1
- package/core/Loader/component.js +0 -1
- package/core/Logo/component.js +0 -1
- package/core/MeganavContentCompany/component.js +0 -1
- package/core/MeganavContentDevelopers/component.js +0 -1
- package/core/MeganavContentProducts/component.js +0 -1
- package/core/MeganavContentUseCases/component.js +0 -1
- package/core/MeganavItemsDesktop/component.js +0 -1
- package/core/MeganavItemsMobile/component.js +0 -1
- package/core/MeganavItemsSignedIn/component.js +0 -1
- package/core/MeganavSearch/component.js +0 -1
- package/core/MeganavSearchPanel/component.js +0 -1
- package/core/SignOutLink/component.js +0 -1
- package/core/Table/index.js +0 -1
- package/core/Table/stories/data.js +0 -1
- package/core/Tooltip/component.js +0 -1
- package/src/core/Accordion/component.js +0 -0
- package/src/core/ConnectStateWrapper/component.js +0 -0
- package/src/core/CookieMessage/component.js +0 -1
- package/src/core/CustomerLogos/component.js +0 -0
- package/src/core/DropdownMenu/component.js +0 -0
- package/src/core/FeaturedLink/component.js +0 -0
- package/src/core/Flash/component.js +0 -1
- package/src/core/Footer/component.js +0 -1
- package/src/core/Icon/component.js +0 -0
- package/src/core/Loader/component.js +0 -0
- package/src/core/Logo/component.js +0 -0
- package/src/core/MeganavContentCompany/component.js +0 -0
- package/src/core/MeganavContentDevelopers/component.js +0 -0
- package/src/core/MeganavContentProducts/component.js +0 -0
- package/src/core/MeganavContentUseCases/component.js +0 -1
- package/src/core/MeganavItemsDesktop/component.js +0 -0
- package/src/core/MeganavItemsMobile/component.js +0 -0
- package/src/core/MeganavItemsSignedIn/component.js +0 -0
- package/src/core/MeganavSearch/component.js +0 -0
- package/src/core/MeganavSearchPanel/component.js +0 -0
- package/src/core/SignOutLink/component.js +0 -0
- package/src/core/Slider/component.tsx +0 -112
- /package/src/core/{CustomerLogos/component.tsx → CustomerLogos.tsx} +0 -0
- /package/src/core/{Icon/component.tsx → Icon.tsx} +0 -0
- /package/src/core/{Loader/component.tsx → Loader.tsx} +0 -0
- /package/src/core/{Logo/component.tsx → Logo.tsx} +0 -0
- /package/src/core/{MeganavSearchAutocomplete/component.tsx → MeganavSearchAutocomplete.tsx} +0 -0
- /package/src/core/Table/{stories/Table.stories.tsx → Table.stories.tsx} +0 -0
package/core/styles/text.css
CHANGED
|
@@ -1,166 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
.ui-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.ui-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-text-title {
|
|
3
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
4
|
+
@apply text-title-xs xs:text-title xl:text-title-xl;
|
|
5
|
+
@apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ui-text-h1 {
|
|
9
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
10
|
+
@apply text-h1-xs xs:text-h1 xl:text-h1-xl;
|
|
11
|
+
@apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ui-text-h2 {
|
|
15
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
16
|
+
@apply text-h2-xs xs:text-h2 xl:text-h2-xl;
|
|
17
|
+
@apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ui-text-h3 {
|
|
21
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
22
|
+
@apply text-h3;
|
|
23
|
+
@apply tracking-tighten-0.005;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ui-text-h4 {
|
|
27
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
28
|
+
@apply text-h4;
|
|
29
|
+
@apply tracking-tighten-0.0015;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui-text-h5 {
|
|
33
|
+
@apply font-sans font-extrabold text-cool-black;
|
|
34
|
+
@apply text-h5;
|
|
35
|
+
@apply tracking-tighten-0.0025;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ui-text-p1 {
|
|
39
|
+
@apply font-sans font-medium text-charcoal-grey;
|
|
40
|
+
@apply text-p1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ui-text-p2 {
|
|
44
|
+
@apply font-sans font-medium text-charcoal-grey;
|
|
45
|
+
@apply text-p2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ui-text-p3 {
|
|
49
|
+
@apply font-sans font-medium text-charcoal-grey;
|
|
50
|
+
@apply text-p3;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ui-text-standfirst {
|
|
54
|
+
@apply font-sans font-light text-active-orange;
|
|
55
|
+
@apply text-standfirst xl:text-standfirst-xl;
|
|
56
|
+
@apply tracking-tighten-0.025 xl:tracking-tighten-0.015;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ui-text-quote {
|
|
60
|
+
@apply font-sans font-normal text-cool-black;
|
|
61
|
+
@apply text-quote leading-normal;
|
|
62
|
+
@apply tracking-tighten-0.0015;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ui-text-sub-header {
|
|
66
|
+
@apply font-sans font-semibold text-neutral-800;
|
|
67
|
+
@apply text-sub-header-xs xs:text-sub-header leading-normal;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ui-text-overline1 {
|
|
71
|
+
@apply font-mono font-medium text-active-orange uppercase;
|
|
72
|
+
@apply text-overline1 leading-normal;
|
|
73
|
+
@apply tracking-widen-0.16;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ui-text-overline2 {
|
|
77
|
+
@apply font-mono font-medium text-active-orange uppercase;
|
|
78
|
+
@apply text-overline2 leading-normal;
|
|
79
|
+
@apply tracking-widen-0.16;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ui-text-menu1 {
|
|
83
|
+
@apply font-sans font-medium text-cool-black;
|
|
84
|
+
@apply text-menu1 leading-snug;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ui-text-menu2 {
|
|
88
|
+
@apply font-sans font-medium text-cool-black;
|
|
89
|
+
@apply text-menu2 leading-snug;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ui-text-menu3 {
|
|
93
|
+
@apply font-sans font-medium text-cool-black;
|
|
94
|
+
@apply text-menu3 leading-snug;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ui-text-code {
|
|
98
|
+
@apply font-mono font-normal text-code;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ui-text-code2 {
|
|
102
|
+
@apply font-mono font-normal text-code2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ui-text-code-inline {
|
|
106
|
+
@apply font-mono font-normal text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ui-unordered-list {
|
|
110
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
111
|
+
@apply ml-32 my-16;
|
|
112
|
+
@apply list-disc;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ui-ordered-list {
|
|
116
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
117
|
+
@apply ml-32 my-16;
|
|
118
|
+
@apply list-decimal;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui-ordered-list li,
|
|
122
|
+
.ui-unordered-list li {
|
|
123
|
+
@apply mb-8;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
127
|
+
.ui-ordered-list li > *:last-of-type:not(ul):not(ol) {
|
|
128
|
+
margin-bottom: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ui-unordered-list ul {
|
|
132
|
+
@apply ml-24 my-8 list-circle;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ui-ordered-list ol {
|
|
136
|
+
@apply ml-24 my-16 list-decimal;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ui-unordered-list ul ul {
|
|
140
|
+
@apply list-square my-8;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ui-unordered-list ul ul {
|
|
144
|
+
@apply my-8;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ui-link {
|
|
148
|
+
@apply text-gui-default;
|
|
149
|
+
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
|
150
|
+
@apply focus:text-gui-default focus:outline-gui-focus;
|
|
151
|
+
@apply no-underline;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ui-link-neutral {
|
|
155
|
+
@apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
|
|
156
|
+
@apply focus:text-charcoal-grey;
|
|
157
|
+
@apply underline;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* focus:outline-gui-focus-neutral does not get created under Tailwind 3.3.5, not sure why */
|
|
161
|
+
.ui-link-neutral:focus {
|
|
162
|
+
outline: 2px solid var(--color-neutral-000);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ui-figcaption {
|
|
166
|
+
@apply font-mono text-p3 text-neutral-800;
|
|
167
|
+
}
|
|
166
168
|
}
|
|
@@ -3,31 +3,33 @@
|
|
|
3
3
|
@import "./styles/text.css";
|
|
4
4
|
@import "./styles/forms.css";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
@layer components {
|
|
7
|
+
.ui-input {
|
|
8
|
+
@apply text-p2 font-medium bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
|
9
|
+
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
10
|
+
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
|
11
|
+
@apply max-w-screen-sm;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
/* Basis for icon component */
|
|
14
|
-
.ui-icon-cool-black {
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
/* Basis for icon component */
|
|
15
|
+
.ui-icon-cool-black {
|
|
16
|
+
stroke: var(--color-cool-black);
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
.ui-icon-white {
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
.ui-icon-white {
|
|
20
|
+
stroke: var(--color-white);
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
.ui-icon-dark-grey {
|
|
23
|
-
|
|
24
|
-
}
|
|
23
|
+
.ui-icon-dark-grey {
|
|
24
|
+
stroke: var(--color-dark-grey);
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
.ui-version-tag {
|
|
27
|
-
|
|
27
|
+
.ui-version-tag {
|
|
28
|
+
@apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
position: relative;
|
|
31
|
+
vertical-align: super;
|
|
32
|
+
margin-left: 3px;
|
|
33
|
+
font-size: 8px;
|
|
34
|
+
}
|
|
33
35
|
}
|
package/core/url-base.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const DEFAULT_URL_BASE="";const absUrl=(path,urlBase=DEFAULT_URL_BASE)=>{return`${urlBase}${path}`};export default absUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import bash from"highlight.js/lib/languages/bash";import cpp from"highlight.js/lib/languages/cpp";import csharp from"highlight.js/lib/languages/csharp";import css from"highlight.js/lib/languages/css";import dart from"highlight.js/lib/languages/dart";import dos from"highlight.js/lib/languages/dos";import diff from"highlight.js/lib/languages/diff";import erlang from"highlight.js/lib/languages/erlang";import elixir from"highlight.js/lib/languages/elixir";import plaintext from"highlight.js/lib/languages/plaintext";import go from"highlight.js/lib/languages/go";import http from"highlight.js/lib/languages/http";import java from"highlight.js/lib/languages/java";import javascript from"highlight.js/lib/languages/javascript";import typescript from"highlight.js/lib/languages/typescript";import json from"highlight.js/lib/languages/json";import objectivec from"highlight.js/lib/languages/objectivec";import php from"highlight.js/lib/languages/php";import python from"highlight.js/lib/languages/python";import ruby from"highlight.js/lib/languages/ruby";import swift from"highlight.js/lib/languages/swift";import kotlin from"highlight.js/lib/languages/kotlin";import sql from"highlight.js/lib/languages/sql";import xml from"highlight.js/lib/languages/xml";import yaml from"highlight.js/lib/languages/yaml";import curl from"highlightjs-curl/src/languages/curl";
|
|
1
|
+
import bash from"highlight.js/lib/languages/bash";import cpp from"highlight.js/lib/languages/cpp";import csharp from"highlight.js/lib/languages/csharp";import css from"highlight.js/lib/languages/css";import dart from"highlight.js/lib/languages/dart";import dos from"highlight.js/lib/languages/dos";import diff from"highlight.js/lib/languages/diff";import erlang from"highlight.js/lib/languages/erlang";import elixir from"highlight.js/lib/languages/elixir";import plaintext from"highlight.js/lib/languages/plaintext";import go from"highlight.js/lib/languages/go";import http from"highlight.js/lib/languages/http";import java from"highlight.js/lib/languages/java";import javascript from"highlight.js/lib/languages/javascript";import typescript from"highlight.js/lib/languages/typescript";import json from"highlight.js/lib/languages/json";import objectivec from"highlight.js/lib/languages/objectivec";import php from"highlight.js/lib/languages/php";import python from"highlight.js/lib/languages/python";import ruby from"highlight.js/lib/languages/ruby";import swift from"highlight.js/lib/languages/swift";import kotlin from"highlight.js/lib/languages/kotlin";import sql from"highlight.js/lib/languages/sql";import xml from"highlight.js/lib/languages/xml";import yaml from"highlight.js/lib/languages/yaml";import curl from"highlightjs-curl/src/languages/curl";const registry=[{label:"Text",key:"text",module:plaintext},{label:"JS",key:"javascript",module:javascript},{label:"TS",key:"typescript",module:typescript},{label:"Java",key:"java",module:java},{label:"Ruby",key:"ruby",module:ruby},{label:"Python",key:"python",module:python},{label:"PHP",key:"php",module:php},{label:"Shell",key:"bash",module:bash},{label:"C#",key:"cs",module:csharp},{label:"CSS",key:"css",module:css},{label:"Go",key:"go",module:go},{label:"HTML",key:"xml",module:xml},{label:"HTTP",key:"http",module:http},{label:"C++",key:"cpp",module:cpp},{label:"Dart",key:"dart",module:dart},{label:"Swift",key:"swift",module:swift},{label:"Kotlin",key:"kotlin",module:kotlin},{label:"Objective C",key:"objectivec",module:objectivec},{label:"Node.js",key:"javascript",module:javascript},{label:"JSON",key:"json",module:json},{label:"DOS",key:"dos",module:dos},{label:"YAML",key:"yaml",module:yaml},{label:"Erlang",key:"erlang",module:erlang},{label:"Elixir",key:"elixir",module:elixir},{label:"Diff",key:"diff",module:diff},{label:"SQL",key:"sql",module:sql},{label:"cURL",key:"curl",module:curl},{label:"HTML",key:"html",module:xml},{label:"XML",key:"xml",module:xml}];export default registry;
|
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import url("https://fonts.googleapis.com/css2?family=
|
|
3
|
-
@import url("https://fonts.googleapis.com/css2?family=
|
|
4
|
-
|
|
5
|
-
.hljs {
|
|
6
|
-
background: var(--syntax-black);
|
|
7
|
-
color: var(--syntax-light-grey);
|
|
1
|
+
@layer base {
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
|
|
3
|
+
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap");
|
|
4
|
+
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
|
|
8
5
|
}
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
@layer components {
|
|
8
|
+
.hljs {
|
|
9
|
+
background: var(--syntax-black);
|
|
10
|
+
color: var(--syntax-light-grey);
|
|
11
|
+
}
|
|
13
12
|
|
|
14
|
-
.hljs-
|
|
15
|
-
|
|
16
|
-
}
|
|
13
|
+
.hljs-emphasis {
|
|
14
|
+
@apply italic;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
.hljs-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
17
|
+
.hljs-strong {
|
|
18
|
+
@apply font-bold;
|
|
19
|
+
}
|
|
22
20
|
|
|
23
|
-
.hljs-
|
|
24
|
-
.hljs-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.hljs-selector-id,
|
|
28
|
-
.hljs-selector-class,
|
|
29
|
-
.hljs-regexp,
|
|
30
|
-
.hljs-deletion {
|
|
31
|
-
color: var(--syntax-red);
|
|
32
|
-
}
|
|
21
|
+
.hljs-comment,
|
|
22
|
+
.hljs-quote {
|
|
23
|
+
color: var(--syntax-dark-grey);
|
|
24
|
+
}
|
|
33
25
|
|
|
34
|
-
.hljs-
|
|
35
|
-
.hljs-
|
|
36
|
-
.hljs-
|
|
37
|
-
.hljs-
|
|
38
|
-
.hljs-
|
|
39
|
-
.hljs-
|
|
40
|
-
.hljs-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
.hljs-variable,
|
|
27
|
+
.hljs-template-variable,
|
|
28
|
+
.hljs-tag,
|
|
29
|
+
.hljs-name,
|
|
30
|
+
.hljs-selector-id,
|
|
31
|
+
.hljs-selector-class,
|
|
32
|
+
.hljs-regexp,
|
|
33
|
+
.hljs-deletion {
|
|
34
|
+
color: var(--syntax-red);
|
|
35
|
+
}
|
|
43
36
|
|
|
44
|
-
.hljs-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
.hljs-number,
|
|
38
|
+
.hljs-built_in,
|
|
39
|
+
.hljs-literal,
|
|
40
|
+
.hljs-type,
|
|
41
|
+
.hljs-params,
|
|
42
|
+
.hljs-meta,
|
|
43
|
+
.hljs-link {
|
|
44
|
+
color: var(--syntax-orange);
|
|
45
|
+
}
|
|
47
46
|
|
|
48
|
-
.hljs-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.hljs-addition {
|
|
52
|
-
color: var(--syntax-green);
|
|
53
|
-
}
|
|
47
|
+
.hljs-attribute {
|
|
48
|
+
color: var(--syntax-yellow);
|
|
49
|
+
}
|
|
54
50
|
|
|
55
|
-
.hljs-
|
|
56
|
-
.hljs-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
.hljs-string,
|
|
52
|
+
.hljs-symbol,
|
|
53
|
+
.hljs-bullet,
|
|
54
|
+
.hljs-addition {
|
|
55
|
+
color: var(--syntax-green);
|
|
56
|
+
}
|
|
59
57
|
|
|
60
|
-
.hljs-
|
|
61
|
-
.hljs-
|
|
62
|
-
|
|
63
|
-
}
|
|
58
|
+
.hljs-title,
|
|
59
|
+
.hljs-section {
|
|
60
|
+
color: var(--syntax-blue);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.hljs-keyword,
|
|
64
|
+
.hljs-selector-tag {
|
|
65
|
+
color: var(--syntax-lilac);
|
|
66
|
+
}
|
|
64
67
|
|
|
65
|
-
.hljs-subst {
|
|
66
|
-
|
|
68
|
+
.hljs-subst {
|
|
69
|
+
color: var(--syntax-mid-grey);
|
|
70
|
+
}
|
|
67
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import hljs from"highlight.js/lib/core";
|
|
1
|
+
import hljs from"highlight.js/lib/core";const languageToHighlightKey=lang=>{let id;if(!lang){lang="text"}switch(lang.toLowerCase()){case"android":id="java";break;case".net":case"net":case"dotnet":case"csharp":case"c#":id="cs";break;case"objc":case"objective c":id="objectivec";break;case"laravel":id="php";break;case"flutter":id="dart";break;case"node.js":case"js":id="javascript";break;case"ts":id="typescript";break;case"kotlin":case"kt":id="kotlin";break;case"shell":case"fh":case"sh":id="bash";break;case"https":case"http":case"txt":case"plaintext":id="text";break;case"cmd":case"bat":id="dos";break;case"yml":id="yaml";break;case"erl":id="erlang";break;case"patch":id="diff";break;case"svg":id="xml";break;default:break}return id||lang};const registerDefaultLanguages=register=>{register.forEach(({key,module})=>hljs.registerLanguage(key,module))};const highlightSnippet=(languageKeyword,snippet)=>{const language=languageToHighlightKey(languageKeyword);if(typeof snippet!=="string"||!snippet||!language)return;return hljs.highlight(snippet,{language}).value};export{highlightSnippet,languageToHighlightKey,registerDefaultLanguages};
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1",
|
|
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
|
-
"type": "module",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "git+ssh://git@github.com/ably/ably-ui.git"
|
|
@@ -16,6 +15,7 @@
|
|
|
16
15
|
"tailwind.extend.js"
|
|
17
16
|
],
|
|
18
17
|
"devDependencies": {
|
|
18
|
+
"@mrtkrcm/cypress-plugin-snapshots": "https://github.com/mrtkrcm/cypress-plugin-snapshots#v1.13.0",
|
|
19
19
|
"@storybook/addon-essentials": "^7.6.17",
|
|
20
20
|
"@storybook/addon-interactions": "^7.6.17",
|
|
21
21
|
"@storybook/addon-links": "^7.6.17",
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
"eslint-plugin-storybook": "^0.6.15",
|
|
38
38
|
"msw": "1.3.2",
|
|
39
39
|
"msw-storybook-addon": "^1.10.0",
|
|
40
|
-
"postcss": "^8.4.35",
|
|
41
|
-
"postcss-import": "^13.0.0",
|
|
42
40
|
"prettier": "^2.3.0",
|
|
43
41
|
"storybook": "^7.6.4",
|
|
44
42
|
"svg-sprite": "^2.0.4",
|
|
@@ -47,7 +45,7 @@
|
|
|
47
45
|
"vite": "^4.5.2"
|
|
48
46
|
},
|
|
49
47
|
"scripts": {
|
|
50
|
-
"build:prebuild": "rm -
|
|
48
|
+
"build:prebuild": "rm -rf core reset",
|
|
51
49
|
"build:swc": "swc src/core src/reset -d dist --copy-files --include-dotfiles --strip-leading-paths",
|
|
52
50
|
"build:sprites": "svg-sprite -C .svgrc src/core/icons/*.svg",
|
|
53
51
|
"build:cleanup": "mv dist/* . && rm -r dist",
|
|
@@ -63,10 +61,9 @@
|
|
|
63
61
|
"release": "./scripts/release.sh",
|
|
64
62
|
"start": "vite --port 5000",
|
|
65
63
|
"storybook": "yarn build && storybook dev -p 6006 --no-version-updates",
|
|
66
|
-
"build-storybook": "storybook build -o preview"
|
|
64
|
+
"build-storybook": "yarn build && storybook build -o preview"
|
|
67
65
|
},
|
|
68
66
|
"dependencies": {
|
|
69
|
-
"@mrtkrcm/cypress-plugin-snapshots": "https://github.com/mrtkrcm/cypress-plugin-snapshots#v1.13.0",
|
|
70
67
|
"addsearch-js-client": "^0.7.0",
|
|
71
68
|
"array-flat-polyfill": "^1.0.1",
|
|
72
69
|
"dompurify": "^2.2.9",
|