@fluidattacks/design 3.1.12 → 3.1.13
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/@core/index.js +2 -2
- package/dist/components/accordion/accordion-content/index.js +18 -5
- package/dist/components/accordion/index.js +71 -14
- package/dist/components/alert/index.js +108 -57
- package/dist/components/button/index.js +64 -13
- package/dist/components/card/card-header/index.js +78 -9
- package/dist/components/card/card-with-image/index.js +88 -13
- package/dist/components/card/card-with-input/index.js +72 -23
- package/dist/components/card/card-with-selector/index.js +63 -8
- package/dist/components/card/card-with-switch/index.js +46 -8
- package/dist/components/carousel/index.js +54 -28
- package/dist/components/checkbox/index.js +66 -32
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +64 -19
- package/dist/components/code-snippet/location-code/index.js +146 -100
- package/dist/components/colors/index.js +220 -5
- package/dist/components/confirm-dialog/index.js +41 -18
- package/dist/components/container/index.js +39 -15
- package/dist/components/content-card/category-tag/index.js +37 -8
- package/dist/components/content-card/event-date/index.js +53 -10
- package/dist/components/content-card/index.js +118 -13
- package/dist/components/content-card-carousel/index.js +87 -7
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +22 -7
- package/dist/components/empty-state/empty-button/index.js +4 -4
- package/dist/components/empty-state/index.js +52 -15
- package/dist/components/file-preview/index.js +28 -12
- package/dist/components/form/index.js +46 -9
- package/dist/components/grid-container/index.js +31 -11
- package/dist/components/group-selector/index.js +126 -17
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +78 -18
- package/dist/components/icon-button/index.js +63 -14
- package/dist/components/indicator-card/index.js +70 -11
- package/dist/components/info-sidebar/index.js +107 -7
- package/dist/components/inputs/fields/combobox/index.js +141 -21
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
- package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
- package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
- package/dist/components/inputs/fields/date/calendar/index.js +26 -11
- package/dist/components/inputs/fields/date/index.js +65 -15
- package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
- package/dist/components/inputs/fields/date-range/index.js +98 -18
- package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
- package/dist/components/inputs/fields/date-time/index.js +65 -14
- package/dist/components/inputs/fields/editable/index.js +22 -10
- package/dist/components/inputs/fields/input/index.js +74 -10
- package/dist/components/inputs/fields/input-file/index.js +114 -21
- package/dist/components/inputs/fields/input-tags/index.js +60 -11
- package/dist/components/inputs/fields/number/index.js +54 -7
- package/dist/components/inputs/fields/number-range/index.js +46 -8
- package/dist/components/inputs/fields/phone/index.js +446 -286
- package/dist/components/inputs/fields/text-area/index.js +78 -10
- package/dist/components/inputs/label/index.js +34 -8
- package/dist/components/inputs/outline-container/index.js +98 -12
- package/dist/components/inputs/utils/action-button/index.js +28 -7
- package/dist/components/inputs/utils/calendar-button/index.js +34 -10
- package/dist/components/inputs/utils/date-selector/index.js +60 -6
- package/dist/components/inputs/utils/date-time-field/index.js +129 -28
- package/dist/components/inputs/utils/dialog/index.js +10 -7
- package/dist/components/inputs/utils/number-field/index.js +81 -8
- package/dist/components/inputs/utils/popover/index.js +41 -10
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +110 -7
- package/dist/components/language-selector/index.js +34 -10
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/link/index.js +71 -17
- package/dist/components/list-item/index.js +64 -13
- package/dist/components/little-flag/index.js +26 -9
- package/dist/components/loading/index.js +48 -21
- package/dist/components/logo/index.js +10 -4
- package/dist/components/logo-carousel/index.js +40 -5
- package/dist/components/lottie/index.js +12 -7
- package/dist/components/menu/index.js +53 -9
- package/dist/components/message-banner/index.js +79 -13
- package/dist/components/modal/index.js +59 -13
- package/dist/components/modal/modal-confirm/index.js +48 -7
- package/dist/components/modal/modal-footer/index.js +22 -13
- package/dist/components/modal/modal-header/index.js +45 -19
- package/dist/components/notification/index.js +65 -20
- package/dist/components/notification-sign/index.js +27 -10
- package/dist/components/number-input/index.js +58 -21
- package/dist/components/oauth-selector/index.js +97 -23
- package/dist/components/oauth-selector/option-container/index.js +68 -7
- package/dist/components/plan-card/index.js +99 -28
- package/dist/components/plan-card/recommended-tag/index.js +23 -2
- package/dist/components/pop-up/description/index.js +47 -9
- package/dist/components/pop-up/index.js +146 -17
- package/dist/components/premium-feature/index.js +56 -16
- package/dist/components/priority-score/index.js +24 -9
- package/dist/components/progress/index.js +30 -17
- package/dist/components/progress-bar/index.js +99 -41
- package/dist/components/radio-button/index.js +64 -27
- package/dist/components/scroll-button/index.js +33 -15
- package/dist/components/search/index.js +77 -35
- package/dist/components/search-bar/index.js +211 -24
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +66 -6
- package/dist/components/severity-overview/badge/index.js +62 -11
- package/dist/components/severity-overview/index.js +15 -5
- package/dist/components/show-on-hover/index.js +16 -10
- package/dist/components/slide-out-menu/index.js +2611 -1164
- package/dist/components/slide-out-menu/menu-item/index.js +58 -6
- package/dist/components/slider/index.js +79 -48
- package/dist/components/slider/thumb/index.js +13 -6
- package/dist/components/step-lapse/index.js +81 -23
- package/dist/components/table-button/index.js +65 -24
- package/dist/components/tabs/fixed-tabs/index.js +24 -4
- package/dist/components/tabs/index.js +54 -11
- package/dist/components/tabs/tab/index.js +37 -6
- package/dist/components/tag/index.js +95 -27
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +15 -5
- package/dist/components/toggle/index.js +65 -25
- package/dist/components/toggle-buttons/index.js +51 -22
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +3897 -1829
- package/dist/components/typography/heading/index.js +43 -5
- package/dist/components/typography/span/index.js +38 -6
- package/dist/components/typography/text/index.js +44 -6
- package/dist/components/web-form/index.js +28 -19
- package/dist/hooks/index.js +5 -5
- package/dist/index-BMHVi812.mjs +234 -0
- package/dist/index-BzAniA2J.mjs +135 -0
- package/dist/index-C6LbClYh.mjs +146 -0
- package/dist/index-CAIe8hBv.mjs +130 -0
- package/dist/index-CUQBAqt_.mjs +75 -0
- package/dist/index-CWlrSlUk.mjs +68 -0
- package/dist/index-Ckmu1TfV.mjs +86 -0
- package/dist/index-DwznImvK.mjs +1678 -0
- package/dist/index-maWH3JYC.mjs +3561 -0
- package/dist/index.js +11 -11
- package/dist/styles-B2N0JLw1.mjs +114 -0
- package/dist/styles-B64DVBIF.mjs +115 -0
- package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
- package/dist/styles-BZQOqe8p.mjs +141 -0
- package/dist/styles-Bdque9TT.mjs +65 -0
- package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
- package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
- package/dist/styles-CplEd2kw.mjs +228 -0
- package/dist/styles-D1eTIklB.mjs +110 -0
- package/dist/styles-ePGii_9g.mjs +74 -0
- package/dist/use-carousel-CgAF78h3.mjs +23 -0
- package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
- package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
- package/dist/use-modal-CtgexKnf.mjs +14 -0
- package/dist/use-search-Dj47QDw9.mjs +15 -0
- package/dist/utils-V0EumEPM.mjs +6 -0
- package/package.json +1 -3
- package/dist/index-38JqtnAI.mjs +0 -122
- package/dist/index-B5yoGFs6.mjs +0 -54
- package/dist/index-BLbKylyw.mjs +0 -209
- package/dist/index-Bu448Tz2.mjs +0 -106
- package/dist/index-BwFnfaRh.mjs +0 -2310
- package/dist/index-Co_k0WFk.mjs +0 -75
- package/dist/index-Cu7uUMlx.mjs +0 -82
- package/dist/index-D-lcuEHY.mjs +0 -1018
- package/dist/index-DrfjITyT.mjs +0 -61
- package/dist/styles-7_q7nHce.mjs +0 -110
- package/dist/styles-BA0WIQL-.mjs +0 -74
- package/dist/styles-C3cZmKVJ.mjs +0 -131
- package/dist/styles-D85YYIjM.mjs +0 -131
- package/dist/styles-EIbGRPlk.mjs +0 -106
- package/dist/styles-Q1VXuWI7.mjs +0 -65
- package/dist/styles-fH2c4cfc.mjs +0 -77
- package/dist/use-carousel-CvRxi2FI.mjs +0 -17
- package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
- package/dist/use-modal-CkrZ-_-M.mjs +0 -14
- package/dist/use-search-DpLNvt7Q.mjs +0 -12
- package/dist/utils-CQvBF-wY.mjs +0 -4
package/dist/index-DrfjITyT.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as d } from "react";
|
|
3
|
-
import { useOption as g } from "react-aria";
|
|
4
|
-
import { styled as o } from "styled-components";
|
|
5
|
-
import { Icon as m } from "./components/icon/index.js";
|
|
6
|
-
const w = o.ul`
|
|
7
|
-
${({ theme: n }) => `
|
|
8
|
-
align-self: center;
|
|
9
|
-
background: ${n.palette.white};
|
|
10
|
-
border: 1px solid ${n.palette.gray[200]};
|
|
11
|
-
border-radius: ${n.spacing[0.25]};
|
|
12
|
-
box-shadow: ${n.shadows.md};
|
|
13
|
-
list-style: none;
|
|
14
|
-
max-height: 200px;
|
|
15
|
-
min-width: 240px;
|
|
16
|
-
overflow: hidden auto;
|
|
17
|
-
scrollbar-color: ${n.palette.gray[600]} ${n.palette.gray[100]};
|
|
18
|
-
scroll-padding: ${n.spacing[0.5]};
|
|
19
|
-
width: 95%;
|
|
20
|
-
`}
|
|
21
|
-
`, y = o.li`
|
|
22
|
-
${({ theme: n }) => `
|
|
23
|
-
align-items: center;
|
|
24
|
-
color: ${n.palette.gray[800]};
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
display: flex;
|
|
27
|
-
font-family: ${n.typography.type.primary};
|
|
28
|
-
font-size: ${n.typography.text.sm};
|
|
29
|
-
gap: ${n.spacing[0.5]};
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
line-height: ${n.spacing[1.25]};
|
|
32
|
-
padding: ${n.spacing[0.25]} ${n.spacing[1]};
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
|
|
37
|
-
span {
|
|
38
|
-
color: ${n.palette.gray[700]};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:hover {
|
|
42
|
-
background: ${n.palette.gray[100]};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.selected {
|
|
46
|
-
background: ${n.palette.gray[200]};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.disabled {
|
|
50
|
-
color: ${n.palette.gray[400]};
|
|
51
|
-
cursor: not-allowed;
|
|
52
|
-
}
|
|
53
|
-
`}
|
|
54
|
-
`, b = ({ item: n, state: a }) => {
|
|
55
|
-
const e = d(null), { optionProps: s, isSelected: t, isFocused: i, isDisabled: r } = g({ key: n.value }, a, e), l = [t ? "selected" : "", i ? "focused" : "", r ? "disabled" : ""].join(" ");
|
|
56
|
-
return p(y, { ...s, className: l, ref: e, children: [n.name, t ? c(m, { icon: "check", iconSize: "xxs", iconType: "fa-light" }) : void 0] });
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
b as O,
|
|
60
|
-
w as S
|
|
61
|
-
};
|
package/dist/styles-7_q7nHce.mjs
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { styled as n, css as o } from "styled-components";
|
|
2
|
-
import { a as s } from "./styles-C3cZmKVJ.mjs";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
const c = n(s)`
|
|
5
|
-
align-items: center;
|
|
6
|
-
background-color: inherit;
|
|
7
|
-
border-color: inherit;
|
|
8
|
-
display: flex;
|
|
9
|
-
height: 38px;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
width: 40px;
|
|
12
|
-
margin: ${({ $margin: e = "0" }) => o`
|
|
13
|
-
${e}
|
|
14
|
-
`};
|
|
15
|
-
|
|
16
|
-
&:hover:not(:disabled) {
|
|
17
|
-
background-color: ${({ theme: e }) => e.palette.gray[100]};
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
20
|
-
`, g = n.div`
|
|
21
|
-
${({ theme: e }) => `
|
|
22
|
-
align-items: flex-start;
|
|
23
|
-
background: ${e.palette.white};
|
|
24
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
25
|
-
border-radius: ${e.spacing[0.5]};
|
|
26
|
-
box-shadow: ${e.shadows.md};
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
gap: ${e.spacing[0.25]};
|
|
30
|
-
height: auto;
|
|
31
|
-
padding: ${e.spacing[0.25]};
|
|
32
|
-
width: 292px;
|
|
33
|
-
`}
|
|
34
|
-
`, h = n.button`
|
|
35
|
-
${({ theme: e, $disabled: a, $focus: i, $header: t }) => {
|
|
36
|
-
const r = i ? "34px" : "40px";
|
|
37
|
-
return `
|
|
38
|
-
align-items: center;
|
|
39
|
-
border-radius: ${t ? `0 ${e.spacing[0.5]} ${e.spacing[0.5]} 0` : "4px"};
|
|
40
|
-
border-left: inherit;
|
|
41
|
-
display: flex;
|
|
42
|
-
height: ${t ? "38px" : r};
|
|
43
|
-
justify-content: center;
|
|
44
|
-
outline: none;
|
|
45
|
-
width: ${t ? "38px" : "40px"};
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
background-color: ${e.palette.gray[a ? 500 : 100]};
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
}}
|
|
52
|
-
`, $ = n.div`
|
|
53
|
-
${({ theme: e }) => `
|
|
54
|
-
align-items: center;
|
|
55
|
-
background: transparent;
|
|
56
|
-
border-radius: ${e.spacing[0.5]} 0 0 ${e.spacing[0.5]};
|
|
57
|
-
border-color: inherit;
|
|
58
|
-
display: flex;
|
|
59
|
-
height: 100%;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
width: calc(100% - 40px);
|
|
62
|
-
`}
|
|
63
|
-
`, x = n.div`
|
|
64
|
-
align-items: center;
|
|
65
|
-
display: flex;
|
|
66
|
-
justify-content: flex-end;
|
|
67
|
-
gap: ${({ theme: e }) => e.spacing[0.5]};
|
|
68
|
-
flex: 1 0 0;
|
|
69
|
-
`, u = n.div`
|
|
70
|
-
${({ theme: e }) => `
|
|
71
|
-
align-items: center;
|
|
72
|
-
align-self: stretch;
|
|
73
|
-
background-color: ${e.palette.gray[200]};
|
|
74
|
-
border-radius: ${e.spacing[0.25]};
|
|
75
|
-
display: flex;
|
|
76
|
-
font-family: ${e.typography.type.primary};
|
|
77
|
-
gap: ${e.spacing[0.25]};
|
|
78
|
-
line-height: ${e.spacing[1.5]};
|
|
79
|
-
padding: 2px ${e.spacing[0.25]};
|
|
80
|
-
`}
|
|
81
|
-
`, y = n.button`
|
|
82
|
-
${({ theme: e }) => `
|
|
83
|
-
align-items: center;
|
|
84
|
-
background-color: inherit;
|
|
85
|
-
border: 0.5px solid ${e.palette.gray[200]};
|
|
86
|
-
border-radius: 7px;
|
|
87
|
-
color: ${e.palette.gray[800]};
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
display: flex;
|
|
90
|
-
font-weight: ${e.typography.weight.regular};
|
|
91
|
-
justify-content: center;
|
|
92
|
-
gap: 10px;
|
|
93
|
-
padding: 2px 10px;
|
|
94
|
-
|
|
95
|
-
&#active {
|
|
96
|
-
background-color: ${e.palette.white};
|
|
97
|
-
box-shadow: ${e.shadows.md};
|
|
98
|
-
font-weight: ${e.typography.weight.bold};
|
|
99
|
-
}
|
|
100
|
-
`}
|
|
101
|
-
`;
|
|
102
|
-
export {
|
|
103
|
-
h as C,
|
|
104
|
-
g as D,
|
|
105
|
-
$ as I,
|
|
106
|
-
c as S,
|
|
107
|
-
x as T,
|
|
108
|
-
u as a,
|
|
109
|
-
y as b
|
|
110
|
-
};
|
package/dist/styles-BA0WIQL-.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { NavLink as e } from "react-router-dom";
|
|
2
|
-
import { styled as n } from "styled-components";
|
|
3
|
-
const r = n.button`
|
|
4
|
-
${({ theme: t }) => `
|
|
5
|
-
align-items: center;
|
|
6
|
-
color: ${t.palette.gray[500]};
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: ${t.spacing[0.625]};
|
|
9
|
-
justify-content: center;
|
|
10
|
-
padding: ${t.spacing[0.75]};
|
|
11
|
-
text-align: center;
|
|
12
|
-
width: 151px;
|
|
13
|
-
|
|
14
|
-
&.active {
|
|
15
|
-
color: ${t.palette.gray[800]};
|
|
16
|
-
border-bottom: 3px solid ${t.palette.primary[400]};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
color: ${t.palette.gray[800]};
|
|
21
|
-
}
|
|
22
|
-
`}
|
|
23
|
-
`, p = n.div`
|
|
24
|
-
${({ theme: t }) => `
|
|
25
|
-
align-items: center;
|
|
26
|
-
border-bottom: 2px solid ${t.palette.gray[200]};
|
|
27
|
-
display: flex;
|
|
28
|
-
gap: ${t.spacing[3]};
|
|
29
|
-
height: ${t.spacing[3]};
|
|
30
|
-
width: max-content;
|
|
31
|
-
`}
|
|
32
|
-
`, i = n(e)`
|
|
33
|
-
${({ theme: t }) => `
|
|
34
|
-
align-items: center;
|
|
35
|
-
background: transparent;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
color: ${t.palette.gray[800]};
|
|
38
|
-
font-family: ${t.typography.type.primary};
|
|
39
|
-
font-size: ${t.typography.text.sm};
|
|
40
|
-
display: flex;
|
|
41
|
-
font-weight: ${t.typography.weight.regular};
|
|
42
|
-
padding: ${t.spacing[0.625]} ${t.spacing[0.5]};
|
|
43
|
-
position: relative;
|
|
44
|
-
text-align: center;
|
|
45
|
-
text-decoration: unset;
|
|
46
|
-
|
|
47
|
-
&:disabled {
|
|
48
|
-
cursor: not-allowed;
|
|
49
|
-
background-color: ${t.palette.gray[300]};
|
|
50
|
-
color: ${t.palette.gray[300]};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:hover:not([disabled]) {
|
|
54
|
-
background-color: ${t.palette.gray[100]};
|
|
55
|
-
color: ${t.palette.gray[800]};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.active {
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
border-bottom: solid 4px ${t.palette.primary[500]};
|
|
61
|
-
padding-bottom: calc(${t.spacing[0.625]} - 4px);
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
border-bottom: solid 4px ${t.palette.primary[500]};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
`}
|
|
69
|
-
`;
|
|
70
|
-
export {
|
|
71
|
-
p as S,
|
|
72
|
-
i as T,
|
|
73
|
-
r as a
|
|
74
|
-
};
|
package/dist/styles-C3cZmKVJ.mjs
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { styled as g } from "styled-components";
|
|
2
|
-
import { theme as r } from "./components/colors/index.js";
|
|
3
|
-
const C = ["padding", "px", "py", "pl", "pr", "pt", "pb", "margin", "mx", "my", "ml", "mr", "mt", "mb", "zIndex", "position", "top", "right", "bottom", "left", "border", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderColor", "borderRadius", "scroll", "visibility", "display", "height", "width", "maxHeight", "maxWidth", "minHeight", "minWidth", "shadow", "bgColor", "bgGradient", "gap", "flexDirection", "flexGrow", "justify", "justifySelf", "alignItems", "alignSelf", "wrap", "color", "fontFamily", "fontSize", "fontWeight", "textAlign", "whiteSpace", "letterSpacing", "lineSpacing", "textDecoration", "textOverflow", "whiteSpace", "wordBreak", "wordWrap", "cursor", "transition", "borderColorHover", "bgColorHover", "shadowHover"], n = (i, t) => t === void 0 ? "" : `${i}: ${t};`, p = (i) => {
|
|
4
|
-
const t = i.py ?? i.pt ?? 0, e = i.px ?? i.pr ?? 0, a = i.py ?? i.pb ?? 0, o = i.px ?? i.pl ?? 0;
|
|
5
|
-
if (i.padding) {
|
|
6
|
-
const [$, s, d, l] = i.padding;
|
|
7
|
-
return `padding: ${r.spacing[$]} ${r.spacing[s]} ${r.spacing[d]} ${r.spacing[l]};`;
|
|
8
|
-
}
|
|
9
|
-
return `padding: ${r.spacing[t]} ${r.spacing[e]} ${r.spacing[a]} ${r.spacing[o]};`;
|
|
10
|
-
}, c = (i) => {
|
|
11
|
-
const t = i.my ?? i.mt ?? 0, e = i.mx ?? i.mr ?? 0, a = i.my ?? i.mb ?? 0, o = i.mx ?? i.ml ?? 0;
|
|
12
|
-
if (i.margin) {
|
|
13
|
-
const [$, s, d, l] = i.margin;
|
|
14
|
-
return `margin: ${r.spacing[$]} ${r.spacing[s]} ${r.spacing[d]} ${r.spacing[l]};`;
|
|
15
|
-
}
|
|
16
|
-
return `margin: ${r.spacing[t]} ${r.spacing[e]} ${r.spacing[a]} ${r.spacing[o]};`;
|
|
17
|
-
}, h = (i) => `
|
|
18
|
-
${n("position", i.position)}
|
|
19
|
-
${n("top", i.top)}
|
|
20
|
-
${n("right", i.right)}
|
|
21
|
-
${n("bottom", i.bottom)}
|
|
22
|
-
${n("left", i.left)}
|
|
23
|
-
${n("z-index", i.zIndex)}
|
|
24
|
-
`, b = (i) => `
|
|
25
|
-
${n("border", i.border)}
|
|
26
|
-
${n("border-top", i.borderTop)}
|
|
27
|
-
${n("border-right", i.borderRight)}
|
|
28
|
-
${n("border-bottom", i.borderBottom)}
|
|
29
|
-
${n("border-left", i.borderLeft)}
|
|
30
|
-
${n("border-color", i.borderColor)}
|
|
31
|
-
${n("border-radius", i.borderRadius)}
|
|
32
|
-
`, f = (i) => {
|
|
33
|
-
const t = i.scroll ? `
|
|
34
|
-
${((u) => u.includes("x") ? "overflow-x: auto;" : "")(i.scroll)}
|
|
35
|
-
${((u) => u.includes("y") ? "overflow-y: auto;" : "")(i.scroll)}
|
|
36
|
-
` : "", e = n("visibility", i.visibility), a = n("display", i.display), o = n("height", i.height), $ = n("width", i.width), s = n("max-height", i.maxHeight), d = n("max-width", i.maxWidth), l = n("min-height", i.minHeight), y = n("min-width", i.minWidth), v = n("box-shadow", i.shadow ? r.shadows[i.shadow] : void 0), S = n("gap", i.gap === void 0 ? void 0 : r.spacing[i.gap]);
|
|
37
|
-
return `
|
|
38
|
-
${t}
|
|
39
|
-
${e}
|
|
40
|
-
${a}
|
|
41
|
-
${o}
|
|
42
|
-
${$}
|
|
43
|
-
${s}
|
|
44
|
-
${d}
|
|
45
|
-
${l}
|
|
46
|
-
${y}
|
|
47
|
-
${v}
|
|
48
|
-
${n("background-color", i.bgColor)}
|
|
49
|
-
${n("background", i.bgGradient)}
|
|
50
|
-
${S}
|
|
51
|
-
${n("flex-direction", i.flexDirection)}
|
|
52
|
-
${n("flex-grow", i.flexGrow)}
|
|
53
|
-
${n("justify-content", i.justify)}
|
|
54
|
-
${n("justify-self", i.justifySelf)}
|
|
55
|
-
${n("align-items", i.alignItems)}
|
|
56
|
-
${n("align-self", i.alignSelf)}
|
|
57
|
-
${n("flex-wrap", i.wrap)}
|
|
58
|
-
`;
|
|
59
|
-
}, m = (i) => `
|
|
60
|
-
${n("color", i.color)}
|
|
61
|
-
${n("font-family", i.fontFamily)}
|
|
62
|
-
${n("font-size", i.fontSize)}
|
|
63
|
-
${n("font-weight", i.fontWeight)}
|
|
64
|
-
${n("line-spacing", i.letterSpacing)}
|
|
65
|
-
${n("line-height", i.lineSpacing)}
|
|
66
|
-
${n("text-align", i.textAlign)}
|
|
67
|
-
${n("text-decoration", i.textDecoration)}
|
|
68
|
-
${n("text-overflow", i.textOverflow)}
|
|
69
|
-
${n("white-space", i.whiteSpace)}
|
|
70
|
-
${n("word-break", i.wordBreak)}
|
|
71
|
-
${n("word-wrap", i.wordWrap)}
|
|
72
|
-
`, w = (i) => {
|
|
73
|
-
const t = n("cursor", i.cursor), e = n("border-color", i.borderColorHover), a = n("background-color", i.bgColorHover), o = n("box-shadow", i.shadowHover === void 0 ? void 0 : r.shadows[i.shadowHover]);
|
|
74
|
-
return `
|
|
75
|
-
${t}
|
|
76
|
-
|
|
77
|
-
&:hover {
|
|
78
|
-
${n("transition", i.transition) || "transition: all 0.2s;"}
|
|
79
|
-
${e}
|
|
80
|
-
${a}
|
|
81
|
-
${o}
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
}, x = () => ({ shouldForwardProp: (i) => !C.includes(i) }), j = g.div.withConfig(x())`
|
|
85
|
-
${p}
|
|
86
|
-
${c}
|
|
87
|
-
${h}
|
|
88
|
-
${f}
|
|
89
|
-
${m}
|
|
90
|
-
${b}
|
|
91
|
-
${w}
|
|
92
|
-
`, k = g.button.withConfig(x())`
|
|
93
|
-
${p}
|
|
94
|
-
${c}
|
|
95
|
-
${h}
|
|
96
|
-
${f}
|
|
97
|
-
${m}
|
|
98
|
-
${b}
|
|
99
|
-
${w}
|
|
100
|
-
`, z = g.p.withConfig(x())`
|
|
101
|
-
${p}
|
|
102
|
-
${c}
|
|
103
|
-
${h}
|
|
104
|
-
${f}
|
|
105
|
-
${m}
|
|
106
|
-
${b}
|
|
107
|
-
${w}
|
|
108
|
-
`, B = g.span.withConfig(x())`
|
|
109
|
-
${p}
|
|
110
|
-
${c}
|
|
111
|
-
${h}
|
|
112
|
-
${f}
|
|
113
|
-
${m}
|
|
114
|
-
${b}
|
|
115
|
-
${w}
|
|
116
|
-
`;
|
|
117
|
-
export {
|
|
118
|
-
j as B,
|
|
119
|
-
k as a,
|
|
120
|
-
z as b,
|
|
121
|
-
B as c,
|
|
122
|
-
m as d,
|
|
123
|
-
c as e,
|
|
124
|
-
w as f,
|
|
125
|
-
h as g,
|
|
126
|
-
C as h,
|
|
127
|
-
f as i,
|
|
128
|
-
b as j,
|
|
129
|
-
x as k,
|
|
130
|
-
p as s
|
|
131
|
-
};
|
package/dist/styles-D85YYIjM.mjs
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { styled as i } from "styled-components";
|
|
2
|
-
import { v as t } from "./utils-CQvBF-wY.mjs";
|
|
3
|
-
import "./styles-C3cZmKVJ.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
const { getVariant: a } = t((n) => ({ lg: `
|
|
6
|
-
@media screen and (min-width: ${n.breakpoints.sm}) {
|
|
7
|
-
width: 72%;
|
|
8
|
-
}
|
|
9
|
-
@media screen and (max-width: ${n.breakpoints.sm}) {
|
|
10
|
-
width: 80%;
|
|
11
|
-
}
|
|
12
|
-
`, md: `
|
|
13
|
-
@media screen and (min-width: ${n.breakpoints.sm}) {
|
|
14
|
-
width: 48%;
|
|
15
|
-
}
|
|
16
|
-
@media screen and (max-width: ${n.breakpoints.sm}) {
|
|
17
|
-
width: 60%;
|
|
18
|
-
}
|
|
19
|
-
`, sm: `
|
|
20
|
-
@media screen and (min-width: ${n.breakpoints.sm}) {
|
|
21
|
-
width: 32%;
|
|
22
|
-
}
|
|
23
|
-
@media screen and (max-width: ${n.breakpoints.sm}) {
|
|
24
|
-
width: 40%;
|
|
25
|
-
}
|
|
26
|
-
` })), o = i.div.attrs({ className: "comp-modal fixed inset-0 overflow-auto" })`
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: rgb(52 64 84 / 70%);
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
z-index: 99999;
|
|
32
|
-
`, c = i.div`
|
|
33
|
-
${({ theme: n, $size: e }) => `
|
|
34
|
-
background-color: ${n.palette.white};
|
|
35
|
-
border: 1px solid ${n.palette.gray[200]};
|
|
36
|
-
border-radius: ${n.spacing[0.25]};
|
|
37
|
-
color: ${n.palette.gray[800]};
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
font-family: ${n.typography.type.primary};
|
|
41
|
-
font-size: ${n.typography.text.sm};
|
|
42
|
-
max-height: 80%;
|
|
43
|
-
min-height: minmax(max-content, 32%);
|
|
44
|
-
overflow: hidden auto;
|
|
45
|
-
padding: ${n.spacing[1.5]};
|
|
46
|
-
box-shadow: ${n.shadows.lg};
|
|
47
|
-
margin: auto;
|
|
48
|
-
white-space: pre-line;
|
|
49
|
-
|
|
50
|
-
> *:not(img) {
|
|
51
|
-
margin-bottom: ${n.spacing[1.5]};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
> *:last-child {
|
|
55
|
-
margin-bottom: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&#table-column-toggle {
|
|
59
|
-
@media screen and (min-width: ${n.breakpoints.sm}) {
|
|
60
|
-
width: 24%;
|
|
61
|
-
}
|
|
62
|
-
@media screen and (max-width: ${n.breakpoints.sm}) {
|
|
63
|
-
width: 32%;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
${a(n, e)}
|
|
68
|
-
`}
|
|
69
|
-
`, p = i.div`
|
|
70
|
-
display: block;
|
|
71
|
-
overflow: unset;
|
|
72
|
-
height: max-content;
|
|
73
|
-
max-height: 100%;
|
|
74
|
-
max-width: 100%;
|
|
75
|
-
position: static;
|
|
76
|
-
`, h = i.div.attrs({ className: "flex items-center justify-between mb-1.5" })``, l = i.div`
|
|
77
|
-
${({ theme: n }) => `
|
|
78
|
-
display: flex;
|
|
79
|
-
flex-direction: row;
|
|
80
|
-
gap: ${n.spacing[0.75]};
|
|
81
|
-
justify-content: space-between;
|
|
82
|
-
margin: 0;
|
|
83
|
-
max-width: 392px;
|
|
84
|
-
|
|
85
|
-
> label {
|
|
86
|
-
margin: 0;
|
|
87
|
-
flex: 1 1 auto;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
> div {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: row;
|
|
93
|
-
flex: 1 1 auto;
|
|
94
|
-
gap: ${n.spacing[0.75]};
|
|
95
|
-
margin-right: ${n.spacing[0.75]};
|
|
96
|
-
|
|
97
|
-
> button {
|
|
98
|
-
justify-content: center;
|
|
99
|
-
max-width: 190px;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
> div:last-child {
|
|
104
|
-
margin-right: 0;
|
|
105
|
-
}
|
|
106
|
-
`}
|
|
107
|
-
`, g = i.div`
|
|
108
|
-
img {
|
|
109
|
-
margin: 0 calc(-${({ theme: n }) => n.spacing[1.5]} - 1px)
|
|
110
|
-
${({ theme: n }) => n.spacing[1.5]};
|
|
111
|
-
|
|
112
|
-
min-width: calc(100% + 2px + ${({ theme: n }) => n.spacing[3]});
|
|
113
|
-
height: 185px;
|
|
114
|
-
object-fit: cover;
|
|
115
|
-
|
|
116
|
-
${({ $framed: n = !1 }) => n ? `
|
|
117
|
-
border-radius: 8px;
|
|
118
|
-
min-width: 100%;
|
|
119
|
-
margin-left: 0;
|
|
120
|
-
margin-right: 0;
|
|
121
|
-
` : ""}
|
|
122
|
-
}
|
|
123
|
-
`;
|
|
124
|
-
export {
|
|
125
|
-
l as F,
|
|
126
|
-
p as H,
|
|
127
|
-
g as I,
|
|
128
|
-
o as M,
|
|
129
|
-
h as T,
|
|
130
|
-
c as a
|
|
131
|
-
};
|
package/dist/styles-EIbGRPlk.mjs
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { styled as r } from "styled-components";
|
|
2
|
-
import { v as t } from "./utils-CQvBF-wY.mjs";
|
|
3
|
-
import { a as e } from "./styles-C3cZmKVJ.mjs";
|
|
4
|
-
import "react/jsx-runtime";
|
|
5
|
-
const { getVariant: o } = t((n) => ({ ghost: `
|
|
6
|
-
background: transparent;
|
|
7
|
-
border: none;
|
|
8
|
-
color: ${n.palette.gray[800]};
|
|
9
|
-
--btn-padding-x: ${n.spacing[0.5]};
|
|
10
|
-
--btn-padding-y: ${n.spacing[0.625]};
|
|
11
|
-
--btn-spacing: ${n.spacing[0.25]};
|
|
12
|
-
|
|
13
|
-
&:disabled {
|
|
14
|
-
color: ${n.palette.gray[400]};
|
|
15
|
-
cursor: not-allowed;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:hover:not([disabled]) {
|
|
19
|
-
background-color: ${n.palette.gray[100]};
|
|
20
|
-
color: ${n.palette.gray[800]};
|
|
21
|
-
}
|
|
22
|
-
`, link: `
|
|
23
|
-
--btn-padding-x: 0;
|
|
24
|
-
--btn-padding-y: 0;
|
|
25
|
-
color: ${n.palette.gray[800]};
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
color: ${n.palette.gray[500]};
|
|
29
|
-
}
|
|
30
|
-
`, primary: `
|
|
31
|
-
background: ${n.palette.primary[500]};
|
|
32
|
-
border: none;
|
|
33
|
-
color: ${n.palette.white};
|
|
34
|
-
--btn-spacing: ${n.spacing[0.25]};
|
|
35
|
-
|
|
36
|
-
&:disabled {
|
|
37
|
-
background: ${n.palette.gray[200]};
|
|
38
|
-
color: ${n.palette.gray[400]};
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:hover:not([disabled]) {
|
|
43
|
-
background-color: ${n.palette.primary[700]};
|
|
44
|
-
color: ${n.palette.white};
|
|
45
|
-
}
|
|
46
|
-
`, secondary: `
|
|
47
|
-
background: ${n.palette.gray[800]};
|
|
48
|
-
border: none;
|
|
49
|
-
color: ${n.palette.white};
|
|
50
|
-
--btn-spacing: ${n.spacing[0.25]};
|
|
51
|
-
|
|
52
|
-
&:disabled {
|
|
53
|
-
background: ${n.palette.gray[200]};
|
|
54
|
-
color: ${n.palette.gray[400]};
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover:not([disabled]) {
|
|
59
|
-
background-color: ${n.palette.gray[600]};
|
|
60
|
-
color: ${n.palette.white};
|
|
61
|
-
}
|
|
62
|
-
`, tertiary: `
|
|
63
|
-
background: transparent;
|
|
64
|
-
border: 1px solid ${n.palette.primary[500]};
|
|
65
|
-
color: ${n.palette.primary[500]};
|
|
66
|
-
--btn-spacing: ${n.spacing[0.25]};
|
|
67
|
-
|
|
68
|
-
&:disabled {
|
|
69
|
-
background: transparent;
|
|
70
|
-
border: 1px solid ${n.palette.gray[200]};
|
|
71
|
-
color: ${n.palette.gray[300]};
|
|
72
|
-
cursor: not-allowed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:hover:not([disabled]) {
|
|
76
|
-
background-color: ${n.palette.primary[500]};
|
|
77
|
-
color: ${n.palette.white};
|
|
78
|
-
}
|
|
79
|
-
` })), g = r(e)`
|
|
80
|
-
${({ theme: n, $variant: a }) => `
|
|
81
|
-
align-items: center;
|
|
82
|
-
border-radius: var(--btn-spacing);
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
font-family: ${n.typography.type.primary};
|
|
86
|
-
font-size: ${n.typography.text.sm};
|
|
87
|
-
font-weight: ${n.typography.weight.regular};
|
|
88
|
-
gap: var(--btn-spacing);
|
|
89
|
-
justify-content: center;
|
|
90
|
-
line-height: ${n.spacing[1.25]};
|
|
91
|
-
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
92
|
-
position: relative;
|
|
93
|
-
text-align: start;
|
|
94
|
-
transition: all 0.5s ease;
|
|
95
|
-
white-space: nowrap;
|
|
96
|
-
|
|
97
|
-
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
98
|
-
${a !== "link" ? `--btn-padding-y: ${n.spacing[1]}` : ""};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
${o(n, a ?? "primary")}
|
|
102
|
-
`}
|
|
103
|
-
`;
|
|
104
|
-
export {
|
|
105
|
-
g as S
|
|
106
|
-
};
|
package/dist/styles-Q1VXuWI7.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { styled as e } from "styled-components";
|
|
2
|
-
const a = e.li`
|
|
3
|
-
${({ theme: n }) => `
|
|
4
|
-
align-items: center;
|
|
5
|
-
background-color: ${n.palette.white};
|
|
6
|
-
color: ${n.palette.gray[800]};
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
display: flex;
|
|
9
|
-
font-size: ${n.typography.text.sm};
|
|
10
|
-
font-weight: ${n.typography.weight.regular};
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
gap: ${n.spacing[0.625]};
|
|
13
|
-
line-height: ${n.spacing[1.25]};
|
|
14
|
-
list-style-type: none;
|
|
15
|
-
min-height: 40px;
|
|
16
|
-
min-width: 240px;
|
|
17
|
-
padding: ${n.spacing[0.625]} ${n.spacing[1]};
|
|
18
|
-
pointer-events: auto;
|
|
19
|
-
|
|
20
|
-
p,
|
|
21
|
-
a {
|
|
22
|
-
word-break: break-word;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& > label {
|
|
26
|
-
margin: unset;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
a {
|
|
30
|
-
color: ${n.palette.gray[500]};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&[aria-disabled="true"] {
|
|
34
|
-
color: ${n.palette.gray[300]};
|
|
35
|
-
pointer-events: none;
|
|
36
|
-
|
|
37
|
-
a {
|
|
38
|
-
color: ${n.palette.gray[300]};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&[aria-selected="true"] {
|
|
43
|
-
background-color: ${n.palette.gray[200]};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:hover:not([aria-selected="true"]) {
|
|
47
|
-
background-color: ${n.palette.gray[100]};
|
|
48
|
-
}
|
|
49
|
-
`}
|
|
50
|
-
`, r = e.ul`
|
|
51
|
-
${({ theme: n }) => `
|
|
52
|
-
background-color: ${n.palette.white};
|
|
53
|
-
border: 1px solid ${n.palette.gray[200]};
|
|
54
|
-
border-radius: ${n.spacing[0.25]};
|
|
55
|
-
box-shadow: ${n.shadows.md};
|
|
56
|
-
display: inline-block;
|
|
57
|
-
margin: unset;
|
|
58
|
-
min-width: 240px;
|
|
59
|
-
padding: ${n.spacing[0.25]} 0 ${n.spacing[0.25]} 0;
|
|
60
|
-
`}
|
|
61
|
-
`;
|
|
62
|
-
export {
|
|
63
|
-
a as L,
|
|
64
|
-
r as a
|
|
65
|
-
};
|