@nuskin/marketing-components 1.16.0 → 1.17.0
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.
|
@@ -2,8 +2,9 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import CsText from '../text/CsText';
|
|
3
3
|
import type { ComponentProps } from 'react';
|
|
4
4
|
type CsTextProps = ComponentProps<typeof CsText>;
|
|
5
|
-
interface RichTextProps extends Omit<CsTextProps, 'text_editor'> {
|
|
5
|
+
interface RichTextProps extends Omit<CsTextProps, 'text_editor' | 'font_color'> {
|
|
6
6
|
text_editor: string;
|
|
7
|
+
font_color?: 'Light' | 'Dark';
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* RichText Component
|
|
@@ -22,5 +23,5 @@ interface RichTextProps extends Omit<CsTextProps, 'text_editor'> {
|
|
|
22
23
|
* @param props - CsText component props with sanitizable text_editor content
|
|
23
24
|
* @returns Rendered component with sanitized content
|
|
24
25
|
*/
|
|
25
|
-
declare const RichText: ({ text_editor, ...restProps }: RichTextProps) => ReactElement | null;
|
|
26
|
+
declare const RichText: ({ text_editor, font_color, ...restProps }: RichTextProps) => ReactElement | null;
|
|
26
27
|
export default RichText;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import
|
|
2
|
+
import RichText from './RichText';
|
|
3
3
|
import 'react-quill/dist/quill.snow.css';
|
|
4
|
-
declare const meta: Meta<typeof
|
|
4
|
+
declare const meta: Meta<typeof RichText>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof
|
|
6
|
+
type Story = StoryObj<typeof RichText>;
|
|
7
7
|
export declare const CMSForm: Story;
|
|
8
8
|
export declare const Sandbox: Story;
|
package/package.json
CHANGED