@rikstv/shared-components 2.0.11 → 2.0.12
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/dist/components/accordion/Accordion.d.ts +0 -1
- package/dist/components/accordion/Accordion.test.d.ts +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/breadcrumb/Breadcrumb.test.d.ts +1 -0
- package/dist/components/button/ArrowButton.d.ts +0 -3
- package/dist/components/button/ArrowButton.test.d.ts +1 -0
- package/dist/components/button/BaseLinkButton.d.ts +0 -4
- package/dist/components/button/Button.d.ts +0 -2
- package/dist/components/button/Button.test.d.ts +1 -0
- package/dist/components/button/DecoratedButton.d.ts +0 -2
- package/dist/components/button/IconButton.d.ts +0 -2
- package/dist/components/button/IconButton.test.d.ts +1 -0
- package/dist/components/button/LinkButton.test.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +0 -1
- package/dist/components/checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/core/Core.test.d.ts +1 -0
- package/dist/components/core/RiksTV.d.ts +0 -1
- package/dist/components/core/Strim.d.ts +0 -1
- package/dist/components/core/docs/BrandVariables.d.ts +3 -0
- package/dist/components/core/docs/Colors.d.ts +2 -0
- package/dist/components/core/docs/Spacing.d.ts +2 -0
- package/dist/components/core/docs/Variables.d.ts +5 -0
- package/dist/components/core/docs/componets/BrandColors/BrandColors.d.ts +2 -0
- package/dist/components/core/docs/componets/ColorSwatch/ColorSwatch.d.ts +4 -0
- package/dist/components/core/docs/componets/ColorSwatch/ColorSwatchBtn.d.ts +7 -0
- package/dist/components/core/docs/componets/ColorSwatch/getColor.d.ts +1 -0
- package/dist/components/core/docs/componets/ColorSwatch/useColorSwatchCopy.d.ts +6 -0
- package/dist/components/core/docs/componets/ExampleGrid/ExampleGrid.d.ts +4 -0
- package/dist/components/core/docs/componets/SpacingBlock/SpacingBlock.d.ts +4 -0
- package/dist/components/core/docs/context/ExampleContext.d.ts +4 -0
- package/dist/components/core/docs/hooks/ClickOutside.d.ts +2 -0
- package/dist/components/core/docs/hooks/Intersection.d.ts +2 -0
- package/dist/components/core/docs/hooks/Mutation.d.ts +1 -0
- package/dist/components/core/docs/hooks/animated.d.ts +2 -0
- package/dist/components/core/docs/utils/PropertyList.d.ts +4 -0
- package/dist/components/core/docs/utils/parseColorsFromScss.d.ts +1 -0
- package/dist/components/core/docs/utils/parseScssImport.d.ts +3 -0
- package/dist/components/core/hooks/useClickOutsideListner.test.d.ts +1 -0
- package/dist/components/core/hooks/useIntersectionObserver.test.d.ts +1 -0
- package/dist/components/core/hooks/useMutationObserver.test.d.ts +1 -0
- package/dist/components/core/utils/Mouse.test.d.ts +0 -0
- package/dist/components/core/utils/Touch.test.d.ts +0 -0
- package/dist/components/icons/HeartToggle.d.ts +4 -0
- package/dist/components/icons/Icons.d.ts +8 -0
- package/dist/components/list/CheckmarkListItem.d.ts +0 -1
- package/dist/components/list/CrossmarkListItem.d.ts +0 -1
- package/dist/components/list/List.d.ts +0 -1
- package/dist/components/list/List.test.d.ts +1 -0
- package/dist/components/list/ListItem.d.ts +0 -1
- package/dist/components/list/OrderedListItem.d.ts +0 -1
- package/dist/components/list/internal/getMarkColor.d.ts +1 -1
- package/dist/components/loader/Loader.test.d.ts +1 -0
- package/dist/components/loader/RawLoader.d.ts +0 -1
- package/dist/components/notificationDot/NotificationDot.d.ts +0 -1
- package/dist/components/notificationDot/NotificationDot.test.d.ts +0 -0
- package/dist/components/panel/Info.d.ts +0 -1
- package/dist/components/panel/Panel.d.ts +0 -1
- package/dist/components/panel/Panel.test.d.ts +0 -0
- package/dist/components/progress/CircularProgress.d.ts +0 -1
- package/dist/components/progress/CircularProgress.test.d.ts +0 -0
- package/dist/components/progress/Progress.d.ts +0 -1
- package/dist/components/progress/Progress.test.d.ts +0 -0
- package/dist/components/textfield/TextField.d.ts +0 -1
- package/dist/components/textfield/textfield.test.d.ts +0 -0
- package/dist/components/toggle/RadioToggle.d.ts +0 -3
- package/dist/components/toggle/RadioToggle.test.d.ts +0 -0
- package/dist/components/toggle/docs/Example.d.ts +2 -0
- package/dist/components/toggleButton/ToggleButton.d.ts +0 -1
- package/dist/components/toggleButton/ToggleButton.test.d.ts +1 -0
- package/dist/components/toggleInlineButton/ToggleInlineButton.d.ts +0 -1
- package/dist/components/toggleInlineButton/ToggleInlineButton.test.d.ts +1 -0
- package/dist/components/toggleLinkButton/ToggleLinkButton.d.ts +0 -1
- package/dist/components/toggleLinkButton/ToggleLinkButton.test.d.ts +1 -0
- package/dist/components/typography/Typography.d.ts +0 -1
- package/dist/components/typography/Typography.test.d.ts +0 -0
- package/package.json +3 -3
- package/dist/utils/generateId.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DecoratedButtonProps } from "./BaseDecoratedButton";
|
|
3
|
-
import "./button.scss";
|
|
4
|
-
import "./arrow-button.scss";
|
|
5
|
-
import "./button-shared.scss";
|
|
6
3
|
interface ArrowButtonProps extends Omit<DecoratedButtonProps, "arrow"> {
|
|
7
4
|
forwards?: boolean;
|
|
8
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonBackgroundStyles } from "./BaseButton";
|
|
3
|
-
import "./button.scss";
|
|
4
|
-
import "./button-shared.scss";
|
|
5
|
-
import "./link-button.scss";
|
|
6
|
-
import "./arrow-button.scss";
|
|
7
3
|
export type LinkButtonVariants = "primary" | "secondary" | "tertiary" | "highlighted";
|
|
8
4
|
interface BaseLinkButtonPropsWithElement<ElementProps> {
|
|
9
5
|
element: (props: ElementProps) => JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./BaseButton";
|
|
3
|
-
import "./button.scss";
|
|
4
|
-
import "./button-shared.scss";
|
|
5
3
|
export declare const PrimaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
4
|
export declare const SecondaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
5
|
export declare const TertiaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseDecoratedButtonProps } from "./BaseDecoratedButton";
|
|
3
|
-
import "./button.scss";
|
|
4
|
-
import "./button-shared.scss";
|
|
5
3
|
export declare const PrimaryDecoratedButton: import("react").ForwardRefExoticComponent<Omit<BaseDecoratedButtonProps, "buttonType"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
4
|
export declare const SecondaryDecoratedButton: import("react").ForwardRefExoticComponent<Omit<BaseDecoratedButtonProps, "buttonType"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
5
|
export declare const TertiaryDecoratedButton: import("react").ForwardRefExoticComponent<Omit<BaseDecoratedButtonProps, "buttonType"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getColor: (divElement: HTMLDivElement) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Mutation: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseColorsFromScss: (scssFile: string, brand: "strm" | "rtv") => string[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const parseScssImport: (scssFile: string, className?: string) => string[];
|
|
2
|
+
export declare const getCustomMediaQueries: (scssContents: string) => string[];
|
|
3
|
+
export declare const getMatchingProperties: (customProperties: string[], matcher: string) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactComponent as Play } from "./Play.svg";
|
|
2
|
+
import { ReactComponent as Pause } from "./Pause.svg";
|
|
3
|
+
import { ReactComponent as Heart } from "./HeartFilled.svg";
|
|
4
|
+
import { ReactComponent as HeartUnfilled } from "./HeartUnfilled.svg";
|
|
5
|
+
import { HeartToggle } from "./HeartToggle";
|
|
6
|
+
import { Chevron } from "./Chevron";
|
|
7
|
+
import { Arrow } from "./Arrow";
|
|
8
|
+
export { Arrow, Play, Pause, Chevron, HeartToggle, Heart, HeartUnfilled };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, HTMLAttributes } from "react";
|
|
2
|
-
import "./typography.scss";
|
|
3
2
|
type HeadingLevels = 1 | 2 | 3 | 4;
|
|
4
3
|
type AcceptedHTMLElements = HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement;
|
|
5
4
|
interface Props<T extends AcceptedHTMLElements> extends HTMLAttributes<T> {
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rikstv/shared-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"browser": "./dist/shared-components.mjs",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
|
-
"build": "
|
|
20
|
+
"build": "npm run typecheck && vite build",
|
|
21
21
|
"serve": "vite preview",
|
|
22
22
|
"test": "cypress run --component",
|
|
23
23
|
"test:open": "cypress open --component",
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"@types/react-dom": "^16.8.6 || ^17 || ^18",
|
|
34
34
|
"react": "^16.8.0 || ^17 || ^18"
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateId: (id?: string | undefined) => string;
|