plataforma-fundacao-componentes 2.26.3 → 2.26.5

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.
@@ -0,0 +1,11 @@
1
+ import { Placement } from '@floating-ui/react';
2
+ import React, { HTMLAttributes, ReactNode } from 'react';
3
+ import './TooltipElement.scss';
4
+ export interface iTooltip {
5
+ label?: ReactNode;
6
+ placement?: Placement;
7
+ fallbackPlacements?: Placement[];
8
+ children?: ReactNode;
9
+ wrapperProps?: HTMLAttributes<HTMLDivElement>;
10
+ }
11
+ export default function TooltipElement({ label, placement, fallbackPlacements, wrapperProps, children, }: iTooltip): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TooltipElement from './TooltipElement';
3
+ declare const meta: Meta<typeof TooltipElement>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof TooltipElement>;
6
+ export declare const Default: Story;
7
+ export declare const Element: Story;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties, HTMLAttributes } from 'react';
2
+ import './Typography.scss';
3
+ export interface TypographyProps extends HTMLAttributes<HTMLElement> {
4
+ variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'caption' | 'small';
5
+ focus?: boolean;
6
+ alignment?: CSSProperties['textAlign'];
7
+ color?: 'primary' | 'primary-dark' | 'secondary' | 'default';
8
+ format?: true | {
9
+ active: boolean;
10
+ replacers?: string[];
11
+ };
12
+ }
13
+ declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<HTMLElement>>;
14
+ export default Typography;
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import { TypographyProps } from './Typography';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<HTMLElement>>;
6
+ args: {};
7
+ argTypes: {
8
+ variant: {
9
+ control: string;
10
+ options: ("small" | "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined)[];
11
+ };
12
+ color: {
13
+ control: string;
14
+ options: ("default" | "primary" | "secondary" | "primary-dark" | undefined)[];
15
+ };
16
+ };
17
+ };
18
+ export default meta;
19
+ export declare const Default: {
20
+ args: {
21
+ variant: string;
22
+ color: string;
23
+ children: string;
24
+ focus: boolean;
25
+ format: boolean;
26
+ };
27
+ };
28
+ export declare const Formatted: {
29
+ args: {
30
+ variant: string;
31
+ color: string;
32
+ children: string;
33
+ focus: boolean;
34
+ format: {
35
+ active: boolean;
36
+ replacers: string[];
37
+ };
38
+ };
39
+ };