@gustavo-valsechi/client 1.3.28 → 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
@@ -0,0 +1,168 @@
|
|
|
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/modal/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: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
top: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
display: flex !important;
|
|
44
|
+
position: fixed;
|
|
45
|
+
z-index: ${(props) => props.toggle ? "9" : "-1"};
|
|
46
|
+
flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
|
|
47
|
+
transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
|
|
48
|
+
transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
|
|
49
|
+
|
|
50
|
+
.iz-modal-back {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
background: rgb(0, 0, 0, 0.3);
|
|
54
|
+
opacity: ${(props) => props.toggle ? "1" : "0"};
|
|
55
|
+
transition: ease 0.3s;
|
|
56
|
+
position: absolute;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.iz-modal-container {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
height: ${(props) => props.position !== "center" ? "100%" : void 0};
|
|
63
|
+
width: ${(props) => props.position !== "center" ? "18rem" : void 0};
|
|
64
|
+
border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
|
|
65
|
+
max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
|
|
66
|
+
max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
|
|
67
|
+
background: ${({ theme }) => theme.primary};
|
|
68
|
+
transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(50%)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(43%)"};
|
|
69
|
+
opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
|
|
70
|
+
transition: ease 0.3s;
|
|
71
|
+
position: absolute;
|
|
72
|
+
|
|
73
|
+
${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
|
|
74
|
+
|
|
75
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
76
|
+
border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
|
|
77
|
+
width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
padding-bottom: 3rem !important;
|
|
80
|
+
|
|
81
|
+
transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(0)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(50%)"};
|
|
82
|
+
|
|
83
|
+
${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.iz-modal-header {
|
|
87
|
+
padding: 1.5rem 2rem;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
border-bottom: 1px solid rgb(0, 0, 0, 0.2);
|
|
92
|
+
|
|
93
|
+
.iz-modal-title {
|
|
94
|
+
color: ${({ theme }) => theme.t6};
|
|
95
|
+
font-size: 1rem;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
|
|
98
|
+
i {
|
|
99
|
+
margin-right: .5rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
span {
|
|
103
|
+
word-break: break-word;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.fa-xmark {
|
|
108
|
+
color: ${({ theme }) => theme.t6};
|
|
109
|
+
margin-left: .5rem;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
color: ${({ theme }) => theme.t8};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.iz-modal-content {
|
|
119
|
+
overflow-x: hidden;
|
|
120
|
+
overflow-y: overlay;
|
|
121
|
+
position: relative;
|
|
122
|
+
height: ${(props) => props.position === "center" ? "initial" : "100%"};
|
|
123
|
+
|
|
124
|
+
.iz-modal-close {
|
|
125
|
+
position: absolute;
|
|
126
|
+
color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
|
|
127
|
+
top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
|
|
128
|
+
right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
|
|
129
|
+
width: 1rem;
|
|
130
|
+
height: 1rem;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
z-index: 9;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
|
|
137
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:hover {
|
|
142
|
+
color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.iz-modal-buttons {
|
|
148
|
+
padding: 1rem 2rem;
|
|
149
|
+
|
|
150
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
151
|
+
padding: 1rem 2rem 2rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
button {
|
|
155
|
+
width: 100%;
|
|
156
|
+
margin-bottom: .5rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
button:last-child {
|
|
160
|
+
margin-bottom: 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
165
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
166
|
+
0 && (module.exports = {
|
|
167
|
+
Container
|
|
168
|
+
});
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/types/modal/styles.tsx
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
var Container = styled.div`
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
display: flex !important;
|
|
11
|
+
position: fixed;
|
|
12
|
+
z-index: ${(props) => props.toggle ? "9" : "-1"};
|
|
13
|
+
flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
|
|
14
|
+
transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
|
|
15
|
+
transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
|
|
16
|
+
|
|
17
|
+
.iz-modal-back {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
background: rgb(0, 0, 0, 0.3);
|
|
21
|
+
opacity: ${(props) => props.toggle ? "1" : "0"};
|
|
22
|
+
transition: ease 0.3s;
|
|
23
|
+
position: absolute;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.iz-modal-container {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
height: ${(props) => props.position !== "center" ? "100%" : void 0};
|
|
30
|
+
width: ${(props) => props.position !== "center" ? "18rem" : void 0};
|
|
31
|
+
border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
|
|
32
|
+
max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
|
|
33
|
+
max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
|
|
34
|
+
background: ${({ theme }) => theme.primary};
|
|
35
|
+
transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(50%)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(43%)"};
|
|
36
|
+
opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
|
|
37
|
+
transition: ease 0.3s;
|
|
38
|
+
position: absolute;
|
|
39
|
+
|
|
40
|
+
${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
|
|
41
|
+
|
|
42
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
43
|
+
border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
|
|
44
|
+
width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
|
|
45
|
+
max-width: 100%;
|
|
46
|
+
padding-bottom: 3rem !important;
|
|
47
|
+
|
|
48
|
+
transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(0)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(50%)"};
|
|
49
|
+
|
|
50
|
+
${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.iz-modal-header {
|
|
54
|
+
padding: 1.5rem 2rem;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
border-bottom: 1px solid rgb(0, 0, 0, 0.2);
|
|
59
|
+
|
|
60
|
+
.iz-modal-title {
|
|
61
|
+
color: ${({ theme }) => theme.t6};
|
|
62
|
+
font-size: 1rem;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
|
|
65
|
+
i {
|
|
66
|
+
margin-right: .5rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
span {
|
|
70
|
+
word-break: break-word;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.fa-xmark {
|
|
75
|
+
color: ${({ theme }) => theme.t6};
|
|
76
|
+
margin-left: .5rem;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
color: ${({ theme }) => theme.t8};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.iz-modal-content {
|
|
86
|
+
overflow-x: hidden;
|
|
87
|
+
overflow-y: overlay;
|
|
88
|
+
position: relative;
|
|
89
|
+
height: ${(props) => props.position === "center" ? "initial" : "100%"};
|
|
90
|
+
|
|
91
|
+
.iz-modal-close {
|
|
92
|
+
position: absolute;
|
|
93
|
+
color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
|
|
94
|
+
top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
|
|
95
|
+
right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
|
|
96
|
+
width: 1rem;
|
|
97
|
+
height: 1rem;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
z-index: 9;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
|
|
104
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.iz-modal-buttons {
|
|
115
|
+
padding: 1rem 2rem;
|
|
116
|
+
|
|
117
|
+
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
118
|
+
padding: 1rem 2rem 2rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
button {
|
|
122
|
+
width: 100%;
|
|
123
|
+
margin-bottom: .5rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
button:last-child {
|
|
127
|
+
margin-bottom: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
export {
|
|
133
|
+
Container
|
|
134
|
+
};
|