@salutejs/plasma-new-hope 0.88.0-canary.1223.9380263327.0 → 0.88.0-canary.1223.9382521438.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/styled-components/cjs/components/Accordion/variations/_size/tokens.json +4 -4
- package/styled-components/cjs/components/Accordion/variations/_stretching/tokens.json +1 -1
- package/styled-components/cjs/components/Accordion/variations/_view/tokens.json +6 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/es/components/Accordion/variations/_size/tokens.json +4 -4
- package/styled-components/es/components/Accordion/variations/_stretching/tokens.json +1 -1
- package/styled-components/es/components/Accordion/variations/_view/tokens.json +6 -6
- package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +6 -0
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.88.0-canary.1223.
|
3
|
+
"version": "0.88.0-canary.1223.9382521438.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": "e3e8c9d4dad58a1bc79c559751ee8f6bd82e905a"
|
107
107
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[
|
2
|
-
"--plasma-
|
3
|
-
"--plasma-
|
4
|
-
"--plasma-
|
5
|
-
|
2
|
+
"--plasma-accordion-item-padding-vertical",
|
3
|
+
"--plasma-accordion-item-padding-horizontal",
|
4
|
+
"--plasma-accordion-item-gap",
|
5
|
+
"--plasma-accordion-item-border-radius"
|
6
6
|
]
|
@@ -1 +1 @@
|
|
1
|
-
[
|
1
|
+
[]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
[
|
2
|
-
"--plasma-
|
3
|
-
"--plasma-
|
4
|
-
"--plasma-
|
5
|
-
"--plasma-
|
6
|
-
"--plasma-
|
7
|
-
"--plasma-
|
2
|
+
"--plasma-accordion-width",
|
3
|
+
"--plasma-accordion-gap",
|
4
|
+
"--plasma-accordion-item-padding",
|
5
|
+
"--plasma-accordion-background",
|
6
|
+
"--plasma-accordion-item-background",
|
7
|
+
"--plasma-accordion-item-border-bottom"
|
8
8
|
]
|
package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx
CHANGED
@@ -27,6 +27,7 @@ const meta: Meta<typeof Accordion> = {
|
|
27
27
|
},
|
28
28
|
argTypes: {
|
29
29
|
...argTypesFromConfig(mergeConfig(accordionConfig, config)),
|
30
|
+
...disableProps(['text']),
|
30
31
|
pin: {
|
31
32
|
options: [
|
32
33
|
'square-square',
|
@@ -61,7 +62,6 @@ const meta: Meta<typeof Accordion> = {
|
|
61
62
|
export default meta;
|
62
63
|
|
63
64
|
export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
|
64
|
-
argTypes: { ...disableProps(['text']) },
|
65
65
|
render: (props: ComponentProps<typeof Accordion>) => {
|
66
66
|
const args = { ...props, text: undefined };
|
67
67
|
|
package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx
CHANGED
@@ -27,6 +27,7 @@ const meta: Meta<typeof Accordion> = {
|
|
27
27
|
},
|
28
28
|
argTypes: {
|
29
29
|
...argTypesFromConfig(mergeConfig(accordionConfig, config)),
|
30
|
+
...disableProps(['text']),
|
30
31
|
pin: {
|
31
32
|
options: [
|
32
33
|
'square-square',
|
@@ -61,7 +62,6 @@ const meta: Meta<typeof Accordion> = {
|
|
61
62
|
export default meta;
|
62
63
|
|
63
64
|
export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
|
64
|
-
argTypes: { ...disableProps(['text']) },
|
65
65
|
render: (props: ComponentProps<typeof Accordion>) => {
|
66
66
|
const args = { ...props, text: undefined };
|
67
67
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[
|
2
|
-
"--plasma-
|
3
|
-
"--plasma-
|
4
|
-
"--plasma-
|
5
|
-
|
2
|
+
"--plasma-accordion-item-padding-vertical",
|
3
|
+
"--plasma-accordion-item-padding-horizontal",
|
4
|
+
"--plasma-accordion-item-gap",
|
5
|
+
"--plasma-accordion-item-border-radius"
|
6
6
|
]
|
@@ -1 +1 @@
|
|
1
|
-
[
|
1
|
+
[]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
[
|
2
|
-
"--plasma-
|
3
|
-
"--plasma-
|
4
|
-
"--plasma-
|
5
|
-
"--plasma-
|
6
|
-
"--plasma-
|
7
|
-
"--plasma-
|
2
|
+
"--plasma-accordion-width",
|
3
|
+
"--plasma-accordion-gap",
|
4
|
+
"--plasma-accordion-item-padding",
|
5
|
+
"--plasma-accordion-background",
|
6
|
+
"--plasma-accordion-item-background",
|
7
|
+
"--plasma-accordion-item-border-bottom"
|
8
8
|
]
|
@@ -27,6 +27,7 @@ const meta: Meta<typeof Accordion> = {
|
|
27
27
|
},
|
28
28
|
argTypes: {
|
29
29
|
...argTypesFromConfig(mergeConfig(accordionConfig, config)),
|
30
|
+
...disableProps(['text']),
|
30
31
|
pin: {
|
31
32
|
options: [
|
32
33
|
'square-square',
|
@@ -61,7 +62,6 @@ const meta: Meta<typeof Accordion> = {
|
|
61
62
|
export default meta;
|
62
63
|
|
63
64
|
export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
|
64
|
-
argTypes: { ...disableProps(['text']) },
|
65
65
|
render: (props: ComponentProps<typeof Accordion>) => {
|
66
66
|
const args = { ...props, text: undefined };
|
67
67
|
|
@@ -27,6 +27,7 @@ const meta: Meta<typeof Accordion> = {
|
|
27
27
|
},
|
28
28
|
argTypes: {
|
29
29
|
...argTypesFromConfig(mergeConfig(accordionConfig, config)),
|
30
|
+
...disableProps(['text']),
|
30
31
|
pin: {
|
31
32
|
options: [
|
32
33
|
'square-square',
|
@@ -61,7 +62,6 @@ const meta: Meta<typeof Accordion> = {
|
|
61
62
|
export default meta;
|
62
63
|
|
63
64
|
export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
|
64
|
-
argTypes: { ...disableProps(['text']) },
|
65
65
|
render: (props: ComponentProps<typeof Accordion>) => {
|
66
66
|
const args = { ...props, text: undefined };
|
67
67
|
|
@@ -37,7 +37,13 @@ declare type CustomAccordionItemProps = {
|
|
37
37
|
* Функция при открытии аккардиона
|
38
38
|
*/
|
39
39
|
onChangeValue?: (value: boolean, eventKey?: string | number) => void;
|
40
|
+
/**
|
41
|
+
* Индекс элемента
|
42
|
+
*/
|
40
43
|
index?: number;
|
44
|
+
/**
|
45
|
+
* Функция, которая позволяет родительскому компоненту понять, что элемент открылся и закрыть другой элемент
|
46
|
+
*/
|
41
47
|
updateValue?: (index?: number, value?: boolean) => void;
|
42
48
|
};
|
43
49
|
export declare type AccordionItemProps = CustomAccordionItemProps;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AccordionItem.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAEvD,aAAK,wBAAwB,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IAEV;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"AccordionItem.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAEvD,aAAK,wBAAwB,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IAEV;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAMrE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,oBAAY,kBAAkB,GAAG,wBAAwB,CAAC"}
|