@ably/ui 14.0.0-dev.968e4a2 → 14.0.0-dev.99c9769

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 (155) 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/FeaturedLink.js +1 -1
  10. package/core/Flash.js +1 -1
  11. package/core/Footer.js +1 -1
  12. package/core/Meganav.js +1 -1
  13. package/core/MeganavBlogPostsList.js +1 -1
  14. package/core/MeganavContentCompany.js +1 -1
  15. package/core/MeganavContentDevelopers.js +1 -1
  16. package/core/MeganavContentProducts.js +1 -1
  17. package/core/MeganavContentUseCases.js +1 -1
  18. package/core/MeganavControl.js +1 -1
  19. package/core/MeganavControlMobileDropdown.js +1 -1
  20. package/core/MeganavControlMobilePanelClose.js +1 -1
  21. package/core/MeganavControlMobilePanelOpen.js +1 -1
  22. package/core/MeganavItemsDesktop.js +1 -1
  23. package/core/MeganavItemsMobile.js +1 -1
  24. package/core/MeganavItemsSignedIn.js +1 -1
  25. package/core/MeganavSearch.js +1 -1
  26. package/core/MeganavSearchPanel.js +1 -1
  27. package/core/MeganavSearchSuggestions.js +1 -1
  28. package/core/Notice/component.js +1 -1
  29. package/core/Notice.js +1 -1
  30. package/core/Slider.js +1 -1
  31. package/core/Table/Table.js +1 -1
  32. package/core/Table/TableCell.js +4 -4
  33. package/core/Table/data.js +1 -1
  34. package/core/Table.js +1 -1
  35. package/core/Tooltip.js +1 -1
  36. package/core/icons/icon-gui-partial.svg +4 -0
  37. package/core/sprites.svg +1 -1
  38. package/package.json +1 -2
  39. package/src/.DS_Store +0 -0
  40. package/src/core/.DS_Store +0 -0
  41. package/src/core/Accordion/Accordion.stories.tsx +1 -1
  42. package/src/core/Accordion.tsx +1 -1
  43. package/src/core/Code/Code.stories.tsx +1 -1
  44. package/src/core/Code.tsx +3 -3
  45. package/src/core/ConnectStateWrapper.tsx +1 -1
  46. package/src/core/ContactFooter/ContactFooter.stories.tsx +1 -1
  47. package/src/core/ContactFooter.tsx +4 -4
  48. package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
  49. package/src/core/CookieMessage.tsx +2 -2
  50. package/src/core/CustomerLogos/CustomerLogos.stories.tsx +1 -1
  51. package/src/core/DropdownMenu/DropdownMenu.stories.tsx +2 -2
  52. package/src/core/DropdownMenu.tsx +1 -1
  53. package/src/core/FeaturedLink/FeaturedLink.stories.tsx +1 -1
  54. package/src/core/FeaturedLink.tsx +1 -1
  55. package/src/core/Flash/Flash.stories.tsx +1 -1
  56. package/src/core/Flash.tsx +4 -4
  57. package/src/core/Footer/Footer.stories.tsx +1 -1
  58. package/src/core/Footer.tsx +3 -3
  59. package/src/core/Icon/Icon.stories.tsx +2 -1
  60. package/src/core/Loader/Loader.stories.tsx +1 -1
  61. package/src/core/Logo/Logo.stories.tsx +1 -1
  62. package/src/core/Meganav/Meganav.stories.tsx +1 -1
  63. package/src/core/Meganav.tsx +17 -19
  64. package/src/core/MeganavBlogPostsList.tsx +2 -2
  65. package/src/core/MeganavContentCompany.tsx +5 -5
  66. package/src/core/MeganavContentDevelopers.tsx +2 -2
  67. package/src/core/MeganavContentProducts.tsx +2 -2
  68. package/src/core/MeganavContentUseCases.tsx +2 -2
  69. package/src/core/MeganavControl.tsx +2 -2
  70. package/src/core/MeganavControlMobileDropdown.tsx +2 -2
  71. package/src/core/MeganavControlMobilePanelClose.tsx +1 -2
  72. package/src/core/MeganavControlMobilePanelOpen.tsx +1 -2
  73. package/src/core/MeganavItemsDesktop.tsx +3 -3
  74. package/src/core/MeganavItemsMobile.tsx +9 -9
  75. package/src/core/MeganavItemsSignedIn.tsx +4 -8
  76. package/src/core/MeganavSearch.tsx +3 -3
  77. package/src/core/MeganavSearchPanel.tsx +4 -4
  78. package/src/core/MeganavSearchSuggestions.tsx +2 -2
  79. package/src/core/Notice/component.js +1 -1
  80. package/src/core/Notice.tsx +3 -4
  81. package/src/core/SignOutLink.tsx +1 -1
  82. package/src/core/Slider/Slider.stories.tsx +1 -1
  83. package/src/core/Slider.tsx +3 -3
  84. package/src/core/Table/Table.tsx +38 -9
  85. package/src/core/Table/TableCell.tsx +31 -6
  86. package/src/core/Table/data.tsx +3 -3
  87. package/src/core/Table.tsx +5 -3
  88. package/src/core/Tooltip/Tooltip.stories.tsx +1 -1
  89. package/src/core/Tooltip.tsx +34 -6
  90. package/src/core/icons/icon-gui-partial.svg +4 -0
  91. package/src/pages/Buttons.mdx +1 -1
  92. package/src/pages/Chips.mdx +1 -1
  93. package/src/pages/Forms.mdx +2 -2
  94. package/core/Accordion/component.js +0 -0
  95. package/core/ConnectStateWrapper/component.js +0 -0
  96. package/core/CookieMessage/component.js +0 -1
  97. package/core/CustomerLogos/component.js +0 -0
  98. package/core/DropdownMenu/component.js +0 -0
  99. package/core/FeaturedLink/component.js +0 -0
  100. package/core/Flash/component.js +0 -1
  101. package/core/Footer/component.js +0 -1
  102. package/core/Icon/component.js +0 -0
  103. package/core/Loader/component.js +0 -0
  104. package/core/Logo/component.js +0 -0
  105. package/core/MeganavContentCompany/component.js +0 -0
  106. package/core/MeganavContentDevelopers/component.js +0 -0
  107. package/core/MeganavContentProducts/.DS_Store +0 -0
  108. package/core/MeganavContentProducts/component.js +0 -0
  109. package/core/MeganavContentUseCases/.DS_Store +0 -0
  110. package/core/MeganavContentUseCases/component.js +0 -0
  111. package/core/MeganavItemsDesktop/.DS_Store +0 -0
  112. package/core/MeganavItemsDesktop/component.js +0 -0
  113. package/core/MeganavItemsMobile/.DS_Store +0 -0
  114. package/core/MeganavItemsMobile/component.js +0 -0
  115. package/core/MeganavItemsSignedIn/.DS_Store +0 -0
  116. package/core/MeganavItemsSignedIn/component.js +0 -0
  117. package/core/MeganavSearch/.DS_Store +0 -0
  118. package/core/MeganavSearch/component.js +0 -0
  119. package/core/MeganavSearchPanel/.DS_Store +0 -0
  120. package/core/MeganavSearchPanel/component.js +0 -0
  121. package/core/SignOutLink/.DS_Store +0 -0
  122. package/core/SignOutLink/component.js +0 -0
  123. package/src/core/Accordion/component.js +0 -0
  124. package/src/core/ConnectStateWrapper/component.js +0 -0
  125. package/src/core/CookieMessage/component.js +0 -1
  126. package/src/core/CustomerLogos/component.js +0 -0
  127. package/src/core/DropdownMenu/component.js +0 -0
  128. package/src/core/FeaturedLink/component.js +0 -0
  129. package/src/core/Flash/component.js +0 -1
  130. package/src/core/Footer/component.js +0 -1
  131. package/src/core/Icon/component.js +0 -0
  132. package/src/core/Loader/component.js +0 -0
  133. package/src/core/Logo/component.js +0 -0
  134. package/src/core/MeganavContentCompany/.DS_Store +0 -0
  135. package/src/core/MeganavContentCompany/component.js +0 -0
  136. package/src/core/MeganavContentDevelopers/.DS_Store +0 -0
  137. package/src/core/MeganavContentDevelopers/component.js +0 -0
  138. package/src/core/MeganavContentProducts/.DS_Store +0 -0
  139. package/src/core/MeganavContentProducts/component.js +0 -0
  140. package/src/core/MeganavContentUseCases/.DS_Store +0 -0
  141. package/src/core/MeganavContentUseCases/component.js +0 -1
  142. package/src/core/MeganavItemsDesktop/.DS_Store +0 -0
  143. package/src/core/MeganavItemsDesktop/component.js +0 -0
  144. package/src/core/MeganavItemsMobile/.DS_Store +0 -0
  145. package/src/core/MeganavItemsMobile/component.js +0 -0
  146. package/src/core/MeganavItemsSignedIn/.DS_Store +0 -0
  147. package/src/core/MeganavItemsSignedIn/component.js +0 -0
  148. package/src/core/MeganavSearch/.DS_Store +0 -0
  149. package/src/core/MeganavSearch/component.js +0 -0
  150. package/src/core/MeganavSearchPanel/.DS_Store +0 -0
  151. package/src/core/MeganavSearchPanel/component.js +0 -0
  152. package/src/core/SignOutLink/.DS_Store +0 -0
  153. package/src/core/SignOutLink/component.js +0 -0
  154. /package/core/{MeganavContentCompany → Tooltip}/.DS_Store +0 -0
  155. /package/{core/MeganavContentDevelopers → src/core/Tooltip}/.DS_Store +0 -0
Binary file
@@ -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;
@@ -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;
@@ -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;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import MeganavSearchPanel from "../MeganavSearchPanel/component.tsx";
5
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import MeganavSearchPanel from "./MeganavSearchPanel";
5
+ import { AbsUrl } from "./Meganav";
6
6
 
7
7
  const MeganavSearch = ({ absUrl }: { absUrl: AbsUrl }) => (
8
8
  <>
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import MeganavSearchSuggestions from "../MeganavSearchSuggestions/component.tsx";
5
- import MeganavSearchAutocomplete from "../MeganavSearchAutocomplete/component.tsx";
6
- import { AbsUrl } from "../Meganav/component.tsx";
3
+ import Icon from "./Icon";
4
+ import MeganavSearchSuggestions from "./MeganavSearchSuggestions";
5
+ import MeganavSearchAutocomplete from "./MeganavSearchAutocomplete";
6
+ import { AbsUrl } from "./Meganav";
7
7
 
8
8
  const MeganavSearchPanel = ({ absUrl }: { absUrl: AbsUrl }) => (
9
9
  <section className="ui-meganav-content grid-cols-12">
@@ -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 MeganavSearchSuggestionsProps = {
7
7
  absUrl: AbsUrl;
@@ -3,7 +3,7 @@ import Cookie from "js-cookie";
3
3
  import throttle from "lodash.throttle";
4
4
 
5
5
  import { queryId } from "../dom-query";
6
- import { FLASH_DATA_ID } from "../Flash/component.tsx";
6
+ import { FLASH_DATA_ID } from "../Flash";
7
7
 
8
8
  const COOKIE_EXPIRY = 90;
9
9
  const COLLAPSE_TRIGGER_DISTANCE = 5;
@@ -1,9 +1,8 @@
1
1
  import React, { ReactNode, useEffect } from "react";
2
2
 
3
- import NoticeScripts from "./component.js";
4
- import "./component.css";
5
- import Icon from "../Icon/component.tsx";
6
-
3
+ import NoticeScripts from "./Notice/component.js";
4
+ import "./Notice/component.css";
5
+ import Icon from "./Icon";
7
6
  type ContentWrapperProps = {
8
7
  buttonLink: string;
9
8
  children: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React, { MouseEventHandler, ReactNode, useRef } from "react";
2
- import { AbsUrl } from "../Meganav/component.tsx";
2
+ import { AbsUrl } from "./Meganav";
3
3
 
4
4
  type SignOutLinkProps = {
5
5
  token: string;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
- import Slider from "./component.tsx";
2
+ import Slider from "../Slider";
3
3
 
4
4
  export default {
5
5
  title: "Components/Slider",
@@ -1,8 +1,8 @@
1
1
  import React, { CSSProperties, ReactNode, useEffect, useRef } from "react";
2
2
 
3
- import Icon from "../Icon/component.tsx";
4
- import SliderScripts from "./component.js";
5
- import "./component.css";
3
+ import Icon from "./Icon";
4
+ import SliderScripts from "./Slider/component.js";
5
+ import "./Slider/component.css";
6
6
 
7
7
  type SliderProps = {
8
8
  slides?: ReactNode[];
@@ -1,28 +1,57 @@
1
- import React, { PropsWithChildren, ReactElement, cloneElement } from "react";
1
+ import React, {
2
+ PropsWithChildren,
3
+ ReactElement,
4
+ TableHTMLAttributes,
5
+ cloneElement,
6
+ } from "react";
2
7
 
3
8
  type TableProps = {
4
9
  id?: string;
5
10
  };
6
11
 
7
- export const Table = ({ id, children }: PropsWithChildren<TableProps>) => (
8
- <table id={id} className="ui-standard-container mb-4 sm:table-fixed">
12
+ export const Table = ({
13
+ id,
14
+ children,
15
+ ...rest
16
+ }: PropsWithChildren<TableProps & TableHTMLAttributes<HTMLTableElement>>) => (
17
+ <table
18
+ id={id}
19
+ {...rest}
20
+ className={`ui-standard-container mb-4 sm:table-fixed ${
21
+ rest?.className ?? ""
22
+ }`}
23
+ >
9
24
  {children}
10
25
  </table>
11
26
  );
12
27
 
13
- export const TableBody = ({ children }: PropsWithChildren) => (
14
- <tbody>{children}</tbody>
28
+ export const TableBody = ({
29
+ children,
30
+ ...rest
31
+ }: PropsWithChildren<TableHTMLAttributes<HTMLTableSectionElement>>) => (
32
+ <tbody {...rest}>{children}</tbody>
15
33
  );
16
34
 
17
- export const TableHeader = ({ children }: PropsWithChildren) => (
18
- <thead className="sticky bg-white z-10 top-0" key="sticky-block">
35
+ export const TableHeader = ({
36
+ children,
37
+ ...rest
38
+ }: PropsWithChildren<TableHTMLAttributes<HTMLTableSectionElement>>) => (
39
+ <thead
40
+ {...rest}
41
+ className={`sticky bg-white z-10 top-0 ${rest?.className ?? ""}`}
42
+ >
19
43
  {cloneElement(children as ReactElement, { isHeader: true })}
20
44
  </thead>
21
45
  );
22
46
 
23
- export const TableRowHeader = ({ children }: PropsWithChildren) => (
47
+ export const TableRowHeader = ({
48
+ children,
49
+ ...rest
50
+ }: PropsWithChildren<TableHTMLAttributes<HTMLTableRowElement>>) => (
24
51
  <tr
25
- className="-ml-24 mt-8 sm:ml-0 sm:mt-0 ui-text-overline1 !text-cool-black bg-light-grey sm:sticky z-10"
52
+ className={`-ml-24 mt-8 sm:ml-0 sm:mt-0 bg-light-grey sm:sticky z-10 ${
53
+ rest?.className ?? ""
54
+ }`}
26
55
  style={{ top: "4rem" }}
27
56
  >
28
57
  {cloneElement(children as ReactElement, { isRowHeader: true })}