@ably/ui 14.0.0-dev.968e4a2 → 14.0.0-dev.ae75f49
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/.DS_Store +0 -0
- package/core/Accordion.js +1 -1
- package/core/Code.js +1 -1
- package/core/ConnectStateWrapper.js +1 -1
- package/core/ContactFooter/component.css +9 -7
- package/core/ContactFooter.js +1 -1
- package/core/CookieMessage/component.css +12 -10
- package/core/CookieMessage.js +1 -1
- package/core/DropdownMenu.js +1 -1
- package/core/Expander.js +1 -0
- package/core/FeaturedLink.js +1 -1
- package/core/Flash/component.css +21 -19
- package/core/Flash.js +1 -1
- package/core/Footer/component.css +24 -22
- package/core/Footer.js +1 -1
- package/core/Meganav/component.css +105 -103
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.js +1 -1
- package/core/MeganavBlogPostsList.js +1 -1
- package/core/MeganavContentCompany.js +1 -1
- package/core/MeganavContentDevelopers.js +1 -1
- package/core/MeganavContentProducts.js +1 -1
- package/core/MeganavContentUseCases.js +1 -1
- package/core/MeganavControl.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -1
- package/core/MeganavItemsDesktop.js +1 -1
- package/core/MeganavItemsMobile.js +1 -1
- package/core/MeganavItemsSignedIn.js +1 -1
- package/core/MeganavSearch.js +1 -1
- package/core/MeganavSearchPanel.js +1 -1
- package/core/MeganavSearchSuggestions.js +1 -1
- package/core/Notice/component.css +6 -4
- package/core/Notice/component.js +1 -1
- package/core/Notice.js +1 -1
- package/core/Slider/component.css +38 -4
- package/core/Slider/component.js +1 -1
- package/core/Slider.js +1 -1
- package/core/Table/Table.js +1 -1
- package/core/Table/TableCell.js +4 -4
- package/core/Table/data.js +1 -1
- package/core/Table.js +1 -1
- package/core/Tooltip.js +1 -1
- package/core/icons/icon-gui-partial.svg +4 -0
- 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/utils/syntax-highlighter.css +59 -55
- package/package.json +2 -5
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Accordion/Accordion.stories.tsx +1 -1
- package/src/core/Accordion.tsx +8 -6
- package/src/core/Code/Code.stories.tsx +1 -1
- package/src/core/Code.tsx +2 -3
- package/src/core/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.tsx +3 -4
- package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
- package/src/core/CookieMessage/component.css +12 -10
- package/src/core/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.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.tsx +1 -1
- package/src/core/Flash/Flash.stories.tsx +1 -1
- package/src/core/Flash/component.css +21 -19
- package/src/core/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.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.tsx +16 -19
- package/src/core/MeganavBlogPostsList.tsx +2 -2
- package/src/core/MeganavContentCompany.tsx +5 -5
- package/src/core/MeganavContentDevelopers.tsx +2 -2
- package/src/core/MeganavContentProducts.tsx +2 -2
- package/src/core/MeganavContentUseCases.tsx +2 -2
- package/src/core/MeganavControl.tsx +2 -2
- package/src/core/MeganavControlMobileDropdown.tsx +2 -2
- package/src/core/MeganavControlMobilePanelClose.tsx +1 -2
- package/src/core/MeganavControlMobilePanelOpen.tsx +1 -2
- package/src/core/MeganavItemsDesktop.tsx +3 -3
- package/src/core/MeganavItemsMobile.tsx +9 -9
- package/src/core/MeganavItemsSignedIn.tsx +4 -8
- package/src/core/MeganavSearch.tsx +3 -3
- package/src/core/MeganavSearchPanel.tsx +4 -4
- package/src/core/MeganavSearchSuggestions.tsx +2 -2
- package/src/core/Notice/component.css +6 -4
- package/src/core/Notice/component.js +1 -2
- package/src/core/Notice.tsx +2 -4
- package/src/core/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 +187 -83
- package/src/core/Table/Table.tsx +38 -10
- package/src/core/Table/TableCell.tsx +14 -27
- package/src/core/Table/data.tsx +23 -3
- package/src/core/Table.tsx +3 -12
- package/src/core/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/core/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 -0
- package/core/ConnectStateWrapper/component.js +0 -0
- package/core/CookieMessage/component.js +0 -1
- package/core/CustomerLogos/component.js +0 -0
- package/core/DropdownMenu/component.js +0 -0
- package/core/FeaturedLink/component.js +0 -0
- package/core/Flash/component.js +0 -1
- package/core/Footer/component.js +0 -1
- package/core/Icon/component.js +0 -0
- package/core/Loader/component.js +0 -0
- package/core/Logo/component.js +0 -0
- package/core/MeganavContentCompany/component.js +0 -0
- package/core/MeganavContentDevelopers/component.js +0 -0
- package/core/MeganavContentProducts/.DS_Store +0 -0
- package/core/MeganavContentProducts/component.js +0 -0
- package/core/MeganavContentUseCases/.DS_Store +0 -0
- package/core/MeganavContentUseCases/component.js +0 -0
- package/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/core/MeganavItemsDesktop/component.js +0 -0
- package/core/MeganavItemsMobile/.DS_Store +0 -0
- package/core/MeganavItemsMobile/component.js +0 -0
- package/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/core/MeganavItemsSignedIn/component.js +0 -0
- package/core/MeganavSearch/.DS_Store +0 -0
- package/core/MeganavSearch/component.js +0 -0
- package/core/MeganavSearchPanel/.DS_Store +0 -0
- package/core/MeganavSearchPanel/component.js +0 -0
- package/core/SignOutLink/.DS_Store +0 -0
- package/core/SignOutLink/component.js +0 -0
- 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/.DS_Store +0 -0
- package/src/core/MeganavContentCompany/component.js +0 -0
- package/src/core/MeganavContentDevelopers/.DS_Store +0 -0
- package/src/core/MeganavContentDevelopers/component.js +0 -0
- package/src/core/MeganavContentProducts/.DS_Store +0 -0
- package/src/core/MeganavContentProducts/component.js +0 -0
- package/src/core/MeganavContentUseCases/.DS_Store +0 -0
- package/src/core/MeganavContentUseCases/component.js +0 -1
- package/src/core/MeganavItemsDesktop/.DS_Store +0 -0
- package/src/core/MeganavItemsDesktop/component.js +0 -0
- package/src/core/MeganavItemsMobile/.DS_Store +0 -0
- package/src/core/MeganavItemsMobile/component.js +0 -0
- package/src/core/MeganavItemsSignedIn/.DS_Store +0 -0
- package/src/core/MeganavItemsSignedIn/component.js +0 -0
- package/src/core/MeganavSearch/.DS_Store +0 -0
- package/src/core/MeganavSearch/component.js +0 -0
- package/src/core/MeganavSearchPanel/.DS_Store +0 -0
- package/src/core/MeganavSearchPanel/component.js +0 -0
- package/src/core/SignOutLink/.DS_Store +0 -0
- package/src/core/SignOutLink/component.js +0 -0
- /package/core/{MeganavContentCompany → Tooltip}/.DS_Store +0 -0
- /package/{core/MeganavContentDevelopers → src/core/Tooltip}/.DS_Store +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-contact-footer {
|
|
3
|
+
background-size: 100% 100%;
|
|
4
|
+
background-position: right center;
|
|
5
|
+
@apply w-full bg-gradient-active-orange;
|
|
6
|
+
}
|
|
6
7
|
|
|
7
|
-
.ui-contact-footer-box {
|
|
8
|
-
|
|
8
|
+
.ui-contact-footer-box {
|
|
9
|
+
@apply p-24 sm:p-32 xl:p-40 bg-white flex flex-col justify-between rounded-sm;
|
|
10
|
+
}
|
|
9
11
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import _absUrl from "
|
|
5
|
-
import toggleChatWidget from "
|
|
6
|
-
import "./component.css";
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import _absUrl from "./url-base.js";
|
|
5
|
+
import toggleChatWidget from "./hubspot-chat-toggle";
|
|
7
6
|
|
|
8
7
|
type ContactFooterProps = {
|
|
9
8
|
urlBase: string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-cookie-message {
|
|
3
|
+
@apply rounded-lg bg-white font-sans;
|
|
4
|
+
@apply justify-between items-center;
|
|
5
|
+
@apply opacity-100 z-50 bottom-0 fixed sm:flex;
|
|
6
|
+
@apply p-16 mb-16 ml-16;
|
|
7
|
+
max-width: 70vw;
|
|
8
|
+
box-shadow: 0px 24px 32px 0px #0000000d;
|
|
9
|
+
border: 1px solid var(--color-mid-grey);
|
|
10
|
+
border-left: 0.5rem solid var(--color-electric-cyan);
|
|
11
|
+
transition: bottom 250ms ease-out, opacity 150ms ease-out;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Expander from "../Expander";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/Expander",
|
|
6
|
+
component: Expander,
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
args: {
|
|
9
|
+
height: 200,
|
|
10
|
+
},
|
|
11
|
+
argTypes: {
|
|
12
|
+
height: {
|
|
13
|
+
control: {
|
|
14
|
+
type: "number",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const longContentInner = (
|
|
21
|
+
<div>
|
|
22
|
+
<p>Ipsum</p>
|
|
23
|
+
<ul className="mb-16 list-inside list-disc">
|
|
24
|
+
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
25
|
+
<li>Sed convallis ex pharetra, tristique tellus vel, rhoncus velit.</li>
|
|
26
|
+
<li>Mauris molestie felis et scelerisque ullamcorper.</li>
|
|
27
|
+
<li>Maecenas congue ligula ut commodo tristique.</li>
|
|
28
|
+
<li>
|
|
29
|
+
Pellentesque venenatis elit vitae urna condimentum, in mollis arcu
|
|
30
|
+
venenatis.
|
|
31
|
+
</li>
|
|
32
|
+
<li>Donec nec turpis vel urna egestas fringilla.</li>
|
|
33
|
+
</ul>
|
|
34
|
+
<p>Ipsum</p>
|
|
35
|
+
<ul className="mb-16 list-inside list-disc">
|
|
36
|
+
<li>Mauris ut nibh vel metus cursus semper.</li>
|
|
37
|
+
<li>Ut mattis tortor eu urna accumsan gravida.</li>
|
|
38
|
+
<li>Nunc pellentesque neque at elit pretium tempor.</li>
|
|
39
|
+
<li>Curabitur finibus magna vitae nunc varius fermentum.</li>
|
|
40
|
+
</ul>
|
|
41
|
+
<ul className="mb-16 list-inside list-disc">
|
|
42
|
+
<li>Curabitur vehicula mi iaculis, luctus augue eu, venenatis quam.</li>
|
|
43
|
+
<li>Praesent in eros efficitur, consequat ante eu, faucibus arcu.</li>
|
|
44
|
+
<li>Nulla laoreet nibh a odio interdum, non molestie diam auctor.</li>
|
|
45
|
+
</ul>
|
|
46
|
+
<p>Ipsum</p>
|
|
47
|
+
<ul className="mb-16 list-inside list-disc">
|
|
48
|
+
<li>
|
|
49
|
+
Praesent aliquam diam tincidunt, sollicitudin tortor eget, vulputate
|
|
50
|
+
lacus.
|
|
51
|
+
</li>
|
|
52
|
+
<li>Quisque in mi sed ex vulputate varius in a leo.</li>
|
|
53
|
+
<li>Etiam posuere dolor at tortor aliquam imperdiet.</li>
|
|
54
|
+
<li>
|
|
55
|
+
Maecenas quis neque consequat, ultricies est sit amet, congue est.
|
|
56
|
+
</li>
|
|
57
|
+
<li>Aenean a elit sed nibh pretium lacinia sed convallis sapien.</li>
|
|
58
|
+
</ul>
|
|
59
|
+
<p>Ipsum</p>
|
|
60
|
+
<ul className="mb-16 list-inside list-disc">
|
|
61
|
+
<li>
|
|
62
|
+
Nulla malesuada libero id dolor aliquam, non sagittis mi scelerisque.
|
|
63
|
+
</li>
|
|
64
|
+
<li>
|
|
65
|
+
Etiam tincidunt lacus eu diam laoreet consectetur sit amet non est.
|
|
66
|
+
</li>
|
|
67
|
+
<li>In porta arcu nec purus tincidunt vulputate.</li>
|
|
68
|
+
</ul>
|
|
69
|
+
</div>
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export const LongContent = {
|
|
73
|
+
render: () => <Expander>{longContentInner}</Expander>,
|
|
74
|
+
parameters: {
|
|
75
|
+
docs: {
|
|
76
|
+
description: {
|
|
77
|
+
story:
|
|
78
|
+
"A larger amount of content that exceeds the height cut-off, controls shown.",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const ShortContent = {
|
|
85
|
+
render: () => (
|
|
86
|
+
<Expander>
|
|
87
|
+
<div>
|
|
88
|
+
<p>Ipsum</p>
|
|
89
|
+
<ul className="mb-16 list-inside list-disc">
|
|
90
|
+
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
|
|
91
|
+
<li>
|
|
92
|
+
Sed convallis ex pharetra, tristique tellus vel, rhoncus velit.
|
|
93
|
+
</li>
|
|
94
|
+
<li>Mauris molestie felis et scelerisque ullamcorper.</li>
|
|
95
|
+
<li>Maecenas congue ligula ut commodo tristique.</li>
|
|
96
|
+
<li>
|
|
97
|
+
Pellentesque venenatis elit vitae urna condimentum, in mollis arcu
|
|
98
|
+
venenatis.
|
|
99
|
+
</li>
|
|
100
|
+
<li>Donec nec turpis vel urna egestas fringilla.</li>
|
|
101
|
+
</ul>
|
|
102
|
+
</div>
|
|
103
|
+
</Expander>
|
|
104
|
+
),
|
|
105
|
+
parameters: {
|
|
106
|
+
docs: {
|
|
107
|
+
description: {
|
|
108
|
+
story:
|
|
109
|
+
"A smaller amount of content that doesn't exceed the height cut-off, therefore no controls shown.",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export const OverriddenStyles = {
|
|
116
|
+
render: () => (
|
|
117
|
+
<Expander
|
|
118
|
+
className="bg-neutral-400 p-16 rounded-lg"
|
|
119
|
+
fadeClassName="from-neutral-800"
|
|
120
|
+
>
|
|
121
|
+
{longContentInner}
|
|
122
|
+
</Expander>
|
|
123
|
+
),
|
|
124
|
+
parameters: {
|
|
125
|
+
docs: {
|
|
126
|
+
description: {
|
|
127
|
+
story:
|
|
128
|
+
"A larger amount of content, with overridden styles for the content wrapper and fader.",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { PropsWithChildren, useEffect, useRef, useState } from "react";
|
|
2
|
+
|
|
3
|
+
type ExpanderProps = {
|
|
4
|
+
heightThreshold?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
fadeClassName?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Expander = ({
|
|
10
|
+
heightThreshold = 200,
|
|
11
|
+
className,
|
|
12
|
+
fadeClassName,
|
|
13
|
+
children,
|
|
14
|
+
}: PropsWithChildren<ExpanderProps>) => {
|
|
15
|
+
const innerRef = useRef<HTMLDivElement>(null);
|
|
16
|
+
const [showControls, setShowControls] = useState(false);
|
|
17
|
+
const [height, setHeight] = useState<number | "auto">(heightThreshold);
|
|
18
|
+
const [expanded, setExpanded] = useState(false);
|
|
19
|
+
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const contentHeight = innerRef.current?.clientHeight ?? heightThreshold;
|
|
22
|
+
|
|
23
|
+
if (contentHeight < heightThreshold) {
|
|
24
|
+
setHeight("auto");
|
|
25
|
+
} else if (expanded) {
|
|
26
|
+
setHeight(contentHeight);
|
|
27
|
+
} else {
|
|
28
|
+
setHeight(heightThreshold);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
setShowControls(contentHeight >= heightThreshold);
|
|
32
|
+
}, [heightThreshold, expanded]);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<>
|
|
36
|
+
<div
|
|
37
|
+
style={{ height }}
|
|
38
|
+
className={`overflow-hidden transition-all relative ${className ?? ""}`}
|
|
39
|
+
>
|
|
40
|
+
{showControls && !expanded && (
|
|
41
|
+
<div
|
|
42
|
+
className={`h-64 w-full bg-gradient-to-t from-white to-transparent absolute bottom-0 left-0 right-0 ${
|
|
43
|
+
fadeClassName ?? ""
|
|
44
|
+
}`}
|
|
45
|
+
></div>
|
|
46
|
+
)}
|
|
47
|
+
<div ref={innerRef}>{children}</div>
|
|
48
|
+
</div>
|
|
49
|
+
{showControls && (
|
|
50
|
+
<div
|
|
51
|
+
onClick={() => setExpanded(!expanded)}
|
|
52
|
+
onKeyDown={(e) => e.key === "Enter" && setExpanded(!expanded)}
|
|
53
|
+
tabIndex={0}
|
|
54
|
+
className="mt-16 cursor-pointer font-bold text-gui-blue-default-light hover:text-gui-blue-hover-light"
|
|
55
|
+
>
|
|
56
|
+
{expanded ? "View less -" : "View all +"}
|
|
57
|
+
</div>
|
|
58
|
+
)}
|
|
59
|
+
</>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default Expander;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-flash {
|
|
3
|
+
@apply w-full fixed;
|
|
4
|
+
top: 5.5rem;
|
|
5
|
+
z-index: calc(var(--stacking-context-page-meganav) - 10);
|
|
6
|
+
transition: margin-top 200ms;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
.ui-flash-message {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
9
|
+
.ui-flash-message {
|
|
10
|
+
@apply font-sans font-light antialiased max-w-screen-xl mx-auto mt-8 opacity-0 relative;
|
|
11
|
+
transition: opacity 200ms, transform 200ms, height 200ms 200ms,
|
|
12
|
+
margin-top 200ms 200ms;
|
|
13
|
+
transform: translateY(-200%) rotateX(-90deg);
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
/* dynamic content inside flash, can't add classes */
|
|
16
|
-
.ui-flash-text a {
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
/* dynamic content inside flash, can't add classes */
|
|
17
|
+
.ui-flash-text a {
|
|
18
|
+
@apply underline;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.ui-flash-message-enter {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
.ui-flash-message-enter {
|
|
22
|
+
@apply opacity-100;
|
|
23
|
+
transform: translateY(0) rotateX(0);
|
|
24
|
+
}
|
|
23
25
|
}
|
package/src/core/Flash.tsx
CHANGED
|
@@ -2,10 +2,9 @@ import React, { useEffect, useState, useRef } from "react";
|
|
|
2
2
|
import DOMPurify from "dompurify";
|
|
3
3
|
import { nanoid } from "nanoid/non-secure";
|
|
4
4
|
|
|
5
|
-
import { getRemoteDataStore } from "
|
|
6
|
-
import ConnectStateWrapper from "
|
|
7
|
-
import Icon from "
|
|
8
|
-
import "./component.css";
|
|
5
|
+
import { getRemoteDataStore } from "./remote-data-store.js";
|
|
6
|
+
import ConnectStateWrapper from "./ConnectStateWrapper";
|
|
7
|
+
import Icon from "./Icon";
|
|
9
8
|
|
|
10
9
|
type FlashProps = {
|
|
11
10
|
id: string;
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-footer-col-title {
|
|
3
|
+
@apply font-mono text-overline2 p-menu-row-title font-medium uppercase tracking-widen-0.16;
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
.ui-footer-menu-row-link {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
.ui-footer-menu-row-link {
|
|
7
|
+
@apply text-menu3 text-cool-black font-sans font-medium hover:text-gui-hover block;
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
.ui-footer-link {
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
.ui-footer-link {
|
|
11
|
+
@apply text-gui-default hover:text-gui-hover text-menu3 font-sans font-medium;
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
.ui-footer-compliance-text {
|
|
14
|
-
|
|
15
|
-
}
|
|
14
|
+
.ui-footer-compliance-text {
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
}
|
|
16
17
|
|
|
17
|
-
.ui-footer-tick-icon {
|
|
18
|
-
|
|
19
|
-
}
|
|
18
|
+
.ui-footer-tick-icon {
|
|
19
|
+
min-width: 1.5rem;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
@media (max-width: 1040px) {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
@media (max-width: 1040px) {
|
|
23
|
+
.ui-footer-bottom-links {
|
|
24
|
+
@apply pb-40;
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
|
-
}
|
|
26
27
|
|
|
27
|
-
@media screen {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
@media screen {
|
|
29
|
+
.ui-footer-glassdoor {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
}
|
package/src/core/Footer.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Icon from "
|
|
2
|
+
import Icon from "../Icon";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
title: "Components/Icon",
|
|
@@ -38,6 +38,7 @@ const coreIcons = [
|
|
|
38
38
|
"icon-gui-link-arrow",
|
|
39
39
|
"icon-gui-live-chat",
|
|
40
40
|
"icon-gui-minus",
|
|
41
|
+
"icon-gui-partial",
|
|
41
42
|
"icon-gui-plus",
|
|
42
43
|
"icon-gui-quote-marks-solid",
|
|
43
44
|
"icon-gui-refresh",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
2
|
import { rest } from "msw";
|
|
3
3
|
|
|
4
|
-
import Meganav from "
|
|
4
|
+
import Meganav from "../Meganav";
|
|
5
5
|
import loadIcons from "../icons.js";
|
|
6
6
|
import logo from "../images/ably-logo.png";
|
|
7
7
|
import ablyStack from "../images/ably-stack.svg";
|