@salutejs/plasma-new-hope 0.232.1-canary.1603.12479456288.0 → 0.232.2-canary.1678.12484949811.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/emotion/cjs/examples/_helpers.js +5 -7
- package/emotion/es/examples/_helpers.js +5 -7
- package/package.json +9 -8
- package/styled-components/cjs/examples/_helpers.js +5 -7
- package/styled-components/es/examples/_helpers.js +5 -7
- package/types/examples/_helpers.d.ts +1 -1
- package/types/examples/_helpers.d.ts.map +1 -1
@@ -35,18 +35,16 @@ function argTypesFromConfig(config) {
|
|
35
35
|
var _step$value = _slicedToArray(_step.value, 2),
|
36
36
|
key = _step$value[0],
|
37
37
|
val = _step$value[1];
|
38
|
-
var control = {
|
39
|
-
control: {}
|
40
|
-
};
|
38
|
+
var control = {};
|
41
39
|
if (val["true"]) {
|
42
|
-
control.control
|
40
|
+
control.control = 'boolean';
|
43
41
|
control.table = {
|
44
42
|
defaultValue: {
|
45
|
-
summary:
|
43
|
+
summary: ''
|
46
44
|
}
|
47
45
|
};
|
48
46
|
} else {
|
49
|
-
control.control
|
47
|
+
control.control = 'select';
|
50
48
|
control.options = Object.keys(val).filter(function (name) {
|
51
49
|
return name !== 'css';
|
52
50
|
});
|
@@ -55,7 +53,7 @@ function argTypesFromConfig(config) {
|
|
55
53
|
if (defaultValue) {
|
56
54
|
control.table = {
|
57
55
|
defaultValue: {
|
58
|
-
summary: val["true"] ?
|
56
|
+
summary: val["true"] ? '' : defaultValue
|
59
57
|
}
|
60
58
|
};
|
61
59
|
}
|
@@ -27,18 +27,16 @@ export function argTypesFromConfig(config) {
|
|
27
27
|
var _step$value = _slicedToArray(_step.value, 2),
|
28
28
|
key = _step$value[0],
|
29
29
|
val = _step$value[1];
|
30
|
-
var control = {
|
31
|
-
control: {}
|
32
|
-
};
|
30
|
+
var control = {};
|
33
31
|
if (val["true"]) {
|
34
|
-
control.control
|
32
|
+
control.control = 'boolean';
|
35
33
|
control.table = {
|
36
34
|
defaultValue: {
|
37
|
-
summary:
|
35
|
+
summary: ''
|
38
36
|
}
|
39
37
|
};
|
40
38
|
} else {
|
41
|
-
control.control
|
39
|
+
control.control = 'select';
|
42
40
|
control.options = Object.keys(val).filter(function (name) {
|
43
41
|
return name !== 'css';
|
44
42
|
});
|
@@ -47,7 +45,7 @@ export function argTypesFromConfig(config) {
|
|
47
45
|
if (defaultValue) {
|
48
46
|
control.table = {
|
49
47
|
defaultValue: {
|
50
|
-
summary: val["true"] ?
|
48
|
+
summary: val["true"] ? '' : defaultValue
|
51
49
|
}
|
52
50
|
};
|
53
51
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.232.
|
3
|
+
"version": "0.232.2-canary.1678.12484949811.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "./cjs/index.js",
|
6
6
|
"module": "./es/index.js",
|
@@ -99,12 +99,13 @@
|
|
99
99
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
100
100
|
"@salutejs/plasma-sb-utils": "0.188.1-dev.0",
|
101
101
|
"@salutejs/plasma-themes": "0.27.0-dev.0",
|
102
|
-
"@storybook/addon-docs": "^
|
103
|
-
"@storybook/addon-essentials": "^
|
102
|
+
"@storybook/addon-docs": "^8.4.7",
|
103
|
+
"@storybook/addon-essentials": "^8.4.7",
|
104
104
|
"@storybook/addons": "^7.6.17",
|
105
|
-
"@storybook/
|
106
|
-
"@storybook/react
|
107
|
-
"@storybook/
|
105
|
+
"@storybook/manager-api": "^8.4.7",
|
106
|
+
"@storybook/react": "^8.4.7",
|
107
|
+
"@storybook/react-vite": "^8.4.7",
|
108
|
+
"@storybook/theming": "^8.4.7",
|
108
109
|
"@types/lodash": "^4.14.191",
|
109
110
|
"@types/lodash.throttle": "4.1.6",
|
110
111
|
"@types/node": "15.14.9",
|
@@ -120,7 +121,7 @@
|
|
120
121
|
"react": "18.2.0",
|
121
122
|
"react-dom": "18.2.0",
|
122
123
|
"rollup": "^3.28.0",
|
123
|
-
"storybook": "
|
124
|
+
"storybook": "^8.4.7",
|
124
125
|
"styled-components": "5.3.1",
|
125
126
|
"vite": "4.5.3"
|
126
127
|
},
|
@@ -146,5 +147,5 @@
|
|
146
147
|
"sideEffects": [
|
147
148
|
"*.css"
|
148
149
|
],
|
149
|
-
"gitHead": "
|
150
|
+
"gitHead": "512a62317a1605cfc188d0b6287fafe8f8c83b03"
|
150
151
|
}
|
@@ -35,18 +35,16 @@ function argTypesFromConfig(config) {
|
|
35
35
|
var _step$value = _slicedToArray(_step.value, 2),
|
36
36
|
key = _step$value[0],
|
37
37
|
val = _step$value[1];
|
38
|
-
var control = {
|
39
|
-
control: {}
|
40
|
-
};
|
38
|
+
var control = {};
|
41
39
|
if (val["true"]) {
|
42
|
-
control.control
|
40
|
+
control.control = 'boolean';
|
43
41
|
control.table = {
|
44
42
|
defaultValue: {
|
45
|
-
summary:
|
43
|
+
summary: ''
|
46
44
|
}
|
47
45
|
};
|
48
46
|
} else {
|
49
|
-
control.control
|
47
|
+
control.control = 'select';
|
50
48
|
control.options = Object.keys(val).filter(function (name) {
|
51
49
|
return name !== 'css';
|
52
50
|
});
|
@@ -55,7 +53,7 @@ function argTypesFromConfig(config) {
|
|
55
53
|
if (defaultValue) {
|
56
54
|
control.table = {
|
57
55
|
defaultValue: {
|
58
|
-
summary: val["true"] ?
|
56
|
+
summary: val["true"] ? '' : defaultValue
|
59
57
|
}
|
60
58
|
};
|
61
59
|
}
|
@@ -27,18 +27,16 @@ export function argTypesFromConfig(config) {
|
|
27
27
|
var _step$value = _slicedToArray(_step.value, 2),
|
28
28
|
key = _step$value[0],
|
29
29
|
val = _step$value[1];
|
30
|
-
var control = {
|
31
|
-
control: {}
|
32
|
-
};
|
30
|
+
var control = {};
|
33
31
|
if (val["true"]) {
|
34
|
-
control.control
|
32
|
+
control.control = 'boolean';
|
35
33
|
control.table = {
|
36
34
|
defaultValue: {
|
37
|
-
summary:
|
35
|
+
summary: ''
|
38
36
|
}
|
39
37
|
};
|
40
38
|
} else {
|
41
|
-
control.control
|
39
|
+
control.control = 'select';
|
42
40
|
control.options = Object.keys(val).filter(function (name) {
|
43
41
|
return name !== 'css';
|
44
42
|
});
|
@@ -47,7 +45,7 @@ export function argTypesFromConfig(config) {
|
|
47
45
|
if (defaultValue) {
|
48
46
|
control.table = {
|
49
47
|
defaultValue: {
|
50
|
-
summary: val["true"] ?
|
48
|
+
summary: val["true"] ? '' : defaultValue
|
51
49
|
}
|
52
50
|
};
|
53
51
|
}
|
@@ -3,5 +3,5 @@ import type { ArgTypes, Decorator } from '@storybook/react';
|
|
3
3
|
import { ComponentConfig } from '../engines';
|
4
4
|
import type { HTMLAttributesWithoutOnChange, HTMLTagList, PropsType, Variants } from '../engines/types';
|
5
5
|
export declare const WithTheme: Decorator;
|
6
|
-
export declare function argTypesFromConfig<Tag extends HTMLTagList, VariantList extends Variants, VariantsProps extends PropsType<VariantList>, LayoutProps extends React.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement>>(config: ComponentConfig<Tag, VariantList, VariantsProps, LayoutProps>, exclude?: string[]): ArgTypes<import("@storybook/
|
6
|
+
export declare function argTypesFromConfig<Tag extends HTMLTagList, VariantList extends Variants, VariantsProps extends PropsType<VariantList>, LayoutProps extends React.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement>>(config: ComponentConfig<Tag, VariantList, VariantsProps, LayoutProps>, exclude?: string[]): ArgTypes<import("@storybook/csf").Args>;
|
7
7
|
//# sourceMappingURL=_helpers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_helpers.d.ts","sourceRoot":"","sources":["../../src/examples/_helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAk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