@gustavo-valsechi/client 1.3.27 → 1.3.29
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.ts +3 -10
- package/dist/components/index.js +0 -1
- package/dist/components/index.mjs +0 -1
- package/dist/components/styles.d.ts +2 -0
- package/dist/components/styles.js +55 -0
- package/dist/components/styles.mjs +20 -0
- package/dist/components/types/avatar/index.d.ts +2 -0
- package/dist/components/types/avatar/index.js +121 -0
- package/dist/components/types/avatar/index.mjs +87 -0
- package/dist/components/types/avatar/styles.d.ts +1 -0
- package/dist/components/types/avatar/styles.js +94 -0
- package/dist/components/types/avatar/styles.mjs +60 -0
- package/dist/components/types/badge/index.d.ts +2 -0
- package/dist/components/types/badge/index.js +353 -0
- package/dist/components/types/badge/index.mjs +323 -0
- package/dist/components/types/badge/styles.d.ts +1 -0
- package/dist/components/types/badge/styles.js +72 -0
- package/dist/components/types/badge/styles.mjs +38 -0
- package/dist/components/types/block/index.d.ts +2 -0
- package/dist/components/types/block/index.js +3081 -0
- package/dist/components/types/block/index.mjs +3077 -0
- package/dist/components/types/block/styles.d.ts +2 -0
- package/dist/components/types/block/styles.js +66 -0
- package/dist/components/types/block/styles.mjs +31 -0
- package/dist/components/types/chart/index.d.ts +2 -0
- package/dist/components/types/chart/index.js +351 -0
- package/dist/components/types/chart/index.mjs +321 -0
- package/dist/components/types/chart/styles.d.ts +1 -0
- package/dist/components/types/chart/styles.js +43 -0
- package/dist/components/types/chart/styles.mjs +8 -0
- package/dist/components/types/credit-card/assets/index.d.ts +4 -0
- package/dist/components/types/credit-card/assets/index.js +42 -0
- package/dist/components/types/credit-card/assets/index.mjs +21 -0
- package/dist/components/types/credit-card/card/index.d.ts +2 -0
- package/dist/components/types/credit-card/card/index.js +739 -0
- package/dist/components/types/credit-card/card/index.mjs +731 -0
- package/dist/components/types/credit-card/card/styles.d.ts +1 -0
- package/dist/components/types/credit-card/card/styles.js +171 -0
- package/dist/components/types/credit-card/card/styles.mjs +137 -0
- package/dist/components/types/credit-card/functions/index.d.ts +2 -0
- package/dist/components/types/credit-card/functions/index.js +92 -0
- package/dist/components/types/credit-card/functions/index.mjs +60 -0
- package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
- package/dist/components/types/credit-card/functions/styles.js +76 -0
- package/dist/components/types/credit-card/functions/styles.mjs +42 -0
- package/dist/components/types/credit-card/index.d.ts +2 -0
- package/dist/components/types/credit-card/index.js +866 -0
- package/dist/components/types/credit-card/index.mjs +852 -0
- package/dist/components/types/credit-card/styles.d.ts +1 -0
- package/dist/components/types/credit-card/styles.js +73 -0
- package/dist/components/types/credit-card/styles.mjs +39 -0
- package/dist/components/types/credit-card/tools/index.d.ts +6 -0
- package/dist/components/types/credit-card/tools/index.js +578 -0
- package/dist/components/types/credit-card/tools/index.mjs +565 -0
- package/dist/components/types/form/index.d.ts +3 -0
- package/dist/components/types/form/index.js +746 -0
- package/dist/components/types/form/index.mjs +710 -0
- package/dist/components/types/form/styles.d.ts +1 -0
- package/dist/components/types/form/styles.js +54 -0
- package/dist/components/types/form/styles.mjs +20 -0
- package/dist/components/types/form/types/button/index.d.ts +2 -0
- package/dist/components/types/form/types/button/index.js +200 -0
- package/dist/components/types/form/types/button/index.mjs +164 -0
- package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
- package/dist/components/types/form/types/button/loading/index.js +139 -0
- package/dist/components/types/form/types/button/loading/index.mjs +103 -0
- package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
- package/dist/components/types/form/types/button/loading/styles.js +127 -0
- package/dist/components/types/form/types/button/loading/styles.mjs +93 -0
- package/dist/components/types/form/types/button/styles.d.ts +1 -0
- package/dist/components/types/form/types/button/styles.js +80 -0
- package/dist/components/types/form/types/button/styles.mjs +46 -0
- package/dist/components/types/form/types/datetime/index.d.ts +2 -0
- package/dist/components/types/form/types/datetime/index.js +128 -0
- package/dist/components/types/form/types/datetime/index.mjs +92 -0
- package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
- package/dist/components/types/form/types/datetime/styles.js +79 -0
- package/dist/components/types/form/types/datetime/styles.mjs +45 -0
- package/dist/components/types/form/types/file/index.d.ts +2 -0
- package/dist/components/types/form/types/file/index.js +124 -0
- package/dist/components/types/form/types/file/index.mjs +90 -0
- package/dist/components/types/form/types/file/styles.d.ts +1 -0
- package/dist/components/types/form/types/file/styles.js +66 -0
- package/dist/components/types/form/types/file/styles.mjs +32 -0
- package/dist/components/types/form/types/index.d.ts +7 -0
- package/dist/components/types/form/types/index.js +644 -0
- package/dist/components/types/form/types/index.mjs +601 -0
- package/dist/components/types/form/types/input/index.d.ts +2 -0
- package/dist/components/types/form/types/input/index.js +146 -0
- package/dist/components/types/form/types/input/index.mjs +112 -0
- package/dist/components/types/form/types/input/styles.d.ts +1 -0
- package/dist/components/types/form/types/input/styles.js +85 -0
- package/dist/components/types/form/types/input/styles.mjs +51 -0
- package/dist/components/types/form/types/label/index.d.ts +2 -0
- package/dist/components/types/form/types/label/index.js +54 -0
- package/dist/components/types/form/types/label/index.mjs +18 -0
- package/dist/components/types/form/types/label/styles.d.ts +1 -0
- package/dist/components/types/form/types/label/styles.js +46 -0
- package/dist/components/types/form/types/label/styles.mjs +12 -0
- package/dist/components/types/form/types/select/index.d.ts +2 -0
- package/dist/components/types/form/types/select/index.js +158 -0
- package/dist/components/types/form/types/select/index.mjs +124 -0
- package/dist/components/types/form/types/select/styles.d.ts +1 -0
- package/dist/components/types/form/types/select/styles.js +91 -0
- package/dist/components/types/form/types/select/styles.mjs +57 -0
- package/dist/components/types/form/types/textarea/index.d.ts +2 -0
- package/dist/components/types/form/types/textarea/index.js +127 -0
- package/dist/components/types/form/types/textarea/index.mjs +91 -0
- package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
- package/dist/components/types/form/types/textarea/styles.js +78 -0
- package/dist/components/types/form/types/textarea/styles.mjs +44 -0
- package/dist/components/types/index.d.ts +11 -0
- package/dist/components/types/index.js +3091 -0
- package/dist/components/types/index.mjs +3093 -0
- package/dist/components/types/loading/app/index.d.ts +2 -0
- package/dist/components/types/loading/app/index.js +163 -0
- package/dist/components/types/loading/app/index.mjs +127 -0
- package/dist/components/types/loading/app/styles.d.ts +1 -0
- package/dist/components/types/loading/app/styles.js +126 -0
- package/dist/components/types/loading/app/styles.mjs +92 -0
- package/dist/components/types/loading/bar/index.d.ts +2 -0
- package/dist/components/types/loading/bar/index.js +68 -0
- package/dist/components/types/loading/bar/index.mjs +32 -0
- package/dist/components/types/loading/bar/styles.d.ts +1 -0
- package/dist/components/types/loading/bar/styles.js +60 -0
- package/dist/components/types/loading/bar/styles.mjs +26 -0
- package/dist/components/types/loading/index.d.ts +2 -0
- package/dist/components/types/loading/index.js +192 -0
- package/dist/components/types/loading/index.mjs +154 -0
- package/dist/components/types/logo/index.d.ts +2 -0
- package/dist/components/types/logo/index.js +69 -0
- package/dist/components/types/logo/index.mjs +33 -0
- package/dist/components/types/logo/styles.d.ts +1 -0
- package/dist/components/types/logo/styles.js +58 -0
- package/dist/components/types/logo/styles.mjs +24 -0
- package/dist/components/types/lottie/animations/index.d.ts +293 -0
- package/dist/components/types/lottie/animations/index.js +31 -0
- package/dist/components/types/lottie/animations/index.mjs +8 -0
- package/dist/components/types/lottie/index.d.ts +2 -0
- package/dist/components/types/lottie/index.js +104 -0
- package/dist/components/types/lottie/index.mjs +68 -0
- package/dist/components/types/lottie/styles.d.ts +1 -0
- package/dist/components/types/lottie/styles.js +61 -0
- package/dist/components/types/lottie/styles.mjs +27 -0
- package/dist/components/types/modal/index.d.ts +2 -0
- package/dist/components/types/modal/index.js +2331 -0
- package/dist/components/types/modal/index.mjs +2323 -0
- package/dist/components/types/modal/styles.d.ts +1 -0
- package/dist/components/types/modal/styles.js +168 -0
- package/dist/components/types/modal/styles.mjs +134 -0
- package/dist/components/types/table/index.d.ts +3 -0
- package/dist/components/types/table/index.js +3081 -0
- package/dist/components/types/table/index.mjs +3078 -0
- package/dist/components/types/table/modal/actions.d.ts +10 -0
- package/dist/components/types/table/modal/actions.js +108 -0
- package/dist/components/types/table/modal/actions.mjs +85 -0
- package/dist/components/types/table/modal/index.d.ts +2 -0
- package/dist/components/types/table/modal/index.js +3075 -0
- package/dist/components/types/table/modal/index.mjs +3075 -0
- package/dist/components/types/table/modal/styles.d.ts +1 -0
- package/dist/components/types/table/modal/styles.js +91 -0
- package/dist/components/types/table/modal/styles.mjs +57 -0
- package/dist/components/types/table/paginate/index.d.ts +2 -0
- package/dist/components/types/table/paginate/index.js +131 -0
- package/dist/components/types/table/paginate/index.mjs +95 -0
- package/dist/components/types/table/paginate/styles.d.ts +1 -0
- package/dist/components/types/table/paginate/styles.js +75 -0
- package/dist/components/types/table/paginate/styles.mjs +41 -0
- package/dist/components/types/table/styles.d.ts +5 -0
- package/dist/components/types/table/styles.js +301 -0
- package/dist/components/types/table/styles.mjs +267 -0
- package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
- package/dist/contexts/icon/assets/brands/index.js +32 -0
- package/dist/contexts/icon/assets/brands/index.mjs +18 -0
- package/dist/contexts/icon/assets/index.d.ts +6 -0
- package/dist/contexts/icon/assets/index.js +59 -0
- package/dist/contexts/icon/assets/index.mjs +43 -0
- package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
- package/dist/contexts/icon/assets/regular/index.js +32 -0
- package/dist/contexts/icon/assets/regular/index.mjs +18 -0
- package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
- package/dist/contexts/icon/assets/solid/index.js +32 -0
- package/dist/contexts/icon/assets/solid/index.mjs +18 -0
- package/dist/contexts/icon/index.d.ts +4 -0
- package/dist/contexts/icon/index.js +309 -0
- package/dist/contexts/icon/index.mjs +280 -0
- package/dist/contexts/icon/styles.d.ts +1 -0
- package/dist/contexts/icon/styles.js +43 -0
- package/dist/contexts/icon/styles.mjs +8 -0
- package/dist/contexts/index.d.ts +4 -20
- package/dist/contexts/index.js +0 -1
- package/dist/contexts/index.mjs +0 -1
- package/dist/contexts/modal/index.d.ts +4 -0
- package/dist/contexts/modal/index.js +100 -0
- package/dist/contexts/modal/index.mjs +65 -0
- package/dist/contexts/modal/styles.d.ts +1 -0
- package/dist/contexts/modal/styles.js +43 -0
- package/dist/contexts/modal/styles.mjs +8 -0
- package/dist/contexts/theme/content.d.ts +3 -0
- package/dist/contexts/theme/content.js +105 -0
- package/dist/contexts/theme/content.mjs +79 -0
- package/dist/contexts/theme/index.d.ts +4 -0
- package/dist/contexts/theme/index.js +235 -0
- package/dist/contexts/theme/index.mjs +200 -0
- package/dist/contexts/theme/styles.d.ts +1 -0
- package/dist/contexts/theme/styles.js +117 -0
- package/dist/contexts/theme/styles.mjs +82 -0
- package/dist/contexts/tooltip/index.d.ts +6 -0
- package/dist/contexts/tooltip/index.js +151 -0
- package/dist/contexts/tooltip/index.mjs +116 -0
- package/dist/contexts/tooltip/styles.d.ts +1 -0
- package/dist/contexts/tooltip/styles.js +79 -0
- package/dist/contexts/tooltip/styles.mjs +44 -0
- package/dist/index.d.ts +4 -17
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/dist/interfaces/components/avatar/index.d.ts +6 -0
- package/dist/interfaces/components/avatar/index.js +18 -0
- package/dist/interfaces/components/avatar/index.mjs +0 -0
- package/dist/interfaces/components/badge/index.d.ts +3 -0
- package/dist/interfaces/components/badge/index.js +18 -0
- package/dist/interfaces/components/badge/index.mjs +0 -0
- package/dist/interfaces/components/block/index.d.ts +16 -0
- package/dist/interfaces/components/block/index.js +18 -0
- package/dist/interfaces/components/block/index.mjs +0 -0
- package/dist/interfaces/components/chart/index.d.ts +9 -0
- package/dist/interfaces/components/chart/index.js +18 -0
- package/dist/interfaces/components/chart/index.mjs +0 -0
- package/dist/interfaces/components/credit-card/index.d.ts +16 -0
- package/dist/interfaces/components/credit-card/index.js +18 -0
- package/dist/interfaces/components/credit-card/index.mjs +0 -0
- package/dist/interfaces/components/form/button/index.d.ts +7 -0
- package/dist/interfaces/components/form/button/index.js +18 -0
- package/dist/interfaces/components/form/button/index.mjs +0 -0
- package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
- package/dist/interfaces/components/form/datetime/index.js +18 -0
- package/dist/interfaces/components/form/datetime/index.mjs +0 -0
- package/dist/interfaces/components/form/file/index.d.ts +14 -0
- package/dist/interfaces/components/form/file/index.js +18 -0
- package/dist/interfaces/components/form/file/index.mjs +0 -0
- package/dist/interfaces/components/form/index.d.ts +16 -0
- package/dist/interfaces/components/form/index.js +18 -0
- package/dist/interfaces/components/form/index.mjs +0 -0
- package/dist/interfaces/components/form/input/index.d.ts +17 -0
- package/dist/interfaces/components/form/input/index.js +18 -0
- package/dist/interfaces/components/form/input/index.mjs +0 -0
- package/dist/interfaces/components/form/label/index.d.ts +5 -0
- package/dist/interfaces/components/form/label/index.js +18 -0
- package/dist/interfaces/components/form/label/index.mjs +0 -0
- package/dist/interfaces/components/form/select/index.d.ts +14 -0
- package/dist/interfaces/components/form/select/index.js +18 -0
- package/dist/interfaces/components/form/select/index.mjs +0 -0
- package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
- package/dist/interfaces/components/form/textarea/index.js +18 -0
- package/dist/interfaces/components/form/textarea/index.mjs +0 -0
- package/dist/interfaces/components/index.d.ts +26 -0
- package/dist/interfaces/components/index.js +18 -0
- package/dist/interfaces/components/index.mjs +0 -0
- package/dist/interfaces/components/loading/app/index.d.ts +3 -0
- package/dist/interfaces/components/loading/app/index.js +18 -0
- package/dist/interfaces/components/loading/app/index.mjs +0 -0
- package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
- package/dist/interfaces/components/loading/bar/index.js +18 -0
- package/dist/interfaces/components/loading/bar/index.mjs +0 -0
- package/dist/interfaces/components/loading/index.d.ts +2 -0
- package/dist/interfaces/components/loading/index.js +18 -0
- package/dist/interfaces/components/loading/index.mjs +0 -0
- package/dist/interfaces/components/logo/index.d.ts +6 -0
- package/dist/interfaces/components/logo/index.js +18 -0
- package/dist/interfaces/components/logo/index.mjs +0 -0
- package/dist/interfaces/components/lottie/index.d.ts +12 -0
- package/dist/interfaces/components/lottie/index.js +18 -0
- package/dist/interfaces/components/lottie/index.mjs +0 -0
- package/dist/interfaces/components/modal/index.d.ts +16 -0
- package/dist/interfaces/components/modal/index.js +18 -0
- package/dist/interfaces/components/modal/index.mjs +0 -0
- package/dist/interfaces/components/table/index.d.ts +46 -0
- package/dist/interfaces/components/table/index.js +18 -0
- package/dist/interfaces/components/table/index.mjs +0 -0
- package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
- package/dist/interfaces/components/table/paginate/index.js +18 -0
- package/dist/interfaces/components/table/paginate/index.mjs +0 -0
- package/dist/interfaces/contexts/icon/index.d.ts +3 -0
- package/dist/interfaces/contexts/icon/index.js +18 -0
- package/dist/interfaces/contexts/icon/index.mjs +0 -0
- package/dist/interfaces/contexts/index.d.ts +8 -0
- package/dist/interfaces/contexts/index.js +18 -0
- package/dist/interfaces/contexts/index.mjs +0 -0
- package/dist/interfaces/contexts/modal/index.d.ts +16 -0
- package/dist/interfaces/contexts/modal/index.js +19 -0
- package/dist/interfaces/contexts/modal/index.mjs +1 -0
- package/dist/interfaces/contexts/theme/index.d.ts +42 -0
- package/dist/interfaces/contexts/theme/index.js +18 -0
- package/dist/interfaces/contexts/theme/index.mjs +0 -0
- package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
- package/dist/interfaces/contexts/tooltip/index.js +18 -0
- package/dist/interfaces/contexts/tooltip/index.mjs +0 -0
- package/dist/interfaces/index.d.ts +2 -12
- package/dist/interfaces/index.js +0 -1
- package/dist/interfaces/index.mjs +0 -1
- package/dist/styled.d.ts +6 -0
- package/dist/tsup.config.d.ts +2 -0
- package/package.json +5 -5
- package/dist/components/index.d.mts +0 -10
- package/dist/contexts/index.d.mts +0 -20
- package/dist/index-BhaGW0O1.d.ts +0 -601
- package/dist/index-BxA8LyyD.d.mts +0 -68
- package/dist/index-DDi0w5pw.d.mts +0 -601
- package/dist/index-DT7VKE7H.d.ts +0 -68
- package/dist/index-Da-DtPS-.d.mts +0 -29
- package/dist/index-Da-DtPS-.d.ts +0 -29
- package/dist/index.d.mts +0 -17
- package/dist/interfaces/index.d.mts +0 -12
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export { M as Modal } from '../index-Da-DtPS-.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'react-hook-form';
|
|
7
|
-
|
|
8
|
-
declare function Component(props: IComponent): react_jsx_runtime.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { Component };
|
|
1
|
+
import { IComponent } from "@interfaces";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export declare function Component(props: IComponent): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/index.js
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// components/styles.tsx
|
|
32
|
+
var styles_exports = {};
|
|
33
|
+
__export(styles_exports, {
|
|
34
|
+
Container: () => Container,
|
|
35
|
+
RowContainer: () => RowContainer
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(styles_exports);
|
|
38
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
39
|
+
var Container = import_styled_components.default.div`
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: 1rem;
|
|
43
|
+
`;
|
|
44
|
+
var RowContainer = import_styled_components.default.div`
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
align-items: stretch;
|
|
48
|
+
gap: 1rem;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
`;
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
Container,
|
|
54
|
+
RowContainer
|
|
55
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/styles.tsx
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
var Container = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 1rem;
|
|
9
|
+
`;
|
|
10
|
+
var RowContainer = styled.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
gap: 1rem;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
Container,
|
|
19
|
+
RowContainer
|
|
20
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// components/types/avatar/index.tsx
|
|
32
|
+
var avatar_exports = {};
|
|
33
|
+
__export(avatar_exports, {
|
|
34
|
+
Avatar: () => Avatar
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(avatar_exports);
|
|
37
|
+
var import_react = require("react");
|
|
38
|
+
|
|
39
|
+
// components/types/avatar/styles.tsx
|
|
40
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
41
|
+
var Container = import_styled_components.default.div`
|
|
42
|
+
width: ${({ size }) => size || "2.3rem"};
|
|
43
|
+
height: ${({ size }) => size || "2.3rem"};
|
|
44
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
45
|
+
border: 2px solid ${({ theme }) => theme.t1};
|
|
46
|
+
background: ${({ color }) => color};
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
51
|
+
transition: ease .2s;
|
|
52
|
+
position: relative;
|
|
53
|
+
font-size: ${({ width }) => width / 2.5}px;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
color: ${({ theme }) => theme.primary};
|
|
56
|
+
|
|
57
|
+
span {
|
|
58
|
+
position: relative;
|
|
59
|
+
z-index: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&::before {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
transition: ease .2s;
|
|
68
|
+
background: ${({ theme }) => theme.t03};
|
|
69
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
70
|
+
z-index: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::after {
|
|
74
|
+
content: "";
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
transition: ease .2s;
|
|
79
|
+
background: ${({ theme }) => theme.t05};
|
|
80
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
81
|
+
z-index: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
&::before {
|
|
86
|
+
transform: scale(1.6);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&::after {
|
|
90
|
+
transform: scale(1.3);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
// components/types/avatar/index.tsx
|
|
96
|
+
var import_lodash = __toESM(require("lodash"));
|
|
97
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
98
|
+
function Avatar(props) {
|
|
99
|
+
const containerRef = (0, import_react.useRef)({});
|
|
100
|
+
const [color, setColor] = (0, import_react.useState)("");
|
|
101
|
+
const name = () => {
|
|
102
|
+
const [first, secound] = import_lodash.default.split(props.name, " ") || [];
|
|
103
|
+
if (first && secound) return `${first} ${secound}`;
|
|
104
|
+
if (first) return first;
|
|
105
|
+
return "IZ";
|
|
106
|
+
};
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
+
Container,
|
|
109
|
+
{
|
|
110
|
+
ref: containerRef,
|
|
111
|
+
color,
|
|
112
|
+
width: containerRef.current.offsetWidth,
|
|
113
|
+
...props,
|
|
114
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: import_lodash.default.upperCase(name()) })
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
+
0 && (module.exports = {
|
|
120
|
+
Avatar
|
|
121
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/types/avatar/index.tsx
|
|
4
|
+
import { useRef, useState } from "react";
|
|
5
|
+
|
|
6
|
+
// components/types/avatar/styles.tsx
|
|
7
|
+
import styled from "styled-components";
|
|
8
|
+
var Container = styled.div`
|
|
9
|
+
width: ${({ size }) => size || "2.3rem"};
|
|
10
|
+
height: ${({ size }) => size || "2.3rem"};
|
|
11
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
12
|
+
border: 2px solid ${({ theme }) => theme.t1};
|
|
13
|
+
background: ${({ color }) => color};
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
18
|
+
transition: ease .2s;
|
|
19
|
+
position: relative;
|
|
20
|
+
font-size: ${({ width }) => width / 2.5}px;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
color: ${({ theme }) => theme.primary};
|
|
23
|
+
|
|
24
|
+
span {
|
|
25
|
+
position: relative;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::before {
|
|
30
|
+
content: "";
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
transition: ease .2s;
|
|
35
|
+
background: ${({ theme }) => theme.t03};
|
|
36
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
37
|
+
z-index: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::after {
|
|
41
|
+
content: "";
|
|
42
|
+
position: absolute;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
transition: ease .2s;
|
|
46
|
+
background: ${({ theme }) => theme.t05};
|
|
47
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
48
|
+
z-index: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
&::before {
|
|
53
|
+
transform: scale(1.6);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::after {
|
|
57
|
+
transform: scale(1.3);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
// components/types/avatar/index.tsx
|
|
63
|
+
import _ from "lodash";
|
|
64
|
+
import { jsx } from "react/jsx-runtime";
|
|
65
|
+
function Avatar(props) {
|
|
66
|
+
const containerRef = useRef({});
|
|
67
|
+
const [color, setColor] = useState("");
|
|
68
|
+
const name = () => {
|
|
69
|
+
const [first, secound] = _.split(props.name, " ") || [];
|
|
70
|
+
if (first && secound) return `${first} ${secound}`;
|
|
71
|
+
if (first) return first;
|
|
72
|
+
return "IZ";
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
Container,
|
|
76
|
+
{
|
|
77
|
+
ref: containerRef,
|
|
78
|
+
color,
|
|
79
|
+
width: containerRef.current.offsetWidth,
|
|
80
|
+
...props,
|
|
81
|
+
children: /* @__PURE__ */ jsx("span", { children: _.upperCase(name()) })
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
Avatar
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// components/types/avatar/styles.tsx
|
|
32
|
+
var styles_exports = {};
|
|
33
|
+
__export(styles_exports, {
|
|
34
|
+
Container: () => Container
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(styles_exports);
|
|
37
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
38
|
+
var Container = import_styled_components.default.div`
|
|
39
|
+
width: ${({ size }) => size || "2.3rem"};
|
|
40
|
+
height: ${({ size }) => size || "2.3rem"};
|
|
41
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
42
|
+
border: 2px solid ${({ theme }) => theme.t1};
|
|
43
|
+
background: ${({ color }) => color};
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
48
|
+
transition: ease .2s;
|
|
49
|
+
position: relative;
|
|
50
|
+
font-size: ${({ width }) => width / 2.5}px;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
color: ${({ theme }) => theme.primary};
|
|
53
|
+
|
|
54
|
+
span {
|
|
55
|
+
position: relative;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::before {
|
|
60
|
+
content: "";
|
|
61
|
+
position: absolute;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
transition: ease .2s;
|
|
65
|
+
background: ${({ theme }) => theme.t03};
|
|
66
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
67
|
+
z-index: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&::after {
|
|
71
|
+
content: "";
|
|
72
|
+
position: absolute;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
transition: ease .2s;
|
|
76
|
+
background: ${({ theme }) => theme.t05};
|
|
77
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
78
|
+
z-index: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
&::before {
|
|
83
|
+
transform: scale(1.6);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::after {
|
|
87
|
+
transform: scale(1.3);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
Container
|
|
94
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/types/avatar/styles.tsx
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
var Container = styled.div`
|
|
6
|
+
width: ${({ size }) => size || "2.3rem"};
|
|
7
|
+
height: ${({ size }) => size || "2.3rem"};
|
|
8
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
9
|
+
border: 2px solid ${({ theme }) => theme.t1};
|
|
10
|
+
background: ${({ color }) => color};
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
|
|
15
|
+
transition: ease .2s;
|
|
16
|
+
position: relative;
|
|
17
|
+
font-size: ${({ width }) => width / 2.5}px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
color: ${({ theme }) => theme.primary};
|
|
20
|
+
|
|
21
|
+
span {
|
|
22
|
+
position: relative;
|
|
23
|
+
z-index: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::before {
|
|
27
|
+
content: "";
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
transition: ease .2s;
|
|
32
|
+
background: ${({ theme }) => theme.t03};
|
|
33
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
34
|
+
z-index: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
content: "";
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
transition: ease .2s;
|
|
43
|
+
background: ${({ theme }) => theme.t05};
|
|
44
|
+
border-radius: ${({ size }) => size || "2.3rem"};
|
|
45
|
+
z-index: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
&::before {
|
|
50
|
+
transform: scale(1.6);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
transform: scale(1.3);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
export {
|
|
59
|
+
Container
|
|
60
|
+
};
|