analytica-frontend-lib 1.0.77 → 1.0.78

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,210 @@
1
+ // src/components/Text/Text.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var Text = ({
4
+ children,
5
+ size = "md",
6
+ weight = "normal",
7
+ color = "text-text-950",
8
+ as,
9
+ className = "",
10
+ ...props
11
+ }) => {
12
+ let sizeClasses = "";
13
+ let weightClasses = "";
14
+ const sizeClassMap = {
15
+ "2xs": "text-2xs",
16
+ xs: "text-xs",
17
+ sm: "text-sm",
18
+ md: "text-md",
19
+ lg: "text-lg",
20
+ xl: "text-xl",
21
+ "2xl": "text-2xl",
22
+ "3xl": "text-3xl",
23
+ "4xl": "text-4xl",
24
+ "5xl": "text-5xl",
25
+ "6xl": "text-6xl"
26
+ };
27
+ sizeClasses = sizeClassMap[size] ?? sizeClassMap.md;
28
+ const weightClassMap = {
29
+ hairline: "font-hairline",
30
+ light: "font-light",
31
+ normal: "font-normal",
32
+ medium: "font-medium",
33
+ semibold: "font-semibold",
34
+ bold: "font-bold",
35
+ extrabold: "font-extrabold",
36
+ black: "font-black"
37
+ };
38
+ weightClasses = weightClassMap[weight] ?? weightClassMap.normal;
39
+ const baseClasses = "font-primary";
40
+ const Component = as ?? "p";
41
+ return /* @__PURE__ */ jsx(
42
+ Component,
43
+ {
44
+ className: `${baseClasses} ${sizeClasses} ${weightClasses} ${color} ${className}`,
45
+ ...props,
46
+ children
47
+ }
48
+ );
49
+ };
50
+ var Text_default = Text;
51
+
52
+ // src/components/Button/Button.tsx
53
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
54
+ var VARIANT_ACTION_CLASSES = {
55
+ solid: {
56
+ primary: "bg-primary-950 text-text border border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus-visible:outline-none focus-visible:bg-primary-950 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
57
+ positive: "bg-success-500 text-text border border-success-500 hover:bg-success-600 hover:border-success-600 focus-visible:outline-none focus-visible:bg-success-500 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed",
58
+ negative: "bg-error-500 text-text border border-error-500 hover:bg-error-600 hover:border-error-600 focus-visible:outline-none focus-visible:bg-error-500 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed"
59
+ },
60
+ outline: {
61
+ primary: "bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-primary-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
62
+ positive: "bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-success-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
63
+ negative: "bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-error-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
64
+ },
65
+ link: {
66
+ primary: "bg-transparent text-primary-950 hover:text-primary-400 focus-visible:outline-none focus-visible:text-primary-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
67
+ positive: "bg-transparent text-success-500 hover:text-success-400 focus-visible:outline-none focus-visible:text-success-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
68
+ negative: "bg-transparent text-error-500 hover:text-error-400 focus-visible:outline-none focus-visible:text-error-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
69
+ }
70
+ };
71
+ var SIZE_CLASSES = {
72
+ "extra-small": "text-xs px-3.5 py-2",
73
+ small: "text-sm px-4 py-2.5",
74
+ medium: "text-md px-5 py-2.5",
75
+ large: "text-lg px-6 py-3",
76
+ "extra-large": "text-lg px-7 py-3.5"
77
+ };
78
+ var Button = ({
79
+ children,
80
+ iconLeft,
81
+ iconRight,
82
+ size = "medium",
83
+ variant = "solid",
84
+ action = "primary",
85
+ className = "",
86
+ disabled,
87
+ type = "button",
88
+ ...props
89
+ }) => {
90
+ const sizeClasses = SIZE_CLASSES[size];
91
+ const variantClasses = VARIANT_ACTION_CLASSES[variant][action];
92
+ const baseClasses = "inline-flex items-center justify-center rounded-full cursor-pointer font-medium";
93
+ return /* @__PURE__ */ jsxs(
94
+ "button",
95
+ {
96
+ className: `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`,
97
+ disabled,
98
+ type,
99
+ ...props,
100
+ children: [
101
+ iconLeft && /* @__PURE__ */ jsx2("span", { className: "mr-2 flex items-center", children: iconLeft }),
102
+ children,
103
+ iconRight && /* @__PURE__ */ jsx2("span", { className: "ml-2 flex items-center", children: iconRight })
104
+ ]
105
+ }
106
+ );
107
+ };
108
+ var Button_default = Button;
109
+
110
+ // src/components/NotFound/NotFound.tsx
111
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
112
+ var NotFound = ({
113
+ title,
114
+ description,
115
+ buttonText = "Voltar",
116
+ onButtonClick,
117
+ className = "",
118
+ errorType = "404",
119
+ customErrorCode
120
+ }) => {
121
+ const getErrorCode = () => {
122
+ if (errorType === "custom") {
123
+ return customErrorCode?.trim() || "ERROR";
124
+ }
125
+ return errorType;
126
+ };
127
+ const getDefaultTitle = () => {
128
+ switch (errorType) {
129
+ case "404":
130
+ return "P\xE1gina n\xE3o encontrada";
131
+ case "500":
132
+ return "Erro interno do servidor";
133
+ default:
134
+ return "Erro";
135
+ }
136
+ };
137
+ const getDefaultDescription = () => {
138
+ switch (errorType) {
139
+ case "404":
140
+ return "Oops! A p\xE1gina que voc\xEA est\xE1 procurando n\xE3o existe ou foi removida.";
141
+ case "500":
142
+ return "Algo deu errado em nossos servidores. Tente novamente mais tarde.";
143
+ default:
144
+ return "Ocorreu um erro inesperado.";
145
+ }
146
+ };
147
+ const handleButtonClick = (event) => {
148
+ event.preventDefault();
149
+ onButtonClick?.();
150
+ };
151
+ const errorTitle = title || getDefaultTitle();
152
+ const errorDescription = description || getDefaultDescription();
153
+ const errorCode = getErrorCode();
154
+ return /* @__PURE__ */ jsx3(
155
+ "div",
156
+ {
157
+ className: `flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4 ${className}`,
158
+ children: /* @__PURE__ */ jsx3(
159
+ "main",
160
+ {
161
+ role: "main",
162
+ "aria-labelledby": "error-title",
163
+ "aria-describedby": "error-description",
164
+ className: "flex flex-col items-center text-center max-w-md space-y-6",
165
+ children: /* @__PURE__ */ jsxs2("section", { "aria-label": `Erro ${errorCode}`, children: [
166
+ /* @__PURE__ */ jsx3(
167
+ "div",
168
+ {
169
+ className: "text-8xl font-bold text-primary-300 select-none",
170
+ "aria-label": `C\xF3digo de erro: ${errorCode}`,
171
+ children: errorCode
172
+ }
173
+ ),
174
+ /* @__PURE__ */ jsxs2("header", { className: "space-y-2", children: [
175
+ /* @__PURE__ */ jsx3(
176
+ Text_default,
177
+ {
178
+ size: "xl",
179
+ weight: "bold",
180
+ className: "text-text-950",
181
+ id: "error-title",
182
+ "aria-level": 1,
183
+ children: errorTitle
184
+ }
185
+ ),
186
+ /* @__PURE__ */ jsx3(Text_default, { size: "md", className: "text-text-600", id: "error-description", children: errorDescription })
187
+ ] }),
188
+ onButtonClick && /* @__PURE__ */ jsx3("nav", { "aria-label": "Navega\xE7\xE3o de erro", children: /* @__PURE__ */ jsx3(
189
+ Button_default,
190
+ {
191
+ onClick: handleButtonClick,
192
+ variant: "solid",
193
+ size: "medium",
194
+ className: "mt-8",
195
+ "aria-describedby": "error-description",
196
+ "aria-label": `${buttonText}. ${errorDescription}`,
197
+ children: buttonText
198
+ }
199
+ ) })
200
+ ] })
201
+ }
202
+ )
203
+ }
204
+ );
205
+ };
206
+ var NotFound_default = NotFound;
207
+ export {
208
+ NotFound_default as default
209
+ };
210
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Text/Text.tsx","../../src/components/Button/Button.tsx","../../src/components/NotFound/NotFound.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';\n\n/**\n * Base text component props\n */\ntype BaseTextProps = {\n /** Content to be displayed */\n children?: ReactNode;\n /** Text size variant */\n size?:\n | '2xs'\n | 'xs'\n | 'sm'\n | 'md'\n | 'lg'\n | 'xl'\n | '2xl'\n | '3xl'\n | '4xl'\n | '5xl'\n | '6xl';\n /** Font weight variant */\n weight?:\n | 'hairline'\n | 'light'\n | 'normal'\n | 'medium'\n | 'semibold'\n | 'bold'\n | 'extrabold'\n | 'black';\n /** Color variant - white for light backgrounds, black for dark backgrounds */\n color?: string;\n /** Additional CSS classes to apply */\n className?: string;\n};\n\n/**\n * Polymorphic text component props that ensures type safety based on the 'as' prop\n */\ntype TextProps<T extends ElementType = 'p'> = BaseTextProps & {\n /** HTML tag to render */\n as?: T;\n} & Omit<ComponentPropsWithoutRef<T>, keyof BaseTextProps>;\n\n/**\n * Text component for Analytica Ensino platforms\n *\n * A flexible polymorphic text component with multiple sizes, weights, and colors.\n * Automatically adapts to dark and light themes with full type safety.\n *\n * @param children - The content to display\n * @param size - The text size variant (2xs, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl)\n * @param weight - The font weight variant (hairline, light, normal, medium, semibold, bold, extrabold, black)\n * @param color - The color variant - adapts to theme\n * @param as - The HTML tag to render - determines allowed attributes via TypeScript\n * @param className - Additional CSS classes\n * @param props - HTML attributes valid for the chosen tag only\n * @returns A styled text element with type-safe attributes\n *\n * @example\n * ```tsx\n * <Text size=\"lg\" weight=\"bold\" color=\"text-info-800\">\n * This is a large, bold text\n * </Text>\n *\n * <Text as=\"a\" href=\"/link\" target=\"_blank\">\n * Link with type-safe anchor attributes\n * </Text>\n *\n * <Text as=\"button\" onClick={handleClick} disabled>\n * Button with type-safe button attributes\n * </Text>\n * ```\n */\nconst Text = <T extends ElementType = 'p'>({\n children,\n size = 'md',\n weight = 'normal',\n color = 'text-text-950',\n as,\n className = '',\n ...props\n}: TextProps<T>) => {\n let sizeClasses = '';\n let weightClasses = '';\n\n // Text size classes mapping\n const sizeClassMap = {\n '2xs': 'text-2xs',\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-md',\n lg: 'text-lg',\n xl: 'text-xl',\n '2xl': 'text-2xl',\n '3xl': 'text-3xl',\n '4xl': 'text-4xl',\n '5xl': 'text-5xl',\n '6xl': 'text-6xl',\n } as const;\n\n sizeClasses = sizeClassMap[size] ?? sizeClassMap.md;\n\n // Font weight classes mapping\n const weightClassMap = {\n hairline: 'font-hairline',\n light: 'font-light',\n normal: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n extrabold: 'font-extrabold',\n black: 'font-black',\n } as const;\n\n weightClasses = weightClassMap[weight] ?? weightClassMap.normal;\n\n const baseClasses = 'font-primary';\n const Component = as ?? ('p' as ElementType);\n\n return (\n <Component\n className={`${baseClasses} ${sizeClasses} ${weightClasses} ${color} ${className}`}\n {...props}\n >\n {children}\n </Component>\n );\n};\n\nexport default Text;\n","import { ButtonHTMLAttributes, ReactNode } from 'react';\n\n/**\n * Lookup table for variant and action class combinations\n */\nconst VARIANT_ACTION_CLASSES = {\n solid: {\n primary:\n 'bg-primary-950 text-text border border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus-visible:outline-none focus-visible:bg-primary-950 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed',\n positive:\n 'bg-success-500 text-text border border-success-500 hover:bg-success-600 hover:border-success-600 focus-visible:outline-none focus-visible:bg-success-500 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed',\n negative:\n 'bg-error-500 text-text border border-error-500 hover:bg-error-600 hover:border-error-600 focus-visible:outline-none focus-visible:bg-error-500 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed',\n },\n outline: {\n primary:\n 'bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-primary-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed',\n positive:\n 'bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-success-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed',\n negative:\n 'bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus-visible:border-0 focus-visible:outline-none focus-visible:text-error-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed',\n },\n link: {\n primary:\n 'bg-transparent text-primary-950 hover:text-primary-400 focus-visible:outline-none focus-visible:text-primary-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed',\n positive:\n 'bg-transparent text-success-500 hover:text-success-400 focus-visible:outline-none focus-visible:text-success-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed',\n negative:\n 'bg-transparent text-error-500 hover:text-error-400 focus-visible:outline-none focus-visible:text-error-600 focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed',\n },\n} as const;\n\n/**\n * Lookup table for size classes\n */\nconst SIZE_CLASSES = {\n 'extra-small': 'text-xs px-3.5 py-2',\n small: 'text-sm px-4 py-2.5',\n medium: 'text-md px-5 py-2.5',\n large: 'text-lg px-6 py-3',\n 'extra-large': 'text-lg px-7 py-3.5',\n} as const;\n\n/**\n * Button component props interface\n */\ntype ButtonProps = {\n /** Content to be displayed inside the button */\n children: ReactNode;\n /** Ícone à esquerda do texto */\n iconLeft?: ReactNode;\n /** Ícone à direita do texto */\n iconRight?: ReactNode;\n /** Size of the button */\n size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';\n /** Visual variant of the button */\n variant?: 'solid' | 'outline' | 'link';\n /** Action type of the button */\n action?: 'primary' | 'positive' | 'negative';\n /** Additional CSS classes to apply */\n className?: string;\n} & ButtonHTMLAttributes<HTMLButtonElement>;\n\n/**\n * Button component for Analytica Ensino platforms\n *\n * A flexible button component with multiple variants, sizes and actions.\n *\n * @param children - The content to display inside the button\n * @param size - The size variant (extra-small, small, medium, large, extra-large)\n * @param variant - The visual style variant (solid, outline, link)\n * @param action - The action type (primary, positive, negative)\n * @param className - Additional CSS classes\n * @param props - All other standard button HTML attributes\n * @returns A styled button element\n *\n * @example\n * ```tsx\n * <Button variant=\"solid\" action=\"primary\" size=\"medium\" onClick={() => console.log('clicked')}>\n * Click me\n * </Button>\n * ```\n */\nconst Button = ({\n children,\n iconLeft,\n iconRight,\n size = 'medium',\n variant = 'solid',\n action = 'primary',\n className = '',\n disabled,\n type = 'button',\n ...props\n}: ButtonProps) => {\n // Get classes from lookup tables\n const sizeClasses = SIZE_CLASSES[size];\n const variantClasses = VARIANT_ACTION_CLASSES[variant][action];\n\n const baseClasses =\n 'inline-flex items-center justify-center rounded-full cursor-pointer font-medium';\n\n return (\n <button\n className={`${baseClasses} ${variantClasses} ${sizeClasses} ${className}`}\n disabled={disabled}\n type={type}\n {...props}\n >\n {iconLeft && <span className=\"mr-2 flex items-center\">{iconLeft}</span>}\n {children}\n {iconRight && <span className=\"ml-2 flex items-center\">{iconRight}</span>}\n </button>\n );\n};\n\nexport default Button;\n","import { MouseEvent } from 'react';\nimport Text from '../Text/Text';\nimport Button from '../Button/Button';\n\n/**\n * Props interface for the NotFound component\n *\n * @interface NotFoundProps\n * @property {string} [title] - Custom title text (default: \"Página não encontrada\")\n * @property {string} [description] - Custom description text\n * @property {string} [buttonText] - Custom button text (default: \"Voltar\")\n * @property {() => void} [onButtonClick] - Callback function for button click\n * @property {string} [className] - Additional CSS classes for the container\n * @property {'404' | '500' | 'custom'} [errorType] - Type of error to display (default: '404')\n * @property {string} [customErrorCode] - Custom error code when errorType is 'custom'\n */\nexport interface NotFoundProps {\n title?: string;\n description?: string;\n buttonText?: string;\n onButtonClick?: () => void;\n className?: string;\n errorType?: '404' | '500' | 'custom';\n customErrorCode?: string;\n}\n\n/**\n * NotFound component for displaying error pages\n *\n * A reusable component for displaying 404, 500, or custom error pages\n * with configurable content and navigation button.\n *\n * @param {NotFoundProps} props - The component props\n * @returns {JSX.Element} The NotFound component\n *\n * @example\n * ```typescript\n * // Basic 404 page\n * <NotFound onButtonClick={() => navigate('/dashboard')} />\n *\n * // Custom error page\n * <NotFound\n * errorType=\"500\"\n * title=\"Erro interno do servidor\"\n * description=\"Algo deu errado. Tente novamente mais tarde.\"\n * buttonText=\"Tentar novamente\"\n * onButtonClick={() => window.location.reload()}\n * />\n *\n * // Custom error code\n * <NotFound\n * errorType=\"custom\"\n * customErrorCode=\"403\"\n * title=\"Acesso negado\"\n * description=\"Você não tem permissão para acessar esta página.\"\n * />\n * ```\n */\nconst NotFound = ({\n title,\n description,\n buttonText = 'Voltar',\n onButtonClick,\n className = '',\n errorType = '404',\n customErrorCode,\n}: NotFoundProps) => {\n const getErrorCode = () => {\n if (errorType === 'custom') {\n return customErrorCode?.trim() || 'ERROR';\n }\n return errorType;\n };\n\n const getDefaultTitle = () => {\n switch (errorType) {\n case '404':\n return 'Página não encontrada';\n case '500':\n return 'Erro interno do servidor';\n default:\n return 'Erro';\n }\n };\n\n const getDefaultDescription = () => {\n switch (errorType) {\n case '404':\n return 'Oops! A página que você está procurando não existe ou foi removida.';\n case '500':\n return 'Algo deu errado em nossos servidores. Tente novamente mais tarde.';\n default:\n return 'Ocorreu um erro inesperado.';\n }\n };\n\n const handleButtonClick = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n onButtonClick?.();\n };\n\n const errorTitle = title || getDefaultTitle();\n const errorDescription = description || getDefaultDescription();\n const errorCode = getErrorCode();\n\n return (\n <div\n className={`flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4 ${className}`}\n >\n <main\n role=\"main\"\n aria-labelledby=\"error-title\"\n aria-describedby=\"error-description\"\n className=\"flex flex-col items-center text-center max-w-md space-y-6\"\n >\n <section aria-label={`Erro ${errorCode}`}>\n {/* Error Code */}\n <div\n className=\"text-8xl font-bold text-primary-300 select-none\"\n aria-label={`Código de erro: ${errorCode}`}\n >\n {errorCode}\n </div>\n\n {/* Main message */}\n <header className=\"space-y-2\">\n <Text\n size=\"xl\"\n weight=\"bold\"\n className=\"text-text-950\"\n id=\"error-title\"\n aria-level={1}\n >\n {errorTitle}\n </Text>\n <Text size=\"md\" className=\"text-text-600\" id=\"error-description\">\n {errorDescription}\n </Text>\n </header>\n\n {/* Back button */}\n {onButtonClick && (\n <nav aria-label=\"Navegação de erro\">\n <Button\n onClick={handleButtonClick}\n variant=\"solid\"\n size=\"medium\"\n className=\"mt-8\"\n aria-describedby=\"error-description\"\n aria-label={`${buttonText}. ${errorDescription}`}\n >\n {buttonText}\n </Button>\n </nav>\n )}\n </section>\n </main>\n </div>\n );\n};\n\nexport default NotFound;\n"],"mappings":";AA0HI;AA/CJ,IAAM,OAAO,CAA8B;AAAA,EACzC;AAAA,EACA,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,EACR;AAAA,EACA,YAAY;AAAA,EACZ,GAAG;AACL,MAAoB;AAClB,MAAI,cAAc;AAClB,MAAI,gBAAgB;AAGpB,QAAM,eAAe;AAAA,IACnB,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AAEA,gBAAc,aAAa,IAAI,KAAK,aAAa;AAGjD,QAAM,iBAAiB;AAAA,IACrB,UAAU;AAAA,IACV,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,EACT;AAEA,kBAAgB,eAAe,MAAM,KAAK,eAAe;AAEzD,QAAM,cAAc;AACpB,QAAM,YAAY,MAAO;AAEzB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,WAAW,IAAI,WAAW,IAAI,aAAa,IAAI,KAAK,IAAI,SAAS;AAAA,MA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;AAAA,YAGC,iBACC,gBAAAA,KAAC,SAAI,cAAW,2BACd,0BAAAA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS;AAAA,gBACT,SAAQ;AAAA,gBACR,MAAK;AAAA,gBACL,WAAU;AAAA,gBACV,oBAAiB;AAAA,gBACjB,cAAY,GAAG,UAAU,KAAK,gBAAgB;AAAA,gBAE7C;AAAA;AAAA,YACH,GACF;AAAA,aAEJ;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,mBAAQ;","names":["jsx","jsx","jsxs"]}
package/dist/index.css CHANGED
@@ -82,6 +82,8 @@
82
82
  --text-5xl--line-height: 1;
83
83
  --text-6xl: 3.75rem;
84
84
  --text-6xl--line-height: 1;
85
+ --text-8xl: 6rem;
86
+ --text-8xl--line-height: 1;
85
87
  --font-weight-light: 300;
86
88
  --font-weight-normal: 400;
87
89
  --font-weight-medium: 500;
@@ -817,6 +819,9 @@
817
819
  .h-px {
818
820
  height: 1px;
819
821
  }
822
+ .h-screen {
823
+ height: 100vh;
824
+ }
820
825
  .max-h-0 {
821
826
  max-height: calc(var(--spacing) * 0);
822
827
  }
@@ -2350,6 +2355,18 @@
2350
2355
  .bg-yellow-500 {
2351
2356
  background-color: var(--color-yellow-500);
2352
2357
  }
2358
+ .bg-gradient-to-br {
2359
+ --tw-gradient-position: to bottom right in oklab;
2360
+ background-image: linear-gradient(var(--tw-gradient-stops));
2361
+ }
2362
+ .from-primary-50 {
2363
+ --tw-gradient-from: var(--color-primary-50);
2364
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2365
+ }
2366
+ .to-primary-100 {
2367
+ --tw-gradient-to: var(--color-primary-100);
2368
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
2369
+ }
2353
2370
  .stroke-background-300 {
2354
2371
  stroke: var(--color-background-300);
2355
2372
  }
@@ -2512,6 +2529,10 @@
2512
2529
  font-size: var(--text-6xl);
2513
2530
  line-height: var(--tw-leading, var(--text-6xl--line-height));
2514
2531
  }
2532
+ .text-8xl {
2533
+ font-size: var(--text-8xl);
2534
+ line-height: var(--tw-leading, var(--text-8xl--line-height));
2535
+ }
2515
2536
  .text-base {
2516
2537
  font-size: var(--text-base);
2517
2538
  line-height: var(--tw-leading, var(--text-base--line-height));
@@ -8370,6 +8391,15 @@
8370
8391
  @property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
8371
8392
  @property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
8372
8393
  @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
8394
+ @property --tw-gradient-position { syntax: "*"; inherits: false; }
8395
+ @property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }
8396
+ @property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }
8397
+ @property --tw-gradient-to { syntax: "<color>"; inherits: false; initial-value: #0000; }
8398
+ @property --tw-gradient-stops { syntax: "*"; inherits: false; }
8399
+ @property --tw-gradient-via-stops { syntax: "*"; inherits: false; }
8400
+ @property --tw-gradient-from-position { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }
8401
+ @property --tw-gradient-via-position { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
8402
+ @property --tw-gradient-to-position { syntax: "<length-percentage>"; inherits: false; initial-value: 100%; }
8373
8403
  @property --tw-leading { syntax: "*"; inherits: false; }
8374
8404
  @property --tw-font-weight { syntax: "*"; inherits: false; }
8375
8405
  @property --tw-tracking { syntax: "*"; inherits: false; }
@@ -8434,6 +8464,15 @@
8434
8464
  --tw-space-y-reverse: 0;
8435
8465
  --tw-space-x-reverse: 0;
8436
8466
  --tw-border-style: solid;
8467
+ --tw-gradient-position: initial;
8468
+ --tw-gradient-from: #0000;
8469
+ --tw-gradient-via: #0000;
8470
+ --tw-gradient-to: #0000;
8471
+ --tw-gradient-stops: initial;
8472
+ --tw-gradient-via-stops: initial;
8473
+ --tw-gradient-from-position: 0%;
8474
+ --tw-gradient-via-position: 50%;
8475
+ --tw-gradient-to-position: 100%;
8437
8476
  --tw-leading: initial;
8438
8477
  --tw-font-weight: initial;
8439
8478
  --tw-tracking: initial;