@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,280 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// contexts/icon/index.tsx
|
|
10
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
11
|
+
|
|
12
|
+
// contexts/theme/index.tsx
|
|
13
|
+
import { createContext, useContext, useState } from "react";
|
|
14
|
+
import { ThemeProvider } from "styled-components";
|
|
15
|
+
|
|
16
|
+
// contexts/theme/styles.tsx
|
|
17
|
+
import styled from "styled-components";
|
|
18
|
+
var Switcher = styled.div`
|
|
19
|
+
width: 3rem;
|
|
20
|
+
height: 1.5rem;
|
|
21
|
+
border-radius: 1rem;
|
|
22
|
+
border: 2px solid ${({ theme }) => theme.t05};
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
position: relative;
|
|
28
|
+
|
|
29
|
+
i {
|
|
30
|
+
color: ${({ theme }) => theme.t6};
|
|
31
|
+
position: absolute;
|
|
32
|
+
transform: translateY(-50%);
|
|
33
|
+
font-size: .9rem;
|
|
34
|
+
z-index: 0;
|
|
35
|
+
transition: ease .8s;
|
|
36
|
+
|
|
37
|
+
&:first-child {
|
|
38
|
+
left: .2rem;
|
|
39
|
+
top: 50%;
|
|
40
|
+
opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:last-child {
|
|
44
|
+
right: .2rem;
|
|
45
|
+
top: 50%;
|
|
46
|
+
opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.switcher {
|
|
51
|
+
width: 1rem;
|
|
52
|
+
height: 1rem;
|
|
53
|
+
border-radius: 1rem;
|
|
54
|
+
position: relative;
|
|
55
|
+
transition: ease .3s;
|
|
56
|
+
transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
|
|
57
|
+
z-index: 1;
|
|
58
|
+
|
|
59
|
+
div {
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
background: ${({ theme }) => theme.primary};
|
|
63
|
+
border-radius: 1rem;
|
|
64
|
+
position: relative;
|
|
65
|
+
z-index: 2;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:after {
|
|
69
|
+
content: "";
|
|
70
|
+
position: absolute;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
border-radius: 1rem;
|
|
74
|
+
transform: scale(1.8);
|
|
75
|
+
background: ${({ theme }) => theme.t05};
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
z-index: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:before {
|
|
82
|
+
content: "";
|
|
83
|
+
position: absolute;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
border-radius: 1rem;
|
|
87
|
+
transform: scale(3);
|
|
88
|
+
background: ${({ theme }) => theme.t05};
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
z-index: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
// contexts/theme/content.tsx
|
|
97
|
+
var CommonTheme = {
|
|
98
|
+
secondary: "#5869da",
|
|
99
|
+
tertiary: "#629dfd33",
|
|
100
|
+
positive: "#65c965",
|
|
101
|
+
negative: "#FF334E",
|
|
102
|
+
mobileMaxWidth: "650px",
|
|
103
|
+
mobileMinWidth: "315px"
|
|
104
|
+
};
|
|
105
|
+
var Themes = {
|
|
106
|
+
light: {
|
|
107
|
+
primary: "#ffffff",
|
|
108
|
+
reverse: "#353535",
|
|
109
|
+
tooltip: "#f2f2f2",
|
|
110
|
+
t8: "#000000cc",
|
|
111
|
+
t7: "#000000b3",
|
|
112
|
+
t6: "#00000099",
|
|
113
|
+
t5: "#00000080",
|
|
114
|
+
t4: "#00000066",
|
|
115
|
+
t3: "#0000004d",
|
|
116
|
+
t2: "#00000033",
|
|
117
|
+
t1: "#0000001a",
|
|
118
|
+
t08: "#00000014",
|
|
119
|
+
t05: "#0000000d",
|
|
120
|
+
t03: "#00000007",
|
|
121
|
+
t02: "#00000005",
|
|
122
|
+
t01: "#00000002",
|
|
123
|
+
lgrad: `linear-gradient(
|
|
124
|
+
to right,
|
|
125
|
+
#dadef7 0%,
|
|
126
|
+
#dee2f8 5%,
|
|
127
|
+
#e2e5f9 10%,
|
|
128
|
+
#e6e9fa 20%,
|
|
129
|
+
#eaedfb 30%,
|
|
130
|
+
#eff0fb 60%,
|
|
131
|
+
#f3f4fc 80%,
|
|
132
|
+
#f7f8fd 90%,
|
|
133
|
+
#fbfbfe 100%
|
|
134
|
+
)`,
|
|
135
|
+
maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
|
|
136
|
+
...CommonTheme
|
|
137
|
+
},
|
|
138
|
+
dark: {
|
|
139
|
+
primary: "#333333",
|
|
140
|
+
reverse: "#b45252",
|
|
141
|
+
tooltip: "#3d3d3d",
|
|
142
|
+
t8: "#ffffffcc",
|
|
143
|
+
t7: "#ffffffb3",
|
|
144
|
+
t6: "#ffffff99",
|
|
145
|
+
t5: "#ffffff80",
|
|
146
|
+
t4: "#ffffff66",
|
|
147
|
+
t3: "#ffffff4d",
|
|
148
|
+
t2: "#ffffff33",
|
|
149
|
+
t1: "#ffffff1a",
|
|
150
|
+
t08: "#ffffff14",
|
|
151
|
+
t05: "#ffffff0d",
|
|
152
|
+
t03: "#ffffff07",
|
|
153
|
+
t02: "#ffffff05",
|
|
154
|
+
t01: "#ffffff02",
|
|
155
|
+
lgrad: `linear-gradient(
|
|
156
|
+
to right,
|
|
157
|
+
#3d485c 0%,
|
|
158
|
+
#3c4657 5%,
|
|
159
|
+
#3b4353 10%,
|
|
160
|
+
#3a414e 20%,
|
|
161
|
+
#393f4a 30%,
|
|
162
|
+
#373c45 60%,
|
|
163
|
+
#363a41 80%,
|
|
164
|
+
#35383c 90%,
|
|
165
|
+
#343538 100%
|
|
166
|
+
)`,
|
|
167
|
+
maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
|
|
168
|
+
...CommonTheme
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
// contexts/theme/index.tsx
|
|
173
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
174
|
+
var ThemeContext = createContext({});
|
|
175
|
+
var useTheme = () => useContext(ThemeContext);
|
|
176
|
+
|
|
177
|
+
// contexts/icon/index.tsx
|
|
178
|
+
import _ from "lodash";
|
|
179
|
+
|
|
180
|
+
// contexts/icon/assets/brands/index.tsx
|
|
181
|
+
var req = __require.context("./", false, /\.svg$/);
|
|
182
|
+
var brands = {};
|
|
183
|
+
req.keys().forEach((key) => {
|
|
184
|
+
const name = key.replace("./", "").replace(".svg", "");
|
|
185
|
+
brands[name] = req(key).default;
|
|
186
|
+
});
|
|
187
|
+
var brands_default = brands;
|
|
188
|
+
|
|
189
|
+
// contexts/icon/assets/regular/index.tsx
|
|
190
|
+
var req2 = __require.context("./", false, /\.svg$/);
|
|
191
|
+
var regular = {};
|
|
192
|
+
req2.keys().forEach((key) => {
|
|
193
|
+
const name = key.replace("./", "").replace(".svg", "");
|
|
194
|
+
regular[name] = req2(key).default;
|
|
195
|
+
});
|
|
196
|
+
var regular_default = regular;
|
|
197
|
+
|
|
198
|
+
// contexts/icon/assets/solid/index.tsx
|
|
199
|
+
var req3 = __require.context("./", false, /\.svg$/);
|
|
200
|
+
var solid = {};
|
|
201
|
+
req3.keys().forEach((key) => {
|
|
202
|
+
const name = key.replace("./", "").replace(".svg", "");
|
|
203
|
+
solid[name] = req3(key).default;
|
|
204
|
+
});
|
|
205
|
+
var solid_default = solid;
|
|
206
|
+
|
|
207
|
+
// contexts/icon/assets/index.tsx
|
|
208
|
+
var assets_default = {
|
|
209
|
+
brands: brands_default,
|
|
210
|
+
regular: regular_default,
|
|
211
|
+
solid: solid_default
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
// contexts/icon/index.tsx
|
|
215
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
216
|
+
var IconContext = createContext2({});
|
|
217
|
+
var IconProviderContainer = ({ children }) => {
|
|
218
|
+
const { content } = useTheme();
|
|
219
|
+
const [isClient, setIsClient] = useState2(false);
|
|
220
|
+
const [matches, setMatches] = useState2(0);
|
|
221
|
+
useEffect2(() => {
|
|
222
|
+
setIsClient(true);
|
|
223
|
+
}, []);
|
|
224
|
+
useEffect2(() => {
|
|
225
|
+
const firstMediaQuery = window.matchMedia(`(max-width: ${content.mobileMaxWidth})`);
|
|
226
|
+
const secoundMediaQuery = window.matchMedia(`(max-width: ${content.mobileMinWidth})`);
|
|
227
|
+
const firstHandler = (event) => setMatches(event.matches ? 1 : 0);
|
|
228
|
+
const secoundHandler = (event) => setMatches(event.matches ? 2 : 1);
|
|
229
|
+
if (firstMediaQuery.matches) setMatches(1);
|
|
230
|
+
if (secoundMediaQuery.matches) setMatches(2);
|
|
231
|
+
firstMediaQuery.addEventListener("change", firstHandler);
|
|
232
|
+
secoundMediaQuery.addEventListener("change", secoundHandler);
|
|
233
|
+
return () => {
|
|
234
|
+
firstMediaQuery.removeEventListener("change", firstHandler);
|
|
235
|
+
secoundMediaQuery.removeEventListener("change", secoundHandler);
|
|
236
|
+
};
|
|
237
|
+
}, []);
|
|
238
|
+
useEffect2(() => {
|
|
239
|
+
if (!isClient) return;
|
|
240
|
+
const processElement = (element) => {
|
|
241
|
+
var _a, _b, _c, _d, _e;
|
|
242
|
+
const name = element.getAttribute("class");
|
|
243
|
+
if (!name) return;
|
|
244
|
+
const icon = _.split(_.replace(name, /fa-/g, ""), " ");
|
|
245
|
+
if (!icon.length) return;
|
|
246
|
+
let svg = (_d = (_c = (_a = assets_default[icon[0]]) == null ? void 0 : _a[icon[1]]) != null ? _c : (_b = assets_default["solid"]) == null ? void 0 : _b[icon[0]]) != null ? _d : "";
|
|
247
|
+
if (!svg) return;
|
|
248
|
+
svg = svg.replace(/fill=".*?"/g, 'fill="currentColor"');
|
|
249
|
+
const styles = window.getComputedStyle(element);
|
|
250
|
+
const size = Number((_e = _.split(styles.fontSize, "px")) == null ? void 0 : _e[0]) + 2;
|
|
251
|
+
element.style.width = `${size}px`;
|
|
252
|
+
element.style.height = `${size}px`;
|
|
253
|
+
element.textContent = "";
|
|
254
|
+
element.innerHTML = svg;
|
|
255
|
+
};
|
|
256
|
+
document.querySelectorAll("i").forEach((el) => processElement(el));
|
|
257
|
+
const observer = new MutationObserver((mutations) => {
|
|
258
|
+
mutations.forEach((mutation) => {
|
|
259
|
+
mutation.addedNodes.forEach((node) => {
|
|
260
|
+
if (node.nodeType === 1) {
|
|
261
|
+
const el = node;
|
|
262
|
+
if (el.tagName.toLowerCase() === "i") processElement(el);
|
|
263
|
+
el.querySelectorAll("i").forEach((child) => processElement(child));
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
observer.observe(document.body, {
|
|
269
|
+
childList: true,
|
|
270
|
+
subtree: true
|
|
271
|
+
});
|
|
272
|
+
return () => observer.disconnect();
|
|
273
|
+
}, [isClient, matches]);
|
|
274
|
+
return /* @__PURE__ */ jsx2(IconContext.Provider, { value: {}, children });
|
|
275
|
+
};
|
|
276
|
+
var useIcon = () => useContext2(IconContext);
|
|
277
|
+
export {
|
|
278
|
+
IconProviderContainer as IconProvider,
|
|
279
|
+
useIcon
|
|
280
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// contexts/icon/styles.tsx
|
|
31
|
+
var styles_exports = {};
|
|
32
|
+
__export(styles_exports, {
|
|
33
|
+
Container: () => Container
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(styles_exports);
|
|
36
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
37
|
+
var Container = import_styled_components.default.div`
|
|
38
|
+
|
|
39
|
+
`;
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
Container
|
|
43
|
+
});
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const IconProviderContainer: ({ children }: IIconProvider) => react_jsx_runtime.JSX.Element;
|
|
7
|
-
declare const useIcon: () => any;
|
|
8
|
-
|
|
9
|
-
declare const ThemeProviderContainer: (props: IThemeProvider) => react_jsx_runtime.JSX.Element;
|
|
10
|
-
declare const useTheme: () => IThemeContext;
|
|
11
|
-
|
|
12
|
-
declare const TooltipProviderContainer: ({ children }: {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
15
|
-
declare const useTooltip: () => any;
|
|
16
|
-
|
|
17
|
-
declare const ModalProviderContainer: ({ children }: IModalProvider) => react_jsx_runtime.JSX.Element;
|
|
18
|
-
declare const useModal: () => IModalContext;
|
|
19
|
-
|
|
20
|
-
export { IconProviderContainer as IconProvider, ModalProviderContainer as ModalProvider, ThemeProviderContainer as ThemeProvider, TooltipProviderContainer as TooltipProvider, useIcon, useModal, useTheme, useTooltip };
|
|
1
|
+
export * from "./icon";
|
|
2
|
+
export * from "./theme";
|
|
3
|
+
export * from "./tooltip";
|
|
4
|
+
export * from "./modal";
|
package/dist/contexts/index.js
CHANGED
package/dist/contexts/index.mjs
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IModalProvider, IModalContext } from "@interfaces";
|
|
2
|
+
declare const ModalProviderContainer: ({ children }: IModalProvider) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const useModal: () => IModalContext;
|
|
4
|
+
export { ModalProviderContainer as ModalProvider, useModal };
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
// contexts/modal/index.tsx
|
|
32
|
+
var modal_exports = {};
|
|
33
|
+
__export(modal_exports, {
|
|
34
|
+
ModalProvider: () => ModalProviderContainer,
|
|
35
|
+
useModal: () => useModal
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(modal_exports);
|
|
38
|
+
var import_react = require("react");
|
|
39
|
+
var import_navigation = require("next/navigation");
|
|
40
|
+
|
|
41
|
+
// contexts/modal/styles.tsx
|
|
42
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
43
|
+
var Container = import_styled_components.default.div`
|
|
44
|
+
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
// contexts/modal/index.tsx
|
|
48
|
+
var import_lodash = __toESM(require("lodash"));
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var ModalContext = (0, import_react.createContext)({});
|
|
51
|
+
var memory = [];
|
|
52
|
+
var ModalProviderContainer = ({ children }) => {
|
|
53
|
+
const pathname = (0, import_navigation.usePathname)();
|
|
54
|
+
const [modals, setModals] = (0, import_react.useState)([]);
|
|
55
|
+
(0, import_react.useEffect)(() => {
|
|
56
|
+
setModals(import_lodash.default.filter(memory, (modal) => modal.type === "fixed"));
|
|
57
|
+
}, [pathname]);
|
|
58
|
+
const add = (modal) => {
|
|
59
|
+
if (import_lodash.default.some(memory, (data) => data.name === modal.name)) return;
|
|
60
|
+
memory.push(modal);
|
|
61
|
+
setModals(memory);
|
|
62
|
+
};
|
|
63
|
+
const remove = (modalName) => {
|
|
64
|
+
const index = import_lodash.default.findIndex(memory, (data) => data.name === modalName);
|
|
65
|
+
memory.slice(index, 1);
|
|
66
|
+
setModals(memory);
|
|
67
|
+
};
|
|
68
|
+
const setProps = (modalName, props) => {
|
|
69
|
+
const index = import_lodash.default.findIndex(modals, (modal) => modal.name === modalName);
|
|
70
|
+
const content = import_lodash.default.find(modals, (modal) => modal.name === modalName);
|
|
71
|
+
if (!content) return;
|
|
72
|
+
let settedModals = [...modals];
|
|
73
|
+
settedModals.splice(index, 1, { ...content, props: { ...content.props, ...props } });
|
|
74
|
+
setModals(settedModals);
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
77
|
+
ModalContext.Provider,
|
|
78
|
+
{
|
|
79
|
+
value: {
|
|
80
|
+
value: modals,
|
|
81
|
+
add,
|
|
82
|
+
remove,
|
|
83
|
+
setProps
|
|
84
|
+
},
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, { children: import_lodash.default.map(modals, (modal, index) => {
|
|
87
|
+
const ModalComponent = modal.component;
|
|
88
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalComponent, { ...modal.props }, index);
|
|
89
|
+
}) }),
|
|
90
|
+
children
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
var useModal = () => (0, import_react.useContext)(ModalContext);
|
|
96
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
97
|
+
0 && (module.exports = {
|
|
98
|
+
ModalProvider,
|
|
99
|
+
useModal
|
|
100
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// contexts/modal/index.tsx
|
|
4
|
+
import { createContext, useContext, useEffect, useState } from "react";
|
|
5
|
+
import { usePathname } from "next/navigation";
|
|
6
|
+
|
|
7
|
+
// contexts/modal/styles.tsx
|
|
8
|
+
import styled from "styled-components";
|
|
9
|
+
var Container = styled.div`
|
|
10
|
+
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
// contexts/modal/index.tsx
|
|
14
|
+
import _ from "lodash";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var ModalContext = createContext({});
|
|
17
|
+
var memory = [];
|
|
18
|
+
var ModalProviderContainer = ({ children }) => {
|
|
19
|
+
const pathname = usePathname();
|
|
20
|
+
const [modals, setModals] = useState([]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
setModals(_.filter(memory, (modal) => modal.type === "fixed"));
|
|
23
|
+
}, [pathname]);
|
|
24
|
+
const add = (modal) => {
|
|
25
|
+
if (_.some(memory, (data) => data.name === modal.name)) return;
|
|
26
|
+
memory.push(modal);
|
|
27
|
+
setModals(memory);
|
|
28
|
+
};
|
|
29
|
+
const remove = (modalName) => {
|
|
30
|
+
const index = _.findIndex(memory, (data) => data.name === modalName);
|
|
31
|
+
memory.slice(index, 1);
|
|
32
|
+
setModals(memory);
|
|
33
|
+
};
|
|
34
|
+
const setProps = (modalName, props) => {
|
|
35
|
+
const index = _.findIndex(modals, (modal) => modal.name === modalName);
|
|
36
|
+
const content = _.find(modals, (modal) => modal.name === modalName);
|
|
37
|
+
if (!content) return;
|
|
38
|
+
let settedModals = [...modals];
|
|
39
|
+
settedModals.splice(index, 1, { ...content, props: { ...content.props, ...props } });
|
|
40
|
+
setModals(settedModals);
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ jsxs(
|
|
43
|
+
ModalContext.Provider,
|
|
44
|
+
{
|
|
45
|
+
value: {
|
|
46
|
+
value: modals,
|
|
47
|
+
add,
|
|
48
|
+
remove,
|
|
49
|
+
setProps
|
|
50
|
+
},
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsx(Container, { children: _.map(modals, (modal, index) => {
|
|
53
|
+
const ModalComponent = modal.component;
|
|
54
|
+
return /* @__PURE__ */ jsx(ModalComponent, { ...modal.props }, index);
|
|
55
|
+
}) }),
|
|
56
|
+
children
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
var useModal = () => useContext(ModalContext);
|
|
62
|
+
export {
|
|
63
|
+
ModalProviderContainer as ModalProvider,
|
|
64
|
+
useModal
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// contexts/modal/styles.tsx
|
|
31
|
+
var styles_exports = {};
|
|
32
|
+
__export(styles_exports, {
|
|
33
|
+
Container: () => Container
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(styles_exports);
|
|
36
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
37
|
+
var Container = import_styled_components.default.div`
|
|
38
|
+
|
|
39
|
+
`;
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
Container
|
|
43
|
+
});
|