@ably/ui 14.0.0-dev.0ed6be7 → 14.0.0-dev.3f64b93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/README.md +8 -10
  2. package/core/.DS_Store +0 -0
  3. package/core/Accordion.js +1 -1
  4. package/core/Code.js +1 -1
  5. package/core/ConnectStateWrapper.js +1 -1
  6. package/core/ContactFooter.js +1 -1
  7. package/core/CookieMessage.js +1 -1
  8. package/core/DropdownMenu.js +1 -1
  9. package/core/Expander.js +1 -0
  10. package/core/FeaturedLink.js +1 -1
  11. package/core/Flash.js +1 -1
  12. package/core/Footer.js +1 -1
  13. package/core/Meganav.js +1 -1
  14. package/core/MeganavBlogPostsList.js +1 -1
  15. package/core/MeganavContentCompany.js +1 -1
  16. package/core/MeganavContentDevelopers.js +1 -1
  17. package/core/MeganavContentProducts.js +1 -1
  18. package/core/MeganavContentUseCases.js +1 -1
  19. package/core/MeganavControl.js +1 -1
  20. package/core/MeganavControlMobileDropdown.js +1 -1
  21. package/core/MeganavControlMobilePanelClose.js +1 -1
  22. package/core/MeganavControlMobilePanelOpen.js +1 -1
  23. package/core/MeganavItemsDesktop.js +1 -1
  24. package/core/MeganavItemsMobile.js +1 -1
  25. package/core/MeganavItemsSignedIn.js +1 -1
  26. package/core/MeganavSearch.js +1 -1
  27. package/core/MeganavSearchPanel.js +1 -1
  28. package/core/MeganavSearchSuggestions.js +1 -1
  29. package/core/Notice/component.js +1 -1
  30. package/core/Notice.js +1 -1
  31. package/core/Slider/component.css +32 -0
  32. package/core/Slider.js +1 -1
  33. package/core/Table/Table.js +1 -1
  34. package/core/Table/TableCell.js +4 -4
  35. package/core/Table/data.js +1 -1
  36. package/core/Table.js +1 -1
  37. package/core/Tooltip.js +1 -1
  38. package/core/icons/icon-gui-partial.svg +4 -0
  39. package/core/sprites.svg +1 -1
  40. package/package.json +1 -1
  41. package/src/.DS_Store +0 -0
  42. package/src/core/.DS_Store +0 -0
  43. package/src/core/Accordion/Accordion.stories.tsx +1 -1
  44. package/src/core/Accordion.tsx +6 -6
  45. package/src/core/Code/Code.stories.tsx +1 -1
  46. package/src/core/Code.tsx +3 -3
  47. package/src/core/ConnectStateWrapper.tsx +1 -1
  48. package/src/core/ContactFooter/ContactFooter.stories.tsx +1 -1
  49. package/src/core/ContactFooter.tsx +4 -4
  50. package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
  51. package/src/core/CookieMessage.tsx +2 -2
  52. package/src/core/CustomerLogos/CustomerLogos.stories.tsx +1 -1
  53. package/src/core/DropdownMenu/DropdownMenu.stories.tsx +2 -2
  54. package/src/core/DropdownMenu.tsx +1 -1
  55. package/src/core/Expander/Expander.stories.tsx +132 -0
  56. package/src/core/Expander.tsx +54 -0
  57. package/src/core/FeaturedLink/FeaturedLink.stories.tsx +1 -1
  58. package/src/core/FeaturedLink.tsx +1 -1
  59. package/src/core/Flash/Flash.stories.tsx +1 -1
  60. package/src/core/Flash.tsx +4 -4
  61. package/src/core/Footer/Footer.stories.tsx +1 -1
  62. package/src/core/Footer.tsx +3 -3
  63. package/src/core/Icon/Icon.stories.tsx +2 -1
  64. package/src/core/Loader/Loader.stories.tsx +1 -1
  65. package/src/core/Logo/Logo.stories.tsx +1 -1
  66. package/src/core/Meganav/Meganav.stories.tsx +1 -1
  67. package/src/core/Meganav.tsx +17 -19
  68. package/src/core/MeganavBlogPostsList.tsx +2 -2
  69. package/src/core/MeganavContentCompany.tsx +5 -5
  70. package/src/core/MeganavContentDevelopers.tsx +2 -2
  71. package/src/core/MeganavContentProducts.tsx +2 -2
  72. package/src/core/MeganavContentUseCases.tsx +2 -2
  73. package/src/core/MeganavControl.tsx +2 -2
  74. package/src/core/MeganavControlMobileDropdown.tsx +2 -2
  75. package/src/core/MeganavControlMobilePanelClose.tsx +1 -2
  76. package/src/core/MeganavControlMobilePanelOpen.tsx +1 -2
  77. package/src/core/MeganavItemsDesktop.tsx +3 -3
  78. package/src/core/MeganavItemsMobile.tsx +9 -9
  79. package/src/core/MeganavItemsSignedIn.tsx +4 -8
  80. package/src/core/MeganavSearch.tsx +3 -3
  81. package/src/core/MeganavSearchPanel.tsx +4 -4
  82. package/src/core/MeganavSearchSuggestions.tsx +2 -2
  83. package/src/core/Notice/component.js +1 -1
  84. package/src/core/Notice.tsx +3 -4
  85. package/src/core/SignOutLink.tsx +1 -1
  86. package/src/core/Slider/Slider.stories.tsx +83 -30
  87. package/src/core/Slider/component.css +32 -0
  88. package/src/core/Slider.tsx +165 -84
  89. package/src/core/Table/Table.tsx +38 -9
  90. package/src/core/Table/TableCell.tsx +31 -6
  91. package/src/core/Table/data.tsx +3 -3
  92. package/src/core/Table.tsx +5 -3
  93. package/src/core/Tooltip/Tooltip.stories.tsx +1 -1
  94. package/src/core/Tooltip.tsx +34 -6
  95. package/src/core/icons/icon-gui-partial.svg +4 -0
  96. package/src/pages/Buttons.mdx +1 -1
  97. package/src/pages/Chips.mdx +1 -1
  98. package/src/pages/Forms.mdx +2 -2
  99. package/core/Accordion/component.js +0 -0
  100. package/core/ConnectStateWrapper/component.js +0 -0
  101. package/core/CookieMessage/component.js +0 -1
  102. package/core/CustomerLogos/component.js +0 -0
  103. package/core/DropdownMenu/component.js +0 -0
  104. package/core/FeaturedLink/component.js +0 -0
  105. package/core/Flash/component.js +0 -1
  106. package/core/Footer/component.js +0 -1
  107. package/core/Icon/component.js +0 -0
  108. package/core/Loader/component.js +0 -0
  109. package/core/Logo/component.js +0 -0
  110. package/core/MeganavContentCompany/component.js +0 -0
  111. package/core/MeganavContentDevelopers/component.js +0 -0
  112. package/core/MeganavContentProducts/.DS_Store +0 -0
  113. package/core/MeganavContentProducts/component.js +0 -0
  114. package/core/MeganavContentUseCases/.DS_Store +0 -0
  115. package/core/MeganavContentUseCases/component.js +0 -0
  116. package/core/MeganavItemsDesktop/.DS_Store +0 -0
  117. package/core/MeganavItemsDesktop/component.js +0 -0
  118. package/core/MeganavItemsMobile/.DS_Store +0 -0
  119. package/core/MeganavItemsMobile/component.js +0 -0
  120. package/core/MeganavItemsSignedIn/.DS_Store +0 -0
  121. package/core/MeganavItemsSignedIn/component.js +0 -0
  122. package/core/MeganavSearch/.DS_Store +0 -0
  123. package/core/MeganavSearch/component.js +0 -0
  124. package/core/MeganavSearchPanel/.DS_Store +0 -0
  125. package/core/MeganavSearchPanel/component.js +0 -0
  126. package/core/SignOutLink/.DS_Store +0 -0
  127. package/core/SignOutLink/component.js +0 -0
  128. package/src/core/Accordion/component.js +0 -0
  129. package/src/core/ConnectStateWrapper/component.js +0 -0
  130. package/src/core/CookieMessage/component.js +0 -1
  131. package/src/core/CustomerLogos/component.js +0 -0
  132. package/src/core/DropdownMenu/component.js +0 -0
  133. package/src/core/FeaturedLink/component.js +0 -0
  134. package/src/core/Flash/component.js +0 -1
  135. package/src/core/Footer/component.js +0 -1
  136. package/src/core/Icon/component.js +0 -0
  137. package/src/core/Loader/component.js +0 -0
  138. package/src/core/Logo/component.js +0 -0
  139. package/src/core/MeganavContentCompany/.DS_Store +0 -0
  140. package/src/core/MeganavContentCompany/component.js +0 -0
  141. package/src/core/MeganavContentDevelopers/.DS_Store +0 -0
  142. package/src/core/MeganavContentDevelopers/component.js +0 -0
  143. package/src/core/MeganavContentProducts/.DS_Store +0 -0
  144. package/src/core/MeganavContentProducts/component.js +0 -0
  145. package/src/core/MeganavContentUseCases/.DS_Store +0 -0
  146. package/src/core/MeganavContentUseCases/component.js +0 -1
  147. package/src/core/MeganavItemsDesktop/.DS_Store +0 -0
  148. package/src/core/MeganavItemsDesktop/component.js +0 -0
  149. package/src/core/MeganavItemsMobile/.DS_Store +0 -0
  150. package/src/core/MeganavItemsMobile/component.js +0 -0
  151. package/src/core/MeganavItemsSignedIn/.DS_Store +0 -0
  152. package/src/core/MeganavItemsSignedIn/component.js +0 -0
  153. package/src/core/MeganavSearch/.DS_Store +0 -0
  154. package/src/core/MeganavSearch/component.js +0 -0
  155. package/src/core/MeganavSearchPanel/.DS_Store +0 -0
  156. package/src/core/MeganavSearchPanel/component.js +0 -0
  157. package/src/core/SignOutLink/.DS_Store +0 -0
  158. package/src/core/SignOutLink/component.js +0 -0
  159. /package/core/{MeganavContentCompany → Tooltip}/.DS_Store +0 -0
  160. /package/{core/MeganavContentDevelopers → src/core/Tooltip}/.DS_Store +0 -0
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Accordion, { AccordionProps } from "./component.tsx";
2
+ import Accordion, { AccordionProps } from "../Accordion";
3
3
 
4
4
  export default {
5
5
  title: "Components/Accordion",
@@ -1,5 +1,5 @@
1
1
  import React, { useState, ReactNode, JSX } from "react";
2
- import Icon from "../Icon/component.tsx";
2
+ import Icon from "./Icon";
3
3
 
4
4
  type AccordionData = {
5
5
  name: string;
@@ -7,14 +7,14 @@ type AccordionData = {
7
7
  };
8
8
 
9
9
  type AccordionRowProps = {
10
- bottomBorder: boolean;
11
- topBorder: boolean;
10
+ bottomBorder?: boolean;
11
+ topBorder?: boolean;
12
12
  active: boolean;
13
13
  last: boolean;
14
14
  name: string;
15
15
  index;
16
16
  children: ReactNode;
17
- arrowIcon: boolean;
17
+ arrowIcon?: boolean;
18
18
  setActiveIndex: (index: number) => void;
19
19
  };
20
20
 
@@ -80,7 +80,7 @@ const AccordionRow = ({
80
80
  onClick={handleSetIndex}
81
81
  className={`flex w-full px-0 focus:outline-none py-20`}
82
82
  >
83
- <span className="ui-text-p1 font-bold text-left mr-8">{name}</span>
83
+ <span className="ui-text-p1 !font-bold text-left mr-8">{name}</span>
84
84
  <span className="ml-auto">{active ? iconActive : iconInactive}</span>
85
85
  </button>
86
86
 
@@ -105,7 +105,7 @@ const Accordion = ({
105
105
  arrowIcon,
106
106
  autoClose,
107
107
  }: AccordionProps) => {
108
- const [activeIndexes, setActiveIndexes] = useState([]);
108
+ const [activeIndexes, setActiveIndexes] = useState<number[]>([]);
109
109
 
110
110
  const handleSetIndex = (index: number) => {
111
111
  const currentIndexIsActive = activeIndexes.includes(index);
@@ -1,4 +1,4 @@
1
- import Code from "./component.tsx";
1
+ import Code from "../Code";
2
2
 
3
3
  export default {
4
4
  title: "Components/Code",
package/src/core/Code.tsx CHANGED
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- import "../utils/syntax-highlighter.css";
3
+ import "./utils/syntax-highlighter.css";
4
4
  import {
5
5
  highlightSnippet,
6
6
  registerDefaultLanguages,
7
- } from "../utils/syntax-highlighter";
8
- import languagesRegistry from "../utils/syntax-highlighter-registry";
7
+ } from "./utils/syntax-highlighter";
8
+ import languagesRegistry from "./utils/syntax-highlighter-registry";
9
9
 
10
10
  registerDefaultLanguages(languagesRegistry);
11
11
 
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
 
3
- import { connectState, getRemoteDataStore } from "../remote-data-store";
3
+ import { connectState, getRemoteDataStore } from "./remote-data-store";
4
4
 
5
5
  /*
6
6
  Connect a react component to a global store.
@@ -1,4 +1,4 @@
1
- import ContactFooter from "./component.tsx";
1
+ import ContactFooter from "../ContactFooter";
2
2
 
3
3
  export default {
4
4
  title: "Components/Contact Footer",
@@ -1,9 +1,9 @@
1
1
  import React, { useEffect } from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import _absUrl from "../url-base.js";
5
- import toggleChatWidget from "../hubspot-chat-toggle";
6
- import "./component.css";
3
+ import Icon from "./Icon";
4
+ import _absUrl from "./url-base.js";
5
+ import toggleChatWidget from "./hubspot-chat-toggle";
6
+ import "./ContactFooter/component.css";
7
7
 
8
8
  type ContactFooterProps = {
9
9
  urlBase: string;
@@ -1,4 +1,4 @@
1
- import CookieMessage from "./component.tsx";
1
+ import CookieMessage from "../CookieMessage";
2
2
 
3
3
  export default {
4
4
  title: "Components/Cookie Message",
@@ -1,8 +1,8 @@
1
1
  import React, { useRef, useEffect, useState } from "react";
2
2
  import Cookie from "js-cookie";
3
- import "./component.css";
4
3
 
5
- import _absUrl from "../url-base";
4
+ import "./CookieMessage/component.css";
5
+ import _absUrl from "./url-base";
6
6
 
7
7
  const COOKIE_EXPIRY = 365;
8
8
 
@@ -1,4 +1,4 @@
1
- import CustomerLogos from "./component.tsx";
1
+ import CustomerLogos from "../CustomerLogos";
2
2
 
3
3
  import hubspot from "../images/cust-logo-hubspot-mono-pos.svg";
4
4
  import webflow from "../images/cust-logo-webflow-col-pos.svg";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import Icon from "../Icon/component.tsx";
3
- import DropdownMenu from "./component.tsx";
2
+ import Icon from "../Icon";
3
+ import DropdownMenu from "../DropdownMenu";
4
4
 
5
5
  export default {
6
6
  title: "Components/Dropdown Menu",
@@ -7,7 +7,7 @@ import React, {
7
7
  ReactNode,
8
8
  Dispatch,
9
9
  } from "react";
10
- import Icon from "../Icon/component.tsx";
10
+ import Icon from "./Icon";
11
11
 
12
12
  const DropdownMenuContext = createContext<{
13
13
  isOpen: boolean;
@@ -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,54 @@
1
+ import React, { PropsWithChildren, useEffect, useRef, useState } from "react";
2
+
3
+ type ExpanderProps = {
4
+ height?: number;
5
+ className?: string;
6
+ fadeClassName?: string;
7
+ };
8
+
9
+ const Expander = ({
10
+ height = 200,
11
+ className,
12
+ fadeClassName,
13
+ children,
14
+ }: PropsWithChildren<ExpanderProps>) => {
15
+ const innerRef = useRef<HTMLDivElement>(null);
16
+ const [contentHeight, setContentHeight] = useState(height);
17
+ const [expanded, setExpanded] = useState(false);
18
+
19
+ useEffect(() => {
20
+ setContentHeight(innerRef.current?.clientHeight ?? height);
21
+ }, [height, expanded]);
22
+
23
+ const showControls = contentHeight > height;
24
+
25
+ return (
26
+ <>
27
+ <div
28
+ style={{ height: expanded ? contentHeight : height }}
29
+ className={`overflow-hidden transition-all relative ${className ?? ""}`}
30
+ >
31
+ {showControls && !expanded && (
32
+ <div
33
+ className={`h-64 w-full bg-gradient-to-t from-white to-transparent absolute bottom-0 left-0 right-0 ${
34
+ fadeClassName ?? ""
35
+ }`}
36
+ ></div>
37
+ )}
38
+ <div ref={innerRef}>{children}</div>
39
+ </div>
40
+ {showControls && (
41
+ <div
42
+ onClick={() => setExpanded(!expanded)}
43
+ onKeyDown={(e) => e.key === "Enter" && setExpanded(!expanded)}
44
+ tabIndex={0}
45
+ className="mt-16 cursor-pointer font-bold text-gui-blue-default-light hover:text-gui-blue-hover-light active:text-gui-blue-active-light focus:text-gui-blue-focus"
46
+ >
47
+ {expanded ? "View less -" : "View all +"}
48
+ </div>
49
+ )}
50
+ </>
51
+ );
52
+ };
53
+
54
+ export default Expander;
@@ -1,4 +1,4 @@
1
- import FeaturedLink from "./component.tsx";
1
+ import FeaturedLink from "../FeaturedLink";
2
2
 
3
3
  export default {
4
4
  title: "Components/Featured Link",
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties, ReactNode } from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
3
+ import Icon from "./Icon";
4
4
 
5
5
  type FeaturedLinkProps = {
6
6
  url: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Flash, { reducerFlashes } from "./component.tsx";
2
+ import Flash, { reducerFlashes } from "../Flash";
3
3
 
4
4
  import {
5
5
  attachStoreToWindow,
@@ -2,10 +2,10 @@ 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 "../remote-data-store.js";
6
- import ConnectStateWrapper from "../ConnectStateWrapper/component.tsx";
7
- import Icon from "../Icon/component.tsx";
8
- import "./component.css";
5
+ import { getRemoteDataStore } from "./remote-data-store.js";
6
+ import ConnectStateWrapper from "./ConnectStateWrapper";
7
+ import Icon from "./Icon";
8
+ import "./Flash/component.css";
9
9
 
10
10
  type FlashProps = {
11
11
  id: string;
@@ -1,4 +1,4 @@
1
- import Footer from "./component.tsx";
1
+ import Footer from "../Footer";
2
2
 
3
3
  import ablyStack from "../images/ably-stack.svg";
4
4
  import highestPerformer from "../images/high-performer-2023.svg";
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import _absUrl from "../url-base.js";
5
- import "./component.css";
3
+ import Icon from "./Icon";
4
+ import _absUrl from "./url-base.js";
5
+ import "./Footer/component.css";
6
6
 
7
7
  type FooterProps = {
8
8
  paths: {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Icon from "./component.tsx";
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,4 +1,4 @@
1
- import Loader from "./component.tsx";
1
+ import Loader from "../Loader";
2
2
 
3
3
  export default {
4
4
  title: "Components/Loader",
@@ -1,4 +1,4 @@
1
- import Logo from "./component.tsx";
1
+ import Logo from "../Logo";
2
2
  import logoUrl from "../images/ably-logo.png";
3
3
 
4
4
  export default {
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect } from "react";
2
2
  import { rest } from "msw";
3
3
 
4
- import Meganav from "./component.tsx";
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";
@@ -1,24 +1,22 @@
1
1
  import React, { ReactNode, useEffect, useState } from "react";
2
2
 
3
- import { connectState } from "../remote-data-store.js";
4
- import { selectSessionData } from "../remote-session-data.js";
5
-
6
- import Logo from "../Logo/component.tsx";
7
- import "./component.css";
8
-
9
- import MeganavScripts from "./component.js";
10
- import MeganavItemsDesktop from "../MeganavItemsDesktop/component.tsx";
11
- import MeganavItemsSignedIn from "../MeganavItemsSignedIn/component.tsx";
12
- import MeganavItemsMobile from "../MeganavItemsMobile/component.tsx";
13
- import Notice from "../Notice/component.tsx";
14
- import MeganavData from "./component.json";
15
- import _absUrl from "../url-base.js";
16
-
17
- import MeganavContentProducts from "../MeganavContentProducts/component.tsx";
18
- import MeganavContentUseCases from "../MeganavContentUseCases/component.tsx";
19
- import MeganavContentCompany from "../MeganavContentCompany/component.tsx";
20
- import MeganavContentDevelopers from "../MeganavContentDevelopers/component.tsx";
21
- import MeganavSearch from "../MeganavSearch/component.tsx";
3
+ import { connectState } from "./remote-data-store.js";
4
+ import { selectSessionData } from "./remote-session-data.js";
5
+
6
+ import Logo from "./Logo";
7
+ import "./Meganav/component.css";
8
+ import MeganavData from "./Meganav/component.json";
9
+ import MeganavScripts from "./Meganav/component.js";
10
+ import MeganavItemsDesktop from "./MeganavItemsDesktop";
11
+ import MeganavItemsSignedIn from "./MeganavItemsSignedIn";
12
+ import MeganavItemsMobile from "./MeganavItemsMobile";
13
+ import Notice from "./Notice";
14
+ import _absUrl from "./url-base.js";
15
+ import MeganavContentProducts from "./MeganavContentProducts";
16
+ import MeganavContentUseCases from "./MeganavContentUseCases";
17
+ import MeganavContentCompany from "./MeganavContentCompany";
18
+ import MeganavContentDevelopers from "./MeganavContentDevelopers";
19
+ import MeganavSearch from "./MeganavSearch";
22
20
 
23
21
  export type MeganavTheme = {
24
22
  backgroundColor?: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import FeaturedLink from "../FeaturedLink/component.tsx";
4
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import FeaturedLink from "./FeaturedLink";
4
+ import { AbsUrl } from "./Meganav";
5
5
 
6
6
  type MeganavBlogPostsListProps = {
7
7
  recentBlogPosts: {
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
 
3
- import MeganavBlogPostsList from "../MeganavBlogPostsList/component.tsx";
4
- import ConnectStateWrapper from "../ConnectStateWrapper/component.tsx";
5
- import { selectRecentBlogPosts } from "../remote-blogs-posts.js";
6
- import Icon from "../Icon/component.tsx";
7
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import MeganavBlogPostsList from "./MeganavBlogPostsList";
4
+ import ConnectStateWrapper from "./ConnectStateWrapper";
5
+ import { selectRecentBlogPosts } from "./remote-blogs-posts.js";
6
+ import Icon from "./Icon";
7
+ import { AbsUrl } from "./Meganav";
8
8
 
9
9
  type MeganavContentCompanyProps = {
10
10
  absUrl: AbsUrl;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import { AbsUrl } from "./Meganav";
5
5
 
6
6
  const MeganavContentDevelopers = ({ absUrl }: { absUrl: AbsUrl }) => (
7
7
  <div className="flex max-w-screen-xl mx-auto">
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import FeaturedLink from "../FeaturedLink/component.tsx";
4
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import FeaturedLink from "./FeaturedLink";
4
+ import { AbsUrl } from "./Meganav";
5
5
 
6
6
  type MeganavContentProductsProps = {
7
7
  paths: {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import { AbsUrl } from "./Meganav";
5
5
 
6
6
  const MeganavContentUseCases = ({ absUrl }: { absUrl: AbsUrl }) => (
7
7
  <div className="flex max-w-screen-xl mx-auto">
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import { MeganavTheme } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import { MeganavTheme } from "./Meganav";
5
5
 
6
6
  type MeganavControlProps = {
7
7
  ariaControls: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import { MeganavTheme } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import { MeganavTheme } from "./Meganav";
5
5
 
6
6
  const MeganavControlMobileDropdown = ({ theme }: { theme: MeganavTheme }) => (
7
7
  <button
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
-
3
+ import Icon from "./Icon";
5
4
  type MeganavControlMobilePanelCloseProps = {
6
5
  ariaControls: string;
7
6
  displayHr?: boolean;
@@ -1,7 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
-
3
+ import Icon from "./Icon";
5
4
  type MeganavControlMobilePanelOpenProps = {
6
5
  ariaControls: string;
7
6
  children: ReactNode;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
 
3
- import MeganavData from "../Meganav/component.json";
4
- import MeganavControl from "../MeganavControl/component.tsx";
5
- import { AbsUrl, MeganavPanels, MeganavTheme } from "../Meganav/component.tsx";
3
+ import MeganavData from "./Meganav/component.json";
4
+ import MeganavControl from "./MeganavControl";
5
+ import { AbsUrl, MeganavPanels, MeganavTheme } from "./Meganav";
6
6
 
7
7
  type MeganavDesktopItems = {
8
8
  panels: MeganavPanels;
@@ -1,19 +1,19 @@
1
1
  import React from "react";
2
2
 
3
- import SignOutLink from "../SignOutLink/component.tsx";
4
- import MeganavSearchSuggestions from "../MeganavSearchSuggestions/component.tsx";
5
- import Icon from "../Icon/component.tsx";
6
- import MeganavData from "../Meganav/component.json";
7
- import MeganavControlMobileDropdown from "../MeganavControlMobileDropdown/component.tsx";
8
- import MeganavControlMobilePanelClose from "../MeganavControlMobilePanelClose/component.tsx";
9
- import MeganavControlMobilePanelOpen from "../MeganavControlMobilePanelOpen/component.tsx";
10
- import MeganavSearchAutocomplete from "../MeganavSearchAutocomplete/component.tsx";
3
+ import SignOutLink from "./SignOutLink";
4
+ import MeganavSearchSuggestions from "./MeganavSearchSuggestions";
5
+ import Icon from "./Icon";
6
+ import MeganavData from "./Meganav/component.json";
7
+ import MeganavControlMobileDropdown from "./MeganavControlMobileDropdown";
8
+ import MeganavControlMobilePanelClose from "./MeganavControlMobilePanelClose";
9
+ import MeganavControlMobilePanelOpen from "./MeganavControlMobilePanelOpen";
10
+ import MeganavSearchAutocomplete from "./MeganavSearchAutocomplete";
11
11
  import {
12
12
  AbsUrl,
13
13
  MeganavPanels,
14
14
  MeganavSessionState,
15
15
  MeganavTheme,
16
- } from "../Meganav/component.tsx";
16
+ } from "./Meganav";
17
17
 
18
18
  type MeganavItemsMobileProps = {
19
19
  panels: MeganavPanels;
@@ -1,13 +1,9 @@
1
1
  import React from "react";
2
2
 
3
- import MeganavControl from "../MeganavControl/component.tsx";
4
- import SignOutLink from "../SignOutLink/component.tsx";
5
- import MeganavSearch from "../MeganavSearch/component.tsx";
6
- import {
7
- AbsUrl,
8
- MeganavSessionState,
9
- MeganavTheme,
10
- } from "../Meganav/component.tsx";
3
+ import MeganavControl from "./MeganavControl";
4
+ import SignOutLink from "./SignOutLink";
5
+ import MeganavSearch from "./MeganavSearch";
6
+ import { AbsUrl, MeganavSessionState, MeganavTheme } from "./Meganav";
11
7
 
12
8
  type MeganavItemsSignedIn = {
13
9
  sessionState: MeganavSessionState;