@soul-refiner/design-system 2.14.179 → 2.14.180

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.
@@ -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"),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 j=require("../../../icons/audio_video/play.js");function y(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=y(t),b=y(i),w=y(r),$=y(n);const k=o.styled.div`
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"),f=require("../../../icons/arrow/chevron_right.js"),m=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%;
@@ -17,11 +17,19 @@
17
17
  cursor: pointer;
18
18
  }
19
19
 
20
+ .post-content {
21
+ font-family: var(--font-inter);
22
+ font-size: 1rem;
23
+ line-height: 1.5rem;
24
+ color: var(--color-grey-3);
25
+ }
26
+
20
27
  .see-more-toggle {
21
28
  cursor: pointer;
22
29
  color: var(--color-grey-4);
23
30
  font-weight: 400;
24
31
  font-size: 14px;
32
+ font-family: var(--font-inter);
25
33
  }
26
34
  `;o.styled.button`
27
35
  background: none;
@@ -145,4 +153,4 @@
145
153
  padding: 6px 16px;
146
154
  width: fit-content;
147
155
  cursor: pointer;
148
- `;exports.Post=({actions:t,author:i,authorActive:r,authorHref:o,authorImage:n,avatarTooltipContent:y,avatarTooltipSx:I,children:L,content:B,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);v.default.useRef(null);const[re,oe]=v.default.useState(-1),[ne,se]=v.default.useState({x:"30vw",y:"30vh"}),le=!!G?.url&&!!G?.thumbnail,ae=G?.displayHtmlVideo,[de,ce]=v.default.useState(!1),he=v.default.useRef(null);v.default.useEffect(()=>{if(Q.current&&B?.length>0){const e=24,t=Math.ceil(Q.current.offsetHeight/e);ie(t)}else ie(-1)},[B,Z]),v.default.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?ge():"ArrowRight"===e.key?xe():"Escape"!==e.key&&"Enter"!==e.key||oe(-1)};return"undefined"!=typeof document&&D?.length&&re>-1&&document.addEventListener("keydown",e),()=>{D?.length&&document.removeEventListener("keydown",e)}},[]);const ue=v.default.Children.toArray(t),pe=v.default.Children.toArray(L),xe=()=>{oe(e=>D?.length&&e!==D.length-1?e+1:e)},ge=()=>{oe(e=>D?.length&&0!==e?e-1:e)};return e.jsxs(k,{id:W,children:[re>-1&&!!D?.[re]&&e.jsx(h.Modal,{alwaysRender:!1,controlledOpen:!0,onChange:e=>!e&&oe(-1),children:e.jsxs(h.Modal.Content,{sx:`\n position: relative; \n height: ${ne.y}; \n width: ${ne.x};\n margin: 0 auto;\n `,children:[e.jsx(U,{$side:"left",$visible:0!==re,onClick:ge,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`),se({x:r,y:o})},draggable:!1,priority:!0,sizes:"100vw",src:D[re],style:{objectFit:"cover"}}),e.jsx(U,{$side:"right",$visible:re!==D.length-1,onClick:xe,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:y,tooltipSx:I,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]}),!!B?.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:B})})}):e.jsx($.default,{lines:5,more:"See more",less:"See less",anchorClass:"see-more-toggle",expanded:Z,onClick:()=>ee(e=>!e),truncatedEndingComponent:"... ",children:e.jsx(c.P,{$sx:"white-space: pre-line; word-break: break-word;",innerRef:Q,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.":B})})}),V&&!D?.length&&e.jsx(A,{onClick:N,children:e.jsxs(c.P,{$fontSize:14,$mediumBold:!0,children:["Join now for $",O," per month"]})})]}),V&&!!D?.length&&!le&&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(A,{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&&!le&&!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),oe(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&&!le&&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})]})]}),le&&e.jsx(S,{children:ae?de?e.jsxs("video",{ref:he,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(z,{onClick:()=>{ce(!0),setTimeout(()=>{he.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(C,{children:e.jsx(j.Play,{size:32,color:"white"})})]}):e.jsx(f.Video,{src:G.url,thumbnail:G.thumbnail,subtitles:[],title:G?.title})}),!!ue.length&&e.jsx(E,{children:!V&&ue}),F&&!!pe.length&&e.jsx(_,{children:pe})]})};
156
+ `;exports.Post=({actions:t,author:i,authorActive:r,authorHref:o,authorImage:n,avatarTooltipContent:j,avatarTooltipSx:I,children:L,content:B,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);v.default.useRef(null);const[re,oe]=v.default.useState(-1),[ne,se]=v.default.useState({x:"30vw",y:"30vh"}),le=!!G?.url&&!!G?.thumbnail,ae=G?.displayHtmlVideo,[de,ce]=v.default.useState(!1),he=v.default.useRef(null);v.default.useEffect(()=>{if(Q.current&&B?.length>0){const e=24,t=Math.ceil(Q.current.offsetHeight/e);ie(t)}else ie(-1)},[B,Z]),v.default.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?ge():"ArrowRight"===e.key?xe():"Escape"!==e.key&&"Enter"!==e.key||oe(-1)};return"undefined"!=typeof document&&D?.length&&re>-1&&document.addEventListener("keydown",e),()=>{D?.length&&document.removeEventListener("keydown",e)}},[]);const ue=v.default.Children.toArray(t),pe=v.default.Children.toArray(L),xe=()=>{oe(e=>D?.length&&e!==D.length-1?e+1:e)},ge=()=>{oe(e=>D?.length&&0!==e?e-1:e)};return e.jsxs(k,{id:W,children:[re>-1&&!!D?.[re]&&e.jsx(h.Modal,{alwaysRender:!1,controlledOpen:!0,onChange:e=>!e&&oe(-1),children:e.jsxs(h.Modal.Content,{sx:`\n position: relative; \n height: ${ne.y}; \n width: ${ne.x};\n margin: 0 auto;\n `,children:[e.jsx(U,{$side:"left",$visible:0!==re,onClick:ge,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`),se({x:r,y:o})},draggable:!1,priority:!0,sizes:"100vw",src:D[re],style:{objectFit:"cover"}}),e.jsx(U,{$side:"right",$visible:re!==D.length-1,onClick:xe,children:e.jsx(f.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:I,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]}),!!B?.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:B})})}):e.jsx($.default,{lines:5,more:"See more",less:"See less",anchorClass:"see-more-toggle",className:"post-content",expanded:Z,onClick:()=>ee(e=>!e),truncatedEndingComponent:"... ",children:e.jsx(c.P,{$sx:"white-space: pre-line; word-break: break-word;",innerRef:Q,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.":B})})}),V&&!D?.length&&e.jsx(A,{onClick:N,children:e.jsxs(c.P,{$fontSize:14,$mediumBold:!0,children:["Join now for $",O," per month"]})})]}),V&&!!D?.length&&!le&&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(A,{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&&!le&&!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),oe(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&&!le&&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})]})]}),le&&e.jsx(S,{children:ae?de?e.jsxs("video",{ref:he,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(z,{onClick:()=>{ce(!0),setTimeout(()=>{he.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(C,{children:e.jsx(y.Play,{size:32,color:"white"})})]}):e.jsx(m.Video,{src:G.url,thumbnail:G.thumbnail,subtitles:[],title:G?.title})}),!!ue.length&&e.jsx(E,{children:!V&&ue}),F&&!!pe.length&&e.jsx(_,{children:pe})]})};
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../src/components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AAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,IAAI,8PAsBd,SAAS,4CA2cX,CAAC"}
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@soul-refiner/design-system",
3
- "version": "2.14.179",
4
- "main": "dist/index.js",
5
- "types": "dist/src/index.d.ts",
6
- "license": "MIT",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org"
9
- },
10
- "include": [
11
- "/dist"
12
- ],
13
- "files": [
14
- "dist/**/*"
15
- ],
16
- "exports": {
17
- ".": {
18
- "import": {
19
- "types": "./dist/src/index.d.ts",
20
- "default": "./dist/index.js"
21
- }
22
- }
23
- },
24
- "devDependencies": {
25
- "@rollup/plugin-commonjs": "^28.0.1",
26
- "@rollup/plugin-json": "^6.1.0",
27
- "@rollup/plugin-terser": "^0.4.4",
28
- "@rollup/plugin-typescript": "^12.1.4",
29
- "@storybook/addon-docs": "~9.1.17",
30
- "@storybook/addon-links": "^9.1.17",
31
- "@storybook/addon-themes": "~9.1.17",
32
- "@storybook/addons": "^7.6.7",
33
- "@storybook/nextjs": "~9.1.17",
34
- "@storybook/testing-library": "~0.2.0",
35
- "@types/react": "^18.2.48",
36
- "@types/react-dom": "18.2.0",
37
- "@types/react-show-more-text": "^1.4.5",
38
- "@types/react-window": "^1.8.8",
39
- "@types/styled-components": "~5.1.26",
40
- "chromatic": "~6.17.4",
41
- "husky": "~8.0.0",
42
- "prettier": "~2.8.8",
43
- "pretty-quick": "~3.1.3",
44
- "prop-types": "~15.8.1",
45
- "rollup": "^4.12.0",
46
- "rollup-plugin-node-externals": "^7.0.1",
47
- "rollup-plugin-postcss": "^4.0.2",
48
- "rollup-plugin-preserve-directives": "^0.4.0",
49
- "rollup-plugin-typescript2": "^0.36.0",
50
- "storybook": "~9.1.17",
51
- "tailwindcss": "^3.4.1",
52
- "tsc-alias": "^1.8.8",
53
- "tsconfig-paths-webpack-plugin": "~4.0.1",
54
- "tslib": "^2.6.2",
55
- "typescript": "5.4",
56
- "webpack": "~5.94.0"
57
- },
58
- "scripts": {
59
- "build": "yarn rollup --config",
60
- "build:refinery": "rollup --config",
61
- "build:watch": "rollup --config --watch",
62
- "build:tailwind": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles/output.css",
63
- "format": "prettier --write .",
64
- "storybook": "yarn build:tailwind && storybook dev -p 6006",
65
- "build-storybook": "storybook build",
66
- "prepare": "husky install"
67
- },
68
- "dependencies": {
69
- "@emoji-mart/data": "^1.2.1",
70
- "@emoji-mart/react": "^1.1.1",
71
- "@emotion/react": "^11.11.4",
72
- "@emotion/styled": "^11.11.0",
73
- "@mui/material": "^5.15.13",
74
- "@mui/x-date-pickers": "^6.19.6",
75
- "@radix-ui/react-dropdown-menu": "^2.0.6",
76
- "@radix-ui/react-popover": "^1.0.7",
77
- "@radix-ui/react-separator": "^1.0.3",
78
- "@radix-ui/react-slot": "^1.0.2",
79
- "@radix-ui/react-tooltip": "^1.0.7",
80
- "@udecode/cn": "~29.0.1",
81
- "@udecode/plate": "^36.5.9",
82
- "@udecode/plate-alignment": "^36.0.0",
83
- "@udecode/plate-common": "^36.0.0",
84
- "@udecode/plate-indent": "^36.0.0",
85
- "@udecode/plate-link": "^36.0.0",
86
- "@udecode/plate-media": "^36.0.0",
87
- "@udecode/plate-resizable": "^36.0.0",
88
- "@udecode/plate-table": "^36.0.0",
89
- "@udecode/react-utils": "^29.0.1",
90
- "class-variance-authority": "~0.7.0",
91
- "date-fns": "^3.4.0",
92
- "embla-carousel-react": "^8.6.0",
93
- "emoji-mart": "~5.5.2",
94
- "lucide-react": "~0.307.0",
95
- "next": "15.5.9",
96
- "react": "~18.2.0",
97
- "react-dnd": "~16.0.1",
98
- "react-dnd-html5-backend": "~16.0.1",
99
- "react-dom": "~18.2.0",
100
- "react-h5-audio-player": "~3.9.1",
101
- "react-is": "~18.2.0",
102
- "react-player": "~2.13.0",
103
- "react-show-more-text": "^1.7.1",
104
- "react-tooltip": "~5.18.0",
105
- "react-window": "^1.8.11",
106
- "scheduler": "~0.23.0",
107
- "slate": "~0.101.5",
108
- "slate-history": "~0.100.0",
109
- "slate-hyperscript": "~0.100.0",
110
- "slate-react": "~0.101.5",
111
- "styled-components": "6.1.8",
112
- "tailwind-merge": "~2.2.0",
113
- "tailwindcss-animate": "~1.0.7"
114
- },
115
- "peerDependencies": {
116
- "react": "~18.2.0",
117
- "react-dom": "~18.2.0",
118
- "react-h5-audio-player": "~3.9.1",
119
- "react-player": "~2.13.0",
120
- "styled-components": "6.1.8"
121
- },
122
- "resolutions": {
123
- "cross-spawn": "^7.0.5",
124
- "js-yaml": "^4.1.1",
125
- "glob": "^10.5.0",
126
- "qs": "^6.14.1",
127
- "validator": "^13.15.22",
128
- "diff": "^8.0.3"
129
- }
130
- }
1
+ {
2
+ "name": "@soul-refiner/design-system",
3
+ "version": "2.14.180",
4
+ "main": "dist/index.js",
5
+ "types": "dist/src/index.d.ts",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org"
9
+ },
10
+ "include": [
11
+ "/dist"
12
+ ],
13
+ "files": [
14
+ "dist/**/*"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "import": {
19
+ "types": "./dist/src/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ }
22
+ }
23
+ },
24
+ "devDependencies": {
25
+ "@rollup/plugin-commonjs": "^28.0.1",
26
+ "@rollup/plugin-json": "^6.1.0",
27
+ "@rollup/plugin-terser": "^0.4.4",
28
+ "@rollup/plugin-typescript": "^12.1.4",
29
+ "@storybook/addon-docs": "~9.1.17",
30
+ "@storybook/addon-links": "^9.1.17",
31
+ "@storybook/addon-themes": "~9.1.17",
32
+ "@storybook/addons": "^7.6.7",
33
+ "@storybook/nextjs": "~9.1.17",
34
+ "@storybook/testing-library": "~0.2.0",
35
+ "@types/react": "^18.2.48",
36
+ "@types/react-dom": "18.2.0",
37
+ "@types/react-show-more-text": "^1.4.5",
38
+ "@types/react-window": "^1.8.8",
39
+ "@types/styled-components": "~5.1.26",
40
+ "chromatic": "~6.17.4",
41
+ "husky": "~8.0.0",
42
+ "prettier": "~2.8.8",
43
+ "pretty-quick": "~3.1.3",
44
+ "prop-types": "~15.8.1",
45
+ "rollup": "^4.12.0",
46
+ "rollup-plugin-node-externals": "^7.0.1",
47
+ "rollup-plugin-postcss": "^4.0.2",
48
+ "rollup-plugin-preserve-directives": "^0.4.0",
49
+ "rollup-plugin-typescript2": "^0.36.0",
50
+ "storybook": "~9.1.17",
51
+ "tailwindcss": "^3.4.1",
52
+ "tsc-alias": "^1.8.8",
53
+ "tsconfig-paths-webpack-plugin": "~4.0.1",
54
+ "tslib": "^2.6.2",
55
+ "typescript": "5.4",
56
+ "webpack": "~5.94.0"
57
+ },
58
+ "scripts": {
59
+ "build": "yarn rollup --config",
60
+ "build:refinery": "rollup --config",
61
+ "build:watch": "rollup --config --watch",
62
+ "build:tailwind": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles/output.css",
63
+ "format": "prettier --write .",
64
+ "storybook": "yarn build:tailwind && storybook dev -p 6006",
65
+ "build-storybook": "storybook build",
66
+ "prepare": "husky install"
67
+ },
68
+ "dependencies": {
69
+ "@emoji-mart/data": "^1.2.1",
70
+ "@emoji-mart/react": "^1.1.1",
71
+ "@emotion/react": "^11.11.4",
72
+ "@emotion/styled": "^11.11.0",
73
+ "@mui/material": "^5.15.13",
74
+ "@mui/x-date-pickers": "^6.19.6",
75
+ "@radix-ui/react-dropdown-menu": "^2.0.6",
76
+ "@radix-ui/react-popover": "^1.0.7",
77
+ "@radix-ui/react-separator": "^1.0.3",
78
+ "@radix-ui/react-slot": "^1.0.2",
79
+ "@radix-ui/react-tooltip": "^1.0.7",
80
+ "@udecode/cn": "~29.0.1",
81
+ "@udecode/plate": "^36.5.9",
82
+ "@udecode/plate-alignment": "^36.0.0",
83
+ "@udecode/plate-common": "^36.0.0",
84
+ "@udecode/plate-indent": "^36.0.0",
85
+ "@udecode/plate-link": "^36.0.0",
86
+ "@udecode/plate-media": "^36.0.0",
87
+ "@udecode/plate-resizable": "^36.0.0",
88
+ "@udecode/plate-table": "^36.0.0",
89
+ "@udecode/react-utils": "^29.0.1",
90
+ "class-variance-authority": "~0.7.0",
91
+ "date-fns": "^3.4.0",
92
+ "embla-carousel-react": "^8.6.0",
93
+ "emoji-mart": "~5.5.2",
94
+ "lucide-react": "~0.307.0",
95
+ "next": "15.5.9",
96
+ "react": "~18.2.0",
97
+ "react-dnd": "~16.0.1",
98
+ "react-dnd-html5-backend": "~16.0.1",
99
+ "react-dom": "~18.2.0",
100
+ "react-h5-audio-player": "~3.9.1",
101
+ "react-is": "~18.2.0",
102
+ "react-player": "~2.13.0",
103
+ "react-show-more-text": "^1.7.1",
104
+ "react-tooltip": "~5.18.0",
105
+ "react-window": "^1.8.11",
106
+ "scheduler": "~0.23.0",
107
+ "slate": "~0.101.5",
108
+ "slate-history": "~0.100.0",
109
+ "slate-hyperscript": "~0.100.0",
110
+ "slate-react": "~0.101.5",
111
+ "styled-components": "6.1.8",
112
+ "tailwind-merge": "~2.2.0",
113
+ "tailwindcss-animate": "~1.0.7"
114
+ },
115
+ "peerDependencies": {
116
+ "react": "~18.2.0",
117
+ "react-dom": "~18.2.0",
118
+ "react-h5-audio-player": "~3.9.1",
119
+ "react-player": "~2.13.0",
120
+ "styled-components": "6.1.8"
121
+ },
122
+ "resolutions": {
123
+ "cross-spawn": "^7.0.5",
124
+ "js-yaml": "^4.1.1",
125
+ "glob": "^10.5.0",
126
+ "qs": "^6.14.1",
127
+ "validator": "^13.15.22",
128
+ "diff": "^8.0.3"
129
+ }
130
+ }