@chayns-components/core 5.0.0-beta.1359 → 5.0.0-beta.1360
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/lib/cjs/components/mention-finder/MentionFinder.styles.js +3 -0
- package/lib/cjs/components/mention-finder/MentionFinder.styles.js.map +1 -1
- package/lib/esm/components/mention-finder/MentionFinder.styles.js +3 -0
- package/lib/esm/components/mention-finder/MentionFinder.styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionFinder.styles.js","names":["_react","require","_styledComponents","_interopRequireWildcard","_mentionFinder","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledMentionFinder","exports","styled","div","StyledMentionFinderDragHandle","theme","$alignment","MentionFinderPopupAlignment","Top","css","StyledMentionFinderDragHandleInner","$isDragging","StyledMotionMentionFinderPopup","motion","$popupAlignment","Bottom","undefined","StyledMentionFinderItemList","StyledMentionFinderOverlay"],"sources":["../../../../src/components/mention-finder/MentionFinder.styles.ts"],"sourcesContent":["import { motion } from 'motion/react';\nimport styled, { css } from 'styled-components';\nimport { MentionFinderPopupAlignment } from '../../constants/mentionFinder';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledMentionFinder = styled.div`\n position: relative;\n z-index: 2;\n`;\n\nexport const StyledMentionFinderDragHandle = styled.div<\n WithTheme<{ $alignment: MentionFinderPopupAlignment }>\n>`\n align-items: center;\n background-color: ${({ theme }) => theme['000']};\n border: 0;\n cursor: grab;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: 8px 0;\n pointer-events: none;\n position: sticky;\n width: 100%;\n z-index: 2;\n\n ${({ $alignment }) =>\n $alignment === MentionFinderPopupAlignment.Top\n ? css`\n border-bottom: 0;\n top: 0;\n `\n : css`\n border-top: 0;\n bottom: 0;\n `}\n`;\n\nexport const StyledMentionFinderDragHandleInner = styled.div<\n WithTheme<{\n $isDragging: boolean;\n $alignment: MentionFinderPopupAlignment;\n $dragProgress: number;\n $dragOffset: number;\n }>\n>`\n background-color: ${({ theme }) => theme['005']};\n border: 0;\n border-radius: 2px;\n cursor: ${({ $isDragging }) => ($isDragging ? 'grabbing' : 'grab')};\n display: flex;\n height: 4px;\n justify-content: center;\n margin: 0 auto;\n pointer-events: auto;\n position: relative;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n width: 50px;\n\n &::before {\n content: '';\n height: 36px;\n left: 50%;\n pointer-events: auto;\n position: absolute;\n top: 50%;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n transform: translate(-50%, -50%);\n width: 120px;\n }\n`;\n\ntype StyledMentionFinderPopupProps = WithTheme<{\n $popupAlignment: MentionFinderPopupAlignment;\n $isDragging: boolean;\n}>;\n\nexport const StyledMotionMentionFinderPopup = styled(motion.div)<StyledMentionFinderPopupProps>`\n background-color: ${({ theme }: StyledMentionFinderPopupProps) => theme['000']};\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 0;\n border-radius: 3px;\n ${({ $isDragging, $popupAlignment }) => {\n if (!$isDragging)\n return css`\n z-index: 5;\n `;\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n border-bottom-left-radius: 15px;\n border-bottom-right-radius: 15px;\n z-index: 2;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n z-index: 2;\n `;\n default:\n return css``;\n }\n }}\n box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.1);\n left: 0;\n max-height: 275px;\n overflow: hidden;\n position: absolute;\n width: 100%;\n\n ${({ $popupAlignment }) => {\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n top: 0;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n bottom: 0;\n `;\n default:\n return undefined;\n }\n }}\n`;\n\ntype StyledMentionFinderItemListProps = WithTheme<unknown>;\n\nexport const StyledMentionFinderItemList = styled.div<WithTheme<StyledMentionFinderItemListProps>>`\n flex: 1 1 auto;\n max-height: inherit;\n overflow-y: auto;\n\n // Styles for custom scrollbar\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-button {\n background-color: transparent;\n height: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n );\n border-radius: 20px;\n }\n\n // Scrollbar styles for Firefox. The above styles are not supported in Firefox, these styles are\n // only supported in Firefox:\n * {\n scrollbar-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n )\n transparent;\n scrollbar-width: thin;\n }\n`;\n\nexport const StyledMentionFinderOverlay = styled(motion.div)`\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n background: radial-gradient(#000000a6 0, #000000bf 100%);\n inset: 0;\n opacity: 0;\n pointer-events: all;\n position: absolute;\n z-index: 1;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAA4E,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,CAAC;EAAEE;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,CAAC;EAAEA;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMa,0BAA0B,GAAAjB,OAAA,CAAAiB,0BAAA,GAAG,IAAAhB,yBAAM,EAACW,aAAM,CAACV,GAAG,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"MentionFinder.styles.js","names":["_react","require","_styledComponents","_interopRequireWildcard","_mentionFinder","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledMentionFinder","exports","styled","div","StyledMentionFinderDragHandle","theme","$alignment","MentionFinderPopupAlignment","Top","css","StyledMentionFinderDragHandleInner","$isDragging","StyledMotionMentionFinderPopup","motion","$popupAlignment","Bottom","undefined","StyledMentionFinderItemList","StyledMentionFinderOverlay"],"sources":["../../../../src/components/mention-finder/MentionFinder.styles.ts"],"sourcesContent":["import { motion } from 'motion/react';\nimport styled, { css } from 'styled-components';\nimport { MentionFinderPopupAlignment } from '../../constants/mentionFinder';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledMentionFinder = styled.div`\n position: relative;\n z-index: 2;\n`;\n\nexport const StyledMentionFinderDragHandle = styled.div<\n WithTheme<{ $alignment: MentionFinderPopupAlignment }>\n>`\n align-items: center;\n background-color: ${({ theme }) => theme['000']};\n border: 0;\n cursor: grab;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: 8px 0;\n pointer-events: none;\n position: sticky;\n width: 100%;\n z-index: 2;\n\n ${({ $alignment }) =>\n $alignment === MentionFinderPopupAlignment.Top\n ? css`\n border-bottom: 0;\n top: 0;\n `\n : css`\n border-top: 0;\n bottom: 0;\n `}\n`;\n\nexport const StyledMentionFinderDragHandleInner = styled.div<\n WithTheme<{\n $isDragging: boolean;\n $alignment: MentionFinderPopupAlignment;\n $dragProgress: number;\n $dragOffset: number;\n }>\n>`\n background-color: ${({ theme }) => theme['005']};\n border: 0;\n border-radius: 2px;\n cursor: ${({ $isDragging }) => ($isDragging ? 'grabbing' : 'grab')};\n display: flex;\n height: 4px;\n justify-content: center;\n margin: 0 auto;\n pointer-events: auto;\n position: relative;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n width: 50px;\n\n &::before {\n content: '';\n height: 36px;\n left: 50%;\n pointer-events: auto;\n position: absolute;\n top: 50%;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n transform: translate(-50%, -50%);\n width: 120px;\n }\n`;\n\ntype StyledMentionFinderPopupProps = WithTheme<{\n $popupAlignment: MentionFinderPopupAlignment;\n $isDragging: boolean;\n}>;\n\nexport const StyledMotionMentionFinderPopup = styled(motion.div)<StyledMentionFinderPopupProps>`\n background-color: ${({ theme }: StyledMentionFinderPopupProps) => theme['000']};\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 0;\n border-radius: 3px;\n display: flex;\n flex-direction: column;\n\n ${({ $isDragging, $popupAlignment }) => {\n if (!$isDragging)\n return css`\n z-index: 5;\n `;\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n border-bottom-left-radius: 15px;\n border-bottom-right-radius: 15px;\n z-index: 2;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n z-index: 2;\n `;\n default:\n return css``;\n }\n }}\n box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.1);\n left: 0;\n max-height: 275px;\n overflow: hidden;\n position: absolute;\n width: 100%;\n\n ${({ $popupAlignment }) => {\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n top: 0;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n bottom: 0;\n `;\n default:\n return undefined;\n }\n }}\n`;\n\ntype StyledMentionFinderItemListProps = WithTheme<unknown>;\n\nexport const StyledMentionFinderItemList = styled.div<WithTheme<StyledMentionFinderItemListProps>>`\n flex: 1 1 auto;\n max-height: inherit;\n overflow-y: auto;\n\n // Styles for custom scrollbar\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-button {\n background-color: transparent;\n height: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n );\n border-radius: 20px;\n }\n\n // Scrollbar styles for Firefox. The above styles are not supported in Firefox, these styles are\n // only supported in Firefox:\n * {\n scrollbar-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n )\n transparent;\n scrollbar-width: thin;\n }\n`;\n\nexport const StyledMentionFinderOverlay = styled(motion.div)`\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n background: radial-gradient(#000000a6 0, #000000bf 100%);\n inset: 0;\n opacity: 0;\n pointer-events: all;\n position: absolute;\n z-index: 1;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAA4E,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,E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A2B,GAAAhB,OAAA,CAAAgB,2BAAA,GAAGf,yBAAM,CAACC,GAAgD;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,CAAC;EAAEE;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,CAAC;EAAEA;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMa,0BAA0B,GAAAjB,OAAA,CAAAiB,0BAAA,GAAG,IAAAhB,yBAAM,EAACW,aAAM,CAACV,GAAG,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionFinder.styles.js","names":["motion","styled","css","MentionFinderPopupAlignment","StyledMentionFinder","div","StyledMentionFinderDragHandle","theme","$alignment","Top","StyledMentionFinderDragHandleInner","$isDragging","StyledMotionMentionFinderPopup","$popupAlignment","Bottom","undefined","StyledMentionFinderItemList","StyledMentionFinderOverlay"],"sources":["../../../../src/components/mention-finder/MentionFinder.styles.ts"],"sourcesContent":["import { motion } from 'motion/react';\nimport styled, { css } from 'styled-components';\nimport { MentionFinderPopupAlignment } from '../../constants/mentionFinder';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledMentionFinder = styled.div`\n position: relative;\n z-index: 2;\n`;\n\nexport const StyledMentionFinderDragHandle = styled.div<\n WithTheme<{ $alignment: MentionFinderPopupAlignment }>\n>`\n align-items: center;\n background-color: ${({ theme }) => theme['000']};\n border: 0;\n cursor: grab;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: 8px 0;\n pointer-events: none;\n position: sticky;\n width: 100%;\n z-index: 2;\n\n ${({ $alignment }) =>\n $alignment === MentionFinderPopupAlignment.Top\n ? css`\n border-bottom: 0;\n top: 0;\n `\n : css`\n border-top: 0;\n bottom: 0;\n `}\n`;\n\nexport const StyledMentionFinderDragHandleInner = styled.div<\n WithTheme<{\n $isDragging: boolean;\n $alignment: MentionFinderPopupAlignment;\n $dragProgress: number;\n $dragOffset: number;\n }>\n>`\n background-color: ${({ theme }) => theme['005']};\n border: 0;\n border-radius: 2px;\n cursor: ${({ $isDragging }) => ($isDragging ? 'grabbing' : 'grab')};\n display: flex;\n height: 4px;\n justify-content: center;\n margin: 0 auto;\n pointer-events: auto;\n position: relative;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n width: 50px;\n\n &::before {\n content: '';\n height: 36px;\n left: 50%;\n pointer-events: auto;\n position: absolute;\n top: 50%;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n transform: translate(-50%, -50%);\n width: 120px;\n }\n`;\n\ntype StyledMentionFinderPopupProps = WithTheme<{\n $popupAlignment: MentionFinderPopupAlignment;\n $isDragging: boolean;\n}>;\n\nexport const StyledMotionMentionFinderPopup = styled(motion.div)<StyledMentionFinderPopupProps>`\n background-color: ${({ theme }: StyledMentionFinderPopupProps) => theme['000']};\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 0;\n border-radius: 3px;\n ${({ $isDragging, $popupAlignment }) => {\n if (!$isDragging)\n return css`\n z-index: 5;\n `;\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n border-bottom-left-radius: 15px;\n border-bottom-right-radius: 15px;\n z-index: 2;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n z-index: 2;\n `;\n default:\n return css``;\n }\n }}\n box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.1);\n left: 0;\n max-height: 275px;\n overflow: hidden;\n position: absolute;\n width: 100%;\n\n ${({ $popupAlignment }) => {\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n top: 0;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n bottom: 0;\n `;\n default:\n return undefined;\n }\n }}\n`;\n\ntype StyledMentionFinderItemListProps = WithTheme<unknown>;\n\nexport const StyledMentionFinderItemList = styled.div<WithTheme<StyledMentionFinderItemListProps>>`\n flex: 1 1 auto;\n max-height: inherit;\n overflow-y: auto;\n\n // Styles for custom scrollbar\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-button {\n background-color: transparent;\n height: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n );\n border-radius: 20px;\n }\n\n // Scrollbar styles for Firefox. The above styles are not supported in Firefox, these styles are\n // only supported in Firefox:\n * {\n scrollbar-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n )\n transparent;\n scrollbar-width: thin;\n }\n`;\n\nexport const StyledMentionFinderOverlay = styled(motion.div)`\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n background: radial-gradient(#000000a6 0, #000000bf 100%);\n inset: 0;\n opacity: 0;\n pointer-events: all;\n position: absolute;\n z-index: 1;\n`;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,cAAc;AACrC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,2BAA2B,QAAQ,+BAA+B;AAG3E,OAAO,MAAMC,mBAAmB,GAAGH,MAAM,CAACI,GAAG;AAC7C;AACA;AACA,CAAC;AAED,OAAO,MAAMC,6BAA6B,GAAGL,MAAM,CAACI,GAEnD;AACD;AACA,wBAAwB,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAAC,KAAK,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;A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AChC,OAAOP,GAAG;AAC1B;AACA,iBAAiB;IACL;MACI,OAAOa,SAAS;EACxB;AACJ,CAAC;AACL,CAAC;AAID,OAAO,MAAMC,2BAA2B,GAAGf,MAAM,CAACI,GAAgD;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,CAAC;EAAEE;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,CAAC;EAAEA;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMU,0BAA0B,GAAGhB,MAAM,CAACD,MAAM,CAACK,GAAG,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"MentionFinder.styles.js","names":["motion","styled","css","MentionFinderPopupAlignment","StyledMentionFinder","div","StyledMentionFinderDragHandle","theme","$alignment","Top","StyledMentionFinderDragHandleInner","$isDragging","StyledMotionMentionFinderPopup","$popupAlignment","Bottom","undefined","StyledMentionFinderItemList","StyledMentionFinderOverlay"],"sources":["../../../../src/components/mention-finder/MentionFinder.styles.ts"],"sourcesContent":["import { motion } from 'motion/react';\nimport styled, { css } from 'styled-components';\nimport { MentionFinderPopupAlignment } from '../../constants/mentionFinder';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\n\nexport const StyledMentionFinder = styled.div`\n position: relative;\n z-index: 2;\n`;\n\nexport const StyledMentionFinderDragHandle = styled.div<\n WithTheme<{ $alignment: MentionFinderPopupAlignment }>\n>`\n align-items: center;\n background-color: ${({ theme }) => theme['000']};\n border: 0;\n cursor: grab;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n padding: 8px 0;\n pointer-events: none;\n position: sticky;\n width: 100%;\n z-index: 2;\n\n ${({ $alignment }) =>\n $alignment === MentionFinderPopupAlignment.Top\n ? css`\n border-bottom: 0;\n top: 0;\n `\n : css`\n border-top: 0;\n bottom: 0;\n `}\n`;\n\nexport const StyledMentionFinderDragHandleInner = styled.div<\n WithTheme<{\n $isDragging: boolean;\n $alignment: MentionFinderPopupAlignment;\n $dragProgress: number;\n $dragOffset: number;\n }>\n>`\n background-color: ${({ theme }) => theme['005']};\n border: 0;\n border-radius: 2px;\n cursor: ${({ $isDragging }) => ($isDragging ? 'grabbing' : 'grab')};\n display: flex;\n height: 4px;\n justify-content: center;\n margin: 0 auto;\n pointer-events: auto;\n position: relative;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n width: 50px;\n\n &::before {\n content: '';\n height: 36px;\n left: 50%;\n pointer-events: auto;\n position: absolute;\n top: 50%;\n touch-action: none;\n user-select: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n transform: translate(-50%, -50%);\n width: 120px;\n }\n`;\n\ntype StyledMentionFinderPopupProps = WithTheme<{\n $popupAlignment: MentionFinderPopupAlignment;\n $isDragging: boolean;\n}>;\n\nexport const StyledMotionMentionFinderPopup = styled(motion.div)<StyledMentionFinderPopupProps>`\n background-color: ${({ theme }: StyledMentionFinderPopupProps) => theme['000']};\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 0;\n border-radius: 3px;\n display: flex;\n flex-direction: column;\n\n ${({ $isDragging, $popupAlignment }) => {\n if (!$isDragging)\n return css`\n z-index: 5;\n `;\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n border-bottom-left-radius: 15px;\n border-bottom-right-radius: 15px;\n z-index: 2;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n z-index: 2;\n `;\n default:\n return css``;\n }\n }}\n box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.1);\n left: 0;\n max-height: 275px;\n overflow: hidden;\n position: absolute;\n width: 100%;\n\n ${({ $popupAlignment }) => {\n switch ($popupAlignment) {\n case MentionFinderPopupAlignment.Bottom:\n return css`\n top: 0;\n `;\n case MentionFinderPopupAlignment.Top:\n return css`\n bottom: 0;\n `;\n default:\n return undefined;\n }\n }}\n`;\n\ntype StyledMentionFinderItemListProps = WithTheme<unknown>;\n\nexport const StyledMentionFinderItemList = styled.div<WithTheme<StyledMentionFinderItemListProps>>`\n flex: 1 1 auto;\n max-height: inherit;\n overflow-y: auto;\n\n // Styles for custom scrollbar\n &::-webkit-scrollbar {\n width: 5px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-button {\n background-color: transparent;\n height: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n );\n border-radius: 20px;\n }\n\n // Scrollbar styles for Firefox. The above styles are not supported in Firefox, these styles are\n // only supported in Firefox:\n * {\n scrollbar-color: rgba(\n ${({ theme }: StyledMentionFinderItemListProps) => theme['text-rgb']},\n 0.15\n )\n transparent;\n scrollbar-width: thin;\n }\n`;\n\nexport const StyledMentionFinderOverlay = styled(motion.div)`\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n background: radial-gradient(#000000a6 0, #000000bf 100%);\n inset: 0;\n opacity: 0;\n pointer-events: all;\n position: absolute;\n z-index: 1;\n`;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,cAAc;AACrC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,2BAA2B,QAAQ,+BAA+B;AAG3E,OAAO,MAAMC,mBAAmB,GAAGH,MAAM,CAACI,GAAG;AAC7C;AACA;AACA,CAAC;AAED,OAAO,MAAMC,6BAA6B,GAAGL,MAAM,CAACI,GAEnD;AACD;AACA,wBAAwB,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAAC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Z,GAAG;AAC1B;AACA,iBAAiB;IACL,KAAKC,2BAA2B,CAACM,GAAG;MAChC,OAAOP,GAAG;AAC1B;AACA,iBAAiB;IACL;MACI,OAAOa,SAAS;EACxB;AACJ,CAAC;AACL,CAAC;AAID,OAAO,MAAMC,2BAA2B,GAAGf,MAAM,CAACI,GAAgD;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,CAAC;EAAEE;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,CAAC;EAAEA;AAAwC,CAAC,KAAKA,KAAK,CAAC,UAAU,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMU,0BAA0B,GAAGhB,MAAM,CAACD,MAAM,CAACK,GAAG,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.1360",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "9d95f072f067a61f3547eaa91603ad11d52bc2c8"
|
|
90
90
|
}
|