@foxford/ui 2.96.0 → 2.96.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/components/Arrow/Arrow.js +1 -1
- package/components/Arrow/Arrow.js.map +1 -1
- package/components/Arrow/Arrow.mjs +1 -1
- package/components/Arrow/Arrow.mjs.map +1 -1
- package/components/Arrow/sizes.js +2 -0
- package/components/Arrow/sizes.js.map +1 -0
- package/components/Arrow/sizes.mjs +2 -0
- package/components/Arrow/sizes.mjs.map +1 -0
- package/dts/index.d.ts +2 -0
- package/package.json +2 -2
- package/components/Arrow/constants.js +0 -2
- package/components/Arrow/constants.js.map +0 -1
- package/components/Arrow/constants.mjs +0 -2
- package/components/Arrow/constants.mjs.map +0 -1
- package/components/Arrow/default-constants.js +0 -2
- package/components/Arrow/default-constants.js.map +0 -1
- package/components/Arrow/default-constants.mjs +0 -2
- package/components/Arrow/default-constants.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var React=require('react');var withMergedProps=require('../../hocs/withMergedProps.js');var chevronUpDefault=require('./images/chevronUpDefault.svg.js');var
|
|
1
|
+
'use strict';var React=require('react');var withMergedProps=require('../../hocs/withMergedProps.js');var chevronUpDefault=require('./images/chevronUpDefault.svg.js');var sizes=require('./sizes.js');var style=require('./style.js');var jsxRuntime=require('react/jsx-runtime');var Icon=require('../Icon/Icon.js');var index=require('../../icon-pack/src/icons/ArrowUp/index.js');const Arrow=withMergedProps.withMergedProps(React.forwardRef(((e,r)=>{const{type:s="button",size:i="l",top:o=!0,iconProps:t={},...n}=e;return jsxRuntime.jsx(style.Root,{...n,type:s,size:i,top:o,ref:r,children:jsxRuntime.jsx(Icon.Icon,{icon:t.name||t.icon?void 0:jsxRuntime.jsx(n.preset==='brand'?index.ArrowUp:chevronUpDefault.default,{}),as:'span',color:'inherit',...t})})})),{displayName:"Arrow",sizes:e=>e.preset==='brand'?e.square?sizes.SIZES_SQUARE:sizes.SIZES:sizes.SIZES_DEFAULT});exports.Arrow=Arrow,exports.COMPONENT_NAME="Arrow";
|
|
2
2
|
//# sourceMappingURL=Arrow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Arrow.js","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { ArrowUp } from '@foxford/icon-pack'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport ChevronUp from './images/chevronUpDefault.svg?module'\nimport { SIZES
|
|
1
|
+
{"version":3,"file":"Arrow.js","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { ArrowUp } from '@foxford/icon-pack'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport ChevronUp from './images/chevronUpDefault.svg?module'\nimport { SIZES, SIZES_DEFAULT, SIZES_SQUARE } from './sizes'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n * *v1.0.0*\n *\n * Контрол многоцелевого назначения.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Arrow: React.ForwardRefExoticComponent<ArrowProps> = withMergedProps<ArrowProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<ArrowProps>>((props, ref) => {\n const { type = 'button', size = 'l', top = true, iconProps = {}, ...restProps } = props\n\n const iconBaseProps: IconProps = { as: 'span', color: 'inherit' }\n\n return (\n <Styled.Root {...restProps} type={type} size={size} top={top} ref={ref}>\n <Icon\n icon={\n !iconProps.name && !iconProps.icon ? restProps.preset === 'brand' ? <ArrowUp /> : <ChevronUp /> : undefined\n }\n {...iconBaseProps}\n {...iconProps}\n />\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => {\n if (props.preset === 'brand') {\n return props.square ? SIZES_SQUARE : SIZES\n }\n\n return SIZES_DEFAULT\n },\n }\n)\n\nexport { Arrow, COMPONENT_NAME }\n\nexport type { ArrowProps }\n"],"names":["Arrow","withMergedProps","forwardRef","props","ref","type","size","top","iconProps","restProps","_jsx","Styled","children","jsx","Icon","icon","name","undefined","preset","ArrowUp","ChevronUp","default","as","color","displayName","sizes","square","SIZES_SQUARE","SIZES","SIZES_DEFAULT"],"mappings":"sXAsBMA,MAAAA,MAAqDC,gBAAAA,gBACzDC,MAAAA,YAAuD,CAACC,EAAOC,KAC7D,MAAMC,KAAEA,EAAO,SAAQC,KAAEA,EAAO,IAAGC,IAAEA,GAAM,EAAIC,UAAEA,EAAY,CAAE,KAAKC,GAAcN,EAIlF,OACEO,WAAAA,IAACC,MAAAA,KAAW,IAAKF,EAAWJ,KAAMA,EAAMC,KAAMA,EAAMC,IAAKA,EAAKH,IAAKA,EAAIQ,SACrEF,WAAAG,IAACC,UAAI,CACHC,KACGP,EAAUQ,MAASR,EAAUO,UAAoEE,EAA9BP,WAAAG,IAA/BJ,EAAUS,SAAW,QAAWC,MAAOA,QAAOC,iBAASC,QAAd,IANnDC,GAAI,OAAQC,MAAO,aAS5Cf,KAEM,IAGlB,CACEgB,YA7BmB,QA8BnBC,MAAQtB,GACFA,EAAMe,SAAW,QACZf,EAAMuB,OAASC,MAAYA,aAAGC,YAGhCC,iEAnCU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{forwardRef}from'react';import{withMergedProps}from'../../hocs/withMergedProps.mjs';import SvgChevronUpDefault from'./images/chevronUpDefault.svg.mjs';import{SIZES
|
|
1
|
+
import{forwardRef}from'react';import{withMergedProps}from'../../hocs/withMergedProps.mjs';import SvgChevronUpDefault from'./images/chevronUpDefault.svg.mjs';import{SIZES_SQUARE,SIZES,SIZES_DEFAULT}from'./sizes.mjs';import{Root}from'./style.mjs';import{jsx}from'react/jsx-runtime';import{Icon}from'../Icon/Icon.mjs';import{ArrowUp}from'../../icon-pack/src/icons/ArrowUp/index.mjs';const COMPONENT_NAME='Arrow';const Arrow=withMergedProps(forwardRef(((r,o)=>{const{type:e="button",size:s="l",top:t=!0,iconProps:i={},...p}=r;return jsx(Root,{...p,type:e,size:s,top:t,ref:o,children:jsx(Icon,{icon:i.name||i.icon?void 0:jsx(p.preset==='brand'?ArrowUp:SvgChevronUpDefault,{}),as:'span',color:'inherit',...i})})})),{displayName:"Arrow",sizes:r=>r.preset==='brand'?r.square?SIZES_SQUARE:SIZES:SIZES_DEFAULT});export{Arrow,COMPONENT_NAME};
|
|
2
2
|
//# sourceMappingURL=Arrow.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Arrow.mjs","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { ArrowUp } from '@foxford/icon-pack'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport ChevronUp from './images/chevronUpDefault.svg?module'\nimport { SIZES
|
|
1
|
+
{"version":3,"file":"Arrow.mjs","sources":["../../../../src/components/Arrow/Arrow.tsx"],"sourcesContent":["import { forwardRef } from 'react'\nimport { ArrowUp } from '@foxford/icon-pack'\nimport { withMergedProps } from 'hocs/withMergedProps'\nimport type { MergedProps } from 'hocs/withMergedProps'\nimport { Icon } from 'components/Icon'\nimport type { IconProps } from 'components/Icon'\nimport ChevronUp from './images/chevronUpDefault.svg?module'\nimport { SIZES, SIZES_DEFAULT, SIZES_SQUARE } from './sizes'\nimport type { ArrowProps } from './types'\n\nimport * as Styled from './style'\n\nconst COMPONENT_NAME = 'Arrow'\n\n/**\n *\n * *v1.0.0*\n *\n * Контрол многоцелевого назначения.\n *\n * Поддерживается \"ref\" и все нативные атрибуты \\<button\\> элемента.\n */\nconst Arrow: React.ForwardRefExoticComponent<ArrowProps> = withMergedProps<ArrowProps, HTMLButtonElement>(\n forwardRef<HTMLButtonElement, MergedProps<ArrowProps>>((props, ref) => {\n const { type = 'button', size = 'l', top = true, iconProps = {}, ...restProps } = props\n\n const iconBaseProps: IconProps = { as: 'span', color: 'inherit' }\n\n return (\n <Styled.Root {...restProps} type={type} size={size} top={top} ref={ref}>\n <Icon\n icon={\n !iconProps.name && !iconProps.icon ? restProps.preset === 'brand' ? <ArrowUp /> : <ChevronUp /> : undefined\n }\n {...iconBaseProps}\n {...iconProps}\n />\n </Styled.Root>\n )\n }),\n {\n displayName: COMPONENT_NAME,\n sizes: (props) => {\n if (props.preset === 'brand') {\n return props.square ? SIZES_SQUARE : SIZES\n }\n\n return SIZES_DEFAULT\n },\n }\n)\n\nexport { Arrow, COMPONENT_NAME }\n\nexport type { ArrowProps }\n"],"names":["COMPONENT_NAME","Arrow","withMergedProps","forwardRef","props","ref","type","size","top","iconProps","restProps","_jsx","Styled","children","Icon","icon","name","undefined","preset","ArrowUp","ChevronUp","as","color","displayName","sizes","square","SIZES_SQUARE","SIZES","SIZES_DEFAULT"],"mappings":"4XAYMA,MAAAA,eAAiB,QAUjBC,MAAAA,MAAqDC,gBACzDC,YAAuD,CAACC,EAAOC,KAC7D,MAAMC,KAAEA,EAAO,SAAQC,KAAEA,EAAO,IAAGC,IAAEA,GAAM,EAAIC,UAAEA,EAAY,CAAE,KAAKC,GAAcN,EAIlF,OACEO,IAACC,KAAW,IAAKF,EAAWJ,KAAMA,EAAMC,KAAMA,EAAMC,IAAKA,EAAKH,IAAKA,EAAIQ,SACrEF,IAACG,KAAI,CACHC,KACGN,EAAUO,MAASP,EAAUM,UAAoEE,EAA9BN,IAA/BD,EAAUQ,SAAW,QAAWC,QAAcC,oBAAL,IANnDC,GAAI,OAAQC,MAAO,aAS5Cb,KAEM,IAGlB,CACEc,YA7BmB,QA8BnBC,MAAQpB,GACFA,EAAMc,SAAW,QACZd,EAAMqB,OAASC,aAAeC,MAGhCC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';const SIZES_COMMON={xxxl:{width:60,height:60,fontSize:28},xxl:{width:56,height:56,fontSize:28},xl:{width:52,height:52,fontSize:28},l:{width:48,height:48,fontSize:24},m:{width:44,height:44,fontSize:24},s:{width:40,height:40,fontSize:24},xs:{width:36,height:36,fontSize:20},xxs:{width:32,height:32,fontSize:20},xxxs:{width:28,height:28,fontSize:20}};const SIZES_SQUARE={xxxl:{...SIZES_COMMON.xxxl,borderRadius:12},xxl:{...SIZES_COMMON.xxl,borderRadius:11},xl:{...SIZES_COMMON.xl,borderRadius:10},l:{...SIZES_COMMON.l,borderRadius:10},m:{...SIZES_COMMON.m,borderRadius:9},s:{...SIZES_COMMON.s,borderRadius:8},xs:{...SIZES_COMMON.xs,borderRadius:7},xxs:{...SIZES_COMMON.xxs,borderRadius:6},xxxs:{...SIZES_COMMON.xxxs,borderRadius:6}};exports.SIZES={xxxl:SIZES_COMMON.xxxl,xxl:SIZES_COMMON.xxl,xl:SIZES_COMMON.xl,l:SIZES_COMMON.l,m:SIZES_COMMON.m,s:SIZES_COMMON.s,xs:SIZES_COMMON.xs,xxs:SIZES_COMMON.xxs,xxxs:SIZES_COMMON.xxxs},exports.SIZES_DEFAULT={xxxl:{width:52,height:52,fontSize:18},xxl:{width:48,height:48,fontSize:18},xl:{width:44,height:44,fontSize:18},l:{width:40,height:40,fontSize:16},m:{width:28,height:28,fontSize:16},s:{width:24,height:24,fontSize:16},xs:{width:20,height:20,fontSize:16},xxs:{width:16,height:16,fontSize:12},xxxs:{width:14,height:14,fontSize:10}},exports.SIZES_SQUARE=SIZES_SQUARE;
|
|
2
|
+
//# sourceMappingURL=sizes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.js","sources":["../../../../src/components/Arrow/sizes.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from './types'\n\nexport const SIZES_DEFAULT: Record<Size, CSSProperties> = {\n xxxl: {\n width: 52,\n height: 52,\n fontSize: 18,\n },\n xxl: {\n width: 48,\n height: 48,\n fontSize: 18,\n },\n xl: {\n width: 44,\n height: 44,\n fontSize: 18,\n },\n l: {\n width: 40,\n height: 40,\n fontSize: 16,\n },\n m: {\n width: 28,\n height: 28,\n fontSize: 16,\n },\n s: {\n width: 24,\n height: 24,\n fontSize: 16,\n },\n xs: {\n width: 20,\n height: 20,\n fontSize: 16,\n },\n xxs: {\n width: 16,\n height: 16,\n fontSize: 12,\n },\n xxxs: {\n width: 14,\n height: 14,\n fontSize: 10,\n },\n}\n\nconst SIZES_COMMON: Record<Size, CSSProperties> = {\n xxxl: {\n width: 60,\n height: 60,\n fontSize: 28,\n },\n xxl: {\n width: 56,\n height: 56,\n fontSize: 28,\n },\n xl: {\n width: 52,\n height: 52,\n fontSize: 28,\n },\n l: {\n width: 48,\n height: 48,\n fontSize: 24,\n },\n m: {\n width: 44,\n height: 44,\n fontSize: 24,\n },\n s: {\n width: 40,\n height: 40,\n fontSize: 24,\n },\n xs: {\n width: 36,\n height: 36,\n fontSize: 20,\n },\n xxs: {\n width: 32,\n height: 32,\n fontSize: 20,\n },\n xxxs: {\n width: 28,\n height: 28,\n fontSize: 20,\n },\n}\n\nexport const SIZES: Record<Size, CSSProperties> = {\n xxxl: SIZES_COMMON.xxxl,\n xxl: SIZES_COMMON.xxl,\n xl: SIZES_COMMON.xl,\n l: SIZES_COMMON.l,\n m: SIZES_COMMON.m,\n s: SIZES_COMMON.s,\n xs: SIZES_COMMON.xs,\n xxs: SIZES_COMMON.xxs,\n xxxs: SIZES_COMMON.xxxs,\n}\n\nexport const SIZES_SQUARE: Record<Size, CSSProperties> = {\n xxxl: {\n ...SIZES_COMMON.xxxl,\n borderRadius: 12,\n },\n xxl: {\n ...SIZES_COMMON.xxl,\n borderRadius: 11,\n },\n xl: {\n ...SIZES_COMMON.xl,\n borderRadius: 10,\n },\n l: {\n ...SIZES_COMMON.l,\n borderRadius: 10,\n },\n m: {\n ...SIZES_COMMON.m,\n borderRadius: 9,\n },\n s: {\n ...SIZES_COMMON.s,\n borderRadius: 8,\n },\n xs: {\n ...SIZES_COMMON.xs,\n borderRadius: 7,\n },\n xxs: {\n ...SIZES_COMMON.xxs,\n borderRadius: 6,\n },\n xxxs: {\n ...SIZES_COMMON.xxxs,\n borderRadius: 6,\n },\n}\n"],"names":["SIZES_COMMON","xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs","SIZES_SQUARE","borderRadius"],"mappings":"aAmDA,MAAMA,aAA4C,CAChDC,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU,KAgBP,MAAMS,aAA4C,CACvDZ,KAAM,IACDD,aAAaC,KAChBa,aAAc,IAEhBT,IAAK,IACAL,aAAaK,IAChBS,aAAc,IAEhBR,GAAI,IACCN,aAAaM,GAChBQ,aAAc,IAEhBP,EAAG,IACEP,aAAaO,EAChBO,aAAc,IAEhBN,EAAG,IACER,aAAaQ,EAChBM,aAAc,GAEhBL,EAAG,IACET,aAAaS,EAChBK,aAAc,GAEhBJ,GAAI,IACCV,aAAaU,GAChBI,aAAc,GAEhBH,IAAK,IACAX,aAAaW,IAChBG,aAAc,GAEhBF,KAAM,IACDZ,aAAaY,KAChBE,aAAc,kBA/CgC,CAChDb,KAAMD,aAAaC,KACnBI,IAAKL,aAAaK,IAClBC,GAAIN,aAAaM,GACjBC,EAAGP,aAAaO,EAChBC,EAAGR,aAAaQ,EAChBC,EAAGT,aAAaS,EAChBC,GAAIV,aAAaU,GACjBC,IAAKX,aAAaW,IAClBC,KAAMZ,aAAaY,4BAzGqC,CACxDX,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const SIZES_DEFAULT={xxxl:{width:52,height:52,fontSize:18},xxl:{width:48,height:48,fontSize:18},xl:{width:44,height:44,fontSize:18},l:{width:40,height:40,fontSize:16},m:{width:28,height:28,fontSize:16},s:{width:24,height:24,fontSize:16},xs:{width:20,height:20,fontSize:16},xxs:{width:16,height:16,fontSize:12},xxxs:{width:14,height:14,fontSize:10}};const SIZES_COMMON={xxxl:{width:60,height:60,fontSize:28},xxl:{width:56,height:56,fontSize:28},xl:{width:52,height:52,fontSize:28},l:{width:48,height:48,fontSize:24},m:{width:44,height:44,fontSize:24},s:{width:40,height:40,fontSize:24},xs:{width:36,height:36,fontSize:20},xxs:{width:32,height:32,fontSize:20},xxxs:{width:28,height:28,fontSize:20}};const SIZES={xxxl:SIZES_COMMON.xxxl,xxl:SIZES_COMMON.xxl,xl:SIZES_COMMON.xl,l:SIZES_COMMON.l,m:SIZES_COMMON.m,s:SIZES_COMMON.s,xs:SIZES_COMMON.xs,xxs:SIZES_COMMON.xxs,xxxs:SIZES_COMMON.xxxs};const SIZES_SQUARE={xxxl:{...SIZES_COMMON.xxxl,borderRadius:12},xxl:{...SIZES_COMMON.xxl,borderRadius:11},xl:{...SIZES_COMMON.xl,borderRadius:10},l:{...SIZES_COMMON.l,borderRadius:10},m:{...SIZES_COMMON.m,borderRadius:9},s:{...SIZES_COMMON.s,borderRadius:8},xs:{...SIZES_COMMON.xs,borderRadius:7},xxs:{...SIZES_COMMON.xxs,borderRadius:6},xxxs:{...SIZES_COMMON.xxxs,borderRadius:6}};export{SIZES,SIZES_DEFAULT,SIZES_SQUARE};
|
|
2
|
+
//# sourceMappingURL=sizes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.mjs","sources":["../../../../src/components/Arrow/sizes.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from './types'\n\nexport const SIZES_DEFAULT: Record<Size, CSSProperties> = {\n xxxl: {\n width: 52,\n height: 52,\n fontSize: 18,\n },\n xxl: {\n width: 48,\n height: 48,\n fontSize: 18,\n },\n xl: {\n width: 44,\n height: 44,\n fontSize: 18,\n },\n l: {\n width: 40,\n height: 40,\n fontSize: 16,\n },\n m: {\n width: 28,\n height: 28,\n fontSize: 16,\n },\n s: {\n width: 24,\n height: 24,\n fontSize: 16,\n },\n xs: {\n width: 20,\n height: 20,\n fontSize: 16,\n },\n xxs: {\n width: 16,\n height: 16,\n fontSize: 12,\n },\n xxxs: {\n width: 14,\n height: 14,\n fontSize: 10,\n },\n}\n\nconst SIZES_COMMON: Record<Size, CSSProperties> = {\n xxxl: {\n width: 60,\n height: 60,\n fontSize: 28,\n },\n xxl: {\n width: 56,\n height: 56,\n fontSize: 28,\n },\n xl: {\n width: 52,\n height: 52,\n fontSize: 28,\n },\n l: {\n width: 48,\n height: 48,\n fontSize: 24,\n },\n m: {\n width: 44,\n height: 44,\n fontSize: 24,\n },\n s: {\n width: 40,\n height: 40,\n fontSize: 24,\n },\n xs: {\n width: 36,\n height: 36,\n fontSize: 20,\n },\n xxs: {\n width: 32,\n height: 32,\n fontSize: 20,\n },\n xxxs: {\n width: 28,\n height: 28,\n fontSize: 20,\n },\n}\n\nexport const SIZES: Record<Size, CSSProperties> = {\n xxxl: SIZES_COMMON.xxxl,\n xxl: SIZES_COMMON.xxl,\n xl: SIZES_COMMON.xl,\n l: SIZES_COMMON.l,\n m: SIZES_COMMON.m,\n s: SIZES_COMMON.s,\n xs: SIZES_COMMON.xs,\n xxs: SIZES_COMMON.xxs,\n xxxs: SIZES_COMMON.xxxs,\n}\n\nexport const SIZES_SQUARE: Record<Size, CSSProperties> = {\n xxxl: {\n ...SIZES_COMMON.xxxl,\n borderRadius: 12,\n },\n xxl: {\n ...SIZES_COMMON.xxl,\n borderRadius: 11,\n },\n xl: {\n ...SIZES_COMMON.xl,\n borderRadius: 10,\n },\n l: {\n ...SIZES_COMMON.l,\n borderRadius: 10,\n },\n m: {\n ...SIZES_COMMON.m,\n borderRadius: 9,\n },\n s: {\n ...SIZES_COMMON.s,\n borderRadius: 8,\n },\n xs: {\n ...SIZES_COMMON.xs,\n borderRadius: 7,\n },\n xxs: {\n ...SIZES_COMMON.xxs,\n borderRadius: 6,\n },\n xxxs: {\n ...SIZES_COMMON.xxxs,\n borderRadius: 6,\n },\n}\n"],"names":["SIZES_DEFAULT","xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs","SIZES_COMMON","SIZES","SIZES_SQUARE","borderRadius"],"mappings":"AAGO,MAAMA,cAA6C,CACxDC,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU,KAId,MAAMS,aAA4C,CAChDZ,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU,KAIP,MAAMU,MAAqC,CAChDb,KAAMY,aAAaZ,KACnBI,IAAKQ,aAAaR,IAClBC,GAAIO,aAAaP,GACjBC,EAAGM,aAAaN,EAChBC,EAAGK,aAAaL,EAChBC,EAAGI,aAAaJ,EAChBC,GAAIG,aAAaH,GACjBC,IAAKE,aAAaF,IAClBC,KAAMC,aAAaD,MAGd,MAAMG,aAA4C,CACvDd,KAAM,IACDY,aAAaZ,KAChBe,aAAc,IAEhBX,IAAK,IACAQ,aAAaR,IAChBW,aAAc,IAEhBV,GAAI,IACCO,aAAaP,GAChBU,aAAc,IAEhBT,EAAG,IACEM,aAAaN,EAChBS,aAAc,IAEhBR,EAAG,IACEK,aAAaL,EAChBQ,aAAc,GAEhBP,EAAG,IACEI,aAAaJ,EAChBO,aAAc,GAEhBN,GAAI,IACCG,aAAaH,GAChBM,aAAc,GAEhBL,IAAK,IACAE,aAAaF,IAChBK,aAAc,GAEhBJ,KAAM,IACDC,aAAaD,KAChBI,aAAc"}
|
package/dts/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxford/ui",
|
|
3
|
-
"version": "2.96.
|
|
3
|
+
"version": "2.96.1",
|
|
4
4
|
"description": "UI components and utilities",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/foxford/ui/issues"
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"shared",
|
|
64
64
|
"theme"
|
|
65
65
|
],
|
|
66
|
-
"sha": "
|
|
66
|
+
"sha": "0ef6dcd",
|
|
67
67
|
"scripts": {}
|
|
68
68
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';exports.SIZES={xxxl:{width:60,height:60,fontSize:28},xxl:{width:56,height:56,fontSize:28},xl:{width:52,height:52,fontSize:28},l:{width:48,height:48,fontSize:24},m:{width:44,height:44,fontSize:24},s:{width:40,height:40,fontSize:24},xs:{width:36,height:36,fontSize:20},xxs:{width:32,height:32,fontSize:20},xxxs:{width:28,height:28,fontSize:20}};
|
|
2
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../src/components/Arrow/constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from 'shared/types'\n\nexport const SIZES: Record<Size, CSSProperties> = {\n xxxl: {\n width: 60,\n height: 60,\n fontSize: 28,\n },\n xxl: {\n width: 56,\n height: 56,\n fontSize: 28,\n },\n xl: {\n width: 52,\n height: 52,\n fontSize: 28,\n },\n l: {\n width: 48,\n height: 48,\n fontSize: 24,\n },\n m: {\n width: 44,\n height: 44,\n fontSize: 24,\n },\n s: {\n width: 40,\n height: 40,\n fontSize: 24,\n },\n xs: {\n width: 36,\n height: 36,\n fontSize: 20,\n },\n xxs: {\n width: 32,\n height: 32,\n fontSize: 20,\n },\n xxxs: {\n width: 28,\n height: 28,\n fontSize: 20,\n },\n}\n"],"names":["xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs"],"mappings":"2BAGkD,CAChDA,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const SIZES={xxxl:{width:60,height:60,fontSize:28},xxl:{width:56,height:56,fontSize:28},xl:{width:52,height:52,fontSize:28},l:{width:48,height:48,fontSize:24},m:{width:44,height:44,fontSize:24},s:{width:40,height:40,fontSize:24},xs:{width:36,height:36,fontSize:20},xxs:{width:32,height:32,fontSize:20},xxxs:{width:28,height:28,fontSize:20}};export{SIZES};
|
|
2
|
-
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../src/components/Arrow/constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from 'shared/types'\n\nexport const SIZES: Record<Size, CSSProperties> = {\n xxxl: {\n width: 60,\n height: 60,\n fontSize: 28,\n },\n xxl: {\n width: 56,\n height: 56,\n fontSize: 28,\n },\n xl: {\n width: 52,\n height: 52,\n fontSize: 28,\n },\n l: {\n width: 48,\n height: 48,\n fontSize: 24,\n },\n m: {\n width: 44,\n height: 44,\n fontSize: 24,\n },\n s: {\n width: 40,\n height: 40,\n fontSize: 24,\n },\n xs: {\n width: 36,\n height: 36,\n fontSize: 20,\n },\n xxs: {\n width: 32,\n height: 32,\n fontSize: 20,\n },\n xxxs: {\n width: 28,\n height: 28,\n fontSize: 20,\n },\n}\n"],"names":["SIZES","xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs"],"mappings":"AAGO,MAAMA,MAAqC,CAChDC,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';exports.SIZES_DEFAULT={xxxl:{width:52,height:52,fontSize:18},xxl:{width:48,height:48,fontSize:18},xl:{width:44,height:44,fontSize:18},l:{width:40,height:40,fontSize:16},m:{width:28,height:28,fontSize:16},s:{width:24,height:24,fontSize:16},xs:{width:20,height:20,fontSize:16},xxs:{width:16,height:16,fontSize:12},xxxs:{width:14,height:14,fontSize:10}};
|
|
2
|
-
//# sourceMappingURL=default-constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-constants.js","sources":["../../../../src/components/Arrow/default-constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from 'shared/types'\n\nexport const SIZES_DEFAULT: Record<Size, CSSProperties> = {\n xxxl: {\n width: 52,\n height: 52,\n fontSize: 18,\n },\n xxl: {\n width: 48,\n height: 48,\n fontSize: 18,\n },\n xl: {\n width: 44,\n height: 44,\n fontSize: 18,\n },\n l: {\n width: 40,\n height: 40,\n fontSize: 16,\n },\n m: {\n width: 28,\n height: 28,\n fontSize: 16,\n },\n s: {\n width: 24,\n height: 24,\n fontSize: 16,\n },\n xs: {\n width: 20,\n height: 20,\n fontSize: 16,\n },\n xxs: {\n width: 16,\n height: 16,\n fontSize: 12,\n },\n xxxs: {\n width: 14,\n height: 14,\n fontSize: 10,\n },\n}\n"],"names":["xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs"],"mappings":"mCAG0D,CACxDA,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const SIZES_DEFAULT={xxxl:{width:52,height:52,fontSize:18},xxl:{width:48,height:48,fontSize:18},xl:{width:44,height:44,fontSize:18},l:{width:40,height:40,fontSize:16},m:{width:28,height:28,fontSize:16},s:{width:24,height:24,fontSize:16},xs:{width:20,height:20,fontSize:16},xxs:{width:16,height:16,fontSize:12},xxxs:{width:14,height:14,fontSize:10}};export{SIZES_DEFAULT};
|
|
2
|
-
//# sourceMappingURL=default-constants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-constants.mjs","sources":["../../../../src/components/Arrow/default-constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { Size } from 'shared/types'\n\nexport const SIZES_DEFAULT: Record<Size, CSSProperties> = {\n xxxl: {\n width: 52,\n height: 52,\n fontSize: 18,\n },\n xxl: {\n width: 48,\n height: 48,\n fontSize: 18,\n },\n xl: {\n width: 44,\n height: 44,\n fontSize: 18,\n },\n l: {\n width: 40,\n height: 40,\n fontSize: 16,\n },\n m: {\n width: 28,\n height: 28,\n fontSize: 16,\n },\n s: {\n width: 24,\n height: 24,\n fontSize: 16,\n },\n xs: {\n width: 20,\n height: 20,\n fontSize: 16,\n },\n xxs: {\n width: 16,\n height: 16,\n fontSize: 12,\n },\n xxxs: {\n width: 14,\n height: 14,\n fontSize: 10,\n },\n}\n"],"names":["SIZES_DEFAULT","xxxl","width","height","fontSize","xxl","xl","l","m","s","xs","xxs","xxxs"],"mappings":"AAGO,MAAMA,cAA6C,CACxDC,KAAM,CACJC,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZC,IAAK,CACHH,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZE,GAAI,CACFJ,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZG,EAAG,CACDL,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZI,EAAG,CACDN,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZK,EAAG,CACDP,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZM,GAAI,CACFR,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZO,IAAK,CACHT,MAAO,GACPC,OAAQ,GACRC,SAAU,IAEZQ,KAAM,CACJV,MAAO,GACPC,OAAQ,GACRC,SAAU"}
|