@salutejs/sdds-serv 0.313.0-canary.2016.15556762192.0 → 0.314.0-canary.2017.15563553996.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/components/Carousel/Carousel.config.d.ts +14 -0
- package/components/Carousel/Carousel.config.js +22 -0
- package/components/Carousel/Carousel.config.js.map +1 -0
- package/components/Carousel/Carousel.config_1r461vi.css +2 -0
- package/components/Carousel/Carousel.css +2 -0
- package/components/Carousel/Carousel.d.ts +9 -0
- package/components/Carousel/Carousel.js +12 -0
- package/components/Carousel/Carousel.js.map +1 -0
- package/components/Carousel/index.d.ts +2 -0
- package/emotion/cjs/components/Carousel/Carousel.config.js +23 -0
- package/emotion/cjs/components/Carousel/Carousel.js +10 -0
- package/emotion/cjs/components/Carousel/Carousel.stories.tsx +138 -0
- package/emotion/cjs/components/Carousel/index.js +19 -0
- package/emotion/cjs/index.js +11 -0
- package/emotion/es/components/Carousel/Carousel.config.js +17 -0
- package/emotion/es/components/Carousel/Carousel.js +5 -0
- package/emotion/es/components/Carousel/Carousel.stories.tsx +138 -0
- package/emotion/es/components/Carousel/index.js +2 -0
- package/emotion/es/index.js +1 -0
- package/es/components/Carousel/Carousel.config.js +18 -0
- package/es/components/Carousel/Carousel.config.js.map +1 -0
- package/es/components/Carousel/Carousel.config_1r461vi.css +2 -0
- package/es/components/Carousel/Carousel.css +2 -0
- package/es/components/Carousel/Carousel.js +8 -0
- package/es/components/Carousel/Carousel.js.map +1 -0
- package/es/index.css +3 -0
- package/es/index.js +2 -1
- package/es/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +6 -0
- package/package.json +7 -7
- package/styled-components/cjs/components/Carousel/Carousel.config.js +23 -0
- package/styled-components/cjs/components/Carousel/Carousel.js +10 -0
- package/styled-components/cjs/components/Carousel/index.js +19 -0
- package/styled-components/cjs/index.js +11 -0
- package/styled-components/es/components/Carousel/Carousel.config.js +17 -0
- package/styled-components/es/components/Carousel/Carousel.js +5 -0
- package/styled-components/es/components/Carousel/index.js +2 -0
- package/styled-components/es/index.js +1 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const config: {
|
2
|
+
defaults: {
|
3
|
+
view: string;
|
4
|
+
size: string;
|
5
|
+
};
|
6
|
+
variations: {
|
7
|
+
view: {
|
8
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
+
};
|
10
|
+
size: {
|
11
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require('./Carousel.config_1r461vi.css');
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
5
|
+
|
6
|
+
var config = {
|
7
|
+
defaults: {
|
8
|
+
view: 'default',
|
9
|
+
size: 's'
|
10
|
+
},
|
11
|
+
variations: {
|
12
|
+
view: {
|
13
|
+
"default": "dv63qpm"
|
14
|
+
},
|
15
|
+
size: {
|
16
|
+
s: "s13btmod"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
|
21
|
+
exports.config = config;
|
22
|
+
//# sourceMappingURL=Carousel.config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.config.js","sources":["../../src-css/components/Carousel/Carousel.config.ts"],"sourcesContent":["import { css, carouselNewTokens as tokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 's',\n },\n variations: {\n view: {\n default: css`\n ${tokens.paginationDotBackground}: var(--surface-transparent-tertiary);\n ${tokens.paginationDotActiveBackground}: var(--surface-solid-default);\n `,\n },\n size: {\n s: css``,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","s"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;MACFG,SAAO,EAAA,SAAA;KAIV;AACDF,IAAAA,IAAI,EAAE;AACFG,MAAAA,CAAC,EAAA,UAAA;AACL,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare const Carousel: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
2
|
+
view: {
|
3
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
4
|
+
};
|
5
|
+
size: {
|
6
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
};
|
8
|
+
}> & import("@salutejs/plasma-new-hope/styled-components").CarouselNewProps & import("react").RefAttributes<HTMLDivElement>>;
|
9
|
+
export { Carousel };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var plasmaNewHope = require('@salutejs/plasma-new-hope');
|
6
|
+
var Carousel_config = require('./Carousel.config.js');
|
7
|
+
|
8
|
+
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.carouselNewConfig, Carousel_config.config);
|
9
|
+
var Carousel = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
10
|
+
|
11
|
+
exports.Carousel = Carousel;
|
12
|
+
//# sourceMappingURL=Carousel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import { carouselNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Carousel.config';\n\nconst mergedConfig = mergeConfig(carouselNewConfig, config);\nconst Carousel = component(mergedConfig);\n\nexport { Carousel };\n"],"names":["mergedConfig","mergeConfig","carouselNewConfig","config","Carousel","component"],"mappings":";;;;;;;AAIA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,+BAAiB,EAAEC,sBAAM,CAAC,CAAA;AAC3D,IAAMC,QAAQ,gBAAGC,uBAAS,CAACL,YAAY;;;;"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
|
8
|
+
var _templateObject, _templateObject2;
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
|
+
var config = exports.config = {
|
11
|
+
defaults: {
|
12
|
+
view: 'default',
|
13
|
+
size: 's'
|
14
|
+
},
|
15
|
+
variations: {
|
16
|
+
view: {
|
17
|
+
"default": /*#__PURE__*/(0, _emotion.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), _emotion.carouselNewTokens.paginationDotBackground, _emotion.carouselNewTokens.paginationDotActiveBackground)
|
18
|
+
},
|
19
|
+
size: {
|
20
|
+
s: /*#__PURE__*/(0, _emotion.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
21
|
+
}
|
22
|
+
}
|
23
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Carousel = void 0;
|
7
|
+
var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
|
8
|
+
var _Carousel = /*#__PURE__*/require("./Carousel.config");
|
9
|
+
var mergedConfig = /*#__PURE__*/(0, _emotion.mergeConfig)(_emotion.carouselNewConfig, _Carousel.config);
|
10
|
+
var Carousel = exports.Carousel = /*#__PURE__*/(0, _emotion.component)(mergedConfig);
|
@@ -0,0 +1,138 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { ComponentProps } from 'react';
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
4
|
+
import styled from 'styled-components';
|
5
|
+
import { getConfigVariations, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
6
|
+
|
7
|
+
import { config } from './Carousel.config';
|
8
|
+
import { Carousel } from './Carousel';
|
9
|
+
|
10
|
+
import { CarouselItem } from './index';
|
11
|
+
|
12
|
+
type StoryCarouselProps = ComponentProps<typeof Carousel> & {
|
13
|
+
slides: number;
|
14
|
+
visibleDots: number;
|
15
|
+
paginationDisabled: boolean;
|
16
|
+
paginationCentered: boolean;
|
17
|
+
};
|
18
|
+
|
19
|
+
const { views, sizes } = getConfigVariations(config);
|
20
|
+
|
21
|
+
const meta: Meta<StoryCarouselProps> = {
|
22
|
+
title: 'Navigation/Carousel',
|
23
|
+
component: Carousel,
|
24
|
+
decorators: [InSpacingDecorator],
|
25
|
+
argTypes: {
|
26
|
+
view: {
|
27
|
+
options: views,
|
28
|
+
control: {
|
29
|
+
type: 'select',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
size: {
|
33
|
+
options: sizes,
|
34
|
+
control: {
|
35
|
+
type: 'inline-radio',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
align: {
|
39
|
+
options: ['start', 'center', 'end', 'activeDirection'],
|
40
|
+
control: {
|
41
|
+
type: 'inline-radio',
|
42
|
+
},
|
43
|
+
},
|
44
|
+
slides: {
|
45
|
+
control: 'number',
|
46
|
+
},
|
47
|
+
visibleDots: {
|
48
|
+
control: 'number',
|
49
|
+
},
|
50
|
+
controlArrowsDisabled: {
|
51
|
+
control: 'boolean',
|
52
|
+
},
|
53
|
+
paginationDisabled: {
|
54
|
+
control: 'boolean',
|
55
|
+
},
|
56
|
+
paginationCentered: {
|
57
|
+
control: 'boolean',
|
58
|
+
},
|
59
|
+
},
|
60
|
+
args: {
|
61
|
+
view: 'default',
|
62
|
+
size: 's',
|
63
|
+
align: 'center',
|
64
|
+
slides: 10,
|
65
|
+
controlArrowsDisabled: false,
|
66
|
+
paginationDisabled: false,
|
67
|
+
paginationCentered: false,
|
68
|
+
},
|
69
|
+
parameters: {
|
70
|
+
controls: {
|
71
|
+
include: [
|
72
|
+
'align',
|
73
|
+
'visibleDots',
|
74
|
+
'slides',
|
75
|
+
'controlArrowsDisabled',
|
76
|
+
'paginationDisabled',
|
77
|
+
'paginationCentered',
|
78
|
+
'gap',
|
79
|
+
],
|
80
|
+
},
|
81
|
+
},
|
82
|
+
};
|
83
|
+
|
84
|
+
export default meta;
|
85
|
+
|
86
|
+
const StyledCard = styled.div`
|
87
|
+
display: flex;
|
88
|
+
align-items: center;
|
89
|
+
justify-content: center;
|
90
|
+
position: relative;
|
91
|
+
border-radius: 8px;
|
92
|
+
width: 400px;
|
93
|
+
height: 370px;
|
94
|
+
background-color: #add8e6;
|
95
|
+
font-size: 30px;
|
96
|
+
`;
|
97
|
+
|
98
|
+
const StoryDefault = ({
|
99
|
+
align,
|
100
|
+
visibleDots,
|
101
|
+
slides,
|
102
|
+
paginationDisabled,
|
103
|
+
paginationCentered,
|
104
|
+
...rest
|
105
|
+
}: StoryCarouselProps) => {
|
106
|
+
const items = Array(slides)
|
107
|
+
.fill(1)
|
108
|
+
.map((_, i) => ({
|
109
|
+
id: i,
|
110
|
+
title: i,
|
111
|
+
}));
|
112
|
+
|
113
|
+
return (
|
114
|
+
<>
|
115
|
+
<div style={{ width: '600px' }}>
|
116
|
+
<Carousel
|
117
|
+
scrollAlign={align}
|
118
|
+
paginationOptions={{
|
119
|
+
disabled: paginationDisabled,
|
120
|
+
visibleDots,
|
121
|
+
centered: paginationCentered,
|
122
|
+
}}
|
123
|
+
{...rest}
|
124
|
+
>
|
125
|
+
{items.map((item, i) => (
|
126
|
+
<CarouselItem key={i}>
|
127
|
+
<StyledCard>{item.title}</StyledCard>
|
128
|
+
</CarouselItem>
|
129
|
+
))}
|
130
|
+
</Carousel>
|
131
|
+
</div>
|
132
|
+
</>
|
133
|
+
);
|
134
|
+
};
|
135
|
+
|
136
|
+
export const Default: StoryObj<StoryCarouselProps> = {
|
137
|
+
render: (args) => <StoryDefault {...args} />,
|
138
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "Carousel", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _Carousel.Carousel;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "CarouselItem", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _emotion.CarouselItem;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
|
19
|
+
var _Carousel = /*#__PURE__*/require("./Carousel");
|
package/emotion/cjs/index.js
CHANGED
@@ -762,6 +762,17 @@ Object.keys(_List).forEach(function (key) {
|
|
762
762
|
}
|
763
763
|
});
|
764
764
|
});
|
765
|
+
var _Carousel = /*#__PURE__*/require("./components/Carousel");
|
766
|
+
Object.keys(_Carousel).forEach(function (key) {
|
767
|
+
if (key === "default" || key === "__esModule") return;
|
768
|
+
if (key in exports && exports[key] === _Carousel[key]) return;
|
769
|
+
Object.defineProperty(exports, key, {
|
770
|
+
enumerable: true,
|
771
|
+
get: function get() {
|
772
|
+
return _Carousel[key];
|
773
|
+
}
|
774
|
+
});
|
775
|
+
});
|
765
776
|
var _mixins = /*#__PURE__*/require("./mixins");
|
766
777
|
Object.keys(_mixins).forEach(function (key) {
|
767
778
|
if (key === "default" || key === "__esModule") return;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var _templateObject, _templateObject2;
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
+
import { css, carouselNewTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
4
|
+
export var config = {
|
5
|
+
defaults: {
|
6
|
+
view: 'default',
|
7
|
+
size: 's'
|
8
|
+
},
|
9
|
+
variations: {
|
10
|
+
view: {
|
11
|
+
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), tokens.paginationDotBackground, tokens.paginationDotActiveBackground)
|
12
|
+
},
|
13
|
+
size: {
|
14
|
+
s: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
15
|
+
}
|
16
|
+
}
|
17
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { carouselNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
2
|
+
import { config } from './Carousel.config';
|
3
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
|
4
|
+
var Carousel = /*#__PURE__*/component(mergedConfig);
|
5
|
+
export { Carousel };
|
@@ -0,0 +1,138 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import type { ComponentProps } from 'react';
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
4
|
+
import styled from 'styled-components';
|
5
|
+
import { getConfigVariations, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
6
|
+
|
7
|
+
import { config } from './Carousel.config';
|
8
|
+
import { Carousel } from './Carousel';
|
9
|
+
|
10
|
+
import { CarouselItem } from './index';
|
11
|
+
|
12
|
+
type StoryCarouselProps = ComponentProps<typeof Carousel> & {
|
13
|
+
slides: number;
|
14
|
+
visibleDots: number;
|
15
|
+
paginationDisabled: boolean;
|
16
|
+
paginationCentered: boolean;
|
17
|
+
};
|
18
|
+
|
19
|
+
const { views, sizes } = getConfigVariations(config);
|
20
|
+
|
21
|
+
const meta: Meta<StoryCarouselProps> = {
|
22
|
+
title: 'Navigation/Carousel',
|
23
|
+
component: Carousel,
|
24
|
+
decorators: [InSpacingDecorator],
|
25
|
+
argTypes: {
|
26
|
+
view: {
|
27
|
+
options: views,
|
28
|
+
control: {
|
29
|
+
type: 'select',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
size: {
|
33
|
+
options: sizes,
|
34
|
+
control: {
|
35
|
+
type: 'inline-radio',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
align: {
|
39
|
+
options: ['start', 'center', 'end', 'activeDirection'],
|
40
|
+
control: {
|
41
|
+
type: 'inline-radio',
|
42
|
+
},
|
43
|
+
},
|
44
|
+
slides: {
|
45
|
+
control: 'number',
|
46
|
+
},
|
47
|
+
visibleDots: {
|
48
|
+
control: 'number',
|
49
|
+
},
|
50
|
+
controlArrowsDisabled: {
|
51
|
+
control: 'boolean',
|
52
|
+
},
|
53
|
+
paginationDisabled: {
|
54
|
+
control: 'boolean',
|
55
|
+
},
|
56
|
+
paginationCentered: {
|
57
|
+
control: 'boolean',
|
58
|
+
},
|
59
|
+
},
|
60
|
+
args: {
|
61
|
+
view: 'default',
|
62
|
+
size: 's',
|
63
|
+
align: 'center',
|
64
|
+
slides: 10,
|
65
|
+
controlArrowsDisabled: false,
|
66
|
+
paginationDisabled: false,
|
67
|
+
paginationCentered: false,
|
68
|
+
},
|
69
|
+
parameters: {
|
70
|
+
controls: {
|
71
|
+
include: [
|
72
|
+
'align',
|
73
|
+
'visibleDots',
|
74
|
+
'slides',
|
75
|
+
'controlArrowsDisabled',
|
76
|
+
'paginationDisabled',
|
77
|
+
'paginationCentered',
|
78
|
+
'gap',
|
79
|
+
],
|
80
|
+
},
|
81
|
+
},
|
82
|
+
};
|
83
|
+
|
84
|
+
export default meta;
|
85
|
+
|
86
|
+
const StyledCard = styled.div`
|
87
|
+
display: flex;
|
88
|
+
align-items: center;
|
89
|
+
justify-content: center;
|
90
|
+
position: relative;
|
91
|
+
border-radius: 8px;
|
92
|
+
width: 400px;
|
93
|
+
height: 370px;
|
94
|
+
background-color: #add8e6;
|
95
|
+
font-size: 30px;
|
96
|
+
`;
|
97
|
+
|
98
|
+
const StoryDefault = ({
|
99
|
+
align,
|
100
|
+
visibleDots,
|
101
|
+
slides,
|
102
|
+
paginationDisabled,
|
103
|
+
paginationCentered,
|
104
|
+
...rest
|
105
|
+
}: StoryCarouselProps) => {
|
106
|
+
const items = Array(slides)
|
107
|
+
.fill(1)
|
108
|
+
.map((_, i) => ({
|
109
|
+
id: i,
|
110
|
+
title: i,
|
111
|
+
}));
|
112
|
+
|
113
|
+
return (
|
114
|
+
<>
|
115
|
+
<div style={{ width: '600px' }}>
|
116
|
+
<Carousel
|
117
|
+
scrollAlign={align}
|
118
|
+
paginationOptions={{
|
119
|
+
disabled: paginationDisabled,
|
120
|
+
visibleDots,
|
121
|
+
centered: paginationCentered,
|
122
|
+
}}
|
123
|
+
{...rest}
|
124
|
+
>
|
125
|
+
{items.map((item, i) => (
|
126
|
+
<CarouselItem key={i}>
|
127
|
+
<StyledCard>{item.title}</StyledCard>
|
128
|
+
</CarouselItem>
|
129
|
+
))}
|
130
|
+
</Carousel>
|
131
|
+
</div>
|
132
|
+
</>
|
133
|
+
);
|
134
|
+
};
|
135
|
+
|
136
|
+
export const Default: StoryObj<StoryCarouselProps> = {
|
137
|
+
render: (args) => <StoryDefault {...args} />,
|
138
|
+
};
|
package/emotion/es/index.js
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
import './Carousel.config_1r461vi.css';
|
2
|
+
var config = {
|
3
|
+
defaults: {
|
4
|
+
view: 'default',
|
5
|
+
size: 's'
|
6
|
+
},
|
7
|
+
variations: {
|
8
|
+
view: {
|
9
|
+
"default": "dv63qpm"
|
10
|
+
},
|
11
|
+
size: {
|
12
|
+
s: "s13btmod"
|
13
|
+
}
|
14
|
+
}
|
15
|
+
};
|
16
|
+
|
17
|
+
export { config };
|
18
|
+
//# sourceMappingURL=Carousel.config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.config.js","sources":["../../../src-css/components/Carousel/Carousel.config.ts"],"sourcesContent":["import { css, carouselNewTokens as tokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 's',\n },\n variations: {\n view: {\n default: css`\n ${tokens.paginationDotBackground}: var(--surface-transparent-tertiary);\n ${tokens.paginationDotActiveBackground}: var(--surface-solid-default);\n `,\n },\n size: {\n s: css``,\n },\n },\n};\n"],"names":["config","defaults","view","size","variations","default","s"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;GACT;AACDC,EAAAA,UAAU,EAAE;AACRF,IAAAA,IAAI,EAAE;MACFG,SAAO,EAAA,SAAA;KAIV;AACDF,IAAAA,IAAI,EAAE;AACFG,MAAAA,CAAC,EAAA,UAAA;AACL,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { component, mergeConfig, carouselNewConfig } from '@salutejs/plasma-new-hope';
|
2
|
+
import { config } from './Carousel.config.js';
|
3
|
+
|
4
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
|
5
|
+
var Carousel = /*#__PURE__*/component(mergedConfig);
|
6
|
+
|
7
|
+
export { Carousel };
|
8
|
+
//# sourceMappingURL=Carousel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":["../../../src-css/components/Carousel/Carousel.tsx"],"sourcesContent":["import { carouselNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Carousel.config';\n\nconst mergedConfig = mergeConfig(carouselNewConfig, config);\nconst Carousel = component(mergedConfig);\n\nexport { Carousel };\n"],"names":["mergedConfig","mergeConfig","carouselNewConfig","config","Carousel","component"],"mappings":";;;AAIA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,iBAAiB,EAAEC,MAAM,CAAC,CAAA;AAC3D,IAAMC,QAAQ,gBAAGC,SAAS,CAACL,YAAY;;;;"}
|
package/es/index.css
CHANGED
@@ -160,6 +160,9 @@
|
|
160
160
|
.Card_config_1dok8i_m1c9oiks__d95cbab8{--plasma-card-outline-width:0.625rem;--plasma-card-border-width:0.0625rem;--plasma-card-border-radius:0.875rem;--plasma-card-content-border-radius:0.375rem;}
|
161
161
|
.Card_config_1dok8i_s15l99kt__d95cbab8{--plasma-card-outline-width:0.5rem;--plasma-card-border-width:0.0625rem;--plasma-card-border-radius:0.75rem;--plasma-card-content-border-radius:0.375rem;}
|
162
162
|
|
163
|
+
.Carousel_config_1r461vi_dv63qpm__2a4ae68a{--plasma-carousel-pagination-dot-background:var(--surface-transparent-tertiary);--plasma-carousel-pagination-dot-active-background:var(--surface-solid-default);}
|
164
|
+
|
165
|
+
|
163
166
|
.Cell_config_iu83fc_d1r8c7fn__e648e65f{--plasma-cell-color:var(--text-primary);--plasma-cell-label-color:var(--text-secondary);--plasma-cell-title-color:var(--text-primary);--plasma-cell-subtitle-color:var(--text-secondary);--plasma-cell-background-color:transparent;}
|
164
167
|
.Cell_config_iu83fc_ljpyikk__e648e65f{--plasma-cell-width:15rem;--plasma-cell-padding:0rem;--plasma-cell-padding-left-content:0rem;--plasma-cell-padding-content:0rem;--plasma-cell-padding-right-content:0rem;--plasma-cell-textbox-gap:0.125rem;--plasma-cell-gap:0.375rem;--plasma-cell-label-font-family:var(--plasma-typo-body-m-font-family);--plasma-cell-label-font-size:var(--plasma-typo-body-m-font-size);--plasma-cell-label-font-style:var(--plasma-typo-body-m-font-style);--plasma-cell-label-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-cell-label-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-cell-label-line-height:var(--plasma-typo-body-m-line-height);--plasma-cell-title-font-family:var(--plasma-typo-body-l-font-family);--plasma-cell-title-font-size:var(--plasma-typo-body-l-font-size);--plasma-cell-title-font-style:var(--plasma-typo-body-l-font-style);--plasma-cell-title-font-weight:var(--plasma-typo-body-l-font-weight);--plasma-cell-title-letter-spacing:var(--plasma-typo-body-l-letter-spacing);--plasma-cell-title-line-height:var(--plasma-typo-body-l-line-height);--plasma-cell-subtitle-font-family:var(--plasma-typo-body-m-font-family);--plasma-cell-subtitle-font-size:var(--plasma-typo-body-m-font-size);--plasma-cell-subtitle-font-style:var(--plasma-typo-body-m-font-style);--plasma-cell-subtitle-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-cell-subtitle-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-cell-subtitle-line-height:var(--plasma-typo-body-m-line-height);}
|
165
168
|
.Cell_config_iu83fc_m1cazhtd__e648e65f{--plasma-cell-width:15rem;--plasma-cell-padding:0rem;--plasma-cell-padding-left-content:0rem;--plasma-cell-padding-content:0rem;--plasma-cell-padding-right-content:0rem;--plasma-cell-textbox-gap:0.125rem;--plasma-cell-gap:0.5rem;--plasma-cell-label-font-family:var(--plasma-typo-body-s-font-family);--plasma-cell-label-font-size:var(--plasma-typo-body-s-font-size);--plasma-cell-label-font-style:var(--plasma-typo-body-s-font-style);--plasma-cell-label-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-cell-label-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-cell-label-line-height:var(--plasma-typo-body-s-line-height);--plasma-cell-title-font-family:var(--plasma-typo-body-m-font-family);--plasma-cell-title-font-size:var(--plasma-typo-body-m-font-size);--plasma-cell-title-font-style:var(--plasma-typo-body-m-font-style);--plasma-cell-title-font-weight:var(--plasma-typo-body-m-font-weight);--plasma-cell-title-letter-spacing:var(--plasma-typo-body-m-letter-spacing);--plasma-cell-title-line-height:var(--plasma-typo-body-m-line-height);--plasma-cell-subtitle-font-family:var(--plasma-typo-body-s-font-family);--plasma-cell-subtitle-font-size:var(--plasma-typo-body-s-font-size);--plasma-cell-subtitle-font-style:var(--plasma-typo-body-s-font-style);--plasma-cell-subtitle-font-weight:var(--plasma-typo-body-s-font-weight);--plasma-cell-subtitle-letter-spacing:var(--plasma-typo-body-s-letter-spacing);--plasma-cell-subtitle-line-height:var(--plasma-typo-body-s-line-height);}
|
package/es/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Accordion } from './components/Accordion/Accordion.js';
|
2
|
-
export { AccordionItem, ButtonBase, CardContent, CardInnerContent, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, ONLY_DIGITS_PATTERN, Overlay, PopupProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, TabItemRefs, TabsContext, addNotification, closeNotification, codeFieldClasses, codeFieldTokens, counterTokens, datePickerClasses, datePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, modalClasses, noteClasses, noteTokens, numberInputClasses, numberInputTokens, popupClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, textFieldTokens, toolbarTokens, usePopupContext, useSegment, useToast, withSkeleton } from '@salutejs/plasma-new-hope';
|
2
|
+
export { AccordionItem, ButtonBase, CardContent, CardInnerContent, CarouselItem, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, ONLY_DIGITS_PATTERN, Overlay, PopupProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, TabItemRefs, TabsContext, addNotification, closeNotification, codeFieldClasses, codeFieldTokens, counterTokens, datePickerClasses, datePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, modalClasses, noteClasses, noteTokens, numberInputClasses, numberInputTokens, popupClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, textFieldTokens, toolbarTokens, usePopupContext, useSegment, useToast, withSkeleton } from '@salutejs/plasma-new-hope';
|
3
3
|
export { Attach } from './components/Attach/Attach.js';
|
4
4
|
export { Autocomplete } from './components/Autocomplete/Autocomplete.js';
|
5
5
|
export { Avatar } from './components/Avatar/Avatar.js';
|
@@ -10,6 +10,7 @@ export { Button } from './components/Button/Button.js';
|
|
10
10
|
export { ButtonGroup } from './components/ButtonGroup/ButtonGroup.js';
|
11
11
|
export { Calendar, CalendarBase, CalendarBaseRange, CalendarDouble, CalendarDoubleRange } from './components/Calendar/Calendar.js';
|
12
12
|
export { Card } from './components/Card/Card.js';
|
13
|
+
export { Carousel } from './components/Carousel/Carousel.js';
|
13
14
|
export { Cell } from './components/Cell/Cell.js';
|
14
15
|
export { Checkbox } from './components/Checkbox/Checkbox.js';
|
15
16
|
export { Chip } from './components/Chip/Chip.js';
|
package/es/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -14,6 +14,7 @@ var Button = require('./components/Button/Button.js');
|
|
14
14
|
var ButtonGroup = require('./components/ButtonGroup/ButtonGroup.js');
|
15
15
|
var Calendar = require('./components/Calendar/Calendar.js');
|
16
16
|
var Card = require('./components/Card/Card.js');
|
17
|
+
var Carousel = require('./components/Carousel/Carousel.js');
|
17
18
|
var Cell = require('./components/Cell/Cell.js');
|
18
19
|
var Checkbox = require('./components/Checkbox/Checkbox.js');
|
19
20
|
var Chip = require('./components/Chip/Chip.js');
|
@@ -90,6 +91,10 @@ Object.defineProperty(exports, 'CardInnerContent', {
|
|
90
91
|
enumerable: true,
|
91
92
|
get: function () { return plasmaNewHope.CardInnerContent; }
|
92
93
|
});
|
94
|
+
Object.defineProperty(exports, 'CarouselItem', {
|
95
|
+
enumerable: true,
|
96
|
+
get: function () { return plasmaNewHope.CarouselItem; }
|
97
|
+
});
|
93
98
|
Object.defineProperty(exports, 'CellTextbox', {
|
94
99
|
enumerable: true,
|
95
100
|
get: function () { return plasmaNewHope.CellTextbox; }
|
@@ -288,6 +293,7 @@ exports.CalendarBaseRange = Calendar.CalendarBaseRange;
|
|
288
293
|
exports.CalendarDouble = Calendar.CalendarDouble;
|
289
294
|
exports.CalendarDoubleRange = Calendar.CalendarDoubleRange;
|
290
295
|
exports.Card = Card.Card;
|
296
|
+
exports.Carousel = Carousel.Carousel;
|
291
297
|
exports.Cell = Cell.Cell;
|
292
298
|
exports.Checkbox = Checkbox.Checkbox;
|
293
299
|
exports.Chip = Chip.Chip;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.314.0-canary.2017.15563553996.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.
|
36
|
-
"@salutejs/sdds-themes": "0.
|
35
|
+
"@salutejs/plasma-new-hope": "0.327.0-canary.2017.15563553996.0",
|
36
|
+
"@salutejs/sdds-themes": "0.39.0-canary.2017.15563553996.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"@emotion/react": ">=11",
|
@@ -63,10 +63,10 @@
|
|
63
63
|
"@rollup/plugin-commonjs": "^25.0.4",
|
64
64
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
65
65
|
"@salutejs/plasma-colors": "0.15.0",
|
66
|
-
"@salutejs/plasma-core": "1.
|
67
|
-
"@salutejs/plasma-cy-utils": "0.
|
66
|
+
"@salutejs/plasma-core": "1.199.0-canary.2017.15563553996.0",
|
67
|
+
"@salutejs/plasma-cy-utils": "0.130.0-canary.2017.15563553996.0",
|
68
68
|
"@salutejs/plasma-icons": "1.218.0",
|
69
|
-
"@salutejs/plasma-sb-utils": "0.
|
69
|
+
"@salutejs/plasma-sb-utils": "0.200.0-canary.2017.15563553996.0",
|
70
70
|
"@storybook/addon-docs": "7.6.17",
|
71
71
|
"@storybook/addon-essentials": "7.6.17",
|
72
72
|
"@storybook/addons": "7.6.17",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "2a5e2690e83a144ee5db72d4757c09ff3e9d61f6"
|
141
141
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _templateObject, _templateObject2;
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
|
+
var config = exports.config = {
|
11
|
+
defaults: {
|
12
|
+
view: 'default',
|
13
|
+
size: 's'
|
14
|
+
},
|
15
|
+
variations: {
|
16
|
+
view: {
|
17
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), _styledComponents.carouselNewTokens.paginationDotBackground, _styledComponents.carouselNewTokens.paginationDotActiveBackground)
|
18
|
+
},
|
19
|
+
size: {
|
20
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
21
|
+
}
|
22
|
+
}
|
23
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Carousel = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _Carousel = /*#__PURE__*/require("./Carousel.config");
|
9
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.carouselNewConfig, _Carousel.config);
|
10
|
+
var Carousel = exports.Carousel = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "Carousel", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _Carousel.Carousel;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "CarouselItem", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _styledComponents.CarouselItem;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
19
|
+
var _Carousel = /*#__PURE__*/require("./Carousel");
|
@@ -762,6 +762,17 @@ Object.keys(_List).forEach(function (key) {
|
|
762
762
|
}
|
763
763
|
});
|
764
764
|
});
|
765
|
+
var _Carousel = /*#__PURE__*/require("./components/Carousel");
|
766
|
+
Object.keys(_Carousel).forEach(function (key) {
|
767
|
+
if (key === "default" || key === "__esModule") return;
|
768
|
+
if (key in exports && exports[key] === _Carousel[key]) return;
|
769
|
+
Object.defineProperty(exports, key, {
|
770
|
+
enumerable: true,
|
771
|
+
get: function get() {
|
772
|
+
return _Carousel[key];
|
773
|
+
}
|
774
|
+
});
|
775
|
+
});
|
765
776
|
var _mixins = /*#__PURE__*/require("./mixins");
|
766
777
|
Object.keys(_mixins).forEach(function (key) {
|
767
778
|
if (key === "default" || key === "__esModule") return;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
var _templateObject, _templateObject2;
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
+
import { css, carouselNewTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
|
+
export var config = {
|
5
|
+
defaults: {
|
6
|
+
view: 'default',
|
7
|
+
size: 's'
|
8
|
+
},
|
9
|
+
variations: {
|
10
|
+
view: {
|
11
|
+
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n ", ": var(--surface-solid-default);\n "])), tokens.paginationDotBackground, tokens.paginationDotActiveBackground)
|
12
|
+
},
|
13
|
+
size: {
|
14
|
+
s: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
15
|
+
}
|
16
|
+
}
|
17
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { carouselNewConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
+
import { config } from './Carousel.config';
|
3
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
|
4
|
+
var Carousel = /*#__PURE__*/component(mergedConfig);
|
5
|
+
export { Carousel };
|