@salutejs/plasma-new-hope 0.85.0-canary.1213.9222480539.0 → 0.85.0-canary.1213.9224571157.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.85.0-canary.1213.
|
3
|
+
"version": "0.85.0-canary.1213.9224571157.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -103,5 +103,5 @@
|
|
103
103
|
"react-popper": "2.3.0",
|
104
104
|
"storeon": "3.1.5"
|
105
105
|
},
|
106
|
-
"gitHead": "
|
106
|
+
"gitHead": "042dd352ad1390bf2bcb017c3b5a3bd22c699595"
|
107
107
|
}
|
@@ -12,6 +12,11 @@ import { PropsTable, Description } from '@site/src/components';
|
|
12
12
|
<Description name="Button" />
|
13
13
|
<PropsTable name="Button" />
|
14
14
|
|
15
|
+
:::caution Взаимоисключающие свойства
|
16
|
+
Свойство `value` - это значение кнопки. Оно отображается справа от основного текста.<br/>
|
17
|
+
`value` и `contentRight` взаимоисключающие: если передано одно, второе передать нельзя.
|
18
|
+
:::
|
19
|
+
|
15
20
|
## Использование
|
16
21
|
Компонент `Button` может содержать текст, который указывается в
|
17
22
|
свойстве `text`, или любой контент напрямую через `children`.
|
@@ -12,6 +12,11 @@ import { PropsTable, Description } from '@site/src/components';
|
|
12
12
|
<Description name="Button" />
|
13
13
|
<PropsTable name="Button" />
|
14
14
|
|
15
|
+
:::caution Взаимоисключающие свойства
|
16
|
+
Свойство `value` - это значение кнопки. Оно отображается справа от основного текста.<br/>
|
17
|
+
`value` и `contentRight` взаимоисключающие: если передано одно, второе передать нельзя.
|
18
|
+
:::
|
19
|
+
|
15
20
|
## Использование
|
16
21
|
Компонент `Button` может содержать текст, который указывается в
|
17
22
|
свойстве `text`, или любой контент напрямую через `children`.
|
@@ -9,10 +9,22 @@ export declare type ContentPlacementMapper = {
|
|
9
9
|
[K in ContentPlacing]: ContentPlacingValue;
|
10
10
|
};
|
11
11
|
declare type RightContent = {
|
12
|
+
/**
|
13
|
+
* Значение кнопки
|
14
|
+
*/
|
12
15
|
value?: string | number;
|
16
|
+
/**
|
17
|
+
* Слот для контента справа, например `Icon`
|
18
|
+
*/
|
13
19
|
contentRight?: never;
|
14
20
|
} | {
|
21
|
+
/**
|
22
|
+
* Значение кнопки
|
23
|
+
*/
|
15
24
|
value?: never;
|
25
|
+
/**
|
26
|
+
* Слот для контента справа, например `Icon`
|
27
|
+
*/
|
16
28
|
contentRight?: ReactNode;
|
17
29
|
};
|
18
30
|
declare type CustomButtonProps = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,aAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC9C,aAAK,cAAc,GAAG,SAAS,GAAG,SAAS,CAAC;AAC5C,aAAK,mBAAmB,GAAG,QAAQ,GAAG,eAAe,CAAC;AAEtD,oBAAY,sBAAsB,GAAG;KAChC,CAAC,IAAI,cAAc,GAAG,mBAAmB;CAC7C,CAAC;AAEF,aAAK,YAAY,GACX;IACI,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACI,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAER,aAAK,iBAAiB,GAAG;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,oBAAY,WAAW,CAAC,CAAC,GAAG,WAAW,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,GAClF,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GACrC,OAAO,GACP,iBAAiB,GACjB,YAAY,CAAC"}
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,O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