@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.
- 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.js +1 -1
- package/core/CookieMessage.js +1 -1
- package/core/DropdownMenu.js +1 -1
- package/core/FeaturedLink.js +1 -1
- package/core/Flash.js +1 -1
- package/core/Footer.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.js +1 -1
- package/core/Notice.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/sprites.svg +1 -1
- package/package.json +1 -2
- 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 +1 -1
- package/src/core/Code/Code.stories.tsx +1 -1
- package/src/core/Code.tsx +3 -3
- package/src/core/ConnectStateWrapper.tsx +1 -1
- package/src/core/ContactFooter/ContactFooter.stories.tsx +1 -1
- package/src/core/ContactFooter.tsx +4 -4
- package/src/core/CookieMessage/CookieMessage.stories.tsx +1 -1
- package/src/core/CookieMessage.tsx +2 -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/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.tsx +4 -4
- package/src/core/Footer/Footer.stories.tsx +1 -1
- package/src/core/Footer.tsx +3 -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.tsx +17 -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.js +1 -1
- package/src/core/Notice.tsx +3 -4
- package/src/core/SignOutLink.tsx +1 -1
- package/src/core/Slider/Slider.stories.tsx +1 -1
- package/src/core/Slider.tsx +3 -3
- package/src/core/Table/Table.tsx +38 -9
- package/src/core/Table/TableCell.tsx +31 -6
- package/src/core/Table/data.tsx +3 -3
- package/src/core/Table.tsx +5 -3
- 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/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
package/src/core/.DS_Store
CHANGED
|
Binary file
|
package/src/core/Accordion.tsx
CHANGED
package/src/core/Code.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import "
|
|
3
|
+
import "./utils/syntax-highlighter.css";
|
|
4
4
|
import {
|
|
5
5
|
highlightSnippet,
|
|
6
6
|
registerDefaultLanguages,
|
|
7
|
-
} from "
|
|
8
|
-
import languagesRegistry from "
|
|
7
|
+
} from "./utils/syntax-highlighter";
|
|
8
|
+
import languagesRegistry from "./utils/syntax-highlighter-registry";
|
|
9
9
|
|
|
10
10
|
registerDefaultLanguages(languagesRegistry);
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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";
|
|
6
|
+
import "./ContactFooter/component.css";
|
|
7
7
|
|
|
8
8
|
type ContactFooterProps = {
|
|
9
9
|
urlBase: string;
|
|
@@ -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
|
|
4
|
+
import "./CookieMessage/component.css";
|
|
5
|
+
import _absUrl from "./url-base";
|
|
6
6
|
|
|
7
7
|
const COOKIE_EXPIRY = 365;
|
|
8
8
|
|
package/src/core/Flash.tsx
CHANGED
|
@@ -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 "
|
|
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";
|
|
8
|
+
import "./Flash/component.css";
|
|
9
9
|
|
|
10
10
|
type FlashProps = {
|
|
11
11
|
id: string;
|
package/src/core/Footer.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
4
|
-
import _absUrl from "
|
|
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 "
|
|
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";
|
package/src/core/Meganav.tsx
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import React, { ReactNode, useEffect, useState } from "react";
|
|
2
2
|
|
|
3
|
-
import { connectState } from "
|
|
4
|
-
import { selectSessionData } from "
|
|
5
|
-
|
|
6
|
-
import Logo from "
|
|
7
|
-
import "./component.css";
|
|
8
|
-
|
|
9
|
-
import MeganavScripts from "./component.js";
|
|
10
|
-
import MeganavItemsDesktop from "
|
|
11
|
-
import MeganavItemsSignedIn from "
|
|
12
|
-
import MeganavItemsMobile from "
|
|
13
|
-
import Notice from "
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
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 "
|
|
4
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import ConnectStateWrapper from "
|
|
5
|
-
import { selectRecentBlogPosts } from "
|
|
6
|
-
import Icon from "
|
|
7
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import { MeganavTheme } from "
|
|
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 "
|
|
4
|
-
import { MeganavTheme } from "
|
|
3
|
+
import Icon from "./Icon";
|
|
4
|
+
import { MeganavTheme } from "./Meganav";
|
|
5
5
|
|
|
6
6
|
const MeganavControlMobileDropdown = ({ theme }: { theme: MeganavTheme }) => (
|
|
7
7
|
<button
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import MeganavData from "
|
|
4
|
-
import MeganavControl from "
|
|
5
|
-
import { AbsUrl, MeganavPanels, MeganavTheme } from "
|
|
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 "
|
|
4
|
-
import MeganavSearchSuggestions from "
|
|
5
|
-
import Icon from "
|
|
6
|
-
import MeganavData from "
|
|
7
|
-
import MeganavControlMobileDropdown from "
|
|
8
|
-
import MeganavControlMobilePanelClose from "
|
|
9
|
-
import MeganavControlMobilePanelOpen from "
|
|
10
|
-
import MeganavSearchAutocomplete from "
|
|
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 "
|
|
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 "
|
|
4
|
-
import SignOutLink from "
|
|
5
|
-
import MeganavSearch from "
|
|
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 "
|
|
4
|
-
import MeganavSearchPanel from "
|
|
5
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import MeganavSearchSuggestions from "
|
|
5
|
-
import MeganavSearchAutocomplete from "
|
|
6
|
-
import { AbsUrl } from "
|
|
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 "
|
|
4
|
-
import { AbsUrl } from "
|
|
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
|
|
6
|
+
import { FLASH_DATA_ID } from "../Flash";
|
|
7
7
|
|
|
8
8
|
const COOKIE_EXPIRY = 90;
|
|
9
9
|
const COLLAPSE_TRIGGER_DISTANCE = 5;
|
package/src/core/Notice.tsx
CHANGED
|
@@ -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 "
|
|
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;
|
package/src/core/SignOutLink.tsx
CHANGED
package/src/core/Slider.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, useEffect, useRef } from "react";
|
|
2
2
|
|
|
3
|
-
import Icon from "
|
|
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[];
|
package/src/core/Table/Table.tsx
CHANGED
|
@@ -1,28 +1,57 @@
|
|
|
1
|
-
import 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 = ({
|
|
8
|
-
|
|
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 = ({
|
|
14
|
-
|
|
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 = ({
|
|
18
|
-
|
|
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 = ({
|
|
47
|
+
export const TableRowHeader = ({
|
|
48
|
+
children,
|
|
49
|
+
...rest
|
|
50
|
+
}: PropsWithChildren<TableHTMLAttributes<HTMLTableRowElement>>) => (
|
|
24
51
|
<tr
|
|
25
|
-
className=
|
|
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 })}
|