@paperless/core 1.41.0 → 1.42.1
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/CHANGELOG.md +22 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/cjs/index.cjs.js +464 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/tailwind/plugins/hover.js +30 -0
- package/dist/collection/tailwind/plugins/hover.js.map +1 -0
- package/dist/collection/tailwind/plugins/safe-area.js +1 -1
- package/dist/collection/tailwind/plugins/safe-area.js.map +1 -1
- package/dist/collection/tailwind.config.js +2 -0
- package/dist/collection/tailwind.config.js.map +1 -1
- package/dist/components/index.js +464 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/index.js +464 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/plugins/hover.ts +36 -0
- package/dist/tailwind/plugins/safe-area.ts +1 -1
- package/dist/tailwind.config.ts +2 -0
- package/dist/types/index.d.ts +312 -0
- package/dist/types/tailwind/plugins/hover.d.ts +7 -0
- package/dist/types/tailwind/plugins/safe-area.d.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.42.1](https://github.com/ionic-team/stencil-component-starter/compare/v1.42.0...v1.42.1) (2024-07-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tailwind:** export the config differently ([765d1a6](https://github.com/ionic-team/stencil-component-starter/commit/765d1a6b22f9c5de129fb1d5dc4a18e4b57ecabe))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.42.0](https://github.com/ionic-team/stencil-component-starter/compare/v1.41.0...v1.42.0) (2024-07-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **tailwind:** Add hover plugin ([3ce06e7](https://github.com/ionic-team/stencil-component-starter/commit/3ce06e7fa3673ec68af92d20b4f4fe326205818f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [1.41.0](https://github.com/ionic-team/stencil-component-starter/compare/v1.40.0...v1.41.0) (2024-07-30)
|
|
7
29
|
|
|
8
30
|
|
package/dist/build/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{i as isTableColumnSizesKey,o as objectGetByPath}from"./p-8da0a7c2.js";export{c as childOf}from"./p-4d330cfc.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-33fa21e3.js";const
|
|
1
|
+
export{i as isTableColumnSizesKey,o as objectGetByPath}from"./p-8da0a7c2.js";export{c as childOf}from"./p-4d330cfc.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-33fa21e3.js";const e=e=>e.replace(/[A-Z]/g,(e=>`_${e.toLowerCase()}`));const t=e=>e.toLowerCase().replace(/([-_][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_","")));const a={tablet:"40rem","desktop-xs":"64rem","desktop-sm":"80rem",desktop:"85.375rem","desktop-lg":"90rem","desktop-xl":"120rem","layout-1280":"80rem","layout-1440":"90rem","layout-1536":"96rem","layout-1680":"105rem","layout-1920":"120rem","layout-2560":"160rem"};const r=e=>a[e];const n=e=>{const t=r(e);return parseInt(t.replace("rem",""),10)};const s=e=>{const t=n(e);return t*16};const m=e=>{const t=s(e);return window.innerWidth>t};const l=e=>{const t=s(e);return window.innerWidth<t};const d=(e,t)=>m(e)&&l(t);const h=()=>!!window.matchMedia("(pointer: coarse)").matches;const p=()=>h()||l("tablet");const u=()=>d("tablet","desktop-xs");const v=()=>m("desktop-xs");const b={transparent:"transparent",current:"currentColor",indigo:{dark:"#2C4BA9",DEFAULT:"#528AFA",light:"#F1F6FF"},sky:{dark:"#30C2C9",DEFAULT:"#1EDAE3",light:"#F5FEFF",vague:"#BBF4F6"},mystic:{blank:"#FFF",dark:"#DAE6F0",DEFAULT:"#F7FAFC",light:"#FCFDFE",medium:"#E3ECF3"},redberry:{dark:"#BD0F1E",DEFAULT:"#E63241",light:"#FFE8EA",medium:"#FF7D88"},storm:{dark:"#272838",DEFAULT:"#51536B",light:"#B0B2CB",medium:"#80829E",vague:"#989AB7"},negative:{dark:"#8A0F1D",DEFAULT:"#B91E28",light:"#FFCCD3"},positive:{dark:"#1DA360",DEFAULT:"#28D17C",light:"#E5FFF2"},unbiased:{dark:"#FFA231",DEFAULT:"#FFC72D",light:"#FFF6DC"},white:"#FFF",black:"#000"};const F={1:"0px 0.0625rem 0.05rem rgba(0,0,0, 0.5)",2:"0px 0.0625rem 0.1125rem rgba(0,0,0, 0.65)",3:"0px 0.0625rem 0.125rem rgba(0,0,0, 0.65)",4:["0px 0.3125rem 1rem rgba(0,24,98, 0.08)","0px 0.0625rem 0.1875rem rgba(0,24,98, 0.13)"],5:"0px 0.1875rem 1rem rgba(0,24,98, 0.3)",transparent:"transparent","button-primary-hover":"0px 2px 4px rgba(44,75,169, 0.4)","button-secondary-hover":"0px 2px 4px rgba(176,178,203, 0.4)"};const w={xxxlarge:"1.5625rem",xxlarge:"0.75rem",xlarge:"0.5625rem",large:"0.375rem",DEFAULT:"0.25rem",medium:"0.25rem",small:"0.125rem",none:0,round:"100%"};const x={flip:"-1"};const y={};for(let e=1;e<360;e++){y[`${e}`]=`${e}deg`;y[`-${e}`]=`-${e}deg`}const k={fontSize:{h1:"2.5rem",h2:"2rem",h3:"1.5rem",h4:"1.25rem",h5:"1.125rem",body:"1rem","body-2":"1.125rem",xxs:"0.6875rem"},lineHeight:{h1:"3rem",h2:"2.5rem",h3:"1.875rem",h4:"1.625rem",h5:"1.375rem",body:"1.75rem","body-2":"1.875rem"}};const B={xs:"2px"};const T={"floating-menu":190,dropdown:200,"navbar-topbar":280,"navbar-backdrop":290,navbar:300,backdrop:490,drawer:500,"drawer-header":501,modal:600,tooltip:601,toast:700};const E={animation:{"fade-in":"forwards fadeIn .2s ease","fade-out":"forwards fadeOut .2s ease","slide-in-right":"forwards slideInRight .5s ease","slide-in-left":"forwards slideInLeft .5s ease","slide-in-top":"forwards slideInTop .25 ease","slide-in-bottom":"forwards slideInBottom .5s ease","slide-in-right-small":"forwards slideInRightSmall .5s ease","slide-in-left-small":"forwards slideInLeftSmall .5s ease","slide-in-top-small":"forwards slideInTopSmall .5s ease","slide-in-bottom-small":"forwards slideInBottomSmall .5s ease","slide-out-right":"forwards slideOutRight .2s ease","slide-out-left":"forwards slideOutLeft .2s ease","slide-out-top":"forwards slideOutTop .2s ease","slide-out-bottom":"forwards slideOutBottom .5s ease","slide-out-top-small":"forwards slideOutTopSmall .5s ease","slide-out-bottom-small":"forwards slideOutBottomSmall .5s ease"},keyframes:{fadeIn:{"0%":{opacity:0},"100%":{opacity:100}},fadeOut:{"0%":{opacity:100},"100%":{opacity:0}},slideInRight:{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},slideInLeft:{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},slideInTop:{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},slideInBottom:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},slideInRightSmall:{"0%":{transform:"translateX(20%)"},"100%":{transform:"translateX(0)"}},slideInLeftSmall:{"0%":{transform:"translateX(-20%)"},"100%":{transform:"translateX(0)"}},slideInTopSmall:{"0%":{transform:"translateY(-20%)"},"100%":{transform:"translateY(0)"}},slideInBottomSmall:{"0%":{transform:"translateY(20%)"},"100%":{transform:"translateY(0)"}},slideOutRight:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},slideOutLeft:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},slideOutTop:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},slideOutBottom:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},slideOutTopSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-20%)"}},slideOutBottomSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(20%)"}}}};const L={width:{unset:"unset","content-mobile":"100%","content-1280":"62rem","content-1440":"71rem","content-1536":"77rem","content-1680":"83rem","sidebar-desktop-login":"100%","content-desktop-login":"21rem"}};const O={height:{unset:"unset"}};const A={"content-mobile-x":"1rem","content-mobile-y":"1.5rem","content-desktop-x":"2rem","content-desktop-y":"2rem",18:"4.5rem"};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function I(e,t,a){return a={path:t,exports:{},require:function(e,t){return S()}},e(a,a.exports),a.exports}function S(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Y=I((function(e,t){Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"default",{enumerable:true,get:function(){return r}});function a(e,t){return{handler:e,config:t}}a.withOptions=function(e,t=(()=>({}))){const a=function(a){return{__options:a,handler:e(a),config:t(a)}};a.__isOptionsFunction=true;a.__pluginFunction=e;a.__configFunction=t;return a};const r=a}));var C=I((function(e,t){Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"default",{enumerable:true,get:function(){return n}});const a=r(Y);function r(e){return e&&e.__esModule?e:{default:e}}const n=a.default}));var R=I((function(e){e.exports=(C.__esModule?C:{default:C}).default}));const j=D(R);const X=j((({addUtilities:e})=>{const t={".m-safe":{marginTop:"env(safe-area-inset-top)",marginRight:"env(safe-area-inset-right)",marginBottom:"env(safe-area-inset-bottom)",marginLeft:"env(safe-area-inset-left)"},".mx-safe":{marginRight:"env(safe-area-inset-right)",marginLeft:"env(safe-area-inset-left)"},".my-safe":{marginTop:"env(safe-area-inset-top)",marginBottom:"env(safe-area-inset-bottom)"},".mt-safe":{marginTop:"env(safe-area-inset-top)"},".mr-safe":{marginRight:"env(safe-area-inset-right)"},".mb-safe":{marginBottom:"env(safe-area-inset-bottom)"},".ml-safe":{marginLeft:"env(safe-area-inset-left)"},".p-safe":{paddingTop:"env(safe-area-inset-top)",paddingRight:"env(safe-area-inset-right)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)"},".px-safe":{paddingRight:"env(safe-area-inset-right)",paddingLeft:"env(safe-area-inset-left)"},".py-safe":{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},".pt-safe":{paddingTop:"env(safe-area-inset-top)"},".pr-safe":{paddingRight:"env(safe-area-inset-right)"},".pb-safe":{paddingBottom:"env(safe-area-inset-bottom)"},".pl-safe":{paddingLeft:"env(safe-area-inset-left)"},".min-h-screen":{minHeight:"100vh"},".min-h-screen-safe":{minHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".max-h-screen":{maxHeight:"100vh"},".max-h-screen-safe":{maxHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".h-screen-safe":{height:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".min-w-screen":{minWidth:"100vw"},".min-w-screen-safe":{minWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".max-w-screen":{maxWidth:"100vw"},".max-w-screen-safe":{maxWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".w-screen-safe":{width:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"}};e(t)}));const U={plugins:[j((({addVariant:e})=>{e("has-hover","@media (hover: hover)");e("no-hover","@media (hover: none)");e("hover-never","@media (hover: hover) { &:hover }");e("group-hover-never","@media (hover: hover) { :merge(.group):hover & }");e("peer-hover-never","@media (hover: hover) { :merge(.peer):hover & }");e("hover-always",["@media (hover: hover) { &:hover }","@media (hover: none)"]);e("group-hover-always",["@media (hover: hover) { :merge(.group):hover & }","@media (hover: none)"]);e("peer-hover-always",["@media (hover: hover) { :merge(.peer):hover & }","@media (hover: none)"])}))]};const _={important:true,theme:{colors:b,boxShadow:F,dropShadow:F,borderRadius:w,extend:Object.assign(Object.assign({},E),{scale:x,rotate:y,fontSize:k.fontSize,lineHeight:k.lineHeight,backdropBlur:B,zIndex:T,screens:a,width:L.width,height:O.height,spacing:A})},plugins:[require("@tailwindcss/aspect-ratio"),require("tailwind-scrollbar-hide"),X,U]};const H=_;export{e as camelToSnakeCase,r as getScreenSize,s as getScreenSizeInPixels,n as getScreenSizeInRem,d as isBetweenScreens,m as isBiggerThanScreen,v as isDesktop,p as isMobile,l as isSmallerThanScreen,u as isTablet,h as isTouchDevice,t as snakeToCamelCase,H as tailwind};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["camelToSnakeCase","str","replace","letter","toLowerCase","snakeToCamelCase","group","toUpperCase","screens","tablet","desktop","getScreenSize","size","getScreenSizeInRem","screen","parseInt","getScreenSizeInPixels","rem","isBiggerThanScreen","pixels","window","innerWidth","isSmallerThanScreen","isBetweenScreens","smallSize","bigSize","isTouchDevice","matchMedia","matches","isMobile","isTablet","isDesktop"],"sources":["src/utils/transformers.ts","src/tailwind/screens.ts","src/utils/screens.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","export default {\n\ttablet: '40rem', // 640 px\n\t'desktop-xs': '64rem', // 1024 px\n\t'desktop-sm': '80rem', // 1360 px\n\tdesktop: '85.375rem', // 1366\n\t'desktop-lg': '90rem', // 1440\n\t'desktop-xl': '120rem', // 1920\n\n\t// layout sizes\n\t'layout-1280': '80rem',\n\t'layout-1440': '90rem',\n\t'layout-1536': '96rem',\n\t'layout-1680': '105rem',\n\t'layout-1920': '120rem',\n\t'layout-2560': '160rem',\n};\n","import screens from '../tailwind/screens';\n\nexport type ScreenSize = keyof typeof screens;\n\nexport const getScreenSize = (size: ScreenSize) => screens[size];\n\nexport const getScreenSizeInRem = (size: ScreenSize) => {\n\tconst screen = getScreenSize(size);\n\treturn parseInt(screen.replace('rem', ''), 10);\n};\n\nexport const getScreenSizeInPixels = (size: ScreenSize) => {\n\tconst rem = getScreenSizeInRem(size);\n\treturn rem * 16;\n};\n\nexport const isBiggerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth > pixels;\n};\n\nexport const isSmallerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth < pixels;\n};\n\nexport const isBetweenScreens = (\n\tsmallSize: ScreenSize,\n\tbigSize: ScreenSize\n) => {\n\treturn isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);\n};\n\nexport const isTouchDevice = () =>\n\t!!window.matchMedia('(pointer: coarse)').matches;\nexport const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');\nexport const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');\nexport const isDesktop = () => isBiggerThanScreen('desktop-xs');\n"],"mappings":"gNAAaA,EAAoBC,GAC7BA,EAAIC,QAAQ,UAAWC,GAAW,IAAIA,EAAOC,kB,MAEpCC,EAAoBJ,GAC7BA,EACKG,cACAF,QAAQ,gBAAiBI,GACtBA,EAAMC,cAAcL,QAAQ,IAAK,IAAIA,QAAQ,IAAK,MCP9D,MAAAM,EAAe,CACdC,OAAQ,QACR,aAAc,QACd,aAAc,QACdC,QAAS,YACT,aAAc,QACd,aAAc,SAGd,cAAe,QACf,cAAe,QACf,cAAe,QACf,cAAe,SACf,cAAe,SACf,cAAe,U,MCVHC,EAAiBC,GAAqBJ,EAAQI,G,MAE9CC,EAAsBD,IAClC,MAAME,EAASH,EAAcC,GAC7B,OAAOG,SAASD,EAAOZ,QAAQ,MAAO,IAAK,GAAG,E,MAGlCc,EAAyBJ,IACrC,MAAMK,EAAMJ,EAAmBD,GAC/B,OAAOK,EAAM,EAAE,E,MAGHC,EAAsBN,IAClC,MAAMO,EAASH,EAAsBJ,GACrC,OAAOQ,OAAOC,WAAaF,CAAM,E,MAGrBG,EAAuBV,IACnC,MAAMO,EAASH,EAAsBJ,GACrC,OAAOQ,OAAOC,WAAaF,CAAM,E,MAGrBI,EAAmB,CAC/BC,EACAC,IAEOP,EAAmBM,IAAcF,EAAoBG,G,MAGhDC,EAAgB,MAC1BN,OAAOO,WAAW,qBAAqBC,Q,MAC7BC,EAAW,IAAMH,KAAmBJ,EAAoB,U,MACxDQ,EAAW,IAAMP,EAAiB,SAAU,c,MAC5CQ,EAAY,IAAMb,EAAmB,qB"}
|
|
1
|
+
{"version":3,"names":["camelToSnakeCase","str","replace","letter","toLowerCase","snakeToCamelCase","group","toUpperCase","screens","tablet","desktop","getScreenSize","size","getScreenSizeInRem","screen","parseInt","getScreenSizeInPixels","rem","isBiggerThanScreen","pixels","window","innerWidth","isSmallerThanScreen","isBetweenScreens","smallSize","bigSize","isTouchDevice","matchMedia","matches","isMobile","isTablet","isDesktop","colors","transparent","current","indigo","dark","DEFAULT","light","sky","vague","mystic","blank","medium","redberry","storm","negative","positive","unbiased","white","black","shadows","borderRadius","xxxlarge","xxlarge","xlarge","large","small","none","round","scale","flip","rotateNumbers","i","typeograhpy","fontSize","h1","h2","h3","h4","h5","body","xxs","lineHeight","backdropBlur","xs","zIndex","dropdown","navbar","backdrop","drawer","modal","tooltip","toast","animation","keyframes","fadeIn","opacity","fadeOut","slideInRight","transform","slideInLeft","slideInTop","slideInBottom","slideInRightSmall","slideInLeftSmall","slideInTopSmall","slideInBottomSmall","slideOutRight","slideOutLeft","slideOutTop","slideOutBottom","slideOutTopSmall","slideOutBottomSmall","width","unset","height","spacing","Object","defineProperty","exports","value","enumerable","get","_default","createPlugin","plugin","config","handler","withOptions","pluginFunction","configFunction","optionsFunction","options","__options","__isOptionsFunction","__pluginFunction","__configFunction","_createPlugin","_interop_require_default","require$$0","obj","__esModule","default","module","safeArea","addUtilities","utilities","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","minHeight","maxHeight","minWidth","maxWidth","hover","plugins","addVariant","tailwindConfig","important","theme","boxShadow","dropShadow","extend","assign","rotate","require","tailwind"],"sources":["src/utils/transformers.ts","src/tailwind/screens.ts","src/utils/screens.ts","src/tailwind/colors.ts","src/tailwind/shadows.ts","src/tailwind/border-radius.ts","src/tailwind/scale.ts","src/tailwind/rotate.ts","src/tailwind/typography.ts","src/tailwind/backdrop-blur.ts","src/tailwind/z-index.ts","src/tailwind/animation.ts","src/tailwind/width.ts","src/tailwind/height.ts","src/tailwind/spacing.ts","../../node_modules/tailwindcss/lib/util/createPlugin.js","../../node_modules/tailwindcss/lib/public/create-plugin.js","../../node_modules/tailwindcss/plugin.js","src/tailwind/plugins/safe-area.ts","src/tailwind/plugins/hover.ts","src/tailwind.config.ts","src/index.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","export default {\n\ttablet: '40rem', // 640 px\n\t'desktop-xs': '64rem', // 1024 px\n\t'desktop-sm': '80rem', // 1360 px\n\tdesktop: '85.375rem', // 1366\n\t'desktop-lg': '90rem', // 1440\n\t'desktop-xl': '120rem', // 1920\n\n\t// layout sizes\n\t'layout-1280': '80rem',\n\t'layout-1440': '90rem',\n\t'layout-1536': '96rem',\n\t'layout-1680': '105rem',\n\t'layout-1920': '120rem',\n\t'layout-2560': '160rem',\n};\n","import screens from '../tailwind/screens';\n\nexport type ScreenSize = keyof typeof screens;\n\nexport const getScreenSize = (size: ScreenSize) => screens[size];\n\nexport const getScreenSizeInRem = (size: ScreenSize) => {\n\tconst screen = getScreenSize(size);\n\treturn parseInt(screen.replace('rem', ''), 10);\n};\n\nexport const getScreenSizeInPixels = (size: ScreenSize) => {\n\tconst rem = getScreenSizeInRem(size);\n\treturn rem * 16;\n};\n\nexport const isBiggerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth > pixels;\n};\n\nexport const isSmallerThanScreen = (size: ScreenSize) => {\n\tconst pixels = getScreenSizeInPixels(size);\n\treturn window.innerWidth < pixels;\n};\n\nexport const isBetweenScreens = (\n\tsmallSize: ScreenSize,\n\tbigSize: ScreenSize\n) => {\n\treturn isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);\n};\n\nexport const isTouchDevice = () =>\n\t!!window.matchMedia('(pointer: coarse)').matches;\nexport const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');\nexport const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');\nexport const isDesktop = () => isBiggerThanScreen('desktop-xs');\n","export default {\n\ttransparent: 'transparent',\n\tcurrent: 'currentColor',\n\tindigo: {\n\t\tdark: '#2C4BA9',\n\t\tDEFAULT: '#528AFA',\n\t\tlight: '#F1F6FF',\n\t},\n\tsky: {\n\t\tdark: '#30C2C9',\n\t\tDEFAULT: '#1EDAE3',\n\t\tlight: '#F5FEFF',\n\t\tvague: '#BBF4F6',\n\t},\n\tmystic: {\n\t\tblank: '#FFF',\n\t\tdark: '#DAE6F0',\n\t\tDEFAULT: '#F7FAFC',\n\t\tlight: '#FCFDFE',\n\t\tmedium: '#E3ECF3',\n\t},\n\tredberry: {\n\t\tdark: '#BD0F1E',\n\t\tDEFAULT: '#E63241',\n\t\tlight: '#FFE8EA',\n\t\tmedium: '#FF7D88',\n\t},\n\tstorm: {\n\t\tdark: '#272838',\n\t\tDEFAULT: '#51536B',\n\t\tlight: '#B0B2CB',\n\t\tmedium: '#80829E',\n\t\tvague: '#989AB7',\n\t},\n\tnegative: {\n\t\tdark: '#8A0F1D',\n\t\tDEFAULT: '#B91E28',\n\t\tlight: '#FFCCD3',\n\t},\n\tpositive: {\n\t\tdark: '#1DA360',\n\t\tDEFAULT: '#28D17C',\n\t\tlight: '#E5FFF2',\n\t},\n\tunbiased: {\n\t\tdark: '#FFA231',\n\t\tDEFAULT: '#FFC72D',\n\t\tlight: '#FFF6DC',\n\t},\n\twhite: '#FFF',\n\tblack: '#000',\n};\n","export default {\n\t1: '0px 0.0625rem 0.05rem rgba(0,0,0, 0.5)',\n\t2: '0px 0.0625rem 0.1125rem rgba(0,0,0, 0.65)',\n\t3: '0px 0.0625rem 0.125rem rgba(0,0,0, 0.65)',\n\t4: [\n\t\t'0px 0.3125rem 1rem rgba(0,24,98, 0.08)',\n\t\t'0px 0.0625rem 0.1875rem rgba(0,24,98, 0.13)',\n\t],\n\t5: '0px 0.1875rem 1rem rgba(0,24,98, 0.3)',\n\ttransparent: 'transparent',\n\t'button-primary-hover': '0px 2px 4px rgba(44,75,169, 0.4)',\n\t'button-secondary-hover': '0px 2px 4px rgba(176,178,203, 0.4)',\n};\n","export default {\n\txxxlarge: '1.5625rem',\n\txxlarge: '0.75rem',\n\txlarge: '0.5625rem',\n\tlarge: '0.375rem',\n\tDEFAULT: '0.25rem',\n\tmedium: '0.25rem',\n\tsmall: '0.125rem',\n\tnone: 0,\n\tround: '100%',\n};\n","export default {\n\tflip: '-1',\n};\n","const rotateNumbers = {};\n\nfor (let i = 1; i < 360; i++) {\n\trotateNumbers[`${i}`] = `${i}deg`;\n\trotateNumbers[`-${i}`] = `-${i}deg`;\n}\n\nexport default rotateNumbers;\n","export default {\n\tfontSize: {\n\t\th1: '2.5rem',\n\t\th2: '2rem',\n\t\th3: '1.5rem',\n\t\th4: '1.25rem',\n\t\th5: '1.125rem',\n\t\tbody: '1rem',\n\t\t'body-2': '1.125rem',\n\t\txxs: '0.6875rem',\n\t},\n\tlineHeight: {\n\t\th1: '3rem',\n\t\th2: '2.5rem',\n\t\th3: '1.875rem',\n\t\th4: '1.625rem',\n\t\th5: '1.375rem',\n\t\tbody: '1.75rem',\n\t\t'body-2': '1.875rem',\n\t},\n};\n","export default {\n\txs: '2px',\n};\n","export default {\n\t'floating-menu': 190,\n\tdropdown: 200,\n\n\t'navbar-topbar': 280,\n\t'navbar-backdrop': 290,\n\tnavbar: 300,\n\n\tbackdrop: 490,\n\n\tdrawer: 500,\n\t'drawer-header': 501,\n\n\tmodal: 600,\n\n\ttooltip: 601,\n\n\ttoast: 700,\n};\n","export default {\n\tanimation: {\n\t\t'fade-in': 'forwards fadeIn .2s ease',\n\t\t'fade-out': 'forwards fadeOut .2s ease',\n\t\t'slide-in-right': 'forwards slideInRight .5s ease',\n\t\t'slide-in-left': 'forwards slideInLeft .5s ease',\n\t\t'slide-in-top': 'forwards slideInTop .25 ease',\n\t\t'slide-in-bottom': 'forwards slideInBottom .5s ease',\n\t\t'slide-in-right-small': 'forwards slideInRightSmall .5s ease',\n\t\t'slide-in-left-small': 'forwards slideInLeftSmall .5s ease',\n\t\t'slide-in-top-small': 'forwards slideInTopSmall .5s ease',\n\t\t'slide-in-bottom-small': 'forwards slideInBottomSmall .5s ease',\n\t\t'slide-out-right': 'forwards slideOutRight .2s ease',\n\t\t'slide-out-left': 'forwards slideOutLeft .2s ease',\n\t\t'slide-out-top': 'forwards slideOutTop .2s ease',\n\t\t'slide-out-bottom': 'forwards slideOutBottom .5s ease',\n\t\t'slide-out-top-small': 'forwards slideOutTopSmall .5s ease',\n\t\t'slide-out-bottom-small': 'forwards slideOutBottomSmall .5s ease',\n\t},\n\n\tkeyframes: {\n\t\tfadeIn: {\n\t\t\t'0%': { opacity: 0 },\n\t\t\t'100%': { opacity: 100 },\n\t\t},\n\t\tfadeOut: {\n\t\t\t'0%': { opacity: 100 },\n\t\t\t'100%': { opacity: 0 },\n\t\t},\n\t\tslideInRight: {\n\t\t\t'0%': { transform: 'translateX(100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeft: {\n\t\t\t'0%': { transform: 'translateX(-100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTop: {\n\t\t\t'0%': { transform: 'translateY(-100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottom: {\n\t\t\t'0%': { transform: 'translateY(100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInRightSmall: {\n\t\t\t'0%': { transform: 'translateX(20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeftSmall: {\n\t\t\t'0%': { transform: 'translateX(-20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTopSmall: {\n\t\t\t'0%': { transform: 'translateY(-20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideOutRight: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(100%)' },\n\t\t},\n\t\tslideOutLeft: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(-100%)' },\n\t\t},\n\t\tslideOutTop: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-100%)' },\n\t\t},\n\t\tslideOutBottom: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(100%)' },\n\t\t},\n\t\tslideOutTopSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-20%)' },\n\t\t},\n\t\tslideOutBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(20%)' },\n\t\t},\n\t},\n};\n","export default {\n\twidth: {\n\t\tunset: 'unset',\n\n\t\t// default variant\n\t\t'content-mobile': '100%',\n\t\t'content-1280': '62rem',\n\t\t'content-1440': '71rem',\n\t\t'content-1536': '77rem',\n\t\t'content-1680': '83rem',\n\n\t\t// login variant\n\t\t'sidebar-desktop-login': '100%',\n\t\t'content-desktop-login': '21rem',\n\t},\n};\n","export default {\n\theight: {\n\t\tunset: 'unset',\n\t},\n};\n","export default {\n\t// default variant layout\n\t'content-mobile-x': '1rem',\n\t'content-mobile-y': '1.5rem',\n\n\t'content-desktop-x': '2rem',\n\t'content-desktop-y': '2rem',\n\n\t18: '4.5rem',\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","// eslint-disable-next-line unicorn/prefer-module\nimport plugin from 'tailwindcss/plugin';\n\nconst safeArea = plugin(({ addUtilities }) => {\n\tconst utilities = {\n\t\t'.m-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.mx-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.my-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.mt-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.mr-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.mb-safe': {\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.ml-safe': {\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.p-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.px-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.py-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pt-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.pr-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.pb-safe': {\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pl-safe': {\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.min-h-screen': {\n\t\t\tminHeight: '100vh',\n\t\t},\n\t\t'.min-h-screen-safe': {\n\t\t\tminHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.max-h-screen': {\n\t\t\tmaxHeight: '100vh',\n\t\t},\n\t\t'.max-h-screen-safe': {\n\t\t\tmaxHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.h-screen-safe': {\n\t\t\theight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.min-w-screen': {\n\t\t\tminWidth: '100vw',\n\t\t},\n\t\t'.min-w-screen-safe': {\n\t\t\tminWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.max-w-screen': {\n\t\t\tmaxWidth: '100vw',\n\t\t},\n\t\t'.max-w-screen-safe': {\n\t\t\tmaxWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.w-screen-safe': {\n\t\t\twidth: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t};\n\n\taddUtilities(utilities);\n});\n\n// eslint-disable-next-line unicorn/prefer-module\nexport default safeArea;\n","import plugin from 'tailwindcss/plugin';\n\nexport default {\n\t// ...\n\tplugins: [\n\t\t// ...\n\t\tplugin(({ addVariant }) => {\n\t\t\t// Hover media queries\n\t\t\taddVariant('has-hover', '@media (hover: hover)');\n\t\t\taddVariant('no-hover', '@media (hover: none)');\n\t\t\t// Applied on hover if supported, never applied otherwise\n\t\t\taddVariant('hover-never', '@media (hover: hover) { &:hover }');\n\t\t\taddVariant(\n\t\t\t\t'group-hover-never',\n\t\t\t\t'@media (hover: hover) { :merge(.group):hover & }'\n\t\t\t);\n\t\t\taddVariant(\n\t\t\t\t'peer-hover-never',\n\t\t\t\t'@media (hover: hover) { :merge(.peer):hover & }'\n\t\t\t);\n\t\t\t// Applied on hover if supported, always applied otherwise\n\t\t\taddVariant('hover-always', [\n\t\t\t\t'@media (hover: hover) { &:hover }',\n\t\t\t\t'@media (hover: none)',\n\t\t\t]);\n\t\t\taddVariant('group-hover-always', [\n\t\t\t\t'@media (hover: hover) { :merge(.group):hover & }',\n\t\t\t\t'@media (hover: none)',\n\t\t\t]);\n\t\t\taddVariant('peer-hover-always', [\n\t\t\t\t'@media (hover: hover) { :merge(.peer):hover & }',\n\t\t\t\t'@media (hover: none)',\n\t\t\t]);\n\t\t}),\n\t],\n};\n","import colors from './tailwind/colors';\nimport shadows from './tailwind/shadows';\nimport borderRadius from './tailwind/border-radius';\nimport scale from './tailwind/scale';\nimport rotate from './tailwind/rotate';\nimport typeograhpy from './tailwind/typography';\nimport backdropBlur from './tailwind/backdrop-blur';\nimport zIndex from './tailwind/z-index';\nimport animation from './tailwind/animation';\nimport screens from './tailwind/screens';\nimport width from './tailwind/width';\nimport height from './tailwind/height';\nimport spacing from './tailwind/spacing';\n\nimport safeArea from './tailwind/plugins/safe-area';\nimport hover from './tailwind/plugins/hover';\n\nexport default {\n\timportant: true,\n\ttheme: {\n\t\tcolors,\n\t\tboxShadow: shadows,\n\t\tdropShadow: shadows,\n\t\tborderRadius,\n\t\textend: {\n\t\t\t...animation,\n\t\t\tscale,\n\t\t\trotate,\n\t\t\tfontSize: typeograhpy.fontSize,\n\t\t\tlineHeight: typeograhpy.lineHeight,\n\t\t\tbackdropBlur,\n\t\t\tzIndex,\n\t\t\tscreens,\n\t\t\twidth: width.width,\n\t\t\theight: height.height,\n\t\t\tspacing,\n\t\t},\n\t},\n\tplugins: [\n\t\trequire('@tailwindcss/aspect-ratio'),\n\t\trequire('tailwind-scrollbar-hide'),\n\t\tsafeArea,\n\t\thover,\n\t],\n};\n","export { Components, JSX } from './components';\nexport * from './types';\nexport * from './utils';\n\nimport tailwindConfig from './tailwind.config';\nexport const tailwind = tailwindConfig;\n"],"mappings":"gNAAaA,EAAoBC,GAC7BA,EAAIC,QAAQ,UAAWC,GAAW,IAAIA,EAAOC,kB,MAEpCC,EAAoBJ,GAC7BA,EACKG,cACAF,QAAQ,gBAAiBI,GACtBA,EAAMC,cAAcL,QAAQ,IAAK,IAAIA,QAAQ,IAAK,MCP9D,MAAAM,EAAe,CACdC,OAAQ,QACR,aAAc,QACd,aAAc,QACdC,QAAS,YACT,aAAc,QACd,aAAc,SAGd,cAAe,QACf,cAAe,QACf,cAAe,QACf,cAAe,SACf,cAAe,SACf,cAAe,U,MCVHC,EAAiBC,GAAqBJ,EAAQI,G,MAE9CC,EAAsBD,IAClC,MAAME,EAASH,EAAcC,GAC7B,OAAOG,SAASD,EAAOZ,QAAQ,MAAO,IAAK,GAAG,E,MAGlCc,EAAyBJ,IACrC,MAAMK,EAAMJ,EAAmBD,GAC/B,OAAOK,EAAM,EAAE,E,MAGHC,EAAsBN,IAClC,MAAMO,EAASH,EAAsBJ,GACrC,OAAOQ,OAAOC,WAAaF,CAAM,E,MAGrBG,EAAuBV,IACnC,MAAMO,EAASH,EAAsBJ,GACrC,OAAOQ,OAAOC,WAAaF,CAAM,E,MAGrBI,EAAmB,CAC/BC,EACAC,IAEOP,EAAmBM,IAAcF,EAAoBG,G,MAGhDC,EAAgB,MAC1BN,OAAOO,WAAW,qBAAqBC,Q,MAC7BC,EAAW,IAAMH,KAAmBJ,EAAoB,U,MACxDQ,EAAW,IAAMP,EAAiB,SAAU,c,MAC5CQ,EAAY,IAAMb,EAAmB,cCrClD,MAAAc,EAAe,CACdC,YAAa,cACbC,QAAS,eACTC,OAAQ,CACPC,KAAM,UACNC,QA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ACdC,UAAW,KACXC,MAAO,CACN3H,SACA4H,UAAWzG,EACX0G,WAAY1G,EACZC,eACA0G,OAAMlD,OAAAmD,OAAAnD,OAAAmD,OAAA,GACF3E,GAAS,CACZxB,Q,OACAoG,EACA/F,SAAUD,EAAYC,SACtBQ,WAAYT,EAAYS,WACxBC,eACAE,SACApE,UACAgG,MAAOA,EAAMA,MACbE,OAAQA,EAAOA,OACfC,aAGF4C,QAAS,CACRU,QAAQ,6BACRA,QAAQ,2BACR1B,EACAe,I,MCrCWY,EAAWT,S"}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -52,6 +52,469 @@ const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');
|
|
|
52
52
|
const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');
|
|
53
53
|
const isDesktop = () => isBiggerThanScreen('desktop-xs');
|
|
54
54
|
|
|
55
|
+
const colors = {
|
|
56
|
+
transparent: 'transparent',
|
|
57
|
+
current: 'currentColor',
|
|
58
|
+
indigo: {
|
|
59
|
+
dark: '#2C4BA9',
|
|
60
|
+
DEFAULT: '#528AFA',
|
|
61
|
+
light: '#F1F6FF',
|
|
62
|
+
},
|
|
63
|
+
sky: {
|
|
64
|
+
dark: '#30C2C9',
|
|
65
|
+
DEFAULT: '#1EDAE3',
|
|
66
|
+
light: '#F5FEFF',
|
|
67
|
+
vague: '#BBF4F6',
|
|
68
|
+
},
|
|
69
|
+
mystic: {
|
|
70
|
+
blank: '#FFF',
|
|
71
|
+
dark: '#DAE6F0',
|
|
72
|
+
DEFAULT: '#F7FAFC',
|
|
73
|
+
light: '#FCFDFE',
|
|
74
|
+
medium: '#E3ECF3',
|
|
75
|
+
},
|
|
76
|
+
redberry: {
|
|
77
|
+
dark: '#BD0F1E',
|
|
78
|
+
DEFAULT: '#E63241',
|
|
79
|
+
light: '#FFE8EA',
|
|
80
|
+
medium: '#FF7D88',
|
|
81
|
+
},
|
|
82
|
+
storm: {
|
|
83
|
+
dark: '#272838',
|
|
84
|
+
DEFAULT: '#51536B',
|
|
85
|
+
light: '#B0B2CB',
|
|
86
|
+
medium: '#80829E',
|
|
87
|
+
vague: '#989AB7',
|
|
88
|
+
},
|
|
89
|
+
negative: {
|
|
90
|
+
dark: '#8A0F1D',
|
|
91
|
+
DEFAULT: '#B91E28',
|
|
92
|
+
light: '#FFCCD3',
|
|
93
|
+
},
|
|
94
|
+
positive: {
|
|
95
|
+
dark: '#1DA360',
|
|
96
|
+
DEFAULT: '#28D17C',
|
|
97
|
+
light: '#E5FFF2',
|
|
98
|
+
},
|
|
99
|
+
unbiased: {
|
|
100
|
+
dark: '#FFA231',
|
|
101
|
+
DEFAULT: '#FFC72D',
|
|
102
|
+
light: '#FFF6DC',
|
|
103
|
+
},
|
|
104
|
+
white: '#FFF',
|
|
105
|
+
black: '#000',
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const shadows = {
|
|
109
|
+
1: '0px 0.0625rem 0.05rem rgba(0,0,0, 0.5)',
|
|
110
|
+
2: '0px 0.0625rem 0.1125rem rgba(0,0,0, 0.65)',
|
|
111
|
+
3: '0px 0.0625rem 0.125rem rgba(0,0,0, 0.65)',
|
|
112
|
+
4: [
|
|
113
|
+
'0px 0.3125rem 1rem rgba(0,24,98, 0.08)',
|
|
114
|
+
'0px 0.0625rem 0.1875rem rgba(0,24,98, 0.13)',
|
|
115
|
+
],
|
|
116
|
+
5: '0px 0.1875rem 1rem rgba(0,24,98, 0.3)',
|
|
117
|
+
transparent: 'transparent',
|
|
118
|
+
'button-primary-hover': '0px 2px 4px rgba(44,75,169, 0.4)',
|
|
119
|
+
'button-secondary-hover': '0px 2px 4px rgba(176,178,203, 0.4)',
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const borderRadius = {
|
|
123
|
+
xxxlarge: '1.5625rem',
|
|
124
|
+
xxlarge: '0.75rem',
|
|
125
|
+
xlarge: '0.5625rem',
|
|
126
|
+
large: '0.375rem',
|
|
127
|
+
DEFAULT: '0.25rem',
|
|
128
|
+
medium: '0.25rem',
|
|
129
|
+
small: '0.125rem',
|
|
130
|
+
none: 0,
|
|
131
|
+
round: '100%',
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const scale = {
|
|
135
|
+
flip: '-1',
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const rotateNumbers = {};
|
|
139
|
+
for (let i = 1; i < 360; i++) {
|
|
140
|
+
rotateNumbers[`${i}`] = `${i}deg`;
|
|
141
|
+
rotateNumbers[`-${i}`] = `-${i}deg`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const typeograhpy = {
|
|
145
|
+
fontSize: {
|
|
146
|
+
h1: '2.5rem',
|
|
147
|
+
h2: '2rem',
|
|
148
|
+
h3: '1.5rem',
|
|
149
|
+
h4: '1.25rem',
|
|
150
|
+
h5: '1.125rem',
|
|
151
|
+
body: '1rem',
|
|
152
|
+
'body-2': '1.125rem',
|
|
153
|
+
xxs: '0.6875rem',
|
|
154
|
+
},
|
|
155
|
+
lineHeight: {
|
|
156
|
+
h1: '3rem',
|
|
157
|
+
h2: '2.5rem',
|
|
158
|
+
h3: '1.875rem',
|
|
159
|
+
h4: '1.625rem',
|
|
160
|
+
h5: '1.375rem',
|
|
161
|
+
body: '1.75rem',
|
|
162
|
+
'body-2': '1.875rem',
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const backdropBlur = {
|
|
167
|
+
xs: '2px',
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const zIndex = {
|
|
171
|
+
'floating-menu': 190,
|
|
172
|
+
dropdown: 200,
|
|
173
|
+
'navbar-topbar': 280,
|
|
174
|
+
'navbar-backdrop': 290,
|
|
175
|
+
navbar: 300,
|
|
176
|
+
backdrop: 490,
|
|
177
|
+
drawer: 500,
|
|
178
|
+
'drawer-header': 501,
|
|
179
|
+
modal: 600,
|
|
180
|
+
tooltip: 601,
|
|
181
|
+
toast: 700,
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const animation = {
|
|
185
|
+
animation: {
|
|
186
|
+
'fade-in': 'forwards fadeIn .2s ease',
|
|
187
|
+
'fade-out': 'forwards fadeOut .2s ease',
|
|
188
|
+
'slide-in-right': 'forwards slideInRight .5s ease',
|
|
189
|
+
'slide-in-left': 'forwards slideInLeft .5s ease',
|
|
190
|
+
'slide-in-top': 'forwards slideInTop .25 ease',
|
|
191
|
+
'slide-in-bottom': 'forwards slideInBottom .5s ease',
|
|
192
|
+
'slide-in-right-small': 'forwards slideInRightSmall .5s ease',
|
|
193
|
+
'slide-in-left-small': 'forwards slideInLeftSmall .5s ease',
|
|
194
|
+
'slide-in-top-small': 'forwards slideInTopSmall .5s ease',
|
|
195
|
+
'slide-in-bottom-small': 'forwards slideInBottomSmall .5s ease',
|
|
196
|
+
'slide-out-right': 'forwards slideOutRight .2s ease',
|
|
197
|
+
'slide-out-left': 'forwards slideOutLeft .2s ease',
|
|
198
|
+
'slide-out-top': 'forwards slideOutTop .2s ease',
|
|
199
|
+
'slide-out-bottom': 'forwards slideOutBottom .5s ease',
|
|
200
|
+
'slide-out-top-small': 'forwards slideOutTopSmall .5s ease',
|
|
201
|
+
'slide-out-bottom-small': 'forwards slideOutBottomSmall .5s ease',
|
|
202
|
+
},
|
|
203
|
+
keyframes: {
|
|
204
|
+
fadeIn: {
|
|
205
|
+
'0%': { opacity: 0 },
|
|
206
|
+
'100%': { opacity: 100 },
|
|
207
|
+
},
|
|
208
|
+
fadeOut: {
|
|
209
|
+
'0%': { opacity: 100 },
|
|
210
|
+
'100%': { opacity: 0 },
|
|
211
|
+
},
|
|
212
|
+
slideInRight: {
|
|
213
|
+
'0%': { transform: 'translateX(100%)' },
|
|
214
|
+
'100%': { transform: 'translateX(0)' },
|
|
215
|
+
},
|
|
216
|
+
slideInLeft: {
|
|
217
|
+
'0%': { transform: 'translateX(-100%)' },
|
|
218
|
+
'100%': { transform: 'translateX(0)' },
|
|
219
|
+
},
|
|
220
|
+
slideInTop: {
|
|
221
|
+
'0%': { transform: 'translateY(-100%)' },
|
|
222
|
+
'100%': { transform: 'translateY(0)' },
|
|
223
|
+
},
|
|
224
|
+
slideInBottom: {
|
|
225
|
+
'0%': { transform: 'translateY(100%)' },
|
|
226
|
+
'100%': { transform: 'translateY(0)' },
|
|
227
|
+
},
|
|
228
|
+
slideInRightSmall: {
|
|
229
|
+
'0%': { transform: 'translateX(20%)' },
|
|
230
|
+
'100%': { transform: 'translateX(0)' },
|
|
231
|
+
},
|
|
232
|
+
slideInLeftSmall: {
|
|
233
|
+
'0%': { transform: 'translateX(-20%)' },
|
|
234
|
+
'100%': { transform: 'translateX(0)' },
|
|
235
|
+
},
|
|
236
|
+
slideInTopSmall: {
|
|
237
|
+
'0%': { transform: 'translateY(-20%)' },
|
|
238
|
+
'100%': { transform: 'translateY(0)' },
|
|
239
|
+
},
|
|
240
|
+
slideInBottomSmall: {
|
|
241
|
+
'0%': { transform: 'translateY(20%)' },
|
|
242
|
+
'100%': { transform: 'translateY(0)' },
|
|
243
|
+
},
|
|
244
|
+
slideOutRight: {
|
|
245
|
+
'0%': { transform: 'translateX(0)' },
|
|
246
|
+
'100%': { transform: 'translateX(100%)' },
|
|
247
|
+
},
|
|
248
|
+
slideOutLeft: {
|
|
249
|
+
'0%': { transform: 'translateX(0)' },
|
|
250
|
+
'100%': { transform: 'translateX(-100%)' },
|
|
251
|
+
},
|
|
252
|
+
slideOutTop: {
|
|
253
|
+
'0%': { transform: 'translateY(0)' },
|
|
254
|
+
'100%': { transform: 'translateY(-100%)' },
|
|
255
|
+
},
|
|
256
|
+
slideOutBottom: {
|
|
257
|
+
'0%': { transform: 'translateY(0)' },
|
|
258
|
+
'100%': { transform: 'translateY(100%)' },
|
|
259
|
+
},
|
|
260
|
+
slideOutTopSmall: {
|
|
261
|
+
'0%': { transform: 'translateY(0)' },
|
|
262
|
+
'100%': { transform: 'translateY(-20%)' },
|
|
263
|
+
},
|
|
264
|
+
slideOutBottomSmall: {
|
|
265
|
+
'0%': { transform: 'translateY(0)' },
|
|
266
|
+
'100%': { transform: 'translateY(20%)' },
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
const width = {
|
|
272
|
+
width: {
|
|
273
|
+
unset: 'unset',
|
|
274
|
+
// default variant
|
|
275
|
+
'content-mobile': '100%',
|
|
276
|
+
'content-1280': '62rem',
|
|
277
|
+
'content-1440': '71rem',
|
|
278
|
+
'content-1536': '77rem',
|
|
279
|
+
'content-1680': '83rem',
|
|
280
|
+
// login variant
|
|
281
|
+
'sidebar-desktop-login': '100%',
|
|
282
|
+
'content-desktop-login': '21rem',
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
const height = {
|
|
287
|
+
height: {
|
|
288
|
+
unset: 'unset',
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
const spacing = {
|
|
293
|
+
// default variant layout
|
|
294
|
+
'content-mobile-x': '1rem',
|
|
295
|
+
'content-mobile-y': '1.5rem',
|
|
296
|
+
'content-desktop-x': '2rem',
|
|
297
|
+
'content-desktop-y': '2rem',
|
|
298
|
+
18: '4.5rem',
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
function getDefaultExportFromCjs (x) {
|
|
302
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
306
|
+
return module = {
|
|
307
|
+
path: basedir,
|
|
308
|
+
exports: {},
|
|
309
|
+
require: function (path, base) {
|
|
310
|
+
return commonjsRequire();
|
|
311
|
+
}
|
|
312
|
+
}, fn(module, module.exports), module.exports;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function commonjsRequire () {
|
|
316
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
var createPlugin_1 = createCommonjsModule(function (module, exports) {
|
|
320
|
+
Object.defineProperty(exports, "__esModule", {
|
|
321
|
+
value: true
|
|
322
|
+
});
|
|
323
|
+
Object.defineProperty(exports, "default", {
|
|
324
|
+
enumerable: true,
|
|
325
|
+
get: function() {
|
|
326
|
+
return _default;
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
function createPlugin(plugin, config) {
|
|
330
|
+
return {
|
|
331
|
+
handler: plugin,
|
|
332
|
+
config
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {
|
|
336
|
+
const optionsFunction = function(options) {
|
|
337
|
+
return {
|
|
338
|
+
__options: options,
|
|
339
|
+
handler: pluginFunction(options),
|
|
340
|
+
config: configFunction(options)
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
optionsFunction.__isOptionsFunction = true;
|
|
344
|
+
// Expose plugin dependencies so that `object-hash` returns a different
|
|
345
|
+
// value if anything here changes, to ensure a rebuild is triggered.
|
|
346
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
347
|
+
optionsFunction.__configFunction = configFunction;
|
|
348
|
+
return optionsFunction;
|
|
349
|
+
};
|
|
350
|
+
const _default = createPlugin;
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
var createPlugin = createCommonjsModule(function (module, exports) {
|
|
354
|
+
Object.defineProperty(exports, "__esModule", {
|
|
355
|
+
value: true
|
|
356
|
+
});
|
|
357
|
+
Object.defineProperty(exports, "default", {
|
|
358
|
+
enumerable: true,
|
|
359
|
+
get: function() {
|
|
360
|
+
return _default;
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
const _createPlugin = /*#__PURE__*/ _interop_require_default(createPlugin_1);
|
|
364
|
+
function _interop_require_default(obj) {
|
|
365
|
+
return obj && obj.__esModule ? obj : {
|
|
366
|
+
default: obj
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
const _default = _createPlugin.default;
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
var plugin = createCommonjsModule(function (module) {
|
|
373
|
+
module.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
const plugin$1 = /*@__PURE__*/getDefaultExportFromCjs(plugin);
|
|
377
|
+
|
|
378
|
+
// eslint-disable-next-line unicorn/prefer-module
|
|
379
|
+
const safeArea = plugin$1(({ addUtilities }) => {
|
|
380
|
+
const utilities = {
|
|
381
|
+
'.m-safe': {
|
|
382
|
+
marginTop: 'env(safe-area-inset-top)',
|
|
383
|
+
marginRight: 'env(safe-area-inset-right)',
|
|
384
|
+
marginBottom: 'env(safe-area-inset-bottom)',
|
|
385
|
+
marginLeft: 'env(safe-area-inset-left)',
|
|
386
|
+
},
|
|
387
|
+
'.mx-safe': {
|
|
388
|
+
marginRight: 'env(safe-area-inset-right)',
|
|
389
|
+
marginLeft: 'env(safe-area-inset-left)',
|
|
390
|
+
},
|
|
391
|
+
'.my-safe': {
|
|
392
|
+
marginTop: 'env(safe-area-inset-top)',
|
|
393
|
+
marginBottom: 'env(safe-area-inset-bottom)',
|
|
394
|
+
},
|
|
395
|
+
'.mt-safe': {
|
|
396
|
+
marginTop: 'env(safe-area-inset-top)',
|
|
397
|
+
},
|
|
398
|
+
'.mr-safe': {
|
|
399
|
+
marginRight: 'env(safe-area-inset-right)',
|
|
400
|
+
},
|
|
401
|
+
'.mb-safe': {
|
|
402
|
+
marginBottom: 'env(safe-area-inset-bottom)',
|
|
403
|
+
},
|
|
404
|
+
'.ml-safe': {
|
|
405
|
+
marginLeft: 'env(safe-area-inset-left)',
|
|
406
|
+
},
|
|
407
|
+
'.p-safe': {
|
|
408
|
+
paddingTop: 'env(safe-area-inset-top)',
|
|
409
|
+
paddingRight: 'env(safe-area-inset-right)',
|
|
410
|
+
paddingBottom: 'env(safe-area-inset-bottom)',
|
|
411
|
+
paddingLeft: 'env(safe-area-inset-left)',
|
|
412
|
+
},
|
|
413
|
+
'.px-safe': {
|
|
414
|
+
paddingRight: 'env(safe-area-inset-right)',
|
|
415
|
+
paddingLeft: 'env(safe-area-inset-left)',
|
|
416
|
+
},
|
|
417
|
+
'.py-safe': {
|
|
418
|
+
paddingTop: 'env(safe-area-inset-top)',
|
|
419
|
+
paddingBottom: 'env(safe-area-inset-bottom)',
|
|
420
|
+
},
|
|
421
|
+
'.pt-safe': {
|
|
422
|
+
paddingTop: 'env(safe-area-inset-top)',
|
|
423
|
+
},
|
|
424
|
+
'.pr-safe': {
|
|
425
|
+
paddingRight: 'env(safe-area-inset-right)',
|
|
426
|
+
},
|
|
427
|
+
'.pb-safe': {
|
|
428
|
+
paddingBottom: 'env(safe-area-inset-bottom)',
|
|
429
|
+
},
|
|
430
|
+
'.pl-safe': {
|
|
431
|
+
paddingLeft: 'env(safe-area-inset-left)',
|
|
432
|
+
},
|
|
433
|
+
'.min-h-screen': {
|
|
434
|
+
minHeight: '100vh',
|
|
435
|
+
},
|
|
436
|
+
'.min-h-screen-safe': {
|
|
437
|
+
minHeight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',
|
|
438
|
+
},
|
|
439
|
+
'.max-h-screen': {
|
|
440
|
+
maxHeight: '100vh',
|
|
441
|
+
},
|
|
442
|
+
'.max-h-screen-safe': {
|
|
443
|
+
maxHeight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',
|
|
444
|
+
},
|
|
445
|
+
'.h-screen-safe': {
|
|
446
|
+
height: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',
|
|
447
|
+
},
|
|
448
|
+
'.min-w-screen': {
|
|
449
|
+
minWidth: '100vw',
|
|
450
|
+
},
|
|
451
|
+
'.min-w-screen-safe': {
|
|
452
|
+
minWidth: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',
|
|
453
|
+
},
|
|
454
|
+
'.max-w-screen': {
|
|
455
|
+
maxWidth: '100vw',
|
|
456
|
+
},
|
|
457
|
+
'.max-w-screen-safe': {
|
|
458
|
+
maxWidth: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',
|
|
459
|
+
},
|
|
460
|
+
'.w-screen-safe': {
|
|
461
|
+
width: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
addUtilities(utilities);
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
const hover = {
|
|
468
|
+
// ...
|
|
469
|
+
plugins: [
|
|
470
|
+
// ...
|
|
471
|
+
plugin$1(({ addVariant }) => {
|
|
472
|
+
// Hover media queries
|
|
473
|
+
addVariant('has-hover', '@media (hover: hover)');
|
|
474
|
+
addVariant('no-hover', '@media (hover: none)');
|
|
475
|
+
// Applied on hover if supported, never applied otherwise
|
|
476
|
+
addVariant('hover-never', '@media (hover: hover) { &:hover }');
|
|
477
|
+
addVariant('group-hover-never', '@media (hover: hover) { :merge(.group):hover & }');
|
|
478
|
+
addVariant('peer-hover-never', '@media (hover: hover) { :merge(.peer):hover & }');
|
|
479
|
+
// Applied on hover if supported, always applied otherwise
|
|
480
|
+
addVariant('hover-always', [
|
|
481
|
+
'@media (hover: hover) { &:hover }',
|
|
482
|
+
'@media (hover: none)',
|
|
483
|
+
]);
|
|
484
|
+
addVariant('group-hover-always', [
|
|
485
|
+
'@media (hover: hover) { :merge(.group):hover & }',
|
|
486
|
+
'@media (hover: none)',
|
|
487
|
+
]);
|
|
488
|
+
addVariant('peer-hover-always', [
|
|
489
|
+
'@media (hover: hover) { :merge(.peer):hover & }',
|
|
490
|
+
'@media (hover: none)',
|
|
491
|
+
]);
|
|
492
|
+
}),
|
|
493
|
+
],
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
const tailwindConfig = {
|
|
497
|
+
important: true,
|
|
498
|
+
theme: {
|
|
499
|
+
colors,
|
|
500
|
+
boxShadow: shadows,
|
|
501
|
+
dropShadow: shadows,
|
|
502
|
+
borderRadius,
|
|
503
|
+
extend: Object.assign(Object.assign({}, animation), { scale,
|
|
504
|
+
rotate: rotateNumbers, fontSize: typeograhpy.fontSize, lineHeight: typeograhpy.lineHeight, backdropBlur,
|
|
505
|
+
zIndex,
|
|
506
|
+
screens, width: width.width, height: height.height, spacing }),
|
|
507
|
+
},
|
|
508
|
+
plugins: [
|
|
509
|
+
require('@tailwindcss/aspect-ratio'),
|
|
510
|
+
require('tailwind-scrollbar-hide'),
|
|
511
|
+
safeArea,
|
|
512
|
+
hover,
|
|
513
|
+
],
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
const tailwind = tailwindConfig;
|
|
517
|
+
|
|
55
518
|
exports.isTableColumnSizesKey = objectGetByPath.isTableColumnSizesKey;
|
|
56
519
|
exports.objectGetByPath = objectGetByPath.objectGetByPath;
|
|
57
520
|
exports.childOf = childOf.childOf;
|
|
@@ -69,5 +532,6 @@ exports.isSmallerThanScreen = isSmallerThanScreen;
|
|
|
69
532
|
exports.isTablet = isTablet;
|
|
70
533
|
exports.isTouchDevice = isTouchDevice;
|
|
71
534
|
exports.snakeToCamelCase = snakeToCamelCase;
|
|
535
|
+
exports.tailwind = tailwind;
|
|
72
536
|
|
|
73
537
|
//# sourceMappingURL=index.cjs.js.map
|