@scbt-ecom/ui 0.147.8 → 0.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/configs/tailwindConfigBase.js +1 -1
- package/dist/lib/configs/tailwindConfigBase.js.map +1 -1
- package/dist/lib/configs/tailwindPresets/resetPreset.js +1 -1
- package/dist/lib/configs/tailwindPresets/resetPreset.js.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +4 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -2
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/create-plugin.js +0 -2
- package/dist/_virtual/create-plugin.js.map +0 -1
- package/dist/_virtual/createPlugin.js +0 -2
- package/dist/_virtual/createPlugin.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"
|
|
1
|
+
import r from"tailwindcss/plugin";import l from"tailwindcss-animate";import{allowedBackgroundColors as i,allowedStrokeColors as t,allowedIconsColors as o,allowedTextColors as s,allowedBannersBackgroundColors as d}from"../shared/constants/designSystem/colors.js";import{allowedBackgroundDeg as g,allowedBorderRadius as p}from"../shared/constants/designSystem/others.js";import{allowedTextStyles as c,allowedLineHeight as u,allowedFontSize as b}from"../shared/constants/designSystem/typography.js";const C={theme:{backgroundColor:{color:i,banner:d,icon:o},textColor:{icon:o,color:s},fill:o,stroke:o,borderColor:t,outlineColor:t,borderRadius:p,fontFamily:{roboto:["var(--ff-roboto)","sans-serif"]},fontSize:b,lineHeight:u,gradientColorStops:i,boxShadow:{sm:"0 8px 20px 0 rgba(0, 0, 0, 0.08)",md:"0 12px 20px 0 rgba(0, 33, 87, 0.10)",lg:"0 16px 24px 0 rgba(0, 33, 87, 0.16)"},extend:{bgGradientDeg:g,width:{"popper-content":"var(--radix-popover-content-available-width)","popper-trigger":"var(--radix-popover-trigger-width)","autocomplete-input":"var(--input-width)","select-trigger":"var(--button-width)"},transitionDuration:{DEFAULT:"0.3s",12:"0.12s",15:"0.15s",2:"2s"},transitionTimingFunction:{DEFAULT:"ease-in-out"},keyframes:{"scale-in":{from:{opacity:"0",scale:"0"},to:{opacity:"1",scale:"1"}},"progress-loader":{"100%":{backgroundPosition:"100% 100%"}},"caret-blink":{"0%,70%,100%":{opacity:"1"},"20%,50%":{opacity:"0"}},shine:{to:{"background-position-x":"-200%"}}},animation:{"scale-in":"scale-in 0.3s ease-in-out","progress-loader":"progress-loader 250s linear infinite","caret-blink":"caret-blink 1.25s ease-out infinite"}}},plugins:[l,r(({addComponents:e})=>{e(c)}),r(function({matchUtilities:e,theme:a}){e({"bg-deg-gradient":n=>({"background-image":`linear-gradient(${n}, var(--tw-gradient-stops))`})},{values:Object.assign(a("bgGradientDeg",{}),{})})})]};export{C as tailwindConfigBase};
|
|
2
2
|
//# sourceMappingURL=tailwindConfigBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindConfigBase.js","sources":["../../../lib/configs/tailwindConfigBase.ts"],"sourcesContent":["import type { Config } from 'tailwindcss'\nimport plugin from 'tailwindcss/plugin'\nimport tailwindAnimation from 'tailwindcss-animate'\nimport {\n allowedBackgroundColors,\n allowedBackgroundDeg,\n allowedBannersBackgroundColors,\n allowedBorderRadius,\n allowedFontSize,\n allowedIconsColors,\n allowedLineHeight,\n allowedStrokeColors,\n allowedTextColors,\n allowedTextStyles\n} from '../shared/constants'\n\nexport const tailwindConfigBase: Omit<Config, 'content'> = {\n theme: {\n backgroundColor: {\n color: allowedBackgroundColors,\n banner: allowedBannersBackgroundColors,\n icon: allowedIconsColors\n },\n textColor: {\n icon: allowedIconsColors,\n color: allowedTextColors\n },\n fill: allowedIconsColors,\n stroke: allowedIconsColors,\n borderColor: allowedStrokeColors,\n outlineColor: allowedStrokeColors,\n borderRadius: allowedBorderRadius,\n fontFamily: { roboto: ['var(--ff-roboto)', 'sans-serif'] },\n fontSize: allowedFontSize,\n lineHeight: allowedLineHeight,\n gradientColorStops: allowedBackgroundColors,\n boxShadow: {\n sm: '0 8px 20px 0 rgba(0, 0, 0, 0.08)',\n md: '0 12px 20px 0 rgba(0, 33, 87, 0.10)',\n lg: '0 16px 24px 0 rgba(0, 33, 87, 0.16)'\n },\n extend: {\n bgGradientDeg: allowedBackgroundDeg,\n width: {\n 'popper-content': 'var(--radix-popover-content-available-width)',\n 'popper-trigger': 'var(--radix-popover-trigger-width)',\n 'autocomplete-input': 'var(--input-width)',\n 'select-trigger': 'var(--button-width)'\n },\n transitionDuration: {\n DEFAULT: '0.3s',\n 12: '0.12s',\n 15: '0.15s',\n 2: '2s'\n },\n transitionTimingFunction: {\n DEFAULT: 'ease-in-out'\n },\n keyframes: {\n 'scale-in': {\n from: { opacity: '0', scale: '0' },\n to: { opacity: '1', scale: '1' }\n },\n 'progress-loader': {\n '100%': {\n backgroundPosition: '100% 100%'\n }\n },\n 'caret-blink': {\n '0%,70%,100%': { opacity: '1' },\n '20%,50%': { opacity: '0' }\n },\n shine: {\n to: {\n 'background-position-x': '-200%'\n }\n }\n },\n animation: {\n 'scale-in': 'scale-in 0.3s ease-in-out',\n 'progress-loader': 'progress-loader 250s linear infinite',\n 'caret-blink': 'caret-blink 1.25s ease-out infinite'\n }\n }\n },\n plugins: [\n tailwindAnimation,\n plugin(({ addComponents }) => {\n addComponents(allowedTextStyles)\n }),\n plugin(function ({ matchUtilities, theme }) {\n matchUtilities(\n {\n 'bg-deg-gradient': (angle) => ({\n 'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`\n })\n },\n {\n values: Object.assign(theme('bgGradientDeg', {}), {})\n }\n )\n })\n ]\n}\n"],"names":["tailwindConfigBase","allowedBackgroundColors","allowedBannersBackgroundColors","allowedIconsColors","allowedTextColors","allowedStrokeColors","allowedBorderRadius","allowedFontSize","allowedLineHeight","allowedBackgroundDeg","tailwindAnimation","plugin","addComponents","allowedTextStyles","matchUtilities","theme","angle"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindConfigBase.js","sources":["../../../lib/configs/tailwindConfigBase.ts"],"sourcesContent":["import type { Config } from 'tailwindcss'\nimport plugin from 'tailwindcss/plugin'\nimport tailwindAnimation from 'tailwindcss-animate'\nimport {\n allowedBackgroundColors,\n allowedBackgroundDeg,\n allowedBannersBackgroundColors,\n allowedBorderRadius,\n allowedFontSize,\n allowedIconsColors,\n allowedLineHeight,\n allowedStrokeColors,\n allowedTextColors,\n allowedTextStyles\n} from '../shared/constants'\n\nexport const tailwindConfigBase: Omit<Config, 'content'> = {\n theme: {\n backgroundColor: {\n color: allowedBackgroundColors,\n banner: allowedBannersBackgroundColors,\n icon: allowedIconsColors\n },\n textColor: {\n icon: allowedIconsColors,\n color: allowedTextColors\n },\n fill: allowedIconsColors,\n stroke: allowedIconsColors,\n borderColor: allowedStrokeColors,\n outlineColor: allowedStrokeColors,\n borderRadius: allowedBorderRadius,\n fontFamily: { roboto: ['var(--ff-roboto)', 'sans-serif'] },\n fontSize: allowedFontSize,\n lineHeight: allowedLineHeight,\n gradientColorStops: allowedBackgroundColors,\n boxShadow: {\n sm: '0 8px 20px 0 rgba(0, 0, 0, 0.08)',\n md: '0 12px 20px 0 rgba(0, 33, 87, 0.10)',\n lg: '0 16px 24px 0 rgba(0, 33, 87, 0.16)'\n },\n extend: {\n bgGradientDeg: allowedBackgroundDeg,\n width: {\n 'popper-content': 'var(--radix-popover-content-available-width)',\n 'popper-trigger': 'var(--radix-popover-trigger-width)',\n 'autocomplete-input': 'var(--input-width)',\n 'select-trigger': 'var(--button-width)'\n },\n transitionDuration: {\n DEFAULT: '0.3s',\n 12: '0.12s',\n 15: '0.15s',\n 2: '2s'\n },\n transitionTimingFunction: {\n DEFAULT: 'ease-in-out'\n },\n keyframes: {\n 'scale-in': {\n from: { opacity: '0', scale: '0' },\n to: { opacity: '1', scale: '1' }\n },\n 'progress-loader': {\n '100%': {\n backgroundPosition: '100% 100%'\n }\n },\n 'caret-blink': {\n '0%,70%,100%': { opacity: '1' },\n '20%,50%': { opacity: '0' }\n },\n shine: {\n to: {\n 'background-position-x': '-200%'\n }\n }\n },\n animation: {\n 'scale-in': 'scale-in 0.3s ease-in-out',\n 'progress-loader': 'progress-loader 250s linear infinite',\n 'caret-blink': 'caret-blink 1.25s ease-out infinite'\n }\n }\n },\n plugins: [\n tailwindAnimation,\n plugin(({ addComponents }) => {\n addComponents(allowedTextStyles)\n }),\n plugin(function ({ matchUtilities, theme }) {\n matchUtilities(\n {\n 'bg-deg-gradient': (angle) => ({\n 'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`\n })\n },\n {\n values: Object.assign(theme('bgGradientDeg', {}), {})\n }\n )\n })\n ]\n}\n"],"names":["tailwindConfigBase","allowedBackgroundColors","allowedBannersBackgroundColors","allowedIconsColors","allowedTextColors","allowedStrokeColors","allowedBorderRadius","allowedFontSize","allowedLineHeight","allowedBackgroundDeg","tailwindAnimation","plugin","addComponents","allowedTextStyles","matchUtilities","theme","angle"],"mappings":"gfAgBO,MAAMA,EAA8C,CACzD,MAAO,CACL,gBAAiB,CACf,MAAOC,EACP,OAAQC,EACR,KAAMC,CAAA,EAER,UAAW,CACT,KAAMA,EACN,MAAOC,CAAA,EAET,KAAMD,EACN,OAAQA,EACR,YAAaE,EACb,aAAcA,EACd,aAAcC,EACd,WAAY,CAAE,OAAQ,CAAC,mBAAoB,YAAY,CAAA,EACvD,SAAUC,EACV,WAAYC,EACZ,mBAAoBP,EACpB,UAAW,CACT,GAAI,mCACJ,GAAI,sCACJ,GAAI,qCAAA,EAEN,OAAQ,CACN,cAAeQ,EACf,MAAO,CACL,iBAAkB,+CAClB,iBAAkB,qCAClB,qBAAsB,qBACtB,iBAAkB,qBAAA,EAEpB,mBAAoB,CAClB,QAAS,OACT,GAAI,QACJ,GAAI,QACJ,EAAG,IAAA,EAEL,yBAA0B,CACxB,QAAS,aAAA,EAEX,UAAW,CACT,WAAY,CACV,KAAM,CAAE,QAAS,IAAK,MAAO,GAAA,EAC7B,GAAI,CAAE,QAAS,IAAK,MAAO,GAAA,CAAI,EAEjC,kBAAmB,CACjB,OAAQ,CACN,mBAAoB,WAAA,CACtB,EAEF,cAAe,CACb,cAAe,CAAE,QAAS,GAAA,EAC1B,UAAW,CAAE,QAAS,GAAA,CAAI,EAE5B,MAAO,CACL,GAAI,CACF,wBAAyB,OAAA,CAC3B,CACF,EAEF,UAAW,CACT,WAAY,4BACZ,kBAAmB,uCACnB,cAAe,qCAAA,CACjB,CACF,EAEF,QAAS,CACPC,EACAC,EAAO,CAAC,CAAE,cAAAC,KAAoB,CAC5BA,EAAcC,CAAiB,CACjC,CAAC,EACDF,EAAO,SAAU,CAAE,eAAAG,EAAgB,MAAAC,GAAS,CAC1CD,EACE,CACE,kBAAoBE,IAAW,CAC7B,mBAAoB,mBAAmBA,CAAK,6BAAA,EAC9C,EAEF,CACE,OAAQ,OAAO,OAAOD,EAAM,gBAAiB,CAAA,CAAE,EAAG,CAAA,CAAE,CAAA,CACtD,CAEJ,CAAC,CAAA,CAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"
|
|
1
|
+
import r from"tailwindcss/plugin";import i from"tailwindcss-animate";import{allowedBackgroundColors as l,allowedStrokeColors as a,allowedIconsColors as o,allowedTextColors as d,allowedBannersBackgroundColors as s}from"../../shared/constants/designSystem/colors.js";import{allowedBackgroundDeg as g,allowedZIndex as p,allowedBorderRadius as m}from"../../shared/constants/designSystem/others.js";import{allowedTextStyles as x,allowedLineHeight as b,allowedFontSize as c}from"../../shared/constants/designSystem/typography.js";const S={theme:{screens:{mobile:{max:"1187px"},desktop:"1188px"},backgroundColor:{color:l,banner:s,icon:o},textColor:{icon:o,color:d},fill:o,stroke:o,borderColor:a,outlineColor:a,borderRadius:m,fontFamily:{roboto:["var(--ff-roboto)","sans-serif"]},fontSize:c,lineHeight:b,gradientColorStops:l,boxShadow:{sm:"0 8px 20px 0 rgba(0, 0, 0, 0.08)",md:"0 12px 20px 0 rgba(0, 33, 87, 0.10)",lg:"0 16px 24px 0 rgba(0, 33, 87, 0.16)"},zIndex:p,extend:{bgGradientDeg:g}},plugins:[i,r(({addComponents:e})=>{e(x)}),r(function({matchUtilities:e,theme:t}){e({"bg-deg-gradient":n=>({"background-image":`linear-gradient(${n}, var(--tw-gradient-stops))`})},{values:Object.assign(t("bgGradientDeg",{}),{})})})]};export{S as resetPreset};
|
|
2
2
|
//# sourceMappingURL=resetPreset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resetPreset.js","sources":["../../../../lib/configs/tailwindPresets/resetPreset.ts"],"sourcesContent":["// Тут через алиасы не импортируй, иначе не будет работать\nimport type { Config } from 'tailwindcss'\nimport plugin from 'tailwindcss/plugin'\nimport tailwindAnimation from 'tailwindcss-animate'\nimport {\n allowedBackgroundColors,\n allowedBackgroundDeg,\n allowedBannersBackgroundColors,\n allowedBorderRadius,\n allowedFontSize,\n allowedIconsColors,\n allowedLineHeight,\n allowedStrokeColors,\n allowedTextColors,\n allowedTextStyles,\n allowedZIndex\n} from '../../shared/constants'\n\nexport const resetPreset: Omit<Config, 'content'> = {\n theme: {\n screens: {\n mobile: { max: '1187px' },\n desktop: '1188px'\n },\n backgroundColor: {\n color: allowedBackgroundColors,\n banner: allowedBannersBackgroundColors,\n icon: allowedIconsColors\n },\n textColor: {\n icon: allowedIconsColors,\n color: allowedTextColors\n },\n fill: allowedIconsColors,\n stroke: allowedIconsColors,\n borderColor: allowedStrokeColors,\n outlineColor: allowedStrokeColors,\n borderRadius: allowedBorderRadius,\n fontFamily: { roboto: ['var(--ff-roboto)', 'sans-serif'] },\n fontSize: allowedFontSize,\n lineHeight: allowedLineHeight,\n gradientColorStops: allowedBackgroundColors,\n boxShadow: {\n sm: '0 8px 20px 0 rgba(0, 0, 0, 0.08)',\n md: '0 12px 20px 0 rgba(0, 33, 87, 0.10)',\n lg: '0 16px 24px 0 rgba(0, 33, 87, 0.16)'\n },\n zIndex: allowedZIndex,\n extend: {\n bgGradientDeg: allowedBackgroundDeg\n }\n },\n plugins: [\n tailwindAnimation,\n plugin(({ addComponents }) => {\n addComponents(allowedTextStyles)\n }),\n plugin(function ({ matchUtilities, theme }) {\n matchUtilities(\n {\n 'bg-deg-gradient': (angle) => ({\n 'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`\n })\n },\n {\n values: Object.assign(theme('bgGradientDeg', {}), {})\n }\n )\n })\n ]\n}\n"],"names":["resetPreset","allowedBackgroundColors","allowedBannersBackgroundColors","allowedIconsColors","allowedTextColors","allowedStrokeColors","allowedBorderRadius","allowedFontSize","allowedLineHeight","allowedZIndex","allowedBackgroundDeg","tailwindAnimation","plugin","addComponents","allowedTextStyles","matchUtilities","theme","angle"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resetPreset.js","sources":["../../../../lib/configs/tailwindPresets/resetPreset.ts"],"sourcesContent":["// Тут через алиасы не импортируй, иначе не будет работать\nimport type { Config } from 'tailwindcss'\nimport plugin from 'tailwindcss/plugin'\nimport tailwindAnimation from 'tailwindcss-animate'\nimport {\n allowedBackgroundColors,\n allowedBackgroundDeg,\n allowedBannersBackgroundColors,\n allowedBorderRadius,\n allowedFontSize,\n allowedIconsColors,\n allowedLineHeight,\n allowedStrokeColors,\n allowedTextColors,\n allowedTextStyles,\n allowedZIndex\n} from '../../shared/constants'\n\nexport const resetPreset: Omit<Config, 'content'> = {\n theme: {\n screens: {\n mobile: { max: '1187px' },\n desktop: '1188px'\n },\n backgroundColor: {\n color: allowedBackgroundColors,\n banner: allowedBannersBackgroundColors,\n icon: allowedIconsColors\n },\n textColor: {\n icon: allowedIconsColors,\n color: allowedTextColors\n },\n fill: allowedIconsColors,\n stroke: allowedIconsColors,\n borderColor: allowedStrokeColors,\n outlineColor: allowedStrokeColors,\n borderRadius: allowedBorderRadius,\n fontFamily: { roboto: ['var(--ff-roboto)', 'sans-serif'] },\n fontSize: allowedFontSize,\n lineHeight: allowedLineHeight,\n gradientColorStops: allowedBackgroundColors,\n boxShadow: {\n sm: '0 8px 20px 0 rgba(0, 0, 0, 0.08)',\n md: '0 12px 20px 0 rgba(0, 33, 87, 0.10)',\n lg: '0 16px 24px 0 rgba(0, 33, 87, 0.16)'\n },\n zIndex: allowedZIndex,\n extend: {\n bgGradientDeg: allowedBackgroundDeg\n }\n },\n plugins: [\n tailwindAnimation,\n plugin(({ addComponents }) => {\n addComponents(allowedTextStyles)\n }),\n plugin(function ({ matchUtilities, theme }) {\n matchUtilities(\n {\n 'bg-deg-gradient': (angle) => ({\n 'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`\n })\n },\n {\n values: Object.assign(theme('bgGradientDeg', {}), {})\n }\n )\n })\n ]\n}\n"],"names":["resetPreset","allowedBackgroundColors","allowedBannersBackgroundColors","allowedIconsColors","allowedTextColors","allowedStrokeColors","allowedBorderRadius","allowedFontSize","allowedLineHeight","allowedZIndex","allowedBackgroundDeg","tailwindAnimation","plugin","addComponents","allowedTextStyles","matchUtilities","theme","angle"],"mappings":"4gBAkBO,MAAMA,EAAuC,CAClD,MAAO,CACL,QAAS,CACP,OAAQ,CAAE,IAAK,QAAA,EACf,QAAS,QAAA,EAEX,gBAAiB,CACf,MAAOC,EACP,OAAQC,EACR,KAAMC,CAAA,EAER,UAAW,CACT,KAAMA,EACN,MAAOC,CAAA,EAET,KAAMD,EACN,OAAQA,EACR,YAAaE,EACb,aAAcA,EACd,aAAcC,EACd,WAAY,CAAE,OAAQ,CAAC,mBAAoB,YAAY,CAAA,EACvD,SAAUC,EACV,WAAYC,EACZ,mBAAoBP,EACpB,UAAW,CACT,GAAI,mCACJ,GAAI,sCACJ,GAAI,qCAAA,EAEN,OAAQQ,EACR,OAAQ,CACN,cAAeC,CAAA,CACjB,EAEF,QAAS,CACPC,EACAC,EAAO,CAAC,CAAE,cAAAC,KAAoB,CAC5BA,EAAcC,CAAiB,CACjC,CAAC,EACDF,EAAO,SAAU,CAAE,eAAAG,EAAgB,MAAAC,GAAS,CAC1CD,EACE,CACE,kBAAoBE,IAAW,CAC7B,mBAAoB,mBAAmBA,CAAK,6BAAA,EAC9C,EAEF,CACE,OAAQ,OAAO,OAAOD,EAAM,gBAAiB,CAAA,CAAE,EAAG,CAAA,CAAE,CAAA,CACtD,CAEJ,CAAC,CAAA,CAEL"}
|