@soul-refiner/design-system 2.14.151 → 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/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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("./sparkle-reaction.js"),s=require("../../../assets/custom_emoji_data.json.js"),a=require("./utils.js");require("../../atoms/box/box.js"),require("../../atoms/highlighter/highlighter.js"),require("../../atoms/typography/display.js"),require("../../atoms/typography/heading.js");var i=require("../../atoms/typography/paragraph.js");function
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("./sparkle-reaction.js"),s=require("../../../assets/custom_emoji_data.json.js"),a=require("./utils.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 i=require("../../atoms/typography/paragraph.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js");var n=u(t);const c=u(o).default.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: ${({$showCount:e})=>e?"4px":"0"};
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
&:hover {
|
|
15
15
|
background: ${({$active:e,$showCount:t})=>e&&t?"":t?"var(--color-grey-9)":"transparent"};
|
|
16
16
|
}
|
|
17
|
-
`;exports.EmojiReaction=({emoji:t,isActive:o,count:
|
|
17
|
+
`;exports.EmojiReaction=({emoji:t,isActive:o,count:u,size:l,onReact:d,showCount:m=!0,showSparkle:p=!1})=>{const[j,h]=n.default.useState(p),g=n.default.useMemo(()=>a.buildNativeEmojiMap(s.default.emojis||{}),[]);n.default.useEffect(()=>{if(p){h(!0);const e=setTimeout(()=>h(!1),2e3);return()=>clearTimeout(e)}},[p]),n.default.useEffect(()=>{if(j){const e=setTimeout(()=>h(!1),600);return()=>clearTimeout(e)}},[]);const y=g[t];return y?e.jsxs(c,{$active:o,$showCount:m,onClick:()=>{d(),h(!0),setTimeout(()=>h(!1),600)},children:[e.jsx(r.ReactionEmoji,{emojiId:y.id,coordinates:y.coordinates,size:l,sparkleOnMount:j}),m&&e.jsx(i.P,{$fontSize:12,$color:"grey-5",children:u})]}):null};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("next/image"),r=require("next/link"),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("next/image"),r=require("next/link"),o=require("styled-components"),n=require("react-show-more-text"),s=require("../../../common/regex.js"),l=require("../../atoms/box/box.js"),a=require("../../atoms/highlighter/highlighter.js"),d=require("../../atoms/typography/heading.js"),c=require("../../atoms/typography/paragraph.js"),h=require("../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/typography/display.js"),require("../../atoms/typography/typography.js");var u=require("../../atoms/time_ago/time_ago.js");require("../../atoms/countdown/countdown.js");var p=require("../../iconography/avatar/avatar.js"),x=require("../../../icons/security/lock.js"),g=require("../../../icons/arrow/chevron_left.js"),m=require("../../../icons/arrow/chevron_right.js"),f=require("../../media/video/video.js");require("../../iconography/icon/icon.js");var y=require("../../../icons/audio_video/play.js");function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../icons/security/verified_filled.js"),require("../../../common/colors.js");var v=j(t),b=j(i),w=j(r),$=j(n);const k=o.styled.div`
|
|
3
3
|
position: relative;
|
|
4
4
|
max-width: 700px;
|
|
5
5
|
width: 100%;
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
text-decoration: underline;
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
}
|
|
19
|
-
`;
|
|
19
|
+
`;o.styled.button`
|
|
20
20
|
background: none;
|
|
21
21
|
border: none;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
color: var(--color-grey-5);
|
|
24
|
-
`;const q=
|
|
24
|
+
`;const q=o.styled.div`
|
|
25
25
|
padding: 16px 24px;
|
|
26
26
|
display: flex;
|
|
27
27
|
justify-content: space-between;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
border-bottom: 1px solid var(--color-grey-9);
|
|
30
|
-
`,C=
|
|
30
|
+
`,C=o.styled.div`
|
|
31
31
|
position: absolute;
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
background: var(--color-grey-0);
|
|
42
42
|
border-radius: inherit;
|
|
43
43
|
overflow: hidden;
|
|
44
|
-
`,z=
|
|
44
|
+
`,z=o.styled.div`
|
|
45
45
|
position: absolute;
|
|
46
46
|
width: 64px;
|
|
47
47
|
height: 64px;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
z-index: 3;
|
|
57
57
|
pointer-events: none;
|
|
58
58
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
59
|
-
`,H=
|
|
59
|
+
`,H=o.styled.div`
|
|
60
60
|
position: relative;
|
|
61
61
|
display: flex;
|
|
62
62
|
gap: 8px;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
${({$numImages:e})=>e>1?"\n div {\n min-width: calc(50% - 4px);\n max-width: calc(50% - 4px);\n\n flex:1;\n img {\n object-fit: cover;\n width: 100%;\n height: 100%;\n }\n }":"\n div > img {\n object-fit: contain;\n width: 100%;\n height: 100%;\n }\n "}
|
|
78
|
-
`,P=
|
|
78
|
+
`,P=o.styled.div`
|
|
79
79
|
position: relative;
|
|
80
80
|
aspect-ratio: 700 / 427;
|
|
81
81
|
flex: 1;
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
height: 100%;
|
|
91
91
|
pointer-events: none;
|
|
92
92
|
}
|
|
93
|
-
`,S=
|
|
93
|
+
`,S=o.styled.div`
|
|
94
94
|
position: relative;
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 480px;
|
|
97
|
-
`,R=
|
|
97
|
+
`,R=o.styled.div`
|
|
98
98
|
position: relative;
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
@@ -104,17 +104,17 @@
|
|
|
104
104
|
justify-content: center;
|
|
105
105
|
gap: 16px;
|
|
106
106
|
overflow: hidden;
|
|
107
|
-
`,E=
|
|
107
|
+
`,E=o.styled.div`
|
|
108
108
|
display: flex;
|
|
109
109
|
justify-content: space-around;
|
|
110
110
|
align-items: center;
|
|
111
111
|
padding: 24px;
|
|
112
|
-
`,L=
|
|
112
|
+
`,L=o.styled.div`
|
|
113
113
|
padding: 24px;
|
|
114
114
|
display: flex;
|
|
115
115
|
flex-flow: column nowrap;
|
|
116
116
|
gap: 24px;
|
|
117
|
-
`,_=
|
|
117
|
+
`,_=o.styled.button`
|
|
118
118
|
width: 48px;
|
|
119
119
|
height: 150px;
|
|
120
120
|
display: flex;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
&:hover {
|
|
131
131
|
background-color: rgba(0, 0, 0, 0.2);
|
|
132
132
|
}
|
|
133
|
-
`,U=
|
|
133
|
+
`,U=o.styled.div`
|
|
134
134
|
margin-top: 24px;
|
|
135
135
|
border-radius: 32px;
|
|
136
136
|
border: 1px solid var(--color-grey-8);
|
|
@@ -138,4 +138,4 @@
|
|
|
138
138
|
padding: 6px 16px;
|
|
139
139
|
width: fit-content;
|
|
140
140
|
cursor: pointer;
|
|
141
|
-
`;exports.Post=({actions:t,author:i,authorActive:r,authorHref:
|
|
141
|
+
`;exports.Post=({actions:t,author:i,authorActive:r,authorHref:o,authorImage:n,avatarTooltipContent:j,avatarTooltipSx:A,children:B,content:I,createdDate:M,dropdown:T,hasComments:F,id:W,images:D,isPaidUser:J,isPaywalled:V=!1,link:X,video:G,onJoin:N,monthlyMembershipPrice:O,onImageClick:Y})=>{const K=v.default.useId(),Q=v.default.useRef(null),[Z,ee]=v.default.useState(!1),[te,ie]=v.default.useState(-1),[re,oe]=v.default.useState(!1);v.default.useRef(null);const[ne,se]=v.default.useState(-1),[le,ae]=v.default.useState({x:"30vw",y:"30vh"}),de=!!G?.url&&!!G?.thumbnail,ce=G?.displayHtmlVideo,[he,ue]=v.default.useState(!1),pe=v.default.useRef(null);v.default.useEffect(()=>{if(Q.current&&I?.length>0){const e=24,t=Math.ceil(Q.current.offsetHeight/e);if(ie(t),!Z)try{const t=Q.current.style.webkitLineClamp;Q.current.style.webkitLineClamp="none";const i=Q.current.offsetHeight,r=Math.ceil(i/e);Q.current.style.webkitLineClamp=t,oe(r>3)}catch(e){oe(t>=3)}}else ie(-1),oe(!1)},[I,Z]),v.default.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?fe():"ArrowRight"===e.key?me():"Escape"!==e.key&&"Enter"!==e.key||se(-1)};return"undefined"!=typeof document&&D?.length&&ne>-1&&document.addEventListener("keydown",e),()=>{D?.length&&document.removeEventListener("keydown",e)}},[]);const xe=v.default.Children.toArray(t),ge=v.default.Children.toArray(B),me=()=>{se(e=>D?.length&&e!==D.length-1?e+1:e)},fe=()=>{se(e=>D?.length&&0!==e?e-1:e)};return e.jsxs(k,{id:W,children:[ne>-1&&!!D?.[ne]&&e.jsx(h.Modal,{alwaysRender:!1,controlledOpen:!0,onChange:e=>!e&&se(-1),children:e.jsxs(h.Modal.Content,{sx:`\n position: relative; \n height: ${le.y}; \n width: ${le.x};\n margin: 0 auto;\n `,children:[e.jsx(_,{$side:"left",$visible:0!==ne,onClick:fe,children:e.jsx(g.ChevronLeft,{color:"white",size:48})}),e.jsx(b.default,{alt:"",fill:!0,quality:100,onLoad:e=>{const{naturalHeight:t,naturalWidth:i}=e.target;let r=`${i}px`,o=`${t}px`;window?.innerHeight<t&&window?.innerWidth<i?(r=`${Math.floor(.95*window.innerHeight*i/t)}px`,o=`${Math.round(.95*window.innerWidth*t/i)}px`):window?.innerHeight<t?(r=`${Math.floor(.95*window.innerHeight*i/t)}px`,o="95vh"):window?.innerWidth<i&&(r="95vw",o=`${Math.round(.95*window.innerWidth*t/i)}px`),ae({x:r,y:o})},draggable:!1,priority:!0,sizes:"100vw",src:D[ne],style:{objectFit:"cover"}}),e.jsx(_,{$side:"right",$visible:ne!==D.length-1,onClick:me,children:e.jsx(m.ChevronRight,{color:"white",size:48})})]})}),e.jsxs(q,{children:[n&&"/images/default_avatar.png"!==n?e.jsx(p.Avatar,{isPaidUser:J,as:o?w.default:"button",href:o,image:n,size:64,status:r?"online":void 0,subtitle:e.jsx(c.P,{as:"span",sx:"vertical-align: top;",$fontSize:14,$lineHeight:20,children:e.jsx(u.TimeAgo,{date:new Date(M)})}),title:e.jsx(d.H,{as:o?w.default:"span",href:o,sx:"text-decoration:none;",$bold:!0,$fontSize:18,$lineHeight:26,children:i}),textPosition:"right",tooltipContent:j,tooltipSx:A,sx:o?"img { cursor: pointer; }":void 0}):e.jsxs(l.Box,{$align:"center",$gap:12,children:[e.jsx(p.Avatar.Initials,{name:i||"U",size:64}),e.jsxs(l.Box,{$dir:"column",children:[e.jsx(d.H,{as:o?w.default:"span",href:o,sx:"text-decoration:none;",$bold:!0,$fontSize:18,$lineHeight:26,children:i}),e.jsx(c.P,{as:"span",sx:"vertical-align: top;",$fontSize:14,$lineHeight:20,children:e.jsx(u.TimeAgo,{date:new Date(M)})})]})]}),T]}),!!I?.length&&e.jsxs("div",{style:{padding:"16px 24px"},children:[V&&te>1?e.jsx($.default,{lines:2,more:"Continue Reading",onClick:N,anchorClass:"see-more",expanded:!1,truncatedEndingComponent:"... ",children:e.jsx(c.P,{$sx:"white-space: pre-line; word-break: break-word;",$textClampLines:2,children:e.jsx(a.Highlighter,{highlightRender:t=>e.jsx(c.P,{as:"span",$color:"primary-blue-2",children:e.jsx(w.default,{href:t,target:"_blank",children:t})}),seperator:s.URL_REGEX,text:I})})}):e.jsxs(e.Fragment,{children:[e.jsx(c.P,{$sx:"white-space: pre-line; word-break: break-word;",innerRef:Q,$textClampLines:Z?void 0:5,children:e.jsx(a.Highlighter,{highlightRender:t=>e.jsx(c.P,{as:"span",$color:"primary-blue-2",children:e.jsx(w.default,{href:t,target:"_blank",children:t})}),seperator:s.URL_REGEX,text:V&&1===te?"This is a premium post. Join to the membership to unlock the full access.":I})}),re&&!V?e.jsx(c.P,{$color:"grey-5",sx:"cursor:pointer;",$mediumBold:!0,$fontSize:14,onClick:()=>ee(e=>!e),children:Z?"See less":"See more"}):null]}),V&&!D?.length&&e.jsx(U,{onClick:N,children:e.jsxs(c.P,{$fontSize:14,$mediumBold:!0,children:["Join now for $",O," per month"]})})]}),V&&!!D?.length&&!de&&e.jsxs(R,{children:[e.jsx(b.default,{alt:"",width:650,height:427,priority:!0,quality:100,src:D[0],style:{objectFit:"fill",height:"100%",width:"100%",filter:"blur(60px)",position:"absolute",top:0,left:"50%",transform:"translateX(-50%)"}}),e.jsx(x.Lock,{size:40,color:"white",sx:"z-index: 1"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",zIndex:1},children:[e.jsx(c.P,{$color:"white",$fontSize:14,$bold:!0,$lineHeight:20,children:"Become a member"}),e.jsx(c.P,{$color:"white",$fontSize:14,$bold:!0,$lineHeight:20,children:"to unlock this post"})]}),e.jsx(U,{onClick:N,style:{zIndex:1,marginTop:0},children:e.jsxs(c.P,{$fontSize:14,$mediumBold:!0,children:["Join now for $",O," per month"]})})]}),!!D?.length&&!de&&!V&&e.jsxs(H,{$numImages:D.length,children:[D.slice(0,4).map((t,i)=>e.jsx(P,{children:e.jsx(b.default,{alt:"",fill:!0,onClick:()=>{Y?.(i),se(i)},quality:100,src:t,draggable:!1,style:{cursor:"pointer",objectFit:"cover"}})},`${K}${t.slice(0,15)}${i}`)),D.length>4&&e.jsxs(d.H,{as:"p",className:"more-than",sx:"pointer-events: none;",$color:"grey-10",$fontSize:28,$lineHeight:36,$semiBold:!0,children:["+",D.length-4]})]}),!D?.length&&!de&&X&&!V&&e.jsxs(w.default,{href:X.url,target:"_blank",children:[e.jsx(P,{children:e.jsx(b.default,{alt:"",fill:!0,quality:100,src:X.imageUrl,draggable:!1,style:{cursor:"pointer",objectFit:"cover"}})}),e.jsxs(l.Box,{$dir:"column",$gap:8,sx:"padding: 8px 16px;",children:[e.jsx(c.P,{$color:"grey-2",$semiBold:!0,children:X.title}),e.jsx(c.P,{$color:"grey-5",children:X.description})]})]}),de&&e.jsx(S,{children:ce?he?e.jsxs("video",{ref:pe,style:{width:"100%",height:"100%"},controls:!0,playsInline:!0,poster:G.thumbnail,children:[G.videoUrls.webm&&e.jsx("source",{src:G.videoUrls.webm,type:"video/webm; codecs=vp9"}),G.videoUrls.mp4&&e.jsx("source",{src:G.videoUrls.mp4,type:"video/mp4; codecs=avc1.42E01E"}),"Your browser does not support the video tag."]}):e.jsxs(C,{onClick:()=>{ue(!0),setTimeout(()=>{pe.current?.play()},100)},children:[e.jsx(b.default,{src:G.thumbnail,alt:"Video thumbnail",fill:!0,style:{objectFit:"cover",borderRadius:"inherit"},priority:!0,draggable:!1}),e.jsx(z,{children:e.jsx(y.Play,{size:32,color:"white"})})]}):e.jsx(f.Video,{src:G.url,thumbnail:G.thumbnail,subtitles:[],title:G?.title})}),!!xe.length&&e.jsx(E,{children:!V&&xe}),F&&!!ge.length&&e.jsx(L,{children:ge})]})};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"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 t=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js"),require("../../iconography/icon/icon.js");var r=require("../../../icons/basic/close.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../icons/security/verified_filled.js"),require("../../../common/colors.js");var o=i(require("styled-components"));const n=o.default.div`
|
|
1
|
+
"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 t=require("../../atoms/typography/paragraph.js");require("../../atoms/typography/typography.js"),require("../../atoms/countdown/countdown.js"),require("../../iconography/icon/icon.js");var r=require("../../../icons/basic/close.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../../icons/basic/subtask.js"),require("../../../icons/security/verified_filled.js"),require("../../../common/colors.js");var o=i(require("styled-components"));const n=o.default.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
letter-spacing: -0.084px;
|
|
124
124
|
font-family: var(--font-inter);
|
|
125
125
|
text-align: center;
|
|
126
|
-
`,
|
|
126
|
+
`,u=o.default.div`
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
129
129
|
align-items: center;
|
|
@@ -132,4 +132,4 @@
|
|
|
132
132
|
justify-content: center;
|
|
133
133
|
/* mx auto */
|
|
134
134
|
margin: 0 auto;
|
|
135
|
-
`;exports.SuccessModal=({onClose:t,title:i,message:o,actionText:
|
|
135
|
+
`;exports.SuccessModal=({onClose:t,title:i,message:o,actionText:h,onAction:m,openAppText:f="Open in the app",openAppAction:y=()=>{}})=>e.jsx(n,{children:e.jsxs(a,{children:[e.jsx(l,{onClick:t,children:e.jsx(r.Close,{})}),e.jsx(s,{children:i}),e.jsx(p,{children:e.jsx(c,{viewBox:"0 0 24 24",children:e.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19l12-12-1.41-1.41z"})})}),e.jsx(g,{children:o}),e.jsxs(u,{children:[e.jsx(d,{onClick:m,children:h}),e.jsx(x,{onClick:y,children:f})]})]})});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./components/actions/button/button.js"),o=require("./components/actions/dropdown/dropdown.js"),r=require("./components/actions/rate/rate.js"),
|
|
1
|
+
"use strict";var e=require("./components/actions/button/button.js"),o=require("./components/actions/dropdown/dropdown.js"),r=require("./components/actions/rate/rate.js"),t=require("./components/actions/switch/switch.js"),s=require("./components/actions/toggle/toggle.js"),n=require("./components/actions/upload/upload.js"),i=require("./components/actions/AccountSelector/selector.js"),a=require("./components/actions/stepIndicator/stepIndicator.js"),p=require("./components/atoms/box/box.js"),c=require("./components/atoms/image/image.js"),u=require("./components/atoms/layout/container.js"),m=require("./components/atoms/layout/grid.js"),d=require("./components/atoms/layout/inline.js"),l=require("./components/atoms/layout/section.js"),x=require("./components/atoms/layout/stack.js"),j=require("./components/atoms/hide/hide.js"),q=require("./components/atoms/highlighter/highlighter.js"),g=require("./components/atoms/seconds_to_duration/seconds_to_duration.js"),b=require("./components/atoms/typography/display.js"),y=require("./components/atoms/typography/heading.js"),h=require("./components/atoms/typography/paragraph.js"),C=require("./components/atoms/typography/typography.js"),f=require("./components/atoms/time_ago/time_ago.js"),w=require("./components/atoms/countdown/countdown.js"),T=require("./components/card/card.js"),_=require("./components/card/simple-course/horizontal-course-card.js"),S=require("./components/editor/editor.js"),P=require("./components/editor/simple_editor/simple_editor.js"),k=require("./components/editor/minimal_editor/minimal_editor.js"),v=require("./components/feedback/badge/badge.js"),A=require("./components/feedback/banner/banner.js"),I=require("./components/feedback/loader/loader.js"),D=require("./components/feedback/notification/notification.js"),B=require("./components/feedback/progress/progress.js"),M=require("./components/feedback/toast/toast.js"),E=require("./components/feedback/tooltip/tooltip.js"),H=require("./components/feedback/animated_toast/animated_toast.js"),R=require("./components/feedback/emojiPicker/emoji-picker.js"),L=require("./components/feedback/emojiPicker/emoji-reactions.js"),N=require("./components/feedback/videoLoader/videoLoader.js"),V=require("./components/iconography/avatar/avatar.js"),U=require("./components/iconography/icon/icon.js"),z=require("./components/input/checkbox/checkbox.js"),F=require("./components/input/counter/counter.js"),G=require("./components/input/date/date.js"),J=require("./components/input/filter/filter.js"),K=require("./components/input/radio/radio.js"),O=require("./components/input/search/search.js"),Q=require("./components/input/select/select.js"),W=require("./components/input/text_area/text_area.js"),X=require("./components/input/text_input/text_input.js"),Y=require("./components/input/calendar/calendar.js"),Z=require("./components/input/time/time.js"),$=require("./components/input/time_input/time_input.js"),ee=require("./components/input/dropdown-select/dropdown-select.js"),oe=require("./components/media/audio-player/audio-player.js"),re=require("./components/media/audio-playlist/audio-playlist.js"),te=require("./components/media/audio-preview/audio-preview.js"),se=require("./components/media/video/video.js"),ne=require("./components/media/video-player/video.js"),ie=require("./components/media/audio-playlist/playing_indicator.js"),ae=require("./components/navigation/breadcrumb/breadcrumb.js"),pe=require("./components/navigation/inner/inner.js"),ce=require("./components/navigation/tabs/tabs.js"),ue=require("./components/navigation/tabs/custom-tabs.js"),me=require("./components/surfaces/accordion/accordion.js"),de=require("./components/surfaces/carousel/card/card.js"),le=require("./components/surfaces/comment/comment.js"),xe=require("./components/surfaces/discuss_post/discuss_post.js"),je=require("./components/surfaces/drawer/drawer.js"),qe=require("./components/surfaces/drawer/bottom-drawer.js"),ge=require("./components/surfaces/message/message.js"),be=require("./components/surfaces/modal/modal.js"),ye=require("./components/surfaces/portal/portal.js"),he=require("./components/surfaces/post/post.js"),Ce=require("./components/surfaces/calendar_date/calendar_date.js"),fe=require("./components/surfaces/success_modal/success-modal.js"),we=require("./components/surfaces/trailer-modal/trailer-modal.js"),Te=require("./components/table/table/table.js"),_e=require("./components/custom/users_selection/users_selection.js"),Se=require("./components/custom/courses_selection/courses_selection.js"),Pe=require("./components/animation/carousel/Carousel.js"),ke=require("./components/animation/marquee/Marquee.js"),ve=require("./icons/index.js"),Ae=require("./emoji/emojis.json.js");exports.Button=e.Button,exports.Dropdown=o.Dropdown,exports.Rate=r.Rate,exports.Switch=t.Switch,exports.Toggle=s.Toggle,exports.Upload=n.Upload,exports.AccountSelector=i.AccountSelector,exports.StepIndicator=a.StepIndicator,exports.Box=p.Box,exports.Image=c.Image,exports.Container=u.Container,exports.Grid=m.Grid,exports.Inline=d.Inline,exports.Section=l.Section,exports.Stack=x.Stack,exports.HideButRender=j.HideButRender,exports.Highlighter=q.Highlighter,exports.SecToDuration=g.SecToDuration,exports.Display=b.Display,exports.H=y.H,exports.P=h.P,exports.Typography=C.Typography,exports.TimeAgo=f.TimeAgo,exports.Countdown=w.Countdown,exports.Card=T.Card,exports.HorizontalCourseCard=_.HorizontalCourseCard,exports.Editor=S.Editor,exports.SimpleEditor=P.SimpleEditor,exports.MinimalEditor=k.MinimalEditor,exports.Badge=v.Badge,exports.Banner=A.Banner,exports.Loader=I.Loader,exports.Notification=D.Notification,exports.Progress=B.Progress,exports.Toast=M.Toast,exports.Tooltip=E.Tooltip,exports.AnimatedToast=H.AnimatedToast,exports.CustomEmojiPicker=R.CustomEmojiPicker,exports.EmojiReaction=L.EmojiReaction,exports.VideoLoader=N.VideoLoader,exports.Avatar=V.Avatar,exports.Icon=U.Icon,exports.Checkbox=z.Checkbox,exports.Counter=F.Counter,exports.DatePicker=G.DatePicker,exports.Filter=J.Filter,exports.Radio=K.Radio,exports.Search=O.Search,exports.Select=Q.Select,exports.TextArea=W.TextArea,exports.TextInput=X.TextInput,exports.CalendarInput=Y.CalendarInput,exports.Time=Z.Time,exports.TimeInput=$.TimeInput,exports.DropdownSelect=ee.DropdownSelect,exports.AudioPlayer=oe.AudioPlayer,exports.AudioPlaylist=re.AudioPlaylist,exports.AudioPreview=te.AudioPreview,exports.Video=se.Video,exports.VideoPlayer=ne.VideoPlayer,exports.NowPlaying=ie.NowPlaying,exports.Breadcrumb=ae.Breadcrumb,exports.InnerNav=pe.InnerNav,exports.Tabs=ce.Tabs,exports.CustomTabs=ue.CustomTabs,exports.Accordion=me.Accordion,exports.CardCarousel=de.CardCarousel,exports.Comment=le.Comment,exports.DiscussPost=xe.DiscussPost,exports.Drawer=je.Drawer,exports.BottomDrawer=qe.BottomDrawer,exports.Message=ge.Message,exports.Modal=be.Modal,exports.Portal=ye.Portal,exports.Post=he.Post,exports.CalendarDate=Ce.CalendarDate,exports.SuccessModal=fe.SuccessModal,exports.TrailerModal=we.TrailerModal,exports.Table=Te.Table,exports.UsersSelection=_e.UsersSelection,exports.CoursesSelection=Se.CoursesSelection,exports.Carousel=Pe.Carousel,exports.Marquee=ke.Marquee,exports.Icons=ve,exports.emoji=Ae;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared fluid font-size values used by Display, Heading, and Paragraph components.
|
|
3
|
+
*
|
|
4
|
+
* Each entry maps a pixel-based font size to a CSS `clamp()` expression that
|
|
5
|
+
* scales smoothly with viewport width. The clamp format is:
|
|
6
|
+
* clamp(min-rem, preferred-vw, max-rem)
|
|
7
|
+
*
|
|
8
|
+
* Components opt in via the `$fluid` prop.
|
|
9
|
+
*/
|
|
10
|
+
export declare const fluidFontSize: Partial<Record<number, string>>;
|
|
11
|
+
//# sourceMappingURL=fluid-typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluid-typography.d.ts","sourceRoot":"","sources":["../../../src/common/fluid-typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBzD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Semantic breakpoint names — used by structural components (e.g. Container.$breakpoint). */
|
|
2
|
+
export declare const breakpoints: {
|
|
3
|
+
readonly mobile: 480;
|
|
4
|
+
readonly 'mobile-lg': 768;
|
|
5
|
+
readonly tablet: 1024;
|
|
6
|
+
readonly desktop: 1280;
|
|
7
|
+
readonly 'desktop-hd': 1366;
|
|
8
|
+
readonly 'desktop-lg': 1440;
|
|
9
|
+
readonly wide: 1920;
|
|
10
|
+
};
|
|
11
|
+
export type Breakpoint = keyof typeof breakpoints;
|
|
12
|
+
/** Short aliases — used in responsive value objects (sx, $dir, $cols). Same pixel values as `breakpoints`. */
|
|
13
|
+
export declare const breakpointAliases: {
|
|
14
|
+
readonly xs: 480;
|
|
15
|
+
readonly sm: 768;
|
|
16
|
+
readonly md: 1024;
|
|
17
|
+
readonly lg: 1280;
|
|
18
|
+
readonly hd: 1366;
|
|
19
|
+
readonly xl: 1440;
|
|
20
|
+
readonly xxl: 1920;
|
|
21
|
+
};
|
|
22
|
+
export type BreakpointAlias = keyof typeof breakpointAliases;
|
|
23
|
+
export declare const breakpointAliasOrder: BreakpointAlias[];
|
|
24
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/common/media.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,eAAO,MAAM,WAAW;;;;;;;;CAQd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAElD,8GAA8G;AAC9G,eAAO,MAAM,iBAAiB;;;;;;;;CAQpB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE7D,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAQjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/common/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/common/styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAW,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAyBvD,yBAAiB,MAAM,CAAC;IACf,MAAM,eAAe,sDAG3B,CAAC;IAEK,MAAM,YAAY,mDAGxB,CAAC;IAEK,MAAM,KAAK,4CAGjB,CAAC;IAEK,MAAM,SAAS,gDAGrB,CAAC;IAEK,MAAM,IAAI,2CAYhB,CAAC;IAEK,MAAM,MAAM,6CAOlB,CAAC;IAEK,MAAM,OAAO,8CASnB,CAAC;IAEK,MAAM,SAAS,gDAErB,CAAC;IAEK,MAAM,SAAS,gDAOrB,CAAC;IAEK,MAAM,UAAU,sDAItB,CAAC;IAEK,MAAM,MAAM,uDAGlB,CAAC;CACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreakpointAlias } from './media';
|
|
3
|
+
type CSSValue = string | number;
|
|
4
|
+
type ResponsiveValue = CSSValue | Partial<Record<BreakpointAlias, CSSValue>>;
|
|
5
|
+
export type SxObject = {
|
|
6
|
+
[K in keyof React.CSSProperties]?: ResponsiveValue;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* processSx
|
|
10
|
+
*
|
|
11
|
+
* Converts an `sx` prop into a CSS string for use inside a styled-component template.
|
|
12
|
+
*
|
|
13
|
+
* Desktop-first approach: component-level props (e.g. `$fontSize`) define the default
|
|
14
|
+
* for large screens. The `sx` responsive object layers max-width overrides on top,
|
|
15
|
+
* descending to smaller screens.
|
|
16
|
+
*
|
|
17
|
+
* Each property in the SxObject can be:
|
|
18
|
+
* - A plain value: `fontSize: '24px'` → applied at all breakpoints
|
|
19
|
+
* - A responsive object: `fontSize: { lg: 32, md: 24 }`
|
|
20
|
+
* → Each key wraps in a max-width media query. The component prop value applies
|
|
21
|
+
* above the highest defined breakpoint.
|
|
22
|
+
*
|
|
23
|
+
* Example:
|
|
24
|
+
* <H.One $fontSize={48} sx={{ fontSize: { lg: 40, md: 32 } }} />
|
|
25
|
+
* → above lg: 48px ($fontSize default)
|
|
26
|
+
* → lg and below (≤1280px): 40px
|
|
27
|
+
* → md and below (≤1024px): 32px
|
|
28
|
+
*
|
|
29
|
+
* Media queries are emitted largest-to-smallest so each smaller breakpoint
|
|
30
|
+
* correctly overrides the larger one in the cascade.
|
|
31
|
+
*/
|
|
32
|
+
export declare const processSx: (sx: SxObject | string | undefined) => string;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=sx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../../../src/common/sx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAChC,KAAK,eAAe,GAAG,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAAG;KACpB,CAAC,IAAI,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,EAAE,eAAe;CACnD,CAAC;AAkCF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,OAAQ,QAAQ,GAAG,MAAM,GAAG,SAAS,KAAG,MAuC7D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { SxObject } from '../../../common/sx';
|
|
2
3
|
import { IconProps } from '../../../components/iconography/icon/icon';
|
|
3
4
|
type NativeProps = Pick<React.HTMLAttributes<HTMLButtonElement>, 'dangerouslySetInnerHTML' | 'onClick' | 'onMouseDown' | 'onMouseDownCapture' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseOut' | 'onMouseOver' | 'onSubmit' | 'onKeyDown'> & {
|
|
4
5
|
value?: string;
|
|
@@ -16,12 +17,18 @@ export interface ButtonProps extends NativeProps, React.PropsWithChildren {
|
|
|
16
17
|
isDropdownOpen?: boolean;
|
|
17
18
|
roundness?: ButtonShape;
|
|
18
19
|
size?: ButtonSize;
|
|
19
|
-
sx?: string;
|
|
20
|
+
sx?: SxObject | string;
|
|
20
21
|
type?: ButtonTypes;
|
|
21
22
|
className?: string;
|
|
22
23
|
showChevron?: boolean;
|
|
23
24
|
customDropdownIcon?: React.ComponentType<IconProps>;
|
|
25
|
+
/** Override the default font size derived from `size`. */
|
|
26
|
+
$fontSize?: number;
|
|
27
|
+
/** Override the default padding derived from `size`. */
|
|
28
|
+
$padding?: string;
|
|
29
|
+
/** Override the default border-radius derived from `roundness` (in px). */
|
|
30
|
+
$borderRadius?: number;
|
|
24
31
|
}
|
|
25
|
-
export declare const Button: ({ as, children, disabled, fluid, href, icon, isDropdownOpen, roundness, size, sx, type, showChevron, customDropdownIcon, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const Button: ({ as, children, disabled, fluid, href, icon, isDropdownOpen, roundness, size, sx, type, showChevron, customDropdownIcon, $fontSize: fontSizeOverride, $padding: paddingOverride, $borderRadius: borderRadiusOverride, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
33
|
export {};
|
|
27
34
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/actions/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAiBtE,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EACrC,yBAAyB,GACzB,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,UAAU,GACV,WAAW,CACd,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvB,KAAK,WAAW,GACZ,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AACf,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AACpC,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,KAAK,CAAC,iBAAiB;IACvE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/actions/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAa,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAiBtE,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EACrC,yBAAyB,GACzB,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,UAAU,GACV,WAAW,CACd,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvB,KAAK,WAAW,GACZ,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AACf,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AACpC,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,KAAK,CAAC,iBAAiB;IACvE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,EAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACpD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,MAAM,qOAkBhB,WAAW,4CA2Fb,CAAC"}
|
|
@@ -13,11 +13,8 @@ type NativeProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'children' | 'clas
|
|
|
13
13
|
};
|
|
14
14
|
export interface BoxProps extends BackgroundColor, BorderRadius, Elevation, Flex, Margin, Padding, Polymorphic, Styleable, NativeProps {
|
|
15
15
|
$display?: 'block' | 'flex';
|
|
16
|
-
sx?: string;
|
|
17
16
|
}
|
|
18
|
-
export declare const Box: (
|
|
19
|
-
export declare const Component: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps
|
|
20
|
-
$sx?: string;
|
|
21
|
-
}>>;
|
|
17
|
+
export declare const Box: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Component: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>>;
|
|
22
19
|
export {};
|
|
23
20
|
//# sourceMappingURL=box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/box/box.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAClC,UAAU,GACV,WAAW,GACX,yBAAyB,GACzB,QAAQ,GACR,eAAe,GACf,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,kBAAkB,GAClB,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,OAAO,CACV,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,EACT,WAAW;IACb,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/box/box.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,KAAK,WAAW,GAAG,IAAI,CACrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAClC,UAAU,GACV,WAAW,GACX,yBAAyB,GACzB,QAAQ,GACR,eAAe,GACf,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,kBAAkB,GAClB,SAAS,GACT,gBAAgB,GAChB,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,YAAY,GACZ,aAAa,GACb,OAAO,CACV,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,QACf,SAAQ,eAAe,EACrB,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,EACT,WAAW;IACb,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,GAAG,UAAW,QAAQ,4CAA6B,CAAC;AAEjE,eAAO,MAAM,SAAS,iMAYrB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Polymorphic, Styleable } from '../../../types/attributes';
|
|
2
|
+
export interface ImageProps extends Polymorphic, Styleable {
|
|
3
|
+
src: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
/** Controls how the image fills its container. Default: 'cover' */
|
|
6
|
+
$fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
|
7
|
+
/** Aspect ratio — e.g. '16/9', '4/3', '1/1'. When set, container holds the ratio. */
|
|
8
|
+
$ratio?: string;
|
|
9
|
+
/** When true, the image fills its parent width and height completely. */
|
|
10
|
+
$fill?: boolean;
|
|
11
|
+
width?: number | string;
|
|
12
|
+
height?: number | string;
|
|
13
|
+
loading?: 'lazy' | 'eager';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Image
|
|
17
|
+
*
|
|
18
|
+
* A styled `<img>` element for use inside the design system.
|
|
19
|
+
* Supports aspect-ratio, object-fit, fill mode, and responsive styling via `sx`.
|
|
20
|
+
*
|
|
21
|
+
* Use this component for:
|
|
22
|
+
* - Images that don't need Next.js optimization (e.g. icons, decorative, SVG)
|
|
23
|
+
* - Externally-hosted images where you control the CDN
|
|
24
|
+
* - Design system stories and documentation
|
|
25
|
+
*
|
|
26
|
+
* Use `next/image` in your application when you need:
|
|
27
|
+
* - Automatic lazy loading and priority hints
|
|
28
|
+
* - Responsive srcSet and size negotiation
|
|
29
|
+
* - Automatic format conversion (WebP/AVIF)
|
|
30
|
+
* - Image CDN resizing via the Next.js image loader
|
|
31
|
+
*/
|
|
32
|
+
export declare const Image: ({ alt, ...props }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/image/image.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGnE,MAAM,WAAW,UAAW,SAAQ,WAAW,EAAE,SAAS;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,mEAAmE;IACnE,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;IAC5D,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAeD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,sBAAuB,UAAU,4CAElD,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { Box } from './box';
|
|
2
2
|
export type { BoxProps } from './box';
|
|
3
|
+
export { Image } from './image/image';
|
|
4
|
+
export type { ImageProps } from './image/image';
|
|
5
|
+
export * from './layout';
|
|
3
6
|
export { HideButRender } from './hide';
|
|
4
7
|
export { Highlighter } from './highlighter';
|
|
5
8
|
export { SecToDuration } from './seconds_to_duration';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Polymorphic, Sizes, Styleable } from '../../../types/attributes';
|
|
3
|
+
import { Breakpoint } from '../../../common/media';
|
|
4
|
+
export type ContainerWidth = Breakpoint;
|
|
5
|
+
/**
|
|
6
|
+
* Container
|
|
7
|
+
*
|
|
8
|
+
* Centers content and caps its width at a named breakpoint.
|
|
9
|
+
*
|
|
10
|
+
* Uses a `min-width` media query (mobile-first expanding): below the breakpoint
|
|
11
|
+
* the container is full-width; above it, `max-width` kicks in and content is centered.
|
|
12
|
+
*
|
|
13
|
+
* This differs from `sx`, `$dir`, and `$cols` which use `max-width` media queries
|
|
14
|
+
* (desktop-first overriding). Both patterns are intentional:
|
|
15
|
+
* - Container answers "when should I stop being full-width?" → expand at breakpoint
|
|
16
|
+
* - sx / $dir / $cols answer "when should I override the default?" → shrink from default
|
|
17
|
+
*/
|
|
18
|
+
export interface ContainerProps extends Polymorphic, Styleable {
|
|
19
|
+
$breakpoint?: ContainerWidth;
|
|
20
|
+
$paddingX?: Sizes | number;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const Container: (props: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAe,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AAExC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW,EAAE,SAAS;IAC5D,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AA4BD,eAAO,MAAM,SAAS,UAAW,cAAc,4CAE9C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Polymorphic, Sizes, Styleable } from '../../../types/attributes';
|
|
3
|
+
import { BreakpointAlias } from '../../../common/media';
|
|
4
|
+
export type ColCount = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
export type ColsProp = ColCount | Partial<Record<BreakpointAlias, ColCount>> | 'auto';
|
|
6
|
+
export interface GridProps extends Polymorphic, Styleable {
|
|
7
|
+
$cols?: ColsProp;
|
|
8
|
+
$minColWidth?: number;
|
|
9
|
+
$gap?: Sizes | number;
|
|
10
|
+
$rowGap?: Sizes | number;
|
|
11
|
+
$colGap?: Sizes | number;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Grid: (props: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,GAC1C,MAAM,CAAC;AAEX,MAAM,WAAW,SAAU,SAAQ,WAAW,EAAE,SAAS;IACvD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAsED,eAAO,MAAM,IAAI,UAAW,SAAS,4CAA8B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Container } from './container';
|
|
2
|
+
export type { ContainerProps, ContainerWidth } from './container';
|
|
3
|
+
export { Grid } from './grid';
|
|
4
|
+
export type { GridProps, ColsProp, ColCount } from './grid';
|
|
5
|
+
export { Inline } from './inline';
|
|
6
|
+
export type { InlineProps } from './inline';
|
|
7
|
+
export { Section } from './section';
|
|
8
|
+
export type { SectionProps } from './section';
|
|
9
|
+
export { Stack } from './stack';
|
|
10
|
+
export type { StackProps } from './stack';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Align, Justify, Polymorphic, Sizes, Styleable } from '../../../types/attributes';
|
|
3
|
+
export interface InlineProps extends Polymorphic, Styleable {
|
|
4
|
+
$gap?: Sizes | number;
|
|
5
|
+
$align?: Align;
|
|
6
|
+
$justify?: Justify;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Inline: (props: InlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/inline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,SAAS,EACV,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,WAAY,SAAQ,WAAW,EAAE,SAAS;IACzD,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAgBD,eAAO,MAAM,MAAM,UAAW,WAAW,4CAAgC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Polymorphic, Styleable } from '../../../types/attributes';
|
|
3
|
+
export interface SectionProps extends Polymorphic, Styleable {
|
|
4
|
+
$spacing?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Section: (props: SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AASnE,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,SAAS;IAC1D,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAYD,eAAO,MAAM,OAAO,UAAW,YAAY,4CAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/layout/stack.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,QAAQ;CAAG;AAE/C,eAAO,MAAM,KAAK,6BAIf,UAAU,4CAA+C,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { TypographyProps } from '../../../components/atoms/typography/typography
|
|
|
3
3
|
export interface CommonProps extends TypographyProps {
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
$textAlign?: 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
|
6
|
+
$fluid?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface DisplayProps extends CommonProps {
|
|
8
9
|
$fontSize?: 56 | 64;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/typography/display.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/typography/display.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAIlF,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC;CACvB;AAID,eAAO,MAAM,OAAO,wDAMjB,YAAY,4CAQd,CAAC"}
|