@consta/uikit 4.0.0 → 4.0.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/BreadcrumbsDeprecated/index.d.ts +1 -0
- package/BreadcrumbsDeprecated/index.js +1 -0
- package/CheckboxGroupDeprecated/index.d.ts +1 -0
- package/CheckboxGroupDeprecated/index.js +1 -0
- package/ChoiceGroupDeprecated/index.d.ts +1 -0
- package/ChoiceGroupDeprecated/index.js +1 -0
- package/ContextMenuDeprecated/index.d.ts +1 -0
- package/ContextMenuDeprecated/index.js +1 -0
- package/RadioGroup/index.d.ts +1 -0
- package/RadioGroup/index.js +1 -0
- package/RadioGroupDeprecated/index.d.ts +1 -0
- package/RadioGroupDeprecated/index.js +1 -0
- package/StepsDeprecated/index.d.ts +1 -0
- package/StepsDeprecated/index.js +1 -0
- package/SwitchGroupDeprecated/index.d.ts +1 -0
- package/SwitchGroupDeprecated/index.js +1 -0
- package/TabsDeprecated/index.d.ts +1 -0
- package/TabsDeprecated/index.js +1 -0
- package/__internal__/src/components/BreadcrumbsDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/BreadcrumbsDeprecated/index.js +2 -0
- package/__internal__/src/components/BreadcrumbsDeprecated/index.js.map +1 -0
- package/__internal__/src/components/CheckboxGroupDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/CheckboxGroupDeprecated/index.js +2 -0
- package/__internal__/src/components/CheckboxGroupDeprecated/index.js.map +1 -0
- package/__internal__/src/components/ChoiceGroupDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/ChoiceGroupDeprecated/index.js +2 -0
- package/__internal__/src/components/ChoiceGroupDeprecated/index.js.map +1 -0
- package/__internal__/src/components/ContextMenuDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/ContextMenuDeprecated/index.js +2 -0
- package/__internal__/src/components/ContextMenuDeprecated/index.js.map +1 -0
- package/__internal__/src/components/RadioGroup/index.d.ts +1 -0
- package/__internal__/src/components/RadioGroup/index.js +2 -0
- package/__internal__/src/components/RadioGroup/index.js.map +1 -0
- package/__internal__/src/components/RadioGroupDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/RadioGroupDeprecated/index.js +2 -0
- package/__internal__/src/components/RadioGroupDeprecated/index.js.map +1 -0
- package/__internal__/src/components/StepsDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/StepsDeprecated/index.js +2 -0
- package/__internal__/src/components/StepsDeprecated/index.js.map +1 -0
- package/__internal__/src/components/SwitchGroupDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/SwitchGroupDeprecated/index.js +2 -0
- package/__internal__/src/components/SwitchGroupDeprecated/index.js.map +1 -0
- package/__internal__/src/components/TabsDeprecated/Tab/TabsTab.css +1 -1
- package/__internal__/src/components/TabsDeprecated/Tab/TabsTab.js +1 -1
- package/__internal__/src/components/TabsDeprecated/Tab/TabsTab.js.map +1 -1
- package/__internal__/src/components/TabsDeprecated/index.d.ts +1 -0
- package/__internal__/src/components/TabsDeprecated/index.js +2 -0
- package/__internal__/src/components/TabsDeprecated/index.js.map +1 -0
- package/__internal__/src/stand/standConfig.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/BreadcrumbsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/BreadcrumbsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/CheckboxGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/CheckboxGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ChoiceGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ChoiceGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ContextMenuDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ContextMenuDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/RadioGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/RadioGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/RadioGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/RadioGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/StepsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/StepsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SwitchGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SwitchGroupDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TabsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TabsDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BreadcrumbsDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/BreadcrumbsDeprecated/index.ts"],"sourcesContent":["export * from './BreadcrumbsDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CheckboxGroupDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/CheckboxGroupDeprecated/index.ts"],"sourcesContent":["export * from './CheckboxGroupDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChoiceGroupDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/ChoiceGroupDeprecated/index.ts"],"sourcesContent":["export * from './ChoiceGroupDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContextMenuDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/ContextMenuDeprecated/index.ts"],"sourcesContent":["export * from './ContextMenuDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RadioGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/RadioGroup/index.ts"],"sourcesContent":["export * from './RadioGroup';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RadioGroupDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/RadioGroupDeprecated/index.ts"],"sourcesContent":["export * from './RadioGroupDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StepsDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/StepsDeprecated/index.ts"],"sourcesContent":["export * from './StepsDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SwitchGroupDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/SwitchGroupDeprecated/index.ts"],"sourcesContent":["export * from './SwitchGroupDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.TabsTab{--tab-indent:var(--space-m);align-items:center;background-color:transparent;border:none;color:var(--color-typo-secondary);cursor:pointer;display:inline-flex;font-family:var(--font);font-size:var(--tab-font-size);line-height:var(--size-text-2xl);padding:var(--tab-padding) 0;position:relative;text-align:left;transition:color .2s}.TabsTab_size_xs{--only-icon-size:var(--space-m);--tab-padding:calc(var(--space-xs)/2 - var(--space-3xs)/2);--tab-font-size:var(--size-text-xs)}.TabsTab_size_s{--only-icon-size:var(--space-l);--tab-padding:calc(var(--space-xs) - var(--space-3xs));--tab-font-size:var(--size-text-s)}.TabsTab_size_m{--only-icon-size:var(--space-xl);--tab-padding:calc(var(--space-m)/2 - var(--space-3xs)/2);--tab-font-size:var(--size-text-m)}.TabsTab:hover,.TabsTab_checked{color:var(--color-typo-primary)}.TabsTab:before{border-radius:var(--control-radius);bottom:0;content:"";display:block;left:calc(var(--space-2xs)*-1);position:absolute;right:calc(var(--space-2xs)*-1);top:0}.TabsTab:focus{outline:none}.TabsTab-Icon{flex-shrink:0}.TabsTab:not(.TabsTab_onlyIcon) .TabsTab-Icon{margin-right:calc(var(--tab-indent)*.5)}.TabsTab_onlyIcon{justify-content:center;width:var(--only-icon-size)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./TabsTab.css";import React,{forwardRef}from"react";import{cnMixFocus}from"../../../mixs/MixFocus/MixFocus";import{cn}from"../../../utils/bem";import{getByMap}from"../../../utils/getByMap";export var cnTabsTab=cn("
|
|
1
|
+
import"./TabsTab.css";import React,{forwardRef}from"react";import{cnMixFocus}from"../../../mixs/MixFocus/MixFocus";import{cn}from"../../../utils/bem";import{getByMap}from"../../../utils/getByMap";export var cnTabsTab=cn("TabsTab");var sizeMap={s:"xs",m:"s",xs:"xs"};export var TabsTab=forwardRef(function(a,b){var c=a.label,d=a.onChange,e=a.checked,f=a.size,g=a.onlyIcon,h=a.icon,i=a.iconSize,j=a.className,k=getByMap(sizeMap,f,i);return React.createElement("button",{className:cnTabsTab({size:f,checked:e,onlyIcon:g},[cnMixFocus({before:!0}),j]),onClick:e?void 0:d,ref:b,role:"tab",type:"button",title:g?c:void 0},h&&React.createElement(h,{className:cnTabsTab("Icon"),size:k}),!g&&c)});
|
|
2
2
|
//# sourceMappingURL=TabsTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsTab.js","names":["React","forwardRef","cnMixFocus","cn","getByMap","cnTabsTab","sizeMap","s","m","xs","TabsTab","props","ref","label","onChange","checked","size","onlyIcon","Icon","icon","iconSizeProp","iconSize","className","before"],"sources":["../../../../../../src/components/TabsDeprecated/Tab/TabsTab.tsx"],"sourcesContent":["import './TabsTab.css';\n\nimport React, { forwardRef } from 'react';\n\nimport { IconComponent, IconPropSize } from '../../../icons/Icon/Icon';\nimport { cnMixFocus } from '../../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../../utils/bem';\nimport { getByMap } from '../../../utils/getByMap';\nimport { TabsPropSize } from '../TabsDeprecated';\n\nexport const cnTabsTab = cn('
|
|
1
|
+
{"version":3,"file":"TabsTab.js","names":["React","forwardRef","cnMixFocus","cn","getByMap","cnTabsTab","sizeMap","s","m","xs","TabsTab","props","ref","label","onChange","checked","size","onlyIcon","Icon","icon","iconSizeProp","iconSize","className","before"],"sources":["../../../../../../src/components/TabsDeprecated/Tab/TabsTab.tsx"],"sourcesContent":["import './TabsTab.css';\n\nimport React, { forwardRef } from 'react';\n\nimport { IconComponent, IconPropSize } from '../../../icons/Icon/Icon';\nimport { cnMixFocus } from '../../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../../utils/bem';\nimport { getByMap } from '../../../utils/getByMap';\nimport { TabsPropSize } from '../TabsDeprecated';\n\nexport const cnTabsTab = cn('TabsTab');\n\ntype Props = {\n size: TabsPropSize;\n onlyIcon?: boolean;\n icon?: IconComponent;\n iconSize?: IconPropSize;\n label: string;\n checked: boolean;\n onChange: React.MouseEventHandler<HTMLButtonElement>;\n className?: string;\n};\n\nconst sizeMap: Record<TabsPropSize, IconPropSize> = {\n s: 'xs',\n m: 's',\n xs: 'xs',\n};\n\nexport const TabsTab = forwardRef<HTMLButtonElement, Props>((props, ref) => {\n const {\n label,\n onChange,\n checked,\n size,\n onlyIcon,\n icon: Icon,\n iconSize: iconSizeProp,\n className,\n } = props;\n const iconSize = getByMap(sizeMap, size, iconSizeProp);\n\n return (\n <button\n className={cnTabsTab({ size, checked, onlyIcon }, [\n cnMixFocus({ before: true }),\n className,\n ])}\n onClick={checked ? undefined : onChange}\n ref={ref}\n role=\"tab\"\n type=\"button\"\n title={onlyIcon ? label : undefined}\n >\n {Icon && <Icon className={cnTabsTab('Icon')} size={iconSize} />}\n {!onlyIcon && label}\n </button>\n );\n});\n"],"mappings":"AAAA,sBAEA,MAAOA,MAAP,EAAgBC,UAAhB,KAAkC,OAAlC,CAGA,OAASC,UAAT,uCACA,OAASC,EAAT,0BACA,OAASC,QAAT,+BAGA,MAAO,IAAMC,UAAS,CAAGF,EAAE,CAAC,SAAD,CAApB,CAaP,GAAMG,QAA2C,CAAG,CAClDC,CAAC,CAAE,IAD+C,CAElDC,CAAC,CAAE,GAF+C,CAGlDC,EAAE,CAAE,IAH8C,CAApD,CAMA,MAAO,IAAMC,QAAO,CAAGT,UAAU,CAA2B,SAACU,CAAD,CAAQC,CAAR,CAAgB,IAExEC,EAFwE,CAUtEF,CAVsE,CAExEE,KAFwE,CAGxEC,CAHwE,CAUtEH,CAVsE,CAGxEG,QAHwE,CAIxEC,CAJwE,CAUtEJ,CAVsE,CAIxEI,OAJwE,CAKxEC,CALwE,CAUtEL,CAVsE,CAKxEK,IALwE,CAMxEC,CANwE,CAUtEN,CAVsE,CAMxEM,QANwE,CAOlEC,CAPkE,CAUtEP,CAVsE,CAOxEQ,IAPwE,CAQ9DC,CAR8D,CAUtET,CAVsE,CAQxEU,QARwE,CASxEC,CATwE,CAUtEX,CAVsE,CASxEW,SATwE,CAWpED,CAAQ,CAAGjB,QAAQ,CAACE,OAAD,CAAUU,CAAV,CAAgBI,CAAhB,CAXiD,CAa1E,MACE,+BACE,SAAS,CAAEf,SAAS,CAAC,CAAEW,IAAI,CAAJA,CAAF,CAAQD,OAAO,CAAPA,CAAR,CAAiBE,QAAQ,CAARA,CAAjB,CAAD,CAA8B,CAChDf,UAAU,CAAC,CAAEqB,MAAM,GAAR,CAAD,CADsC,CAEhDD,CAFgD,CAA9B,CADtB,CAKE,OAAO,CAAEP,CAAO,QAAeD,CALjC,CAME,GAAG,CAAEF,CANP,CAOE,IAAI,CAAC,KAPP,CAQE,IAAI,CAAC,QARP,CASE,KAAK,CAAEK,CAAQ,CAAGJ,CAAH,OATjB,EAWGK,CAAI,EAAI,oBAAC,CAAD,EAAM,SAAS,CAAEb,SAAS,CAAC,MAAD,CAA1B,CAAoC,IAAI,CAAEgB,CAA1C,EAXX,CAYG,CAACJ,CAAD,EAAaJ,CAZhB,CAeH,CA7BgC,CAA1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TabsDeprecated';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/TabsDeprecated/index.ts"],"sourcesContent":["export * from './TabsDeprecated';\n"],"mappings":"AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createStand: (standProps: import("@consta/stand").Stand<
|
|
1
|
+
export declare const createStand: (standProps: import("@consta/stand").Stand<string>) => import("@consta/stand").CreatedStand;
|