@soul-refiner/design-system 2.14.150 → 2.14.152
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/common/fluid-typography.js +1 -0
- package/dist/common/media.js +1 -0
- package/dist/common/styles.js +18 -18
- package/dist/common/sx.js +1 -0
- package/dist/components/actions/button/button.js +19 -19
- package/dist/components/actions/stepIndicator/stepIndicator.js +6 -6
- package/dist/components/actions/upload/upload.js +3 -3
- package/dist/components/atoms/box/box.js +11 -11
- package/dist/components/atoms/image/image.js +10 -0
- package/dist/components/atoms/layout/container.js +14 -0
- package/dist/components/atoms/layout/grid.js +7 -0
- package/dist/components/atoms/layout/inline.js +10 -0
- package/dist/components/atoms/layout/section.js +8 -0
- package/dist/components/atoms/layout/stack.js +2 -0
- package/dist/components/atoms/typography/display.js +5 -4
- package/dist/components/atoms/typography/heading.js +5 -4
- package/dist/components/atoms/typography/paragraph.js +4 -4
- package/dist/components/atoms/typography/typography.js +1 -1
- package/dist/components/editor/plugins/blocks/biblical-quote.js +3 -3
- package/dist/components/editor/plugins/blocks/prayer_for_change.js +4 -4
- package/dist/components/editor/simple_editor/simple_editor.js +3 -3
- package/dist/components/feedback/emojiPicker/emoji-picker.js +5 -5
- package/dist/components/feedback/emojiPicker/emoji-reactions.js +2 -2
- package/dist/components/input/calendar/calendar.js +1 -1
- package/dist/components/surfaces/post/post.js +14 -14
- package/dist/components/surfaces/success_modal/success-modal.js +3 -3
- package/dist/index.js +1 -1
- package/dist/src/common/fluid-typography.d.ts +11 -0
- package/dist/src/common/fluid-typography.d.ts.map +1 -0
- package/dist/src/common/media.d.ts +24 -0
- package/dist/src/common/media.d.ts.map +1 -0
- package/dist/src/common/styles.d.ts.map +1 -1
- package/dist/src/common/sx.d.ts +34 -0
- package/dist/src/common/sx.d.ts.map +1 -0
- package/dist/src/components/actions/button/button.d.ts +9 -2
- package/dist/src/components/actions/button/button.d.ts.map +1 -1
- package/dist/src/components/atoms/box/box.d.ts +2 -5
- package/dist/src/components/atoms/box/box.d.ts.map +1 -1
- package/dist/src/components/atoms/image/image.d.ts +33 -0
- package/dist/src/components/atoms/image/image.d.ts.map +1 -0
- package/dist/src/components/atoms/index.d.ts +3 -0
- package/dist/src/components/atoms/index.d.ts.map +1 -1
- package/dist/src/components/atoms/layout/container.d.ts +24 -0
- package/dist/src/components/atoms/layout/container.d.ts.map +1 -0
- package/dist/src/components/atoms/layout/grid.d.ts +15 -0
- package/dist/src/components/atoms/layout/grid.d.ts.map +1 -0
- package/dist/src/components/atoms/layout/index.d.ts +11 -0
- package/dist/src/components/atoms/layout/index.d.ts.map +1 -0
- package/dist/src/components/atoms/layout/inline.d.ts +10 -0
- package/dist/src/components/atoms/layout/inline.d.ts.map +1 -0
- package/dist/src/components/atoms/layout/section.d.ts +8 -0
- package/dist/src/components/atoms/layout/section.d.ts.map +1 -0
- package/dist/src/components/atoms/layout/stack.d.ts +5 -0
- package/dist/src/components/atoms/layout/stack.d.ts.map +1 -0
- package/dist/src/components/atoms/typography/display.d.ts +1 -0
- package/dist/src/components/atoms/typography/display.d.ts.map +1 -1
- package/dist/src/components/atoms/typography/heading.d.ts +11 -10
- package/dist/src/components/atoms/typography/heading.d.ts.map +1 -1
- package/dist/src/components/atoms/typography/paragraph.d.ts +2 -1
- package/dist/src/components/atoms/typography/paragraph.d.ts.map +1 -1
- package/dist/src/components/atoms/typography/typography.d.ts.map +1 -1
- package/dist/src/components/card/styles.d.ts +1 -1
- package/dist/src/components/card/styles.d.ts.map +1 -1
- package/dist/src/components/input/calendar/calendar.d.ts +2 -1
- package/dist/src/components/input/calendar/calendar.d.ts.map +1 -1
- package/dist/src/styles/globals.css +1 -1
- package/dist/src/types/attributes.d.ts +37 -4
- package/dist/src/types/attributes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.fluidFontSize={100:"clamp(3rem, 3.906vw, 6.25rem)",80:"clamp(2.5rem, 3.125vw, 5rem)",64:"clamp(2rem, 2.5vw, 4rem)",56:"clamp(1.75rem, 2.1875vw, 3.5rem)",48:"clamp(1.5rem, 1.875vw, 3rem)",40:"clamp(1.25rem, 1.5625vw, 2.5rem)",36:"clamp(1.375rem, 1.406vw, 2.25rem)",32:"clamp(1.25rem, 1.25vw, 2rem)",28:"clamp(1.125rem, 1.094vw, 1.75rem)",24:"clamp(1rem, 0.9375vw, 1.5rem)",20:"clamp(0.875rem, 0.781vw, 1.25rem)",18:"clamp(0.75rem, 0.703vw, 1.125rem)",16:"clamp(0.875rem, 0.625vw, 1rem)",14:"clamp(0.8125rem, 0.547vw, 0.875rem)",12:"clamp(0.75rem, 0.469vw, 0.8125rem)",11:"clamp(0.625rem, 0.43vw, 0.6875rem)",10:"clamp(0.5625rem, 0.391vw, 0.625rem)"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.breakpointAliasOrder=["xs","sm","md","lg","hd","xl","xxl"],exports.breakpointAliases={xs:480,sm:768,md:1024,lg:1280,hd:1366,xl:1440,xxl:1920},exports.breakpoints={mobile:480,"mobile-lg":768,tablet:1024,desktop:1280,"desktop-hd":1366,"desktop-lg":1440,wide:1920};
|
package/dist/common/styles.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";var e
|
|
2
|
-
background-color: ${({$backgroundColor:e})=>e?
|
|
3
|
-
`,
|
|
1
|
+
"use strict";var e=require("styled-components"),r=require("./sx.js"),o=require("./media.js"),i=require("./colors.js");var t;exports.Styles=void 0,(t=exports.Styles||(exports.Styles={})).backgroundColor=e.css`
|
|
2
|
+
background-color: ${({$backgroundColor:e})=>e?i.colorReference[e]:"var(--page-bg)"};
|
|
3
|
+
`,t.borderRadius=e.css`
|
|
4
4
|
border-radius: ${({$borderRadius:e})=>e?`var(--${e})`:""};
|
|
5
|
-
`,
|
|
6
|
-
color: ${({$color:e})=>e?
|
|
7
|
-
`,
|
|
5
|
+
`,t.color=e.css`
|
|
6
|
+
color: ${({$color:e})=>e?i.colorReference[e]:"var(--color-grey-3)"};
|
|
7
|
+
`,t.elevation=e.css`
|
|
8
8
|
box-shadow: ${({$elevation:e})=>e?`var(--elevation-${e})`:"none"};
|
|
9
|
-
`,
|
|
9
|
+
`,t.flex=e.css`
|
|
10
10
|
align-items: ${({$align:e})=>e??"normal"};
|
|
11
11
|
gap: ${({$gap:e})=>e&&"number"==typeof e?`${e}px`:e&&"string"==typeof e?`var(--${e})`:"0px"};
|
|
12
12
|
flex: ${({$flex:e})=>e??"none"};
|
|
13
|
-
|
|
14
|
-
flex-direction: ${({$
|
|
13
|
+
${({$flow:e})=>e?`flex-flow: ${e};`:""}
|
|
14
|
+
${({$dir:e})=>((e="row")=>{if("string"==typeof e)return`flex-direction: ${e};`;const r=[...o.breakpointAliasOrder].reverse().filter(r=>void 0!==e[r]);if(0===r.length)return"";const[i,...t]=r,s=[`flex-direction: ${e[i]};`];for(const r of t)s.push(`@media (max-width: ${o.breakpointAliases[r]}px) { flex-direction: ${e[r]}; }`);return s.join("\n")})(e)}
|
|
15
15
|
justify-content: ${({$justify:e})=>e??"normal"};
|
|
16
|
-
`,
|
|
16
|
+
`,t.margin=e.css`
|
|
17
17
|
margin: ${({$margin:e})=>e&&"number"==typeof e?`${e}px`:e&&"string"==typeof e?`var(--${e})`:"0px"};
|
|
18
|
-
`,
|
|
18
|
+
`,t.padding=e.css`
|
|
19
19
|
padding: ${({$padding:e})=>e&&"number"==typeof e?`${e}px;`:e&&"string"==typeof e&&e.includes("px")?e:e&&"string"==typeof e?`var(--${e});`:"0px"};
|
|
20
|
-
`,
|
|
21
|
-
${({sx:e})=>e
|
|
22
|
-
`,
|
|
20
|
+
`,t.styleable=e.css`
|
|
21
|
+
${({sx:e})=>r.processSx(e)}
|
|
22
|
+
`,t.textClamp=e.css`
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
text-overflow: ellipsis;
|
|
25
25
|
display: -webkit-box;
|
|
26
26
|
line-clamp: ${({$textClampLines:e})=>e??1};
|
|
27
27
|
-webkit-line-clamp: ${({$textClampLines:e})=>e??1};
|
|
28
28
|
-webkit-box-orient: vertical;
|
|
29
|
-
`,
|
|
29
|
+
`,t.typography=e.css`
|
|
30
30
|
font-style: ${({$italic:e})=>e?"italic":"normal"};
|
|
31
|
-
text-decoration: ${({$strikethrough:e,$underline:
|
|
32
|
-
`,
|
|
33
|
-
font-weight: ${({$bold:e,$semiBold:
|
|
31
|
+
text-decoration: ${({$strikethrough:e,$underline:r})=>e?"line-through":r?"underline":"none"};
|
|
32
|
+
`,t.weight=e.css`
|
|
33
|
+
font-weight: ${({$bold:e,$semiBold:r,$mediumBold:o})=>e?700:r?600:o?500:400};
|
|
34
34
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./media.js");const o=new Set(["opacity","zIndex","fontWeight","lineHeight","flex","flexGrow","flexShrink","order","orphans","widows","zoom","fillOpacity","strokeOpacity","strokeWidth","tabSize","columnCount","aspectRatio"]),t=e=>e.replace(/[A-Z]+/g,(e,o)=>(o>0?"-":"")+e.toLowerCase()),n=(e,t)=>"number"!=typeof t||o.has(e)?`${t}`:`${t}px`;exports.processSx=o=>{if(!o)return"";if("string"==typeof o)return o;const r=[],i={};for(const[s,a]of Object.entries(o)){const o=t(s);if("object"==typeof a&&null!==a){const t=a;for(const r of e.breakpointAliasOrder)void 0!==t[r]&&(i[r]||(i[r]=[]),i[r].push(`${o}: ${n(s,t[r])};`))}else r.push(`${o}: ${n(s,a)};`)}const s=[...e.breakpointAliasOrder].reverse().filter(e=>i[e]?.length).map(o=>`@media (max-width: ${e.breakpointAliases[o]}px) {\n ${i[o].join("\n ")}\n}`).join("\n");return[r.join("\n"),s].filter(Boolean).join("\n")};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var r=require("react/jsx-runtime"),o=require("react"),e=require("styled-components"),l=require("../../../common/styles.js"),a=require("../../atoms/typography/paragraph.js"),c=require("../../atoms/box/box.js"),
|
|
2
|
+
"use strict";var r=require("react/jsx-runtime"),o=require("react"),e=require("styled-components"),l=require("../../../common/styles.js"),a=require("../../../common/sx.js"),d=require("../../atoms/typography/paragraph.js"),c=require("../../atoms/box/box.js"),i=require("../../../icons/arrow/chevron_down.js"),s=require("../../../icons/arrow/chevron_up.js");function n(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var t=n(o),p=n(e);const u=()=>({primary:x,secondary:v,outlined:g,danger:y,raised:$,special:f,text:m,dropdown:h}),b=e.css`
|
|
3
3
|
font-family: var(--font-inter);
|
|
4
4
|
display: flex;
|
|
5
|
-
border-radius: ${({$roundness:
|
|
5
|
+
border-radius: ${({$borderRadiusOverride:r,$roundness:o})=>r||("large"===o?"32px":"medium-small"===o?"8px":"small"===o?"4px":"0px")};
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
user-select: none;
|
|
8
8
|
box-sizing: border-box;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
color: var(--color-grey-7) !important;
|
|
20
20
|
cursor: unset !important;
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,x=p.default(c.Box)`
|
|
23
23
|
background-color: var(--color-primary-blue-2);
|
|
24
24
|
color: var(--color-white);
|
|
25
25
|
border: 1px solid var(--color-primary-blue-2);
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
background-color: var(--color-primary-blue-0);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
${
|
|
42
|
+
${b}
|
|
43
43
|
${l.Styles.flex}
|
|
44
44
|
${l.Styles.padding}
|
|
45
45
|
|
|
46
46
|
${({$sx:r})=>r||""}
|
|
47
|
-
`,
|
|
47
|
+
`,v=p.default(c.Box)`
|
|
48
48
|
background-color: var(--color-primary-blue-4);
|
|
49
49
|
color: var(--color-primary-blue-2);
|
|
50
50
|
border: 1px solid var(--color-primary-blue-4);
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
color: var(--color-primary-blue-0);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
${
|
|
67
|
+
${b}
|
|
68
68
|
${l.Styles.flex}
|
|
69
69
|
${l.Styles.padding}
|
|
70
70
|
|
|
71
71
|
${({$sx:r})=>r||""}
|
|
72
|
-
`,
|
|
72
|
+
`,g=p.default(c.Box)`
|
|
73
73
|
background-color: var(--color-white);
|
|
74
74
|
color: var(--color-grey-3);
|
|
75
75
|
border: 1px solid var(--color-grey-8);
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
border: 1px solid var(--color-grey-8);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
${
|
|
104
|
+
${b}
|
|
105
105
|
${l.Styles.flex}
|
|
106
106
|
${l.Styles.padding}
|
|
107
107
|
|
|
108
108
|
${({$sx:r})=>r||""}
|
|
109
|
-
`,
|
|
109
|
+
`,y=p.default(c.Box)`
|
|
110
110
|
background-color: var(--color-red-4);
|
|
111
111
|
color: var(--color-white);
|
|
112
112
|
border: 1px solid var(--color-red-4);
|
|
@@ -126,12 +126,12 @@
|
|
|
126
126
|
background-color: var(--color-red-2);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
${
|
|
129
|
+
${b}
|
|
130
130
|
${l.Styles.flex}
|
|
131
131
|
${l.Styles.padding}
|
|
132
132
|
|
|
133
133
|
${({$sx:r})=>r||""}
|
|
134
|
-
`,
|
|
134
|
+
`,m=p.default(c.Box)`
|
|
135
135
|
background-color: transparent;
|
|
136
136
|
border-color: transparent !important;
|
|
137
137
|
border: 1px solid transparent;
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
border: 1px solid transparent !important;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
${
|
|
158
|
+
${b}
|
|
159
159
|
${l.Styles.flex}
|
|
160
160
|
${l.Styles.padding}
|
|
161
161
|
${({$sx:r})=>r||""}
|
|
162
|
-
|
|
162
|
+
`,$=p.default(c.Box)`
|
|
163
163
|
background-color: var(--color-white);
|
|
164
164
|
color: var(--color-grey-3);
|
|
165
165
|
border: 1px solid var(--color-white);
|
|
@@ -179,12 +179,12 @@
|
|
|
179
179
|
border: 1px solid var(--color-grey-9) !important;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
${
|
|
182
|
+
${b}
|
|
183
183
|
${l.Styles.flex}
|
|
184
184
|
${l.Styles.padding}
|
|
185
185
|
|
|
186
186
|
${({$sx:r})=>r||""}
|
|
187
|
-
|
|
187
|
+
`,f=p.default(c.Box)`
|
|
188
188
|
background-color: transparent;
|
|
189
189
|
border: 1px solid transparent;
|
|
190
190
|
color: var(--color-primary-grey-3);
|
|
@@ -208,12 +208,12 @@
|
|
|
208
208
|
border: 1px solid transparent !important;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
${
|
|
211
|
+
${b}
|
|
212
212
|
${l.Styles.flex}
|
|
213
213
|
${l.Styles.padding}
|
|
214
214
|
|
|
215
215
|
${({$sx:r})=>r||""}
|
|
216
|
-
`,
|
|
216
|
+
`,h=p.default(c.Box)`
|
|
217
217
|
width: 100%;
|
|
218
218
|
background-color: var(--color-blue-10);
|
|
219
219
|
color: var(--color-grey-3);
|
|
@@ -227,11 +227,11 @@
|
|
|
227
227
|
background-color: var(--color-blue-10);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
${
|
|
230
|
+
${b}
|
|
231
231
|
${l.Styles.flex}
|
|
232
232
|
${l.Styles.padding}
|
|
233
233
|
|
|
234
234
|
border-radius: 8px;
|
|
235
235
|
|
|
236
236
|
${({$sx:r})=>r||""}
|
|
237
|
-
`;exports.Button=({as:o="button",children:e,disabled:l,fluid:c=!1,href:
|
|
237
|
+
`;exports.Button=({as:o="button",children:e,disabled:l,fluid:c=!1,href:n,icon:p,isDropdownOpen:b,roundness:x="large",size:v="large",sx:g,type:y="primary",showChevron:m=!0,customDropdownIcon:$,$fontSize:f,$padding:h,$borderRadius:k,...S})=>{const w=u()[y],j=t.default.Children.map(p,r=>{if(t.default.isValidElement(r))return{...r,props:{...r.props??{},size:"large"!==v||e?"large"===v?20:16:24}}})?.[0],z=$;let B;m&&(!0===b?B=z?r.jsx(z,{sx:"margin-left:auto;",size:"large"===v?20:16}):r.jsx(s.ChevronUp,{sx:"margin-left:auto;",size:"large"===v?20:16}):!1===b&&(B=z?r.jsx(z,{sx:"margin-left:auto;",size:"large"===v?20:16}):r.jsx(i.ChevronDown,{sx:"margin-left:auto;",size:"large"===v?20:16})));const q=h??(e?"large"===v?"11px 19px":"5px 15px":"large"===v?"11px":"7px"),C=f??("large"===v?16:14),D=null!=k?`${k}px`:void 0;return r.jsxs(w,{as:o,disabled:l,href:n,$align:"center",$display:"flex",$fluid:c,$gap:"large"===v?12:8,$hasChildren:!!e,$justify:"center",$padding:q,$roundness:x,$borderRadiusOverride:D,$size:v,$sx:a.processSx(g),...S,children:[j,e&&r.jsx(d.P,{as:"span",$mediumBold:!0,$fontSize:C,$color:"inherit",children:e}),!!e&&B]})};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var t=require("react"),o=require("styled-components");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),n=a(o);const l=n.default.div`
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime");require("../../atoms/box/box.js"),require("../../atoms/image/image.js"),require("../../atoms/layout/container.js"),require("../../atoms/layout/grid.js"),require("../../atoms/layout/inline.js"),require("../../atoms/layout/section.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var r=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var t=require("react"),o=require("styled-components");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),n=a(o);const l=n.default.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: space-between;
|
|
6
6
|
padding: 14px 1px;
|
|
7
|
-
`,
|
|
7
|
+
`,s=n.default.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: 8px;
|
|
12
|
-
`,
|
|
12
|
+
`,c=n.default.div`
|
|
13
13
|
width: 32px;
|
|
14
14
|
height: 32px;
|
|
15
15
|
border-radius: 50%;
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
color: ${({$active:e,$completed:r})=>e||r?"white":"var(--color-grey-4)"};
|
|
23
23
|
transition: all 0.2s ease;
|
|
24
24
|
border: ${({$active:e,$completed:r})=>e||r?"none":"2px solid var(--color-grey-8)"};
|
|
25
|
-
`,
|
|
25
|
+
`,u=n.default(r.P)`
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
font-family: var(--font-inter);
|
|
28
28
|
font-weight: 600;
|
|
29
29
|
line-height: 20px;
|
|
30
30
|
color: ${({$active:e})=>e?"var(--color-blue-2) !important":"var(--color-grey-3) !important"};
|
|
31
31
|
white-space: nowrap;
|
|
32
|
-
`,
|
|
32
|
+
`,p=n.default.div`
|
|
33
33
|
flex: 1;
|
|
34
34
|
height: 2px;
|
|
35
35
|
background-color: ${({$completed:e})=>e?"var(--color-blue-2)":"var(--color-grey-8)"};
|
|
36
36
|
margin: 0 8px;
|
|
37
37
|
margin-bottom: 24px;
|
|
38
38
|
transition: all 0.2s ease;
|
|
39
|
-
`;exports.StepIndicator=({currentStep:r,steps:t})=>e.jsx(l,{children:t.map((o,a)=>e.jsxs(i.default.Fragment,{children:[e.jsxs(
|
|
39
|
+
`;exports.StepIndicator=({currentStep:r,steps:t})=>e.jsx(l,{children:t.map((o,a)=>e.jsxs(i.default.Fragment,{children:[e.jsxs(s,{children:[e.jsx(c,{$active:r===o.number,$completed:r>o.number,children:o.number}),e.jsx(u,{$active:r===o.number,children:o.label})]}),a<t.length-1&&e.jsx(p,{$completed:r>o.number})]},o.number))});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("react"),r=require("styled-components"),t=require("../../../common/colors.js"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("react"),r=require("styled-components"),t=require("../../../common/colors.js"),o=require("../../atoms/box/box.js"),l=require("../button/button.js"),s=require("../../../icons/special/upload_audio.js"),a=require("../../../icons/special/upload_file.js"),n=require("../../../icons/special/upload_image.js"),d=require("../../../icons/special/upload_video.js"),u=require("../../../icons/basic/paperclip.js"),c=require("../../surfaces/modal/modal.js");require("../../atoms/image/image.js"),require("../../atoms/layout/container.js"),require("../../atoms/layout/grid.js"),require("../../atoms/layout/inline.js"),require("../../atoms/layout/section.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js");var p=require("../../atoms/typography/heading.js"),h=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var x=require("./validations.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=g(i);const j=r.styled.div`
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: ${({$size:e,$width:i})=>i?i+"px":"large"===e?"100%":"fit-content"===e?"fit-content":"134px"};
|
|
5
5
|
height: ${({$height:e})=>e}px;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
background-color: ${({$background:e})=>t.COLORS.includes(e)?`var(--color-${e})`:e};
|
|
8
8
|
border: 2px dashed var(--color-${({$borderColor:e})=>e});
|
|
9
9
|
border-radius: ${({$size:e})=>"large"===e?"16px":"8px"};
|
|
10
|
-
`,
|
|
10
|
+
`,m=r.styled.input`
|
|
11
11
|
display: none;
|
|
12
|
-
`;exports.Upload=({background:i="hue-blue-3",borderColor:r="hue-blue-2",children:t,iconColor:g="primary-blue-2",multiple
|
|
12
|
+
`;exports.Upload=({background:i="hue-blue-3",borderColor:r="hue-blue-2",children:t,iconColor:g="primary-blue-2",multiple:$,onDrop:y,size:b="large",subtext:q,text:v,type:w,showOnlyUploadButton:k=!1,height:C,width:z,validation:B,validationMessage:D})=>{const F=f.default.useRef(null),[U,L]=f.default.useState(!1),[O,S]=f.default.useState([]),A={color:g,size:x.heightLookup[w].icon[b]},P={audio:e.jsx(s.UploadAudio,{...A}),file:e.jsx(a.UploadFile,{...A}),image:e.jsx(n.UploadImage,{...A}),video:e.jsx(d.UploadVideo,{...A})},_=(e,i)=>{0===e.length&&y?y(i):S(e)},M=()=>{F.current&&(F.current.value="")};return e.jsxs(e.Fragment,{children:[e.jsx(c.Modal,{controlledOpen:O.length>0,children:e.jsx(c.Modal.Content,{footer:e.jsx(o.Box,{$display:"flex",$justify:"center",$gap:16,sx:"position: relative; width: 100%;",children:e.jsx(l.Button,{fluid:!0,size:"small",type:"primary",onClick:()=>S([]),children:"Close"})}),header:e.jsx(p.H,{$bold:!0,$color:"grey-2",$fontSize:20,children:"Can't read files"}),children:e.jsx(o.Box,{$align:"flex-start",$display:"flex",$dir:"column",$gap:32,sx:"width: 500px",children:e.jsx(h.P,{$textClampLines:10,children:D})})})}),e.jsx(j,{$background:i,$borderColor:r,$draggingOver:U,$height:C||x.heightLookup[w].height[b],$width:z??0,$size:b,onDragOver:e=>{e.preventDefault(),L(!0)},onDragLeave:e=>{e.preventDefault(),L(!1)},onDrop:async e=>{S([]),e.preventDefault(),L(!1);const i=e.dataTransfer.files,r=new DataTransfer,t=[];for(const e of Array.from(i))if(B){const i=await x.validateFile(e,B);0===i.length?r.items.add(e):t.push(...i)}else r.items.add(e);const o=F.current;null!==o&&(o.files=r.files,t.length>0?_(t,o.files):_([],o.files))},children:e.jsxs(o.Box,{$align:"center",$borderRadius:"medium",$dir:"column",$display:"flex",$gap:16,$justify:"center",sx:"height: 100%; width: 100%; svg { flex-shrink: 0; };",children:[k?e.jsx(l.Button,{icon:e.jsx(u.Paperclip,{}),onClick:()=>F.current?.click(),size:"small",type:"secondary",children:v}):e.jsxs(e.Fragment,{children:[P[w],"small"!==b&&e.jsxs(o.Box,{$align:"center",$dir:"column",$display:"flex",$gap:8,$justify:"center",sx:"width: 100%;",children:[e.jsxs(h.P,{$textAlign:"center",sx:"width: 100%;",children:[v,e.jsx(l.Button,{onClick:()=>F.current?.click(),size:"small",sx:"display: inline;",type:"text",children:"Browse"})]}),e.jsx(h.P,{$textAlign:"center",sx:"width: 100%;",children:q})]})]}),e.jsx(m,{"data-testid":"dropzone-upload-input",ref:F,type:"file",multiple:$,accept:x.fileTypeLookup[w],name:"Files",onChange:async()=>{S([]);const e=F.current;if(e?.files?.length){const i=[];for(const r of e.files)if(B){const e=await x.validateFile(r,B);if(e.length>0){i.push(...e);break}}_(i,e.files)}}})]})}),f.default.Children.map(t,e=>f.default.isValidElement(e)?f.default.cloneElement(e,{handleUpload:()=>F.current?.click(),removeFileFromState:M}):e)]})};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),s=require("styled-components"),
|
|
3
|
-
${({$display:e})=>"flex"===e?"display: flex;":""}
|
|
4
|
-
${
|
|
5
|
-
${
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${({$sx:e})=>e
|
|
12
|
-
`;exports.Box=
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),s=require("styled-components"),t=require("../../../common/styles.js");const l=s.styled.div.withConfig({shouldForwardProp:e=>"sx"!==e})`
|
|
3
|
+
${({$display:e="flex"})=>"flex"===e?"display: flex;":""}
|
|
4
|
+
${t.Styles.flex}
|
|
5
|
+
${t.Styles.backgroundColor}
|
|
6
|
+
${t.Styles.borderRadius}
|
|
7
|
+
${t.Styles.elevation}
|
|
8
|
+
${t.Styles.margin}
|
|
9
|
+
${t.Styles.padding}
|
|
10
|
+
${t.Styles.styleable}
|
|
11
|
+
${({$sx:e})=>e??""}
|
|
12
|
+
`;exports.Box=s=>e.jsx(l,{...s}),exports.Component=l;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var t=require("react/jsx-runtime"),e=require("styled-components"),i=require("../../../common/styles.js");const s=e.styled.img.withConfig({shouldForwardProp:t=>!["sx","$sx","$fit","$ratio","$fill"].includes(t)})`
|
|
3
|
+
display: block;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
height: ${({$fill:t})=>t?"100%":"auto"};
|
|
6
|
+
${({$fill:t})=>t?"width: 100%;":""}
|
|
7
|
+
object-fit: ${({$fit:t="cover"})=>t};
|
|
8
|
+
aspect-ratio: ${({$ratio:t})=>t??"auto"};
|
|
9
|
+
${i.Styles.styleable}
|
|
10
|
+
`;exports.Image=({alt:e,...i})=>t.jsx(s,{alt:e,...i});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("styled-components"),t=require("../../../common/styles.js"),r=require("../../../common/media.js");const n=e=>void 0===e?"0":"number"==typeof e?`${e}px`:`var(--${e})`,d=i.styled.div.withConfig({shouldForwardProp:e=>!["sx","$breakpoint","$paddingX"].includes(e)})`
|
|
3
|
+
width: 100%;
|
|
4
|
+
margin-left: auto;
|
|
5
|
+
margin-right: auto;
|
|
6
|
+
padding-left: ${({$paddingX:e})=>n(e)};
|
|
7
|
+
padding-right: ${({$paddingX:e})=>n(e)};
|
|
8
|
+
${({$breakpoint:e="desktop"})=>{const t=r.breakpoints[e];return i.css`
|
|
9
|
+
@media (min-width: ${t}px) {
|
|
10
|
+
max-width: ${t}px;
|
|
11
|
+
}
|
|
12
|
+
`}}
|
|
13
|
+
${t.Styles.styleable}
|
|
14
|
+
`;exports.Container=i=>e.jsx(d,{...i});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),o=require("../../../common/styles.js"),i=require("../../../common/media.js");const t=e=>void 0===e?"0px":"number"==typeof e?`${e}px`:`var(--${e})`,a=r.styled.div.withConfig({shouldForwardProp:e=>!["sx","$cols","$minColWidth","$gap","$rowGap","$colGap"].includes(e)})`
|
|
3
|
+
display: grid;
|
|
4
|
+
${({$cols:e,$minColWidth:r})=>((e="auto",r=280)=>{if("auto"===e)return`grid-template-columns: repeat(auto-fit, minmax(${r}px, 1fr));`;if("number"==typeof e)return`grid-template-columns: repeat(${e}, minmax(0, 1fr));`;const o=[...i.breakpointAliasOrder].reverse().filter(r=>void 0!==e[r]);if(0===o.length)return"";const[t,...a]=o,n=[`grid-template-columns: repeat(${e[t]}, minmax(0, 1fr));`];for(const r of a){const o=e[r],t=i.breakpointAliases[r];n.push(`@media (max-width: ${t}px) { grid-template-columns: repeat(${o}, minmax(0, 1fr)); }`)}return n.join("\n")})(e,r)}
|
|
5
|
+
${({$gap:e,$rowGap:r,$colGap:o})=>{if(void 0!==r||void 0!==o){const i=[];return void 0!==r?i.push(`row-gap: ${t(r)};`):void 0!==e&&i.push(`row-gap: ${t(e)};`),void 0!==o?i.push(`column-gap: ${t(o)};`):void 0!==e&&i.push(`column-gap: ${t(e)};`),i.join(" ")}return void 0!==e?`gap: ${t(e)};`:""}}
|
|
6
|
+
${o.Styles.styleable}
|
|
7
|
+
`;exports.Grid=r=>e.jsx(a,{...r});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),s=require("styled-components"),r=require("../../../common/styles.js");const t=s.styled.div.withConfig({shouldForwardProp:e=>!["sx","$gap","$align","$justify"].includes(e)})`
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
align-items: ${({$align:e="center"})=>e};
|
|
7
|
+
justify-content: ${({$justify:e})=>e??"normal"};
|
|
8
|
+
gap: ${({$gap:e="small"})=>"number"==typeof e?`${e}px`:`var(--${e})`};
|
|
9
|
+
${r.Styles.styleable}
|
|
10
|
+
`;exports.Inline=s=>e.jsx(t,{...s});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),s=require("styled-components"),t=require("../../../common/styles.js");const r={sm:"1.5rem",md:"3rem",lg:"4rem",xl:"6rem"},i=s.styled.section.withConfig({shouldForwardProp:e=>!["sx","$spacing"].includes(e)})`
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding-top: ${({$spacing:e="md"})=>r[e]};
|
|
5
|
+
padding-bottom: ${({$spacing:e="md"})=>r[e]};
|
|
6
|
+
${t.Styles.styleable}
|
|
7
|
+
${({$sx:e})=>e??""}
|
|
8
|
+
`;exports.Section=s=>e.jsx(i,{...s});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),i=require("./typography.js");const
|
|
3
|
-
font-size: ${({$fontSize:e})=>e+"
|
|
4
|
-
line-height: ${({$
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),i=require("./typography.js"),l=require("../../../common/styles.js"),o=require("../../../common/fluid-typography.js");const r=t.styled(i.Typography).withConfig({shouldForwardProp:e=>"sx"!==e})`
|
|
3
|
+
font-size: ${({$fontSize:e=64,$fluid:t})=>t&&o.fluidFontSize[e]?o.fluidFontSize[e]:e/16+"rem"};
|
|
4
|
+
line-height: ${({$fluid:e})=>e?"1.2":void 0};
|
|
5
5
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
6
|
-
|
|
6
|
+
${l.Styles.styleable}
|
|
7
|
+
`;exports.Display=({as:t="h1",$fontSize:i=64,$lineHeight:l=96,$textAlign:o="left",...s})=>e.jsx(r,{as:t||"h1",$fontSize:i,$lineHeight:l,$textAlign:o,...s});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("styled-components"),t=require("./typography.js"),s=require("../../../common/styles.js"),n=require("../../../common/fluid-typography.js");const o=e=>e/16+"rem",l=i.styled(t.Typography).withConfig({shouldForwardProp:e=>"sx"!==e})`
|
|
3
|
+
${({$fontSize:e,$fluid:i})=>e?`font-size: ${i&&n.fluidFontSize[e]?n.fluidFontSize[e]:o(e)};`:""}
|
|
4
|
+
${({$lineHeight:e,$fluid:i})=>e?`line-height: ${i?"1.3":o(e)};`:i?"line-height: 1.3;":""}
|
|
5
5
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
6
|
+
${s.Styles.styleable}
|
|
6
7
|
${({$sx:e})=>e||""}
|
|
7
|
-
`,
|
|
8
|
+
`,a=i=>e.jsx(l,{...i}),h=i=>e.jsx(l,{as:"h1",$fontSize:48,$lineHeight:64,...i});h.displayName="H.One",a.One=h;const $=i=>e.jsx(l,{as:"h2",$fontSize:40,$lineHeight:60,...i});$.displayName="H.Two",a.Two=$;const r=i=>e.jsx(l,{as:"h3",$fontSize:36,$lineHeight:54,...i});r.displayName="H.Three",a.Three=r;const g=i=>e.jsx(l,{as:"h4",$fontSize:32,$lineHeight:48,...i});g.displayName="H.Four",a.Four=g;const y=i=>e.jsx(l,{as:"h5",$fontSize:28,$lineHeight:36,...i});y.displayName="H.Five",a.Five=y;const H=i=>e.jsx(l,{as:"h6",$fontSize:24,$lineHeight:36,...i});H.displayName="H.Six",a.Six=H;const d=i=>e.jsx(l,{as:"h6",$fontSize:20,$lineHeight:28,...i});d.displayName="H.Seven",a.Seven=d;const f=i=>e.jsx(l,{as:"h6",$fontSize:18,$lineHeight:26,...i});f.displayName="H.Eight",a.Eight=f,exports.H=a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../../../common/styles.js");const
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../../../common/styles.js"),l=require("../../../common/fluid-typography.js");const n=t.styled.p.withConfig({shouldForwardProp:e=>"sx"!==e})`
|
|
3
3
|
margin: 0px;
|
|
4
4
|
font-family: var(--font-inter);
|
|
5
|
-
font-size: ${({$fontSize:e})=>e+"
|
|
6
|
-
line-height: ${({$lineHeight:e})=>e+"
|
|
5
|
+
font-size: ${({$fontSize:e=16,$fluid:t})=>t&&l.fluidFontSize[e]?l.fluidFontSize[e]:e/16+"rem"};
|
|
6
|
+
line-height: ${({$lineHeight:e=24,$fluid:t})=>t?"1.6":e/16+"rem"};
|
|
7
7
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
8
8
|
${i.Styles.color}
|
|
9
9
|
${i.Styles.weight}
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
${i.Styles.styleable}
|
|
12
12
|
${({$textClampLines:e})=>e?i.Styles.textClamp:""}
|
|
13
13
|
${({$sx:e})=>e||""}
|
|
14
|
-
`;exports.P=({as:t="p",children:i,$fontSize:
|
|
14
|
+
`;exports.P=({as:t="p",children:i,$fontSize:l=16,$lineHeight:r=24,$textAlign:s="left",$fluid:o=!1,innerRef:$,...f})=>e.jsx(n,{as:t,$fontSize:l,$lineHeight:r,$textAlign:s,$fluid:o,ref:$,...f,children:i});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var t=require("styled-components"),e=require("../../../common/styles.js");const s=t.styled.p`
|
|
2
|
+
"use strict";var t=require("styled-components"),e=require("../../../common/styles.js");const s=t.styled.p.withConfig({shouldForwardProp:t=>"sx"!==t})`
|
|
3
3
|
margin: 0px;
|
|
4
4
|
font-family: var(--font-inter);
|
|
5
5
|
${e.Styles.color}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("@udecode/plate-common");require("../../../iconography/icon/icon.js");var s=require("../../../../icons/basic/bible.js");require("../../../../icons/basic/subtask.js");var o=require("../../constants.js");require("../../../atoms/box/box.js"),require("../../../atoms/highlighter/highlighter.js"),require("../../../atoms/typography/display.js"),require("../../../atoms/typography/heading.js");var a=require("../../../atoms/typography/paragraph.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../atoms/typography/typography.js"),require("../../../atoms/countdown/countdown.js");const n=l(r).default.forwardRef(({children:r,...i},o)=>e.jsx(t.PlateElement,{asChild:!0,ref:o,...i,children:e.jsxs(
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("@udecode/plate-common");require("../../../iconography/icon/icon.js");var s=require("../../../../icons/basic/bible.js");require("../../../../icons/basic/subtask.js");var o=require("../../constants.js");require("../../../atoms/box/box.js"),require("../../../atoms/image/image.js"),require("../../../atoms/layout/container.js"),require("../../../atoms/layout/grid.js"),require("../../../atoms/layout/inline.js"),require("../../../atoms/layout/section.js"),require("../../../atoms/highlighter/highlighter.js"),require("../../../atoms/typography/display.js"),require("../../../atoms/typography/heading.js");var a=require("../../../atoms/typography/paragraph.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../atoms/typography/typography.js"),require("../../../atoms/countdown/countdown.js");const n=l(r).default.forwardRef(({children:r,...i},o)=>e.jsx(t.PlateElement,{asChild:!0,ref:o,...i,children:e.jsxs(u,{children:[e.jsxs(d,{children:[e.jsx(s.Bible,{size:30,color:"grey-6"}),e.jsx(g,{})]}),e.jsx(a.P,{$sx:"flex:1;",$color:"grey-6",children:r})]})})),c=t.createPluginFactory({key:o.ELEMENT_BIBLICAL_QUOTE,type:o.ELEMENT_BIBLICAL_QUOTE,isElement:!0}),u=i.styled.blockquote`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
5
5
|
padding: 0;
|
|
6
6
|
margin: 0;
|
|
7
7
|
min-height: 120px;
|
|
8
|
-
`,
|
|
8
|
+
`,d=i.styled.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: row;
|
|
11
11
|
align-items: center;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
gap: 16px;
|
|
14
14
|
flex: none;
|
|
15
15
|
align-self: stretch;
|
|
16
|
-
`,
|
|
16
|
+
`,g=i.styled.div`
|
|
17
17
|
width: 1px;
|
|
18
18
|
align-self: stretch;
|
|
19
19
|
background-color: var(--color-grey-9);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("@udecode/plate-common");require("../../../iconography/icon/icon.js");var s=require("../../../../icons/basic/prayer.js");require("../../../../icons/basic/subtask.js");var a=require("../../constants.js");require("../../../atoms/box/box.js"),require("../../../atoms/highlighter/highlighter.js"),require("../../../atoms/typography/display.js"),require("../../../atoms/typography/heading.js");var
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("@udecode/plate-common");require("../../../iconography/icon/icon.js");var s=require("../../../../icons/basic/prayer.js");require("../../../../icons/basic/subtask.js");var a=require("../../constants.js");require("../../../atoms/box/box.js"),require("../../../atoms/image/image.js"),require("../../../atoms/layout/container.js"),require("../../../atoms/layout/grid.js"),require("../../../atoms/layout/inline.js"),require("../../../atoms/layout/section.js"),require("../../../atoms/highlighter/highlighter.js"),require("../../../atoms/typography/display.js"),require("../../../atoms/typography/heading.js");var o=require("../../../atoms/typography/paragraph.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../atoms/typography/typography.js"),require("../../../atoms/countdown/countdown.js");var l=n(r);const c=l.default.forwardRef(({children:r,...i},a)=>{const n=l.default.Children.toArray(r),c=n[0],d=n.slice(1);return e.jsx(t.PlateElement,{asChild:!0,ref:a,...i,children:e.jsxs(u,{children:[e.jsxs(p,{children:[e.jsx(s.Prayer,{size:40,color:"grey-6"}),e.jsx(g,{})]}),e.jsxs(y,{children:[e.jsx(o.P,{$fontSize:16,$lineHeight:24,$bold:!0,$color:"grey-3",sx:"letter-spacing: -0.176px; ",children:c}),e.jsx(o.P,{$fontSize:16,$lineHeight:24,$color:"grey-3",sx:"letter-spacing: -0.176px;",children:d})]})]})})}),d=t.createPluginFactory({key:a.ELEMENT_PRAYER_FOR_CHANGE,type:a.ELEMENT_PRAYER_FOR_CHANGE,isElement:!0}),u=i.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 8px 40px;
|
|
4
4
|
align-items: center;
|
|
5
5
|
align-self: stretch;
|
|
6
|
-
`,
|
|
6
|
+
`,p=i.styled.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
height: 72px;
|
|
9
9
|
padding: 0 16px;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: 16px;
|
|
12
|
-
`,
|
|
12
|
+
`,g=i.styled.div`
|
|
13
13
|
width: 1px;
|
|
14
14
|
align-self: stretch;
|
|
15
15
|
background-color: #eaebed;
|
|
16
16
|
flex: none;
|
|
17
|
-
`,
|
|
17
|
+
`,y=i.styled.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
align-items: flex-start;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("styled-components"),a=require("@udecode/plate-common"),t=require("./plugins.js"),i=require("./navbar.js");require("../../surfaces/accordion/accordion.js"),require("../../surfaces/carousel/card/card.js"),require("../../surfaces/comment/comment.js"),require("../../surfaces/discuss_post/discuss_post.js"),require("../../surfaces/drawer/drawer.js"),require("../../surfaces/drawer/bottom-drawer.js"),require("../../surfaces/message/message.js");var s=require("../../surfaces/modal/modal.js");require("react-dom"),require("../../surfaces/post/post.js"),require("../../surfaces/calendar_date/calendar_date.js"),require("../../surfaces/success_modal/success-modal.js"),require("../../surfaces/trailer-modal/trailer-modal.js");var n=require("../../atoms/box/box.js");require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js");var l=require("../../atoms/typography/heading.js"),d=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),o=require("styled-components"),a=require("@udecode/plate-common"),t=require("./plugins.js"),i=require("./navbar.js");require("../../surfaces/accordion/accordion.js"),require("../../surfaces/carousel/card/card.js"),require("../../surfaces/comment/comment.js"),require("../../surfaces/discuss_post/discuss_post.js"),require("../../surfaces/drawer/drawer.js"),require("../../surfaces/drawer/bottom-drawer.js"),require("../../surfaces/message/message.js");var s=require("../../surfaces/modal/modal.js");require("react-dom"),require("../../surfaces/post/post.js"),require("../../surfaces/calendar_date/calendar_date.js"),require("../../surfaces/success_modal/success-modal.js"),require("../../surfaces/trailer-modal/trailer-modal.js");var n=require("../../atoms/box/box.js");require("../../atoms/image/image.js"),require("../../atoms/layout/container.js"),require("../../atoms/layout/grid.js"),require("../../atoms/layout/inline.js"),require("../../atoms/layout/section.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js");var l=require("../../atoms/typography/heading.js"),d=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var u=require("../../actions/button/button.js");require("../../actions/dropdown/dropdown.js"),require("../../actions/rate/rate.js"),require("../../actions/switch/switch.js"),require("../../actions/toggle/toggle.js"),require("../../actions/upload/upload.js"),require("../../actions/AccountSelector/selector.js"),require("../../actions/stepIndicator/stepIndicator.js");var c=require("../../actions/upload/validations.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(r);const m=o.styled.div`
|
|
3
3
|
& > div {
|
|
4
4
|
padding: 24px;
|
|
5
5
|
min-height: 224px;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
${({$sx:e})=>e||""};
|
|
13
|
-
`,
|
|
13
|
+
`,g=o.styled.div`
|
|
14
14
|
position: relative;
|
|
15
15
|
max-width: 1200px;
|
|
16
16
|
width: 100%;
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
& > [data-slate-editor='true'] > * {
|
|
71
71
|
margin: 24px 0px;
|
|
72
72
|
}
|
|
73
|
-
`;exports.SimpleEditor=({editable:r,handleUploadImage:o,onChange:p,validation:
|
|
73
|
+
`;exports.SimpleEditor=({editable:r,handleUploadImage:o,onChange:p,validation:j,sx:x,validationMessage:f,placeholder:q="",previousContent:y=[{type:"p",children:[{text:""}]}],showLink:v=!0,showImage:b=!0})=>{const[w,$]=h.default.useState([]);return e.jsxs(e.Fragment,{children:[e.jsx(s.Modal,{controlledOpen:w.length>0,children:e.jsx(s.Modal.Content,{footer:e.jsx(n.Box,{$display:"flex",$justify:"center",$gap:16,sx:"position: relative; width: 100%;",children:e.jsx(u.Button,{fluid:!0,size:"small",type:"primary",onClick:()=>$([]),children:"Close"})}),header:e.jsx(l.H,{$bold:!0,$color:"grey-2",$fontSize:20,children:"Can't read files"}),children:e.jsx(n.Box,{$align:"flex-start",$display:"flex",$dir:"column",$gap:32,sx:"width: 500px",children:e.jsx(d.P,{$textClampLines:10,children:f})})})}),e.jsx(a.Plate,{id:"main",initialValue:y,onChange:p,plugins:t.plugins,children:e.jsxs(g,{children:[r&&e.jsx(i.EditorBar,{handleUploadImage:async e=>{$([]);const r=[];if(j)for(let o=0;o<e.length;o++){const a=e[o],t=await c.validateFile(a,j);if(t.length>0){r.push(...t);break}}return r?.length>0?($(r),""):await o(e)},showLink:v,showImage:b}),e.jsx(m,{$sx:x,children:e.jsx(a.PlateContent,{id:"main",autoFocus:!0,placeholder:q,readOnly:!r,spellCheck:!0})})]})})]})};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("../../../assets/custom_emoji_data.json.js"),i=require("react-window"),s=require("./utils.js"),n=require("./constants.js"),a=require("../../atoms/box/box.js");require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var d=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js"),require("../../iconography/icon/icon.js"),require("../../../icons/basic/subtask.js");var
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("../../../assets/custom_emoji_data.json.js"),i=require("react-window"),s=require("./utils.js"),n=require("./constants.js"),a=require("../../atoms/box/box.js");require("../../atoms/image/image.js"),require("../../atoms/layout/container.js"),require("../../atoms/layout/grid.js"),require("../../atoms/layout/inline.js"),require("../../atoms/layout/section.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var d=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js"),require("../../iconography/icon/icon.js"),require("../../../icons/basic/subtask.js");var u=require("../../../icons/basic/emoticon_add.js"),l=require("../../../icons/emoji/emoji_add.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/security/verified_filled.js"),require("../../../common/colors.js");var p=c(r),g=c(t);const x={[n.CategoryId.FREQUENTLY]:"Frequently Used",[n.CategoryId.PEOPLE]:"Smile & People",[n.CategoryId.NATURE]:"Nature",[n.CategoryId.FOODS]:"Food & Drink",[n.CategoryId.ACTIVITY]:"Activity",[n.CategoryId.OBJECTS]:"Objects",[n.CategoryId.SYMBOLS]:"Symbols",[n.CategoryId.FLAGS]:"Flags"},m=g.default.div`
|
|
2
2
|
cursor: pointer;
|
|
3
|
-
`,
|
|
3
|
+
`,h=g.default.div`
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-block;
|
|
6
|
-
`,
|
|
6
|
+
`,j=g.default.div`
|
|
7
7
|
z-index: 100;
|
|
8
8
|
width: 320px;
|
|
9
9
|
max-height: 450px;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
justify-content: center;
|
|
22
22
|
align-items: center;
|
|
23
23
|
border-bottom: 1px solid var(--color-grey-9);
|
|
24
|
-
`,
|
|
24
|
+
`,f=g.default.input`
|
|
25
25
|
width: 95%;
|
|
26
26
|
padding: 6px 0px 6px 6px;
|
|
27
27
|
border-radius: 6px;
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
&:hover {
|
|
81
81
|
background: var(--color-grey-9);
|
|
82
82
|
}
|
|
83
|
-
`;exports.CustomEmojiPicker=({onSelect:r,onClickOutside:t,open:i,trigger:
|
|
83
|
+
`;exports.CustomEmojiPicker=({onSelect:r,onClickOutside:t,open:i,trigger:c,$pickersx:g})=>{const[$,C]=p.default.useState(n.CategoryId.FREQUENTLY),[k,q]=p.default.useState(""),[w,L]=p.default.useState(""),T=p.default.useRef(null),O=p.default.useRef(null),[R,_]=p.default.useState(!1),P=void 0!==i?i:R;p.default.useEffect(()=>{const e=e=>{T.current&&!T.current.contains(e.target)&&(void 0===i&&_(!1),t())};return P&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[P,i]),p.default.useEffect(()=>{const e=setTimeout(()=>{L(k)},300);return()=>{clearTimeout(e)}},[k]);const{categories:U,emojiMap:N}=p.default.useMemo(()=>s.preprocessEmojiData(o.default,n.FREQUENTLY_USED_IDS),[]),z=p.default.useMemo(()=>{if(!w.trim())return U;const e=w.toLowerCase(),r=[];for(const t of Object.values(N))(t.name.toLowerCase().includes(e)||t.keywords?.some(r=>r.toLowerCase().includes(e)))&&r.push(t);return{search:r}},[U,N,w]),M=p.default.useMemo(()=>{const e=Object.entries(z);return"search"in z?e.map(([e,r])=>({categoryId:e,emojis:r})):e.sort((e,r)=>e[0]===n.CategoryId.FREQUENTLY?-1:r[0]===n.CategoryId.FREQUENTLY?1:0).map(([e,r])=>({categoryId:e,emojis:r}))},[z]),F=p.default.memo(({index:t,style:o})=>{const i=M[t],s="search"===i.categoryId;return e.jsxs("div",{style:o,children:[e.jsx(d.P,{$color:"grey-5",sx:"padding: 8px;",$fontSize:14,children:s&&i.emojis.length>0?"Search Results":i.emojis.length>0?x[i.categoryId]||i.categoryId:null}),s&&0===i.emojis.length?e.jsxs(a.Box,{$dir:"column",$align:"center",sx:" height: 100%;",children:[e.jsx(a.Box,{sx:"margin-top:auto;",children:e.jsx(u.Emoticon,{size:24})}),e.jsx(d.P,{$bold:!0,children:"No emojis found."}),e.jsx(d.P,{$fontSize:10,sx:"margin-bottom: auto;",children:"Try using different keywords"})]}):e.jsx(b,{children:i.emojis.map(t=>e.jsx(v,{$x:t.coordinates?.x,$y:t.coordinates?.y,title:`:${t.id}`,onClick:()=>{r({id:t.id,name:t.name,native:t.skins?.[0]?.native||"",unified:t.skins?.[0]?.unified||""}),_(!1)},children:!t.coordinates&&t.skins[0].native},t.id))})]})});return e.jsxs(h,{ref:T,onMouseDown:e=>{e.stopPropagation()},onMouseUp:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},children:[e.jsx(m,{onClick:()=>_(e=>!e),style:{cursor:"pointer"},children:c??e.jsx(a.Box,{sx:"width: 28px; height: 28px;",$justify:"center",$align:"center",children:e.jsx(l.EmojiAdd,{size:32})})}),P&&e.jsxs(j,{$sx:g,children:[e.jsx(y,{children:e.jsx(f,{type:"text",placeholder:"Search…",value:k,onChange:e=>{q(e.target.value)}})}),e.jsx(E,{height:400,itemCount:M.length,itemSize:e=>{const r=M[e].emojis.length;return 36+38*Math.ceil(r/10)+12},width:"100%",ref:O,children:F}),e.jsx(I,{children:Object.entries(n.CATEGORY_ICONS).map(([r,t])=>e.jsx(S,{$active:$===r,onClick:()=>(e=>{const r=M.findIndex(r=>r.categoryId===e);-1!==r&&O.current&&(O.current.scrollToItem(r,"start"),C(e))})(r),children:t},r))})]})]})};
|