From 5c6c5b85b12b32c1b65b942b1b049553d67856e0 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 20 Nov 2024 16:58:23 +0100 Subject: [PATCH] Export `InlineSpinner` --- src/components/Form/Message.tsx | 2 +- src/components/InlineSpinner/index.ts | 17 +++++++++++++++++ src/index.ts | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/components/InlineSpinner/index.ts diff --git a/src/components/Form/Message.tsx b/src/components/Form/Message.tsx index b8d3a675..1f7d2196 100644 --- a/src/components/Form/Message.tsx +++ b/src/components/Form/Message.tsx @@ -21,7 +21,7 @@ import ErrorIcon from "@vector-im/compound-design-tokens/assets/web/icons/error" import styles from "./form.module.css"; import classNames from "classnames"; -import { InlineSpinner } from "../InlineSpinner/InlineSpinner"; +import { InlineSpinner } from "../InlineSpinner"; type MessageProps = { /** diff --git a/src/components/InlineSpinner/index.ts b/src/components/InlineSpinner/index.ts new file mode 100644 index 00000000..1f5f480f --- /dev/null +++ b/src/components/InlineSpinner/index.ts @@ -0,0 +1,17 @@ +/* +Copyright 2024 New Vector Ltd + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export { InlineSpinner } from "./InlineSpinner"; diff --git a/src/index.ts b/src/index.ts index 427a085e..6bd84107 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,7 +49,8 @@ export { Tooltip } from "./components/Tooltip/Tooltip"; export { TooltipProvider } from "./components/Tooltip/TooltipProvider"; export { ReleaseAnnouncement } from "./components/ReleaseAnnouncement"; export { Toast } from "./components/Toast/Toast"; -export { Dropdown } from "./components//Dropdown"; +export { Dropdown } from "./components/Dropdown"; +export { InlineSpinner } from "./components/InlineSpinner"; export { TextControl,