@ably/ui 14.0.4 → 14.0.6
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/Flash.js +1 -1
- package/core/styles/forms.css +4 -4
- package/core/styles/toggles.css +38 -0
- package/core/styles.components.css +1 -0
- package/package.json +15 -18
- package/tailwind.config.js +3 -0
- package/src/core/Accordion/Accordion.stories.tsx +0 -39
- package/src/core/Accordion.tsx +0 -149
- package/src/core/Code/Code.stories.tsx +0 -71
- package/src/core/Code/component.css +0 -1
- package/src/core/Code/component.js +0 -27
- package/src/core/Code.tsx +0 -44
- package/src/core/ConnectStateWrapper.tsx +0 -43
- package/src/core/ContactFooter/ContactFooter.stories.tsx +0 -11
- package/src/core/ContactFooter/component.css +0 -11
- package/src/core/ContactFooter/component.js +0 -2
- package/src/core/ContactFooter.tsx +0 -91
- package/src/core/CookieMessage/CookieMessage.stories.tsx +0 -12
- package/src/core/CookieMessage/component.css +0 -15
- package/src/core/CookieMessage.tsx +0 -52
- package/src/core/CustomerLogos/CustomerLogos.stories.tsx +0 -43
- package/src/core/CustomerLogos.tsx +0 -35
- package/src/core/DropdownMenu/DropdownMenu.stories.tsx +0 -48
- package/src/core/DropdownMenu.tsx +0 -140
- package/src/core/Expander/Expander.stories.tsx +0 -132
- package/src/core/Expander.tsx +0 -63
- package/src/core/FeaturedLink/FeaturedLink.stories.tsx +0 -43
- package/src/core/FeaturedLink.tsx +0 -93
- package/src/core/Flash/Flash.stories.tsx +0 -37
- package/src/core/Flash/component.css +0 -28
- package/src/core/Flash.tsx +0 -233
- package/src/core/Footer/Footer.stories.tsx +0 -26
- package/src/core/Footer/component.css +0 -33
- package/src/core/Footer.tsx +0 -535
- package/src/core/Icon/Icon.stories.tsx +0 -151
- package/src/core/Icon.tsx +0 -26
- package/src/core/Loader/Loader.stories.tsx +0 -21
- package/src/core/Loader.tsx +0 -52
- package/src/core/Logo/Logo.stories.tsx +0 -12
- package/src/core/Logo.tsx +0 -29
- package/src/core/Meganav/Meganav.stories.tsx +0 -86
- package/src/core/Meganav/component.css +0 -114
- package/src/core/Meganav/component.js +0 -150
- package/src/core/Meganav/component.json +0 -37
- package/src/core/Meganav.tsx +0 -225
- package/src/core/MeganavBlogPostsList/component.js +0 -43
- package/src/core/MeganavBlogPostsList.tsx +0 -41
- package/src/core/MeganavContentCompany.tsx +0 -166
- package/src/core/MeganavContentDevelopers.tsx +0 -210
- package/src/core/MeganavContentProducts.tsx +0 -163
- package/src/core/MeganavContentUseCases.tsx +0 -244
- package/src/core/MeganavControl/component.js +0 -117
- package/src/core/MeganavControl.tsx +0 -39
- package/src/core/MeganavControlMobileDropdown/component.js +0 -46
- package/src/core/MeganavControlMobileDropdown.tsx +0 -31
- package/src/core/MeganavControlMobilePanelClose/component.js +0 -36
- package/src/core/MeganavControlMobilePanelClose.tsx +0 -34
- package/src/core/MeganavControlMobilePanelOpen/component.js +0 -59
- package/src/core/MeganavControlMobilePanelOpen.tsx +0 -31
- package/src/core/MeganavItemsDesktop.tsx +0 -68
- package/src/core/MeganavItemsMobile.tsx +0 -197
- package/src/core/MeganavItemsSignedIn.tsx +0 -130
- package/src/core/MeganavSearch.tsx +0 -36
- package/src/core/MeganavSearchAutocomplete/component.js +0 -177
- package/src/core/MeganavSearchAutocomplete.tsx +0 -12
- package/src/core/MeganavSearchPanel.tsx +0 -52
- package/src/core/MeganavSearchSuggestions/component.js +0 -133
- package/src/core/MeganavSearchSuggestions.tsx +0 -62
- package/src/core/Notice/component.css +0 -7
- package/src/core/Notice/component.js +0 -154
- package/src/core/Notice.tsx +0 -102
- package/src/core/SignOutLink.tsx +0 -51
- package/src/core/Slider/Slider.stories.tsx +0 -98
- package/src/core/Slider/component.css +0 -40
- package/src/core/Slider/component.js +0 -105
- package/src/core/Slider.tsx +0 -224
- package/src/core/Table/Table.stories.tsx +0 -12
- package/src/core/Table/Table.tsx +0 -58
- package/src/core/Table/TableCell.tsx +0 -71
- package/src/core/Table/TableRow.tsx +0 -25
- package/src/core/Table/data.tsx +0 -133
- package/src/core/Table.tsx +0 -15
- package/src/core/Tooltip/Tooltip.stories.tsx +0 -27
- package/src/core/Tooltip.tsx +0 -88
- package/src/core/css.js +0 -3
- package/src/core/dom-query.js +0 -5
- package/src/core/fonts/NEXT-Book-Light-Italic.eot +0 -0
- package/src/core/fonts/NEXT-Book-Light-Italic.otf +0 -0
- package/src/core/fonts/NEXT-Book-Light-Italic.woff +0 -0
- package/src/core/fonts/NEXT-Book-Light-Italic.woff2 +0 -0
- package/src/core/fonts/NEXT-Book-Light.eot +0 -0
- package/src/core/fonts/NEXT-Book-Light.otf +0 -0
- package/src/core/fonts/NEXT-Book-Light.woff +0 -0
- package/src/core/fonts/NEXT-Book-Light.woff2 +0 -0
- package/src/core/fonts/NEXT-Book-Medium-Italic.eot +0 -0
- package/src/core/fonts/NEXT-Book-Medium-Italic.otf +0 -0
- package/src/core/fonts/NEXT-Book-Medium-Italic.woff +0 -0
- package/src/core/fonts/NEXT-Book-Medium-Italic.woff2 +0 -0
- package/src/core/fonts/NEXT-Book-Medium.eot +0 -0
- package/src/core/fonts/NEXT-Book-Medium.otf +0 -0
- package/src/core/fonts/NEXT-Book-Medium.woff +0 -0
- package/src/core/fonts/NEXT-Book-Medium.woff2 +0 -0
- package/src/core/fonts/jetBrains-mono.css +0 -3
- package/src/core/fonts/manrope.css +0 -3
- package/src/core/fonts/next.css +0 -63
- package/src/core/fonts/source-code-pro.css +0 -3
- package/src/core/hubspot-chat-toggle.js +0 -67
- package/src/core/icons/discord.svg +0 -10
- package/src/core/icons/facebook.svg +0 -4
- package/src/core/icons/github.svg +0 -3
- package/src/core/icons/glassdoor.svg +0 -3
- package/src/core/icons/google.svg +0 -3
- package/src/core/icons/icon-display-48hrs.svg +0 -3
- package/src/core/icons/icon-display-about-ably-col.svg +0 -4
- package/src/core/icons/icon-display-api-keys.svg +0 -3
- package/src/core/icons/icon-display-api.svg +0 -3
- package/src/core/icons/icon-display-asset-tracking-col.svg +0 -18
- package/src/core/icons/icon-display-browser.svg +0 -10
- package/src/core/icons/icon-display-calendar.svg +0 -3
- package/src/core/icons/icon-display-call-mobile.svg +0 -3
- package/src/core/icons/icon-display-careers-col.svg +0 -9
- package/src/core/icons/icon-display-case-studies-col.svg +0 -5
- package/src/core/icons/icon-display-chat-col.svg +0 -4
- package/src/core/icons/icon-display-chat-stack-col.svg +0 -4
- package/src/core/icons/icon-display-chat-stack.svg +0 -4
- package/src/core/icons/icon-display-cloud-servers.svg +0 -3
- package/src/core/icons/icon-display-compare-tech-col.svg +0 -9
- package/src/core/icons/icon-display-customers-col.svg +0 -15
- package/src/core/icons/icon-display-data-broadcast-col.svg +0 -26
- package/src/core/icons/icon-display-data-synchronization-col.svg +0 -14
- package/src/core/icons/icon-display-docs-col.svg +0 -7
- package/src/core/icons/icon-display-documentation.svg +0 -3
- package/src/core/icons/icon-display-events-col.svg +0 -13
- package/src/core/icons/icon-display-examples-col.svg +0 -11
- package/src/core/icons/icon-display-gdpr.svg +0 -3
- package/src/core/icons/icon-display-general-comms.svg +0 -3
- package/src/core/icons/icon-display-hipaa.svg +0 -10
- package/src/core/icons/icon-display-integrations-col.svg +0 -8
- package/src/core/icons/icon-display-it-support-access.svg +0 -3
- package/src/core/icons/icon-display-it-support-helpdesk.svg +0 -3
- package/src/core/icons/icon-display-kafka-at-the-edge-col.svg +0 -8
- package/src/core/icons/icon-display-laptop.svg +0 -10
- package/src/core/icons/icon-display-lightbulb-col.svg +0 -10
- package/src/core/icons/icon-display-live-chat.svg +0 -3
- package/src/core/icons/icon-display-map-pin.svg +0 -3
- package/src/core/icons/icon-display-message.svg +0 -3
- package/src/core/icons/icon-display-padlock-closed.svg +0 -3
- package/src/core/icons/icon-display-platform.svg +0 -22
- package/src/core/icons/icon-display-play.svg +0 -3
- package/src/core/icons/icon-display-privacy-shield-framework.svg +0 -7
- package/src/core/icons/icon-display-push-notifications-col.svg +0 -6
- package/src/core/icons/icon-display-quickstart-guides-col.svg +0 -8
- package/src/core/icons/icon-display-resources-col.svg +0 -21
- package/src/core/icons/icon-display-sdks-col.svg +0 -11
- package/src/core/icons/icon-display-servers.svg +0 -3
- package/src/core/icons/icon-display-shopping-cart.svg +0 -10
- package/src/core/icons/icon-display-sla.svg +0 -3
- package/src/core/icons/icon-display-soc2-type2.svg +0 -3
- package/src/core/icons/icon-display-tech-account-comms.svg +0 -3
- package/src/core/icons/icon-display-tutorials-demos-col.svg +0 -25
- package/src/core/icons/icon-display-virtual-events-col.svg +0 -12
- package/src/core/icons/icon-display-virtual-events.svg +0 -12
- package/src/core/icons/icon-gui-ably-badge.svg +0 -3
- package/src/core/icons/icon-gui-arrow-bidirectional-horizontal.svg +0 -3
- package/src/core/icons/icon-gui-arrow-bidirectional-vertical.svg +0 -3
- package/src/core/icons/icon-gui-arrow-down.svg +0 -3
- package/src/core/icons/icon-gui-arrow-left.svg +0 -3
- package/src/core/icons/icon-gui-arrow-right.svg +0 -3
- package/src/core/icons/icon-gui-arrow-up.svg +0 -3
- package/src/core/icons/icon-gui-burger-menu.svg +0 -5
- package/src/core/icons/icon-gui-check-circled-fill-black.svg +0 -4
- package/src/core/icons/icon-gui-check-circled-fill.svg +0 -4
- package/src/core/icons/icon-gui-check-circled.svg +0 -3
- package/src/core/icons/icon-gui-checklist-checked.svg +0 -3
- package/src/core/icons/icon-gui-clock.svg +0 -3
- package/src/core/icons/icon-gui-close.svg +0 -3
- package/src/core/icons/icon-gui-copy.svg +0 -10
- package/src/core/icons/icon-gui-cross-circled-fill.svg +0 -4
- package/src/core/icons/icon-gui-cross-circled.svg +0 -3
- package/src/core/icons/icon-gui-dash-circled.svg +0 -3
- package/src/core/icons/icon-gui-disclosure-arrow.svg +0 -3
- package/src/core/icons/icon-gui-document-generic.svg +0 -3
- package/src/core/icons/icon-gui-enlarge.svg +0 -3
- package/src/core/icons/icon-gui-external-link.svg +0 -3
- package/src/core/icons/icon-gui-filter-flow-step-1.svg +0 -5
- package/src/core/icons/icon-gui-filter-flow-step-2.svg +0 -5
- package/src/core/icons/icon-gui-filter-flow-step-3.svg +0 -5
- package/src/core/icons/icon-gui-history.svg +0 -3
- package/src/core/icons/icon-gui-info.svg +0 -3
- package/src/core/icons/icon-gui-link-arrow.svg +0 -3
- package/src/core/icons/icon-gui-link.svg +0 -4
- package/src/core/icons/icon-gui-live-chat.svg +0 -3
- package/src/core/icons/icon-gui-minus.svg +0 -3
- package/src/core/icons/icon-gui-partial.svg +0 -4
- package/src/core/icons/icon-gui-plus.svg +0 -3
- package/src/core/icons/icon-gui-quote-marks-solid.svg +0 -3
- package/src/core/icons/icon-gui-refresh.svg +0 -10
- package/src/core/icons/icon-gui-resources.svg +0 -3
- package/src/core/icons/icon-gui-search.svg +0 -3
- package/src/core/icons/icon-gui-tick.svg +0 -3
- package/src/core/icons/icon-gui-warning.svg +0 -5
- package/src/core/icons/icon-live-updates-results-metrics-col.svg +0 -26
- package/src/core/icons/icon-multi-user-spaces-col.svg +0 -13
- package/src/core/icons/icon-social-x.svg +0 -3
- package/src/core/icons/icon-tech-apachekafka.svg +0 -3
- package/src/core/icons/linkedin.svg +0 -3
- package/src/core/icons/quote.svg +0 -3
- package/src/core/icons/stackoverflow.svg +0 -3
- package/src/core/icons/twitter.svg +0 -3
- package/src/core/icons/youtube.svg +0 -11
- package/src/core/icons.js +0 -6
- package/src/core/images/ably-logo.png +0 -0
- package/src/core/images/ably-logo.svg +0 -15
- package/src/core/images/ably-stack.svg +0 -14
- package/src/core/images/best-support-2023.svg +0 -1
- package/src/core/images/cust-logo-ao-col-pos.png +0 -0
- package/src/core/images/cust-logo-ao-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-ausopen-col-pos.png +0 -0
- package/src/core/images/cust-logo-ausopen-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-ausopen-mono-pos.svg +0 -5
- package/src/core/images/cust-logo-bloomberg-mono-pos.svg +0 -11
- package/src/core/images/cust-logo-hopin-mono-pos.svg +0 -4
- package/src/core/images/cust-logo-hubspot-col-pos.png +0 -0
- package/src/core/images/cust-logo-hubspot-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-hubspot-mono-pos.svg +0 -4
- package/src/core/images/cust-logo-lightspeed-col-pos.png +0 -0
- package/src/core/images/cust-logo-lightspeed-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-lightspeed-syst-col-pos.png +0 -0
- package/src/core/images/cust-logo-lightspeed-syst-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-mentimeter-mono-pos.svg +0 -17
- package/src/core/images/cust-logo-split-col-pos.png +0 -0
- package/src/core/images/cust-logo-split-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-split-mono-pos.svg +0 -9
- package/src/core/images/cust-logo-toyota-mono-pos.svg +0 -18
- package/src/core/images/cust-logo-vitac-col-pos.png +0 -0
- package/src/core/images/cust-logo-vitac-col-pos@2x.png +0 -0
- package/src/core/images/cust-logo-webflow-col-pos.svg +0 -3
- package/src/core/images/cust-photo-hubspot-max-freiert.jpg +0 -0
- package/src/core/images/cust-photo-split-pato-echague.jpg +0 -0
- package/src/core/images/cust-photo-vitac-joe-antonio.jpg +0 -0
- package/src/core/images/fastest-implementation-2023.svg +0 -1
- package/src/core/images/flexible-companies.png +0 -0
- package/src/core/images/high-performer-2022.png +0 -0
- package/src/core/images/high-performer-2023.svg +0 -1
- package/src/core/images/highest-user-adoption-2022.png +0 -0
- package/src/core/images/highest-user-adoption-2023.svg +0 -1
- package/src/core/images/icon-tech-aws.svg +0 -4
- package/src/core/images/rocket-list-2021.png +0 -0
- package/src/core/images/scale-motif-open-empathetic.svg +0 -1
- package/src/core/images/technical-support-01-800x533.jpg +0 -0
- package/src/core/images/users-love-us-2022.png +0 -0
- package/src/core/load-sprites.js +0 -11
- package/src/core/react-renderer.tsx +0 -29
- package/src/core/remote-blogs-posts.js +0 -42
- package/src/core/remote-data-store.js +0 -34
- package/src/core/remote-data-util.js +0 -4
- package/src/core/remote-session-data.js +0 -58
- package/src/core/scripts.js +0 -10
- package/src/core/styles/buttons.css +0 -124
- package/src/core/styles/forms.css +0 -64
- package/src/core/styles/layout.css +0 -21
- package/src/core/styles/properties.css +0 -278
- package/src/core/styles/text.css +0 -168
- package/src/core/styles.base.css +0 -1
- package/src/core/styles.components.css +0 -43
- package/src/core/styles.css +0 -2
- package/src/core/url-base.js +0 -7
- package/src/core/utils/syntax-highlighter-registry.js +0 -63
- package/src/core/utils/syntax-highlighter.css +0 -71
- package/src/core/utils/syntax-highlighter.js +0 -103
- package/src/pages/Buttons.mdx +0 -121
- package/src/pages/Chips.mdx +0 -136
- package/src/pages/Colour.mdx +0 -23
- package/src/pages/Forms.mdx +0 -173
- package/src/pages/Layout.mdx +0 -58
- package/src/pages/Typography.mdx +0 -206
- package/src/pages/utils.ts +0 -70
- package/src/reset/scripts.js +0 -1
- package/src/reset/styles/normalize.css +0 -353
- package/src/reset/styles/reset.css +0 -139
- package/src/reset/styles.css +0 -2
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import hljs from "highlight.js/lib/core";
|
|
2
|
-
|
|
3
|
-
// Map certain frameworks, protocols etc to available langauage packs
|
|
4
|
-
const languageToHighlightKey = (lang) => {
|
|
5
|
-
let id;
|
|
6
|
-
|
|
7
|
-
if (!lang) {
|
|
8
|
-
lang = "text";
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
switch (lang.toLowerCase()) {
|
|
12
|
-
case "android":
|
|
13
|
-
id = "java";
|
|
14
|
-
break;
|
|
15
|
-
|
|
16
|
-
case ".net":
|
|
17
|
-
case "net":
|
|
18
|
-
case "dotnet":
|
|
19
|
-
case "csharp":
|
|
20
|
-
case "c#":
|
|
21
|
-
id = "cs";
|
|
22
|
-
break;
|
|
23
|
-
|
|
24
|
-
case "objc":
|
|
25
|
-
case "objective c":
|
|
26
|
-
id = "objectivec";
|
|
27
|
-
break;
|
|
28
|
-
|
|
29
|
-
case "laravel":
|
|
30
|
-
id = "php";
|
|
31
|
-
break;
|
|
32
|
-
|
|
33
|
-
case "flutter":
|
|
34
|
-
id = "dart";
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
case "node.js":
|
|
38
|
-
case "js":
|
|
39
|
-
id = "javascript";
|
|
40
|
-
break;
|
|
41
|
-
|
|
42
|
-
case "ts":
|
|
43
|
-
id = "typescript";
|
|
44
|
-
break;
|
|
45
|
-
|
|
46
|
-
case "kotlin":
|
|
47
|
-
case "kt":
|
|
48
|
-
id = "kotlin";
|
|
49
|
-
break;
|
|
50
|
-
|
|
51
|
-
case "shell":
|
|
52
|
-
case "fh":
|
|
53
|
-
case "sh":
|
|
54
|
-
id = "bash";
|
|
55
|
-
break;
|
|
56
|
-
|
|
57
|
-
case "https":
|
|
58
|
-
case "http":
|
|
59
|
-
case "txt":
|
|
60
|
-
case "plaintext":
|
|
61
|
-
id = "text";
|
|
62
|
-
break;
|
|
63
|
-
|
|
64
|
-
case "cmd":
|
|
65
|
-
case "bat":
|
|
66
|
-
id = "dos";
|
|
67
|
-
break;
|
|
68
|
-
|
|
69
|
-
case "yml":
|
|
70
|
-
id = "yaml";
|
|
71
|
-
break;
|
|
72
|
-
|
|
73
|
-
case "erl":
|
|
74
|
-
id = "erlang";
|
|
75
|
-
break;
|
|
76
|
-
|
|
77
|
-
case "patch":
|
|
78
|
-
id = "diff";
|
|
79
|
-
break;
|
|
80
|
-
|
|
81
|
-
case "svg":
|
|
82
|
-
id = "xml";
|
|
83
|
-
break;
|
|
84
|
-
|
|
85
|
-
default:
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return id || lang;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const registerDefaultLanguages = (register) => {
|
|
93
|
-
register.forEach(({ key, module }) => hljs.registerLanguage(key, module));
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const highlightSnippet = (languageKeyword, snippet) => {
|
|
97
|
-
const language = languageToHighlightKey(languageKeyword);
|
|
98
|
-
if (typeof snippet !== "string" || !snippet || !language) return;
|
|
99
|
-
|
|
100
|
-
return hljs.highlight(snippet, { language }).value;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export { highlightSnippet, languageToHighlightKey, registerDefaultLanguages };
|
package/src/pages/Buttons.mdx
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Meta, Unstyled } from "@storybook/blocks";
|
|
2
|
-
import Icon from "../core/Icon";
|
|
3
|
-
|
|
4
|
-
<Meta title="Brand/Buttons" />
|
|
5
|
-
|
|
6
|
-
<Unstyled>
|
|
7
|
-
<h2 className="ui-text-h1 mb-32">Buttons</h2>
|
|
8
|
-
<div className="flex flex-wrap">
|
|
9
|
-
<p className="ui-text-p1 mb-32">Different size buttons can be achieved by using padding and text utilities, see
|
|
10
|
-
examples below.</p>
|
|
11
|
-
|
|
12
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16">
|
|
13
|
-
<h3 className="ui-text-h3">Standard</h3>
|
|
14
|
-
<button type="button" className="ui-btn">
|
|
15
|
-
Primary button
|
|
16
|
-
</button>
|
|
17
|
-
<button type="button" className="ui-btn-alt">
|
|
18
|
-
Primary button alternative
|
|
19
|
-
</button>
|
|
20
|
-
<button type="button" className="ui-btn-secondary">
|
|
21
|
-
Secondary button
|
|
22
|
-
</button>
|
|
23
|
-
<button type="button" className="ui-btn" disabled>
|
|
24
|
-
Unavailable primary button
|
|
25
|
-
</button>
|
|
26
|
-
<button type="button" className="ui-btn-alt" disabled>
|
|
27
|
-
Unavailable primary button alternative
|
|
28
|
-
</button>
|
|
29
|
-
<button type="button" className="ui-btn-secondary" disabled>
|
|
30
|
-
Unavailable secondary button
|
|
31
|
-
</button>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16 bg-cool-black">
|
|
35
|
-
<h3 className="ui-text-h3 text-white">Inverted</h3>
|
|
36
|
-
<button type="button" className="ui-btn-invert">
|
|
37
|
-
Primary button
|
|
38
|
-
</button>
|
|
39
|
-
<button type="button" className="ui-btn-secondary-invert">
|
|
40
|
-
Secondary button
|
|
41
|
-
</button>
|
|
42
|
-
<button type="button" className="ui-btn-invert" disabled>
|
|
43
|
-
Unavailable primary button
|
|
44
|
-
</button>
|
|
45
|
-
<button type="button" className="ui-btn-secondary-invert" disabled>
|
|
46
|
-
Unavailable secondary button
|
|
47
|
-
</button>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16">
|
|
51
|
-
<h3 className="ui-text-h3">With icons</h3>
|
|
52
|
-
<button type="button" className="ui-btn">
|
|
53
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
54
|
-
Primary button with icon
|
|
55
|
-
</button>
|
|
56
|
-
<button type="button" className="ui-btn-alt">
|
|
57
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
58
|
-
Primary button alternative with icon
|
|
59
|
-
</button>
|
|
60
|
-
<button type="button" className="ui-btn-secondary">
|
|
61
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
62
|
-
Secondary button with icon
|
|
63
|
-
</button>
|
|
64
|
-
<button type="button" className="ui-btn" disabled>
|
|
65
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
66
|
-
Unavailable primary button with icon
|
|
67
|
-
</button>
|
|
68
|
-
<button type="button" className="ui-btn-alt" disabled>
|
|
69
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
70
|
-
Unavailable primary button alternative with icon
|
|
71
|
-
</button>
|
|
72
|
-
<button type="button" className="ui-btn-secondary" disabled>
|
|
73
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
74
|
-
Unavailable secondary button with icon
|
|
75
|
-
</button>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<div className="flex flex-wrap">
|
|
81
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16">
|
|
82
|
-
<h3 className="ui-text-h3">Extra small</h3>
|
|
83
|
-
<button type="button" className="ui-btn p-btn-xsmall text-btn4">Primary button</button>
|
|
84
|
-
<button type="button" className="ui-btn p-btn-xsmall text-btn4">
|
|
85
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon-xsmall" />
|
|
86
|
-
Primary button with icon
|
|
87
|
-
</button>
|
|
88
|
-
<button type="button" className="ui-btn-alt p-btn-xsmall text-btn4">Primary button alternative</button>
|
|
89
|
-
<button type="button" className="ui-btn-secondary p-btn-xsmall text-btn4">Secondary button</button>
|
|
90
|
-
</div>
|
|
91
|
-
|
|
92
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16">
|
|
93
|
-
<h3 className="ui-text-h3">Small</h3>
|
|
94
|
-
<button type="button" className="ui-btn p-btn-small text-btn3">
|
|
95
|
-
Primary button
|
|
96
|
-
</button>
|
|
97
|
-
<button type="button" className="ui-btn p-btn-small text-btn3">
|
|
98
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon-small" />
|
|
99
|
-
Primary button with icon
|
|
100
|
-
</button>
|
|
101
|
-
<button type="button" className="ui-btn-alt p-btn-small text-btn3">
|
|
102
|
-
Primary button alternative
|
|
103
|
-
</button>
|
|
104
|
-
<button type="button" className="ui-btn-secondary p-btn-small text-btn3">
|
|
105
|
-
Secondary button
|
|
106
|
-
</button>
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
<div className="p-16 mb-16 mr-16 border rounded grid justify-items-start auto-rows-min gap-16">
|
|
110
|
-
<h3 className="ui-text-h3">Large</h3>
|
|
111
|
-
<button type="button" className="ui-btn p-btn-large text-btn1">Primary button</button>
|
|
112
|
-
<button type="button" className="ui-btn p-btn-large text-btn1">
|
|
113
|
-
<Icon name="icon-gui-search" size="1rem" additionalCSS="ui-btn-icon" />
|
|
114
|
-
Primary button with icon
|
|
115
|
-
</button>
|
|
116
|
-
<button type="button" className="ui-btn-alt p-btn-large text-btn1">Primary button alternative</button>
|
|
117
|
-
<button type="button" className="ui-btn-secondary p-btn-large text-btn1">Secondary button</button>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
</div>
|
|
121
|
-
</Unstyled>
|
package/src/pages/Chips.mdx
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Meta, Unstyled } from "@storybook/blocks";
|
|
2
|
-
import Icon from "../core/Icon";
|
|
3
|
-
|
|
4
|
-
<Meta title="Brand/Chips" />
|
|
5
|
-
|
|
6
|
-
<Unstyled>
|
|
7
|
-
<h1 className="ui-text-h1 mb-32">Chips</h1>
|
|
8
|
-
<p className="ui-text-p1 mb-32">
|
|
9
|
-
Different size chips can be achieved by using padding and text utilities,
|
|
10
|
-
see examples below.
|
|
11
|
-
</p>
|
|
12
|
-
<div>
|
|
13
|
-
<div className="inline-block mr-16">
|
|
14
|
-
<h3 className="ui-text-h3 mb-24">On light background</h3>
|
|
15
|
-
<div className="mb-40 p-12 border rounded inline-block">
|
|
16
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
17
|
-
<button type="button" className="ui-chip p-chip-xsmall">
|
|
18
|
-
Default
|
|
19
|
-
</button>
|
|
20
|
-
<button type="button" className="ui-chip p-chip-xsmall" data-selected>
|
|
21
|
-
Selected
|
|
22
|
-
</button>
|
|
23
|
-
<button type="button" className="ui-chip p-chip-xsmall" disabled>
|
|
24
|
-
Unavailable
|
|
25
|
-
</button>
|
|
26
|
-
</div>
|
|
27
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
28
|
-
<button type="button" className="ui-chip p-chip-small">
|
|
29
|
-
Default
|
|
30
|
-
</button>
|
|
31
|
-
<button type="button" className="ui-chip p-chip-small" data-selected>
|
|
32
|
-
Selected
|
|
33
|
-
</button>
|
|
34
|
-
<button type="button" className="ui-chip p-chip-small" disabled>
|
|
35
|
-
Unavailable
|
|
36
|
-
</button>
|
|
37
|
-
</div>
|
|
38
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
39
|
-
<button type="button" className="ui-chip">
|
|
40
|
-
Default
|
|
41
|
-
</button>
|
|
42
|
-
<button type="button" className="ui-chip" data-selected>
|
|
43
|
-
Selected
|
|
44
|
-
</button>
|
|
45
|
-
<button type="button" className="ui-chip" disabled>
|
|
46
|
-
Unavailable
|
|
47
|
-
</button>
|
|
48
|
-
</div>
|
|
49
|
-
<div className="flex flex-wrap items-start gap-12">
|
|
50
|
-
<button type="button" className="ui-chip p-chip-large text-btn-2">
|
|
51
|
-
Default
|
|
52
|
-
</button>
|
|
53
|
-
<button
|
|
54
|
-
type="button"
|
|
55
|
-
className="ui-chip p-chip-large text-btn-2"
|
|
56
|
-
data-selected
|
|
57
|
-
>
|
|
58
|
-
Selected
|
|
59
|
-
</button>
|
|
60
|
-
<button
|
|
61
|
-
type="button"
|
|
62
|
-
className="ui-chip p-chip-large text-btn-2"
|
|
63
|
-
disabled
|
|
64
|
-
>
|
|
65
|
-
Unavailable
|
|
66
|
-
</button>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<div className="inline-block">
|
|
71
|
-
<h3 className="ui-text-h3 mb-24">On dark background</h3>
|
|
72
|
-
<div className="bg-cool-black mb-40 p-12 border rounded inline-block">
|
|
73
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
74
|
-
<button type="button" className="ui-chip-alt p-chip-xsmall">
|
|
75
|
-
Default
|
|
76
|
-
</button>
|
|
77
|
-
<button
|
|
78
|
-
type="button"
|
|
79
|
-
className="ui-chip-alt p-chip-xsmall"
|
|
80
|
-
data-selected
|
|
81
|
-
>
|
|
82
|
-
Selected
|
|
83
|
-
</button>
|
|
84
|
-
<button type="button" className="ui-chip-alt p-chip-xsmall" disabled>
|
|
85
|
-
Unavailable
|
|
86
|
-
</button>
|
|
87
|
-
</div>
|
|
88
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
89
|
-
<button type="button" className="ui-chip-alt p-chip-small">
|
|
90
|
-
Default
|
|
91
|
-
</button>
|
|
92
|
-
<button
|
|
93
|
-
type="button"
|
|
94
|
-
className="ui-chip-alt p-chip-small"
|
|
95
|
-
data-selected
|
|
96
|
-
>
|
|
97
|
-
Selected
|
|
98
|
-
</button>
|
|
99
|
-
<button type="button" className="ui-chip-alt p-chip-small" disabled>
|
|
100
|
-
Unavailable
|
|
101
|
-
</button>
|
|
102
|
-
</div>
|
|
103
|
-
<div className="mb-12 mr-16 flex flex-wrap items-start gap-12">
|
|
104
|
-
<button type="button" className="ui-chip-alt">
|
|
105
|
-
Default
|
|
106
|
-
</button>
|
|
107
|
-
<button type="button" className="ui-chip-alt" data-selected>
|
|
108
|
-
Selected
|
|
109
|
-
</button>
|
|
110
|
-
<button type="button" className="ui-chip-alt" disabled>
|
|
111
|
-
Unavailable
|
|
112
|
-
</button>
|
|
113
|
-
</div>
|
|
114
|
-
<div className="flex flex-wrap items-start gap-12">
|
|
115
|
-
<button type="button" className="ui-chip-alt p-chip-large text-btn-2">
|
|
116
|
-
Default
|
|
117
|
-
</button>
|
|
118
|
-
<button
|
|
119
|
-
type="button"
|
|
120
|
-
className="ui-chip-alt p-chip-large text-btn-2"
|
|
121
|
-
data-selected
|
|
122
|
-
>
|
|
123
|
-
Selected
|
|
124
|
-
</button>
|
|
125
|
-
<button
|
|
126
|
-
type="button"
|
|
127
|
-
className="ui-chip-alt p-chip-large text-btn-2"
|
|
128
|
-
disabled
|
|
129
|
-
>
|
|
130
|
-
Unavailable
|
|
131
|
-
</button>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</Unstyled>
|
package/src/pages/Colour.mdx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Fragment } from "react";
|
|
2
|
-
import { Meta, Unstyled } from "@storybook/blocks";
|
|
3
|
-
import { colours } from "./utils";
|
|
4
|
-
|
|
5
|
-
<Meta title="Brand/Colour" />
|
|
6
|
-
|
|
7
|
-
<Unstyled>
|
|
8
|
-
<h1 className="ui-text-h1 mb-32">Colour</h1>
|
|
9
|
-
{colours.map((category) => (
|
|
10
|
-
<Fragment key={category.name}>
|
|
11
|
-
<h3 className="ui-text-h2 mb-16">{category.name}</h3>
|
|
12
|
-
<ul className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-32 mb-40">
|
|
13
|
-
{category.colours.map(({ hex, name, bg }) => (
|
|
14
|
-
<li key={`${category.name}-${bg}`}>
|
|
15
|
-
<div className={`w-full h-64 mb-16 ${bg}`}></div>
|
|
16
|
-
<p className="ui-text-p1">{name}</p>
|
|
17
|
-
<p className="ui-text-p2">hex {hex}</p>
|
|
18
|
-
</li>
|
|
19
|
-
))}
|
|
20
|
-
</ul>
|
|
21
|
-
</Fragment>
|
|
22
|
-
))}
|
|
23
|
-
</Unstyled>
|
package/src/pages/Forms.mdx
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { Meta, Unstyled } from "@storybook/blocks";
|
|
2
|
-
import { formsHtml } from "./utils";
|
|
3
|
-
import Code from "../core/Code";
|
|
4
|
-
import Icon from "../core/Icon";
|
|
5
|
-
|
|
6
|
-
<Meta title="Brand/Forms" />
|
|
7
|
-
|
|
8
|
-
<Unstyled>
|
|
9
|
-
<h1 className="ui-text-h1 mb-32">Forms</h1>
|
|
10
|
-
<h3 className="ui-text-h2 mb-24">Checkboxes</h3>
|
|
11
|
-
<div className="mb-40">
|
|
12
|
-
<h4 className="ui-text-h3 mb-16">Checkboxes with P1 size text</h4>
|
|
13
|
-
<div className="ui-checkbox-p1">
|
|
14
|
-
<input
|
|
15
|
-
data-ui-checkbox-native=""
|
|
16
|
-
type="checkbox"
|
|
17
|
-
id="checkbox-example-1"
|
|
18
|
-
name="checkbox-example-1"
|
|
19
|
-
value="yes"
|
|
20
|
-
className="ui-checkbox-input"
|
|
21
|
-
/>
|
|
22
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
23
|
-
<Icon
|
|
24
|
-
name="icon-gui-tick"
|
|
25
|
-
size="1rem"
|
|
26
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
<label htmlFor="checkbox-example-1" className="ui-checkbox-label-p1">
|
|
30
|
-
Welcome to the Ably privacy policy. Ably respects your privacy, is
|
|
31
|
-
committed to protecting your personal data, and is compliant with
|
|
32
|
-
applicable data protection law. This privacy policy will inform you as
|
|
33
|
-
to how we look after certain of your personal data and tell you about
|
|
34
|
-
your privacy rights and how the law protects you. Please refer to the
|
|
35
|
-
Glossary below to understand the meaning of some of the terms used in
|
|
36
|
-
this privacy policy.
|
|
37
|
-
</label>
|
|
38
|
-
</div>
|
|
39
|
-
<div className="ui-checkbox-p1">
|
|
40
|
-
<input
|
|
41
|
-
data-ui-checkbox-native=""
|
|
42
|
-
type="checkbox"
|
|
43
|
-
id="checkbox-example-2"
|
|
44
|
-
name="checkbox-example-2"
|
|
45
|
-
value="yes"
|
|
46
|
-
className="ui-checkbox-input"
|
|
47
|
-
/>
|
|
48
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
49
|
-
<Icon
|
|
50
|
-
name="icon-gui-tick"
|
|
51
|
-
size="1rem"
|
|
52
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
53
|
-
/>
|
|
54
|
-
</div>
|
|
55
|
-
<label htmlFor="checkbox-example-2" className="ui-checkbox-label-p1">
|
|
56
|
-
Subscribe to the Ably Newsletter
|
|
57
|
-
</label>
|
|
58
|
-
</div>
|
|
59
|
-
<div className="ui-checkbox-p1">
|
|
60
|
-
<input
|
|
61
|
-
data-ui-checkbox-native=""
|
|
62
|
-
disabled=""
|
|
63
|
-
type="checkbox"
|
|
64
|
-
id="checkbox-example-3"
|
|
65
|
-
name="checkbox-example-3"
|
|
66
|
-
value="yes"
|
|
67
|
-
className="ui-checkbox-input"
|
|
68
|
-
/>
|
|
69
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
70
|
-
<Icon
|
|
71
|
-
name="icon-gui-tick"
|
|
72
|
-
size="1rem"
|
|
73
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
74
|
-
/>
|
|
75
|
-
</div>
|
|
76
|
-
<label htmlFor="checkbox-example-3" className="ui-checkbox-label-p1">
|
|
77
|
-
This option is not available
|
|
78
|
-
</label>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
<div className="mb-40">
|
|
82
|
-
<h4 className="ui-text-h3 mb-16">
|
|
83
|
-
Checkboxes with P2 size text and tighter spacing
|
|
84
|
-
</h4>
|
|
85
|
-
<div className="flex items-start mb-12">
|
|
86
|
-
<input
|
|
87
|
-
data-ui-checkbox-native=""
|
|
88
|
-
type="checkbox"
|
|
89
|
-
id="checkbox-example-4"
|
|
90
|
-
name="checkbox-example-4"
|
|
91
|
-
value="yes"
|
|
92
|
-
className="ui-checkbox-input"
|
|
93
|
-
/>
|
|
94
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
95
|
-
<Icon
|
|
96
|
-
name="icon-gui-tick"
|
|
97
|
-
size="1rem"
|
|
98
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
<label htmlFor="checkbox-example-4" className="ui-checkbox-label-p2">
|
|
102
|
-
Welcome to the Ably privacy policy. Ably respects your privacy, is
|
|
103
|
-
committed to protecting your personal data, and is compliant with
|
|
104
|
-
applicable data protection law. This privacy policy will inform you as
|
|
105
|
-
to how we look after certain of your personal data and tell you about
|
|
106
|
-
your privacy rights and how the law protects you. Please refer to the
|
|
107
|
-
Glossary below to understand the meaning of some of the terms used in
|
|
108
|
-
this privacy policy.
|
|
109
|
-
</label>
|
|
110
|
-
</div>
|
|
111
|
-
<div className="flex items-start mb-12">
|
|
112
|
-
<input
|
|
113
|
-
data-ui-checkbox-native=""
|
|
114
|
-
type="checkbox"
|
|
115
|
-
id="checkbox-example-5"
|
|
116
|
-
name="checkbox-example-5"
|
|
117
|
-
value="yes"
|
|
118
|
-
className="ui-checkbox-input"
|
|
119
|
-
/>
|
|
120
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
121
|
-
<Icon
|
|
122
|
-
name="icon-gui-tick"
|
|
123
|
-
size="1rem"
|
|
124
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
125
|
-
/>
|
|
126
|
-
</div>
|
|
127
|
-
<label htmlFor="checkbox-example-5" className="ui-checkbox-label-p2">
|
|
128
|
-
Subscribe to the Ably Newsletter
|
|
129
|
-
</label>
|
|
130
|
-
</div>
|
|
131
|
-
<div className="ui-checkbox-p2">
|
|
132
|
-
<input
|
|
133
|
-
data-ui-checkbox-native=""
|
|
134
|
-
disabled=""
|
|
135
|
-
type="checkbox"
|
|
136
|
-
id="checkbox-example-6"
|
|
137
|
-
name="checkbox-example-6"
|
|
138
|
-
value="yes"
|
|
139
|
-
className="ui-checkbox-input"
|
|
140
|
-
/>
|
|
141
|
-
<div data-ui-checkbox-styled="" className="ui-checkbox-styled">
|
|
142
|
-
<Icon
|
|
143
|
-
name="icon-gui-tick"
|
|
144
|
-
size="1rem"
|
|
145
|
-
additionalCSS="ui-checkbox-styled-tick"
|
|
146
|
-
/>
|
|
147
|
-
</div>
|
|
148
|
-
<label htmlFor="checkbox-example-6" className="ui-checkbox-label-p2">
|
|
149
|
-
This option is not available
|
|
150
|
-
</label>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
<h3 className="ui-text-h2 mb-24">Textarea</h3>
|
|
154
|
-
<div className="mb-40">
|
|
155
|
-
<label className="ui-text-p1 block mb-24" htmlFor="example-text-area">
|
|
156
|
-
This is how a label for the textarea looks like. Control the size of the
|
|
157
|
-
area with the <code className="ui-inline-code">rows</code> attribute.
|
|
158
|
-
</label>
|
|
159
|
-
<textarea
|
|
160
|
-
id="example-text-area"
|
|
161
|
-
className="ui-textarea"
|
|
162
|
-
rows="2"
|
|
163
|
-
placeholder="The <textarea> HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form."
|
|
164
|
-
></textarea>
|
|
165
|
-
<p className="ui-text-p3 text-dark-grey">
|
|
166
|
-
Example of additional text beneath the textarea.
|
|
167
|
-
</p>
|
|
168
|
-
</div>
|
|
169
|
-
<div className="mb-40">
|
|
170
|
-
<h4 className="ui-text-h3 mb-16">Example HTML</h4>
|
|
171
|
-
<Code language="html" snippet={formsHtml} />
|
|
172
|
-
</div>
|
|
173
|
-
</Unstyled>
|
package/src/pages/Layout.mdx
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Meta, Unstyled } from "@storybook/blocks";
|
|
2
|
-
|
|
3
|
-
<Meta title="Brand/Layout" />
|
|
4
|
-
|
|
5
|
-
<Unstyled>
|
|
6
|
-
<h1 className="ui-text-h1 mb-32">Layout</h1>
|
|
7
|
-
|
|
8
|
-
<div class="ui-standard-container mb-32">
|
|
9
|
-
<div class="bg-mid-grey align-center p-32">
|
|
10
|
-
<p class="ui-text-h3 mb-24">ui-standard-container</p>
|
|
11
|
-
<p class="ui-text-p1 ">
|
|
12
|
-
Container that does not grow beyond the xl breakpoint (1440px), centers
|
|
13
|
-
and contains the correct outside padding across viewport changes.
|
|
14
|
-
</p>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="ui-standard-container mb-32">
|
|
19
|
-
<div class="bg-mid-grey align-center p-32">
|
|
20
|
-
<p class="ui-text-h3 mb-24">ui-grid-gap</p>
|
|
21
|
-
<p class="ui-text-p1 mb-32">Add correct gaps across viewport changes.</p>
|
|
22
|
-
<div class="grid grid-cols-4 ui-grid-gap">
|
|
23
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">1</div>
|
|
24
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">2</div>
|
|
25
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">3</div>
|
|
26
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">4</div>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div class="ui-standard-container mb-32">
|
|
32
|
-
<div class="bg-mid-grey align-center p-32">
|
|
33
|
-
<p class="ui-text-h3 mb-24">ui-grid-px</p>
|
|
34
|
-
<p class="ui-text-p1 mb-32">
|
|
35
|
-
Add padding on the x axis, with correct values across viewport changes.
|
|
36
|
-
</p>
|
|
37
|
-
<div class="ui-grid-px">
|
|
38
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">
|
|
39
|
-
Text
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div class="ui-standard-container mb-32">
|
|
46
|
-
<div class="bg-mid-grey align-center p-32">
|
|
47
|
-
<p class="ui-text-h3 mb-24">ui-grid-mx</p>
|
|
48
|
-
<p class="ui-text-p1 mb-32">
|
|
49
|
-
Add margin on the x axis, with correct values across viewport changes.
|
|
50
|
-
</p>
|
|
51
|
-
<div class="ui-grid-mx">
|
|
52
|
-
<div class="bg-cool-black text-white font-sans p-32 text-center">
|
|
53
|
-
Text
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</Unstyled>
|