@gustavo-valsechi/client 1.3.25 → 1.3.26
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/index.d.mts +10 -0
- package/dist/components/index.d.ts +10 -3
- package/dist/components/{types/index.mjs → index.js} +404 -379
- package/dist/components/index.mjs +0 -1
- package/dist/contexts/index.d.mts +20 -0
- package/dist/contexts/index.d.ts +20 -4
- package/dist/contexts/index.js +524 -0
- package/dist/contexts/index.mjs +0 -1
- package/dist/index-BhaGW0O1.d.ts +601 -0
- package/dist/index-BxA8LyyD.d.mts +68 -0
- package/dist/index-DDi0w5pw.d.mts +601 -0
- package/dist/index-DT7VKE7H.d.ts +68 -0
- package/dist/index-Da-DtPS-.d.mts +29 -0
- package/dist/index-Da-DtPS-.d.ts +29 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -4
- package/dist/{components/types/table/index.mjs → index.js} +1476 -1211
- package/dist/index.mjs +0 -1
- package/dist/interfaces/index.d.mts +12 -0
- package/dist/interfaces/index.d.ts +12 -2
- package/dist/interfaces/index.js +18 -0
- package/dist/interfaces/index.mjs +0 -1
- package/package.json +6 -8
- package/dist/components/styles.d.ts +0 -2
- package/dist/components/styles.mjs +0 -21
- package/dist/components/types/avatar/index.d.ts +0 -2
- package/dist/components/types/avatar/index.mjs +0 -88
- package/dist/components/types/avatar/styles.d.ts +0 -1
- package/dist/components/types/avatar/styles.mjs +0 -61
- package/dist/components/types/badge/index.d.ts +0 -2
- package/dist/components/types/badge/index.mjs +0 -324
- package/dist/components/types/badge/styles.d.ts +0 -1
- package/dist/components/types/badge/styles.mjs +0 -39
- package/dist/components/types/block/index.d.ts +0 -2
- package/dist/components/types/block/index.mjs +0 -3078
- package/dist/components/types/block/styles.d.ts +0 -2
- package/dist/components/types/block/styles.mjs +0 -32
- package/dist/components/types/chart/index.d.ts +0 -2
- package/dist/components/types/chart/index.mjs +0 -322
- package/dist/components/types/chart/styles.d.ts +0 -1
- package/dist/components/types/chart/styles.mjs +0 -10
- package/dist/components/types/credit-card/assets/index.d.ts +0 -4
- package/dist/components/types/credit-card/assets/index.mjs +0 -23
- package/dist/components/types/credit-card/card/index.d.ts +0 -2
- package/dist/components/types/credit-card/card/index.mjs +0 -732
- package/dist/components/types/credit-card/card/styles.d.ts +0 -1
- package/dist/components/types/credit-card/card/styles.mjs +0 -138
- package/dist/components/types/credit-card/functions/index.d.ts +0 -2
- package/dist/components/types/credit-card/functions/index.mjs +0 -61
- package/dist/components/types/credit-card/functions/styles.d.ts +0 -1
- package/dist/components/types/credit-card/functions/styles.mjs +0 -43
- package/dist/components/types/credit-card/index.d.ts +0 -2
- package/dist/components/types/credit-card/index.mjs +0 -853
- package/dist/components/types/credit-card/styles.d.ts +0 -1
- package/dist/components/types/credit-card/styles.mjs +0 -40
- package/dist/components/types/credit-card/tools/index.d.ts +0 -6
- package/dist/components/types/credit-card/tools/index.mjs +0 -566
- package/dist/components/types/form/index.d.ts +0 -3
- package/dist/components/types/form/index.mjs +0 -711
- package/dist/components/types/form/styles.d.ts +0 -1
- package/dist/components/types/form/styles.mjs +0 -21
- package/dist/components/types/form/types/button/index.d.ts +0 -2
- package/dist/components/types/form/types/button/index.mjs +0 -165
- package/dist/components/types/form/types/button/loading/index.d.ts +0 -1
- package/dist/components/types/form/types/button/loading/index.mjs +0 -104
- package/dist/components/types/form/types/button/loading/styles.d.ts +0 -1
- package/dist/components/types/form/types/button/loading/styles.mjs +0 -94
- package/dist/components/types/form/types/button/styles.d.ts +0 -1
- package/dist/components/types/form/types/button/styles.mjs +0 -47
- package/dist/components/types/form/types/datetime/index.d.ts +0 -2
- package/dist/components/types/form/types/datetime/index.mjs +0 -93
- package/dist/components/types/form/types/datetime/styles.d.ts +0 -1
- package/dist/components/types/form/types/datetime/styles.mjs +0 -46
- package/dist/components/types/form/types/file/index.d.ts +0 -2
- package/dist/components/types/form/types/file/index.mjs +0 -91
- package/dist/components/types/form/types/file/styles.d.ts +0 -1
- package/dist/components/types/form/types/file/styles.mjs +0 -33
- package/dist/components/types/form/types/index.d.ts +0 -7
- package/dist/components/types/form/types/index.mjs +0 -603
- package/dist/components/types/form/types/input/index.d.ts +0 -2
- package/dist/components/types/form/types/input/index.mjs +0 -113
- package/dist/components/types/form/types/input/styles.d.ts +0 -1
- package/dist/components/types/form/types/input/styles.mjs +0 -52
- package/dist/components/types/form/types/label/index.d.ts +0 -2
- package/dist/components/types/form/types/label/index.mjs +0 -19
- package/dist/components/types/form/types/label/styles.d.ts +0 -1
- package/dist/components/types/form/types/label/styles.mjs +0 -13
- package/dist/components/types/form/types/select/index.d.ts +0 -2
- package/dist/components/types/form/types/select/index.mjs +0 -125
- package/dist/components/types/form/types/select/styles.d.ts +0 -1
- package/dist/components/types/form/types/select/styles.mjs +0 -58
- package/dist/components/types/form/types/textarea/index.d.ts +0 -2
- package/dist/components/types/form/types/textarea/index.mjs +0 -92
- package/dist/components/types/form/types/textarea/styles.d.ts +0 -1
- package/dist/components/types/form/types/textarea/styles.mjs +0 -45
- package/dist/components/types/index.d.ts +0 -11
- package/dist/components/types/loading/app/index.d.ts +0 -2
- package/dist/components/types/loading/app/index.mjs +0 -128
- package/dist/components/types/loading/app/styles.d.ts +0 -1
- package/dist/components/types/loading/app/styles.mjs +0 -93
- package/dist/components/types/loading/bar/index.d.ts +0 -2
- package/dist/components/types/loading/bar/index.mjs +0 -33
- package/dist/components/types/loading/bar/styles.d.ts +0 -1
- package/dist/components/types/loading/bar/styles.mjs +0 -27
- package/dist/components/types/loading/index.d.ts +0 -2
- package/dist/components/types/loading/index.mjs +0 -156
- package/dist/components/types/logo/index.d.ts +0 -2
- package/dist/components/types/logo/index.mjs +0 -34
- package/dist/components/types/logo/styles.d.ts +0 -1
- package/dist/components/types/logo/styles.mjs +0 -25
- package/dist/components/types/lottie/animations/index.d.ts +0 -293
- package/dist/components/types/lottie/animations/index.mjs +0 -10
- package/dist/components/types/lottie/index.d.ts +0 -2
- package/dist/components/types/lottie/index.mjs +0 -69
- package/dist/components/types/lottie/styles.d.ts +0 -1
- package/dist/components/types/lottie/styles.mjs +0 -28
- package/dist/components/types/modal/index.d.ts +0 -2
- package/dist/components/types/modal/index.mjs +0 -2324
- package/dist/components/types/modal/styles.d.ts +0 -1
- package/dist/components/types/modal/styles.mjs +0 -135
- package/dist/components/types/table/index.d.ts +0 -3
- package/dist/components/types/table/modal/actions.d.ts +0 -10
- package/dist/components/types/table/modal/actions.mjs +0 -87
- package/dist/components/types/table/modal/index.d.ts +0 -2
- package/dist/components/types/table/modal/index.mjs +0 -3076
- package/dist/components/types/table/modal/styles.d.ts +0 -1
- package/dist/components/types/table/modal/styles.mjs +0 -58
- package/dist/components/types/table/paginate/index.d.ts +0 -2
- package/dist/components/types/table/paginate/index.mjs +0 -96
- package/dist/components/types/table/paginate/styles.d.ts +0 -1
- package/dist/components/types/table/paginate/styles.mjs +0 -42
- package/dist/components/types/table/styles.d.ts +0 -5
- package/dist/components/types/table/styles.mjs +0 -268
- package/dist/contexts/icon/assets/brands/index.d.ts +0 -2
- package/dist/contexts/icon/assets/brands/index.mjs +0 -19
- package/dist/contexts/icon/assets/index.d.ts +0 -6
- package/dist/contexts/icon/assets/index.mjs +0 -44
- package/dist/contexts/icon/assets/regular/index.d.ts +0 -2
- package/dist/contexts/icon/assets/regular/index.mjs +0 -19
- package/dist/contexts/icon/assets/solid/index.d.ts +0 -2
- package/dist/contexts/icon/assets/solid/index.mjs +0 -19
- package/dist/contexts/icon/index.d.ts +0 -4
- package/dist/contexts/icon/index.mjs +0 -281
- package/dist/contexts/icon/styles.d.ts +0 -1
- package/dist/contexts/icon/styles.mjs +0 -10
- package/dist/contexts/modal/index.d.ts +0 -4
- package/dist/contexts/modal/index.mjs +0 -66
- package/dist/contexts/modal/styles.d.ts +0 -1
- package/dist/contexts/modal/styles.mjs +0 -10
- package/dist/contexts/theme/content.d.ts +0 -3
- package/dist/contexts/theme/content.mjs +0 -81
- package/dist/contexts/theme/index.d.ts +0 -4
- package/dist/contexts/theme/index.mjs +0 -201
- package/dist/contexts/theme/styles.d.ts +0 -1
- package/dist/contexts/theme/styles.mjs +0 -84
- package/dist/contexts/tooltip/index.d.ts +0 -6
- package/dist/contexts/tooltip/index.mjs +0 -117
- package/dist/contexts/tooltip/styles.d.ts +0 -1
- package/dist/contexts/tooltip/styles.mjs +0 -46
- package/dist/interfaces/components/avatar/index.d.ts +0 -6
- package/dist/interfaces/components/avatar/index.mjs +0 -1
- package/dist/interfaces/components/badge/index.d.ts +0 -3
- package/dist/interfaces/components/badge/index.mjs +0 -1
- package/dist/interfaces/components/block/index.d.ts +0 -16
- package/dist/interfaces/components/block/index.mjs +0 -1
- package/dist/interfaces/components/chart/index.d.ts +0 -9
- package/dist/interfaces/components/chart/index.mjs +0 -1
- package/dist/interfaces/components/credit-card/index.d.ts +0 -16
- package/dist/interfaces/components/credit-card/index.mjs +0 -1
- package/dist/interfaces/components/form/button/index.d.ts +0 -7
- package/dist/interfaces/components/form/button/index.mjs +0 -1
- package/dist/interfaces/components/form/datetime/index.d.ts +0 -15
- package/dist/interfaces/components/form/datetime/index.mjs +0 -1
- package/dist/interfaces/components/form/file/index.d.ts +0 -14
- package/dist/interfaces/components/form/file/index.mjs +0 -1
- package/dist/interfaces/components/form/index.d.ts +0 -16
- package/dist/interfaces/components/form/index.mjs +0 -1
- package/dist/interfaces/components/form/input/index.d.ts +0 -17
- package/dist/interfaces/components/form/input/index.mjs +0 -1
- package/dist/interfaces/components/form/label/index.d.ts +0 -5
- package/dist/interfaces/components/form/label/index.mjs +0 -1
- package/dist/interfaces/components/form/select/index.d.ts +0 -14
- package/dist/interfaces/components/form/select/index.mjs +0 -1
- package/dist/interfaces/components/form/textarea/index.d.ts +0 -16
- package/dist/interfaces/components/form/textarea/index.mjs +0 -1
- package/dist/interfaces/components/index.d.ts +0 -26
- package/dist/interfaces/components/index.mjs +0 -1
- package/dist/interfaces/components/loading/app/index.d.ts +0 -3
- package/dist/interfaces/components/loading/app/index.mjs +0 -1
- package/dist/interfaces/components/loading/bar/index.d.ts +0 -7
- package/dist/interfaces/components/loading/bar/index.mjs +0 -1
- package/dist/interfaces/components/loading/index.d.ts +0 -2
- package/dist/interfaces/components/loading/index.mjs +0 -1
- package/dist/interfaces/components/logo/index.d.ts +0 -6
- package/dist/interfaces/components/logo/index.mjs +0 -1
- package/dist/interfaces/components/lottie/index.d.ts +0 -12
- package/dist/interfaces/components/lottie/index.mjs +0 -1
- package/dist/interfaces/components/modal/index.d.ts +0 -16
- package/dist/interfaces/components/modal/index.mjs +0 -1
- package/dist/interfaces/components/table/index.d.ts +0 -46
- package/dist/interfaces/components/table/index.mjs +0 -1
- package/dist/interfaces/components/table/paginate/index.d.ts +0 -7
- package/dist/interfaces/components/table/paginate/index.mjs +0 -1
- package/dist/interfaces/contexts/icon/index.d.ts +0 -3
- package/dist/interfaces/contexts/icon/index.mjs +0 -1
- package/dist/interfaces/contexts/index.d.ts +0 -8
- package/dist/interfaces/contexts/index.mjs +0 -1
- package/dist/interfaces/contexts/modal/index.d.ts +0 -16
- package/dist/interfaces/contexts/modal/index.mjs +0 -2
- package/dist/interfaces/contexts/theme/index.d.ts +0 -42
- package/dist/interfaces/contexts/theme/index.mjs +0 -1
- package/dist/interfaces/contexts/tooltip/index.d.ts +0 -3
- package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
- package/dist/styled.d.ts +0 -6
- package/dist/tsup.config.d.ts +0 -2
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { N as IAvatar, x as IBadge, R as IBlock, M as IChart, p as IComponent, n as IComponentConfig, m as IComponentConfigMap, o as IComponentContent, l as IComponentMap, Q as ICreditCard, z as IForm, J as IInputDateTime, D as IInputFile, E as IInputLabel, H as IInputSelect, G as IInputText, K as IInputTextarea, w as ILoadingApp, v as ILoadingBar, y as ILogo, O as ILottie, u as IPaginate, t as ITable, q as ITableAction, r as ITableColumn, s as ITableRow } from '../index-DDi0w5pw.mjs';
|
|
2
|
+
import { a as IBaseProvider } from '../index-BxA8LyyD.mjs';
|
|
3
|
+
export { d as ICommonTheme, b as IIconProvider, h as IModalConfig, i as IModalContext, g as IModalProvider, e as ITheme, I as IThemeContent, f as IThemeContext, c as IThemeProvider } from '../index-BxA8LyyD.mjs';
|
|
4
|
+
export { a as IButton, I as IModal } from '../index-Da-DtPS-.mjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
7
|
+
import 'react-hook-form';
|
|
8
|
+
|
|
9
|
+
interface ITooltipProvider extends IBaseProvider {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { IBaseProvider, type ITooltipProvider };
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export { N as IAvatar, x as IBadge, R as IBlock, M as IChart, p as IComponent, n as IComponentConfig, m as IComponentConfigMap, o as IComponentContent, l as IComponentMap, Q as ICreditCard, z as IForm, J as IInputDateTime, D as IInputFile, E as IInputLabel, H as IInputSelect, G as IInputText, K as IInputTextarea, w as ILoadingApp, v as ILoadingBar, y as ILogo, O as ILottie, u as IPaginate, t as ITable, q as ITableAction, r as ITableColumn, s as ITableRow } from '../index-BhaGW0O1.js';
|
|
2
|
+
import { a as IBaseProvider } from '../index-DT7VKE7H.js';
|
|
3
|
+
export { d as ICommonTheme, b as IIconProvider, h as IModalConfig, i as IModalContext, g as IModalProvider, e as ITheme, I as IThemeContent, f as IThemeContext, c as IThemeProvider } from '../index-DT7VKE7H.js';
|
|
4
|
+
export { a as IButton, I as IModal } from '../index-Da-DtPS-.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
7
|
+
import 'react-hook-form';
|
|
8
|
+
|
|
9
|
+
interface ITooltipProvider extends IBaseProvider {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { IBaseProvider, type ITooltipProvider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// interfaces/index.tsx
|
|
17
|
+
var interfaces_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(interfaces_exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavo-valsechi/client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.26",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"clean": "rimraf dist && rimraf node_modules/.cache",
|
|
13
|
-
"build
|
|
14
|
-
"build:js": "tsup",
|
|
15
|
-
"build": "npm run clean && npm run build:js && npm run build:types"
|
|
13
|
+
"build": "npm run clean && tsup"
|
|
16
14
|
},
|
|
17
15
|
"peerDependencies": {
|
|
18
16
|
"react": "18.3.1",
|
|
@@ -56,19 +54,19 @@
|
|
|
56
54
|
},
|
|
57
55
|
"exports": {
|
|
58
56
|
".": {
|
|
59
|
-
"import": "./dist/index.
|
|
57
|
+
"import": "./dist/index.js",
|
|
60
58
|
"types": "./dist/index.d.ts"
|
|
61
59
|
},
|
|
62
60
|
"./components": {
|
|
63
|
-
"import": "./dist/components/index.
|
|
61
|
+
"import": "./dist/components/index.js",
|
|
64
62
|
"types": "./dist/components/index.d.ts"
|
|
65
63
|
},
|
|
66
64
|
"./contexts": {
|
|
67
|
-
"import": "./dist/contexts/index.
|
|
65
|
+
"import": "./dist/contexts/index.js",
|
|
68
66
|
"types": "./dist/contexts/index.d.ts"
|
|
69
67
|
},
|
|
70
68
|
"./interfaces": {
|
|
71
|
-
"import": "./dist/interfaces/index.
|
|
69
|
+
"import": "./dist/interfaces/index.js",
|
|
72
70
|
"types": "./dist/interfaces/index.d.ts"
|
|
73
71
|
}
|
|
74
72
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const RowContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
gap: 1rem;
|
|
10
|
-
`;
|
|
11
|
-
var RowContainer = styled.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
align-items: stretch;
|
|
15
|
-
gap: 1rem;
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
`;
|
|
18
|
-
export {
|
|
19
|
-
Container,
|
|
20
|
-
RowContainer
|
|
21
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/avatar/index.tsx
|
|
5
|
-
import { useRef, useState } from "react";
|
|
6
|
-
|
|
7
|
-
// components/types/avatar/styles.tsx
|
|
8
|
-
import styled from "styled-components";
|
|
9
|
-
var Container = styled.div`
|
|
10
|
-
width: ${({ size }) => size || "2.3rem"};
|
|
11
|
-
height: ${({ size }) => size || "2.3rem"};
|
|
12
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
13
|
-
border: 2px solid ${({ theme }) => theme.t1};
|
|
14
|
-
background: ${({ color }) => color};
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
19
|
-
transition: ease .2s;
|
|
20
|
-
position: relative;
|
|
21
|
-
font-size: ${({ width }) => width / 2.5}px;
|
|
22
|
-
font-weight: 500;
|
|
23
|
-
color: ${({ theme }) => theme.primary};
|
|
24
|
-
|
|
25
|
-
span {
|
|
26
|
-
position: relative;
|
|
27
|
-
z-index: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&::before {
|
|
31
|
-
content: "";
|
|
32
|
-
position: absolute;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
transition: ease .2s;
|
|
36
|
-
background: ${({ theme }) => theme.t03};
|
|
37
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
38
|
-
z-index: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&::after {
|
|
42
|
-
content: "";
|
|
43
|
-
position: absolute;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
transition: ease .2s;
|
|
47
|
-
background: ${({ theme }) => theme.t05};
|
|
48
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
49
|
-
z-index: 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
&::before {
|
|
54
|
-
transform: scale(1.6);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&::after {
|
|
58
|
-
transform: scale(1.3);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
|
|
63
|
-
// components/types/avatar/index.tsx
|
|
64
|
-
import _ from "lodash";
|
|
65
|
-
import { jsx } from "react/jsx-runtime";
|
|
66
|
-
function Avatar(props) {
|
|
67
|
-
const containerRef = useRef({});
|
|
68
|
-
const [color, setColor] = useState("");
|
|
69
|
-
const name = () => {
|
|
70
|
-
const [first, secound] = _.split(props.name, " ") || [];
|
|
71
|
-
if (first && secound) return `${first} ${secound}`;
|
|
72
|
-
if (first) return first;
|
|
73
|
-
return "IZ";
|
|
74
|
-
};
|
|
75
|
-
return /* @__PURE__ */ jsx(
|
|
76
|
-
Container,
|
|
77
|
-
{
|
|
78
|
-
ref: containerRef,
|
|
79
|
-
color,
|
|
80
|
-
width: containerRef.current.offsetWidth,
|
|
81
|
-
...props,
|
|
82
|
-
children: /* @__PURE__ */ jsx("span", { children: _.upperCase(name()) })
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
Avatar
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/avatar/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: ${({ size }) => size || "2.3rem"};
|
|
8
|
-
height: ${({ size }) => size || "2.3rem"};
|
|
9
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
10
|
-
border: 2px solid ${({ theme }) => theme.t1};
|
|
11
|
-
background: ${({ color }) => color};
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
16
|
-
transition: ease .2s;
|
|
17
|
-
position: relative;
|
|
18
|
-
font-size: ${({ width }) => width / 2.5}px;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
color: ${({ theme }) => theme.primary};
|
|
21
|
-
|
|
22
|
-
span {
|
|
23
|
-
position: relative;
|
|
24
|
-
z-index: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&::before {
|
|
28
|
-
content: "";
|
|
29
|
-
position: absolute;
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: 100%;
|
|
32
|
-
transition: ease .2s;
|
|
33
|
-
background: ${({ theme }) => theme.t03};
|
|
34
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
35
|
-
z-index: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&::after {
|
|
39
|
-
content: "";
|
|
40
|
-
position: absolute;
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
transition: ease .2s;
|
|
44
|
-
background: ${({ theme }) => theme.t05};
|
|
45
|
-
border-radius: ${({ size }) => size || "2.3rem"};
|
|
46
|
-
z-index: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
&::before {
|
|
51
|
-
transform: scale(1.6);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&::after {
|
|
55
|
-
transform: scale(1.3);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
export {
|
|
60
|
-
Container
|
|
61
|
-
};
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
// components/types/badge/styles.tsx
|
|
11
|
-
import styled from "styled-components";
|
|
12
|
-
var Container = styled.div`
|
|
13
|
-
.content {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
height: 1.8rem;
|
|
18
|
-
padding: 0 2rem;
|
|
19
|
-
position: relative;
|
|
20
|
-
|
|
21
|
-
div {
|
|
22
|
-
position: relative;
|
|
23
|
-
z-index: 1;
|
|
24
|
-
color: ${({ theme, color }) => theme[color]};
|
|
25
|
-
font-size: .8rem;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
text-transform: capitalize;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:before {
|
|
31
|
-
content: "";
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: 0;
|
|
34
|
-
left: 0;
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
|
-
border-radius: 5px;
|
|
38
|
-
background: ${({ theme, color }) => theme[color]};
|
|
39
|
-
opacity: .2;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
// contexts/icon/index.tsx
|
|
45
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
46
|
-
|
|
47
|
-
// contexts/theme/index.tsx
|
|
48
|
-
import { createContext, useContext, useState } from "react";
|
|
49
|
-
import { ThemeProvider } from "styled-components";
|
|
50
|
-
|
|
51
|
-
// contexts/theme/styles.tsx
|
|
52
|
-
import styled2 from "styled-components";
|
|
53
|
-
var Switcher = styled2.div`
|
|
54
|
-
width: 3rem;
|
|
55
|
-
height: 1.5rem;
|
|
56
|
-
border-radius: 1rem;
|
|
57
|
-
border: 2px solid ${({ theme }) => theme.t05};
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
position: relative;
|
|
63
|
-
|
|
64
|
-
i {
|
|
65
|
-
color: ${({ theme }) => theme.t6};
|
|
66
|
-
position: absolute;
|
|
67
|
-
transform: translateY(-50%);
|
|
68
|
-
font-size: .9rem;
|
|
69
|
-
z-index: 0;
|
|
70
|
-
transition: ease .8s;
|
|
71
|
-
|
|
72
|
-
&:first-child {
|
|
73
|
-
left: .2rem;
|
|
74
|
-
top: 50%;
|
|
75
|
-
opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:last-child {
|
|
79
|
-
right: .2rem;
|
|
80
|
-
top: 50%;
|
|
81
|
-
opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.switcher {
|
|
86
|
-
width: 1rem;
|
|
87
|
-
height: 1rem;
|
|
88
|
-
border-radius: 1rem;
|
|
89
|
-
position: relative;
|
|
90
|
-
transition: ease .3s;
|
|
91
|
-
transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
|
|
92
|
-
z-index: 1;
|
|
93
|
-
|
|
94
|
-
div {
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: 100%;
|
|
97
|
-
background: ${({ theme }) => theme.primary};
|
|
98
|
-
border-radius: 1rem;
|
|
99
|
-
position: relative;
|
|
100
|
-
z-index: 2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:after {
|
|
104
|
-
content: "";
|
|
105
|
-
position: absolute;
|
|
106
|
-
width: 100%;
|
|
107
|
-
height: 100%;
|
|
108
|
-
border-radius: 1rem;
|
|
109
|
-
transform: scale(1.8);
|
|
110
|
-
background: ${({ theme }) => theme.t05};
|
|
111
|
-
top: 0;
|
|
112
|
-
left: 0;
|
|
113
|
-
z-index: 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:before {
|
|
117
|
-
content: "";
|
|
118
|
-
position: absolute;
|
|
119
|
-
width: 100%;
|
|
120
|
-
height: 100%;
|
|
121
|
-
border-radius: 1rem;
|
|
122
|
-
transform: scale(3);
|
|
123
|
-
background: ${({ theme }) => theme.t05};
|
|
124
|
-
top: 0;
|
|
125
|
-
left: 0;
|
|
126
|
-
z-index: 0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
`;
|
|
130
|
-
|
|
131
|
-
// contexts/theme/content.tsx
|
|
132
|
-
var CommonTheme = {
|
|
133
|
-
secondary: "#5869da",
|
|
134
|
-
tertiary: "#629dfd33",
|
|
135
|
-
positive: "#65c965",
|
|
136
|
-
negative: "#FF334E",
|
|
137
|
-
mobileMaxWidth: "650px",
|
|
138
|
-
mobileMinWidth: "315px"
|
|
139
|
-
};
|
|
140
|
-
var Themes = {
|
|
141
|
-
light: {
|
|
142
|
-
primary: "#ffffff",
|
|
143
|
-
reverse: "#353535",
|
|
144
|
-
tooltip: "#f2f2f2",
|
|
145
|
-
t8: "#000000cc",
|
|
146
|
-
t7: "#000000b3",
|
|
147
|
-
t6: "#00000099",
|
|
148
|
-
t5: "#00000080",
|
|
149
|
-
t4: "#00000066",
|
|
150
|
-
t3: "#0000004d",
|
|
151
|
-
t2: "#00000033",
|
|
152
|
-
t1: "#0000001a",
|
|
153
|
-
t08: "#00000014",
|
|
154
|
-
t05: "#0000000d",
|
|
155
|
-
t03: "#00000007",
|
|
156
|
-
t02: "#00000005",
|
|
157
|
-
t01: "#00000002",
|
|
158
|
-
lgrad: `linear-gradient(
|
|
159
|
-
to right,
|
|
160
|
-
#dadef7 0%,
|
|
161
|
-
#dee2f8 5%,
|
|
162
|
-
#e2e5f9 10%,
|
|
163
|
-
#e6e9fa 20%,
|
|
164
|
-
#eaedfb 30%,
|
|
165
|
-
#eff0fb 60%,
|
|
166
|
-
#f3f4fc 80%,
|
|
167
|
-
#f7f8fd 90%,
|
|
168
|
-
#fbfbfe 100%
|
|
169
|
-
)`,
|
|
170
|
-
maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
|
|
171
|
-
...CommonTheme
|
|
172
|
-
},
|
|
173
|
-
dark: {
|
|
174
|
-
primary: "#333333",
|
|
175
|
-
reverse: "#b45252",
|
|
176
|
-
tooltip: "#3d3d3d",
|
|
177
|
-
t8: "#ffffffcc",
|
|
178
|
-
t7: "#ffffffb3",
|
|
179
|
-
t6: "#ffffff99",
|
|
180
|
-
t5: "#ffffff80",
|
|
181
|
-
t4: "#ffffff66",
|
|
182
|
-
t3: "#ffffff4d",
|
|
183
|
-
t2: "#ffffff33",
|
|
184
|
-
t1: "#ffffff1a",
|
|
185
|
-
t08: "#ffffff14",
|
|
186
|
-
t05: "#ffffff0d",
|
|
187
|
-
t03: "#ffffff07",
|
|
188
|
-
t02: "#ffffff05",
|
|
189
|
-
t01: "#ffffff02",
|
|
190
|
-
lgrad: `linear-gradient(
|
|
191
|
-
to right,
|
|
192
|
-
#3d485c 0%,
|
|
193
|
-
#3c4657 5%,
|
|
194
|
-
#3b4353 10%,
|
|
195
|
-
#3a414e 20%,
|
|
196
|
-
#393f4a 30%,
|
|
197
|
-
#373c45 60%,
|
|
198
|
-
#363a41 80%,
|
|
199
|
-
#35383c 90%,
|
|
200
|
-
#343538 100%
|
|
201
|
-
)`,
|
|
202
|
-
maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
|
|
203
|
-
...CommonTheme
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
// contexts/theme/index.tsx
|
|
208
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
209
|
-
var ThemeContext = createContext({});
|
|
210
|
-
var useTheme = () => useContext(ThemeContext);
|
|
211
|
-
|
|
212
|
-
// contexts/icon/index.tsx
|
|
213
|
-
import _ from "lodash";
|
|
214
|
-
|
|
215
|
-
// contexts/icon/assets/brands/index.tsx
|
|
216
|
-
var req = __require.context("./", false, /\.svg$/);
|
|
217
|
-
var brands = {};
|
|
218
|
-
req.keys().forEach((key) => {
|
|
219
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
220
|
-
brands[name] = req(key).default;
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
// contexts/icon/assets/regular/index.tsx
|
|
224
|
-
var req2 = __require.context("./", false, /\.svg$/);
|
|
225
|
-
var regular = {};
|
|
226
|
-
req2.keys().forEach((key) => {
|
|
227
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
228
|
-
regular[name] = req2(key).default;
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
// contexts/icon/assets/solid/index.tsx
|
|
232
|
-
var req3 = __require.context("./", false, /\.svg$/);
|
|
233
|
-
var solid = {};
|
|
234
|
-
req3.keys().forEach((key) => {
|
|
235
|
-
const name = key.replace("./", "").replace(".svg", "");
|
|
236
|
-
solid[name] = req3(key).default;
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
// contexts/icon/index.tsx
|
|
240
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
241
|
-
var IconContext = createContext2({});
|
|
242
|
-
|
|
243
|
-
// contexts/tooltip/index.tsx
|
|
244
|
-
import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
|
|
245
|
-
|
|
246
|
-
// contexts/tooltip/styles.tsx
|
|
247
|
-
import styled3 from "styled-components";
|
|
248
|
-
var Tooltip = styled3.div`
|
|
249
|
-
position: fixed;
|
|
250
|
-
background: ${({ theme }) => theme.tooltip};
|
|
251
|
-
color: ${({ theme }) => theme.t6};
|
|
252
|
-
font-size: .8rem;
|
|
253
|
-
font-weight: 500;
|
|
254
|
-
text-align: center;
|
|
255
|
-
padding: .3rem .8rem;
|
|
256
|
-
border-radius: 5px;
|
|
257
|
-
transform: translateX(-50%);
|
|
258
|
-
z-index: 10;
|
|
259
|
-
border: 1px solid ${({ theme }) => theme.t05};
|
|
260
|
-
|
|
261
|
-
&::before {
|
|
262
|
-
content: "";
|
|
263
|
-
position: absolute;
|
|
264
|
-
bottom: -9px;
|
|
265
|
-
left: 50%;
|
|
266
|
-
transform: translateX(-50%);
|
|
267
|
-
width: 0;
|
|
268
|
-
height: 0;
|
|
269
|
-
border-left: 8px solid transparent;
|
|
270
|
-
border-right: 8px solid transparent;
|
|
271
|
-
border-top: 8px solid ${({ theme }) => theme.t05};
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
&::after {
|
|
275
|
-
content: "";
|
|
276
|
-
position: absolute;
|
|
277
|
-
bottom: -8px;
|
|
278
|
-
left: 50%;
|
|
279
|
-
transform: translateX(-50%);
|
|
280
|
-
width: 0;
|
|
281
|
-
height: 0;
|
|
282
|
-
border-left: 8px solid transparent;
|
|
283
|
-
border-right: 8px solid transparent;
|
|
284
|
-
border-top: 8px solid ${({ theme }) => theme.tooltip};
|
|
285
|
-
}
|
|
286
|
-
`;
|
|
287
|
-
|
|
288
|
-
// contexts/tooltip/index.tsx
|
|
289
|
-
import _2 from "lodash";
|
|
290
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
291
|
-
var TooltipContext = createContext3({});
|
|
292
|
-
|
|
293
|
-
// contexts/modal/index.tsx
|
|
294
|
-
import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
|
|
295
|
-
import { usePathname } from "next/navigation";
|
|
296
|
-
|
|
297
|
-
// contexts/modal/styles.tsx
|
|
298
|
-
import styled4 from "styled-components";
|
|
299
|
-
var Container2 = styled4.div`
|
|
300
|
-
|
|
301
|
-
`;
|
|
302
|
-
|
|
303
|
-
// contexts/modal/index.tsx
|
|
304
|
-
import _3 from "lodash";
|
|
305
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
306
|
-
var ModalContext = createContext4({});
|
|
307
|
-
|
|
308
|
-
// components/types/badge/index.tsx
|
|
309
|
-
import _4 from "lodash";
|
|
310
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
311
|
-
function Badge(props) {
|
|
312
|
-
const { content } = useTheme();
|
|
313
|
-
const status = {
|
|
314
|
-
ATIVO: "positive",
|
|
315
|
-
DESATIVADO: "negative",
|
|
316
|
-
ESTAVEL: "positive",
|
|
317
|
-
INSTAVEL: "negative",
|
|
318
|
-
REGULAR: "negative"
|
|
319
|
-
};
|
|
320
|
-
return /* @__PURE__ */ jsx5(Container, { color: status[props.value] || content.t3, children: /* @__PURE__ */ jsx5("div", { className: "content", children: /* @__PURE__ */ jsx5("div", { children: _4.lowerCase(props.value) }) }) });
|
|
321
|
-
}
|
|
322
|
-
export {
|
|
323
|
-
Badge
|
|
324
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/badge/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
.content {
|
|
8
|
-
display: inline-flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
height: 1.8rem;
|
|
12
|
-
padding: 0 2rem;
|
|
13
|
-
position: relative;
|
|
14
|
-
|
|
15
|
-
div {
|
|
16
|
-
position: relative;
|
|
17
|
-
z-index: 1;
|
|
18
|
-
color: ${({ theme, color }) => theme[color]};
|
|
19
|
-
font-size: .8rem;
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
text-transform: capitalize;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:before {
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
border-radius: 5px;
|
|
32
|
-
background: ${({ theme, color }) => theme[color]};
|
|
33
|
-
opacity: .2;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
export {
|
|
38
|
-
Container
|
|
39
|
-
};
|